/* ===== DETAIL HEADER ===== */
.detail-header {
    padding: 9rem 0 2rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}
.detail-header .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.75rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}
.detail-header .meta i {
    color: var(--primary);
    width: 18px;
}
.detail-header .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.detail-header .tags span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.2rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 100px;
}

/* ===== CAROUSEL ===== */
.carousel-section {
    background: var(--white);
    padding: 2rem 0 3rem;
}
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    background: var(--gray-100);
}
.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.carousel-slide {
    min-width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--gray-100);
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--gray-200);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray-700);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 10;
}
.carousel-btn:hover {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}
.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--gray-200);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.carousel-dots button.active {
    background: var(--gradient);
    width: 28px;
    border-radius: 8px;
}
.carousel-dots button:hover:not(.active) {
    background: var(--gray-400);
}

/* ===== TABS ===== */
.tabs-section {
    background: var(--bg-light);
    padding: 3rem 0 5rem;
}
.tab-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2.5rem;
    background: var(--white);
    padding: 0.5rem 1rem 0;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar (Firefox / IE / Edge) */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
/* Hide scrollbar (Chrome / Safari) */
.tab-nav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}
.tab-btn:hover {
    color: var(--gray-900);
}
.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-panels {
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    border-top: none;
}
.tab-panel {
    display: none;
    animation: fadeUp 0.3s ease;
}
.tab-panel.active {
    display: block;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== TAB CONTENT (general text only) ===== */
.tab-panel h1,
.tab-panel h2,
.tab-panel h3,
.tab-panel h4,
.tab-panel h5,
.tab-panel h6 {
    color: var(--gray-900);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.5rem 0 0.75rem;
}
.tab-panel h1 { font-size: 1.6rem; }
.tab-panel h2 { font-size: 1.4rem; }
.tab-panel h3 { font-size: 1.25rem; }
.tab-panel h4 { font-size: 1.1rem; }
.tab-panel h5 { font-size: 1rem; }
.tab-panel h6 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }

.tab-panel h3:first-child,
.tab-panel h2:first-child,
.tab-panel h1:first-child {
    margin-top: 0;
}

.tab-panel p {
    color: var(--gray-500);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.98rem;
}

.tab-panel ul,
.tab-panel ol {
    padding-left: 1.5rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}
.tab-panel ul { list-style: disc; }
.tab-panel ol { list-style: decimal; }
.tab-panel li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.tab-panel strong {
    color: var(--gray-900);
    font-weight: 600;
}
.tab-panel em {
    font-style: italic;
}
.tab-panel a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition);
}
.tab-panel a:hover {
    color: var(--primary-dark);
}

/* ===== ACTION BAR ===== */
.action-bar {
    background: var(--white);
    padding: 2.5rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.action-bar .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .detail-header h1 { font-size: 2rem; }
    .container { padding: 0 1.25rem; }

    .tab-nav {
        padding: 0.5rem 0.5rem 0;
        gap: 0;
    }
    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
        border-bottom-width: 2px;
    }
    .tab-panels { padding: 1.5rem; }

    .carousel-btn { width: 34px; height: 34px; font-size: 0.9rem; }
    .carousel-btn.prev { left: 0.5rem; }
    .carousel-btn.next { right: 0.5rem; }
}

@media (max-width: 480px) {
    .detail-header { padding: 8rem 0 1.75rem; }
    .detail-header h1 { font-size: 1.6rem; }
    .action-bar .actions .btn {
        width: 100%;
        justify-content: center;
    }
    .tab-btn {
        font-size: 0.72rem;
        padding: 0.55rem 0.8rem;
    }
    .tab-panels { padding: 1.25rem; }
    .tab-panel p { font-size: 0.94rem; }
}