body { background-color: #FFFFFF; }

/* Ẩn scrollbar cho khu vực vuốt ngang */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
/* Timeline TOC (Trục dọc bên phải, fixed) */
.timeline-toc {
    position: fixed;
    right: 0;
    top: 2.5rem; /* below topbar (h-10) */
    bottom: 0;
    width: 60px;
    background: #FFFFFF;
    border-left: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.timeline-toc { transition: top 0.22s ease, box-shadow 0.22s ease; }
.timeline-toc.pinned { top: 0; box-shadow: 0 6px 18px rgba(10,10,10,0.08); }
.timeline-line {
    position: absolute; right: 29px; top: 0; bottom: 0; width: 2px; background: #E5E7EB; z-index: 1;
}
.timeline-progress {
    position: absolute; right: 29px; top: 0; width: 2px; background: #00BFFF; z-index: 2;
    transition: top 0.18s ease, height 0.18s ease; transform-origin: top; border-radius: 2px;
}

/* Container for timeline items; use flex column for even vertical spacing */
.timeline-items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60vh;
    z-index: 10;
    padding: 8px 0;
}

.timeline-item {
    position: relative; z-index: 3;
    width: var(--toc-dot-size, 14px);
    height: var(--toc-dot-size, 14px);
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #1A2942;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex; align-items: center; justify-content: center;
}
.timeline-item:hover, .timeline-item.active {
    background: #00BFFF; border-color: #00BFFF; box-shadow: 0 0 10px rgba(0,191,255,0.4); transform: scale(1.25);
}
.timeline-label {
    position: absolute; right: 100%; margin-right: 12px; top: 50%; transform: translateY(-50%);
    background: #1A2942; color: #FFFFFF; padding: 6px 12px; font-size: 12px;
    border-radius: 4px; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s, margin-right 0.2s;
    pointer-events: none; font-family: 'Plus Jakarta Sans', sans-serif;
    /* max-width: 220px; overflow: hidden; text-overflow: ellipsis; */
}
.timeline-item:hover .timeline-label { opacity: 1; visibility: visible; margin-right: 8px; }

/* Cấu trúc bù trừ không gian cho Timeline TOC trên Desktop
     Không để TOC chiếm chiều rộng của topbar: chỉ áp padding cho nội dung chính */
@media (min-width: 1024px) {
    body { padding-right: 0; }
    main.max-w-7xl.mx-auto, .max-w-7xl.mx-auto { padding-right: 60px; }
}

/* Bento Grid Gallery */
.bento-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 16px;
}
.bento-item {
    position: relative; overflow: hidden; border-radius: 8px; cursor: zoom-in;
    border: 1px solid transparent; transition: border-color 0.3s;
}
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.bento-item:hover { border-color: #00BFFF; }
.bento-item:hover img { transform: scale(1.05); }
.bento-overlay {
    position: absolute; inset: 0; background: rgba(26,41,66,0.6); display: flex;
    align-items: center; justify-content: center; opacity: 0; transition: 0.3s;
}
.bento-item:hover .bento-overlay { opacity: 1; }

/* Grid spans */
.col-span-2 { grid-column: span 2; }
.row-span-2 { grid-row: span 2; }
@media (max-width: 768px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .mobile-col-full { grid-column: span 2; }
}

/* Before & After Slider */
.ba-wrapper { position: relative; width: 100%; height: 70vh; min-height: 400px; overflow: hidden; }
.ba-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-container {
    position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; z-index: 2;
    border-right: 3px solid #00BFFF;
}
.ba-before-container img { width: 100vw; max-width: none; }
@media (min-width: 1024px) { .ba-before-container img { width: calc(100vw - 60px); } }
.ba-slider-handle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 40px; height: 40px; background: #1A2942; border: 3px solid #00BFFF; border-radius: 50%;
    z-index: 3; display: flex; align-items: center; justify-content: center; color: #FFFFFF;
    cursor: ew-resize; pointer-events: none;
}

/* Product Carousel Card */
.product-card {
    min-width: 280px; background: #FFFFFF; border: 1px solid #E5E7EB; padding: 16px;
    transition: all 0.3s; border-radius: 8px; scroll-snap-align: start;
}
.product-card:hover {
    border-color: #00BFFF; transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,191,255,0.1);
}