:root {
    /* Brand Colors */
    --blue-1: #90b4ce;
    --blue-2: #3da9fc;
    --blue-3: #ef4565;
    --white: #fffffe;
    --navy: #094067;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-600: #5f6c7b;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 100%);
    --gradient-accent: linear-gradient(to right, var(--blue-1), var(--blue-2));

    /* Spacing Scale (Fluid) */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-6: 3rem;
    --space-8: 4rem;

    /* Typography Scale (Fluid) */
    --font-main: 'Montserrat', sans-serif;
    --font-h1: clamp(2rem, 5vw, 3.5rem);
    --font-h2: clamp(1.75rem, 3.5vw, 3rem);
    --font-body: clamp(0.95rem, 1.2vw, 1.0625rem);

    /* Spacing */
    --container-width: 1200px;
    --header-height: clamp(60px, 8vh, 80px);
    --section-padding: clamp(3rem, 10vh, 6rem) 1rem;
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: clip;
    width: 100%;
    min-width: 0;
}

#main-content {
    min-width: 0;
    width: 100%;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--blue-2);
    color: white;
    padding: 1rem 2rem;
    z-index: 2000;
    transition: top 0.3s ease;
    border-radius: 0 0 10px 0;
    font-weight: bold;
}

.skip-link:focus {
    top: 0;
}

/* Global Focus States */
:focus-visible {
    outline: 3px solid var(--blue-2) !important;
    outline-offset: 3px !important;
}

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

::-webkit-scrollbar-track {
    background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-2);
    border-radius: 5px;
    border: 2px solid var(--slate-100);
}

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

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    min-width: 0;
}

@media (min-width: 768px) {
    .container {
        padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    outline: none;
    min-height: 48px; /* Tappable area >= 44pt */
}

.btn:focus-visible {
    outline: 3px solid var(--blue-1);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--blue-2);
}

.section-title {
    font-size: var(--font-h2);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
    color: var(--navy);
}

.section-subtitle {
    text-align: center;
    color: var(--slate-600);
    max-width: 65ch;
    margin: 0 auto var(--space-6) auto;
    font-size: var(--font-body);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
    /* Initial state */
    padding: 1rem 0;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.header .container > nav {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

/* Mobile: jangan sisakan kolom kosong di tengah — hamburger menempel kanan */
@media (max-width: 1023px) {
    .header .container > nav {
        flex: 0 0 0;
        width: 0;
        min-width: 0;
        overflow: visible;
        pointer-events: none;
    }

    .header .container > nav .nav-menu {
        pointer-events: auto;
    }

    .hamburger {
        margin-left: auto;
    }
}

.logo {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    flex-shrink: 0;
    min-width: 0;
}

.header.scrolled .logo {
    color: var(--blue-2);
}

/* Nav - Mobile First Default (Mobile Menu) */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    gap: 2.5rem;
    display: flex;
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    font-weight: 600;
    color: var(--navy);
    font-size: 1.25rem;
    padding: 0.75rem 1rem;
    display: block;
    width: 100%;
    text-align: center;
    transition: color 0.3s ease;
}

.nav-menu .btn {
    width: 100%;
    font-size: 1.1rem;
}

/* Desktop Enhancement Overlay */
@media (min-width: 1024px) {
    .header .container > nav {
        flex: 1 1 auto;
        width: auto;
        pointer-events: auto;
    }

    .header {
        padding: 1.5rem 0;
    }

    .nav-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        gap: 2rem;
    }

    .nav-link {
        font-size: 1rem;
        font-weight: 500;
        color: var(--slate-200);
        width: auto;
        padding: 0;
    }

    .header.scrolled .nav-link {
        color: var(--slate-600);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--white);
    }

    .header.scrolled .nav-link:hover,
    .header.scrolled .nav-link.active {
        color: var(--blue-2);
    }

    .nav-menu .btn {
        width: auto;
        font-size: 1rem;
    }
}

/* Mobile Toggle - Visible by Default */
.hamburger {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 1100;
    position: relative;
    min-width: 48px;
    min-height: 48px;
}

