/* Color Palette:
Deep Navy: #0A192F
Rich Gold: #D4AF37
Soft Cream (BG): #F9F8F6
Text: #2C3539
White: #FFFFFF
Red Accent (Armenian Flag vibe): #DA291C
Blue Accent: #0033A0
Orange Accent: #F2A800
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Vazirmatn:wght@100..900&family=Noto+Sans+Armenian:wght@100..900&display=swap');

:root {
    --primary-color: #0A192F; 
    --primary-light: #172A45;
    --secondary-color: #D4AF37; 
    --secondary-hover: #EBC855;
    --bg-color: #F9F8F6; 
    --text-color: #2C3539; 
    --text-light: #666666;
    --white: #FFFFFF;
    
    --flag-red: #DA291C;
    --flag-blue: #0033A0;
    --flag-orange: #F2A800;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 25, 47, 0.15);
    --shadow-gold: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Noise Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.15) 1px, transparent 0);
    background-size: 4px 4px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 9999;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(10, 25, 47, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

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

html, body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* --- ADVANCED ANIMATIONS & EFFECTS --- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Reveal on Scroll Classes */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
}

.reveal-up { transform: translateY(50px); }
.reveal-up.active { transform: translateY(0); }

.reveal-left { transform: translateX(-50px); }
.reveal-left.active { transform: translateX(0); }

.reveal-right { transform: translateX(50px); }
.reveal-right.active { transform: translateX(0); }

/* Glassmorphism Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
    display: none;
}

@media (min-width: 1024px) {
    .custom-cursor { display: block; }
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
    display: none;
}

@media (min-width: 1024px) {
    .cursor-follower { display: block; }
}

.cursor-active {
    transform: translate(-50%, -50%) scale(2.5);
    background: rgba(212, 175, 55, 0.2);
    border-color: transparent;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background-color: #F1EFEA; /* Slightly darker cream */
}

