/* ============================================
   CSS Variables - Consistent Color Scheme
   ============================================ */
:root {
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #6BA3E8;
    --secondary-color: #5B4E77;
    --accent-color: #FF6B6B;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #5B4E77 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(74, 144, 226, 0.9) 0%, rgba(91, 78, 119, 0.9) 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1.2rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.logo img {
    height: 110px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 90px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--bg-white);
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--bg-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

/* ============================================
   Updates Section
   ============================================ */
.updates {
    background: var(--bg-light);
}

.updates-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 760px;
    margin: 0.5rem auto 0;
}

.featured-updates-grid {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.update-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.update-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.update-image-wrap img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.update-image-wrap img[src*="admissions-open-2026-27"] {
    height: 500px;
    object-fit: contain;
    object-position: top center;
    background: #f3f6fb;
}

.summer-featured-image {
    object-fit: cover;
    object-position: top center;
}

.admissions-featured-card .update-image-wrap {
    padding: 0.5rem;
    background: #f3f6fb;
}

.admissions-featured-card .update-image-wrap img[src*="admissions-open-2026-27"] {
    background: #ffffff;
    border-radius: 8px;
}

.update-content {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.update-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--bg-white);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.update-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.update-content p {
    color: var(--text-light);
}

.update-actions {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

.update-actions .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.92rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.rolling-title {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.rolling-camps {
    overflow: hidden;
}

.rolling-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: camp-scroll 22s linear infinite;
}

.rolling-camps:hover .rolling-track {
    animation-play-state: paused;
}

.rolling-item {
    flex: 0 0 360px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    cursor: pointer;
}

.rolling-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.rolling-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@keyframes camp-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.poster-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.poster-modal.active {
    display: block;
}

.poster-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.poster-modal-content {
    position: relative;
    width: min(92vw, 980px);
    margin: 5vh auto;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.poster-modal-content img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.poster-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 1rem;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-white);
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    text-align: left;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Vision Section
   ============================================ */
.vision {
    background: var(--bg-light);
}

.vision-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.vision-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    order: 2;
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vision-image:hover img {
    transform: scale(1.05);
}

.vision-text {
    text-align: left;
    order: 1;
}

.vision-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Values Section
   ============================================ */
.values {
    background: var(--bg-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   What We Offer Section
   ============================================ */
.what-we-offer {
    background: var(--bg-white);
}

.offer-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.offer-tagline {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 500;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.offering-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-color);
}

.offering-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.offering-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.offering-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.offering-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ============================================
   CDE Promise Section
   ============================================ */
.cde-promise {
    background: var(--text-dark);
    color: var(--bg-white);
}

.cde-promise .section-title {
    color: var(--bg-white);
    margin-bottom: 3rem;
}

.cde-promise .section-title::after {
    background: var(--primary-color);
}

.promise-table {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 1.2rem;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.table-col {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
}

.problem-col {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-col {
    background: rgba(74, 144, 226, 0.1);
}

.table-col p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.05rem;
}

.table-col strong {
    color: var(--primary-light);
    font-weight: 600;
}

/* ============================================
   Why Choose CDE Section
   ============================================ */
.why-choose {
    background: var(--bg-light);
}

.why-choose-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.why-choose-text {
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 3rem;
}

.why-choose-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.evolution-quote {
    margin-top: 3rem;
}

.evolution-quote blockquote {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    margin: 0;
}

.evolution-quote blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   Experience Section
   ============================================ */
.experience {
    background: var(--gradient-primary);
    color: var(--bg-white);
    text-align: center;
}

.experience .section-title {
    color: var(--bg-white);
}

.experience .section-title::after {
    background: var(--bg-white);
}

.experience-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

/* ============================================
   Founder Section
   ============================================ */
.founder {
    background: var(--bg-white);
}

.founder-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.founder-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.founder-image:hover img {
    transform: scale(1.05);
}

.founder-quote {
    text-align: left;
}

.founder-quote blockquote {
    border-left: none;
    padding: 0;
    margin: 2rem 0;
}

.founder-quote blockquote p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.founder-quote blockquote footer {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* ============================================
   Offline Center Section
   ============================================ */
.offline-center {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.founder-message {
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.founder-message blockquote {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.founder-message blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.founder-message blockquote footer {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.info-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-cta {
    text-align: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo .logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .featured-updates-grid {
        grid-template-columns: 1fr;
    }

    .update-image-wrap img {
        height: 280px;
    }

    .rolling-item {
        flex: 0 0 300px;
    }

    .poster-modal-content {
        width: 94vw;
        margin: 8vh auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .values-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-text p,
    .vision-text p {
        font-size: 1rem;
    }

    .about-content,
    .vision-content,
    .founder-content {
        grid-template-columns: 1fr;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .offer-tagline {
        font-size: 1.1rem;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
    }

    .problem-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .table-col {
        padding: 1.2rem 1.5rem;
    }

    .why-choose-text {
        font-size: 1.1rem;
    }

    .evolution-quote blockquote p {
        font-size: 1rem;
    }

    .vision-image {
        order: 1;
    }

    .vision-text {
        order: 2;
    }

    .about-text,
    .vision-text,
    .founder-quote {
        text-align: center;
    }

    .logo {
        align-items: center;
    }

    .logo img {
        height: 75px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 3rem 0;
    }
}
