/* 
==================================================================
  MAIN DOMAIN STYLESHEET - FIXED ARMENIAN LAYOUT
================================================================== 
*/
html, body {
    width: 100%;
    overflow-x: hidden !important; /* Cuts off side-scroll caused by long text */
    position: relative;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-color: #c41e3a;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, rgba(196, 30, 58, 0.85) 0%, rgba(139, 0, 0, 0.9) 100%);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--white);
    width: 100%;
}

/* Helper to lock scroll when menu is open */
body.no-scroll { overflow: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary-color); text-decoration: none; }

/* Navigation */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 1000; transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0);
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; max-width: 1200px; margin: 0 auto; }
.nav-logo a { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--primary-color); }
.nav-logo img { width: 40px; height: 40px; object-fit: contain; }
.nav-menu { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color 0.3s ease; position: relative; padding: 5px 0; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary-color); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Language switcher with flags */
.lang-flag { font-size: 1.5rem; text-decoration: none; padding: 0 !important; margin-left: 1rem; vertical-align: middle; transition: transform 0.2s ease; line-height: 1; }
.lang-flag:hover { transform: scale(1.15); }
.lang-flag::after { display: none !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; }
.hamburger span { width: 25px; height: 3px; background: var(--text-dark); border-radius: 2px; transition: all 0.3s; }

/* Hero Section */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--white); }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-background img { width: 100%; height: 100%; object-fit: cover; opacity: 0.95; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient); z-index: -1; }
.hero-content { text-align: center; z-index: 2; max-width: 800px; padding: 0 20px; animation: fadeInUp 1s ease-out; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero-title-hy { display: block; }
.hero-title-en { display: block; font-size: 0.7em; opacity: 0.9; font-weight: 400; margin-top: 0.5rem; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 0.5rem; opacity: 0.9; }
.hero-subtitle-en { font-size: 1rem; margin-bottom: 2rem; opacity: 0.7; font-style: italic; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { padding: 12px 24px; border: none; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; cursor: pointer; display: inline-block; }
.btn-primary { background: var(--white); color: var(--primary-color); }
.btn-primary:hover { background: var(--primary-color); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(196, 30, 58, 0.3); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary-color); transform: translateY(-2px); }

.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
.scroll-indicator a { display: block; }
.scroll-arrow { width: 20px; height: 20px; border: 2px solid var(--white); border-top: none; border-left: none; transform: rotate(45deg); }

/* Common Section Styles */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; color: var(--text-dark); margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* Philosophy Section */
.philosophy { padding: 100px 0; background: var(--bg-light); }
.philosophy-content { text-align: center; max-width: 800px; margin: 0 auto; position: relative; }
.quote-mark { font-size: 8rem; color: var(--primary-color); opacity: 0.1; position: absolute; top: -40px; left: -20px; font-family: serif; z-index: -1; }
.philosophy-quote { font-size: 1.2rem; line-height: 1.8; font-style: italic; margin-bottom: 2rem; color: var(--text-dark); }
.philosophy-author { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 2rem; flex-wrap: wrap; }
.philosophy-author img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-info { text-align: left; }
.author-info h4 { color: var(--primary-color); font-size: 1.1rem; margin-bottom: 0.5rem; }
.author-info p { color: var(--text-light); font-size: 0.9rem; line-height: 1.4; }

/* About/Projects Summary */
.about { padding: 100px 0; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.project-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12); }
.project-card img { width: 100%; height: 200px; object-fit: cover; }
.project-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-content h3 { color: var(--primary-color); margin-bottom: 0.5rem; }
.project-content p { color: var(--text-light); line-height: 1.6; margin-bottom: 1rem; flex-grow: 1; }
.project-link { color: var(--primary-color); font-weight: 600; transition: color 0.3s ease; align-self: flex-start; }
.project-link:hover { color: var(--secondary-color); }

/* Festival Summary */
.festival { padding: 100px 0; background: var(--bg-light); text-align: center; }
.festival-header { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 3rem; text-align: center; }
.festival-header img { width: 120px; height: 120px; object-fit: contain; }
.festival-title h2 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 0.5rem; text-align: center; }
.festival-title p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; text-align: center; margin: 0 auto; }
.festival-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 4rem; text-align: center; }
.stat { text-align: center; padding: 2rem; background: var(--white); border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; }
.stat-label { color: var(--text-light); font-weight: 500; }

