/* Reset și Stiluri Generale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #3f3f3f;
    --accent-color: #CD1C22;
    --accent-light: #F7B3B2;
    --dark-color: #0a0a0a;
    --light-color: #f5f5f5;
    --white: #ffffff;
    --gray: #666666;
    --gray-light: #a8a8a8;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-red: 0 10px 30px rgba(205, 28, 34, 0.2);
    
    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #ffffff;
    --secondary-color: #d0d0d0;
    --accent-color: #ff6b6f;
    --accent-light: #4a1a1d;
    --dark-color: #ffffff;
    --light-color: #1a1a1a;
    --white: #181818;
    --gray: #c0c0c0;
    --gray-light: #606060;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-red: 0 10px 30px rgba(255, 107, 111, 0.3);
    
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Logo - Easter egg */
.logo {
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.logo:hover {
    transform: scale(1.02);
}

.logo:active {
    transform: scale(0.98);
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    opacity: 0.6;
}

.theme-toggle:hover {
    opacity: 1;
    transform: scale(1.15);
    background: rgba(205, 28, 34, 0.1);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 107, 111, 0.2);
}

/* Falling climber Easter egg */
.falling-climber {
    position: fixed;
    font-size: 2.5rem;
    z-index: 9999;
    pointer-events: none;
    animation: personFall 1.5s ease-in forwards;
}