@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 5px;
}

.header.scrolled .bar {
    background-color: var(--navy);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger.active .bar {
    background-color: var(--navy) !important;
    /* Ensure visibility on open */
}

/* Keyframes */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   SECTION STYLES
   ========================================= */

/* Hero Section */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    padding-top: var(--header-height);
    background-color: var(--blue-2);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), rgba(37, 99, 235, 0.4));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.hero-logo {
    height: 154px;
    width: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 2rem auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

@media (min-width: 1024px) {
    .hero-logo {
        height: 200px;
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: var(--font-h1);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: var(--space-3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: var(--font-body);
    max-width: 60ch;
    margin: 0 auto var(--space-4) auto;
    opacity: 0.95;
    text-wrap: balance;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-cta {
        flex-direction: row;
    }
}

/* Achievements */
.achievements {
    background-color: var(--white);
    padding: var(--section-padding);
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    border-radius: 2rem 2rem 0 0;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.achievement-card {
    padding: 1.5rem;
    background: var(--slate-100);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--blue-2);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.achievement-label {
    font-weight: 600;
    color: var(--slate-600);
}

/* Programs */
.programs {
    padding: var(--section-padding);
    background-color: var(--slate-100);
}

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

@media (min-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
}

.program-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--blue-1);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.program-card,
.btn,
.team-card,
.gallery-item img {
    will-change: transform, box-shadow;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 700;
}

.card-desc {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
}

.card-features {
    margin-bottom: 2rem;
}

.card-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--slate-600);
    font-size: 0.9rem;
}

.card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--blue-1);
    font-weight: bold;
}

.btn-text {
    color: var(--blue-2);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Team */
.team {
    padding: var(--section-padding);
    background: var(--white);
}

/* Team Slider */
.team-scroll-wrapper {
    overflow-x: auto;
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look if desired, but good to show for usability */
}

.team-grid {
    display: flex;
    gap: 2rem;
    min-width: min-content;
    /* Ensure it expands */
}

.team-card {
    min-width: clamp(240px, 40vw, 280px);
    max-width: clamp(240px, 40vw, 280px);
    flex-shrink: 0;
    scroll-snap-align: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    padding: var(--space-3);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--slate-100);
}

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

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--blue-1);
    padding: 3px;
    background-color: var(--white);
}

.team-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--blue-2);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.team-cert {
    font-size: 0.85rem;
    color: var(--slate-600);
}

/* Schedule */
.schedule {
    padding: var(--section-padding);
    background: var(--gradient-hero);
    color: var(--white);
}

.schedule .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.schedule-wrapper {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--slate-200);
    color: var(--navy);
}

.schedule-table th {
    background-color: var(--slate-100);
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.schedule-table tr:hover td {
    background-color: var(--slate-100);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}
/* Schedule Mobile First (Stacked Cards) */
.schedule-table,
.schedule-table thead,
.schedule-table tbody,
.schedule-table th,
.schedule-table td,
.schedule-table tr {
    display: block;
}

.schedule-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.schedule-table tr {
    border: 1px solid var(--slate-200);
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--white);
}

