/* ==============================================
   CSS Variables & Reset
   Pondok Pesantren Mathla'ul Huda
   ============================================== */

:root {
    /* Light Mode Colors */
    --primary: #1a2a6c;
    --primary-navy: #1a2a6c;
    --primary-dark: #0f1a4a;
    --secondary-blue: #2c7da0;
    --secondary-light: #61a5c2;
    --accent-gold: #f4a261;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-white-rgb: 255, 255, 255;
    --bg-gray: #f8fafc;
    --border-light: #e2e8f0;
    
    /* Premium Modern Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 8px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height: 85px;
    --border-radius: 16px;
}

[data-theme="dark"] {
    --primary: #f4a261;
    --primary-navy: #1e293b;
    --primary-dark: #0f172a;
    --secondary-blue: #38bdf8;
    --secondary-light: #7dd3fc;
    --text-dark: #f8fafc;
    --text-light: #94a3b8;
    --bg-white: #0f172a;
    --bg-white-rgb: 15, 23, 42;
    --bg-gray: #1e293b;
    --border-light: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    transition: var(--transition);
    padding-top: var(--navbar-height);
}

body.home {
    padding-top: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-light);
    border-radius: 5px;
    border: 2px solid var(--bg-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==============================================
   Preloader
   ============================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 85px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: pulseLogo 2s infinite ease-in-out;
}

.loader-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(44, 125, 160, 0.1);
    border-top: 4px solid var(--secondary-blue);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

body.no-scroll {
    overflow: hidden;
}

/* ==============================================
   Typography
   ============================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.25rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1.25rem;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-blue), var(--secondary-light));
    border-radius: 10px;
}

/* ==============================================
   Buttons
   ============================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-navy);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 42, 108, 0.15);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 42, 108, 0.25);
}

.btn-secondary {
    background: var(--secondary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 125, 160, 0.15);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 125, 160, 0.25);
}

/* ==============================================
   Navbar
   ============================================== */

.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
    background: rgba(var(--bg-white-rgb), 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand .navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 50px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
    transition: var(--transition);
}

[data-theme="dark"] .logo-text {
    color: var(--accent-gold);
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2.25rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    position: relative;
    opacity: 0.85;
}

.nav-icon {
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-blue);
    opacity: 1;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--accent-gold);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
    color: var(--secondary-blue);
}

[data-theme="dark"] .nav-link:hover .nav-icon,
[data-theme="dark"] .nav-link.active .nav-icon {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary-blue);
    transition: var(--transition);
    border-radius: 5px;
}

[data-theme="dark"] .nav-link::after {
    background: var(--accent-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-extra {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-register-nav {
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-navy));
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(44, 125, 160, 0.3);
    transition: var(--transition);
}

.btn-register-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 125, 160, 0.4);
    filter: brightness(1.1);
}

@media (max-width: 480px) {
    .btn-register-nav {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .navbar-extra {
        gap: 0.75rem;
    }
}

.dark-mode-btn {
    background: transparent;
    border: 2px solid var(--primary-navy);
    cursor: pointer;
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 10px;
    transition: var(--transition);
    margin-left: 10px;
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.dark-mode-btn:hover {
    background: var(--primary-navy);
    color: white;
}

[data-theme="dark"] .dark-mode-btn {
    border-color: #f4a261;
    color: #f4a261;
}

[data-theme="dark"] .dark-mode-btn:hover {
    background: #f4a261;
    color: #1a1a1a;
}

.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggler span {
    width: 25px;
    height: 2.5px;
    background: var(--primary-navy);
    transition: var(--transition);
    border-radius: 10px;
}

[data-theme="dark"] .navbar-toggler span {
    background: var(--accent-gold);
}

.navbar-toggler.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ==============================================
   Hero Section
   ============================================== */

.page-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home .page-hero {
    min-height: 100vh;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-slider .swiper-slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
    overflow: hidden;
}

.hero-bg-slider .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 10s ease-out;
    transform: scale(1);
    z-index: -1;
}

.hero-bg-slider .swiper-slide-active::after {
    transform: scale(1.15);
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 2;
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    padding-top: 40px;
}

.page-hero-content > * {
    pointer-events: auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-slider-pagination {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 20;
}

.hero-slider-pagination .swiper-pagination-bullet {
    width: 25px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    opacity: 1;
    transition: var(--transition);
}

.hero-slider-pagination .swiper-pagination-bullet-active {
    background: var(--secondary-blue);
    width: 45px;
}

[data-theme="dark"] .hero-slider-pagination .swiper-pagination-bullet-active {
    background: var(--accent-gold);
}

.hero-slider-prev,
.hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
}

.hero-slider-prev { left: 30px; }
.hero-slider-next { right: 30px; }

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(44, 125, 160, 0.4);
}

