:root {
    --brand-purple: #5a0ea1;
    --brand-purple-dark: #3b0066;
    --brand-yellow: #ffcc00;
    --brand-orange: #ff6600;
    --brand-playgroup: #2196f3;
    --brand-nursery: #2e7d32;
    --brand-lkg: #1e88e5;
    --brand-ukg: #e91e63;
    --brand-daycare: #c62828;
    --brand-green: #4caf50;
    --brand-teal: #009688;
    --brand-light-blue: #00bcd4;

    --dark-blue: var(--brand-purple-dark);
    --darker-blue: #250041;
    --pink: var(--brand-ukg);
    --light-bg: #f7f0ff;
    --yellow: var(--brand-yellow);

    --playgroup-blue: var(--brand-playgroup);
    --nursery-pink: var(--brand-nursery);
    --jrkg-green: var(--brand-lkg);
    --srkg-purple: var(--brand-ukg);

    --text-main: #333333;
    --text-light: #666666;
    --white: #ffffff;

    --font-main: 'Poppins', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 12px 30px rgba(59, 0, 102, 0.14);
    --shadow-sm: 0 4px 15px rgba(59, 0, 102, 0.08);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-blue);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 95%;
    max-width: 1300px;
    margin: 0 auto;
}

body {
    background:
        radial-gradient(circle at top left, rgba(90, 14, 161, 0.04), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 204, 0, 0.05), transparent 22%),
        #ffffff;
}

/* Utilities */
.text-pink {
    color: var(--pink) !important;
}

