/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    overflow-x: hidden; /* ensure no page-level horizontal scroll */
}

body.en {
    font-family: 'Inter', sans-serif;
    direction: ltr;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.98) 0%, rgba(34, 65, 38, 0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(168, 212, 170, 0.2);
}

.navbar.scrolled {
    background: rgba(44, 85, 48, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo img {
    height: 130px;
    width: auto;
    /*transition: transform 0.3s ease, filter 0.3s ease;
    /* Add subtle glow/shadow for better contrast on dark navbar 
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 5px; */
}
.footer-logo img {
    height: 130px;
    width: auto;
    /* margin-bottom: 1rem;
    /* Add subtle background for better contrast on dark footer
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 5px; */
}

.footer-logo p {
    color: #cccccc;
    line-height: 1.6;
    text-align: justify;
}
.nav-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.5));
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    background: transparent;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.6rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(168, 212, 170, 0.2);
}

.nav-link.active {
    background: rgba(168, 212, 170, 0.3);
    color: #a8d4aa;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #a8d4aa;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 60%;
}

/* Nav Dropdown Menu (Join Us) */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle i,
.nav-dropdown.open .nav-dropdown-toggle i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 160px;
    z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #2c5530;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-align: center;
}

.nav-dropdown-item:hover {
    background: #f0f8f0;
    color: #4a9b4e;
}

.nav-dropdown-item.active {
    background: #e8f5e9;
    color: #2c5530;
    font-weight: 600;
}

/* Compact Language Dropdown */
.language-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 212, 170, 0.15);
    border: 1px solid rgba(168, 212, 170, 0.4);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-toggle:hover {
    background: rgba(168, 212, 170, 0.3);
    border-color: rgba(168, 212, 170, 0.6);
}

.lang-toggle .fa-globe {
    font-size: 1rem;
}

.lang-toggle .toggle-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-switcher.open .toggle-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 140px;
    z-index: 1002;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.language-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: #2c5530;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: start;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-option:hover {
    background: #f0f8f0;
}

.lang-option.active {
    background: #e8f5e9;
    color: #2c5530;
    font-weight: 600;
}

.lang-option.active::before {
    content: '✓';
    margin-inline-end: 0.5rem;
    color: #4a9b4e;
}

/* Legacy lang-btn styles (for backward compatibility) */
.lang-btn {
    background: transparent;
    border: 2px solid #a8d4aa;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: #a8d4aa;
    color: #2c5530;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    padding: 150px 20px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%234a9b4e" opacity="0.1"/><circle cx="80" cy="40" r="1.5" fill="%234a9b4e" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%234a9b4e" opacity="0.1"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c5530;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    color: #4a9b4e;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: justify;
}

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

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
}

.btn-primary {
    background: #4a9b4e;
    color: white;
    border-color: #4a9b4e;
}

.btn-primary:hover {
    background: transparent;
    color: #4a9b4e;
    border-color: #4a9b4e;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 155, 78, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #4a9b4e;
    border-color: #4a9b4e;
}

.btn-secondary:hover {
    background: #4a9b4e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 155, 78, 0.3);
}

.hero-image {
    text-align: center;
}