[data-theme="dark"] .hero-slider-prev:hover,
[data-theme="dark"] .hero-slider-next:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #121212;
}

.hero-slider-prev:active,
.hero-slider-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Slider Progress Bar */
.hero-slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 25;
}

.hero-slider-progress-inner {
    height: 100%;
    width: 0;
    background: var(--secondary-blue);
    transition: width 0.1s linear;
}

[data-theme="dark"] .hero-slider-progress-inner {
    background: var(--accent-gold);
}

@media (max-width: 768px) {
    .hero-slider-prev,
    .hero-slider-next {
        display: none;
    }
}

/* ==============================================
   Other Sections
   ============================================== */

.about,
.programs,
.news,
.cta {
    padding: 90px 0;
}

.cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-navy));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: 2.25rem;
    opacity: 0.9;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    line-height: 0;
    border: 6px solid var(--bg-white);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

.shadow-premium {
    box-shadow: var(--shadow-premium);
}

.video-container:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.15));
    pointer-events: none;
}

/* ==============================================
   Footer
   ============================================== */

.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 30px;
    font-size: 0.95rem;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
    position: relative;
    color: white;
    font-weight: 700;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: var(--secondary-blue);
    border-radius: 10px;
}

[data-theme="dark"] .footer-title::after {
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--accent-gold);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-contact li span:first-child {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    margin-top: 2px;
}

.footer-contact li span:last-child {
    flex: 1;
    word-break: break-word;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-info p {
    margin-bottom: 0.4rem;
}

.footer-bottom-info p:last-child {
    margin-bottom: 0;
}

.footer-motto {
    font-style: italic;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social .social-link i {
    font-size: 1.05rem;
    transition: var(--transition);
}

.footer-social .social-link:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(44, 125, 160, 0.3);
}

.footer-social .social-link:hover i {
    color: white !important;
}

[data-theme="dark"] .footer-social .social-link:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
}

[data-theme="dark"] .footer-social .social-link:hover i {
    color: #121212 !important;
}

.developer-credit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    margin-top: 0.5rem;
}

.developer-credit:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.credit-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.developer-credit:hover .credit-text {
    color: rgba(255, 255, 255, 0.8);
}

.developer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: 12px;
}