.text-dark-blue {
    color: var(--dark-blue) !important;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-pink {
    background: linear-gradient(135deg, var(--brand-ukg), #e50050);
    color: var(--white) !important;
}

.btn-pink:hover {
    background: linear-gradient(135deg, #e50050, var(--brand-ukg));
    transform: translateY(-1px) scale(1.03);
}

.btn-dark-blue {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
    color: var(--white) !important;
}

.btn-dark-blue:hover {
    background: linear-gradient(135deg, var(--brand-purple-dark), #250041);
    transform: translateY(-1px) scale(1.03);
}

.btn-green {
    background: linear-gradient(135deg, var(--brand-green), #2f8f3b);
    color: var(--white) !important;
}

.btn-green:hover {
    background: linear-gradient(135deg, #2f8f3b, #256f2f);
    transform: translateY(-1px) scale(1.03);
}

.section-padding {
    padding: 5rem 0;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left i {
    margin-right: 5px;
    color: #a5c3ff;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-item i {
    margin-right: 5px;
    color: #a5c3ff;
}

.top-bar-social {
    display: flex;
    gap: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
}

.top-bar-social a {
    color: var(--white);
}

.top-bar-social a:hover {
    color: var(--pink);
}

/* Header & Nav */
.header {
    background-color: rgba(255, 255, 255, 0.96);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(90, 14, 161, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    flex: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 3;
    justify-content: space-between;
}

.primary-navigation {
    display: flex;
    gap: 1.5rem;
    margin: 0 auto;
}

.primary-navigation a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

.primary-navigation a:hover,
.primary-navigation a.active {
    color: var(--pink);
}

.primary-navigation a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brand-yellow);
    border-radius: 2px;
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.12);
}

.btn-enquiry {
    margin-left: auto;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--pink);
    background-color: var(--white);
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-whatsapp {
    background: linear-gradient(135deg, var(--brand-green), #2f8f3b);
}

.float-call {
    background: linear-gradient(135deg, var(--brand-orange), #ff8a00);
}

/* Admin Dashboard Overrides */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark-blue);
    color: white;
    padding: 2rem 1rem;
}

.sidebar a {
    color: white;
    display: block;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--pink);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: #f4f7f6;
}

/* Mobile Menu Elements */
.mobile-menu-header,
.mobile-menu-promo,
.mobile-menu-footer,
.nav-icon,
.nav-arrow {
    display: none;
}

.desktop-only {
    display: inline-flex;
}

/* Media Queries */
@media (max-width: 992px) {
    .header {
        backdrop-filter: none;
    }

    .top-bar {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }

    .nav-icon,
    .nav-arrow {
        display: inline-block;
    }

    .mobile-menu-header,
    .mobile-menu-promo,
    .mobile-menu-footer {
        display: flex;
    }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #2c3e98 0%, #152261 100%);
        color: white;
        border-radius: 50%;
        border: none;
        box-shadow: 0 0 0 3px #eef1f8, 0 0 0 7px #f5f6f9;
        font-size: 1.1rem;
        cursor: pointer;
        margin-right: 8px;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 5px);
        right: 15px;
        width: 260px;
        height: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(59, 0, 102, 0.08);
        transform-origin: top right;
        transform: scale(0.9) translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
        z-index: 9999;
    }

    .main-nav.active {
        transform: scale(1) translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Hide the extra panels for the small premium menu */
    .mobile-menu-header,
    .mobile-menu-promo,
    .mobile-menu-footer {
        display: none !important;
    }

    .primary-navigation {
        flex-direction: column;
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 0;
    }

    .primary-navigation li {
        width: 100%;
    }

    .primary-navigation a {
        display: flex;
        align-items: center;
        color: var(--text-main);
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .primary-navigation li:last-child a {
        border-bottom: none;
    }

    .primary-navigation a::after {
        display: none;
    }

    .primary-navigation a.active,
    .primary-navigation a:hover {
        background: rgba(59, 0, 102, 0.04);
        color: var(--brand-purple-dark);
        border-bottom-color: transparent;
    }

    .primary-navigation a .nav-icon {
        width: 24px;
        margin-right: 12px;
        font-size: 1.1rem;
        color: var(--brand-purple);
        opacity: 0.7;
    }

    .primary-navigation a.active .nav-icon,
    .primary-navigation a:hover .nav-icon {
        opacity: 1;
    }

    .primary-navigation a .nav-arrow {
        margin-left: auto;
        font-size: 0.75rem;
        opacity: 0.4;
    }
}

/* Middle section: Programs, Features, Image columns */
.middle-section {
    padding: 4rem 0;
    background: var(--white);
}

.middle-container {
    display: grid;
    /* Slightly narrower middle column so the programs area has more room */
    grid-template-columns: 1.05fr 0.55fr 0.9fr;
    gap: 1.6rem;
    align-items: center;
}

.section-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-heading {
    color: var(--brand-purple-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.program-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-start;
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 0.9rem;
    border: 1px solid rgba(90, 14, 161, 0.08);
    box-shadow: var(--shadow-sm);
    min-height: 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(59, 0, 102, 0.12);
}

.program-icon-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafcff;
    border-radius: 14px;
    padding: 10px;
    width: 76px;
    height: 76px;
    box-shadow: 0 6px 14px rgba(59, 0, 102, 0.06);
}

.program-icon-box img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.program-card-body h4 {
    margin: 6px 0 4px;
    font-size: 1.02rem;
    color: var(--brand-purple-dark);
}

.program-card-body .age {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.program-card-body .desc {
    margin: 0;
    color: var(--text-light);
    font-size: 0.78rem;
    line-height: 1.28;
}

/* Slightly reduce padding so more content fits vertically */
.program-card {
    padding: 0.85rem 0.75rem;
}

.program-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: var(--brand-purple);
}

.pg-card {
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.08), rgba(255, 255, 255, 0.98));
}

.pg-card::before {
    background: var(--brand-playgroup);
}

.ns-card {
    background: linear-gradient(180deg, rgba(46, 125, 50, 0.08), rgba(255, 255, 255, 0.98));
}

.ns-card::before {
    background: var(--brand-nursery);
}

.jkg-card {
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.08), rgba(255, 255, 255, 0.98));
}

.jkg-card::before {
    background: var(--brand-lkg);
}

.skg-card {
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.08), rgba(255, 255, 255, 0.98));
}

.skg-card::before {
    background: var(--brand-ukg);
}

.programs-col .btn-pink {
    box-shadow: 0 12px 24px rgba(233, 30, 99, 0.24);
}

