/*
==================================================================
  STYLESHEET FOR FESTIVAL SUBDOMAIN (BASED ON FILMADARAN MAIN SITE) - V6
==================================================================
*/

/* 1. Base and General Styles
----------------------------------------------------------------*/
* { 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); background-color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary-color); text-decoration: none; }

/* 2. Navigation Bar
----------------------------------------------------------------*/
.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; width: 100%; }
.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: 1.1rem; 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%; }
.main-site-link { color: var(--primary-color) !important; font-weight: 600; border: 1px solid var(--primary-color); padding: 8px 12px; border-radius: 20px; margin-left: 1rem; white-space: nowrap; }
.main-site-link:hover { background: var(--primary-color); color: var(--white) !important; }
.main-site-link::after { display: none !important; }

/* 3. Dropdown Menu
----------------------------------------------------------------*/
.nav-link.dropdown { position: relative; cursor: pointer; }
.nav-link.dropdown::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1rem; height: 1rem; background: transparent; }
.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; min-width: 220px; z-index: 2000; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0.2s ease; }
.nav-link.dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; }
.dropdown-menu li a { display: block; padding: 0.8rem 1.5rem; color: var(--text-dark); font-weight: 500; transition: all 0.2s ease; }
.dropdown-menu li a:hover { background-color: var(--bg-light); color: var(--primary-color); }
.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); }

/* 4. Hero Slideshow Banner
----------------------------------------------------------------*/
.hero-slideshow { height: 85vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--white); text-align: center; }
.slideshow-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }
.slide:nth-child(1) { background-image: url('1.jpg'); }
.slide:nth-child(2) { background-image: url('2.jpg'); }
.slide:nth-child(3) { background-image: url('3.jpg'); }
.slide:nth-child(4) { background-image: url('4.jpg'); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(196, 30, 58, 0.5) 0%, rgba(139, 0, 0, 0.55) 100%); z-index: -1; }
.festival-hero-content { z-index: 2; animation: fadeInUp 1s ease-out; }
.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-content h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.slideshow-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: background 0.3s ease; }
.dot:hover, .dot.active { background: var(--white); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* 5. General Page & Section 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; max-width: 700px; margin: 0 auto; }
.project-detail, .detailed-about { padding: 80px 0; }
.project-detail h2, .detailed-about h2 { font-size: 2rem; color: var(--primary-color); margin-bottom: 1.5rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--text-light); max-width: 700px; margin: 0 auto; }

/* 6. Footer Styles
----------------------------------------------------------------*/
.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; padding: 0; }
.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; }

/* 7. Styles for Detailed Index/About Page Sections
----------------------------------------------------------------*/
.festival-overview, .festival-history, .festival-goals, .festival-2025-detail { padding: 80px 20px; }
.festival-history { background-color: var(--bg-light); }
.festival-overview h2, .festival-history h2, .festival-goals h2, .festival-2025-detail h2 { text-align: center; font-size: 2.5rem; margin-bottom: 50px; color: var(--primary-color); }
.overview-content { max-width: 800px; margin: 0 auto; text-align: center; }
.overview-content p { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 1rem; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 4px; background: #e0e0e0; border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -39px; top: 5px; width: 20px; height: 20px; background: var(--primary-color); border-radius: 50%; z-index: 1; border: 4px solid var(--white); box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.timeline-year { font-weight: 700; font-size: 1.2rem; color: var(--primary-color); margin-bottom: 5px; }
.timeline-content { background: var(--white); padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.timeline-content h3 { color: var(--secondary-color); margin-bottom: 8px; }
.goals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.goal-item { text-align: center; padding: 20px; }
.goal-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 1rem; display: block; }
.goal-item h3 { margin-bottom: 1rem; color: var(--secondary-color); font-size: 1.3rem; }
.goal-item p { color: var(--text-light); }
.festival-2025-content { max-width: 1000px; margin: 0 auto; }
.festival-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 60px; }
.info-card { background: var(--bg-light); padding: 25px; border-radius: 8px; text-align: center; border-bottom: 3px solid var(--primary-color); }
.info-card h3 { color: var(--secondary-color); font-size: 1.2rem; margin-bottom: 10px; }
.info-card p { font-weight: 500; font-size: 1.1rem; color: var(--text-dark); }
.industree-section h3, .industree-detailed-section h3 { text-align: center; color: var(--secondary-color); font-size: 2rem; margin-bottom: 15px; }
.industree-section > p, .industree-detailed-section > p { text-align: center; max-width: 700px; margin: 0 auto 40px auto; }
.industree-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.project-item { background: var(--white); padding: 25px; border-left: 4px solid var(--accent-color); box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 0 8px 8px 0; }
.project-item h4 { color: var(--secondary-color); margin-bottom: 10px; }