.dev-social-link {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-social-link:hover {
    transform: scale(1.2);
}

.dev-social-link[title*="Portofolio"]:hover {
    color: var(--secondary-blue);
}

.dev-social-link[title*="GitHub"]:hover {
    color: #ffffff;
}

.dev-social-link[title*="LinkedIn"]:hover {
    color: #0a66c2;
}

[data-theme="dark"] .dev-social-link[title*="Portofolio"]:hover {
    color: var(--accent-gold);
}

/* ==============================================
   Responsive Layouts
   ============================================== */

@media (max-width: 992px) {
    .navbar-menu {
        display: none;
    }

    .navbar-toggler {
        display: flex;
    }

    .navbar-menu.active {
        display: flex;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: var(--bg-white);
        flex-direction: column;
        padding: 2.5rem;
        z-index: 999;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        animation: fadeInDown 0.3s ease;
    }

    .navbar.scrolled .navbar-menu.active {
        top: 70px;
        height: calc(100vh - 70px);
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 8px 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* ==============================================
   Sub-page Elements
   ============================================== */

.page-hero-title {
    font-size: 2.75rem;
    color: white;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: var(--accent-gold);
}

/* ==============================================
   Page Section
   ============================================== */
.page-section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .page-section {
        padding: 50px 0;
    }
}

.page-section.bg-gray {
    background: var(--bg-gray);
}

.text-center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-blue);
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .section-label {
    color: var(--accent-gold);
}

/* ==============================================
   Berita Cards
   ============================================== */
.news-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card-v2 {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.news-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.news-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-v2:hover .news-card-img img {
    transform: scale(1.08);
}

.news-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

[data-theme="dark"] .news-category-badge {
    background: var(--accent-gold);
    color: #121212;
}

.news-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.news-meta-date,
.news-meta-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
    transition: var(--transition);
}

.news-card-v2:hover .news-card-title {
    color: var(--secondary-blue);
}

[data-theme="dark"] .news-card-v2:hover .news-card-title {
    color: var(--accent-gold);
}

.news-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    flex: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.25rem;
    color: var(--secondary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

[data-theme="dark"] .news-read-more {
    color: var(--accent-gold);
}

.news-read-more:hover {
    gap: 10px;
}

/* ==============================================
   Galeri
   ============================================== */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 8px 22px;
    border-radius: 50px;
    border: 1.5px solid var(--border-light);
    background: transparent;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(44, 125, 160, 0.2);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #121212;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.2);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.gallery-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.gallery-card-img {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-card-img img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 4px;
}

.gallery-card-title {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.gallery-zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    flex-shrink: 0;
    align-self: flex-end;
    transition: var(--transition);
}

.gallery-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ==============================================
   Profil Page
   ============================================== */
.profil-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profil-heading {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .profil-heading {
        font-size: 1.75rem;
    }
}

.profil-text-block p {
    color: var(--text-light);
    line-height: 1.8;
}

.profil-img-block {
    position: relative;
}

.profil-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.profil-founded-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-blue);
    color: white;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.75rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .profil-founded-badge {
    background: var(--accent-gold);
    color: #121212;
}

.profil-badge-year {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.profil-badge-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 600;
}

.visi-misi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.visi-card,
.misi-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--secondary-blue);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

[data-theme="dark"] .visi-card,
[data-theme="dark"] .misi-card {
    border-top-color: var(--accent-gold);
}

.visi-card:hover,
.misi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vm-icon {
    width: 60px;
    height: 60px;
    background: rgba(44, 125, 160, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .vm-icon {
    background: rgba(244, 162, 97, 0.1);
    color: var(--accent-gold);
}

.vm-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.vm-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
}

.misi-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.misi-list li {
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.misi-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--secondary-blue);
    border-radius: 50%;
}

[data-theme="dark"] .misi-list li::before {
    background: var(--accent-gold);
}

.sambutan-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.sambutan-grid.sambutan-reverse {
    grid-template-columns: 1fr 260px;
}

.sambutan-img-wrap {
    position: relative;
    width: 100%;
    max-width: 260px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

.sambutan-img-wrap:hover {
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .sambutan-img-wrap {
        max-width: 220px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 576px) {
    .sambutan-img-wrap {
        max-width: 180px;
    }
}

.sambutan-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.sambutan-name-card {
    background: var(--primary-navy);
    color: white;
    padding: 1.25rem 1rem;
    text-align: center;
    border-top: 4px solid var(--accent-gold);
}

.sambutan-name-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.sambutan-name-card p {
    font-size: 0.8rem;
    opacity: 0.85;
    margin: 4px 0 0;
}

.sambutan-quote {
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 500;
    color: var(--secondary-blue);
    border-left: 5px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

[data-theme="dark"] .sambutan-quote {
    color: var(--accent-gold);
}

.sambutan-text p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.sambutan-reverse .sambutan-text {
    text-align: right;
}

@media (max-width: 992px) {
    .sambutan-reverse .sambutan-text {
        text-align: left;
    }
}

.sambutan-reverse .sambutan-quote {
    border-left: none;
    border-right: 5px solid var(--accent-gold);
    padding-left: 0;
    padding-right: 1.5rem;
}

@media (max-width: 992px) {
    .sambutan-reverse .sambutan-quote {
        border-right: none;
        border-left: 5px solid var(--accent-gold);
        padding-right: 0;
        padding-left: 1.5rem;
    }
}

/* Mobile responsive for sambutan grids */
@media (max-width: 992px) {
    .sambutan-grid,
    .sambutan-grid.sambutan-reverse {
        grid-template-columns: 1fr;
        gap: 0;
        justify-items: center;
    }

    .sambutan-grid .sambutan-img-wrap {
        order: -1;
    }

    .sambutan-grid .sambutan-text {
        order: 1;
        width: 100%;
    }
}

/* ==============================================
   Pendaftaran Form
   ============================================== */
.pendaftaran-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-blue);
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .info-card-header {
    color: var(--accent-gold);
}

.info-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.info-list li svg {
    color: var(--secondary-blue);
    flex-shrink: 0;
    margin-top: 3px;
}

[data-theme="dark"] .info-list li svg {
    color: var(--accent-gold);
}

.info-card-contact {
    border-top: 4px solid var(--accent-gold);
}

.info-card-contact h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-card-contact p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.contact-item svg {
    color: var(--secondary-blue);
}

[data-theme="dark"] .contact-item svg {
    color: var(--accent-gold);
}

.form-card-v2 {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.form-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-blue));
    color: white;
    padding: 2.25rem 2.5rem;
}