@media (max-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
}

.features-list li {
    font-size: 0.86rem;
    color: #ffffff;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-icon {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #fff;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.85rem;
}

.why-choose-col {
    padding: 1.3rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, var(--brand-purple) 0%, var(--brand-purple-dark) 100%);
    border-radius: 18px;
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(59, 0, 102, 0.16);
}

.why-choose-col .section-heading {
    color: #ffffff;
}

.features-list li:nth-child(1) .feature-icon {
    background: var(--brand-yellow) !important;
    color: var(--brand-purple-dark) !important;
}

.features-list li:nth-child(2) .feature-icon {
    background: var(--brand-green) !important;
}

.features-list li:nth-child(3) .feature-icon {
    background: var(--brand-light-blue) !important;
}

.features-list li:nth-child(4) .feature-icon {
    background: var(--brand-orange) !important;
}

.features-list li:nth-child(5) .feature-icon {
    background: var(--brand-teal) !important;
}

.features-list li:nth-child(6) .feature-icon {
    background: var(--brand-yellow) !important;
    color: var(--brand-purple-dark) !important;
}

.features-list li:nth-child(7) .feature-icon {
    background: var(--brand-orange) !important;
}

.features-list li:nth-child(8) .feature-icon {
    background: var(--brand-light-blue) !important;
}

.image-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.image-col img {
    width: 100%;
    max-width: 420px;
    max-height: 360px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(59, 0, 102, 0.14);
}

@media (min-width: 1500px) {
    .image-col img {
        max-width: 520px;
        max-height: 460px;
    }
}

@media (max-width: 992px) {
    .middle-container {
        grid-template-columns: 1fr;
    }

    .image-col img {
        max-height: 300px;
    }

    .section-heading {
        text-align: center;
    }

    .why-choose-col {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

/* Feature ribbon and footer brand styling */
div[style*="linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%)"] {
    background: linear-gradient(90deg, var(--brand-purple-dark) 0%, var(--brand-purple) 50%, var(--brand-purple-dark) 100%) !important;
}

footer {
    background: linear-gradient(180deg, var(--brand-purple-dark), #22003a) !important;
    color: #ffffff !important;
}

footer h4,
footer p,
footer li,
footer span,
footer a {
    color: #ffffff !important;
}

footer a:hover {
    color: var(--brand-yellow) !important;
}

footer>div:last-child {
    border-top-color: rgba(255, 204, 0, 0.14) !important;
}

footer .fa-heart {
    color: var(--brand-yellow) !important;
}

/* Footer Responsive Grid */
.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1200px) {
    .footer-main-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1rem;
    }

    footer {
        padding: 3rem 0 0 !important;
    }

    /* Full width for About, Contact, Location */
    .footer-main-grid>div:nth-child(1),
    .footer-main-grid>div:nth-child(4),
    .footer-main-grid>div:nth-child(5) {
        grid-column: span 2;
        text-align: center;
    }
    
    /* Center icons for full width sections */
    .footer-main-grid>div:nth-child(4) ul {
        list-style-position: inside;
        padding-left: 0 !important;
    }
    .footer-main-grid>div:nth-child(4) .fa-location-dot,
    .footer-main-grid>div:nth-child(4) .fa-phone,
    .footer-main-grid>div:nth-child(4) .fa-envelope {
        margin: 0;
        margin-top: 4px;
    }
    .footer-main-grid>div:nth-child(4) li {
        justify-content: center;
        text-align: left;
    }
    .footer-main-grid>div:first-child div {
        justify-content: center;
    }

    /* Left align side-by-side sections, but center them as blocks */
    .footer-main-grid>div:nth-child(2),
    .footer-main-grid>div:nth-child(3) {
        grid-column: span 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-main-grid>div:nth-child(2) h4,
    .footer-main-grid>div:nth-child(3) h4 {
        text-align: center;
        width: 100%;
    }
    .footer-main-grid>div:nth-child(2) ul,
    .footer-main-grid>div:nth-child(3) ul {
        display: inline-block;
        text-align: left;
    }
}