/* Gallery Summary */
.gallery { padding: 100px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; display: block; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); color: var(--white); padding: 2rem 1rem 1rem; transform: translateY(100%); transition: transform 0.4s ease; text-align: center; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay h4 { margin: 0; font-size: 1.1rem; }

/* Team Section */
.team { padding: 100px 0; background: var(--bg-light); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.team-member { text-align: center; background: var(--white); padding: 2rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease; }
.team-member:hover { transform: translateY(-5px); }
.team-member img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; object-position: center; margin-bottom: 1rem; border: 3px solid var(--bg-light); }
.team-member h4 { color: var(--primary-color); margin-bottom: 0.5rem; }
.team-member p { color: var(--text-light); font-size: 0.9rem; }

/* Contact Section */
.contact { padding: 10px 0 100px 0; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: flex-start; }
.contact-info h3 { color: var(--primary-color); margin-bottom: 2rem; font-size: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { font-size: 1.5rem; width: 40px; text-align: center; color: var(--primary-color); }
.contact-item h4 { margin-bottom: 0.25rem; color: var(--text-dark); }
.contact-item p { color: var(--text-light); margin: 0; }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-link { color: var(--primary-color); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.social-link:hover { color: var(--secondary-color); }
.contact-form { background: var(--white); padding: 2rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-dark); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-family: inherit; transition: border-color 0.3s ease, box-shadow 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 3px rgba(196, 30, 58, 0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* Footer */
.footer { background: var(--bg-dark); color: var(--white); padding: 50px 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section { padding: 0 1rem; }
.footer-logo a { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; color: var(--white); }
.footer-logo img { width: 40px; height: 40px; object-fit: contain; }
.footer-logo span { font-weight: 700; font-size: 1.2rem; }
.footer-section p { color: #ccc; font-size: 0.9rem; }
.footer-section h4 { color: var(--primary-color); margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a { color: #ccc; text-decoration: none; transition: color 0.3s ease; }
.footer-section ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; color: #ccc; font-size: 0.9rem; }

/* Detailed Page Styles */
.page-header { padding: 160px 0 80px; background: var(--gradient); color: var(--white); text-align: center; }
.page-header h1 { font-size: 3rem; margin-bottom: 1rem; }
.page-header p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }
.detailed-about { padding: 80px 0 10px 0; }
.content-section { margin-bottom: 4rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.content-section h2 { color: var(--primary-color); margin-bottom: 2rem; font-size: 2rem; }
.content-section p { margin-bottom: 1.5rem; line-height: 1.8; color: var(--text-dark); }
.activity-item { background: var(--bg-light); padding: 2rem; border-radius: 10px; margin-bottom: 2rem; border-left: 4px solid var(--primary-color); }
.activity-item h3 { color: var(--primary-color); margin-bottom: 1rem; }
.activity-item ul { margin-top: 1rem; padding-left: 1.5rem; }
.activity-item li { margin-bottom: 0.8rem; line-height: 1.6; }
.partnerships h3 { color: var(--primary-color); margin-bottom: 1rem; }
.partnerships ul { list-style: none; padding: 0; }
.partnerships li { padding: 0.5rem 0; border-bottom: 1px solid #eee; position: relative; padding-left: 1.5rem; }
.partnerships li::before { content: '🤝'; position: absolute; left: 0; }

/* Festival Page Styles */
.festival-hero { height: 70vh; min-height: 400px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--white); text-align: center; }
.festival-hero-content { z-index: 2; }
.festival-logo { width: 150px; height: 150px; object-fit: contain; margin-bottom: 2rem; background: rgba(255,255,255,0.1); border-radius: 50%; padding: 1rem; }
.festival-hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.festival-overview { padding: 80px 0; }
.overview-content { max-width: 800px; margin: 0 auto; text-align: center; }
.overview-content h2 { color: var(--primary-color); margin-bottom: 2rem; font-size: 2.5rem; }
.overview-content p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; color: var(--text-dark); }
.festival-history { padding: 80px 0; background: var(--bg-light); }
.festival-history h2 { text-align: center; color: var(--primary-color); margin-bottom: 3rem; font-size: 2.5rem; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 40px; top: 0; bottom: 0; width: 4px; background: var(--primary-color); opacity: 0.2; border-radius: 2px; }
.timeline-item { position: relative; padding-left: 100px; margin-bottom: 3rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-year { background: var(--primary-color); color: var(--white); padding: 0.5rem 1rem; border-radius: 50px; font-weight: bold; text-align: center; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 80px; z-index: 2; }
.timeline-content { background: var(--white); padding: 1.5rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); flex: 1; }
.timeline-content h3 { color: var(--primary-color); margin-bottom: 0.5rem; }
.festival-goals { padding: 80px 0; }
.festival-goals h2 { text-align: center; color: var(--primary-color); margin-bottom: 3rem; font-size: 2.5rem; }
.goals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.goal-item { background: var(--white); padding: 2rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); text-align: center; transition: transform 0.3s ease; }
.goal-item:hover { transform: translateY(-5px); }
.goal-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.goal-item h3 { color: var(--primary-color); margin-bottom: 1rem; }
.goal-item p { color: var(--text-light); line-height: 1.6; }
.festival-2025-detail { padding: 80px 0; background: var(--bg-light); }
.festival-2025-detail h2 { text-align: center; color: var(--primary-color); margin-bottom: 3rem; font-size: 2.5rem; }
.festival-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.info-card { background: var(--white); padding: 1.5rem; border-radius: 10px; text-align: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.info-card h3 { color: var(--primary-color); margin-bottom: 0.5rem; }
.industree-section { background: var(--white); padding: 3rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07); }
.industree-section h3 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.8rem; }
.industree-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.project-item { border-left: 3px solid var(--primary-color); padding-left: 1rem; }
.project-item h4 { color: var(--text-dark); margin-bottom: 0.5rem; }
.project-item p { color: var(--text-light); font-size: 0.9rem; line-height: 1.5; }

/* Projects Page Styles */
.project-detail { padding: 80px 0; }
.project-detail.alt-bg { background: var(--bg-light); }
.project-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.project-hero.reverse { grid-template-columns: 1fr 1fr; }
.project-hero.reverse .project-info { order: 2; }
.project-hero.reverse img { order: 1; }
.project-hero img { width: 100%; border-radius: 10px; object-fit: cover; height: 400px; }
.project-info h2 { color: var(--primary-color); margin-bottom: 1rem; font-size: 2.2rem; }
.project-info p { color: var(--text-dark); line-height: 1.8; font-size: 1.1rem; }
.objectives-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.objective { background: var(--white); padding: 1.5rem; border-radius: 10px; border-left: 4px solid var(--primary-color); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.objective h4 { color: var(--primary-color); margin-bottom: 0.5rem; }
.objective p { color: var(--text-light); line-height: 1.6; }
.program-structure { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.structure-item { background: var(--bg-light); padding: 1.5rem; border-radius: 10px; text-align: center; }
.structure-item h4 { color: var(--primary-color); margin-bottom: 0.5rem; }
.achievement-stats { display: flex; justify-content: center; gap: 3rem; margin: 3rem 0; flex-wrap: wrap; }
.films-list, .books-list { margin-top: 3rem; }
.films-list h3, .books-list h3 { color: var(--primary-color); margin-bottom: 2rem; font-size: 1.8rem; text-align: center; }
.films-grid, .books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.film-item, .book-item { background: var(--white); padding: 1.5rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.film-item h4, .book-item h4 { color: var(--primary-color); margin-bottom: 0.5rem; }
.film-item p, .book-item p { color: var(--text-light); line-height: 1.5; }
.upcoming-books { margin-top: 2rem; background: var(--bg-light); padding: 2rem; border-radius: 10px; }
.upcoming-books h3 { color: var(--primary-color); margin-bottom: 1rem; text-align: left; }
.upcoming-books ul { list-style: none; padding: 0; }
.upcoming-books li { padding: 0.5rem 0; border-bottom: 1px solid #ddd; position: relative; padding-left: 1.5rem; }
.upcoming-books li:last-child { border-bottom: none; }
.upcoming-books li::before { content: '📖'; position: absolute; left: 0; }

/* Gallery Filters */
.gallery-categories { padding: 50px 0; background: var(--bg-light); }
.category-filters { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.filter-btn { padding: 10px 20px; border: 2px solid var(--primary-color); background: transparent; color: var(--primary-color); border-radius: 25px; cursor: pointer; transition: all 0.3s ease; font-weight: 500; }
.filter-btn:hover, .filter-btn.active { background: var(--primary-color); color: var(--white); }
.main-gallery { padding: 80px 0; }
.gallery-masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.gallery-masonry .gallery-item { break-inside: avoid; margin-bottom: 0; cursor: pointer; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-10px) translateX(-50%); } 60% { transform: translateY(-5px) translateX(-50%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Dropdown Menu - General Desktop */
.nav-link.dropdown { position: relative; }
.nav-link.dropdown::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1rem; height: 1rem; background: transparent; }
/* 3. Dropdown Menu (Desktop & Mobile Fix)
----------------------------------------------------------------*/
.nav-link.dropdown { position: relative; cursor: pointer; }

/* The invisible bridge for hovering */
.nav-link.dropdown::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1rem; height: 1rem; background: transparent; }

/* --- DESKTOP STYLE (The White Card) --- */
.dropdown-menu { 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%); 
    margin-top: 0.75rem; 
    background: var(--white); 
    border-radius: 12px; 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); 
    padding: 0.5rem 0; 
    list-style: none; 
    
    /* I increased this to 260px so long words fit on Desktop too */
    min-width: 260px; 
    
    z-index: 2000; 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
    transition: opacity 0.2s ease, visibility 0.2s ease; 
}

/* Hover effect for Desktop */
.nav-link.dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; }

/* Link Styles */
.dropdown-menu li a { 
    display: block; 
    padding: 0.8rem 1.5rem; 
    color: var(--text-dark); 
    font-weight: 500; 
    transition: all 0.2s ease;
    
    /* Keeps desktop text on one line */
    white-space: nowrap; 
}

.dropdown-menu li a:hover { background-color: var(--bg-light); color: var(--primary-color); }

/* Arrow Icon */
.nav-link.dropdown > span::after { content: ' \25BE'; font-size: 0.8em; margin-left: 5px; display: inline-block; transition: transform 0.25s ease; }
.nav-link.dropdown:hover > span::after { transform: rotate(180deg); }


/* --- MOBILE OVERRIDES (This Fixes the Screenshot) --- */
@media (max-width: 1200px) {

    /* 1. Stop Floating / Remove Card Style */
    .dropdown-menu {
        position: static !important; /* Pushes content down instead of floating */
        transform: none !important;  /* Remove centering */
        width: 100% !important;      /* Use Full screen width */
        min-width: 100% !important;
        box-shadow: none !important; /* Remove shadow */
        border-radius: 0 !important;
        background-color: #f8f9fa !important; /* Light grey background to show it is a submenu */
        margin-top: 0 !important;
        
        /* Logic for hiding/showing via JS class */
        max-height: 0;
        overflow: hidden;
        padding: 0 !important;
        display: block;
        opacity: 1 !important; /* Always visible to the browser, just hidden by height */
        pointer-events: auto !important;
        visibility: visible !important;
    }

    /* 2. When Open (Added via JS click) */
    .nav-link.dropdown.open .dropdown-menu {
        max-height: 600px; /* Allow expansion */
        padding: 10px 0 !important;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    /* 3. Mobile Text Styling - Allow Wrapping! */
    .dropdown-menu li a {
        white-space: normal !important; /* Allow wrapping on mobile! */
        word-wrap: break-word !important;
        text-align: center;
        padding: 15px 10px !important;
        font-size: 1rem !important;
    }
    
    /* 4. Disable Desktop Hover on Mobile */
    .nav-link.dropdown:hover > .dropdown-menu {
        /* On mobile, we rely on the .open class, not hover */
        opacity: 1; 
        visibility: visible;
    }
}
.nav-link.dropdown > span::after { content: ' \25BE'; font-size: 0.8em; margin-left: 5px; display: inline-block; transition: transform 0.25s ease; }
.nav-link.dropdown:hover > span::after { transform: rotate(180deg); }

/* Video Gallery Styles */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.video-item h3 { color: var(--primary-color); margin-top: 1rem; margin-bottom: 0.5rem; }
.video-item p { color: var(--text-light); font-size: 0.95rem; }
.video-responsive-wrapper { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.video-responsive-wrapper iframe { position: absolute; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; border: none; }
.lang-flag img { height: 20px; width: auto; display: block; }

/* Festival Button */
.festival-site-link { color: var(--primary-color) !important; font-weight: 600; border: 1px solid var(--primary-color); padding: 8px 16px; border-radius: 20px; margin-left: 1rem; transition: all 0.3s ease; }
.festival-site-link:hover { background-color: var(--primary-color); color: var(--white) !important; }
.festival-site-link::after { display: none !important; }

/* Interactive Film List */
.interactive-film-list { list-style: none; padding: 0; margin-top: 2rem; }
.interactive-film-list li { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.interactive-film-list li:last-child { border-bottom: none; }
.film-row { display: flex; flex-direction: column; text-decoration: none; color: var(--text-dark); }
.film-row.has-poster { cursor: pointer; transition: transform 0.2s ease; }
.film-row.has-poster:hover { transform: translateX(10px); }
.film-row.has-poster:hover .film-title { color: var(--primary-color); }
.film-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; }
.film-meta { color: var(--text-light); font-size: 0.95rem; }
.social-links { display: flex; gap: 15px; align-items: center; margin-top: 20px; }
.social-link img { width: 32px; height: 32px; object-fit: contain; transition: transform 0.3s ease; }
.social-link:hover img { transform: scale(1.2); }

/* Announcements Section */
.announcements-section { padding: 80px 0; background-color: #f8f9fa; }
.announce-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.announce-item { background: #ffffff; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); overflow: hidden; cursor: pointer; transition: all 0.3s ease; border-left: 5px solid transparent; }
.announce-item:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-left-color: #c41e3a; }
.announce-header { display: flex; align-items: center; padding: 20px; gap: 20px; }
.announce-date { background: #f0f2f5; min-width: 70px; height: 70px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #2c3e50; line-height: 1; }
.announce-date .day { font-size: 1.8rem; font-weight: 700; color: #c41e3a; }
.announce-date .month { font-size: 0.9rem; font-weight: 500; text-transform: uppercase; margin-top: 5px; }
.announce-title-row { flex-grow: 1; }
.announce-title-row h3 { margin: 0; font-size: 1.2rem; color: #2c3e50; font-weight: 600; }
.announce-category { display: inline-block; font-size: 0.85rem; color: #7f8c8d; margin-top: 5px; background: #f8f9fa; padding: 4px 10px; border-radius: 15px; border: 1px solid #eee; }
.announce-icon { font-size: 2rem; color: #c41e3a; font-weight: 300; transition: transform 0.3s ease; }
.announce-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #fff; }
.announce-inner { padding: 0 20px 25px 20px; display: flex; gap: 20px; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.announce-inner img { width: 150px; height: 100px; object-fit: cover; border-radius: 8px; }
.announce-text p { margin: 0 0 15px 0; color: #555; font-size: 0.95rem; }
.btn-text { color: #c41e3a; font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.btn-text:hover { text-decoration: underline; }
.announce-item.active { border-left-color: #c41e3a; box-shadow: 0 10px 30px rgba(196, 30, 58, 0.1); }
.announce-item.active .announce-icon { transform: rotate(45deg); }
.announce-item.active .announce-body { max-height: 300px; }

/* Publishing / Production Grid */
.production-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 30px; }
.item-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease; border: 1px solid #eee; display: flex; flex-direction: column; }
.item-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.item-card > a { display: block; position: relative; overflow: hidden; height: 350px; }
.item-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.item-card:hover img { transform: scale(1.05); }
.item-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.item-content h3 { color: var(--primary-color); font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.item-meta { font-size: 0.85rem; color: #888; margin-bottom: 12px; font-weight: 600; }
.item-content p { font-size: 0.95rem; color: var(--text-dark); line-height: 1.6; }
.pdf-icon { position: absolute; bottom: 10px; right: 10px; background: rgba(255, 255, 255, 0.9); color: #c41e3a; padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.item-card .btn-secondary { background-color: #2c3e50 !important; color: #ffffff !important; border: 2px solid #2c3e50 !important; opacity: 1 !important; display: inline-block; padding: 8px 20px; border-radius: 50px; margin-top: 15px; text-decoration: none; }
.item-card .btn-secondary:hover { background-color: #c41e3a !important; border-color: #c41e3a !important; color: #ffffff !important; transform: translateY(-2px); }

/*
==================================================================
  MOBILE MENU FIXES (CONSOLIDATED & FIXED)
  Covers Mobile (<768px) and Tablet (<1200px)
==================================================================
*/
@media (max-width: 1200px) { /* Trigger mobile menu earlier (Tablets/Laptops) */

    /* 1. HAMBURGER (Visible & Fixed) */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 3000;
    }
    
    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: var(--text-dark); /* Dark lines to be visible on white */
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* 2. MENU CONTAINER (White Background, Sliding) */
    .nav-menu {
        position: fixed !important;
        top: 0;
        right: -100%; /* Hidden off-screen */
        width: 100% !important;
        height: 100vh !important;
        background-color: #ffffff; /* White background like Subdomain */
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px; /* Space for close button */
        padding-bottom: 120px;
        transition: right 0.4s ease;
        z-index: 2000;
        overflow-y: auto !important; /* scrollable */
        display: flex !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    /* 3. ACTIVE STATE (Slide it in) */
    .nav-menu.active {
        right: 0 !important;
    }

    /* 4. LINKS (Smaller Text + Wrapping) */
    .nav-link {
        font-size: 1.1rem !important; /* Smaller size for mobile */
        margin: 10px 0;
        width: 100%;
        text-align: center;
        display: block;
        padding: 10px;
        
        /* THIS FIXES THE LONG ARMENIAN WORDS */
        word-wrap: break-word !important; 
        word-break: break-word !important;
        white-space: normal !important;
    }

    /* 5. FIX FOR HUGE HEADERS (Screenshot 1 Issue) */
    /* This makes "Ֆիլմարտադրություն" fits on screen */
    h1, h2, .hero-title, .section-header h2 {
        font-size: 2rem !important; /* Max size for mobile header */
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* 6. HAMBURGER ANIMATION (X shape) */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

    /* Announcement specific mobile fix */
    .announce-inner { flex-direction: column; }
    .announce-inner img { width: 100%; height: 180px; }
    .announce-title-row h3 { font-size: 1.1rem; }
    .announce-item.active .announce-body { max-height: 500px; }
}

/* --- CRITICAL MOBILE FIXES --- */

/* 1. Stop the screen from zooming out/scrolling right */
html, body {
    width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

/* 2. Fix the Mobile Menu Width and Text */
@media (max-width: 992px) {
    
    /* Force the menu to fit inside the screen */
    .nav-menu {
        width: 100% !important; /* Uses full screen width */
        right: -100% !important; /* Hides it completely when closed */
        display: flex !important;
    }

    /* Force long Armenian words to break */
    .nav-link {
        white-space: normal !important; /* Allows text to wrap */
        word-wrap: break-word !important; 
        word-break: break-word !important; /* Forces break if word is too long */
        max-width: 300px; /* Prevents link from being wider than screen */
        margin-left: auto;
        margin-right: auto;
    }
}

/* ADD THIS TO THE VERY BOTTOM OF YOUR CSS FILE */

@media (max-width: 1200px) {
    
    /* 1. Shrink the Big Red Header Text */
    .page-header h1, 
    .hero-title,
    h1 {
        /* Change this number to make it smaller or bigger. 
           1.6rem is usually safe for long Armenian words. */
        font-size: 1.6rem !important; 
        
        line-height: 1.3; /* Tighter spacing */
        padding-left: 10px;
        padding-right: 10px;
        
        /* Ensures it breaks if it is STILL too long */
        word-wrap: break-word !important;
        word-break: break-word !important;
    }

    /* 2. Shrink Section Titles (like "Մեր ֆիլմերը") */
    .section-header h2,
    h2 {
        font-size: 1.5rem !important;
    }
}

/* --- FIX FOR CONTACT FORM VISIBILITY --- */
@media (max-width: 920px) {
    
    /* 1. Force the layout to stack (Top to Bottom) instead of Side-by-Side */
    .contact-content {
        display: flex !important;
        flex-direction: column !important; /* Stacks them vertically */
        gap: 30px !important;
        width: 100% !important;
        padding: 0 10px !important; /* Prevents touching the edges */
    }

    /* 2. Make the Form fit the screen width */
    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important; /* Slightly smaller padding for mobile */
        box-sizing: border-box !important;
    }

    /* 3. Ensure Inputs don't overflow */
    .contact-form input, 
    .contact-form textarea,
    .contact-form select {
        width: 100% !important;
        max-width: 100% !important;
    }
}