.form-card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: white;
}

.form-card-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.form-v2 {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group-v2 label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.required {
    color: #e53e3e;
    margin-left: 2px;
}

.form-group-v2 input,
.form-group-v2 textarea {
    padding: 12px 18px;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.form-group-v2 input:focus,
.form-group-v2 textarea:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 4px rgba(44, 125, 160, 0.15);
}

[data-theme="dark"] .form-group-v2 input:focus,
[data-theme="dark"] .form-group-v2 textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.15);
}

.form-group-v2 textarea {
    resize: vertical;
    min-height: 120px;
}

.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-light);
    border-radius: 14px;
    transition: var(--transition);
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: var(--secondary-blue);
    background: rgba(44, 125, 160, 0.02);
}

[data-theme="dark"] .file-upload-area:hover {
    border-color: var(--accent-gold);
    background: rgba(244, 162, 97, 0.02);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
    border: none;
    padding: 0;
}

.file-upload-placeholder {
    text-align: center;
    color: var(--text-light);
    padding: 1.5rem;
}

.file-upload-placeholder svg {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.file-upload-placeholder p {
    font-size: 0.95rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--text-dark);
}

.file-upload-placeholder small {
    font-size: 0.8rem;
    color: var(--text-light);
}

.file-selected-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--secondary-blue);
    font-size: 0.95rem;
    font-weight: 600;
}

[data-theme="dark"] .file-selected-info {
    color: var(--accent-gold);
}

.btn-submit-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-navy));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(44, 125, 160, 0.3);
}

.btn-submit-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 125, 160, 0.45);
    filter: brightness(1.05);
}

.pendaftaran-note {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.pendaftaran-note a {
    color: var(--secondary-blue);
    font-weight: 600;
    text-decoration: none;
}

[data-theme="dark"] .pendaftaran-note a {
    color: var(--accent-gold);
}

/* ==============================================
   Responsive – Sub Pages
   ============================================== */
@media (max-width: 992px) {
    .profil-section-grid,
    .visi-misi-grid,
    .pendaftaran-layout {
        grid-template-columns: 1fr;
    }

    .profil-founded-badge {
        right: 0;
        bottom: -15px;
    }

    .pendaftaran-info {
        order: 2;
    }

    .pendaftaran-form-wrap {
        order: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero-title {
        font-size: 2.25rem;
    }

    .news-grid-layout {
        grid-template-columns: 1fr;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   Program Page V2
   ============================================== */
.programs-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card-v2 {
    background: var(--bg-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.program-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.program-card-img {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card-v2:hover .program-card-img img {
    transform: scale(1.08);
}

.program-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: #121212;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.program-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.program-icon {
    width: 52px;
    height: 52px;
    background: rgba(44, 125, 160, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
}

[data-theme="dark"] .program-icon {
    background: rgba(244, 162, 97, 0.1);
    color: var(--accent-gold);
}

.program-card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.program-card-body > p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.program-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.program-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.program-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    background: var(--secondary-blue);
    border-radius: 50%;
}

[data-theme="dark"] .program-list li::before {
    background: var(--accent-gold);
}

/* Metode Grid */
.metode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.metode-item {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.metode-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.metode-img {
    height: 190px;
    overflow: hidden;
}

.metode-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.metode-item:hover .metode-img img {
    transform: scale(1.08);
}

.metode-body {
    padding: 1.5rem;
}

.metode-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.metode-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Program CTA */
.program-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-blue));
    padding: 90px 0;
    color: white;
}

.program-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.program-cta-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    display: block;
}

.program-cta-text {
    color: white;
}

.program-cta-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: white;
}

.program-cta-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.program-cta-text .btn-primary {
    background: white;
    color: var(--primary-navy);
    font-weight: 700;
}

.program-cta-text .btn-primary:hover {
    background: var(--accent-gold);
    color: #121212;
    transform: translateY(-2px);
}

/* ==============================================
   Kontak Page
   ============================================== */
.kontak-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    align-items: start;
}

.kontak-photo-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.kontak-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.kontak-photo-label {
    background: var(--secondary-blue);
    color: white;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

[data-theme="dark"] .kontak-photo-label {
    background: var(--accent-gold);
    color: #121212;
}

.kontak-info-card {
    background: var(--bg-white);
    border-radius: 18px;
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.kontak-info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--border-light);
}

.kontak-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    align-items: flex-start;
}

