/* =============================================
   MONTESSORI WORLD — Frontend Theme CSS
   Montessori World School Theme by LogicSpace · 0319-8344534
   Color palette from school logo
   ============================================= */

/* --- CSS Custom Properties (Logo-Derived Colors) --- */
:root {
    /* PRIMARY — Sky Blue (from logo circle border) */
    --indigo: #0288D1;
    --indigo-hover: #0277BD;
    --indigo-light: #E1F5FE;
    --indigo-muted: #81D4FA;
    --indigo-dark: #01579B;

    /* GOLD (from logo yellow dots) */
    --yellow: #FFB300;
    --yellow-light: #FFF8E1;
    --yellow-warm: #FFECB3;

    /* GREEN (from logo globe) */
    --green: #2E7D32;
    --green-light: #E8F5E9;

    /* BLUE (from logo blue dot) */
    --blue: #42A5F5;
    --blue-light: #E3F2FD;

    /* RED (from logo red swoosh) */
    --red: #E53935;
    --red-light: #FFEBEE;

    /* PURPLE (kept for variety) */
    --purple: #7B1FA2;
    --purple-light: #F3E5F5;

    /* PINK (from logo magenta swoosh) */
    --pink: #E91E63;
    --pink-light: #FCE4EC;

    /* ORANGE (warmth accent) */
    --orange: #FF6D00;
    --orange-light: #FFF3E0;

    /* NAVY (from logo dark dot) */
    --navy: #1A237E;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8FAFC;
    --text-primary: #1A237E;
    --text-body: #37474F;
    --text-secondary: #607D8B;
    --text-muted: #90A4AE;
    --border: #E0E0E0;
    --border-light: #F5F5F5;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.12);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-body);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* --- Shared Section Styles --- */
.tp-section-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.tp-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.tp-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--indigo-light);
    color: var(--indigo);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 16px;
}
.tp-section-badge i { font-size: 14px; }
.tp-section-badge-light {
    background: rgba(255,255,255,0.25);
    color: var(--indigo);
}
.tp-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}
.tp-section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.tp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.tp-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.tp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.tp-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.tp-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--indigo);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}
.tp-logo-text {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--indigo), var(--navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.tp-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tp-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 8px;
    transition: all 0.15s ease;
}
.tp-nav-link:hover {
    color: var(--indigo);
    background: var(--indigo-light);
}
.tp-nav-login-group {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
}
.tp-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--indigo);
    border-radius: 8px;
    transition: all 0.15s ease;
}
.tp-nav-btn:hover {
    background: var(--indigo-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2,136,209,0.3);
}
.tp-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-body);
    font-size: 20px;
}

/* =============================================
   SECTION 1: HERO
   ============================================= */
.tp-hero {
    position: relative;
    padding: 80px 24px 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg, #E1F5FE 0%, #FFFFFF 30%, #FFF8E1 60%, #FCE4EC 100%);
}
.tp-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.tp-hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}
.tp-hero-circle-1 {
    width: 500px; height: 500px;
    background: var(--indigo-muted);
    top: -150px; right: -100px;
    animation: floatSlow 20s ease-in-out infinite;
}
.tp-hero-circle-2 {
    width: 350px; height: 350px;
    background: var(--yellow-warm);
    bottom: -80px; left: -60px;
    animation: floatSlow 25s ease-in-out infinite reverse;
}
.tp-hero-circle-3 {
    width: 200px; height: 200px;
    background: var(--pink);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    animation: pulse 8s ease-in-out infinite;
}

/* Floating Colored Dots (matching logo's 4 dots) */
.tp-hero-dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}
.tp-hero-dot-1 {
    width: 18px; height: 18px;
    background: #0288D1;
    top: 15%; left: 10%;
    animation: floatDot1 12s ease-in-out infinite;
}
.tp-hero-dot-2 {
    width: 14px; height: 14px;
    background: #E91E63;
    top: 25%; right: 15%;
    animation: floatDot2 15s ease-in-out infinite;
}
.tp-hero-dot-3 {
    width: 20px; height: 20px;
    background: #FFB300;
    bottom: 20%; left: 20%;
    animation: floatDot3 18s ease-in-out infinite;
}
.tp-hero-dot-4 {
    width: 12px; height: 12px;
    background: #2E7D32;
    bottom: 30%; right: 10%;
    animation: floatDot4 14s ease-in-out infinite;
}

