:root {
    --blue:    #1e73be;
    --blue2:   #0d4f8a;
    --navy:    #05294d;
    --yellow:  #ffd166;
    --light:   #f0f7ff;
    --dark:    #0d1b2a;
    --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: #fff;
    color: var(--dark);
    overflow-x: hidden;
}

img { max-width:100%; height:auto; display:block; }

/* ── NAVBAR ── */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(16px, 4vw, 40px);
    background: rgb(41, 41, 248);
    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%;
    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 ── */
.up-header {
    position: relative;
    min-height: clamp(340px, 58vh, 560px);
    background:
        linear-gradient(135deg, rgba(5,41,77,0.92) 0%, rgba(30,115,190,0.85) 100%),
        url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?w=1400&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.up-header-overlay {
    position: relative;
    z-index: 2;
    padding: clamp(30px, 5vw, 60px) clamp(20px, 6vw, 80px);
}

.up-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: clamp(12px, 2.2vw, 14px);
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(6px);
}

.up-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(28px, 7vw, 64px);
    color: white;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 3px 20px rgba(0,0,0,0.35);
}

.up-header h1 span { color: var(--yellow); }

.up-header p {
    font-size: clamp(14px, 2.5vw, 19px);
    color: rgba(255,255,255,0.82);
    font-weight: 500;
    max-width: 520px;
    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;
    user-select: none;
    opacity: 0.5;
}

.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(45px, 7vw, 90px) 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-tag.light {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(24px, 5vw, 40px);
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title span  { color: var(--blue); }
.section-title.white { color: white; }
.section-title.white span { color: var(--yellow); }

.section-sub {
    font-size: clamp(14px, 2.3vw, 17px);
    color: var(--grey);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.7;
    text-align: center;
}

/* ── ABOUT ── */
.about-section { background: #fff; }

.about-inner {
    display: flex;
    gap: clamp(24px, 5vw, 60px);
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.about-text-block {
    flex: 1;
    min-width: 260px;
}

.about-text-block p {
    font-size: clamp(14px, 2.2vw, 16px);
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 13px;
}

.about-text-block strong { color: var(--blue); }

.about-img {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.about-img img {
    width: 100%;
    height: clamp(240px, 38vw, 420px);
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.img-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255,255,255,0.93);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    font-family: 'Fredoka', sans-serif;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.feat {
    background: var(--light);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ── PROGRAMS ── */
.programs-section {
    background: var(--light);
    text-align: center;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 10px;
}

.program-card {
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 34px) 22px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    border-top: 4px solid var(--blue);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.program-card:nth-child(2) { border-color: #00b3ff; }
.program-card:nth-child(3) { border-color: #7c3aed; }
.program-card:nth-child(4) { border-color: #059669; }

.program-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.prog-icon {
    width: 52px;
    height: 52px;
    background: var(--light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--blue);
    margin-bottom: 16px;
    transition: background 0.3s, color 0.3s;
}

.program-card:hover .prog-icon {
    background: var(--blue);
    color: white;
}

.program-card h3 {
    font-size: clamp(16px, 2.5vw, 19px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.program-card p {
    font-size: clamp(13px, 2vw, 15px);
    color: var(--grey);
    line-height: 1.7;
}

/* ── CURRICULUM ── */
.curriculum-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue2) 100%);
    padding: clamp(50px, 8vw, 90px) clamp(16px, 6vw, 80px);
}

.curriculum-inner {
    display: flex;
    gap: clamp(30px, 6vw, 70px);
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.curriculum-text {
    flex: 1;
    min-width: 240px;
}

.curriculum-list {
    flex: 2;
    min-width: 260px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.curr-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: background 0.3s;
}

.curr-item:hover { background: rgba(255,255,255,0.12); }

.curr-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255,209,102,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--yellow);
}

.curr-item strong {
    display: block;
    color: white;
    font-size: clamp(13px, 2vw, 15px);
    margin-bottom: 4px;
}

.curr-item p {
    color: rgba(255,255,255,0.6);
    font-size: clamp(12px, 1.8vw, 13px);
    line-height: 1.5;
}

/* ── GALLERY ── */
.gallery-section {
    background: #fff;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

@media (min-width: 700px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-grid img {
    width: 100%;
    height: clamp(140px, 22vw, 230px);
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, var(--blue) 0%, #009dff 100%);
    padding: clamp(50px, 8vw, 90px) clamp(20px, 6vw, 80px);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.cta-emoji {
    font-size: clamp(38px, 7vw, 58px);
    margin-bottom: 14px;
    display: block;
    animation: floaty 3s ease-in-out infinite;
}

.cta-inner h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(22px, 5vw, 38px);
    color: white;
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: clamp(14px, 2.3vw, 17px);
    color: rgba(255,255,255,0.82);
    margin-bottom: 28px;
    line-height: 1.7;
}

.cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-main {
    background: var(--yellow);
    color: var(--dark);
    font-weight: 700;
    font-size: clamp(14px, 2.3vw, 16px);
    padding: 13px 32px;
    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);
}

.btn-ghost {
    background: transparent;
    color: white;
    font-weight: 700;
    font-size: clamp(14px, 2.3vw, 16px);
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.55);
    transition: background 0.3s, border-color 0.3s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ── FOOTER ── */
.up-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 22px 20px;
    font-size: 13px;
}