/*
Theme Name: MedScholar - مداسکالر
Theme URI: https://medscholar.ir
Author: MedScholar Team
Author URI: https://medscholar.ir
Description: A luxurious single-page WordPress theme designed for scientific congress management. Features include congress listings, FAQ, contact forms, and elegant RTL design for Persian language.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medscholar
Tags: one-column, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, rtl-language-support, theme-options, translation-ready
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #c8a45a;
    --accent-light: #d4b76a;
    --accent-dark: #a88a3a;
    --gold-gradient: linear-gradient(135deg, #c8a45a 0%, #f0d78c 50%, #c8a45a 100%);
    --dark-gradient: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    --text-light: #e8e8e8;
    --text-muted: #a0a0b0;
    --white: #ffffff;
    --card-bg: rgba(26, 26, 46, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(200, 164, 90, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(200, 164, 90, 0.3);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-main: 'Vazirmatn', 'Tahoma', sans-serif;
    --font-heading: 'Vazirmatn', 'Tahoma', sans-serif;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

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

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

body {
    font-family: var(--font-main);
    background: var(--primary);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent-light);
}

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

ul, ol {
    list-style: none;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.site-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--dark-gradient);
}

.site-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(200, 164, 90, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(200, 164, 90, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 60% 80%, rgba(200, 164, 90, 0.06) 0%, transparent 45%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatParticle linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 20s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 25s; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-duration: 18s; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-duration: 22s; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-duration: 28s; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-duration: 19s; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-duration: 24s; animation-delay: 2s; }
.particle:nth-child(8) { left: 80%; animation-duration: 21s; animation-delay: 4s; }
.particle:nth-child(9) { left: 90%; animation-duration: 26s; animation-delay: 1s; }
.particle:nth-child(10) { left: 5%; animation-duration: 23s; animation-delay: 3s; }

@keyframes floatParticle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.site-header.scrolled .site-logo img {
    height: 40px;
}

.site-logo .site-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-navigation a {
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--accent);
    background: rgba(200, 164, 90, 0.1);
}

.main-navigation .cta-btn {
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 25px;
    margin-right: 10px;
}

.main-navigation .cta-btn:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
    color: var(--primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 30px 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 2;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-primary:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
    color: var(--primary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-secondary:hover {
    background: rgba(200, 164, 90, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
    color: var(--accent);
}

/* Hero decorative elements */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-decoration-1 {
    width: 400px;
    height: 400px;
    background: rgba(200, 164, 90, 0.08);
    top: 10%;
    right: -5%;
}

.hero-decoration-2 {
    width: 300px;
    height: 300px;
    background: rgba(200, 164, 90, 0.05);
    bottom: 10%;
    left: -5%;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.section {
    padding: 100px 30px;
    position: relative;
}

.section-inner {
    max-width: 1300px;
    margin: 0 auto;
}

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

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--accent);
    vertical-align: middle;
    margin: 0 12px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ============================================
   SERVICES / KEY ACTIVITIES
   ============================================ */
.services-section {
    background: linear-gradient(180deg, transparent 0%, rgba(200, 164, 90, 0.03) 50%, transparent 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.1);
    border: 1px solid var(--glass-border);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gold-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

.service-card:hover .service-icon svg {
    fill: var(--primary);
}

.service-card:hover .service-icon .icon-text {
    color: var(--primary);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--accent);
    transition: var(--transition);
}

.service-icon .icon-text {
    color: var(--accent);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--white);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.9;
}

/* ============================================
   CONGRESS SIDEBAR
   ============================================ */
.congress-section {
    position: relative;
}

.congress-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.congress-main {
    flex: 0 0 30%;
    max-width: 30%;
}

.congress-sidebar {
    flex: 0 0 70%;
    max-width: 70%;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.sidebar-widget-header {
    padding: 20px 24px;
    background: rgba(200, 164, 90, 0.1);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
}

.sidebar-widget-body {
    padding: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.sidebar-widget-body::-webkit-scrollbar {
    width: 4px;
}

.sidebar-widget-body::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 2px;
}

.congress-item {
    padding: 14px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    background: var(--glass-bg);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.congress-item:hover {
    border-color: var(--glass-border);
    background: rgba(200, 164, 90, 0.08);
}

.congress-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.6;
}

.congress-item-date {
    font-size: 0.78rem;
    color: var(--accent);
}

.congress-item-city {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.congress-item-city svg {
    opacity: 0.6;
}

.congress-item-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: inline-block;
}

.congress-item-link:hover {
    color: var(--accent);
}

.congress-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.congress-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Congress main content area */
.congress-info-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    backdrop-filter: blur(10px);
}

