:root {
    --blue:   #0033ff;
    --navy:   #0d1b2a;
    --yellow: #ffd166;
    --green:  #2cbb2c;
    --light:  #f0f4ff;
    --dark:   #0a1628;
    --grey:   #555;
    --radius: 16px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
    color: var(--navy);
    overflow-x: hidden;
}

img { max-width:100%; height:auto; display:block; }
a   { text-decoration: none; }

/* ── NAVBAR ── */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(16px,4vw,40px);
    background:rgb(35, 35, 244);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo img { width:42px; height:42px; border-radius:50%; border:2px solid ; object-fit:cover; }
.nav-logo span { font-family:'Fredoka',sans-serif; color:white; font-size:20px; font-weight:700; }

.back-btn {
    color: var(--yellow);
    text-decoration: none;
    font-size: clamp(12px,2.5vw,14px);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: color 0.3s;
}
.back-btn:hover { color: white; }

/* ── HEADER ── */
.prog-header {
    position: relative;
    min-height: clamp(320px,55vh,520px);
    background:
        linear-gradient(135deg, rgba(10,22,40,0.91) 0%, rgba(0,51,255,0.82) 100%),
        url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1400&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.prog-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.prog-header-overlay {
    position: relative;
    z-index: 2;
    padding: clamp(30px,5vw,60px) clamp(20px,6vw,80px);
}

.prog-badge {
    display: inline-block;
    background: rgba(255,255,255,0.13);
    color: white;
    font-size: clamp(12px,2.2vw,14px);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(6px);
}

.prog-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(28px,7vw,64px);
    color: white;
    line-height: 1.15;
    margin-bottom: 12px;
    text-shadow: 0 3px 20px rgba(0,0,0,0.35);
}

.prog-header h1 span { color: var(--yellow); }

.prog-header p {
    font-size: clamp(13px,2.5vw,18px);
    color: rgba(255,255,255,0.80);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* floating shapes */
.shape {
    position: absolute;
    font-size: clamp(22px,4vw,40px);
    animation: floaty 4s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
}
.s1 { top:14%; left:7%;  animation-delay:0s; }
.s2 { top:18%; right:9%; animation-delay:0.8s; }
.s3 { bottom:20%; left:10%; animation-delay:0.4s; }
.s4 { bottom:14%; right:8%; animation-delay:1.2s; }

@keyframes floaty {
    0%,100% { transform:translateY(0) rotate(0deg); }
    50%      { transform:translateY(-16px) rotate(6deg); }
}

/* ── SHARED ── */
section { padding: clamp(40px,7vw,80px) clamp(16px,6vw,80px); }

.section-tag {
    display: inline-block;
    background: var(--light);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(24px,5vw,40px);
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title span { color: var(--blue); }

.section-sub {
    font-size: clamp(14px,2.3vw,17px);
    color: var(--grey);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    text-align: center;
}

/* ── INTRO ── */
.intro-section {
    background: #fff;
    text-align: center;
    padding-bottom: 20px;
}

/* ── PROGRAMS GRID ── */
.programs-section {
    background: var(--light);
    padding-top: 10px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(20px,4vw,40px) 0;
}

/* ── PROGRAM CARD ── */
.prog-card {
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(22px,4vw,32px) 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--blue);
    text-align: left;
}

/* different top border colors */
.prog-card:nth-child(1)  { border-color: #ff9ecd; }
.prog-card:nth-child(2)  { border-color: #8be9a6; }
.prog-card:nth-child(3)  { border-color: #7dd9ff; }
.prog-card:nth-child(4)  { border-color: #0033ff; }
.prog-card:nth-child(5)  { border-color: #c9a4ff; }
.prog-card:nth-child(6)  { border-color: #22c55e; }
.prog-card:nth-child(7)  { border-color: #f97316; }
.prog-card:nth-child(8)  { border-color: #7c3aed; }
.prog-card:nth-child(9)  { border-color: #ffd166; }

.prog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.prog-icon {
    font-size: clamp(30px,6vw,44px);
    margin-bottom: 14px;
    display: block;
}

.prog-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(17px,2.8vw,21px);
    color: var(--navy);
    margin-bottom: 4px;
    font-weight: 700;
}

.prog-level {
    font-size: clamp(11px,1.8vw,13px);
    color: var(--blue);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prog-card p:last-child {
    font-size: clamp(13px,2vw,15px);
    color: var(--grey);
    line-height: 1.7;
}

/* ── CLOSING NOTE ── */
.note-section {
    background: linear-gradient(135deg, var(--blue) 0%, #0055ff 100%);
    padding: clamp(50px,8vw,90px) clamp(20px,6vw,80px);
    position: relative;
    overflow: hidden;
}

.note-section::before {
    content: '';
    position: absolute;
    top:-80px; right:-80px;
    width:300px; height:300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.note-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.note-emoji {
    font-size: clamp(38px,7vw,58px);
    margin-bottom: 14px;
    display: block;
    animation: floaty 3s ease-in-out infinite;
}

.note-inner h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(22px,5vw,38px);
    color: white;
    margin-bottom: 14px;
}

.note-inner p {
    font-size: clamp(14px,2.3vw,17px);
    color: rgba(255,255,255,0.82);
    margin-bottom: 28px;
    line-height: 1.7;
}

.btn-main {
    display: inline-block;
    background: var(--yellow);
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(14px,2.3vw,16px);
    padding: 13px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ── FOOTER ── */
.main-footer {
    background-color: #111;
    color: #fff;
    padding: clamp(30px,5vw,60px) 0 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px,4vw,40px);
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    .footer-container > div { flex:1; min-width:200px; }
}

.footer-container h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px;
    margin-bottom: 12px;
    color: #00bcd4;
}

.footer-container p,
.footer-container li { font-size:13px; line-height:1.8; color:#ccc; }

.footer-links ul { list-style:none; padding:0; }
.footer-links li  { margin-bottom:8px; }
.footer-links a   { color:#ccc; transition:color 0.3s; }
.footer-links a:hover { color:#00bcd4; }

.footer-contact i { margin-right:8px; color:#00bcd4; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #aaa;
    padding-left: 15px;
    padding-right: 15px;
}

.footer-bottom a { color:#aaa; }

.footer-logos { margin-top:10px; }

.footer-logos a {
    color: #aaa;
    margin: 0 8px;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-logos a:hover { color: #00bcd4; }