:root {
    /* Light Theme Colors */
    --primary-color: #ff3333;    /* Deep red - main school color */
    --secondary-color: #003366;  /* Navy blue - accent color */
    --accent-gold: #FFD700;      /* Gold accent for highlights */
    --text-color: #333333;       /* Dark gray for text */
    --light-bg: #f8fafc;         /* Light background */
    --white: #ffffff;
    --card-bg: #ffffff;
    --subtle-bg: #f0f4f8;
    --footer-bg: #333333;
    --footer-text: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #990000, #660000);  /* Red gradient */
    --gradient-accent: linear-gradient(135deg, #003366, #002244);  /* Navy gradient */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --border-radius: 1rem;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --nav-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --modal-overlay: rgba(0, 0, 0, 0.5);
}

/* Dark Theme Colors */
.dark-mode {
    --primary-color: #ff3333;    /* Brighter red for dark mode */
    --secondary-color: #4d88cc;  /* Lighter blue for dark mode */
    --accent-gold: #FFD700;      /* Gold accent remains */
    --text-color: #e0e0e0;       /* Light gray for text */
    --light-bg: #1a1a1a;         /* Dark background */
    --white: #2c2c2c;            /* Dark gray instead of white */
    --card-bg: #2d2d2d;          /* Dark card background */
    --subtle-bg: #252525;        /* Subtle dark background */
    --footer-bg: #121212;        /* Darker footer */
    --footer-text: #e0e0e0;      /* Light text in footer */
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #cc0000, #990000);  /* Adjusted red gradient */
    --gradient-accent: linear-gradient(135deg, #3366cc, #0044cc);  /* Adjusted blue gradient */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
    --navbar-bg: rgba(29, 29, 29, 0.95);
    --nav-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    --modal-overlay: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.timeline-section {
    text-align: center;
    margin-top: 1rem;
}



#timelineRange {
    width: 80%;
    margin: 1rem 0;
}

#timelineYear {
    font-size: 1.8rem;
    color: var(--accent-color, #f02929);
    margin-bottom: 0.5rem;
}

#timelineDescription {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color, #333);
    max-width: 700px;
    margin: 0 auto;
}


/* Navigation */
header {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--nav-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 65px;
    display: flex;
    align-items: center;
}

/* When the page is scrolled, we apply a stronger shadow and slightly different bg using variables.
   Using variables ensures dark-mode styles are preserved (when .dark-mode is on the body). */
header.scrolled {
    background: var(--navbar-bg);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
}

nav {
    width:80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-right: 0.25rem;
}

@media screen and (max-width: 768px) {
    .logo {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .logo img {
        height: 35px;
    }
}

@media screen and (max-width: 480px) {
    .logo span {
        display: inline;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--primary-color);
    }
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    /* make the anchor only wrap the text on desktop so the underline matches text width */
    padding: 0.5rem 0;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    /* active underline should match the text width and be centered */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    /* expand underline to match the text width */
    width: 100%;
}

.enroll-btn, .cta-btn {
    background: var(--gradient);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.enroll-btn:hover, .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #800000, #4d0000);  /* Darker red gradient on hover */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Tablet Responsive Styles */
@media screen and (max-width: 768px) {
    nav {
        width: 90%;
        padding: 0.5rem 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        transform: translateY(-150%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: var(--shadow-md);
        z-index: 1000;
        max-height: calc(100vh - 65px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
        border-radius: 0.5rem;
        display: block;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        background-color: var(--light-bg);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a.active::after {
        display: none;
    }
    
    .nav-links a.active {
        background-color: var(--subtle-bg);
        color: var(--primary-color);
        font-weight: 600;
    }

    .enroll-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Adjust hero section padding for mobile */
    .hero {
        padding: 6rem 1rem 4rem;
    }

    /* Make feature cards stack on mobile */
    .features {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    /* Adjust program cards for mobile */
    .program-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    /* Adjust footer for mobile */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    /* Adjust content sections for mobile */
    .content-section {
        padding: 3rem 1.5rem;
    }
    
    .container {
        width: 100%;
        padding: 0;
    }
    
    /* Adjust team grid for mobile */
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Adjust values grid for mobile */
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Device Styles */
@media screen and (max-width: 480px) {
    header {
        height: 60px;
    }
    
    nav {
        width: 95%;
        padding: 0.5rem 0.5rem;
    }
    
    .nav-links {
        top: 60px;
        max-height: calc(100vh - 60px);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .feature-card, .program-card, .value-card {
        padding: 1.2rem;
    }
    
    .feature-card h3, .program-card h3, .value-card h3 {
        font-size: 1.2rem;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .about-intro h2, .about-mission h2, .about-values h2, .about-team h2, .about-location h2 {
        font-size: 1.8rem;
    }
    
    .map-container iframe {
        height: 300px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Animation for menu button when active */
.mobile-menu-btn.active {
    background-color: rgba(153, 0, 0, 0.1);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--primary-color);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: var(--primary-color);
}


/* Founder and Leadership Styles */
.founder-section, .leadership-section {
    padding: 5rem 2rem;
    background-color: var(--white);
    position: relative;
    z-index: 1;
}

/* Founder carousel styles */
.founder-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.founder-carousel .slides {
    flex: 1 1 auto;
}

.founder-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.founder-slide.active {
    display: block;
    opacity: 1;
}

.carousel-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, background 0.2s ease;
}

.carousel-btn:hover {
    transform: translateY(-3px);
}

/* Left/Right placement when there's room */
.carousel-btn.left { order: 0; }
.carousel-btn.right { order: 2; }

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .founder-carousel { flex-direction: column; }
    .carousel-btn { width: 40px; height: 40px; }
}

/* Image Overlay Styles */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.content-over-image {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* Image Container Styles */
.image-container {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.founder-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/library.jpg') center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.founder-container, .leadership-container {
    max-width: 1000px;
    margin: 0 auto;
}

.founder-content, .leadership-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.founder-title, .leadership-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.founder-description, .leadership-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Map Container Styles */
.about-location {
    margin: 3rem 0;
}

.map-container {
    margin-top: 2rem;
    box-shadow: var(--shadow-md);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

@media screen and (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-photo {
    height: 250px;
    width: 100%;
    background-color: var(--subtle-bg);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.member-info p {
    color: var(--text-color);
    font-size: 1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 2rem 5rem;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(153, 0, 0, 0.1), rgba(0, 51, 102, 0.05));
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 100%;
    top: -100%;
    left: -100%;
    z-index: -2;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.8) 70%);
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpIn 1s ease 0.3s forwards;
}

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: var(--gradient);
    bottom: -10px;
    left: 20%;
    transform: scaleX(0);
    transform-origin: center;
    animation: lineExpand 1s ease 1s forwards;
}

@keyframes lineExpand {
    to {
        transform: scaleX(1);
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

.hero .cta-btn {
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards, pulse-button 2s infinite 2s;
}

@keyframes pulse-button {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(153, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 15px rgba(153, 0, 0, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(153, 0, 0, 0.1);
    }
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: var(--subtle-bg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

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

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Programs Section */
.programs {
    background: var(--white);
    padding: 6rem 2rem;
}

.programs h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--accent-gold);
}

.program-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.program-card p {
    color: #64748b;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 8rem 2rem;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&q=80') center/cover;
    opacity: 0.1;
}

.cta h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    position: relative;
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 6rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section a {
    color: var(--footer-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.watermark {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 0.5rem;
    font-style: italic;
    letter-spacing: 0.03em;
    transition: opacity 0.3s ease;
}

.watermark:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .features, .program-grid {
        grid-template-columns: 1fr;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
}

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

.hero-content, .feature-card, .program-card {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Adding new page styles */
.page-header {
    height: 300px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    margin-top: 65px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease 0.3s forwards;
}

.content-section {
    padding: 4rem 2rem;
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* About page styles */
.about-intro, .about-mission, .about-values, .about-team {
    margin-bottom: 4rem;
}

.about-img {
    width: 100%;
    max-width: 800px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    padding: 2rem;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Programs page styles */
.program-overview {
    margin-bottom: 4rem;
}

.programs-detailed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.program-detailed-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.program-detailed-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.program-highlights {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.program-highlights li {
    margin-bottom: 0.5rem;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.activity-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid var(--accent-gold);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Admissions page styles */
.admissions-intro {
    margin-bottom: 3rem;
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--gradient);
    z-index: 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    position: relative;
    padding-left: 70px;
}

.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    flex: 1;
}

.requirements-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.requirements-list li {
    margin-bottom: 0.5rem;
}

.tuition-info, .financial-aid {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.tuition-note {
    background: rgba(0, 51, 102, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
}

.secondary-btn {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.secondary-btn:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Contact page styles */
.contact-intro {
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media screen and (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.social-contact {
    
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: var(--light-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient);
    color: var(--white);
}

.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(153, 0, 0, 0.1);
}

.contact-form-container h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-note {
    margin-bottom: 20px;
    color: var(--text-color-secondary);
    font-size: 0.9rem;
}

.form-success-message {
    background-color: rgba(0, 128, 0, 0.1);
    border-left: 4px solid #008000;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s ease-in-out;
}

.form-success-message p {
    color: #006400;
    font-weight: 500;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.map-section {
    margin-bottom: 4rem;
}

.map-container {
    height: 400px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 1.5rem;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.visit-info {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

/* Responsive adjustments for new pages */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .social-contact {
        grid-column: span 1;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-number {
        width: 40px;
        height: 40px;
    }
}

/* Preloader animation for page transitions */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(153, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}



.mode-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.5s ease;
    padding-left: 0.5rem;
    padding-right: 0.5rem ;
}


.sun-icon, .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.sun-icon {
    color: #FFB100;
    opacity: 0;
    transform: scale(0.7);
}

.moon-icon {
    color: #5C7CFA;
    opacity: 1;
    transform: scale(1);
}

.dark-mode .sun-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.dark-mode .moon-icon {
    opacity: 0;
    transform: scale(0.7) rotate(45deg);
}

/* Adjustments for dark mode */
.dark-mode .feature-card, 
.dark-mode .program-card, 
.dark-mode .value-card,
.dark-mode .team-member, 
.dark-mode .contact-card, 
.dark-mode .activity-card,
.dark-mode .timeline-content,
.dark-mode .tuition-info,
.dark-mode .financial-aid,
.dark-mode .contact-form-container,
.dark-mode .map-container,
.dark-mode .visit-info {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.dark-mode .features,
.dark-mode .programs {
    background: var(--light-bg);
}

.dark-mode .nav-links a:hover {
    color: var(--primary-color);
}

.dark-mode .social-icon {
    background: var(--subtle-bg);
    color: var(--text-color);
}

.dark-mode .social-icon:hover {
    background: var(--gradient);
    color: var(--white);
}

.dark-mode .form-group input,
.dark-mode .form-group select,
.dark-mode .form-group textarea {
    background-color: var(--subtle-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.dark-mode .form-group input:focus,
.dark-mode .form-group select:focus,
.dark-mode .form-group textarea:focus {
    border-color: var(--primary-color);
}

.dark-mode .map-placeholder {
    background: var(--subtle-bg);
}

.dark-mode .tuition-note {
    background: rgba(77, 136, 204, 0.1);
}

.dark-mode footer {
    background: var(--footer-bg);
}

.dark-mode .preloader {
    background: var(--light-bg);
}

/* Update hero section for dark mode */
.dark-mode .hero::before {
    background: radial-gradient(circle, rgba(40,40,40,0.9) 0%, rgba(25,25,25,0.8) 70%);
}

.dark-mode .hero::after {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.1), rgba(77, 136, 204, 0.05));
}

/* Adjust feature cards for a less stark appearance even in light mode */
.features {
    background-color: var(--subtle-bg);
}

.feature-card {
    background: var(--card-bg);
}

/* Adjust program cards */
.program-card {
    background: var(--card-bg);
}