/* Hero School Logo */
.tp-hero-logo {
    margin-bottom: 20px;
}
.tp-hero-logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
    animation: fadeInUp 0.8s ease-out;
}

.tp-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto 48px;
}
.tp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--indigo);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.tp-hero-badge i { font-size: 16px; color: var(--yellow); }
.tp-hero-title {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.tp-hero-school {
    background: linear-gradient(135deg, #0288D1, #E91E63, #FFB300);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}
.tp-hero-tagline {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.02em;
    margin-top: 8px;
    margin-bottom: 12px;
}
.tp-hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* Portal Cards */
.tp-portals {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 680px;
    margin: 0 auto;
}
.tp-portal-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.25s ease;
    display: block;
    box-shadow: var(--shadow-sm);
}
.tp-portal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.tp-portal-student:hover { border-color: var(--indigo-muted); }
.tp-portal-admin:hover { border-color: var(--green); }
.tp-portal-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}
.tp-portal-student .tp-portal-icon {
    background: var(--indigo-light);
    color: var(--indigo);
}
.tp-portal-admin .tp-portal-icon {
    background: var(--green-light);
    color: var(--green);
}
.tp-portal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.tp-portal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}
.tp-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.15s ease;
}
.tp-portal-student .tp-portal-btn { background: var(--indigo); }
.tp-portal-student:hover .tp-portal-btn {
    background: var(--indigo-hover);
    box-shadow: 0 4px 12px rgba(2,136,209,0.3);
}
.tp-portal-admin .tp-portal-btn { background: var(--green); }
.tp-portal-admin:hover .tp-portal-btn {
    background: #256427;
    box-shadow: 0 4px 12px rgba(46,125,50,0.3);
}

/* =============================================
   SECTION 2: ABOUT + STATS
   ============================================= */
.tp-about {
    padding: 80px 0;
    background: var(--white);
}
.tp-about-content {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 56px;
}
.tp-about-logo {
    flex-shrink: 0;
}
.tp-about-logo img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: var(--off-white);
    padding: 16px;
    border: 1px solid var(--border);
}
.tp-about-logo-placeholder {
    width: 160px;
    height: 160px;
    background: var(--indigo-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: var(--indigo);
}
.tp-about-text {
    flex: 1;
}
.tp-about-text p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 16px;
}
.tp-about-text p:last-child { margin-bottom: 0; }
.tp-about-text strong { color: var(--text-primary); }

/* Stats — Colorful individual stat cards */
.tp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.tp-stat-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
}
.tp-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--white);
    border-color: var(--indigo-muted);
}
.tp-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
}
/* Colorful stat icons */
.tp-stat-card:nth-child(1) .tp-stat-icon { background: var(--indigo-light); color: var(--indigo); }
.tp-stat-card:nth-child(2) .tp-stat-icon { background: var(--green-light); color: var(--green); }
.tp-stat-card:nth-child(3) .tp-stat-icon { background: var(--yellow-light); color: var(--yellow); }
.tp-stat-card:nth-child(4) .tp-stat-icon { background: var(--pink-light); color: var(--pink); }
.tp-stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}
.tp-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* =============================================
   SECTION 3: WHY CHOOSE US
   ============================================= */
.tp-why {
    padding: 80px 0;
    background: var(--off-white);
}
.tp-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tp-why-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    transition: all 0.25s ease;
}
.tp-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.tp-why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.tp-why-icon-indigo { background: var(--indigo-light); color: var(--indigo); }
.tp-why-icon-blue { background: var(--blue-light); color: var(--blue); }
.tp-why-icon-yellow { background: var(--yellow-light); color: var(--yellow); }
.tp-why-icon-green { background: var(--green-light); color: var(--green); }
.tp-why-icon-orange { background: var(--orange-light); color: var(--orange); }
.tp-why-icon-red { background: var(--red-light); color: var(--red); }
.tp-why-icon-pink { background: var(--pink-light); color: var(--pink); }
.tp-why-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.tp-why-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* =============================================
   SECTION 4: ACTIVITIES & PROGRAMS
   ============================================= */