.congress-info-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.congress-info-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 20px;
}

.congress-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.congress-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--border-radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.congress-feature-item .feature-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.15);
    flex-shrink: 0;
}

.congress-feature-item .feature-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

.congress-feature-item span {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-light);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: linear-gradient(180deg, transparent 0%, rgba(200, 164, 90, 0.03) 50%, transparent 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(200, 164, 90, 0.4);
}

.faq-item.active {
    border-color: var(--accent);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.faq-question h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    flex: 1;
    padding-left: 16px;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.1);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-toggle svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    background: var(--gold-gradient);
    border-color: transparent;
}

.faq-item.active .faq-toggle svg {
    fill: var(--primary);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 2;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.contact-form-wrapper h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.contact-form-wrapper .form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--gold-gradient);
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    margin-top: 8px;
}

.form-submit:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* Contact Info */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.contact-info-card:hover {
    border-color: var(--accent);
    transform: translateX(-5px);
}

.contact-info-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.1);
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.contact-info-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-info-text a:hover {
    color: var(--accent);
}

/* Map placeholder */
.contact-map {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.8) brightness(0.7) contrast(1.1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: rgba(10, 10, 20, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 60px 30px 30px;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand .footer-logo img {
    height: 40px;
}

.footer-brand .footer-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.9;
    max-width: 350px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

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

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold-gradient);
    border-color: transparent;
}

