/* 
   ==========================================================================
   Horizon Educational System & HESOS Academy Style Sheet
   Author: Expert Front-End Web Developer
   Year: 2026
   ========================================================================== 
*/

/* --- Google Font & CSS Variables --- */
:root {
    /* Color Palette */
    --primary-navy: #0F2027;
    --primary-navy-light: #203A43;
    --primary-navy-dark: #091317;
    --accent-red: #C0392B;
    --accent-red-hover: #A8201A;
    --accent-red-glow: rgba(192, 57, 43, 0.4);
    
    --bg-white: #FFFFFF;
    --bg-off-white: #FAF9F6;
    --bg-light-blue: #F4F6F9;
    
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #F8F9FA;
    
    /* Layout Variables */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(15, 32, 39, 0.08), 0 4px 6px -2px rgba(15, 32, 39, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(15, 32, 39, 0.1), 0 10px 10px -5px rgba(15, 32, 39, 0.04);
    --shadow-glow: 0 0 20px 5px var(--accent-red-glow);
}

/* --- Global Reset & Base Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.25;
}

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

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography Helpers --- */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-red), #F39C12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    gap: 8px;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-light);
    box-shadow: 0 4px 14px var(--accent-red-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red-hover);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
    z-index: -1;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-red-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
    background-color: var(--primary-navy);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: var(--border-radius-md);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* --- Header / Sticky Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 32, 39, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    transition: all var(--transition-smooth);
    background: transparent;
}

.logo:hover {
    background: transparent;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    mix-blend-mode: multiply; /* Seamlessly removes the white background from logo.jpg */
    clip-path: inset(10%);     /* Clips 10% off the image edges to completely remove the baked-in outer grey border */
    border-radius: 4px;
    transition: transform var(--transition-smooth);
}

.logo:hover .logo-img {
    transform: scale(1.08);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: 1px;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-red);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-navy-light);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-red);
}

/* Burger Toggle */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.burger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-navy);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 120px;
    background: linear-gradient(135deg, var(--bg-light-blue) 0%, #E9EDF0 100%);
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--accent-red-glow) 0.8px, transparent 0.8px);
    background-size: 16px 16px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.4);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
}

.badge {
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--accent-red);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(192, 57, 43, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Image Custom Styles */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-image-glow {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, var(--accent-red-glow) 0%, rgba(15, 32, 39, 0.15) 70%);
    filter: blur(40px);
    z-index: 1;
    opacity: 0.8;
}

.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    border-radius: var(--border-radius-lg);
    overflow: visible; /* to show floating badges */
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--bg-white);
    background-color: var(--bg-white);
    z-index: 2;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 32, 39, 0.2);
}

.hero-main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: calc(var(--border-radius-lg) - 4px);
    display: block;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    transition: transform var(--transition-smooth);
}

.floating-badge:hover {
    transform: scale(1.05);
}

.badge-students {
    bottom: 24px;
    left: -32px;
    border-left: 4px solid #2ECC71;
}

.badge-excellence {
    top: 24px;
    right: -32px;
    border-left: 4px solid var(--accent-red);
}

.badge-icon {
    font-size: 1.6rem;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.1;
}

.badge-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Wave Divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.hero-wave .shape-fill {
    fill: var(--bg-white);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.6rem;
    margin-bottom: 16px;
    position: relative;
}

.title-underline {
    width: 80px;
    height: 4px;
    background-color: var(--accent-red);
    margin: 0 auto 24px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- School Section --- */
.school-section {
    padding: 120px 0;
    background-color: var(--bg-white);
}

.school-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.school-content-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.school-content-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.school-bullets {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.school-bullets li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    color: var(--text-dark);
}

.bullet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(192, 57, 43, 0.1);
    color: var(--accent-red);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.school-visual-card {
    display: flex;
    justify-content: center;
}

.image-showcase {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 3.4;
}

.info-bubble {
    position: absolute;
    top: -24px;
    right: -20px;
    background-color: var(--accent-red);
    color: var(--text-light);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    z-index: 5;
    display: flex;
    flex-direction: column;
}

.bubble-title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
}

.bubble-desc {
    font-size: 0.8rem;
    opacity: 0.9;
}

.school-dashboard-mockup {
    width: 100%;
    height: 100%;
    background-color: var(--bg-light-blue);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 32, 39, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-nav {
    height: 50px;
    background-color: var(--primary-navy);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-indicator {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.dashboard-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    flex-grow: 1;
}

.curriculum-item {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 32, 39, 0.02);
}

.curr-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.curr-icon.nursery { background-color: rgba(34, 166, 179, 0.1); color: #22a6b3; }
.curr-icon.primary { background-color: rgba(240, 147, 43, 0.1); color: #f0932b; }
.curr-icon.science { background-color: rgba(192, 57, 43, 0.1); color: var(--accent-red); }

.curr-details {
    flex-grow: 1;
}

.curr-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary-navy);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--bg-light-blue);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background-color: var(--accent-red);
    border-radius: 4px;
}