/* 8. Submission Form Styles
----------------------------------------------------------------*/
.submission-section { padding: 80px 0; }
.submission-form-container { max-width: 900px; margin: 0 auto; background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.submission-form-container h2 { color: var(--primary-color); margin-bottom: 1rem; text-align: center; }
.submission-form-container h3 { color: var(--secondary-color); margin-top: 2rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.submission-form-container .form-intro { text-align: center; margin-bottom: 2rem; color: var(--text-light); }
.submission-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.submission-form .form-group { margin-bottom: 1rem; }
.submission-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-dark); }
.submission-form input[type="text"], .submission-form input[type="email"], .submission-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.submission-form input:focus, .submission-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1); }
.submission-form .form-hint { font-size: 0.85rem; color: var(--text-light); margin: -0.25rem 0 0.5rem 0; }
.submission-form hr { border: none; height: 1px; background-color: #eee; margin: 2rem 0; }
.submission-instructions { margin-top: 3rem; padding: 2rem; background: var(--bg-light); border-radius: 8px; border-left: 4px solid var(--primary-color); }
.submission-instructions h3 { margin-top: 0; }
.submission-instructions ul { padding-left: 20px; margin: 1rem 0; }
.submission-instructions .email-address { font-size: 1.1rem; text-align: center; margin-top: 1.5rem; }
.submission-instructions .email-address strong { color: var(--primary-color); }

/*
==================================================================
  9. NEW STYLES FOR FESTIVAL 2025 PAGE
==================================================================
*/
.festival-2025-page-content section { padding: 80px 20px; }
.industree-detailed-section { padding-top: 80px !important; }
.jury-section { background-color: var(--bg-light); }
.jury-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.jury-member { background: var(--white); padding: 2rem; border-radius: 8px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.jury-member p { color: var(--text-light); font-style: italic; }
.program-section .program-placeholder { text-align: center; padding: 3rem; background: var(--bg-light); border-radius: 8px; }
.program-placeholder p { font-size: 1.2rem; font-weight: 500; color: var(--text-dark); }

/* 10. Mobile & Responsive Styles
----------------------------------------------------------------*/
.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; }
@media (max-width: 992px) {
    .festival-hero-content h1 { font-size: 2rem; }
    .festival-overview h2, .festival-history h2, .festival-goals h2, .festival-2025-detail h2 { font-size: 2rem; }
    .industree-projects { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu { position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; align-items: center; padding: 1rem 0; box-shadow: 0 10px 10px rgba(0,0,0,0.05); display: none; }
    .nav-menu.active { display: flex; }
    .nav-link { padding: 0.75rem 0; width: 100%; text-align: center; }
    .main-site-link { margin: 0.5rem 0; border: none; }
    .hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-6px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-6px, -6px); }
    .nav-link.dropdown::after { display: none; }
    .dropdown-menu { position: static; transform: none; box-shadow: none; background-color: transparent; margin-top: 0; padding-left: 1rem; min-width: 100%; opacity: 1; visibility: visible; pointer-events: auto; border-radius: 0; }
    .dropdown-menu li a { text-align: center; }
    .submission-form .form-grid { grid-template-columns: 1fr; gap: 0; }
    .submission-form-container { padding: 1.5rem; }
    .festival-2025-page-content section { padding: 60px 20px; }
}

/*
==================================================================
  11. NEW STYLES FOR PARTNERS PAGE
==================================================================
*/
.partners-section {
    padding: 80px 20px;
}

.partner-category-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.partner-category-title:first-child {
    margin-top: 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.partner-card {
    display: block;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.partner-logo {
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.partner-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.partner-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/*
==================================================================
  12. NEW STYLES FOR ARTICLES PAGE
==================================================================
*/
.articles-section {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.articles-list {
    max-width: 900px;
    margin: 0 auto;
}

.article-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2.5rem;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    flex: 0 0 250px; /* Fixed width for the image container */
    background-color: #eee;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.article-source {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.article-content p {
    color: var(--text-dark);
    line-height: 1.7;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.btn-read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 1.5rem;
    align-self: flex-start; /* Aligns button to the left */
}

.btn-read-more:hover {
    background-color: var(--secondary-color);
}

/* Responsive styles for articles page */
@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }
    .article-image {
        flex-basis: 200px; /* Set a fixed height for the image on mobile */
    }
    .article-content {
        padding: 1.5rem;
    }
}

/*
==================================================================
  13. NEW STYLES FOR GALLERY PAGES (PHOTOS & VIDEOS)
==================================================================
*/

/* General Gallery Section */
.main-gallery {
    padding: 80px 20px;
}

/* Photo Gallery Specific Styles */
.gallery-categories {
    padding: 50px 20px 0;
    background: var(--bg-light);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: -50px; /* Pulls the main gallery section up */
    position: relative;
    z-index: 10;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    background: var(--bg-light);
    padding-top: 80px; /* Space for the filters */
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.is-visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Video Gallery Specific Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 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%; /* 16:9 Aspect Ratio */
    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;
}

/*
==================================================================
  14. NEW STYLES FOR LANGUAGE SWITCHER
==================================================================
*/

.lang-switcher {
    margin-left: 1.5rem; /* Adds space between it and the last menu item */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px; /* Adds a small clickable area */
    transition: transform 0.2s ease;
}

.lang-switcher:hover {
    transform: scale(1.1); /* Simple hover effect */
}

/* IMPORTANT: This removes the underline hover effect from the flag */
.lang-switcher::after {
    display: none !important;
}

.lang-switcher img {
    height: 20px;   /* Controls the size of the flag */
    width: auto;    /* Maintains aspect ratio */
    display: block; /* Removes any extra space below the image */
}