/* Variables & Reset */
:root {
    --primary-color: #0a2342;
    /* Deep Royal Blue */
    --secondary-color: #2ca58d;
    /* Teal/Green for growth */
    --accent-color: #f4d35e;
    /* Goldenrod for vibrancy */
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #0a2342 0%, #1e40af 100%);
    --gradient-accent: linear-gradient(135deg, #f4d35e 0%, #f59e0b 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--off-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.highlight {
    color: var(--secondary-color);
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--secondary-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.school-name {
    font-size: 1.2rem;
    font-weight: 800;
}

.school-branch {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links .btn-primary {
    color: var(--white);
    padding: 0.6rem 1.2rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* News Ticker */
.news-ticker {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 0;
    overflow: hidden;
}

.ticker-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticker-label {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 2;
}

.ticker-content {
    display: flex;
    gap: 3rem;
    animation: ticker 20s linear infinite;
    white-space: nowrap;
}

.ticker-content span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticker-content i {
    color: var(--accent-color);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-color);
    color: var(--white);
    padding-top: 80px;
    /* Offset for fixed nav */
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-badge-wrapper {
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats-new {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item-new {
    display: flex;
    flex-direction: column;
}

.stat-number-new {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.stat-label-new {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-icon-large {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
}

.floating-card {
    position: absolute;
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.card-1 {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-shape-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-shape-divider .shape-fill {
    fill: var(--off-white);
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(44, 165, 141, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(244, 211, 94, 0.2) 0%, transparent 20%);
    z-index: 0;
}

/* Features Section (Why Choose Us) */
.features {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: -100px;
    /* Overlap hero */
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(44, 165, 141, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--secondary-color);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* About Section Redesign */
.about-section {
    padding: 6rem 0;
    background: var(--white);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-wrapper.reverse {
    direction: rtl;
}

.about-wrapper.reverse .about-content {
    direction: ltr;
}

.about-image {
    position: relative;
}

.image-box-style-2 {
    height: 450px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #94a3b8;
    position: relative;
    overflow: hidden;
}

.image-box-style-2.alt-bg {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.sub-heading {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.quote {
    font-style: italic;
    color: var(--text-dark);
    font-weight: 500;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.signature {
    margin-top: 2rem;
}

/* Values Section */
.values-section {
    padding: 6rem 0;
    background: var(--off-white);
}

.values-list {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.value-item-small {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.value-item-small i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.value-item-small h5 {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--primary-color);
}

.value-item-small p {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: var(--text-light);
}


/* Facilities Modern Grid */
.facilities-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.facility-card-modern {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.facility-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.facility-card-modern.large {
    grid-column: span 2;
    background: var(--primary-color);
    color: var(--white);
}

.facility-card-modern.large h4 {
    color: var(--white);
}

.facility-card-modern.large p {
    color: rgba(255, 255, 255, 0.8);
}

.facility-card-modern.large .f-icon-modern {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.f-icon-modern {
    width: 50px;
    height: 50px;
    background: rgba(44, 165, 141, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: auto;
}

.facility-card-modern h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.facility-card-modern p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Programs Section */
.programs {
    padding: 6rem 0;
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--off-white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.program-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.program-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.link-arrow {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.link-arrow:hover {
    gap: 0.8rem;
}

/* Gallery */
.gallery {
    padding: 6rem 0;
    background: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.gallery-item {
    background-color: #cbd5e1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(0.98);
}

/* Placeholder colors for gallery items */
.item-1 {
    grid-column: 1 / 3;
    background-color: #94a3b8;
}

.item-2 {
    background-color: #64748b;
}

.item-3 {
    background-color: #475569;
}

.item-4 {
    grid-column: 2 / 5;
    background-color: #334155;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 66, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.quote-icon {
    font-size: 2rem;
    color: rgba(44, 165, 141, 0.2);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 50px;
    height: 50px;
    background: #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.testimonial-author h5 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    color: var(--primary-color);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Events */
.events {
    padding: 6rem 0;
    background: var(--off-white);
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.event-date {
    background: var(--off-white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    border: 1px solid #e2e8f0;
}

.event-date .day {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
}

.event-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.event-details p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.event-time {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 8rem 0 4rem;
    /* More top padding for fixed nav */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(44, 165, 141, 0.1) 0%, transparent 50%);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb i {
    font-size: 0.7rem;
}

/* Mission & Vision */
.mission-vision {
    padding: 5rem 0;
    background: var(--white);
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    padding: 3rem;
    border-radius: 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vision {
    background: linear-gradient(135deg, #0a2342 0%, #1e40af 100%);
}

.mission {
    background: linear-gradient(135deg, #2ca58d 0%, #0f766e 100%);
}

.mv-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.mv-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.mv-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* History Timeline */
.history {
    padding: 5rem 0;
    background: var(--off-white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: scale(1.02);
}

.year {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Leadership Team */
.team {
    padding: 5rem 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: var(--off-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-img {
    height: 250px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-face {
    font-size: 5rem;
    color: #94a3b8;
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.role {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Core Values */
.core-values {
    padding: 5rem 0;
    background: var(--primary-color);
    color: var(--white);
}

.values-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.values-content .section-title {
    color: var(--white);
}

.values-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.values-list-large {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.values-list-large li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.v-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.values-list-large h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.values-list-large p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.values-image {
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-placeholder-large {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}

.image-placeholder-large i {
    font-size: 6rem;
    display: block;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-links {
        display: none;
        /* Mobile menu styles would go here */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
    }

    .item-1,
    .item-4 {
        grid-column: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* About Page Responsive */
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item.right {
        left: 0;
    }

    .timeline-item.right::after {
        left: 21px;
    }

    .values-wrapper {
        grid-template-columns: 1fr;
    }

    .values-image {
        height: 300px;
        order: -1;
    }

    /* Academics Page Responsive */
    .curriculum-block {
        flex-direction: column;
    }

    .curriculum-block.reverse {
        flex-direction: column;
    }

    .curr-img {
        width: 100%;
        height: 250px;
    }

    .streams {
        grid-template-columns: 1fr;
    }

    /* Facilities Page Responsive */
    .facility-detail-card {
        flex-direction: column;
    }

    .facility-detail-card.reverse {
        flex-direction: column;
    }

    .f-img {
        width: 100%;
        height: 250px;
    }

    /* Gallery Page Responsive */
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats-new {
        justify-content: center;
    }

    .hero-image-placeholder {
        height: 300px;
        margin-top: 2rem;
    }

    .card-1 {
        left: 0;
    }

    .card-2 {
        right: 0;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-wrapper.reverse {
        direction: ltr;
    }

    .facilities-grid-modern {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .facility-card-modern.large {
        grid-column: span 1;
    }
}

/* Academics Page Styles */
.academic-overview {
    padding: 5rem 0;
    background: var(--white);
}

.overview-content {
    max-width: 800px;
    margin: 0 auto;
}

.overview-content p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Curriculum Stages */
.curriculum {
    padding: 0 0 5rem;
}

.curriculum-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.curriculum-block.reverse {
    flex-direction: row-reverse;
}

.curr-img {
    flex: 1;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.curr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.5);
}

.p-primary {
    background: #fca5a5;
}

.primary {
    background: #86efac;
}

.secondary {
    background: #93c5fd;
}

.higher-sec {
    background: #c4b5fd;
}

.curr-content {
    flex: 1;
}

.curr-tag {
    display: inline-block;
    background: rgba(44, 165, 141, 0.1);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.curr-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.curr-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.curr-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.curr-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.curr-features i {
    color: var(--secondary-color);
}

/* Streams (Higher Secondary) */
.streams {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stream-box {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stream-box:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.stream-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.stream-box h4 {
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.stream-box p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Methodology */
.methodology {
    padding: 5rem 0;
    background: var(--off-white);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.method-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.m-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.method-card h4 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.method-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Facilities Page Styles */
.facilities-intro {
    padding: 5rem 0;
    background: var(--white);
}

.facilities-detailed {
    padding: 0 0 5rem;
}

.facility-detail-card {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.facility-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.facility-detail-card.reverse {
    flex-direction: row-reverse;
}

.f-img {
    flex: 1;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: var(--off-white);
}

.f-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--secondary-color);
    background: rgba(44, 165, 141, 0.1);
}

.f-content {
    flex: 1;
}

.f-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.f-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.f-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.f-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.f-features i {
    color: var(--secondary-color);
}

/* Gallery Page Styles */
.gallery-filter-section {
    padding: 3rem 0 2rem;
    background: var(--off-white);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.full-gallery {
    padding: 2rem 0 5rem;
    background: var(--off-white);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 300px;
    /* Fixed height for grid */
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.g-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.gallery-card:hover .g-img {
    transform: scale(1.1);
}

.g-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .g-overlay {
    transform: translateY(0);
    opacity: 1;
}

.g-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.g-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Placeholders for Gallery Page */
.placeholder-1 {
    background-color: #94a3b8;
}

.placeholder-2 {
    background-color: #64748b;
}

.placeholder-3 {
    background-color: #475569;
}

.placeholder-4 {
    background-color: #334155;
}

.placeholder-5 {
    background-color: #1e293b;
}

.placeholder-6 {
    background-color: #0f172a;
}

.placeholder-7 {
    background-color: #cbd5e1;
}

.placeholder-8 {
    background-color: #e2e8f0;
}