.tp-activities {
    padding: 80px 0;
    background: var(--white);
}
.tp-activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.tp-activity-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border-top: 3px solid transparent;
    transition: all 0.25s ease;
}
.tp-activity-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tp-activity-indigo { border-top-color: var(--indigo); }
.tp-activity-green { border-top-color: var(--green); }
.tp-activity-yellow { border-top-color: var(--yellow); }
.tp-activity-blue { border-top-color: var(--blue); }
.tp-activity-purple { border-top-color: var(--purple); }
.tp-activity-pink { border-top-color: var(--pink); }
.tp-activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.tp-activity-indigo .tp-activity-icon { background: var(--indigo-light); color: var(--indigo); }
.tp-activity-green .tp-activity-icon { background: var(--green-light); color: var(--green); }
.tp-activity-yellow .tp-activity-icon { background: var(--yellow-light); color: var(--yellow); }
.tp-activity-blue .tp-activity-icon { background: var(--blue-light); color: var(--blue); }
.tp-activity-purple .tp-activity-icon { background: var(--purple-light); color: var(--purple); }
.tp-activity-pink .tp-activity-icon { background: var(--pink-light); color: var(--pink); }
.tp-activity-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.tp-activity-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* =============================================
   SECTION 5: TESTIMONIALS
   ============================================= */
.tp-testimonials {
    padding: 80px 0;
    background: #FFF8E1;
}
.tp-testimonials-carousel {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.tp-testimonials-carousel input[type="radio"] {
    display: none;
}
.tp-testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
#t1:checked ~ .tp-testimonials-track { transform: translateX(0); }
#t2:checked ~ .tp-testimonials-track { transform: translateX(-100%); }
#t3:checked ~ .tp-testimonials-track { transform: translateX(-200%); }
.tp-testimonial-card {
    min-width: 100%;
    padding: 40px 36px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}
.tp-testimonial-quote {
    margin-bottom: 20px;
}
.tp-testimonial-quote i {
    font-size: 32px;
    color: var(--yellow);
}
.tp-testimonial-text {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}
.tp-testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.tp-testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--indigo);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.tp-testimonial-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
}
.tp-testimonial-role {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
}
.tp-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}
.tp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--indigo-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.tp-dot:hover { background: var(--indigo); }
#t1:checked ~ .tp-testimonial-dots label:nth-child(1),
#t2:checked ~ .tp-testimonial-dots label:nth-child(2),
#t3:checked ~ .tp-testimonial-dots label:nth-child(3) {
    background: var(--indigo);
    transform: scale(1.2);
}

/* =============================================
   SECTION 6: CTA — ADMISSIONS
   ============================================= */
.tp-cta {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #1A237E 0%, #0288D1 50%, #01579B 100%);
    overflow: hidden;
}
.tp-cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.tp-cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.tp-cta-circle-1 {
    width: 400px; height: 400px;
    top: -120px; right: -80px;
}
.tp-cta-circle-2 {
    width: 300px; height: 300px;
    bottom: -100px; left: -60px;
}
.tp-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.tp-cta-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 20px;
}
.tp-cta-title {
    font-size: 34px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}