.schedule-table td {
    border: none;
    border-bottom: 1px solid var(--slate-100);
    position: relative;
    padding-left: 40% !important;
    text-align: right;
    font-size: 0.95rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.schedule-table td:last-child {
    border-bottom: none;
}

.schedule-table td::before {
    position: absolute;
    left: 1rem;
    width: 35%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: 700;
    color: var(--blue-2);
}

.schedule-table td:nth-of-type(1):before { content: "Hari: "; }
.schedule-table td:nth-of-type(2):before { content: "Waktu: "; }
.schedule-table td:nth-of-type(3):before { content: "Kelas: "; }
.schedule-table td:nth-of-type(4):before { content: "Lokasi: "; }

/* Schedule Desktop Enhancement */
@media (min-width: 768px) {
    .schedule-table {
        display: table;
        border-collapse: collapse;
    }

    .schedule-table thead {
        display: table-header-group;
    }

    .schedule-table thead tr {
        position: static;
        display: table-row;
    }

    .schedule-table tbody {
        display: table-row-group;
    }

    .schedule-table tr {
        display: table-row;
        border: none;
        background: transparent;
        margin-bottom: 0;
    }

    .schedule-table th,
    .schedule-table td {
        display: table-cell;
        padding: 1.25rem !important;
        text-align: left;
        border-bottom: 1px solid var(--slate-200);
        background: transparent;
        padding-left: 1.25rem !important;
    }

    .schedule-table td::before {
        display: none;
    }

    .schedule-table tr:hover td {
        background-color: var(--slate-100);
    }
}


/* Pricing */
.pricing {
    padding: var(--section-padding);
    background-color: var(--slate-100);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.popular {
    border: 2px solid var(--blue-2);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.15);
    z-index: 1;
}

@media (min-width: 1024px) {
    .pricing-card.popular {
        transform: scale(1.05);
    }
    
    .pricing-card.popular:hover {
        transform: scale(1.05) translateY(-5px);
    }
}

.pricing-card .btn {
    width: 100%;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
    margin: 1.5rem 0;
    letter-spacing: -0.05em;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-600);
    letter-spacing: normal;
}

.btn-outline-dark {
    border: 2px solid var(--navy);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

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

.price-features {
    margin-bottom: 2.5rem;
}

.price-features li {
    margin-bottom: 1rem;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-features li::before {
    content: "•";
    color: var(--blue-2);
    font-size: 1.5rem;
    line-height: 0.5;
}

/* Testimonials */
.testimonials {
    padding: var(--section-padding);
    background: var(--white);
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 1.5rem 2rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-2) var(--slate-100);
}

@media (max-width: 768px) {
    .testimonial-carousel {
        gap: 1.25rem;
        padding: 1rem 1.5rem 2rem 1.5rem;
        margin: 0 -1.5rem;
        width: auto;
        scroll-padding: 0 1.5rem;
    }
}

.testimonial-carousel::-webkit-scrollbar {
    height: 8px;
}

.testimonial-carousel::-webkit-scrollbar-track {
    background: var(--slate-100);
    border-radius: 4px;
}

.testimonial-carousel::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 4px;
}

.testimonial-card {
    min-width: 320px;
    max-width: 450px;
    background: var(--slate-100);
    padding: 2.5rem;
    border-radius: 1.5rem;
    scroll-snap-align: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: 280px;
        padding: 1.5rem;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        min-width: 250px;
        max-width: 250px;
        padding: 1.5rem 1.25rem;
        margin: 0;
        scroll-snap-align: center;
    }
}