/* --- Academy Courses Section --- */
.academy-section {
    padding: 120px 0;
    background-color: var(--bg-off-white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 32, 39, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-icon-wrapper {
    width: 68px;
    height: 68px;
    background-color: rgba(15, 32, 39, 0.04);
    color: var(--primary-navy);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.course-card:hover .course-icon-wrapper {
    background-color: var(--primary-navy);
    color: var(--text-light);
    transform: scale(1.05);
}

.course-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-navy);
}

.course-level {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: inline-block;
}

.course-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
    flex-grow: 1;
}

.course-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-navy);
}

.course-link svg {
    transition: transform var(--transition-fast);
}

.course-card:hover .course-link {
    color: var(--accent-red);
}

.course-card:hover .course-link svg {
    transform: translateX(4px);
}

/* --- Why Choose Us Section --- */
.why-us-section {
    padding: 120px 0;
    background-color: var(--bg-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    background-color: var(--bg-white);
    border: 1px solid rgba(15, 32, 39, 0.05);
    border-radius: var(--border-radius-md);
    padding: 36px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(192, 57, 43, 0.15);
    transform: translateY(-4px);
}

.why-icon {
    width: 52px;
    height: 52px;
    background-color: rgba(192, 57, 43, 0.07);
    color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
    background-color: var(--accent-red);
    color: var(--text-light);
    transform: rotate(360deg);
}

.why-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Footer & Contact Section --- */
.footer-section {
    background: linear-gradient(135deg, var(--primary-navy-dark) 0%, var(--primary-navy) 100%);
    color: var(--text-light);
    padding: 100px 0 30px;
    position: relative;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.logo-txt-primary {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-light);
    line-height: 1.1;
}

.logo-txt-sec {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-red);
    letter-spacing: 1px;
}

.footer-desc {
    color: rgba(248, 249, 250, 0.7);
    font-size: 1.05rem;
    max-width: 480px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: rgba(248, 249, 250, 0.85);
    width: 100%;
    max-width: 100%;
}

.contact-item span,
.contact-item a {
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item a:hover {
    color: var(--accent-red);
}

/* Footer Form */
.footer-form {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.footer-form h3 {
    color: var(--text-light);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.footer-form p {
    color: rgba(248, 249, 250, 0.6);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(248, 249, 250, 0.8);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group select option {
    background-color: var(--primary-navy);
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-red);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
}

.form-status-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form-status-message.success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ECC71;
    border: 1px solid rgba(46, 204, 113, 0.2);
    display: block;
}

.form-status-message.error {
    background-color: rgba(231, 76, 60, 0.15);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.2);
    display: block;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(248, 249, 250, 0.5);
}

.footer-dev-credit {
    font-weight: 500;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.4;
    z-index: -1;
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-icon {
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 { transition-delay: 0.2s; }
.delay-400 { transition-delay: 0.4s; }
.delay-600 { transition-delay: 0.6s; }

/* --- Responsive Media Queries (Mobile-first fallback) --- */

/* Medium Devices (Tablets, less than 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding-top: 30px;
    }
    
    .hero-content {
        align-items: center;
        background: rgba(255, 255, 255, 0.5);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-wrapper {
        margin-top: 20px;
    }

    .hero-image-card {
        max-width: 100%;
    }
    
    .school-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .school-content-card {
        text-align: center;
    }
    
    .school-bullets li {
        text-align: left;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Small Devices (Mobile & Small Tablets, less than 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    /* Navigation Burger System */
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 24px;
        gap: 40px;
        transition: var(--transition-smooth);
        box-shadow: 0 15px 30px rgba(0,0,0,0.05);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 28px;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        text-align: center;
        width: 100%;
    }

    .nav-cta-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .nav-cta {
        width: 100%;
        max-width: 300px;
    }

    /* Animated Hamburger Cross */
    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Sections */
    .hero-section {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 60px;
    }

    .hero-container {
        gap: 32px;
    }

    .hero-content {
        background: rgba(255, 255, 255, 0.6);
        padding: 24px;
        border-radius: 16px;
        align-items: center;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .school-section, 
    .academy-section, 
    .why-us-section {
        padding: 60px 0;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-form {
        padding: 24px 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 24px;
        right: 24px;
        width: 52px;
        height: 52px;
    }
}

/* Extra Small Devices (Smartphones, less than 480px) */
@media (max-width: 480px) {
    .logo {
        padding: 2px;
        gap: 6px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: 1.15rem;
        letter-spacing: 0.5px;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    .hero-title {
        font-size: 1.95rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtext {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 28px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    /* Floating badges inside image border for small phone screens */
    .badge-students {
        left: 10px;
        bottom: 10px;
    }

    .badge-excellence {
        right: 10px;
        top: 10px;
    }

    .floating-badge {
        padding: 8px 12px;
        gap: 8px;
        background: rgba(255, 255, 255, 0.95);
    }

    .badge-icon {
        font-size: 1.3rem;
    }

    .badge-num {
        font-size: 0.95rem;
    }

    .badge-lbl {
        font-size: 0.65rem;
    }

    .info-bubble {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 20px;
        align-items: center;
    }
}

/* iPhone SE & Extra Small (375px and below) */
@media (max-width: 375px) {
    .logo-text {
        display: none; /* Hide text to avoid collision with burger menu */
    }

    .logo {
        padding: 2px;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}
