:root {
    --primary: #1a3a5f;
    --gold: #D4AF37;
    --accent: #4a90e2;
    --navy: #1a3a5f;
    --bg-gradient-start: #0f172a;
    --bg-gradient-mid: #1e3a5f;
    --bg-gradient-end: #2d4a6f;
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: url('imgasset/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Different backgrounds for each page */
body.page-smk {
    background: url('imgasset/backgroundSMK.jpeg') no-repeat center center fixed;
    background-size: cover;
}

body.page-smp {
    background: url('imgasset/backgroundSMP.jpeg') no-repeat center center fixed;
    background-size: cover;
}

body.page-mi {
    background: url('imgasset/backgroundMI.jpeg') no-repeat center center fixed;
    background-size: cover;
}

body.page-mts {
    background: url('imgasset/backgroundMTS.jpeg') no-repeat center center fixed;
    background-size: cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 0;
}

/* Blur effect when form is open */
body.form-open::before {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
    transition: backdrop-filter 0.3s ease, background 0.3s ease;
}

body.form-open .form-container {
    z-index: 2000;
    position: relative;
    pointer-events: auto;
    max-height: 85vh;
    overflow-y: auto;
}

/* NAVIGASI FIXED – HANYA TEKS */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(0.75rem, 2vw, 1.1rem);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    letter-spacing: clamp(0.5px, 1vw, 1px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    flex-wrap: wrap;
    align-items: center;
}
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 20px;
    border-radius: 30px;
    transition: 0.3s;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    position: relative;
}

/* Underline animation for nav links */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 10px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

.nav-links a:hover {
    background: var(--accent);
    color: #fff;
}

/* Hamburger menu for mobile and tablet */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hamburger animation when active */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Improved footer responsive */
footer {
    background: rgba(0,0,0,0.9);
    text-align: center;
    padding: 30px 15px;
    font-size: 0.95rem;
}

/* LOGO GABUNG.PNG */
.logo-header {
    text-align: center;
    padding: 85px 20px 30px;
}
.logo-header img {
    max-width: 150px;
    width: 50%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.6));
    /* Floating animation */
    animation: float 3s ease-in-out infinite;
    will-change: transform;
}

/* Exception for index.html logo */
.logo-header.logo-index img {
    max-width: 500px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* HERO TEXT – RESPONSIF */
.hero {
    text-align: center;
    padding: 0 20px 40px;
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-family: 'Amiri', serif;
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8), 0 0 30px rgba(255,255,255,0.4), 0 0 60px rgba(255,255,255,0.2);
    color: #ffffff;
    filter: brightness(1.1);
    /* Fade-in animation */
    animation: fadeInUp 0.8s ease-out;
    will-change: transform, opacity;
}
.hero h1:nth-of-type(2) {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}
.hero p {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 0 20px rgba(255,255,255,0.3);
    color: #ffffff;
    filter: brightness(1.1);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
    will-change: transform, opacity;
}
.hero p:nth-of-type(2) {
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Fade-in Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TIGA TOMBOL WHATSAPP */
.wa-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    margin: 40px 0 60px;
}
.btn-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 380px;
    padding: 16px 24px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 28px rgba(74,144,226,0.4);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    filter: brightness(1.05);
}
.btn-wa:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(74,144,226,0.4);
}
.btn-wa img { width: 36px; height: 36px; }

/* FORM TOGGLE BUTTON */
.form-toggle-container {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    padding: 0 20px;
}

.btn-show-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    max-width: 380px;
    padding: 16px 24px;
    background: var(--gold);
    color: #1a2a3f;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 28px rgba(212,175,55,0.4);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    filter: brightness(1.05);
}

.btn-show-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(212,175,55,0.4);
}

/* PILIH SEKOLAH */
.school-selection {
    text-align: center;
    padding: 40px 20px 80px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Amiri', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--gold);
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 30px rgba(212,175,55,0.4);
    filter: brightness(1.1);
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 10px;
}

.school-card {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(26,58,95,0.9), rgba(45,74,111,0.85));
    border: 3px solid var(--gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(212,175,55,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out backwards;
    will-change: transform, box-shadow;
}

/* Staggered animation delays for school cards */
.school-card:nth-child(1) { animation-delay: 0.7s; }
.school-card:nth-child(2) { animation-delay: 0.8s; }
.school-card:nth-child(3) { animation-delay: 0.9s; }
.school-card:nth-child(4) { animation-delay: 1.0s; }

.card-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(26,58,95,0.8) 100%);
    transition: background 0.4s ease;
}