.tp-cta-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.tp-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.tp-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}
.tp-cta-btn-primary {
    background: white;
    color: var(--navy);
}
.tp-cta-btn-primary:hover {
    background: var(--yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.tp-cta-btn-outline {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}
.tp-cta-btn-outline:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}
.tp-cta-contact {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.tp-cta-contact span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}
.tp-cta-contact i { font-size: 16px; }

/* =============================================
   FOOTER
   ============================================= */
.tp-footer {
    background: #1A237E;
    padding: 40px 24px;
    text-align: center;
}
.tp-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
}
/* School branding — prominent */
.tp-footer-school {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tp-footer-school-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.tp-footer-school-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
}
.tp-footer-school-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}
.tp-footer-school-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-style: italic;
}
/* Old footer brand (hidden now but kept for compat) */
.tp-footer-brand { display: none; }
.tp-footer-logo { display: none; }
.tp-footer-name { display: none; }
.tp-footer-powered { display: none; }
/* Copyright */
.tp-footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}
/* Social links */
.tp-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}
.tp-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    transition: all 0.2s ease;
}
.tp-social-link:hover {
    background: #0288D1;
    color: white;
    transform: translateY(-2px);
}
/* Developer credit — subdued */
.tp-footer-dev {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.tp-footer-dev-label {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}
.tp-footer-dev-name {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}
.tp-footer-dev-phone {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

/* =============================================
   CMS PAGE (generic pages)
   ============================================= */
.tp-page {
    padding: 60px 24px;
    background: var(--white);
    min-height: 50vh;
}
.tp-page-inner {
    max-width: 900px;
    margin: 0 auto;
}
.tp-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.025em;
}
.tp-page-content {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.8;
}
.tp-page-content p { margin-bottom: 16px; }
.tp-page-content h2, .tp-page-content h3 { color: var(--text-primary); margin: 24px 0 12px; }
.tp-page-content img { border-radius: var(--radius-md); margin: 16px 0; }

/* =============================================
   SECTION: ACADEMIC PROGRAMS (NEW)
   ============================================= */
.tp-programs {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #E1F5FE 100%);
}
.tp-programs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.tp-program-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.tp-program-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.tp-program-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.06;
    transform: translate(30px, -30px);
}
.tp-program-blue { border-left-color: var(--indigo); }
.tp-program-blue::after { background: var(--indigo); }
.tp-program-green { border-left-color: var(--green); }
.tp-program-green::after { background: var(--green); }
.tp-program-pink { border-left-color: var(--pink); }
.tp-program-pink::after { background: var(--pink); }
.tp-program-gold { border-left-color: var(--yellow); }
.tp-program-gold::after { background: var(--yellow); }
.tp-program-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}
.tp-program-blue .tp-program-level { background: var(--indigo-light); color: var(--indigo); }
.tp-program-green .tp-program-level { background: var(--green-light); color: var(--green); }
.tp-program-pink .tp-program-level { background: var(--pink-light); color: var(--pink); }
.tp-program-gold .tp-program-level { background: var(--yellow-light); color: #E65100; }
.tp-program-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}
.tp-program-blue .tp-program-icon { background: var(--indigo-light); color: var(--indigo); }
.tp-program-green .tp-program-icon { background: var(--green-light); color: var(--green); }
.tp-program-pink .tp-program-icon { background: var(--pink-light); color: var(--pink); }
.tp-program-gold .tp-program-icon { background: var(--yellow-light); color: var(--yellow); }
.tp-program-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.tp-program-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}
.tp-program-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.tp-program-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-body);
    padding: 5px 0;
}
.tp-program-features li i {
    font-size: 16px;
    flex-shrink: 0;
}
.tp-program-blue .tp-program-features li i { color: var(--indigo); }
.tp-program-green .tp-program-features li i { color: var(--green); }
.tp-program-pink .tp-program-features li i { color: var(--pink); }
.tp-program-gold .tp-program-features li i { color: var(--yellow); }

/* =============================================
   SECTION: OUR VALUES (NEW)
   ============================================= */