.stars {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testi-text {
    font-style: italic;
    margin: 1rem 0 1.5rem 0;
    color: var(--slate-600);
    font-size: 1.1rem;
    line-height: 1.7;
}

.testi-author {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
}

/* Gallery */
.gallery {
    padding: var(--section-padding);
}

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

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact — mobile-first: stack; two columns from tablet up */
.contact {
    padding: var(--section-padding);
    background: var(--navy);
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .contact-wrapper {
        gap: 4rem;
    }
}

.contact-info {
    min-width: 0;
    width: 100%;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .contact-actions {
        justify-content: center;
        align-items: flex-end;
        gap: 2rem;
    }
}

/* Map: full width, responsive height (no clipped iframe on narrow screens) */
.contact .map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    max-height: 320px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact .map-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-actions .socials {
    justify-content: center;
    margin: 0;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .contact-actions .socials {
        justify-content: flex-end;
    }
}

.contact-actions .wa-cta {
    width: 100%;
}

.contact-actions .wa-cta .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.btn-wa-cta {
    font-size: 1.05rem;
    padding: 0.875rem 1.5rem;
    gap: 0.5rem;
}

.wa-cta-icon {
    margin-right: 0.35rem;
}

@media (min-width: 768px) {
    .btn-wa-cta {
        font-size: 1.1rem;
        padding: 1rem 2.25rem;
    }
}

@media (min-width: 768px) {
    .contact-actions .wa-cta {
        width: auto;
    }

    .contact-actions .wa-cta .btn {
        width: auto;
    }
}

.contact-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-detail-row:last-child {
    margin-bottom: 0;
}

.contact-lead {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.contact-details {
    color: #cbd5e1;
}

.contact-details strong {
    color: var(--white);
}

.contact-info h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.contact-info p {
    font-size: 1.05rem;
    color: var(--slate-200);
    margin-bottom: 1.25rem;
}

.info-item {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.info-item strong {
    color: var(--blue-1);
    display: block;
    margin-bottom: 0.25rem;
}

.socials {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.socials span {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.socials span:hover {
    background: var(--blue-1);
}

/* Gallery Captions */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin: 0;
}

.gallery-item img {
    border-radius: 1rem;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 2rem 1rem 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover figcaption {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 1.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--navy);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
}

.modal-body img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--blue-1);
}

.modal-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.modal-body p {
    color: var(--slate-600);
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Social Media Logos */
.social-link img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

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

/* Updated Testimonials Images */
.testi-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testi-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testi-header .stars {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Form styles removed as form is deleted */

/* Footer */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 1.5rem 0;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: clamp(0.75rem, 2.8vw, 0.875rem);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer p {
    margin: 0 auto;
    line-height: 1.6;
    max-width: 52rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 0.5rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Final Responsive Adjustments */
@media (min-width: 768px) {
    .btn-primary,
    .btn-outline {
        width: auto;
    }
}

/* =========================================
   BREAKPOINTS (Senior Engineer Standard)
   ========================================= */

/* Mobile */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .nav-menu {
        padding-top: var(--header-height);
        gap: var(--space-4);
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding-inline: 2rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3rem);
    }

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

/* Small Laptop */
@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        max-width: 1100px;
    }
}

/* Large Desktop */
@media (min-width: 1281px) {
    .container {
        max-width: 1200px;
    }

    .hero-content {
        transform: translateY(-20px);
    }
}

/* Auth Modal Specifics */
.auth-modal {
    max-width: 400px;
    background: linear-gradient(135deg, var(--white) 0%, var(--slate-100) 100%);
}

.auth-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.input-group-auth {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group-auth input {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--slate-200);
    font-size: 16px; /* Base 16px to prevent iOS auto-zoom */
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
    outline: none;
    min-height: 48px;
}

.input-group-auth input:focus {
    border-color: var(--blue-2);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(61, 169, 252, 0.1);
}

.error-msg {
    color: var(--blue-3);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    animation: shake 0.4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.4s ease;
    border-color: var(--blue-3) !important;
}

/* Embedded Absensi Form Section - Full Screen Mode */
.absensi-form-section {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

.absensi-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--white);
}

.absensi-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Floating Back Button */
.btn-back-floating {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10000;
    background: var(--blue-2);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-back-floating:hover {
    background: var(--navy);
    transform: scale(1.05) translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-icon {
    font-size: 1.2rem;
}

/* Loading State for Full Screen */
.absensi-iframe-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid var(--slate-200);
    border-top: 4px solid var(--blue-2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for the back button */
@media (max-width: 480px) {
    .btn-back-floating {
        top: 15px;
        left: 15px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .back-text {
        display: none;
        /* Only show icon on very small screens if needed, or keep text */
    }

    .btn-back-floating .back-text {
        display: inline;
        /* actually lets keep it */
    }
}

/* Ensure no scroll on body when form is open */
body.form-open {
    overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Iframe Error Handling */
.iframe-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.iframe-error h3 {
    color: var(--blue-3);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.iframe-error p {
    color: var(--slate-600);
    margin-bottom: 1.5rem;
}

.iframe-error .btn {
    background: var(--blue-2);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.iframe-error .btn:hover {
    background: var(--blue-1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 169, 252, 0.3);
}

/* Additional responsive improvements */
@media (max-width: 480px) {
    .btn-back-floating .back-text {
        display: inline;
    }
}