/*
   Golden Nursery & Primary School — PURPLE THEME (Light & Vibrant)
   Medium purple backgrounds (not too dark) with lavender & violet accents
   White text, gold stars kept — only backgrounds shifted to purple
*/

/* ══════════════════════════════════════
   PURPLE THEME TOKENS
   ══════════════════════════════════════ */
:root {
    /* Purple Background Palette — LIGHTER */
    --dark-bg: #2e1065;
    --dark-surface: #3b1278;
    --dark-card: #4a1588;
    --dark-card-hover: #5a1a9e;
    --dark-border: rgba(216, 180, 254, 0.25);
    --dark-border-hover: rgba(216, 180, 254, 0.65);

    /* Text — keep WHITE and readable */
    --text-on-dark: #ffffff;
    --text-on-dark-muted: #e2d5ff;

    /* Accent — GOLD retained for stars/feedback, purple for highlights */
    --gold-main: #f4b400;
    --gold-light: #ffd54f;
    --gold-dark: #e09c00;
    --gold-glow: rgba(244, 180, 0, 0.28);

    /* Purple accent for non-star/non-feedback elements */
    --purple-accent: #c084fc;
    --purple-light: #e9d5ff;
    --purple-glow: rgba(192, 132, 252, 0.25);

    /* Glass — medium purple, semi-transparent */
    --glass-bg: rgba(58, 18, 120, 0.75);
    --glass-bg-hover: rgba(72, 22, 148, 0.88);
    --glass-border: rgba(216, 180, 254, 0.22);
    --glass-border-hover: rgba(216, 180, 254, 0.58);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Override existing colour variables */
    --primary-dark: #2e1065;
    --primary-mid: #4a1588;
    --primary-light: #3b1278;
    --text-light: #ffffff;
    --text-dim: #e2d5ff;
    --text-body: #f0e8ff;
    --text-main: #ffffff;
    --white: #ffffff;
    --primary-color: #c084fc;
}

/* ══════════════════════════════════════
   BASE — Medium Purple (lighter than before)
   ══════════════════════════════════════ */
body {
    background: linear-gradient(135deg,
            #2e1065 0%,
            #3d1480 35%,
            #3b1278 65%,
            #2e1065 100%) !important;
    background-attachment: fixed !important;
    color: #ffffff !important;
}

/* Scrollbar */
::-webkit-scrollbar-track {
    background: #2e1065;
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-main);
}

/* ══════════════════════════════════════
   TYPOGRAPHY — White text, gold accents
   ══════════════════════════════════════ */
h1,
h2,
h4,
h5,
h6 {
    color: #ffffff !important;
}

h3 {
    color: #ffd54f !important;
}

p {
    color: #e2d5ff !important;
}

a {
    color: #ffffff;
}

a:hover {
    color: var(--gold-main);
}

/* ══════════════════════════════════════
   GLASS CARD — Medium Purple
   ══════════════════════════════════════ */
.glass-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--dark-border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(216, 180, 254, 0.1) inset !important;
}

.glass-card:hover {
    background: var(--glass-bg-hover) !important;
    border-color: var(--dark-border-hover) !important;
    box-shadow: 0 16px 48px rgba(168, 85, 247, 0.25),
        0 0 0 1px rgba(216, 180, 254, 0.18) inset !important;
}

.glass-card::before {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(192, 132, 252, 0.14), transparent 60%) !important;
}

/* ══════════════════════════════════════
   NAVBAR — Purple glass
   ══════════════════════════════════════ */
.navbar {
    background: rgba(46, 16, 101, 0.92) !important;
    border-bottom: 1px solid rgba(216, 180, 254, 0.16) !important;
    backdrop-filter: blur(20px) !important;
}

.navbar.scrolled {
    background: rgba(36, 10, 82, 0.98) !important;
    border-bottom-color: rgba(216, 180, 254, 0.32) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}

.nav-link {
    color: #e2d5ff !important;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
}

.nav-toggle span {
    background: #ffffff !important;
}