.text-center { text-align: center; }
.relative { position: relative; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }
.mt-5 { margin-top: 45px; }
.mb-4 { margin-bottom: 25px; }
.ml-3 { margin-left: 15px; }
.pl-4 { padding-left: 30px; }
.mr-3 { margin-right: 15px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.text-gold { color: var(--secondary-color); }

/* Badges & Titles */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(212, 175, 55, 0.15);
    color: #B58F22;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    border: 2px solid transparent;
    text-transform: capitalize;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.shadow-glow {
    box-shadow: var(--shadow-gold);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar i {
    color: var(--secondary-color);
    margin-right: 5px;
}
.top-bar-right a {
    color: rgba(255,255,255,0.8);
    margin-left: 15px;
}
.top-bar-right a:hover {
    color: var(--secondary-color);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.logo:hover .logo-img {
    transform: scale(1.05);
}
.logo-icon {
    background: var(--primary-color);
    color: var(--secondary-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.5rem;
}
.logo-text h1 {
    font-size: 1.6rem;
    margin-bottom: 0;
    color: var(--primary-color);
    line-height: 1;
}
.logo-text span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--secondary-color);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
    position: relative;
}

.nav-links a:not(.btn-outline):not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-outline):not(.btn-primary):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links .btn-primary, .nav-links .btn-outline {
    padding: 10px 22px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-btn.active {
    color: var(--white);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 150px;
    background-image: url('../assets/images/campus_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.7) 100%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 2;
    opacity: 0.4;
}

.hero-container {
    z-index: 3;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero h1, .hero h2 {
    color: var(--white);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: var(--font-main);
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.armenia-highlight {
    background: linear-gradient(to right, var(--flag-red), var(--flag-blue), var(--flag-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Preview */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.image-accent-box {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    z-index: -1;
}

.about-img {
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
}

.experience-badge i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 500;
}

.feature-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-box {
    display: flex;
    gap: 15px;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.fb-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.fb-text h4 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.fb-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    background: var(--primary-color);
    opacity: 0.03;
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -300px;
    right: -200px;
}

/* Programs Preview */
.grid {
    display: grid;
    gap: 40px;
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
}

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

.card-img-top {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
}

.card-tag {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.card-content {
    padding: 35px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 0.95rem;
}

.card-link i {
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.card:hover .card-link i {
    transform: translateX(5px);
}

/* Armenia Banner */
.armenia-banner {
    background: linear-gradient(135deg, var(--flag-red), var(--flag-blue), var(--flag-orange));
    padding: 80px 0;
    color: white;
    position: relative;
    text-align: center;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
}

.banner-content h2 {
    color: white;
    font-size: 2.5rem;
}

.banner-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

/* Final CTA */
.final-cta {
    background-image: url('../assets/images/campus_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 120px 0;
}

.cta-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.85);
}

.cta-title {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Footer */
.footer {
    background-color: #050d18;
    color: rgba(255,255,255,0.6);
    padding: 80px 0 0;
    border-top: 5px solid var(--secondary-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo-link {
    color: var(--white);
}

.footer-logo-link .logo-icon {
    width: 40px; height: 40px;
    font-size: 1.2rem;
}

.footer-logo-link h3 {
    margin-bottom: 0;
    color: var(--white);
    font-size: 1.4rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col a {
    color: rgba(255,255,255,0.6);
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-list i {
    color: var(--secondary-color);
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    background-color: #02060c;
    padding: 25px 0;
}

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

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    margin-left: 20px;
    font-size: 0.9rem;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    
    .hero { 
        padding: 100px 0 80px; 
        background-attachment: scroll; /* Better performance on mobile */
    }
    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-text { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .hero-buttons .btn-large { width: 100%; padding: 15px 30px; }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        text-align: center;
        padding-top: 40px;
    }
    
    .header { padding: 10px 0; }
    .logo-img { height: 52px; }
    .logo-icon { width: 35px; height: 35px; font-size: 1.2rem; }
    .logo-text h1 { font-size: 1.3rem; }
    .logo-text span { font-size: 0.6rem; letter-spacing: 2px; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 100px 40px;
        z-index: 999;
        overflow-y: auto;
        gap: 20px;
    }
    
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; z-index: 1000; position: relative; }
    .nav-links a { color: var(--white); font-size: 1.2rem; }
    .nav-links a::after { background-color: var(--secondary-color); }
    
    .nav-links .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        width: 100%;
        margin-top: 10px;
        display: none; /* Toggleable on click if needed, or just list items */
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-links .dropdown-menu a {
        color: rgba(255,255,255,0.7) !important;
        font-size: 1rem !important;
        padding: 10px 20px !important;
    }

    .feature-boxes { grid-template-columns: 1fr; }
    .stats-row { flex-direction: column; gap: 15px; }
    
    .cta-title { font-size: 2.2rem; }
    .section-title { font-size: 2.2rem; }
    
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-legal a { margin: 0 10px; }

    /* Contact Info Grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Program Page Grid */
    .programs-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .card-content { padding: 25px 20px; }
    .experience-badge {
        width: 120px;
        height: 120px;
        padding: 15px;
        right: -10px;
        bottom: -20px;
    }
    .experience-badge i { font-size: 1.8rem; }
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    padding: 10px 0;
    border-top: 3px solid var(--secondary-color);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li {
    margin-bottom: 0;
}
.dropdown-menu a {
    padding: 12px 20px !important;
    display: block;
    font-size: 0.95rem !important;
    color: var(--text-color) !important;
    font-weight: 500 !important;
}
.dropdown-menu a:hover {
    background: rgba(10, 25, 47, 0.03);
    color: var(--primary-color) !important;
    padding-left: 25px !important;
}
.dropdown-menu a::after {
    display: none !important;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    margin-top: 15px;
    box-shadow: var(--shadow-sm);
    border-radius: 4px;
    overflow: hidden;
}
.newsletter-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-family: var(--font-main);
}
.newsletter-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter-btn:hover {
    background: var(--secondary-hover);
    color: var(--primary-color);
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 120px;
    display: none;
    z-index: 1001;
    margin-top: 10px;
}

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

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

.lang-option {
    padding: 8px 20px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-option:hover {
    background: var(--bg-color);
    color: var(--secondary-color);
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

.lang-option-mobile {
    padding: 12px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option-mobile:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* --- RTL OVERRIDES --- */
[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .ml-3 {
    margin-left: 0;
    margin-right: 15px;
}

[dir="rtl"] .mr-3 {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .pl-4 {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .top-bar-inner,
[dir="rtl"] .header-container,
[dir="rtl"] .footer-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

@media (min-width: 769px) {
    [dir="rtl"] .hero-stats {
        flex-direction: row-reverse;
    }
}

@media (min-width: 1025px) {
    [dir="rtl"] .about-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

[dir="rtl"] .about-text-content {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .feature-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-link i {
    transform: scaleX(-1);
}

[dir="rtl"] .card-link:hover i {
    transform: scaleX(-1) translateX(5px);
}

[dir="rtl"] .footer-col ul li i {
    margin-right: 0;
    margin-left: 8px;
    transform: scaleX(-1);
}

[dir="rtl"] .contact-list li i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .newsletter-form {
    display: flex;
}

[dir="rtl"] .newsletter-input {
    border-radius: 0 4px 4px 0;
}

[dir="rtl"] .newsletter-btn {
    border-radius: 4px 0 0 4px;
}

[dir="rtl"] .footer-legal {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-legal a {
    margin-left: 0;
    margin-right: 20px;
}

[dir="rtl"] .social-top {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-right: 0;
    padding-left: 15px;
}

[dir="rtl"] .logo-text h1 {
    line-height: 1.2;
}

[dir="rtl"] .hero-badge i, [dir="rtl"] .hero-btn i {
    margin-right: 0;
    margin-left: 10px;
}

/* Desktop Only RTL Overrides */
@media (min-width: 769px) {
    [dir="rtl"] .nav-links {
        flex-direction: row-reverse;
    }
}

/* Mobile RTL Overrides to ensure correct display */
@media (max-width: 768px) {
    [dir="rtl"] .nav-links {
        flex-direction: column !important; /* Force column on mobile RTL */
        align-items: flex-start;
    }
    
    [dir="rtl"] .nav-links a {
        text-align: right;
        width: 100%;
        display: block;
    }

    [dir="rtl"] .nav-links .dropdown-menu {
        text-align: right;
    }
    
    [dir="rtl"] .mobile-only .lang-option-mobile {
        text-align: center;
    }
    
    [dir="rtl"] .footer-bottom .container {
        flex-direction: column;
    }
}
