/* ==========================================
   ARSPO Website - CSS Stylesheet
   ========================================== */

/* CSS Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #004c99;
    --accent-color: #00aaff;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-accept {
    padding: 10px 25px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accept:hover {
    background: #218838;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    margin: 0;
    min-width: 250px;
}

/* Header & Navigation */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    display: block;
    width: auto;
    height: auto;
    max-height: 44px;
    max-width: 100%;
}

.logo-link { display: inline-flex; align-items: center; }

@media (max-width: 768px) {
    .logo-img { max-height: 36px; }
}

@media (max-width: 480px) {
    .logo-img { max-height: 32px; }
}

.logo-subtitle {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.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%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-style: italic;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

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

.section-title {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
}

/* Comemorare (In memoriam) */
.comemorare {
    background: var(--bg-light);
}

.comemorare .section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: #556;
    font-size: 1rem;
}

.comemorare-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 34px;
    border-left: 6px solid #111;
}

.comemorare-card + .comemorare-card {
    margin-top: 24px;
}

.comemorare-card p {
    text-align: justify;
}

.comemorare-card strong {
    color: var(--text-dark);
}

.comemorare-author {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Despre Section */
.despre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.despre-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.despre-text p {
    text-align: justify;
    margin-bottom: 15px;
}

.despre-highlight {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Obiective Section */
.obiective-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.obiectiv-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.obiectiv-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.obiectiv-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.obiectiv-card p {
    text-align: center;
    line-height: 1.6;
}

/* Conducere Section */
.conducere-main {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

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

/* Ensure nice alignment: 3 columns on desktop so last two sit on same row */
@media (min-width: 992px) {
    .conducere-grid {
        grid-template-columns: repeat(3, 320px);
        justify-content: center;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }
}

.member-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.member-card.in-memoriam {
    background: #000;
    border: 2px solid #000;
    color: #fff;
}

.member-card.in-memoriam h3 {
    color: #fff;
}

.member-card.in-memoriam .member-role {
    color: var(--accent-color);
}

.member-card.president,
.member-card.secretary {
    max-width: 350px;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 20px;
    border: 5px solid var(--bg-light);
}

.member-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

.subsection-title {
    text-align: center;
    color: var(--primary-color);
    margin: 40px 0 30px;
    font-size: 2rem;
}

/* Afiliere Section */
.afiliere-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.afiliere-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 25px auto 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.afiliere-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.afiliere-title-with-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eadph-logo {
    height: 34px;
    width: auto;
}

.afiliere-text p {
    text-align: justify;
    margin-bottom: 20px;
}

.eadph-representation {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

.eadph-representation h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.eadph-representation ul {
    list-style: none;
    padding: 0;
}

.eadph-representation li {
    padding: 8px 0;
    font-size: 1.05rem;
}

/* Evenimente Section */

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
}

.modal.is-open { display: block; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    padding: 0;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal.is-open .modal-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
}

.modal-title { margin: 0; }

.modal-close {
    position: static;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.modal-body {
    max-height: min(65vh, 700px);
    overflow: auto;
    padding: 24px;
}

.modal-body::-webkit-scrollbar { width: 10px; }
.modal-body::-webkit-scrollbar-track { background: var(--bg-light); border-radius: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 6px; }

.modal-body p { margin-bottom: 14px; text-align: justify; }
.modal-list { padding-left: 18px; }
.modal-list li { margin-bottom: 6px; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 22px;
    background: var(--bg-light);
}

.btn-secondary {
    background: #e6e6e6;
    color: var(--text-dark);
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
}
.evenimente-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.evenimente-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

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

.course-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 100%;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.course-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.course-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.course-date {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.course-title {
    padding: 30px 30px 20px;
    text-align: center;
}

.course-title h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 10px;
    font-weight: 700;
}

.course-subtitle {
    color: var(--primary-color);
    font-size: 1rem;
    font-style: italic;
    margin: 0;
    font-weight: 500;
}

.course-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 30px 20px;
    color: var(--text-dark);
}

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

.location-text {
    font-size: 1.1rem;
}

.course-announcement {
    display: flex;
    justify-content: center;
    padding: 0 30px 20px;
}

.btn-announcement {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-announcement:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #e55a2b, #e0841a);
}

.course-credits {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    margin: 0 30px 25px;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #28a745;
    text-align: center;
}

.credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}

.credits-icon {
    font-size: 1.2rem;
}

.credits-details {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.course-details {
    padding: 0 30px;
}

.details-section {
    margin-bottom: 25px;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lecturers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.lecturer-item {
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lecturer-name {
    font-weight: 600;
    color: var(--text-dark);
}

.lecturer-uni {
    color: var(--primary-color);
    font-style: italic;
    font-weight: 500;
}

.course-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-content strong {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.info-value.free {
    color: #28a745;
}

.course-registration {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px 30px 30px;
    text-align: center;
    border-top: 1px solid #dee2e6;
}

.registration-text {
    margin: 0 0 15px;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.registration-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.registration-link:hover {
    text-decoration: underline;
}

.course-register-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.course-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .course-info-grid {
        grid-template-columns: 1fr;
    }
    
    .course-title h3 {
        font-size: 1.2rem;
    }
}

.event-year {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.event-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.event-location,
.event-date {
    color: #666;
    margin-bottom: 8px;
}

.evenimente-highlight {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.evenimente-highlight h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
}

.achievement-icon {
    font-size: 2.5rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card a {
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--primary-color);
}

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

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

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

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

/* Galerie Media */
.media-gallery .section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: #556;
    font-size: 1rem;
}

.media-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.media-tab-btn {
    padding: 12px 26px;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.media-tab-btn:hover,
.media-tab-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
}

.media-tab-content {
    display: none;
}

.media-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.media-thumb {
    border: none;
    padding: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-thumb img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.media-thumb::after {
    content: '🔍';
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition);
}

.media-thumb:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.media-thumb:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.media-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.media-lightbox.is-open {
    display: flex;
}

.media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

.media-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background: #000;
}

.media-lightbox-image {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: 100%;
    height: auto;
}

.media-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 768px) {
    .media-thumb img {
        height: 160px;
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 20px;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        gap: 1rem;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        height: 500px;
    }

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

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

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

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

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .evenimente-tabs {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

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

    .section {
        padding: 50px 0;
    }

    .comemorare-card {
        padding: 22px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .objetiv-card,
    .member-card,
    .event-card {
        padding: 20px;
    }
}