.card-content {
    padding: 15px;
    text-align: center;
    position: relative;
}

.card-icon {
    display: inline-block;
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    animation: float 3s ease-in-out infinite;
}

.school-card:nth-child(2) .card-icon { animation-delay: 0.5s; }
.school-card:nth-child(3) .card-icon { animation-delay: 1s; }
.school-card:nth-child(4) .card-icon { animation-delay: 1.5s; }

.school-card h3 {
    font-family: 'Amiri', serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7), 0 0 20px rgba(255,255,255,0.2);
    filter: brightness(1.1);
    transition: color 0.3s ease;
}

.school-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    filter: brightness(1.05);
}

.card-btn {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold), #f0c14b);
    color: var(--navy);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}

/* Hover effects */
.school-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(212,175,55,0.4);
    border-color: #fff;
}

.school-card:hover .card-image img {
    transform: scale(1.1);
}

.school-card:hover .card-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(26,58,95,0.95) 100%);
}

.school-card:hover h3 {
    color: var(--gold);
}

.school-card:hover .card-btn {
    background: linear-gradient(135deg, #fff, var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,0.5);
}

/* Glow effect on hover */
.school-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(45deg, var(--gold), var(--accent), var(--gold));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 200% 200%;
}

.school-card:hover::before {
    opacity: 1;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* FORM MODAL */
.form-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    padding: 20px 0;
}
.form-container {
    background: linear-gradient(135deg, #1a2a3f, #2a3a5f);
    margin: 50px auto;
    max-width: 600px;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212,175,55,0.3);
    animation: slideIn 0.4s;
    position: relative;
}
.form-header {
    text-align: center;
    margin-bottom: 25px;
    color: var(--gold);
    font-family: 'Amiri', serif;
}
.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 0 20px rgba(255,255,255,0.3);
    color: #ffffff;
    filter: brightness(1.1);
}
.form-section {
    margin-bottom: 25px;
}
.form-section h3 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 5px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 15px rgba(255,255,255,0.2);
    filter: brightness(1.05);
}
.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    background: rgba(0,0,0,0.25);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(0,0,0,0.35);
    box-shadow: 0 0 10px rgba(212,175,55,0.3);
}
.form-group input::placeholder {
    color: rgba(255,255,255,0.6);
}
.form-note {
    background: rgba(212,175,55,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--gold);
}
.form-note p {
    margin: 0;
    color: #ffffff;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 15px rgba(255,255,255,0.2);
    filter: brightness(1.05);
}
.form-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}
.btn-submit, .btn-cancel {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}
.btn-submit {
    background: var(--gold);
    color: var(--navy);
}
.btn-submit:hover {
    background: #f0c14b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212,175,55,0.4);
}
.btn-cancel {
    background: rgba(0,0,0,0.25);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.4);
    filter: brightness(1.05);
}
.btn-cancel:hover {
    background: rgba(0,0,0,0.35);
}
.form-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}
.form-close:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212,175,55,0.6);
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hover effects for better UX */
.nav-links a:active {
    transform: scale(0.95);
}

.btn-wa:active {
    transform: translateY(-2px) scale(0.98);
}

.brosur-item:active {
    transform: translateY(-4px) scale(0.98);
}

/* BROSUR GALLERY */
.brosur-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}
.brosur-gallery {
    display: grid;
    grid-template-rows: auto auto;
    gap: 30px;
    justify-items: center;
}
.brosur-top {
    grid-row: 1;
    justify-self: center;
}
.brosur-bottom {
    grid-row: 2;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.brosur-item {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brosur-item:hover {
    transform: translateY(-8px);
}
.brosur-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    border: 5px solid var(--accent);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    background: white;
    transition: all 0.3s ease;
    filter: brightness(1.15);
}
.brosur-item:hover img {
    box-shadow: 0 18px 40px rgba(0,0,0,0.8);
    border-color: #fff;
}
.brosur-title {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 0 20px rgba(255,255,255,0.3), 0 0 40px rgba(255,255,255,0.1);
    filter: brightness(1.05);
}

/* IMAGE MODAL */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    animation: fadeIn 0.3s;
}
.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    border: 5px solid var(--accent);
    box-shadow: 0 0 30px rgba(74,144,226,0.3);
    animation: zoomIn 0.3s;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}