/* Logo */
.logo-img {
    height: 56px;
    width: 56px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(216, 180, 254, 0.5));
    transition: filter 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 18px rgba(216, 180, 254, 0.85));
}

.logo-name {
    color: #ffffff !important;
}

.logo-sub {
    color: var(--gold-light) !important;
}

/* ══════════════════════════════════════
   HERO — Medium Purple
   ══════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg,
            #2e1065 0%,
            #4a1090 50%,
            #2e1065 100%) !important;
}

.hero-bg {
    background: radial-gradient(ellipse at 30% 50%,
            rgba(90, 30, 170, 0.85) 0%,
            rgba(46, 16, 101, 1) 70%) !important;
}

.floating-shape {
    opacity: 0.2 !important;
}

.shape-1 {
    background: rgba(168, 85, 247, 0.18) !important;
}

.shape-2 {
    background: rgba(139, 92, 246, 0.22) !important;
}

.shape-3 {
    background: rgba(192, 132, 252, 0.12) !important;
}

.hero-subtitle {
    color: var(--gold-light) !important;
}

.hero-title {
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-desc {
    color: #e2d5ff !important;
}

/* GPU compositing */
.float-letter,
.cloud-1,
.cloud-2,
.balloon,
.deco-star {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px) translateZ(0);
    }

    50% {
        transform: translateY(-16px) translateZ(0);
    }
}

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */
.stats-section {
    background: rgba(36, 10, 82, 0.55) !important;
}

.about-section {
    background: transparent;
}

.academics-section,
.admissions-section,
.events-section {
    background: rgba(36, 10, 82, 0.4) !important;
}

.teachers-section,
.gallery-section,
.testimonials-section {
    background: transparent;
}

.faq-section {
    background: rgba(36, 10, 82, 0.4) !important;
}

.contact-section {
    background: transparent;
}

/* Section label — gold (not purple) */
.section-label {
    color: var(--gold-main) !important;
}

.section-desc {
    color: #e2d5ff !important;
}

/* ══════════════════════════════════════
   STAT ITEMS
   ══════════════════════════════════════ */
.stat-number {
    color: #ffffff !important;
}

.stat-label {
    color: #e2d5ff !important;
}

.stat-suffix {
    color: var(--gold-main) !important;
}

.stat-icon svg {
    color: var(--gold-main) !important;
}

/* ══════════════════════════════════════
   CARDS
   ══════════════════════════════════════ */
.card-icon {
    background: rgba(192, 132, 252, 0.15) !important;
}

.card-icon svg {
    color: #c084fc !important;
}

/* Principal message */
.principal-message {
    border-left-color: var(--gold-main) !important;
}

/* ══════════════════════════════════════
   TEACHER CARDS — Purple
   ══════════════════════════════════════ */
.teacher-hover-details {
    background: rgba(46, 16, 101, 0.95) !important;
    backdrop-filter: blur(16px) !important;
}

.teacher-hover-details p,
.teacher-hover-details span {
    color: #ffffff !important;
}

.teachers-section {
    background: rgba(24, 6, 60, 0.7) !important;
}

.teacher-card {
    border: 1px solid rgba(216, 180, 254, 0.2) !important;
    background: rgba(58, 18, 116, 0.88) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
    overflow: hidden;
}

.teacher-card:hover {
    border-color: rgba(216, 180, 254, 0.6) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(216, 180, 254, 0.38) !important;
    transform: translateY(-8px) scale(1.02) !important;
}

.teacher-photo-overlay {
    background: linear-gradient(to bottom,
            transparent 40%,
            rgba(30, 10, 70, 0.75) 100%) !important;
}

.teacher-info {
    background: rgba(36, 10, 82, 0.96) !important;
    border-top: 1px solid rgba(216, 180, 254, 0.25) !important;
}

.teacher-name {
    color: #ffffff !important;
}

.teacher-role {
    color: var(--gold-light) !important;
    background: rgba(244, 180, 0, 0.12) !important;
    border: 1px solid rgba(244, 180, 0, 0.3) !important;
}

/* ══════════════════════════════════════
   ABOUT CARD ICONS
   ══════════════════════════════════════ */
