@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #e67e22;
    --secondary-color: #34495e;
    --text-color: #444;
    --light-bg: #fcfcfc;
    --alt-bg: #f8f8f8;
    --white: #fff;
    --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 44px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);
    --spacing-sm: 15px;
    --spacing-md: 30px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;
    --font-inter: 'Inter', sans-serif;
}

/* General Styles */
body {
    font-family: var(--font-inter);
    margin: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--spacing-xl) 0;
}

.alt-bg {
    background-color: var(--alt-bg);
}

.two-column-section {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    align-items: center;
    gap: var(--spacing-lg);
}

.two-column-section .content-column {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
}

.two-column-section .image-column {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    text-align: center; /* Center image if it doesn't fill column */
}

.two-column-section .image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

h1, h2, h3 {
    color: var(--secondary-color);
}

h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.8em; /* Slightly larger */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
    padding: 0;
}

/* Header */
header {
    background: var(--white);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
}

.logo img {
    height: 100px;
    max-width: 100%;
    vertical-align: middle;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 40px; /* Increased gap */
}

nav ul {
    display: flex;
    gap: 20px;
    margin-left: auto; /* Push to the right */
    flex-grow: 0; /* Prevent growing */
}

nav .logo {
    display: none;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s, text-decoration 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 0;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease-in-out;
}

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

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

.lang-switcher {
    flex-shrink: 0; /* Prevent shrinking */
}

.lang-switcher a {
    background: none;
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    color: var(--text-color);
}

.lang-switcher a.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 1.8em;
    cursor: pointer;
    color: var(--secondary-color);
}

/* Hero Section */
#hero {
    padding: 0;
    overflow: hidden;
    width: 100vw; /* Take full viewport width */
    position: relative; /* Needed for positioning children */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-slider {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width * 100) */
    height: 0; /* Important for padding-bottom hack */
    overflow: hidden;
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
    opacity: 1;
}

.slider-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: none;
    color: var(--white);
    text-align: center;
    z-index: 50;
    background-color: rgba(0, 0, 0, 0.7); /* Slightly less transparent */
    padding: 10px var(--spacing-md); /* 15px top/bottom */
    border-radius: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    display: flex; /* Use flexbox for vertical centering of content */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slider-text .slide-title {
    font-size: clamp(1.8em, 3.5vw, 3em); /* Further reduced max font size */
    margin-bottom: 15px;
    font-weight: 700; /* Bolder */
    color: var(--primary-color); /* Brand orange color */
}

.slider-text .slide-subtitle {
    font-size: clamp(0.9em, 1.2vw, 1.1em); /* Further reduced max font size */
    max-width: 80%; /* Constrain width */
    margin: 0 auto 20px auto; /* Add bottom margin */
    font-weight: 400; /* Regular weight */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 1); /* More pronounced shadow */
}
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show on mobile */
    }

    header .container {
        flex-direction: row; /* Keep logo and toggle on same row */
        justify-content: space-between;
        align-items: center;
    }

    nav {
        position: fixed; /* Change to fixed position */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: var(--secondary-color); /* Darker background for mobile menu */
        box-shadow: var(--shadow-medium);
        padding: var(--spacing-md) var(--spacing-md); /* Reduced top/bottom padding */
        display: flex; /* Always flex, but hidden by transform */
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center content vertically */
        gap: 15px; /* Reduced gap */
        transform: translateX(100%); /* Start off-screen to the right */
        transition: transform 0.3s ease-in-out; /* Smooth slide-in/out */
        z-index: 999; /* Ensure it's above other content */
    }

    body.nav-open nav {
        transform: translateX(0); /* Slide in */
    }

    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px; /* Reduced gap for menu items */
        display: flex;
        margin: 0;
    }

    nav ul li a {
        font-size: 1.5em; /* Reduced font size for mobile links */
        color: var(--white); /* White text for dark background */
        padding: 5px 0; /* Reduced padding for clickable area */
        display: block; /* Make the whole area clickable */
    }

    nav ul li a:hover,
    nav ul li a.active {
        color: var(--primary-color); /* Highlight active/hover with primary color */
    }

    .lang-switcher {
        display: flex;
        flex-direction: row;
        gap: 15px; /* Slightly increased gap for language buttons */
        margin-top: 20px; /* More space from menu items */
        text-align: center; /* Center content */
    }

    .lang-switcher a {
        padding: 10px 20px; /* Larger buttons */
        border-radius: 5px;
        border: 1px solid var(--white); /* White border for contrast */
        color: var(--white); /* White text */
    }

    .lang-switcher a.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--white);
    }

    .slider-text {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    .slider-text .slide-title {
        font-size: clamp(1.6em, 4.5vw, 2.2em); /* Adjusted for smaller screens */
    }
    .slider-text .slide-subtitle {
        font-size: clamp(0.8em, 2vw, 1em); /* Adjusted for smaller screens */
    }
    .contact-section-container {
        flex-direction: column;
    }
    .contact-container {
        padding: 0;
    }
    .contact-container h2 {
        padding: 0 20px;
    }
}

