: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-yellow);
    --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; }

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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-orange), #ff8a00); color: var(--white) !important; }
.btn-pink:hover { background: linear-gradient(135deg, #e85a00, var(--brand-orange)); 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; }

/* Media Queries */
@media (max-width: 992px) {
    .top-bar-container { flex-direction: column; gap: 10px; text-align: center; }
    .top-bar-social { border-left: none; padding-left: 0; }
    .mobile-nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 2rem;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1); transform: translateY(-100%); opacity: 0; visibility: hidden; transition: var(--transition); z-index: -1;
    }
    .main-nav[data-visible="true"] { transform: translateY(0); opacity: 1; visibility: visible; }
    .primary-navigation { flex-direction: column; width: 100%; text-align: center; margin: 0; }
    .btn-enquiry { margin: 1rem auto 0; width: 100%; }
}

/* 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 {
    background: linear-gradient(135deg, var(--brand-orange), #ff8a00);
    box-shadow: 0 12px 24px rgba(255, 102, 0, 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; }
    .programs-grid { grid-template-columns: 1fr; }
    .image-col img { max-height: 300px; }
    .section-heading { text-align: center; }
    .why-choose-col { padding: 1rem; }
}

/* Hero overrides for brand palette and better visual hierarchy */
.home-hero {
    background:
        linear-gradient(135deg, rgba(90, 14, 161, 0.96), rgba(59, 0, 102, 0.95)),
        url('../images/classroom_mural.png') center/cover no-repeat !important;
    position: relative;
}

.home-hero::before,
.home-hero::after {
    opacity: 0.18;
}

.home-hero .hero-copy,
.home-hero .hero-kicker,
.home-hero .hero-subtitle {
    color: #ffffff !important;
}

.home-hero .hero-copy h1 {
    color: #ffffff !important;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.home-hero .hero-copy h1 span {
    color: var(--brand-yellow) !important;
}

.home-hero .hero-pill {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.home-hero .hero-pill.playgroup { background: linear-gradient(135deg, var(--brand-playgroup), #4bb0ff); }
.home-hero .hero-pill.nursery { background: linear-gradient(135deg, var(--brand-nursery), #43a047); }
.home-hero .hero-pill.junior { background: linear-gradient(135deg, var(--brand-lkg), #42a5f5); }
.home-hero .hero-pill.senior { background: linear-gradient(135deg, var(--brand-ukg), #ff5c93); }

.home-hero .hero-banner {
    background: linear-gradient(135deg, var(--brand-yellow), #ffd84d) !important;
    box-shadow: 0 14px 28px rgba(255, 204, 0, 0.26) !important;
}

.home-hero .hero-banner .open,
.home-hero .hero-banner .year {
    color: var(--brand-purple-dark) !important;
}

.home-hero .btn-dark-blue {
    background: linear-gradient(135deg, var(--brand-orange), #ff8a00) !important;
}

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

.home-hero .btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.hero-form-card {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(255, 204, 0, 0.18) !important;
    box-shadow: 0 24px 48px rgba(59, 0, 102, 0.18) !important;
}

.hero-form-card h3 {
    color: var(--brand-orange) !important;
}

.hero-form-card .form-control {
    background: #ffffff !important;
    border-color: rgba(59, 0, 102, 0.12) !important;
}

.hero-form-card .btn-pink {
    background: linear-gradient(135deg, var(--brand-orange), #ff8a00) !important;
    box-shadow: 0 12px 24px rgba(255, 102, 0, 0.22) !important;
}

/* 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;
}