.tp-values {
    padding: 80px 0;
    background: var(--white);
}
.tp-values-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
}
.tp-value-item {
    padding: 24px 12px;
    transition: transform 0.25s ease;
}
.tp-value-item:hover {
    transform: translateY(-4px);
}
.tp-value-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 14px;
    transition: all 0.3s ease;
}
.tp-value-item:hover .tp-value-circle {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}
.tp-value-blue { background: var(--indigo-light); color: var(--indigo); }
.tp-value-green { background: var(--green-light); color: var(--green); }
.tp-value-pink { background: var(--pink-light); color: var(--pink); }
.tp-value-gold { background: var(--yellow-light); color: var(--yellow); }
.tp-value-red { background: var(--red-light); color: var(--red); }
.tp-value-navy { background: #E8EAF6; color: var(--navy); }
.tp-value-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.tp-value-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =============================================
   SECTION: CAMPUS HIGHLIGHTS (NEW)
   ============================================= */
.tp-campus {
    padding: 80px 0;
    background: var(--off-white);
}
.tp-campus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}
.tp-campus-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.tp-campus-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.tp-campus-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tp-campus-visual {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}
.tp-campus-large .tp-campus-visual {
    height: 200px;
    font-size: 64px;
}
.tp-campus-bg-blue { background: linear-gradient(135deg, #0288D1, #0277BD); }
.tp-campus-bg-green { background: linear-gradient(135deg, #2E7D32, #1B5E20); }
.tp-campus-bg-pink { background: linear-gradient(135deg, #E91E63, #C2185B); }
.tp-campus-bg-gold { background: linear-gradient(135deg, #FFB300, #FF8F00); }
.tp-campus-bg-navy { background: linear-gradient(135deg, #1A237E, #283593); }
.tp-campus-info {
    padding: 20px;
}
.tp-campus-info h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.tp-campus-info p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.tp-campus-large .tp-campus-info h3 { font-size: 18px; }
.tp-campus-large .tp-campus-info p { font-size: 14px; }

/* =============================================
   SECTION: FAQ (NEW)
   ============================================= */
.tp-faq {
    padding: 80px 0;
    background: var(--white);
}
.tp-faq-list {
    max-width: 740px;
    margin: 0 auto;
}
.tp-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}
.tp-faq-item:hover {
    border-color: var(--indigo-muted);
}
.tp-faq-toggle {
    display: none;
}
.tp-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--white);
    transition: all 0.2s ease;
}
.tp-faq-question:hover {
    background: var(--indigo-light);
    color: var(--indigo);
}
.tp-faq-arrow {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.tp-faq-toggle:checked + .tp-faq-question .tp-faq-arrow {
    transform: rotate(180deg);
    color: var(--indigo);
}
.tp-faq-toggle:checked + .tp-faq-question {
    background: var(--indigo-light);
    color: var(--indigo);
}
.tp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
}
.tp-faq-toggle:checked ~ .tp-faq-answer {
    max-height: 200px;
    padding: 0 24px 18px;
}
.tp-faq-answer p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.7;
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 15px); }
}
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.05; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.08; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}
@keyframes floatDot1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -30px); }
    50% { transform: translate(-15px, -50px); }
    75% { transform: translate(25px, -20px); }
}
@keyframes floatDot2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-25px, -20px); }
    50% { transform: translate(20px, -40px); }
    75% { transform: translate(-10px, -25px); }
}
@keyframes floatDot3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, 20px); }
    50% { transform: translate(-20px, -10px); }
    75% { transform: translate(30px, 15px); }
}
@keyframes floatDot4 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-20px, 25px); }
    50% { transform: translate(15px, -20px); }
    75% { transform: translate(-25px, 10px); }
}
.tp-about, .tp-why, .tp-activities, .tp-testimonials, .tp-cta,
.tp-programs, .tp-values, .tp-campus, .tp-faq {
    animation: fadeInUp 0.6s ease-out both;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .tp-hero-title { font-size: 36px; }
    .tp-why-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-activities-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-stats { grid-template-columns: repeat(2, 1fr); }
    .tp-programs-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-values-grid { grid-template-columns: repeat(3, 1fr); }
    .tp-campus-grid { grid-template-columns: repeat(2, 1fr); }
    .tp-campus-large { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 768px) {
    .tp-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .tp-nav.open { display: flex; }
    .tp-nav-login-group {
        border-left: none;
        border-top: 1px solid var(--border);
        margin-left: 0;
        padding-left: 0;
        padding-top: 12px;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
    .tp-mobile-toggle { display: flex; }
    .tp-hero { padding: 48px 20px 40px; }
    .tp-hero-title { font-size: 30px; }
    .tp-hero-subtitle { font-size: 15px; }
    .tp-hero-logo img { width: 72px; height: 72px; }
    .tp-hero-tagline { font-size: 13px; }
    .tp-hero-dot { opacity: 0.35; }
    .tp-hero-dot-1 { width: 12px; height: 12px; }
    .tp-hero-dot-2 { width: 10px; height: 10px; }
    .tp-hero-dot-3 { width: 14px; height: 14px; }
    .tp-hero-dot-4 { width: 8px; height: 8px; }
    .tp-portals {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .tp-about, .tp-why, .tp-activities, .tp-testimonials, .tp-cta,
    .tp-programs, .tp-values, .tp-campus, .tp-faq {
        padding: 56px 0;
    }
    .tp-programs-grid { grid-template-columns: 1fr; }
    .tp-values-grid { grid-template-columns: repeat(3, 1fr); }
    .tp-campus-grid { grid-template-columns: 1fr; }
    .tp-campus-large { grid-column: auto; grid-row: auto; }
    .tp-faq-question { padding: 16px 20px; font-size: 14px; }
    .tp-section-title { font-size: 26px; }
    .tp-section-subtitle { font-size: 14px; }
    .tp-about-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .tp-about-logo img, .tp-about-logo-placeholder {
        width: 120px; height: 120px;
    }
    .tp-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .tp-stat-number { font-size: 26px; }
    .tp-why-grid { grid-template-columns: 1fr; }
    .tp-activities-grid { grid-template-columns: 1fr; }
    .tp-testimonial-card { padding: 28px 20px; }
    .tp-testimonial-text { font-size: 14px; }
    .tp-cta-title { font-size: 26px; }
    .tp-cta-buttons { flex-direction: column; align-items: center; }
    .tp-cta-contact { flex-direction: column; align-items: center; gap: 12px; }
    .tp-footer-school-name { font-size: 16px; }
}
@media (max-width: 480px) {
    .tp-hero-title { font-size: 26px; }
    .tp-portal-card { padding: 24px 16px; }
    .tp-stat-card { padding: 20px 12px; }
    .tp-stat-number { font-size: 24px; }
    .tp-why-card, .tp-activity-card { padding: 24px 20px; }
    .tp-values-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tp-value-circle { width: 56px; height: 56px; font-size: 22px; }
    .tp-program-card { padding: 24px 20px; }
}

/* ==========================================
   ONLINE ADMISSION FORM STYLES
   Montessori World School Theme
   ========================================== */

/* --- Page Title Area (above form) --- */
.row.justify-content-center {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px 30px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.pt20 { padding-top: 20px; }
.mt10 { margin-top: 10px; }
h3.entered {
  font-size: 28px;
  color: #1A237E;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  margin: 0 16px 0 0;
}
h3.entered + a,
a[href="#checkOnlineAdmissionStatus"] {
  color: #0288D1;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
h3.entered + a:hover,
a[href="#checkOnlineAdmissionStatus"]:hover {
  color: #01579B;
  text-decoration: underline;
}

/* --- Bootstrap-like Grid for Form --- */
.onlineform .row,
.onlineform .printcontent > .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}
.onlineform .row::after {
  content: "";
  display: table;
  clear: both;
}
.onlineform [class*="col-md-"],
.onlineform [class*="col-lg-"],
.onlineform [class*="col-sm-"] {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  width: 100%;
}
.onlineform .col-md-2 { width: 16.666%; }
.onlineform .col-md-3 { width: 25%; }
.onlineform .col-md-4 { width: 33.333%; }
.onlineform .col-md-6 { width: 50%; }
.onlineform .col-md-7 { width: 58.333%; }
.onlineform .col-md-8 { width: 66.666%; }
.onlineform .col-md-12 { width: 100%; }
.onlineform .col-lg-2 { width: 16.666%; }
.onlineform .col-sm-5 { width: 41.666%; }
@media (max-width: 768px) {
  .onlineform [class*="col-md-"],
  .onlineform [class*="col-lg-"],
  .onlineform [class*="col-sm-"] { width: 100%; }
}

/* --- Form Container --- */
.onlineform {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 40px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  font-family: 'Inter', sans-serif;
}

/* --- Spacing Utilities --- */
.spaceb60 { margin-bottom: 60px; }
.spacet40 { margin-top: 20px; }
.displaynone { display: none !important; }
.mt0 { margin-top: 0 !important; }

/* --- Section Headings --- */
.onlineform h4.pagetitleh2 {
  color: #1A237E;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  margin: 28px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E1F5FE;
  position: relative;
}
.onlineform h4.pagetitleh2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #0288D1, #E91E63);
}
.onlineform h4:not(.pagetitleh2) {
  font-size: 16px;
  color: #0288D1;
  font-weight: 700;
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E1F5FE;
}

/* --- Form Groups --- */
.onlineform .form-group {
  margin-bottom: 18px;
}
.onlineform label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #37474F;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.onlineform .req {
  color: #E53935;
  font-weight: 700;
  margin-left: 2px;
}

/* --- Form Controls --- */
.onlineform .form-control,
.onlineform input[type="text"],
.onlineform input[type="email"],
.onlineform input[type="number"],
.onlineform input[type="tel"],
.onlineform input[type="date"],
.onlineform input[type="password"],
.onlineform select,
.onlineform textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #37474F;
  background: #FAFBFC;
  border: 1.5px solid #CFD8DC;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: auto;
  line-height: 1.4;
}
.onlineform .form-control:focus,
.onlineform input:focus,
.onlineform select:focus,
.onlineform textarea:focus {
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2,136,209,0.12);
  background: #fff;
}
.onlineform select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2390A4AE'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.onlineform textarea {
  min-height: 80px;
  resize: vertical;
}

