* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
}
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

:root {
    --primary: #1a2e4a;
    --accent: #2563eb;
    --teal: #0891b2;
    --purple: #7c3aed;
    --gold: #f59e0b;
    --light: #f0f4ff;
    --text: #1e293b;
    --gray: #64748b;
}

/* ── NAVBAR ── */
.nav img {
    width: 400px;
    height: 60px;
    align-items: center;
    position: relative;
    padding-left: 15vh;
}
main { padding-top: 95px; }
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #1a2e4a 0%, #1e3a5f 60%, #1a3550 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(37,99,235,0.18);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
}
.nav-links {
    display: flex;
    justify-content: space-evenly;
    position: relative;
    padding-right: 15vh;
    gap: 20px;
}
.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 0.4px;
    overflow: hidden;
}
.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(129,140,248,0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover {
    color: #ffffff;
    border-color: rgba(129,140,248,0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99,102,241,0.3), 0 0 0 1px rgba(129,140,248,0.2);
}
.nav-links a:hover::before { opacity: 1; }
.nav-links a:hover::after { width: 60%; }

/* ── BUTTONS ── */
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.7);
    transition: all 0.2s;
    display: inline-block;
}
.btn-outline:hover { background: white; color: var(--primary); border-color: white; }

.btn-sm {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: white;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 3px 10px rgba(8,145,178,0.3);
}
.btn-sm:hover { opacity: 0.88; transform: translateY(-2px); }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1a2e4a 40%, #1e3a6e 70%, #2563eb 100%);
    color: white;
    padding: 28px 6%;
    height: calc(100vh - 95px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(124,58,237,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -80px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(8,145,178,0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Hero Left */
.hero-left {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    animation: fadeUp 0.8s ease 0.3s both;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,158,11,0.18);
    border: 1px solid rgba(245,158,11,0.45);
    color: #fcd34d;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    width: fit-content;
}
.hero-badge img { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }
.hero-left h1 {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}
.hero-left h1 span {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-left > p {
    font-size: 13.5px;
    opacity: 0.88;
    line-height: 1.65;
    max-width: 560px;
}
.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.highlight-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}
.highlight-item img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}
.hero-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.stat {
    background: rgba(255,255,255,0.08);
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    flex: 1 1 calc(25% - 8px);
    min-width: 80px;
}
.stat h2 { font-size: 20px; background: linear-gradient(135deg, #38bdf8, #818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat p { font-size: 10px; opacity: 0.85; margin-top: 2px; }

/* Hero Form */
.hero-form-wrap {
    flex: 0.85;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 22px 24px;
    min-width: 0;
    animation: fadeUp 0.8s ease 0.55s both;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-form-header { margin-bottom: 14px; }
.hero-form-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-form-header p { font-size: 12px; opacity: 0.75; }
.hero-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero-form input,
.hero-form select {
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 7px;
    font-size: 13.5px;
    outline: none;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: border 0.2s, box-shadow 0.2s;
}
.hero-form input::placeholder { color: rgba(255,255,255,0.5); }
.hero-form select { color: rgba(255,255,255,0.85); }
.hero-form select option { background: #1a2e4a; color: white; }
.hero-form input:focus,
.hero-form select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(129,140,248,0.18); }
.hero-form .btn-primary { width: 100%; text-align: center; font-size: 14px; padding: 11px; }
.form-note { font-size: 11px; opacity: 0.55; text-align: center; margin-top: -2px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.form-note img { width: 13px; height: 13px; object-fit: contain; flex-shrink: 0; }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #25d366;
    color: white;
    padding: 11px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── ABOUT ── */
.about { scroll-margin-top: 95px; }
.about {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 80px 8%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #ede9fe 100%);
}
.about-img img {
    width: 480px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.about-text h2 { font-size: 38px; color: var(--text); margin-bottom: 20px; }
.about-text h2 span {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.about-text p { color: var(--gray); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }

/* ── SECTION COMMON ── */
.section-sub {
    text-align: center;
    color: var(--gray);
    font-size: 16px;
    margin-bottom: 48px;
    margin-top: 10px;
}

/* ── COURSES ── */
.courses {
    padding: 80px 8% 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
    text-align: center;
}
.courses h2 { font-size: 38px; color: var(--text); }
.courses h2 span {
    background: linear-gradient(90deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-category { margin-bottom: 40px; }

.category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #2563eb, #7c3aed, #0891b2) 1;
}
.category-header img { width: 36px; height: 36px; }
.category-header h3 { font-size: 22px; color: var(--primary); }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    text-align: left;
}
.course-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e7ff;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.course-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #0891b2);
    opacity: 0;
    transition: opacity 0.25s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(37,99,235,0.14); }
.course-card:hover::before { opacity: 1; }
.course-card h4 { font-size: 17px; color: var(--text); }
.course-card p { color: var(--gray); font-size: 14px; line-height: 1.6; flex: 1; }

.course-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}
.course-badge.nursing     { background: #dbeafe; color: #1e40af; }
.course-badge.agriculture { background: #e0f5e0; color: #2d6a2d; }
.course-badge.it          { background: #e0eaff; color: #1a3a8b; }
.course-badge.hospitality { background: #fff3e0; color: #8b5000; }

/* ── WHY CHOOSE US ── */
.why {
    padding: 80px 8%;
    background: linear-gradient(135deg, #0f172a 0%, #1a2e4a 35%, #1e3a6e 65%, #312e81 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.why::before {
    content: '';
    position: absolute;
    top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse, rgba(37,99,235,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.why h2 { font-size: 38px; }
.why h2 span {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.why .section-sub { color: rgba(255,255,255,0.75); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.why-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 36px 24px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.why-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    border-color: rgba(129,140,248,0.4);
}
.why-icon { font-size: 40px; margin-bottom: 16px; }
.why-card h3 { font-size: 20px; margin-bottom: 10px; }
.why-card p { font-size: 15px; opacity: 0.8; line-height: 1.6; }

/* ── TESTIMONIALS ── */
.testimonials {
    padding: 80px 8%;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #ecfeff 100%);
    text-align: center;
}
.testimonials h2 { font-size: 38px; color: var(--text); margin-bottom: 48px; }
.testimonials h2 span {
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: left;
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #2563eb, #7c3aed) 1;
    box-shadow: 0 4px 20px rgba(124,58,237,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37,99,235,0.12); }
.testimonial-card p { color: var(--gray); font-size: 15px; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.student { display: flex; align-items: center; gap: 14px; }
.student img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.student strong { display: block; color: var(--text); font-size: 15px; }
.student span { color: var(--gray); font-size: 13px; }

/* ── SCHOLARSHIPS ── */
.scholarships {
    padding: 80px 8%;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #ecfeff 100%);
    text-align: center;
}
.scholarships h2 { font-size: 38px; color: var(--text); margin-bottom: 16px; }
.scholarships h2 span {
    background: linear-gradient(90deg, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.scholarships .section-sub { color: var(--gray); max-width: 720px; margin: 0 auto 48px; }
.scholarships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}
.scholarship-card {
    background: white;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(124,58,237,0.07);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #2563eb, #7c3aed) 1;
    transition: transform 0.25s, box-shadow 0.25s;
}
.scholarship-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37,99,235,0.12); }
.scholarship-icon { width: 48px; height: 48px; margin-bottom: 14px; flex-shrink: 0; }
.scholarship-icon img { width: 48px; height: 48px; object-fit: contain; display: block; }
.scholarship-card h3 { font-size: 18px; color: var(--text); margin-bottom: 10px; }
.scholarship-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }
.scholarships-cta { margin-top: 8px; }

/* ── CONTACT ── */
.contact {
    display: flex;
    gap: 60px;
    padding: 80px 8%;
    background: linear-gradient(135deg, #1a2e4a 0%, #1e3a6e 50%, #312e81 100%);
    align-items: flex-start;
}
.contact-info { flex: 1; }
.contact-info h2 { font-size: 38px; color: white; margin-bottom: 16px; }
.contact-info h2 span {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-info p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 24px; line-height: 1.6; }
.contact-info ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-info li { color: rgba(255,255,255,0.8); font-size: 15px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.contact-info li img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; margin-top: 2px; }
.contact-info li a { color: #93c5fd; }

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 32px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    background: rgba(255,255,255,0.1);
    color: white;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.contact-form select { color: rgba(255,255,255,0.85); }
.contact-form select option { background: #1a2e4a; color: white; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(129,140,248,0.15); }
.contact-form textarea { resize: vertical; }
.contact-form .btn-primary { width: 100%; text-align: center; }

/* ── FOOTER ── */
.footer { background: linear-gradient(135deg, #0f172a 0%, #1a2e4a 60%, #1e1b4b 100%); color: white; }
.footer-top {
    display: flex;
    gap: 40px;
    padding: 60px 8%;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { flex: 2; }
.footer-brand img { width: 280px; height: 50px; object-fit: contain; margin-bottom: 16px; padding: 0; }
.footer-brand p { opacity: 0.75; font-size: 14px; line-height: 1.7; max-width: 280px; }

.footer-links { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 {
    font-size: 16px;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-links a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
.footer-links a img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.footer-links a:hover { color: white; }

.footer-bottom {
    text-align: center;
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 14px;
    opacity: 0.7;
}

/* ── PAGE LOADER ── */
#loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a, #1a2e4a, #312e81);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.15);
    border-top-color: #38bdf8;
    border-right-color: #818cf8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SCROLL REVEAL BASE ── */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.from-left  { transform: translateX(-48px); }
.reveal.from-right { transform: translateX(48px); }
.reveal.visible {
    opacity: 1;
    transform: translate(0);
}

/* ── HERO LOAD ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.contact-map { flex: 1; display: flex; flex-direction: column; }
.contact-map iframe { flex: 1; min-height: 300px; }


.gallery {
    padding: 40px 8% 80px;
    background: linear-gradient(135deg, #e8f0fe 0%, #ede9fe 50%, #e0f2fe 100%);
    text-align: center;
}
.gallery h2 { font-size: 38px; color: var(--text); }
.gallery h2 span {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gallery .section-sub { color: var(--gray); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 16px;
    margin-top: 48px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    height: 260px;
}
.gallery-item:nth-child(1) { grid-column: span 1; }
.gallery-item:nth-child(6) { grid-column: span 1; }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26,46,74,0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── LIGHTBOX ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 80vw;
    max-height: 85vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    background: none;
    border: none;
    color: white;
    font-size: 42px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 36px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
    .gallery { padding: 50px 5%; }
    .gallery h2 { font-size: 28px; }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 10px;
    }
    .gallery-item { height: 160px; }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(6) { grid-column: span 1; }
    .lightbox img { max-width: 95vw; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 26px; }
}

/* ── COURSE CARD SLIDE ANIMATION ── */
.card-slide {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.card-slide.from-left  { transform: translateX(-60px); }
.card-slide.from-right { transform: translateX(60px); }
.card-slide.visible {
    opacity: 1;
    transform: translate(0);
}

/* ── STAGGER DELAYS FOR GRIDS ── */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── HAMBURGER ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── RESPONSIVE ── */

/* Tablet landscape */
@media (max-width: 1024px) {
    .nav img { width: 260px; padding-left: 20px; }
    .nav-links { padding-right: 20px; gap: 10px; }
    .nav-links a { padding: 8px 14px; font-size: 13px; }

    .hero { padding: 32px 5%; gap: 28px; height: auto; min-height: calc(100vh - 95px); }
    .hero-left h1 { font-size: 28px; }

    .about { padding: 60px 5%; gap: 36px; }
    .about-img img { width: 380px; }

    .courses { padding: 60px 5% 20px; }
    .scholarships { padding: 60px 5%; }
    .scholarships-grid { grid-template-columns: repeat(2, 1fr); }

    .why { padding: 60px 5%; }
    .testimonials { padding: 60px 5%; }
    .contact { padding: 60px 5%; gap: 36px; }
    .gallery { padding: 40px 5% 60px; }
    .footer-top { padding: 50px 5%; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    /* Navbar */
    .nav { height: auto; padding: 12px 0; flex-wrap: wrap; }
    main { padding-top: 70px; }
    .nav img { width: 160px; height: 45px; padding-left: 16px; object-fit: contain; }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        padding: 12px 16px 16px;
        gap: 8px;
        background: var(--primary);
        overflow: hidden;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        font-size: 14px;
        padding: 10px 16px;
        border-radius: 6px;
        border: 1px solid rgba(255,255,255,0.1);
        background: rgba(255,255,255,0.05);
        text-align: center;
    }

    /* Hero */
    .hero { padding: 28px 5%; flex-direction: column; gap: 24px; height: auto; min-height: unset; }
    .hero-left { gap: 12px; }
    .hero-left h1 { font-size: 24px; }
    .hero-left > p { font-size: 13.5px; }
    .hero-form-wrap { width: 100%; padding: 20px 18px; order: -1; }
    .hero-form-header h3 { font-size: 17px; }
    .stat { flex: 1 1 calc(50% - 8px); padding: 10px 8px; }
    .stat h2 { font-size: 18px; }
    .stat p { font-size: 10px; }
    .btn-whatsapp { font-size: 13px; padding: 10px 18px; }

    /* About */
    .about { flex-direction: column; padding: 50px 5%; gap: 28px; scroll-margin-top: 70px; }
    .about-img img { width: 100%; }
    .about-text h2 { font-size: 26px; }
    .about-text p { font-size: 15px; }

    /* Courses */
    .courses { padding: 50px 5% 16px; }
    .courses h2 { font-size: 26px; }
    .courses-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .category-header h3 { font-size: 18px; }

    /* Gallery */
    .gallery { padding: 40px 5% 50px; }
    .gallery h2 { font-size: 26px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; gap: 10px; }
    .gallery-item { height: 160px; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 1; }
    .lightbox img { max-width: 95vw; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 26px; }

    /* Why */
    .why { padding: 50px 5%; }
    .why h2 { font-size: 26px; }
    .why-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .why-card { padding: 22px 14px; }
    .why-icon img { width: 32px; height: 32px; }
    .why-card h3 { font-size: 16px; }
    .why-card p { font-size: 13px; }

    /* Testimonials */
    .testimonials { padding: 50px 5%; }
    .testimonials h2 { font-size: 26px; margin-bottom: 28px; }
    .testimonials-grid { grid-template-columns: 1fr; }

    /* Scholarships */
    .scholarships { padding: 50px 5%; }
    .scholarships h2 { font-size: 26px; }
    .scholarships-grid { grid-template-columns: 1fr; gap: 16px; }
    .scholarship-card { padding: 24px 18px; }

    /* Contact */
    .contact { flex-direction: column; padding: 50px 5%; gap: 32px; }
    .contact-info h2 { font-size: 26px; }
    .contact-info p { font-size: 14px; }
    .contact-info li { font-size: 13px; }
    .contact-map iframe { min-height: 240px; }

    /* Footer */
    .footer-top { flex-direction: column; padding: 40px 5%; gap: 28px; }
    .footer-brand { flex: unset; }
    .footer-brand img { width: 160px; }
    .footer-links { flex: unset; }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-left h1 { font-size: 20px; }
    .hero-badge { font-size: 10px; padding: 4px 10px; }
    .highlight-item { font-size: 11px; }
    .hero-form-wrap { padding: 18px 14px; }

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

    .why-grid { grid-template-columns: 1fr; }
    .why-card { padding: 20px 14px; }

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

    .section-sub { font-size: 13px; }
    .btn-primary { font-size: 14px; padding: 11px 20px; }
    .footer-brand img { width: 140px; }
}
