:root {
    --cba-blue: #1d4ed8;
    --cba-blue-dark: #0f3aa8;
    --cba-gold: #fbbf24;
    --cba-bg: #f5f7fb;
    --cba-text: #111827;
    --radius-xl: 1.5rem;
    --radius-md: 1rem;
    --shadow-soft: 0 8px 22px rgba(15,23,42,0.06);
    --shadow-strong: 0 18px 40px rgba(37,99,235,0.25);
    --transition-fast: 0.25s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--cba-text);
    background-color: var(--cba-bg);
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */

.cba-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}

.header-top-bar {
    background: linear-gradient(to right, var(--cba-blue-dark), var(--cba-blue));
    color: #e5e7eb;
    font-size: 0.7rem;
    padding: 0.25rem 0;
}

.header-top-inner {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    gap: 1rem;
}

/* LOGO */

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 0, var(--cba-gold), var(--cba-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15,23,42,0.25);
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--cba-blue-dark);
}

.logo-sub {
    font-size: 0.65rem;
    color: #6b7280;
}

/* NAV */

.main-nav {
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.main-nav a {
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    color: #4b5563;
    transition: var(--transition-fast);
}

.main-nav a:hover {
    color: var(--cba-blue);
    border-color: var(--cba-gold);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-gold {
    background: var(--cba-gold);
    color: #111827;
    box-shadow: var(--shadow-soft);
}

.btn-gold:hover {
    background: #f59e0b;
    box-shadow: var(--shadow-strong);
}

.btn-outline-gold {
    border: 1px solid var(--cba-gold);
    color: var(--cba-blue-dark);
    background: #ffffff;
}

.btn-outline-gold:hover {
    background: var(--cba-gold);
    color: #111827;
}

.btn-outline-light {
    border: 1px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: var(--cba-blue-dark);
}

/* MOBILE NAV */

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #ffffff;
    padding: 0.65rem 1rem 1rem;
    gap: 0.4rem;
    border-top: 1px solid #e5e7eb;
}

.mobile-nav a {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* HERO SLIDER */

.hero-slider {
    position: relative;
    height: 70vh;
    max-height: 640px;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0 0, rgba(251,191,36,0.14), transparent),
        radial-gradient(circle at 100% 0, rgba(37,99,235,0.14), transparent);
    z-index: 1;
    pointer-events: none;
}

.slider-wrapper {
    height: 100%;
    position: relative;
    z-index: 1;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide .overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.slide-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    max-width: 540px;
}

.slide-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 0.97rem;
    margin-bottom: 1rem;
}

.btn-group {
    display: flex;
    gap: 0.6rem;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.slider-dots span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ffffff70;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dots span.active {
    background: var(--cba-gold);
    transform: scale(1.2);
}

/* HIGHLIGHTS */

.highlights-section {
    padding: 2.3rem 0 1.5rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.highlight-card {
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    font-size: 0.88rem;
    position: relative;
    overflow: hidden;
}

.highlight-card::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: -12px;
    right: -12px;
    opacity: 0.16;
}

.accent-blue::after {
    background: var(--cba-blue);
}

.accent-gold::after {
    background: var(--cba-gold);
}

.accent-mixed::after {
    background: linear-gradient(to bottom right, var(--cba-blue), var(--cba-gold));
}

/* SECTION TITLES */

.section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--cba-text);
}

.section-sub {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.2rem;
}

.text-center {
    text-align: center;
}

/* PROGRAMS */

.programs-section {
    padding: 1rem 0 2.3rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.program-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.9rem;
    border-top: 3px solid var(--cba-gold);
}

/* TEACHERS */