.footer-social a:hover svg {
    fill: var(--primary);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-enamad {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.footer-enamad img,
.footer-enamad a img {
    max-height: 80px;
    width: auto;
    opacity: 0.9;
    transition: var(--transition);
    border-radius: 8px;
}

.footer-enamad img:hover,
.footer-enamad a img:hover {
    opacity: 1;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

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

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold-gradient);
    box-shadow: var(--shadow-gold);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

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

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .congress-layout {
        flex-direction: column-reverse;
    }

    .congress-main {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .congress-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        position: static;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

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

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

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

    /* ---- MOBILE NAV: Slide-in from right ---- */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: rgba(15, 15, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--glass-border);
        align-items: stretch;
        gap: 2px;
        overflow-y: auto;
        z-index: 1001;
    }

    .main-navigation.active {
        right: 0;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-navigation a {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.05rem;
        border-radius: var(--border-radius);
        margin-bottom: 2px;
        min-height: 48px; /* Apple HIG minimum touch target */
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: transparent;
    }

    .main-navigation .cta-btn {
        margin-top: 16px;
        text-align: center;
        justify-content: center;
        min-height: 52px;
    }

    .menu-toggle {
        display: flex;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle span {
        width: 24px;
    }

    /* ---- SERVICES: 2 columns on tablet, 1 on small ---- */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .service-card {
        padding: 28px 18px;
    }

    .service-icon {
        width: 52px;
        height: 52px;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-desc {
        font-size: 0.85rem;
    }

    /* ---- CONGRESS: Full-width cards on mobile ---- */
    .congress-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .congress-feature-item {
        padding: 12px 10px;
    }

    .congress-feature-item .feature-icon {
        width: 36px;
        height: 36px;
    }

    .congress-feature-item span {
        font-size: 0.8rem;
    }

    .congress-info-card {
        padding: 24px 18px;
    }

    .congress-info-card h2 {
        font-size: 1.3rem;
    }

    .congress-info-card p {
        font-size: 0.9rem;
    }

    /* Congress sidebar full-width on mobile */
    .sidebar-widget-body {
        max-height: 50vh;
    }

    .congress-item {
        padding: 14px 16px;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .congress-item-title {
        font-size: 0.88rem;
    }

    .congress-item-link {
        font-size: 0.75rem;
        padding: 4px 12px;
        align-self: flex-start;
    }

    /* ---- FORM: Single column ---- */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    .contact-info-card {
        padding: 16px;
        gap: 14px;
    }

    .contact-map {
        height: 160px;
    }

    /* ---- FAQ: Mobile-friendly ---- */
    .faq-question {
        padding: 18px 16px;
        min-height: 56px;
    }

    .faq-question h4 {
        font-size: 0.92rem;
    }

    .faq-toggle {
        width: 36px;
        height: 36px;
    }

    .faq-answer-inner {
        padding: 0 16px 16px;
        font-size: 0.88rem;
    }

    /* ---- FOOTER: Mobile ---- */
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
    }

    /* ---- BUTTONS: Full-width on mobile ---- */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        min-height: 52px;
    }

    /* ---- INPUT: Prevent iOS zoom ---- */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 14px 16px;
        min-height: 48px;
    }

    .form-submit {
        padding: 16px;
        font-size: 1rem;
        min-height: 52px;
    }

    /* ---- HEADER: Compact on mobile ---- */
    .header-inner {
        padding: 0 16px;
    }

    .site-logo img {
        height: 38px;
    }

    .site-logo .site-title {
        font-size: 1.2rem;
    }

    /* ---- STATS: 2-col grid ---- */
    .stats-bar {
        padding: 30px 16px;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 14px 8px;
    }

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

    .stat-label {
        font-size: 0.8rem;
    }

    /* ---- SECTION: Tighter padding ---- */
    .section {
        padding: 50px 16px;
    }

    .section-header {
        margin-bottom: 32px;
    }

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

    .section-desc {
        font-size: 0.9rem;
    }

    .section-label {
        font-size: 0.72rem;
    }

    .section-label::before,
    .section-label::after {
        width: 18px;
    }

    /* ---- CONGRESS TABS: Larger buttons ---- */
    .congress-tabs {
        gap: 8px;
        margin-bottom: 24px;
    }

    .congress-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-height: 48px;
        flex: 1;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .congress-tab svg {
        width: 18px;
        height: 18px;
    }

    /* ---- BACK TO TOP: Higher for bottom nav ---- */
    .back-to-top {
        bottom: 76px;
        left: 16px;
        width: 44px;
        height: 44px;
    }

    /* ---- FOOTER: Bottom padding for bottom nav ---- */
    .site-footer {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
        line-height: 1.4;
    }

    .hero-section {
        padding: 90px 16px 50px;
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 6px 16px;
    }

    .section {
        padding: 40px 14px;
    }

    /* Services: Single column on very small screens */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .service-card-bg-icon {
        width: 50px;
        height: 50px;
    }

    /* Congress features: 2 columns still OK */
    .congress-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .congress-tab {
        font-size: 0.82rem;
        padding: 10px 14px;
    }

    .contact-form-wrapper {
        padding: 20px 14px;
    }

    .congress-info-card {
        padding: 24px 16px;
    }

    /* Hide floating illustrations on small phones */
    .floating-illustrations {
        display: none;
    }

    /* Stat numbers smaller */
    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Footer links: larger touch targets */
    .footer-links ul li a {
        padding: 6px 0;
        display: inline-block;
        min-height: 44px;
        line-height: 44px;
    }

    .footer-social a {
        width: 48px;
        height: 48px;
    }

    /* Sidebar: Collapsible on mobile */
    .sidebar-widget-header {
        padding: 14px 16px;
        min-height: 52px;
        cursor: pointer;
    }

    .sidebar-widget-header h3 {
        font-size: 0.92rem;
    }
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    text-align: center;
}

.loading-logo img {
    width: 80px;
    margin-bottom: 20px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 2px;
    animation: loadingBar 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

@keyframes loadingBar {
    0% { width: 0; margin-right: auto; margin-left: 0; }
    50% { width: 70%; margin-right: auto; margin-left: auto; }
    100% { width: 0; margin-right: 0; margin-left: auto; }
}

/* ============================================
   FORM NOTIFICATIONS
   ============================================ */
.form-notification {
    padding: 14px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-notification.success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    display: block;
}

.form-notification.error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    display: block;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 0;
}

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   FLOATING SCIENTIFIC ILLUSTRATIONS
   ============================================ */
.floating-illustrations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-item {
    position: absolute;
    opacity: 0.6;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.float-item svg {
    width: 100%;
    height: auto;
}

/* Individual float animations */
.float-dna {
    width: 60px;
    animation: floatDNA 18s ease-in-out infinite;
}

.float-microscope {
    width: 75px;
    animation: floatMicroscope 22s ease-in-out infinite;
}

.float-atom {
    width: 80px;
    animation: floatAtom 20s ease-in-out infinite;
}

.float-book {
    width: 90px;
    animation: floatBook 16s ease-in-out infinite;
}

.float-certificate {
    width: 65px;
    animation: floatCertificate 24s ease-in-out infinite;
}

.float-molecule {
    width: 70px;
    animation: floatMolecule 19s ease-in-out infinite;
}

.float-gradcap {
    width: 80px;
    animation: floatGradcap 21s ease-in-out infinite;
}

.float-flask {
    width: 55px;
    animation: floatFlask 17s ease-in-out infinite;
}

.float-stethoscope {
    width: 60px;
    animation: floatStethoscope 23s ease-in-out infinite;
}

@keyframes floatDNA {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-25px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-30px) rotate(2deg); }
}

@keyframes floatMicroscope {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(-4deg); }
    66% { transform: translateY(-35px) rotate(3deg); }
}

