/* ========================
   CSS Variables
   ======================== */
:root {
    --primary: #003366;
    --primary-light: #004080;
    --accent: #0066CC;
    --yellow: #FFB90F;
    --yellow-light: #FFC933;
    --text-dark: #1a1a2e;
    --text-light: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #f8f9fc;
    --bg-lighter: #f0f2f8;
    --border: #e8eaf0;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 6px;
    --radius-lg: 10px;
    --radius-xl: 16px;
    --transition: all 0.25s ease;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ========================
   Base Reset
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
}

section {
    padding: 72px 0;
}

@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }
}

/* ========================
   Header Navigation
   ======================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: relative;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list > li {
    position: relative;
}

.nav-list a {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-list a:hover {
    color: var(--accent);
    background: var(--bg-light);
}

.nav-list a[aria-current="page"] {
    color: var(--accent);
    background: var(--bg-light);
}

.nav-list .has-submenu > a i {
    font-size: 20px;
    margin-left: 2px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 160px;
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}

.submenu a {
    padding: 10px 14px;
    font-size: 18px;
    border-radius: var(--radius);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 12px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 0;
    }

    .nav-list a {
        padding: 12px 16px;
    }

    .submenu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 16px;
        margin-top: 4px;
        background: var(--bg-light);
    }

    .submenu.sub-open {
        display: block;
    }

    .submenu a {
        padding: 10px 16px;
    }

    .has-submenu:hover .submenu {
        transform: none;
    }
}

/* ========================
   Buttons
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--yellow);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--yellow-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,185,15,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-white);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}

.btn-email {
    background: var(--accent);
    color: #fff;
}

.btn-email:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,204,0.35);
}

/* ========================
   Footer
   ======================== */
.footer {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 50%, #c0d8f9 100%);
    color: var(--text-dark);
    padding: 56px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 36px;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: var(--radius);
    background: rgba(0, 51, 102, 0.08);
}

.footer-col > p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    background: rgba(0,51,102,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--bg-white);
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 16px;
    color: var(--text-dark);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.footer-contact i {
    color: var(--accent);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(0,51,102,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 16px;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ========================
   Back to Top Button
   ======================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 42px;
    height: 42px;
    background: var(--accent);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .back-to-top {
        display: none;
    }
}

/* ========================
   Video Detail Page Specific
   ======================== */
.video-detail {
    background: var(--bg-light);
    padding: 72px 0;
    margin-top: 64px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    font-size: 16px;
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb i {
    color: var(--text-light);
    font-size: 12px;
}

.breadcrumb span {
    color: var(--text-dark);
    font-weight: 500;
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.video-player {
    position: relative;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-player::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-meta {
    max-width: 1000px;
    margin: 0 auto;
}

.video-meta h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.video-meta > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.video-meta .video-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.video-info-section {
    max-width: 1000px;
    margin: 0 auto 32px;
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.video-info-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.video-info-section p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.video-info-section ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.video-info-section li {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 8px;
}

.video-info-section strong {
    color: var(--text-dark);
}

.video-info-section img,
.video-info-section .section-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 20px 0;
}

.video-info-section .section-image {
    margin: 20px 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-info-section .section-image img {
    width: 100%;
    max-height: 600px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 0;
    display: block;
}

@media (max-width: 640px) {
    .video-info-section .section-image img {
        max-height: 400px;
    }
}

@media (max-width: 640px) {
    .video-info-section .section-image {
        max-width: 100%;
        border-radius: var(--radius);
    }
}

.video-related {
    max-width: 1000px;
    margin: 0 auto 32px;
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 32px;
}

.detail-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
    max-width: calc(50% - 8px);
}

.detail-nav-btn:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.detail-nav-btn.prev {
    justify-content: flex-start;
}

.detail-nav-btn.next {
    justify-content: flex-end;
    text-align: right;
}

.detail-nav-btn i {
    font-size: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.detail-nav-btn span {
    display: flex;
    flex-direction: column;
}

.detail-nav-btn small {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.detail-nav-btn strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

@media (max-width: 640px) {
    .detail-nav {
        flex-direction: column;
    }

    .detail-nav-btn {
        max-width: 100%;
    }

    .detail-nav-btn.next {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row-reverse;
    }
}

.video-related h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.video-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-related-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}

.video-related-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.video-related-card .thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-related-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-related-card .thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
}

.video-related-card .info {
    padding: 14px;
}

.video-related-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.video-related-card span {
    font-size: 16px;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .video-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .video-related-grid {
        grid-template-columns: 1fr;
    }

    .video-meta h1 {
        font-size: 22px;
    }

    .video-meta .video-actions {
        flex-direction: column;
    }

    .video-info-section {
        padding: 24px;
    }
}

/* ========================
   Section Header
   ======================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

/* ========================
   CTA Section
   ======================== */
.cta {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 50%, #c0d8f9 100%);
    padding: 72px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}