.teachers-section {
    padding: 2rem 0;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.teacher-card {
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.teacher-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.6rem;
    border: 3px solid var(--cba-gold);
}

/* VIDEO */

.video-section {
    padding: 2rem 0;
}

.colorful-bg {
    background: linear-gradient(135deg, #eff6ff, #fef9c3);
}

.video-flex {
    display: grid;
    grid-template-columns: 1.3fr 1.7fr;
    gap: 1.5rem;
    align-items: center;
}

.video-frame {
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.video-frame iframe {
    width: 100%;
    height: 280px;
    border: none;
}

/* GALLERY */

.gallery-section {
    padding: 2rem 0 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.gallery-item {
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.25rem 0.25rem 0.45rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    color: #4b5563;
}

.gallery-item img {
    width: 100%;
    height: 90px;
    border-radius: 0.85rem;
    object-fit: cover;
    margin-bottom: 0.25rem;
}

/* INFO STRIP */

.info-strip {
    padding-bottom: 2.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #4b5563;
}

.info-grid strong {
    display: block;
    font-size: 1.05rem;
    color: var(--cba-blue-dark);
}

/* PAGE HERO & CONTENT */

.page-hero {
    background: linear-gradient(to right, var(--cba-blue-dark), var(--cba-blue));
    color: #ffffff;
    padding: 2.4rem 0 1.8rem;
    margin-bottom: 1rem;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.page-hero h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.page-content {
    padding-bottom: 2.5rem;
    font-size: 0.9rem;
}

.styled-list {
    margin: 0.4rem 0 1.4rem;
    padding-left: 1.2rem;
}

.styled-list li {
    margin-bottom: 0.25rem;
}

/* ABOUT LAYOUT */

.about-layout {
    display: grid;
    grid-template-columns: 1.6fr 1.4fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-image-stack {
    display: grid;
    gap: 0.5rem;
}

.about-image-stack img {
    width: 100%;
    border-radius: 1.1rem;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

/* ADMISSIONS LAYOUT */

.admissions-layout {
    display: grid;
    grid-template-columns: 1.6fr 1.4fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.admissions-image-box {
    background: linear-gradient(145deg, #eff6ff, #fef9c3);
    padding: 0.8rem;
    border-radius: 1.2rem;
    box-shadow: var(--shadow-soft);
    font-size: 0.8rem;
    color: #374151;
}

.admissions-image-box img {
    width: 100%;
    border-radius: 0.9rem;
    object-fit: cover;
    margin-bottom: 0.4rem;
}

/* CONTACT */

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 1.8rem;
}

.contact-photo {
    margin-top: 0.75rem;
}

.contact-photo img {
    width: 100%;
    border-radius: 1rem;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

/* LEGAL */

.legal-text h2 {
    margin-top: 1.2rem;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.legal-text p {
    font-size: 0.9rem;
}

/* FOOTER */

.site-footer {
    position: relative;
    background: #020817;
    color: #9ca3af;
    padding: 2.1rem 0 1.1rem;
    margin-top: 2.3rem;
    overflow: hidden;
}

.footer-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0 0, rgba(251,191,36,0.06), transparent),
        radial-gradient(circle at 100% 0, rgba(37,99,235,0.14), transparent);
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 1.5rem;
    font-size: 0.82rem;
    z-index: 1;
}

.site-footer h4 {
    color: #e5e7eb;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 0.22rem;
}

.site-footer a {
    color: #9ca3af;
    transition: var(--transition-fast);
}

.site-footer a:hover {
    color: var(--cba-gold);
}

.newsletter-form {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.newsletter-form input {
    flex: 1;
    border-radius: 999px;
    font-size: 0.78rem;
}

.newsletter-form .btn {
    padding: 0.38rem 0.9rem;
    font-size: 0.76rem;
}

.footer-bottom {
    position: relative;
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.74rem;
    color: #6b7280;
    z-index: 1;
}

/* FORMS */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    margin-top: 0.75rem;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.12rem;
    color: #6b7280;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.6rem;
    border-radius: 0.7rem;
    border: 1px solid #d1d5db;
    font-size: 0.86rem;
    outline: none;
    transition: var(--transition-fast);
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cba-blue);
    box-shadow: 0 0 0 2px rgba(37,99,235,0.13);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .header-top-inner {
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-slider {
        height: 62vh;
    }

    .highlights-grid,
    .programs-grid,
    .teachers-grid,
    .info-grid,
    .footer-grid,
    .video-flex,
    .contact-layout,
    .about-layout,
    .admissions-layout {
        grid-template-columns: 1fr;
    }

    .video-frame iframe {
        height: 220px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .slide-content h1 {
        font-size: 1.6rem;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