/* --- Validation Errors --- */
.onlineform .text-danger,
.onlineform span.text-danger {
  color: #E53935;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* --- Radio Buttons --- */
.onlineform input[type="radio"] {
  -webkit-appearance: radio;
  -moz-appearance: radio;
  appearance: radio;
  width: auto;
  display: inline;
  margin-right: 4px;
  accent-color: #0288D1;
}
.onlineform .radio-inline,
.onlineform label.radio-inline {
  display: inline-block;
  margin-right: 16px;
  font-weight: 400;
  cursor: pointer;
}

/* --- File Upload --- */
.onlineform input[type="file"] {
  display: block;
  width: 100%;
  padding: 8px;
  font-size: 13px;
  color: #37474F;
  background: #FAFBFC;
  border: 1.5px dashed #CFD8DC;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.onlineform input[type="file"]:hover {
  border-color: #0288D1;
}
.onlineform input[type="file"]::-webkit-file-upload-button {
  background: linear-gradient(135deg, #0288D1, #0277BD);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 10px;
}

/* --- Submit Button --- */
.onlineform .onlineformbtn,
.onlineform input[type="submit"],
.onlineform button[type="submit"] {
  display: inline-block;
  padding: 12px 40px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #0288D1, #0277BD);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(2,136,209,0.25);
  text-decoration: none;
  line-height: 1.4;
  margin-top: 10px;
}
.onlineform .onlineformbtn:hover,
.onlineform input[type="submit"]:hover,
.onlineform button[type="submit"]:hover {
  background: linear-gradient(135deg, #0277BD, #01579B);
  box-shadow: 0 4px 16px rgba(2,136,209,0.35);
  transform: translateY(-1px);
}

/* --- Captcha --- */
.onlineform .captcharefreshicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #E1F5FE;
  border-radius: 8px;
  color: #0288D1;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.onlineform .captcharefreshicon:hover {
  background: #B3E5FC;
}

/* --- Modal (Check Status) --- */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1050; overflow-y: auto; outline: 0; }
.modal.in, .modal.show { display: block; }
.modal-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.45); z-index: 1040; }
.modal-dialog { max-width: 480px; margin: 80px auto; position: relative; z-index: 1050; }
.modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  overflow: hidden;
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #ECEFF1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h4, .modal-header .modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #1A237E;
  margin: 0;
  font-family: 'Inter', sans-serif;
}
.modal-header .close, .modal-header button.close {
  background: none;
  border: none;
  font-size: 24px;
  color: #90A4AE;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.modal-body {
  padding: 20px;
}
.modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #37474F;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.modal-body .form-group { margin-bottom: 16px; }
.modal-body .form-control,
.modal-body input[type="text"],
.modal-body input[type="date"] {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: #37474F;
  background: #FAFBFC;
  border: 1.5px solid #CFD8DC;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
.modal-body .form-control:focus,
.modal-body input:focus {
  border-color: #0288D1;
  box-shadow: 0 0 0 3px rgba(2,136,209,0.12);
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid #ECEFF1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.modal-footer .btn,
.modal-footer button,
.modal-footer input[type="submit"] {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.modal-footer .btn-primary,
.modal-footer input[type="submit"] {
  background: linear-gradient(135deg, #0288D1, #0277BD);
  color: #fff;
  box-shadow: 0 2px 6px rgba(2,136,209,0.2);
}
.modal-footer .btn-default,
.modal-footer .modal-close-xs {
  background: #ECEFF1;
  color: #37474F;
}
.modal-footer .btn-default:hover { background: #CFD8DC; }

/* --- Fade animation --- */
.fade { opacity: 0; transition: opacity 0.15s linear; }
.fade.in { opacity: 1; }

/* --- Print Content wrapper --- */
.printcontent {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

/* --- Admission Page Animation --- */
.onlineform {
  animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Instruction/Alert Box --- */
.onlineform .alert,
.onlineform .instruction-box {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.onlineform .alert-info {
  background: #E1F5FE;
  border-left: 4px solid #0288D1;
  color: #01579B;
}

/* --- Image Preview --- */
.onlineform img {
  max-width: 120px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #E1F5FE;
  margin-top: 6px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .onlineform {
    padding: 24px 16px;
    margin: 0 10px 30px;
    border-radius: 12px;
  }
  h3.entered { font-size: 22px; }
  .onlineform h4.pagetitleh2 { font-size: 16px; }
  .onlineform .onlineformbtn,
  .onlineform input[type="submit"] {
    width: 100%;
    text-align: center;
  }
  .row.justify-content-center {
    padding: 20px 16px 0;
    flex-direction: column;
    gap: 6px;
  }
}

/* --- Datepicker Override --- */
.datepicker {
  font-family: 'Inter', sans-serif !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
}
.datepicker table tr td.active,
.datepicker table tr td.active:hover {
  background: #0288D1 !important;
  color: #fff !important;
}
.datepicker table tr th {
  color: #1A237E !important;
  font-weight: 600 !important;
}

/* --- Other frontend pages (Contact, Complain, etc) --- */
.page-content-area,
body > .container,
body > .content-wrapper {
  max-width: 960px;
  margin: 30px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  font-family: 'Inter', sans-serif;
}

/* --- Admission Form Grid Override: 2 per row desktop, 1 per row mobile --- */
.onlineform .col-md-2,
.onlineform .col-md-3,
.onlineform .col-md-4,
.onlineform .col-md-6,
.onlineform .col-md-7,
.onlineform .col-md-8,
.onlineform .col-lg-2,
.onlineform .col-sm-5 { width: 50%; }
.onlineform .col-md-12 { width: 100%; }
@media (max-width: 768px) {
  .onlineform .col-md-2,
  .onlineform .col-md-3,
  .onlineform .col-md-4,
  .onlineform .col-md-6,
  .onlineform .col-md-7,
  .onlineform .col-md-8,
  .onlineform .col-lg-2,
  .onlineform .col-sm-5,
  .onlineform .col-md-12 { width: 100%; }
}
