/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ef5350;
    --secondary-color: #212121;
    --text-dark: #212121;
    --text-light: #616161;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ==========================================
   Utility Classes
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.logo-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: none;
    margin-left: 5px;
    font-size: 0.7rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    margin-top: 10px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==========================================
   Language Switcher
   ========================================== */
.language-switcher {
    display: flex;
    gap: 5px;
    background-color: var(--bg-light);
    padding: 5px;
    border-radius: 20px;
}

.mobile-lang-switcher {
    display: none;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background-color: transparent;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 15px;
    transition: var(--transition);
    text-transform: uppercase;
}

.lang-btn:hover {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-color);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../obrazky_web/uz-ho-nesou.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-dark);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-shadow: none;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
    color: var(--text-light);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-date {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-dark);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

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

/* ==========================================
   About Section
   ========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.9;
    text-align: justify;
}

.about-content .link-primary {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.about-content .link-primary:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.feature-list {
    margin-top: 20px;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 1.05rem;
    color: var(--text-light);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    background-image: url('../obrazky_web/stopy.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-placeholder {
    background: var(--bg-light);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

/* ==========================================
   Events Section
   ========================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.date-day {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.date-year {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

.event-content {
    padding: 25px;
    flex: 1;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

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

.event-location {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ==========================================
   Gallery Section
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item .image-placeholder {
    aspect-ratio: 16/9;
}

/* Featured image + thumbnails layout */
.gallery-featured {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-featured:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.gallery-featured img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-thumbnail {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================
   Legendary Member Section
   ========================================== */
.section-special {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.section-special::before {
    content: '💨';
    position: absolute;
    font-size: 15rem;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.legendary-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.legendary-image {
    position: sticky;
    top: 100px;
}

.legendary-placeholder {
    background: var(--bg-light);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 3/4;
    transition: var(--transition);
}

.legendary-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.legendary-text {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.legendary-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.legendary-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.legendary-poem {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 40px;
}

.poem-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.poem-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-light);
}

.poem-content em {
    font-style: italic;
    color: var(--text-dark);
}

.legendary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
    border: 1px solid var(--primary-color);
}

.stat-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   News Section
   ========================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.news-date,
.news-category {
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-category {
    color: var(--primary-color);
    font-weight: 500;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

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

.news-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    color: var(--primary-dark);
}

/* Load More Button */
.load-more-btn {
    margin-top: 20px;
}

/* News Detail Page */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.3;
}

.news-detail .news-meta {
    margin-bottom: 20px;
}

.news-detail-content {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.9;
}

.news-detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.news-back-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 30px;
    transition: var(--transition);
}

.news-back-link:hover {
    color: var(--primary-dark);
}

.news-detail-empty {
    text-align: center;
    padding: 60px 0;
}

.news-detail-empty p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* News Detail - Banner Image */
.news-detail-banner {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.news-image-thumbnail {
    display: block;
    max-width: 400px;
    margin: 0 auto 30px;
    text-align: center;
}

.news-image-thumbnail a {
    display: block;
    text-decoration: none;
    transition: opacity 0.2s;
    text-align: center;
}

.news-image-thumbnail a:hover {
    opacity: 0.85;
}

.news-image-thumbnail .news-detail-banner {
    margin-bottom: 8px;
    cursor: pointer;
}

.news-image-caption {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

/* Program Section Styles */
.program-section {
    margin-bottom: 35px;
}

.program-day-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.program-location {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 12px;
    padding: 8px 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.program-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: baseline;
}

.program-item:last-child {
    border-bottom: none;
}

.program-time {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    min-width: 120px;
    font-size: 0.95rem;
}

.program-info {
    flex: 1;
}

.program-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.program-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.program-note {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    font-style: italic;
}

.program-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    margin-top: 30px;
    margin-bottom: 10px;
}

.program-highlight .program-location {
    color: white;
    background-color: rgba(255,255,255,0.15);
    border-left-color: white;
    font-size: 1.4rem;
}

.program-highlight .program-item {
    border-bottom-color: rgba(255,255,255,0.2);
}

.program-highlight .program-time {
    color: white;
}

.program-highlight .program-name {
    color: white;
}

.program-highlight .program-desc {
    color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
    .program-item {
        flex-direction: column;
        gap: 4px;
    }

    .program-time {
        min-width: auto;
    }

    .program-day-title {
        font-size: 1.4rem;
    }
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-light);
}

.contact-icon {
    font-size: 1.5rem;
}

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   Back to Top Button
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-wrapper {
        justify-content: space-between;
    }

    .nav-right {
        gap: 15px;
    }

    .nav-right .language-switcher {
        display: none;
    }

    .mobile-lang-switcher {
        display: block;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 40px 20px;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        gap: 20px;
        flex: none;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-item-dropdown > .nav-link {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: auto;
        pointer-events: all;
        padding: 0;
        margin: 0;
        line-height: 1.4;
    }

    .nav-item-dropdown > .nav-link::after {
        display: none;
    }

    .nav-item-dropdown > .nav-link span {
        pointer-events: all;
    }

    .dropdown-toggle {
        display: inline-block;
        margin-left: 5px;
        transition: transform 0.3s ease;
        font-size: 0.9rem;
        color: var(--text-dark);
        cursor: pointer;
    }

    .dropdown-toggle.active {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background-color: var(--bg-light);
        margin-top: 0;
        border-radius: 8px;
        width: 100%;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
        display: none;
    }

    .dropdown-menu.active {
        display: block;
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        margin-top: 5px;
    }

    .dropdown-link {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-date {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .contact-grid,
    .legendary-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legendary-image {
        position: relative;
        top: 0;
    }

    .legendary-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .events-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .gallery-featured img {
        max-height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-date {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .legendary-name {
        font-size: 1.8rem;
    }

    .legendary-text {
        padding: 25px;
    }

    .legendary-poem {
        padding: 20px;
    }

    .poem-content {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .language-switcher {
        padding: 4px;
        gap: 3px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }

    .gallery-featured img {
        max-height: 300px;
    }
}

/* ==========================================
   Lightbox Modal
   ========================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    animation: fadeIn 0.3s ease-in;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    transition: var(--transition);
    user-select: none;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-caption {
    margin-top: 20px;
    color: white;
    text-align: center;
    font-size: 1rem;
    max-width: 80%;
}

/* Gallery item cursor */
.gallery-item img {
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   Year Cards
   ========================================== */
.year-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.year-card h3 {
    transition: color 0.3s ease;
    text-align: center;
}

.year-card p {
    text-align: center;
}

.year-card:hover h3 {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        max-width: 90%;
    }
}
