/* ==========================================================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    --primary-color: #0b2545;       /* Deep Navy Blue */
    --primary-light: #134074;      /* Medium Royal Blue */
    --secondary-color: #8da9c4;    /* Pastel Slate Blue */
    --accent-color: #d97706;       /* Warm Educational Gold */
    --accent-light: #f59e0b;       /* Golden Highlights */
    --bg-light: #eef4f8;           /* Soft Blue-Grey Background */
    --bg-white: #ffffff;           /* Clean White */
    --text-dark: #0f172a;          /* Slate Dark Grey for Text */
    --text-muted: #475569;         /* Muted Grey for description */
    --success-color: #10b981;      /* Success Emerald Green */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 20px rgba(217, 119, 6, 0.2);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-circle: 50%;
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ==========================================================================
   SCROLLBAR & PROGRESS BAR
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-light));
    width: 0%;
    z-index: 9999;
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

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

.text-gold {
    color: var(--accent-light);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 0;
    background-color: rgba(11, 37, 69, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header.scrolled {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    transition: var(--transition-normal);
}

.main-header.scrolled .header-container {
    padding: 0.6rem 1.5rem;
}

/* Running Marquee Top Bar Styles */
.top-bar {
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 0.35rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.top-bar-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.marquee-label {
    background-color: var(--primary-color);
    color: var(--accent-light);
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.top-bar marquee {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--bg-white);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.school-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: var(--border-radius-circle);
    border: 2px solid var(--accent-color);
    background-color: var(--bg-white);
    padding: 2px;
}

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

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-white);
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 0.25rem 0;
}

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

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

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

.btn-nav {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hamburguer menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--bg-white);
    border-radius: 10px;
    transition: var(--transition-normal);
}

/* Hamburguer active state animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--bg-white);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.9) 0%, rgba(19, 64, 116, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out forwards;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(217, 119, 6, 0.2);
    border: 1px solid var(--accent-color);
    color: var(--accent-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   STATS BAR SECTION
   ========================================================================== */
.stats-section {
    position: relative;
    z-index: 5;
    margin-top: -60px;
    padding-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 40px rgba(11, 37, 69, 0.15);
    border: 1px solid rgba(141, 169, 196, 0.2);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    transition: var(--transition-normal);
    border-right: 1px solid #e2e8f0;
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background-color: rgba(19, 64, 116, 0.1);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.stat-card:hover .stat-icon-wrapper {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* ==========================================================================
   SECTION STANDARD HEADERS
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-tagline {
    display: inline-block;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.title-underline {
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-light));
    margin: 0 auto 1.5rem auto;
    border-radius: 10px;
}

.section-header.text-center .title-underline {
    margin-left: auto;
    margin-right: auto;
}

.section-desc {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about-section {
    background-color: var(--bg-light);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-text-content h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.about-text-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.value-icon {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.value-text strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 600;
}

.value-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-image-wrapper {
    position: relative;
}

.about-img-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--bg-white);
}

.about-side-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--accent-color);
    max-width: 230px;
}