@keyframes personFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: translateY(50px) rotate(15deg);
        opacity: 1;
    }
    40% {
        transform: translateY(150px) rotate(-20deg);
        opacity: 1;
    }
    60% {
        transform: translateY(300px) rotate(30deg);
        opacity: 0.8;
    }
    80% {
        transform: translateY(500px) rotate(-25deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Logo falling animation */
.logo-falling {
    animation: logoFall 2s ease-in forwards !important;
}

@keyframes logoFall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    20% {
        transform: translateY(-20px) rotate(-5deg);
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
    }
}

p {
    text-align: justify;
    text-indent: 2em;
}

.hero-content p {
    text-align: center;
    text-indent: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header & Navbar */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
    order: 1;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.org-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    order: 0;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    order: 2;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: block;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(135deg, #0a0a0a 0%, var(--primary-color) 50%, #2a0000 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.9) 50%, rgba(42, 0, 0, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(205,28,34,0.08)"/></svg>');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: #e62129;
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section h3 {
    text-align: center;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--white);
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.highlight-item p {
    color: var(--gray);
}

/* Activities Section */
.activities {
    background: var(--light-color);
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--gray-light);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.activity-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.activity-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: var(--white);
}

.project-highlight {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    background: var(--light-color);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.project-image {
    position: relative;
}

.project-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.project-image .image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.project-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-date {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-content p {
    margin-bottom: 1rem;
    color: var(--gray);
    line-height: 1.8;
}

.project-details {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.project-details h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-details ul {
    list-style: none;
}

.project-details li {
    padding: 0.5rem 0;
    color: var(--gray);
}

.project-quote {
    font-style: italic;
    background: var(--white);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
    margin: 1.5rem 0;
}

.project-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* Benefits Section */
.benefits {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 50%, #1a0000 100%);
    color: var(--white);
}

.benefits h2 {
    color: var(--white);
}

.benefits h2::after {
    background: var(--accent-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background: var(--light-color);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
    text-align: center;
    text-indent: 0;
}

.contact-description {
    margin: 2rem 0;
    font-style: italic;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0;
}

/* Gallery Section */
.gallery {
    background: var(--white);
}

.gallery-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Container pentru albumele dinamice din Supabase */
#dynamicAlbumsContainer {
    display: contents; /* Face ca elementele copil să fie tratate ca și cum ar fi direct în grid */
}

.album-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.album-cover {
    position: relative;
    overflow: hidden;
}

.album-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 50%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.album-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.view-album-btn {
    padding: 10px 24px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.view-album-btn:hover {
    background: #e62129;
    transform: scale(1.05);
    box-shadow: var(--shadow-red);
}

.album-info {
    padding: 0.8rem;
    text-align: center !important;
}

.album-info h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0 0 0.3rem 0;
    padding: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-weight: 600;
    line-height: 1.3;
    text-align: center !important;
}

.album-date,
.album-info p.album-date,
p.album-date {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.8rem;
    margin: 0 0 0.2rem 0;
    padding: 0;
    text-align: center !important;
}

.album-info p,
.album-info p.album-desc {
    color: var(--gray);
    line-height: 1.4;
    font-size: 0.85rem;
    margin: 0;
    padding: 0;
    text-align: center !important;
    text-indent: 0 !important;
}

.photo-count {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 0.4rem;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: block;
}

.modal-content {
    position: relative;
    margin: 3% auto;
    padding: 1.5rem;
    width: 85%;
    max-width: 900px;
    animation: slideDown 0.4s ease;
}

.modal-title {
    color: var(--white);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.modal-title::after {
    background: var(--accent-color);
}

.close-modal {
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-gallery {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.gallery-item {
    width: 100% !important;
    height: 150px !important;
    min-height: 150px !important;
    background: #333;
    border-radius: 8px;
    overflow: visible !important;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    font-size: 3rem;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ===================================
   NEWS / ARTICLES SECTION
   =================================== */

.news-section {
    background: var(--light-gray);
}

.section-intro {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-red);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.news-content h3 {
    margin: 0.5rem 0;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.news-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-tags .tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.loading-text {
    text-align: center;
    color: var(--gray);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Lightbox pentru imagini mărite */
.lightbox {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    color: var(--white);
    font-size: 3.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3001;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s ease;
}

.lightbox-caption {
    color: var(--white);
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    max-width: 80%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Events Section */
.events {
    background: var(--light-color);
}

.events-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Container pentru articolele dinamice */
#dynamicArticlesContainer {
    display: contents;
}

#dynamicArticlesContainer:empty {
    display: none;
}

/* Article cards cu imagini */
.article-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.article-card .article-image {
    width: 200px;
    min-width: 200px;
    overflow: hidden;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-date {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Imagine inline în articole */
.article-inline-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0.5rem 0;
}

/* Container pentru articole dinamice în events grid */
#dynamicArticlesContainer {
    display: contents;
}

@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }
    
    .article-card .article-image {
        width: 100%;
        height: 180px;
    }
    
    .article-inline-image {
        max-height: 200px;
    }
}

.event-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.event-card.event-featured {
    background: linear-gradient(135deg, rgba(205, 28, 34, 0.02) 0%, var(--white) 100%);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.event-date-badge {
    background: linear-gradient(135deg, var(--dark-color), var(--accent-color));
    color: var(--white);
    padding: 0.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.event-day {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-content {
    padding: 0.75rem 1rem;
    flex: 1;
}

.event-content h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    line-height: 1.2;
    font-weight: 600;
}

.event-details {
    margin-bottom: 1rem;
}

.event-details p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.event-time,
.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-description {
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.event-btn:hover {
    background: #e62129;
    transform: translateX(5px);
    box-shadow: var(--shadow-red);
}

.events-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.events-cta p {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.subscribe-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.subscribe-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

.toggle-events-btn,
.toggle-section-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 2rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.toggle-events-btn:hover,
.toggle-section-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

.toggle-events-btn #toggleIcon,
.toggle-section-btn .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.toggle-events-btn.active #toggleIcon,
.toggle-section-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo p {
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-text {
    text-align: right;
}

.footer-text p {
    margin: 0.3rem 0;
    opacity: 0.8;
    text-align: center;
    text-indent: 0;
}

.redirectioneaza-link {
    margin-top: 1rem;
    opacity: 1 !important;
}

.redirectioneaza-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.redirectioneaza-link a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 0 !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        margin: 0 !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        transition: left 0.4s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-menu li:first-child {
        border-top: none;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .nav-menu a {
        padding: 0.7rem 0 !important;
        font-size: 1rem;
        margin: 0 !important;
        display: block;
    }

    .nav-menu a::after {
        left: 0;
        transform: none;
    }

    .nav-menu a:hover::after {
        width: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo {
        gap: 10px;
    }

    .logo img {
        height: 50px;
    }

    .org-name {
        font-size: 1.1rem;
    }

    .hero {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .about-highlights {
        flex-direction: column;
        gap: 1.5rem;
    }

    .activities-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-highlight {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-image {
        height: 250px;
    }

    .albums-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .album-info h3 {
        font-size: 1.1rem;
        text-align: center !important;
    }

    .album-info p {
        font-size: 0.85rem;
        text-align: center !important;
    }

    .modal-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .modal-content {
        width: 95%;
        padding: 1rem;
        margin: 5% auto;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .close-modal {
        font-size: 2rem;
        top: 0.25rem;
        right: 1rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-date-badge {
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .event-day {
        font-size: 1.5rem;
    }

    .event-month {
        font-size: 0.7rem;
    }

    .event-content h3 {
        font-size: 1.1rem;
    }

    .toggle-events-btn,
    .toggle-section-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-text {
        text-align: center;
    }

    .footer-logo img {
        height: 50px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .section {
        padding: 2rem 0;
    }

    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section p {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .cta-button {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .nav-menu {
        padding: 5rem 1.5rem 1.5rem;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.85rem 0;
    }

    .logo img {
        height: 40px;
    }

    .org-name {
        font-size: 0.85rem;
    }

    .about-text p,
    .project-content p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .highlight-item h3,
    .activity-card h3,
    .benefit-card h3 {
        font-size: 1rem;
    }

    .highlight-item p,
    .activity-card p,
    .benefit-card p {
        font-size: 0.85rem;
    }

    .activities-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .activity-card,
    .benefit-card {
        padding: 1.25rem;
    }

    .albums-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }

    .album-card {
        max-width: 100%;
    }

    .modal-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .modal-content {
        padding: 0.75rem;
    }

    .event-content h3 {
        font-size: 1rem;
    }

    .event-description {
        font-size: 0.9rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
}

/* --- UX Improvements --- */



/* 2. Active Menu State */
.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a.active::after {
    width: 100%;
}

/* 3. Micro-animations for buttons */
.cta-button:active,
.social-link:active,
.view-album-btn:active {
    transform: scale(0.95);
}

/* 4. Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 2rem;
    transition: background 0.3s;
    user-select: none;
    z-index: 3001;
}

.lightbox-nav:hover {
    background: rgba(205, 28, 34, 0.8);
}

.lightbox-prev {
    left: 20px;
    border-radius: 0 5px 5px 0;
}

.lightbox-next {
    right: 20px;
    border-radius: 5px 0 0 5px;
}

/* Loading optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

img.loaded {
    opacity: 1;
}

/* Admin Button in Footer - Small version */
.admin-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.4;
}

.admin-btn-small:hover {
    background: rgba(205, 28, 34, 0.2);
    color: var(--accent-color);
    border-color: rgba(205, 28, 34, 0.3);
    opacity: 1;
}

/* ===================== */
/* DARK MODE OVERRIDES   */
/* ===================== */

[data-theme="dark"] header {
    background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 50%, #1f1f1f 100%) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8) !important;
    border-bottom: 2px solid #ff6b6f !important;
}

[data-theme="dark"] .navbar {
    background: transparent !important;
}

[data-theme="dark"] .org-name {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 107, 111, 0.3);
}

[data-theme="dark"] .nav-menu a {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .nav-menu a:hover {
    color: #ff6b6f !important;
}

[data-theme="dark"] section {
    background: linear-gradient(180deg, #0f0f0f 0%, #141414 50%, #0f0f0f 100%) !important;
}

[data-theme="dark"] section:nth-child(even) {
    background: linear-gradient(180deg, #161616 0%, #1c1c1c 50%, #161616 100%) !important;
}

/* Dark mode - Override pentru secțiuni specifice */
[data-theme="dark"] .about,
[data-theme="dark"] .gallery,
[data-theme="dark"] .projects {
    background: linear-gradient(180deg, #0f0f0f 0%, #151515 50%, #0f0f0f 100%) !important;
}

[data-theme="dark"] .activities,
[data-theme="dark"] .events {
    background: linear-gradient(180deg, #141414 0%, #1a1a1a 50%, #141414 100%) !important;
}

[data-theme="dark"] .highlight-item,
[data-theme="dark"] .activity-card {
    background: #1e1e1e !important;
    border: 1px solid #333 !important;
}

[data-theme="dark"] .section-title {
    color: #ffffff !important;
}

[data-theme="dark"] .section-subtitle {
    color: #c0c0c0 !important;
}

[data-theme="dark"] p {
    color: #d0d0d0 !important;
}

[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .album-card,
[data-theme="dark"] .event-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .benefit-card {
    background: #1a1a1a !important;
    border-color: #333333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .album-info h3,
[data-theme="dark"] .event-content h3,
[data-theme="dark"] .project-content h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .album-info p,
[data-theme="dark"] .event-description,
[data-theme="dark"] .project-content p {
    color: #b0b0b0 !important;
}

[data-theme="dark"] .album-date,
[data-theme="dark"] .photo-count {
    color: #ff6b6f !important;
}

[data-theme="dark"] footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%) !important;
}

[data-theme="dark"] .footer-section h3,
[data-theme="dark"] .footer-section h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-section li,
[data-theme="dark"] .footer-section a {
    color: #c0c0c0 !important;
}

[data-theme="dark"] .footer-section a:hover {
    color: #ff6b6f !important;
}

[data-theme="dark"] .modal-content {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-title {
    color: var(--text-primary);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}

[data-theme="dark"] .hero-overlay {
    background: transparent !important;
}

[data-theme="dark"] .hero-content h1 {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 107, 111, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .hero-subtitle {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .tag {
    background: rgba(255, 74, 79, 0.15);
    color: var(--accent-color);
}

[data-theme="dark"] .cta-button {
    background: var(--accent-color);
    color: var(--white);
}

[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .social-link:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Dark mode - X-uri albe */
[data-theme="dark"] .close-modal,
[data-theme="dark"] .lightbox-close {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .close-modal:hover,
[data-theme="dark"] .lightbox-close:hover {
    color: #ff6b6f !important;
}

/* Dark mode - Modal și Lightbox */
[data-theme="dark"] .modal-content {
    background: linear-gradient(145deg, #1a1a1a 0%, #252525 100%) !important;
    border: 1px solid #333 !important;
}

[data-theme="dark"] .modal-title {
    color: #ffffff !important;
}

[data-theme="dark"] #lightbox {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Dark mode - Header - UNIFICAT MAI SUS */

/* Dark mode - Secțiuni cu gradient subtil - UNIFICAT MAI SUS */

/* Dark mode - Footer cu gradient */
[data-theme="dark"] footer {
    background: linear-gradient(180deg, #0d0d0d 0%, #1a1a1a 50%, #0d0d0d 100%) !important;
    border-top: 1px solid #333 !important;
}

/* Dark mode - Carduri cu border vizibil */
[data-theme="dark"] .album-card,
[data-theme="dark"] .event-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .benefit-card {
    border: 1px solid #333 !important;
}

/* Tranziții smooth pentru toate elementele */
header, section, footer, .album-card, .event-card, .project-card, 
.benefit-card, .modal-content, .nav-menu a, .tag, .cta-button {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}