.modal-close:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(74,144,226,0.6);
}
.brosur-item {
    cursor: pointer;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.8); }
    to { transform: translate(-50%, -50%) scale(1); }
}
/* Special sizing for top image */
.brosur-top img {
    max-width: 400px;
    max-height: 500px;
}
/* Special sizing for bottom images */
.brosur-bottom .brosur-item img {
    max-width: 320px;
    max-height: 450px;
}

/* RINCIAN BIAYA BUTTON */
.rincian-biaya-container {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    padding: 0 20px;
}

.btn-rincian-biaya {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 380px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--gold), #f0c14b);
    color: #1a2a3f;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 28px rgba(212,175,55,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    filter: brightness(1.05);
    letter-spacing: 0.5px;
}

.btn-rincian-biaya:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(212,175,55,0.5);
    background: linear-gradient(135deg, #f0c14b, var(--gold));
}

.btn-rincian-biaya:active {
    transform: translateY(-2px);
}

/* RINCIAN BIAYA MODAL */
.rincian-biaya-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    padding: 20px 0;
}

.rincian-biaya-container-modal {
    background: linear-gradient(135deg, #1a2a3f, #2a3a5f);
    margin: 30px auto;
    max-width: 900px;
    width: 90%;
    padding: 35px;
    border-radius: 20px;
    border: 3px solid var(--gold);
    box-shadow: 0 0 40px rgba(212,175,55,0.4), 0 10px 40px rgba(0,0,0,0.5);
    animation: slideIn 0.4s;
    position: relative;
}

.rincian-biaya-header {
    text-align: center;
    margin-bottom: 25px;
    color: var(--gold);
    font-family: 'Amiri', serif;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212,175,55,0.3);
}

.rincian-biaya-header h2 {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 0 20px rgba(255,255,255,0.3);
    color: #ffffff;
    filter: brightness(1.1);
    letter-spacing: 0.5px;
}

.rincian-biaya-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rincian-biaya-option {
    background: rgba(0,0,0,0.25);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    filter: brightness(1.05);
}

.rincian-biaya-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.rincian-biaya-option h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 0 15px rgba(255,255,255,0.2);
    filter: brightness(1.1);
}

.rincian-biaya-image-container {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    border-radius: 15px;
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.rincian-biaya-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.rincian-biaya-image-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: white;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.rincian-biaya-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: background 0.3s ease;
    pointer-events: none;
}

.rincian-biaya-image-container:hover .rincian-biaya-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.rincian-biaya-icon {
    font-size: 3rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.rincian-biaya-image-container:hover .rincian-biaya-icon {
    opacity: 1;
    transform: scale(1);
}

.rincian-biaya-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.rincian-biaya-close:hover {
    color: var(--gold);
    text-shadow: 0 0 15px rgba(212,175,55,0.8);
    background: rgba(212,175,55,0.2);
    transform: rotate(90deg);
}

/* FEE IMAGE MODAL */
.fee-image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    animation: fadeIn 0.3s;
}

.fee-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fee-image-content {
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    border: 5px solid var(--gold);
    box-shadow: 0 0 30px rgba(212,175,55,0.3);
    animation: zoomIn 0.3s;
    object-fit: contain;
    background: white;
}

.fee-image-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 3001;
}

.fee-image-close:hover {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212,175,55,0.6);
}