.badge-num {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.badge-lbl {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Leadership Desks */
.leadership-header {
    margin-top: 2rem;
    margin-bottom: 3.5rem;
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subsection-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.leadership-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    transition: var(--transition-normal);
    border: 1px solid rgba(141, 169, 196, 0.1);
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.2);
}

.leader-image-box {
    width: 200px;
    position: relative;
    flex-shrink: 0;
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-title-tag {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    border-radius: 30px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.leader-info {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
}

.leader-info h4 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.leader-sub {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.quote-icon {
    font-size: 1.5rem;
    color: rgba(141, 169, 196, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.leader-message {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   COURSES WE OFFER SECTION
   ========================================================================== */
.courses-section {
    background-color: var(--bg-white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.course-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    padding: 2.25rem;
    border: 1px solid rgba(141, 169, 196, 0.25);
    position: relative;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.course-card.highlighted {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow-md);
}

.course-badge-popular {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    text-transform: uppercase;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.course-icon-box {
    width: 55px;
    height: 55px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(19, 64, 116, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.course-card:hover .course-icon-box {
    background-color: var(--accent-color);
    color: var(--bg-white);
    transform: rotate(5deg) scale(1.05);
}

.course-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

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

.course-details {
    border-top: 1px solid rgba(141, 169, 196, 0.2);
    padding-top: 1.25rem;
}

.course-details h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.course-details ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.course-details li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-details li i {
    color: var(--success-color);
    font-size: 0.9rem;
}

/* ==========================================================================
   ADMISSIONS & ENQUIRY FORM SECTION
   ========================================================================== */
.admission-section {
    background-color: var(--bg-light);
}

.admission-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.admission-info-box {
    padding-right: 1.5rem;
}

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

.admission-headline {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.admission-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    background-color: rgba(19, 64, 116, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-circle);
    flex-shrink: 0;
}

.step-content h5 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Beautiful Form Wrapper */
.form-wrapper {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(141, 169, 196, 0.15);
    overflow: hidden;
    position: relative;
    min-height: 600px;
}

.form-header {
    background-color: var(--primary-color);
    padding: 2.25rem;
    color: var(--bg-white);
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.enquiry-form {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    background-color: var(--bg-light);
    outline: none;
    transition: var(--transition-normal);
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: #94a3b8;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary-light);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(19, 64, 116, 0.15);
}

.input-wrapper input:focus + i,
.input-wrapper select:focus + i,
.input-wrapper textarea:focus + i {
    color: var(--primary-light);
}

/* Custom Text Area Adjustments */
.text-area-wrapper {
    align-items: flex-start;
}

.text-area-wrapper i {
    top: 14px;
}

.text-area-wrapper textarea {
    resize: none;
}

/* Submit Spinner */
.spinner {
    display: none;
    margin-left: 0.5rem;
    font-size: 1.1rem;
}

#submitBtn.loading .spinner {
    display: inline-block;
}

#submitBtn.loading .btn-text {
    opacity: 0.8;
}

/* Form Success Box */
.form-success-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    pointer-events: none;
}

.form-success-box.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.form-success-box h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.success-msg {
    color: var(--text-muted);
    margin-bottom: 2.25rem;
    max-width: 400px;
    line-height: 1.6;
}

/* ==========================================================================
   CONTACT & MAP SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contact-details-card {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    border: 1px solid rgba(141, 169, 196, 0.1);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-color);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.contact-text p,
.contact-text a {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

/* Premium Map Mockup Design */
.map-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 450px;
    border: 5px solid var(--bg-light);
}

.map-placeholder {
    height: 100%;
    background-color: #e5e9f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-overlay-content {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 10;
    max-width: 340px;
    border: 1px solid rgba(141, 169, 196, 0.2);
}

.pin-animation {
    font-size: 2.5rem;
    color: #ef4444;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bouncePin 1.5s infinite alternate;
}

@keyframes bouncePin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.map-overlay-content h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.map-overlay-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.map-overlay-content .map-subtext {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.25rem;
}

/* Background road decorations for realistic map feeling */
.map-bg-graphics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.road {
    position: absolute;
    background-color: #ffffff;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.road-h {
    top: 40%;
    left: 0;
    width: 100%;
    height: 25px;
}

.road-v {
    left: 60%;
    top: 0;
    width: 30px;
    height: 100%;
}

.park-area {
    position: absolute;
    background-color: #d1ebd5;
    border-radius: var(--border-radius-lg);
    top: 10%;
    left: 10%;
    width: 150px;
    height: 100px;
}

.river-area {
    position: absolute;
    background-color: #c4e1eb;
    bottom: 5%;
    right: -10%;
    width: 250px;
    height: 80px;
    transform: rotate(-15deg);
    border-radius: 50%;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-floating-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer-section {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 5rem 0 0 0;
    border-top: 5px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
    gap: 3.5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo img {
    height: 40px;
    border-radius: var(--border-radius-circle);
    border: 1px solid var(--accent-color);
    background-color: var(--bg-white);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-circle);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.footer-grid h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 1.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 5px;
}

.footer-links ul,
.footer-courses ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links a,
.footer-courses a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover,
.footer-courses a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    line-height: 1.5;
}

.footer-contact p i {
    color: var(--accent-light);
    font-size: 1.05rem;
    margin-top: 0.2rem;
}

.footer-bottom {
    background-color: #07192f;
    padding: 1.5rem 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-circle);
    background-color: var(--accent-color);
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Smaller Laptops */
@media screen and (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-card {
        border-right: none;
    }
    
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admission-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .admission-info-box {
        padding-right: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Mobile Viewports */
@media screen and (max-width: 768px) {
    .section-padding {
        padding: 4.5rem 0;
    }
    
    /* Responsive Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 6rem 2.5rem 3rem 2.5rem;
        gap: 3rem;
        transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.15rem;
        color: rgba(255, 255, 255, 0.85);
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
        border-radius: var(--border-radius-sm);
    }
    
    .nav-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .leadership-card {
        flex-direction: column;
    }
    
    .leader-image-box {
        width: 100%;
        height: 250px;
    }
    
    .leader-img {
        object-position: center 20%;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Very Small Mobile Phones */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-details-card {
        padding: 2rem 1.5rem;
    }
    
    .enquiry-form {
        padding: 1.75rem;
    }
    
    .form-success-box {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   VISITOR COUNTER BADGE
   ========================================================================== */
.visitor-counter {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.visitor-counter:hover {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.15);
}

.visitor-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.visitor-label i {
    color: var(--accent-light);
}

.visitor-number {
    background-color: var(--accent-color);
    color: var(--bg-white);
    font-weight: 700;
    padding: 0.15rem 0.65rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   TOPPERS' GALLERY SECTION (मेधावी छात्र)
   ========================================================================== */
.toppers-section {
    background-color: #f8fafc; /* Subtle light gray */
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    border-bottom: 1px solid rgba(141, 169, 196, 0.15);
}

/* Tabs Navigation */
.toppers-tabs {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    border: 2px solid rgba(19, 64, 116, 0.12);
    background-color: var(--bg-white);
    color: var(--primary-light);
    cursor: pointer;
    transition: all var(--transition-normal);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
    border-color: var(--accent-light);
    color: var(--accent-color);
    background-color: rgba(217, 119, 6, 0.03);
    transform: translateY(-2px);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(11, 37, 69, 0.2);
}

/* Tab Panes */
.toppers-panes {
    position: relative;
    width: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeTopperPane 0.4s ease-out forwards;
}

@keyframes fadeTopperPane {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toppers Grid Layout */
.toppers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

/* Profiles Cards */
.topper-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 2.75rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(141, 169, 196, 0.12);
    position: relative;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.topper-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 6, 0.2);
}

/* Podium Order for Desktop (Rank 2 on left, Rank 1 in middle, Rank 3 on right) */
.topper-card.rank-2 {
    order: 1;
}

.topper-card.rank-1 {
    order: 2;
}

.topper-card.rank-3 {
    order: 3;
}

/* Profile Photo Placeholder styling */
.topper-photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: var(--border-radius-circle);
    background-color: #f8fafc;
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

/* Support for real image if added later */
.topper-photo-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-circle);
    z-index: 2;
}

.topper-card:hover .topper-photo-placeholder {
    transform: scale(1.05);
}

/* Rank 1 Highlighted Card Styling */
.topper-card.highlighted-topper {
    border: 2px solid var(--accent-light);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(217, 119, 6, 0.12);
    padding-top: 3.75rem; /* Additional space for the crown */
    background: linear-gradient(180deg, var(--bg-white) 0%, rgba(217, 119, 6, 0.015) 100%);
    transform: scale(1.03);
}

.topper-card.highlighted-topper:hover {
    transform: scale(1.03) translateY(-10px);
}

.topper-photo-placeholder.gold-border {
    width: 125px;
    height: 125px;
    border-color: var(--accent-light);
    background-color: #fffbeb;
    color: var(--accent-color);
}

/* Badges & Medals */
.topper-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.85rem;
    border-radius: 30px;
    text-transform: uppercase;
    color: var(--bg-white);
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.rank-badge-1 {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

.rank-badge-2 {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

.rank-badge-3 {
    background: linear-gradient(135deg, #b45309, #d97706);
}

/* Crown decoration for Rank 1 */
.topper-crown {
    position: absolute;
    top: -24px;
    font-size: 2.25rem;
    filter: drop-shadow(0 2px 4px rgba(217,119,6,0.25));
    animation: floatCrown 3s ease-in-out infinite;
    z-index: 4;
}

@keyframes floatCrown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(3deg); }
}

.rank-icon-wrapper {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--bg-white);
    z-index: 3;
}

.star-gold {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
}

.star-silver {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.star-bronze {
    background: linear-gradient(135deg, #fdba74, #ea580c);
}

/* Text & Scores Info */
.topper-info {
    width: 100%;
}

.topper-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.highlighted-topper .topper-name {
    font-size: 1.35rem;
}

.topper-stream {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.topper-percentage {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlighted-topper .topper-percentage {
    font-size: 2.75rem;
    background: linear-gradient(135deg, var(--accent-color) 30%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.topper-achievement {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
    background-color: rgba(19, 64, 116, 0.06);
    padding: 0.35rem 1rem;
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(19, 64, 116, 0.05);
}

.highlighted-topper .topper-achievement {
    color: var(--accent-color);
    background-color: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.1);
}

/* Responsiveness overrides for tablet and mobile */
@media screen and (max-width: 992px) {
    .toppers-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
        gap: 3rem;
    }
    
    /* Rearrange cards to show Rank 1 on top, followed by 2, then 3 */
    .topper-card.rank-1 {
        order: 1;
        transform: none !important;
    }
    
    .topper-card.rank-2 {
        order: 2;
    }
    
    .topper-card.rank-3 {
        order: 3;
    }
    
    .tab-btn {
        padding: 0.65rem 1.35rem;
        font-size: 0.85rem;
    }
}