.hero-image i {
    font-size: 15rem;
    color: #4a9b4e;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

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

/* Sections */
section {
    padding: 80px 0;
}

/* Inner Pages - Content below fixed navbar */
.page-content {
    padding-top: 160px; /* Space for fixed navbar with logo */
}

.page-content section:first-child {
    padding-top: 40px;
}

.page-header {
    background: linear-gradient(135deg, #f8faf9 0%, #e8f5e9 100%);
    padding: 40px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(74, 155, 78, 0.1);
}

.page-header .section-title {
    margin-bottom: 1rem;
}

.page-header .page-description {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #4a9b4e;
    border-radius: 2px;
}

/* Alternating section backgrounds */
.alt-bg {
    background-color: #f0f7f1 !important;
}

/* About Section */
.about {
    background: #f8f9fa;
}

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

.about-text h3 {
    color: #2c5530;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: justify;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a9b4e;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: #4a9b4e;
    box-shadow: 0 20px 50px rgba(74, 155, 78, 0.2);
}

.program-icon {
    margin-bottom: 1.5rem;
}

.program-icon i {
    font-size: 3rem;
    color: #4a9b4e;
}

.program-card h3 {
    color: #2c5530;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.program-card p {
    color: #666;
    line-height: 1.6;
    text-align: justify;
}

.program-card ul {
    text-align: start;
    padding-inline-start: 1.5rem;
    margin-top: 1rem;
}

.program-card li {
    margin-bottom: 0.5rem;
    color: #555;
    text-align: justify;
}

/* Facilities Section */
.facilities {
    background: #f8f9fa;
}

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

.facility-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.facility-item i {
    font-size: 2.5rem;
    color: #4a9b4e;
    margin-bottom: 1rem;
}

.facility-item h3 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.facility-item p {
    color: #666;
    text-align: justify;
    line-height: 1.6;
}

/* Gallery Styles */
.gallery {
    margin: 40px 0;
}

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

.gallery-item {
    text-align: center;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item p {
    padding: 15px;
    margin: 0;
    font-weight: 600;
    color: #2c5530;
    font-size: 14px;
}

.workshop-gallery .gallery-item img {
    border-radius: 0;
}

.workshop-gallery .gallery-item {
    border-radius: 10px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    color: #2c5530;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #173c21;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.contact-item p {
    text-align: justify;
    color: #666;
}

.contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a9b4e;
}

/* Contact Message Styling */
.contact-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

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

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

.contact-message i {
    font-size: 1.2rem;
}

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

/* Contact Form Button Loading State */
.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: rgba(44, 85, 48, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 3rem 0 1rem;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}



.footer-links h4,
.footer-social h4,
.footer-sitemap h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-links ul,
.footer-sitemap ul {
    list-style: none;
}

.footer-links ul li,
.footer-sitemap ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-sitemap ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-sitemap ul li a:hover {
    color: #a8d4aa;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    /* background: rgba(255, 255, 255, 0.1); */
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    /* border: 2px solid rgba(255, 255, 255, 0.3); */
    transition: all 0.3s ease;
    font-size: xx-large;
}

.social-links a .social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-links a:hover .social-icon {
    filter: brightness(1.2);
}

.footer-bottom {
    border-top: 1px solid #555555;
    padding-top: 2rem;
    text-align: center;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 992px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-logo img {
        height: 95px;
    }
    
    /* Nav-right contains both language switcher and hamburger in tablet */
    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-direction: row-reverse;
    }
    
    [dir="rtl"] .nav-right {
        flex-direction: row;
    }
    
    .hamburger {
        display: flex;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.5rem;
    }
    
    .hamburger:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 248, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 280px;
        height: 100vh;
        text-align: start;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 40px rgba(0, 0, 0, 0.15);
        padding: 100px 1.5rem 2rem;
        gap: 0.5rem;
        overflow-y: auto;
        z-index: 1000;
        visibility: hidden;
    }
    
    [dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
    }
    
    .nav-menu.active {
        left: 0;
        visibility: visible;
    }
    
    [dir="rtl"] .nav-menu.active {
        left: auto;
        right: 0;
        visibility: visible;
    }
    
    .nav-link {
        color: #2c5530;
        padding: 1rem 1.25rem;
        border-radius: 10px;
        font-size: 1rem;
        display: block;
        width: 100%;
        background: transparent;
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }
    
    [dir="rtl"] .nav-link {
        border-left: none;
        border-right: 3px solid transparent;
    }
    
    .nav-link:hover {
        background: rgba(74, 155, 78, 0.2);
        border-left-color: #4a9b4e;
        color: #1a3a1d;
        box-shadow: inset 0 0 0 1px rgba(74, 155, 78, 0.15);
    }
    
    [dir="rtl"] .nav-link:hover {
        border-left-color: transparent;
        border-right-color: #4a9b4e;
    }
    
    .nav-link.active {
        background: rgba(74, 155, 78, 0.25);
        border-left-color: #4a9b4e;
        color: #1a3a1d;
        font-weight: 600;
    }
    
    [dir="rtl"] .nav-link.active {
        border-left-color: transparent;
        border-right-color: #4a9b4e;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background: #ffffff;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background: #ffffff;
    }
    
    /* Mobile Nav Dropdown */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #2c5530;
        padding: 1rem 1.25rem;
        border-radius: 10px;
        font-size: 1rem;
        background: transparent;
        border: none;
        border-left: 3px solid transparent;
        cursor: pointer;
    }
    
    [dir="rtl"] .nav-dropdown-toggle {
        border-left: none;
        border-right: 3px solid transparent;
    }
    
    .nav-dropdown-toggle:hover {
        background: rgba(74, 155, 78, 0.2);
        border-left-color: #4a9b4e;
        color: #1a3a1d;
        box-shadow: inset 0 0 0 1px rgba(74, 155, 78, 0.15);
    }
    
    [dir="rtl"] .nav-dropdown-toggle:hover {
        border-left-color: transparent;
        border-right-color: #4a9b4e;
    }
    
    .nav-dropdown-toggle i {
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }
    
    .nav-dropdown.open .nav-dropdown-toggle {
        background: rgba(74, 155, 78, 0.25);
        border-left-color: #4a9b4e;
        color: #1a3a1d;
        font-weight: 600;
    }
    
    [dir="rtl"] .nav-dropdown.open .nav-dropdown-toggle {
        border-left-color: transparent;
        border-right-color: #4a9b4e;
    }
    
    .nav-dropdown-menu {
        position: static;
        transform: none !important;
        left: auto !important;
        box-shadow: none;
        background: rgba(74, 155, 78, 0.05);
        border-radius: 8px;
        margin: 0.5rem 0 0.5rem 1rem;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
        width: 100%;
    }
    
    [dir="rtl"] .nav-dropdown-menu {
        margin: 0.5rem 1rem 0.5rem 0;
    }
    
    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 200px;
        padding: 0.5rem 0;
        transform: none !important;
    }
    
    .nav-dropdown-item {
        text-align: start;
        padding: 0.75rem 1rem;
        border-left: 2px solid transparent;
        transition: all 0.2s ease;
        color: #2c5530;
    }
    
    [dir="rtl"] .nav-dropdown-item {
        border-left: none;
        border-right: 2px solid transparent;
    }
    
    .nav-dropdown-item:hover {
        border-left-color: #4a9b4e;
        background: rgba(74, 155, 78, 0.2);
        color: #1a3a1d;
    }
    
    .nav-dropdown-item.active {
        border-left-color: #4a9b4e;
        background: rgba(74, 155, 78, 0.25);
        color: #1a3a1d;
        font-weight: 600;
    }
    
    [dir="rtl"] .nav-dropdown-item:hover,
    [dir="rtl"] .nav-dropdown-item.active {
        border-left-color: transparent;
        border-right-color: #4a9b4e;
    }
    
    /* Language switcher tablet adjustments */
    .language-switcher {
        position: relative;
    }
    
    .lang-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .lang-toggle .current-lang {
        display: none;
    }
    
    .lang-dropdown {
        right: 0;
        left: auto;
        min-width: 120px;
    }
    
    [dir="rtl"] .lang-dropdown {
        right: auto;
        left: 0;
    }
    
    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-image i {
        font-size: 8rem;
    }
    
    .about-grid,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat-item {
        flex: 1;
        margin: 0 0.5rem;
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .programs-grid,
    .facilities-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        text-align: center;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .programs-grid,
    .facilities-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary, .btn-secondary {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        margin: 0;
        width: 100%;
    }
    
    .lang-toggle .current-lang {
        display: none;
    }
    
    .lang-toggle {
        padding: 0.5rem 0.75rem;
    }
}

/* RTL Support */
[dir="rtl"] .nav-container {
    direction: rtl;
}

[dir="rtl"] .hero-content {
    direction: rtl;
}

[dir="rtl"] .contact-item {
    direction: rtl;
}

[dir="rtl"] .footer-content {
    direction: rtl;
}

/* English Layout Adjustments */
body.en [dir="rtl"] {
    direction: ltr;
}

body.en .nav-container,
body.en .hero-content,
body.en .contact-item,
body.en .footer-content {
    direction: ltr;
}