.about-card:nth-child(1) .card-icon {
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.about-card:nth-child(1) .card-icon svg {
    color: #7dd3fc !important;
}

.about-card:nth-child(2) .card-icon {
    background: rgba(192, 132, 252, 0.18) !important;
    border: 1px solid rgba(192, 132, 252, 0.38) !important;
}

.about-card:nth-child(2) .card-icon svg {
    color: #e9d5ff !important;
}

.about-card:nth-child(3) .card-icon {
    background: rgba(244, 114, 182, 0.15) !important;
    border: 1px solid rgba(244, 114, 182, 0.35) !important;
}

.about-card:nth-child(3) .card-icon svg {
    color: #f9a8d4 !important;
}

/* ══════════════════════════════════════
   TESTIMONIALS — GOLD stars restored
   ══════════════════════════════════════ */
.testimonial-stars {
    color: var(--gold-main) !important;
    font-size: 1.4rem !important;
}

.testimonial-card::before {
    background: linear-gradient(180deg, var(--gold-main), var(--gold-light)) !important;
    opacity: 0.85 !important;
}

.testimonial-author strong {
    color: #ffffff !important;
}

.testimonial-author span {
    color: #e2d5ff !important;
}

/* ══════════════════════════════════════
   FORMS — Purple
   ══════════════════════════════════════ */
.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea,
.contact-form input,
.contact-form select,
.contact-form textarea,
.newsletter-form input {
    background: rgba(58, 18, 120, 0.85) !important;
    border-color: rgba(216, 180, 254, 0.3) !important;
    color: #ffffff !important;
}

.enquiry-form input::placeholder,
.enquiry-form textarea::placeholder,
.contact-form input::placeholder,
.newsletter-form input::placeholder {
    color: #c4adf0 !important;
}

.enquiry-form label,
.contact-form label {
    color: #ffffff !important;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus,
.contact-form input:focus {
    border-color: var(--gold-main) !important;
    box-shadow: 0 0 0 3px var(--gold-glow) !important;
    outline: none;
}

select option {
    background: #3b1278 !important;
    color: #ffffff !important;
}

/* Timeline step numbers */
.step-number {
    color: #ffffff !important;
    border-color: rgba(216, 180, 254, 0.38) !important;
}

/* Event badges */
.event-badge {
    background: rgba(192, 132, 252, 0.2) !important;
    color: #e9d5ff !important;
}

.event-date {
    color: var(--gold-light) !important;
}

/* ══════════════════════════════════════
   ADMISSIONS
   ══════════════════════════════════════ */
.enrol-steps li {
    color: #e2d5ff !important;
}

.enrol-steps li::before {
    background: linear-gradient(135deg, var(--gold-main), var(--gold-light)) !important;
    color: #2e1065 !important;
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.faq-q {
    color: #ffffff !important;
    background: transparent !important;
}

.faq-a p {
    color: #e2d5ff !important;
}

/* ══════════════════════════════════════
   CONTACT
   ══════════════════════════════════════ */
.contact-icon {
    background: rgba(192, 132, 252, 0.15) !important;
}

.contact-icon svg {
    color: #c084fc !important;
}

.contact-item h4 {
    color: #ffffff !important;
}

.contact-item p,
.contact-item a {
    color: #e2d5ff !important;
}

.contact-item a:hover {
    color: var(--gold-main) !important;
}

/* ══════════════════════════════════════
   CTA SECTION — Deep Purple
   ══════════════════════════════════════ */
.cta-section {
    background: linear-gradient(180deg,
            #1e0a4a 0%,
            #280e5e 60%,
            #1a0838 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 5rem !important;
    border-top: 1px solid rgba(216, 180, 254, 0.12);
    border-bottom: 1px solid rgba(216, 180, 254, 0.12);
}

.cta-rainbow-bg,
.confetti-layer,
.cta-kids-scene {
    display: none !important;
}

.cta-starfield {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cta-star {
    position: absolute;
    background: #e9d5ff;
    border-radius: 50%;
    animation: ctaStarTwinkle 3s ease-in-out infinite;
}

.cta-s1 {
    width: 3px;
    height: 3px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.cta-s2 {
    width: 2px;
    height: 2px;
    top: 30%;
    left: 80%;
    animation-delay: 0.7s;
}

.cta-s3 {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 25%;
    animation-delay: 1.2s;
}

.cta-s4 {
    width: 2px;
    height: 2px;
    top: 20%;
    left: 60%;
    animation-delay: 0.4s;
}

.cta-s5 {
    width: 3px;
    height: 3px;
    top: 75%;
    left: 70%;
    animation-delay: 1.8s;
}

@keyframes ctaStarTwinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
    }
}

.cta-arc-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

.cta-arc-svg {
    display: block;
    width: 100%;
    height: auto;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-spin-star {
    width: 52px;
    height: 52px;
    animation: starSpin 4s linear infinite;
    filter: drop-shadow(0 0 10px rgba(244, 180, 0, 0.75));
}

/* CTA star polygon color — gold */
.cta-spin-star polygon {
    fill: #ffd54f !important;
}

.cta-highlight {
    color: var(--gold-light) !important;
    text-shadow: 0 0 24px rgba(255, 213, 79, 0.5);
}

.cta-btn-apply {
    background: rgba(192, 132, 252, 0.18) !important;
    border: 2px solid #c084fc !important;
    color: #e9d5ff !important;
    backdrop-filter: blur(8px);
}

.cta-btn-apply:hover {
    background: #c084fc !important;
    color: #2e1065 !important;
}

.cta-btn-call {
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.cta-btn-call:hover {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* ══════════════════════════════════════
   GALLERY
   ══════════════════════════════════════ */
.gallery-overlay {
    background: linear-gradient(to top,
            rgba(46, 16, 101, 0.85) 0%,
            transparent 60%) !important;
}

/* ══════════════════════════════════════
   FOOTER — Deep Purple
   ══════════════════════════════════════ */
.footer {
    background: #1a0838 !important;
    border-top: 1px solid rgba(216, 180, 254, 0.16) !important;
}

.footer h4 {
    color: #ffffff !important;
}

.footer p,
.footer-links a {
    color: #e2d5ff !important;
}

.footer-links a:hover {
    color: var(--gold-main) !important;
}

.footer-bottom {
    border-top-color: rgba(216, 180, 254, 0.14) !important;
    color: #e2d5ff !important;
}

.footer-social a {
    color: #c4adf0 !important;
}

.footer-social a:hover {
    color: var(--gold-main) !important;
}

/* ══════════════════════════════════════
   POPUP & TOAST
   ══════════════════════════════════════ */
.enquiry-popup-content {
    background: rgba(46, 16, 101, 0.97) !important;
}

.toast-content {
    background: rgba(46, 16, 101, 0.97) !important;
}

#popupGrade,
#popupGrade option {
    background: rgba(58, 18, 120, 0.95) !important;
    color: #ffffff !important;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn-primary {
    border-color: #c084fc !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #5b21b6, #7c3aed) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: #ffffff !important;
    border-color: #c084fc !important;
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5) !important;
}

.btn-outline {
    border-color: rgba(216, 180, 254, 0.38) !important;
    color: #ffffff !important;
}

.btn-outline:hover {
    border-color: #e9d5ff !important;
    background: rgba(216, 180, 254, 0.1) !important;
}

/* ══════════════════════════════════════
   CARTOON DECORATIONS
   ══════════════════════════════════════ */
.cartoon-activities-img {
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(192, 132, 252, 0.22), 0 0 0 2px rgba(216, 180, 254, 0.16);
    animation: cartoonFloat 5s ease-in-out infinite;
    filter: brightness(1.1) saturate(1.1);
}

@keyframes cartoonFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ══════════════════════════════════════
   RAINBOW TEXT — Purple variant
   ══════════════════════════════════════ */
.text-gold {
    background: linear-gradient(90deg,
            #c084fc, #a855f7, #ffd54f, #f4b400,
            #e9d5ff, #c084fc) !important;
    background-size: 300% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: rainbowFlow 6s linear infinite !important;
}