/* HP KHUSUS */
@media (max-width: 480px) {
    /* Navigation improvements */
    nav {
        padding: 20px 0;
    }
    /* Navbar title mobile */
    .nav-title {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    /* Larger burger menu for small phones */
    .menu-toggle {
        padding: 6px;
        left: 15px;
        right: auto;
    }
    .menu-toggle span {
        width: 28px;
        height: 3px;
        margin: 2px 0;
        border-radius: 3px;
    }
    /* Update animation transforms for larger spans */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -3px);
    }
    .nav-links {
        gap: 8px;
        padding: 0 10px;
    }
    .nav-links a {
        font-size: 0.75rem;
        padding: 6px 10px;
        border-radius: 20px;
    }
    
    /* Logo improvements */
    .logo-header {
        padding: 70px 15px 25px;
    }
    .logo-header img {
        max-width: 40%;
        width: auto;
        height: auto;
    }
    
    /* Hero text improvements */
    .hero {
        padding: 0 15px 30px;
    }
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 8px;
    }
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    /* WhatsApp buttons improvements */
    .wa-buttons {
        padding: 0 15px;
        margin: 30px 0 40px;
        gap: 15px;
    }
    .btn-wa {
        font-size: 0.9rem;
        padding: 12px 16px;
        max-width: 100%;
    }
    .btn-wa img {
        width: 28px;
        height: 28px;
    }
    
    /* Form toggle button mobile */
    .form-toggle-container {
        padding: 0 15px;
        margin: 30px auto;
    }
    .btn-show-form {
        font-size: 0.9rem;
        padding: 12px 16px;
        max-width: 100%;
    }
    
    /* School selection mobile */
    .school-selection {
        padding: 30px 15px 60px;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    .school-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
    }
    .card-image {
        height: 120px;
    }
    .card-icon {
        font-size: 1.8rem;
    }
    .school-card h3 {
        font-size: 1.1rem;
    }
    .school-card p {
        font-size: 0.8rem;
    }
    .card-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
    
    /* Brosur gallery improvements */
    .brosur-container {
        padding: 0 15px;
        margin: 30px auto;
    }
    .brosur-gallery {
        gap: 20px;
    }
    .brosur-top img {
        max-width: 260px;
        max-height: 350px;
    }
    .brosur-bottom {
        gap: 15px;
    }
    .brosur-bottom .brosur-item img {
        max-width: 220px;
        max-height: 300px;
    }
    .brosur-title {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    
    /* Form Modal Mobile improvements */
    .form-container {
        margin: 15px;
        padding: 15px;
        max-width: calc(100% - 30px);
        border-radius: 15px;
    }
    .form-header {
        margin-bottom: 20px;
    }
    .form-header h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    .form-header p {
        font-size: 0.9rem;
    }
    .form-section {
        margin-bottom: 20px;
    }
    .form-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    .form-group {
        margin-bottom: 12px;
    }
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    .form-group input {
        padding: 10px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    .form-note {
        padding: 12px;
        margin-bottom: 15px;
        font-size: 0.85rem;
    }
    .form-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    .btn-submit, .btn-cancel {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .form-close {
        top: 12px;
        right: 15px;
        font-size: 28px;
    }
    
    /* Rincian Biaya Mobile Responsive */
    .rincian-biaya-container {
        padding: 0 15px;
        margin: 30px auto;
    }
    .btn-rincian-biaya {
        font-size: 0.9rem;
        padding: 12px 16px;
        max-width: 100%;
    }
    
    /* Form toggle button mobile */
    .form-toggle-container {
        padding: 0 15px;
        margin: 30px auto;
    }
    .btn-show-form {
        font-size: 0.9rem;
        padding: 12px 16px;
        max-width: 100%;
    }
    .rincian-biaya-container-modal {
        margin: 15px auto;
        padding: 20px;
        max-width: calc(100% - 30px);
        border-radius: 15px;
    }
    .rincian-biaya-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    .rincian-biaya-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0;
    }
    .rincian-biaya-image-container {
        max-height: 60vh;
        padding: 15px;
    }
    .rincian-biaya-image-container img {
        max-height: 60vh;
    }
    .rincian-biaya-icon {
        font-size: 2rem;
    }
    .rincian-biaya-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    .fee-image-close {
        top: -40px;
        font-size: 30px;
    }
    
    /* Image modal improvements */
    .modal-content {
        max-width: 95%;
        max-height: 85%;
        border-radius: 10px;
    }
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}

/* SMALL TABLET */
@media (min-width: 481px) and (max-width: 639px) {
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 0.85rem; padding: 7px 15px; }
    .nav-title { display: none; }
    .logo-header { padding-top: 80px; }
    .logo-header img { max-width: 120px; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.1rem; }
    .btn-wa { font-size: 1rem; padding: 14px 20px; }
    .brosur-gallery { gap: 25px; }
    .brosur-top img { max-width: 320px; max-height: 420px; }
    .brosur-bottom { gap: 20px; }
    .brosur-bottom .brosur-item img { max-width: 260px; max-height: 350px; }
    .brosur-title { font-size: 1rem; }
    
    /* Form modal for small tablet */
    .form-container {
        margin: 30px;
        padding: 25px;
        max-width: calc(100% - 60px);
    }
    .form-header h2 { font-size: 1.6rem; }
    .form-section h3 { font-size: 1.15rem; }
}

/* TABLET & DESKTOP → TOMBOL JADI HORIZONTAL */
@media (min-width: 640px) {
    .wa-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .btn-wa {
        width: auto;
        min-width: 280px;
        max-width: 320px;
    }
    .logo-header img { max-width: 140px; }
}