@keyframes floatAtom {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.05); }
}

@keyframes floatBook {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40% { transform: translateY(-20px) rotate(3deg); }
    80% { transform: translateY(-30px) rotate(-2deg); }
}

@keyframes floatCertificate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-15px) rotate(-5deg); }
    70% { transform: translateY(-28px) rotate(4deg); }
}

@keyframes floatMolecule {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(6deg); }
}

@keyframes floatGradcap {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    35% { transform: translateY(-18px) rotate(-3deg); }
    70% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes floatFlask {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(4deg); }
    75% { transform: translateY(-28px) rotate(-3deg); }
}

@keyframes floatStethoscope {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(-5deg); }
}

/* Section float illustrations (decorative side elements) */
.section-float-illustration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}

.section-float-illustration svg {
    width: 40px;
    height: auto;
}

.section-float-left {
    left: 10px;
}

.section-float-right {
    right: 10px;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(200, 164, 90, 0.08) 0%, rgba(26, 26, 46, 0.9) 50%, rgba(200, 164, 90, 0.08) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(200, 164, 90, 0.05) 0%, transparent 70%);
}

.stats-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 164, 90, 0.1);
    border: 1px solid var(--glass-border);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   SERVICE CARD BACKGROUND ICON
   ============================================ */
.service-card-bg-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 90px;
    height: 90px;
    opacity: 0.5;
    pointer-events: none;
    color: var(--accent);
}

.service-card-bg-icon svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   CONGRESS CARD DECORATION
   ============================================ */
.congress-card-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    pointer-events: none;
    opacity: 0.3;
}

.congress-card-decoration svg {
    width: 100%;
    height: 100%;
    animation: slowSpin 30s linear infinite;
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   CONGRESS ITEM - CLICKABLE & ENHANCED
   ============================================ */
.congress-item {
    padding: 14px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    background: var(--glass-bg);
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.congress-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
}

.congress-item:hover {
    border-color: var(--accent);
    background: rgba(200, 164, 90, 0.08);
    transform: translateX(-4px);
}

.congress-item:hover::after {
    opacity: 1;
}

.congress-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
    line-height: 1.6;
    transition: var(--transition);
}

.congress-item:hover .congress-item-title {
    color: var(--accent);
}

.congress-item-date {
    font-size: 0.78rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.congress-item-date::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c8a45a'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.congress-item-link {
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(200, 164, 90, 0.1);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-decoration: none;
}

.congress-item-link:hover {
    background: var(--gold-gradient);
    color: var(--primary);
    border-color: transparent;
    transform: scale(1.05);
}

.congress-item-link svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.congress-item-link:hover svg {
    transform: translateX(3px);
}

/* Congress item - whole item clickable */
.congress-item-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ============================================
   SIDEBAR WIDGET FOOTER
   ============================================ */
.sidebar-widget-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.sidebar-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 25px;
    background: rgba(200, 164, 90, 0.08);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-view-all:hover {
    background: var(--gold-gradient);
    color: var(--primary);
    border-color: transparent;
}

.sidebar-view-all svg {
    fill: currentColor;
    transition: transform 0.3s ease;
}

.sidebar-view-all:hover svg {
    transform: translateX(3px);
}

/* ============================================
   RESPONSIVE - NEW ELEMENTS
   ============================================ */
@media (max-width: 1024px) {
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-illustrations .float-item {
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    .floating-illustrations .float-item {
        opacity: 0.15;
    }

    .float-dna, .float-microscope, .float-atom,
    .float-book, .float-certificate, .float-molecule,
    .float-gradcap, .float-flask, .float-stethoscope {
        width: 40px;
    }

    .section-float-illustration {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-illustrations {
        display: none;
    }
}

/* ============================================
   CONGRESS TABS
   ============================================ */
.congress-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.congress-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}

.congress-tab svg {
    fill: currentColor;
    transition: var(--transition);
}

.congress-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.congress-tab.active {
    background: var(--gold-gradient);
    color: var(--primary);
    border-color: transparent;
    box-shadow: var(--shadow-gold);
}

.congress-tab.active svg {
    fill: var(--primary);
}

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

.congress-tab-content.active {
    display: block;
    animation: fadeInTab 0.4s ease;
}

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

/* ============================================
   MOBILE BOTTOM NAVIGATION (floating)
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    justify-content: space-around;
    align-items: center;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    border-radius: 10px;
    min-height: 48px;
    min-width: 48px;
    justify-content: center;
}

.mobile-bottom-nav a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:active {
    color: var(--accent);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}