.kontak-item:last-child {
    margin-bottom: 0;
}

.kontak-icon {
    width: 46px;
    height: 46px;
    background: rgba(44, 125, 160, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    flex-shrink: 0;
}

[data-theme="dark"] .kontak-icon {
    background: rgba(244, 162, 97, 0.1);
    color: var(--accent-gold);
}

.kontak-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.kontak-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==============================================
   Responsive – Program & Kontak
   ============================================== */
@media (max-width: 992px) {
    .program-cta-inner,
    .kontak-layout {
        grid-template-columns: 1fr;
    }

    .program-cta-img {
        max-height: 280px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .programs-grid-v2,
    .metode-grid {
        grid-template-columns: 1fr;
    }

    .program-cta-text h2 {
        font-size: 1.8rem;
    }
}

/* ==============================================
   Team / Staff Grid (Profil Page)
   ============================================== */
.team-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 15px 5px 25px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-blue) rgba(0, 0, 0, 0.05);
}

.team-slider::-webkit-scrollbar {
    height: 6px;
}

.team-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.team-slider::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 10px;
}

[data-theme="dark"] .team-slider::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
}

.team-slider .team-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .team-slider .team-card {
        flex: 0 0 210px;
    }
}

.team-card {
    background: var(--bg-white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.team-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.08);
}

.team-info {
    padding: 1.25rem 1.2rem 1.75rem;
}

.team-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.team-role {
    font-size: 0.85rem;
    color: var(--secondary-blue);
    font-weight: 600;
}

[data-theme="dark"] .team-role {
    color: var(--accent-gold);
}


/* ==========================================================================
   Responsiveness & Clean Layout Refinements
   ========================================================================== */

/* Mobile Register Button inside Menu */
.mobile-menu-footer {
    display: none;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.btn-register-mobile {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-navy));
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(44, 125, 160, 0.3);
    transition: var(--transition);
}

.btn-register-mobile:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Lightbox Fade animation */
.lightbox {
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Header and Spacing Refinements */
@media (max-width: 992px) {
    .mobile-menu-footer {
        display: block;
    }
    
    .navbar {
        height: 70px !important;
    }
    
    .navbar-extra .btn-register-nav {
        display: none !important;
    }
    
    .logo-img {
        height: 50px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 45px !important;
    }
    
    .navbar-menu.active {
        top: 70px !important;
        height: calc(100vh - 70px) !important;
        border-top: 1px solid var(--border-light);
        padding: 2rem !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 65px !important;
    }
    
    .logo-img {
        height: 45px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 40px !important;
    }
    
    .navbar-menu.active {
        top: 65px !important;
        height: calc(100vh - 65px) !important;
        padding: 1.5rem !important;
    }
}

/* Mobile Spacing & Padding Refinements */
@media (max-width: 768px) {
    .page-section {
        padding: 50px 0 !important;
    }
    
    .section-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .profil-heading, 
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .page-hero {
        padding: 120px 0 60px !important;
    }
    
    .page-hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .page-hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }
    
    .container {
        padding: 0 20px !important;
    }
}