/* TABLET */
@media (min-width: 640px) and (max-width: 1023px) {
    .nav-links { gap: 25px; }
    .nav-links a { font-size: 0.95rem; padding: 8px 18px; }
    .nav-title { display: none; }
    .brosur-gallery { gap: 25px; }
    .brosur-top img { max-width: 350px; max-height: 450px; }
    .brosur-bottom { gap: 25px; }
    .brosur-bottom .brosur-item img { max-width: 280px; max-height: 380px; }
    
    /* Form modal for tablet */
    .form-container {
        margin: 40px auto;
        padding: 30px;
        max-width: 90%;
    }
    .form-header h2 { font-size: 1.7rem; }
    .form-section h3 { font-size: 1.2rem; }
}
    
    /* School selection tablet */
    .school-selection {
        padding: 35px 20px 70px;
    }
    .school-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .card-image {
        height: 130px;
    }
    .school-card h3 {
        font-size: 1.15rem;
    }


/* LARGE DESKTOP */
@media (min-width: 1024px) {
    .nav-links { gap: 35px; }
    .nav-links a { font-size: 1.1rem; padding: 10px 22px; }
    .nav-title { display: none; }
    .logo-header img { max-width: 150px; }
    .brosur-gallery { gap: 30px; }
    .brosur-top img { max-width: 450px; max-height: 550px; }
    .brosur-bottom { gap: 35px; }
    .brosur-bottom .brosur-item img { max-width: 320px; max-height: 450px; }
    
    /* Form modal for desktop */
    .form-container {
        margin: 60px auto;
        padding: 35px;
        max-width: 650px;
    }
    .form-header h2 { font-size: 2rem; }
    .form-section h3 { font-size: 1.3rem; }
}

/* EXTRA LARGE DESKTOP */
@media (min-width: 1440px) {
    .nav-links { gap: 45px; }
    .nav-links a { font-size: 1.2rem; padding: 12px 25px; }
    .nav-title { display: none; }
    .logo-header img { max-width: 170px; }
    .brosur-gallery { gap: 35px; }
    .brosur-top img { max-width: 500px; max-height: 600px; }
    .brosur-bottom { gap: 40px; }
    .brosur-bottom .brosur-item img { max-width: 360px; max-height: 500px; }
    
    /* Form modal for extra large desktop */
    .form-container {
        margin: 80px auto;
        padding: 40px;
        max-width: 700px;
    }
    .form-header h2 { font-size: 2.2rem; }
    .form-section h3 { font-size: 1.4rem; }
}

/* ULTRA WIDE SCREENS */
@media (min-width: 1920px) {
    .logo-header img { max-width: 190px; }
    .brosur-gallery { gap: 40px; }
    .brosur-top img { max-width: 550px; max-height: 650px; }
    .brosur-bottom { gap: 45px; }
    .brosur-bottom .brosur-item img { max-width: 400px; max-height: 550px; }
}

/* SLIDE FOTO KEGIATAN */
.kegiatan-container {
    max-width: 1000px;
    margin: 60px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.kegiatan-title {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Amiri', serif;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 0 30px rgba(255,255,255,0.4), 0 0 60px rgba(255,255,255,0.2);
    filter: brightness(1.15);
}
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.mySlides {
    display: none;
    padding: 20px;
}
.mySlides img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    filter: brightness(1.1);
}
.numbertext {
    color: #ffffff;
    font-size: 16px;
    padding: 12px 20px;
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    border-radius: 25px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 0 15px rgba(255,255,255,0.3);
}
.text {
    color: #ffffff;
    font-size: 1.1rem;
    padding: 20px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.75));
    border-radius: 15px;
    line-height: 1.6;
    font-weight: 500;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 0 15px rgba(255,255,255,0.3);
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -22px;
    color: #ffffff;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.next {
    right: 20px;
    border-radius: 50%;
}
.prev {
    left: 20px;
    border-radius: 50%;
}
.prev:hover, .next:hover {
    background-color: var(--accent);
    transform: scale(1.1);
}
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease, transform 0.3s ease;
}
.dot:hover {
    background-color: var(--accent);
    transform: scale(1.2);
}
.active, .dot:hover {
    background-color: var(--gold);
}
/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Mobile Responsive untuk Slide */
@media (max-width: 768px) {
    .kegiatan-container {
        padding: 0 15px;
        margin: 50px auto 35px;
    }
    .kegiatan-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .slideshow-container {
        border-radius: 15px;
    }
    .mySlides {
        padding: 15px;
    }
    .mySlides img {
        height: 350px;
        border-radius: 12px;
    }
    .text {
        font-size: 0.95rem;
        padding: 15px;
        bottom: 15px;
        left: 15px;
        right: 15px;
        border-radius: 12px;
    }
    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 18px;
        padding: 12px;
    }
    .prev {
        left: 10px;
    }
    .next {
        right: 10px;
    }
    .numbertext {
        font-size: 14px;
        padding: 8px 15px;
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .kegiatan-container {
        padding: 0 10px;
        margin: 40px auto 30px;
    }
    .kegiatan-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    .slideshow-container {
        border-radius: 12px;
    }
    .mySlides {
        padding: 10px;
    }
    .mySlides img {
        height: 280px;
        border-radius: 10px;
    }
    .text {
        font-size: 0.9rem;
        padding: 12px;
        bottom: 10px;
        left: 10px;
        right: 10px;
        border-radius: 10px;
        line-height: 1.4;
    }
    .numbertext {
        font-size: 12px;
        padding: 6px 12px;
        top: 10px;
        left: 10px;
        border-radius: 15px;
    }
    .dot {
        height: 12px;
        width: 12px;
        margin: 0 3px;
    }
}