.slider-nav {
    position: absolute; /* Position relative to .slider-text */
    top: 0; /* Align to top of slider-text */
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center buttons */
    padding: 0 10px; /* Padding from the sides */
    pointer-events: none; /* Allow clicks to pass through to buttons */
}

.slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for better visibility */
    pointer-events: auto; /* Re-enable clicks for buttons */
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 100;
    font-size: 1.5em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.slider-nav button:hover {
    background-color: var(--primary-color);
}

.slider-dots {
    position: static;
    margin-top: 15px;
    text-align: center;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.slider-dots .dot {
    display: inline-block;
    width: 12px; /* Slightly larger dots */
    height: 12px;
    background-color: rgba(255, 255, 255, 0.7); /* Brighter dots */
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dots .dot.active {
    background-color: var(--primary-color); /* Brand orange for active dot */
}

.slider-dots .dot.active {
    background-color: var(--primary-color);
}

/* About Section */
#about h3 {
    color: var(--primary-color);
    margin-top: var(--spacing-md);
}

/* Community Section */
#community h3 {
     color: var(--primary-color);
     margin-top: var(--spacing-md);
}

.testimonial-carousel {
    position: relative;
    width: 80%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    background-color: var(--white);
    padding: var(--spacing-md);
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 20px;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-slide p {
    font-style: italic;
    margin-bottom: 10px;
    color: #555;
}

.testimonial-slide .author {
    font-weight: bold;
    color: var(--secondary-color);
}

.carousel-nav button {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    font-size: 1.2em;
    z-index: 10;
}

.carousel-nav .prev-testimonial {
    left: 10px;
}

.carousel-nav .next-testimonial {
    right: 10px;
}

.feature-block-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-block {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-block .icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-block h3 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.4em;
}

.feature-block p {
    font-size: 0.95em;
    color: #555;
}

/* Academics Section */
#academics ul {
    margin-top: 20px;
}

#academics li {
    background: #f7f7f7;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-color);
}

.tabs-container {
    margin-top: var(--spacing-lg);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.tab-button {
    background-color: var(--alt-bg);
    border: 1px solid #ddd;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 5px 5px 0 0;
    margin: 0 5px;
    flex-grow: 1;
    text-align: center;
    max-width: 250px;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

.tab-button.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
    transform: translateY(-2px);
}

.tab-content {
    background-color: var(--white);
    border: 1px solid #ddd;
    border-top: none;
    padding: var(--spacing-md);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-medium);
}

.tab-content.hidden {
    display: none;
}

/* Activities Section */
#activities ul li {
    margin-bottom: 10px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5em;
}

.card p {
    font-size: 0.95em;
    color: #555;
}

/* Social Impact Section */
.impact-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
    gap: var(--spacing-sm);
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-description {
    font-size: 0.9em;
    color: #777;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.map-container {
    margin-bottom: var(--spacing-lg);
}

.contact-info h3, .contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info .fas {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-media a {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--primary-color);
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--secondary-color);
}

.map {
    margin-top: 20px;
}

.contact-form input, .contact-form textarea {
    width: calc(100% - 24px); /* Full width minus padding */
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.contact-form button {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background: #d35400;
}

/* Form message styles */
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* About Page Specific Styles */

/* Vision Section */
.vision-section {
    text-align: center;
    padding: var(--spacing-lg) 0;
    background-color: var(--alt-bg);
    margin-bottom: var(--spacing-lg);
}

.vision-section .icon {
    font-size: 4em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.vision-section p {
    font-size: 1.5em;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
    color: var(--secondary-color);
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.value-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-card .icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card h3 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.4em;
}

.value-card p {
    font-size: 0.95em;
    color: #555;
}

/* Story Section */
.story-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.story-section .content-column {
    flex: 1;
    min-width: 300px;
}

.story-section .image-column {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.story-section .image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
    .vision-section p {
        font-size: 1.2em;
    }
}

#about .container h3 {
    text-align: center;
}

.two-column-section.reverse-columns {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .two-column-section.reverse-columns {
        flex-direction: column; /* Revert to column on small screens */
    }

    nav .logo {
        display: block;
        text-align: center; /* Center content */
    }

    nav .logo img {
        width: 100%;
        height: auto;
        max-height: 150px; /* Limit height to prevent excessive size */
        object-fit: contain; /* Ensure the entire image is visible */
        opacity: 1;
        visibility: visible;
    }
}

#community h2 {
    font-size: 3.2em; /* Slightly larger than the default 2.8em */
}

@media (max-width: 768px) {
    #community h2 {
        font-size: 2.5em; /* Adjust for smaller screens if needed */
    }
}