:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --bg-color: #fff;
    --nav-bg: #fff;
    --card-bg: #fff;
}

[data-theme='dark'] {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #e74c3c;
    --light-color: #2c3e50;
    --dark-color: #ecf0f1;
    --text-color: #ecf0f1;
    --bg-color: #1a1a1a;
    --nav-bg: #2c3e50;
    --card-bg: #2c3e50;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    color: var(--dark-color);
}

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

/* Navbar */
.navbar {
    background-color: rgba(44, 62, 80, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

/* Logo container with school logo and text */
.logo-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

/* School logo styling */
.school-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.school-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: none; /* Preserve original logo colors */
    transition: transform 0.3s ease;
    vertical-align: middle;
    margin-right: 10px;
}

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

.logo {
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    border-left: 4px solid var(--secondary-color);
    flex-shrink: 0;
}

.school-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.theme-toggle {
    background-color: rgba(52, 152, 219, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    margin-left: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    position: relative;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    background-color: var(--secondary-color);
}

.nav-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background-color: var(--accent-color);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-selector {
    display: flex;
    gap: 8px;
    position: relative;
    padding: 0 10px;
}

.lang-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 9px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 32px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background-color: rgba(52, 152, 219, 0.3);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.lang-btn.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-button {
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-button:hover {
    color: var(--secondary-color);
}

.nav-button:hover::after {
    width: 80%;
    left: 10%;
}

/* News Section */
.news {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.news h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: inline-block;
}

.news-text {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.no-news {
    text-align: center;
    grid-column: 1 / -1;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 10px;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.apply-button {
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apply-button:hover {
    background-color: #c0392b;
}

/* Application Form Styles */
.application-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.application-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

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

.form-full-width {
    grid-column: 1 / -1;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* File upload styling */
.file-upload {
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #0069d9;
    background-color: rgba(0, 105, 217, 0.05);
}

.file-upload.file-selected {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

.file-upload.file-selected i {
    color: #28a745;
}

.file-upload i {
    font-size: 40px;
    color: #6c757d;
    margin-bottom: 10px;
}

/* Front and back file upload container */
.file-uploads-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.file-upload-half {
    flex: 1 1 calc(50% - 15px);
    min-width: 250px;
}

.sub-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
    color: #555;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .file-uploads-container {
        flex-direction: column;
    }
    
    .file-upload-half {
        width: 100%;
    }
}

.submit-button {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    margin-top: 2rem;
}

.submit-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Programs Section */
.programs {
    padding: 5rem 0;
}

.programs h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.program-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.program-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.program-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.program-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.program-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Facilities Section */
.facilities {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.facilities h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.facility-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.facility-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.facility-card img:hover {
    transform: scale(1.05);
}

.facility-card h3 {
    padding: 1rem;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    color: var(--secondary-color);
}

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

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.hero {
    position: relative;
    color: var(--light-color);
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.7); /* Semi-transparent overlay */
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide default mobile menu button since we're using the new toggle */
    .mobile-menu-btn, .mobile-menu-container {
        display: none;
    }
    
    /* Reset default display for mobile */
    .nav-container {
        display: none;
    }
    
    /* Mobile Menu Styling */
    .mobile-nav-active .nav-container {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 9000;
        overflow-y: auto;
        padding-top: 70px;
    }
    
    .mobile-nav-active .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding-top: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 20px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-button {
        font-size: 1.5rem;
        padding: 15px 30px;
        width: 80%;
        display: block;
        margin: 0 auto;
        border-radius: 8px;
    }
    
    .navbar .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo-container {
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .school-name {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .header-controls {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }
    
    .language-selector {
        display: flex;
        justify-content: center;
    }
    
    .theme-toggle, .lang-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 80%;
        margin: 5px 0;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    /* Form responsiveness */
    .form-group {
        margin-bottom: 15px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    button[type="submit"] {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
}