/* Mobile and Tablet - Show hamburger menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: absolute;
        left: 15px;
        right: auto;
        top: 50%;
        transform: translateY(-50%);
        padding: 6px;
    }
    /* Navbar title mobile */
    .nav-title {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        padding-left: 50px;
    }
    .menu-toggle span {
        width: 26px;
        height: 3px;
        margin: 2px 0;
        border-radius: 3px;
    }
    .nav-links {
        gap: 5px;
        padding: 0 5px;
        flex-direction: column;
        position: absolute;
        right: 0;
        top: 100%;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);
        border-radius: 0 0 10px 10px;
        padding: 10px;
        min-width: 180px;
        display: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        animation: slideDown 0.3s ease-out;
    }
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    /* Update animation transforms for larger spans */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -3px);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        font-size: 0.9rem;
        padding: 12px 15px;
        border-radius: 8px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        display: block;
        transition: all 0.3s ease;
    }
    .nav-links a:last-child {
        border-bottom: none;
    }
    .nav-links a:hover {
        background: var(--accent);
        color: #fff;
    }
    .logo-header {
        padding: 65px 10px 20px;
    }
    .logo-header img {
        max-width: 40%;
    }
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    .hero p {
        font-size: 0.85rem;
    }
    .wa-buttons {
        padding: 0 10px;
        gap: 12px;
    }
    .btn-wa {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    .btn-wa img {
        width: 24px;
        height: 24px;
    }
    
    /* Form toggle button extra small */
    .form-toggle-container {
        padding: 0 10px;
        margin: 25px auto;
    }
    .btn-show-form {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .brosur-container {
        padding: 0 10px;
    }
    .brosur-top img {
        max-width: 240px;
        max-height: 320px;
    }
    .brosur-bottom .brosur-item img {
        max-width: 200px;
        max-height: 280px;
    }
    .brosur-title {
        font-size: 0.85rem;
    }
    /* School selection extra small */
    .section-title {
        font-size: 1.3rem;
    }
    .school-grid {
        gap: 12px;
    }
    .card-image {
        height: 110px;
    }
    .card-icon {
        font-size: 1.6rem;
    }
    .school-card h3 {
        font-size: 1rem;
    }
    .school-card p {
        font-size: 0.75rem;
    }
    .card-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    .kegiatan-title {
        font-size: 1.6rem;
    }
    .mySlides img {
        height: 240px;
    }
    .text {
        font-size: 0.85rem;
        padding: 10px;
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .logo-header {
        padding: 60px 20px 20px;
    }
    .hero {
        padding: 0 20px 20px;
    }
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    .wa-buttons {
        margin: 20px 0 30px;
        gap: 15px;
    }
    .btn-wa {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    .btn-wa img {
        width: 24px;
        height: 24px;
    }
    .mySlides img {
        height: 300px;
    }
    .text {
        font-size: 0.85rem;
        padding: 10px;
        bottom: 10px;
    }
    /* School selection landscape */
    .school-selection {
        padding: 25px 20px 50px;
    }
    .school-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-image {
        height: 120px;
    }
    .school-card h3 {
        font-size: 1.05rem;
    }
    .school-card p {
        font-size: 0.75rem;
    }
}