/* ==========================================================================
   C.I.I.M. EurAsiaMed - Modern Design System (style.css)
   ========================================================================== */

/* Google Fonts Setup */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --primary: #050b14;        /* Very deep navy, close to black */
    --secondary: #0d1627;      /* Secondary dark blue for section wrappers */
    --accent-gold: #c5a880;    /* Champagne gold accent for links, active states, borders */
    --accent-gold-hover: #b09167;
    --accent-green: #008a00;   /* Institutional Italian Green */
    --accent-red: #e70000;     /* Institutional Italian Red */
    
    /* Neutral Colors */
    --text-main: #f3f4f6;      /* Off-white main text */
    --text-muted: #9ca3af;     /* Muted grey for subtexts */
    --text-dark: #1f2937;      /* Dark text if needed (e.g. inside light modals) */
    
    /* Layout Properties */
    --header-height: 80px;
    --border-radius: 12px;
    --glass-bg: rgba(13, 22, 39, 0.65);
    --glass-border: rgba(197, 168, 128, 0.15);
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-inset: inset 0 0 12px rgba(255, 255, 255, 0.03);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, #0e1e38 0%, var(--primary) 70%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
}

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

/* Layout Containers */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Header & Navigation */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 11, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    background: rgba(5, 11, 20, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
}

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

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.05em;
    font-family: 'Playfair Display', serif;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Navigation Links & Dropdowns */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    height: 100%;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    padding: 0.5rem 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--accent-gold);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown styling */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background: #0b111e;
    border: 1px solid #1e293b;
    border-top: 2px solid var(--accent-gold);
    border-radius: 4px;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1010;
    list-style: none;
}

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

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-link {
    display: block;
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    color: #ffffff;
    background: #1e293b;
}

/* Language and Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.lang-switch-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary);
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #0b111e;
    border: 1px solid #1e293b;
    border-top: 2px solid var(--accent-gold);
    border-radius: 4px;
    padding: 0.35rem 0;
    margin: 0;
    list-style: none;
    min-width: 90px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1020;
}

.lang-dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lang-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-dropdown-menu a:hover {
    color: #ffffff;
    background: #1e293b;
}

.lang-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.btn-membership {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-membership:hover {
    background: var(--accent-gold);
    color: var(--primary);
}

.mobile-actions-item {
    display: none;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Main Content Area */
main {
    flex-grow: 1;
    margin-top: var(--header-height);
    position: relative;
}

/* Section Transitions */
.page-section {
    display: none;
    animation: fadeInUp 0.6s forwards;
    padding: 4rem 0;
}

#section-home {
    padding: 0;
}

.page-section.active {
    display: block;
}

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

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 2rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(5, 11, 20, 0.75), rgba(5, 11, 20, 0.95)), 
                url('assets/hero_bg_corporate.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1;
    transform: scale(1.05);
    animation: zoomOutBg 10s ease-out forwards;
}

@keyframes zoomOutBg {
    to {
        transform: scale(1);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    z-index: 10;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-btn-group {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

/* Italian flag trim */
.italy-bar {
    display: flex;
    width: 120px;
    height: 4px;
    margin: 1.5rem auto;
    border-radius: 2px;
    overflow: hidden;
}

.italy-bar span {
    flex: 1;
    height: 100%;
}

.italy-bar .green { background-color: var(--accent-green); }
.italy-bar .white { background-color: #ffffff; }
.italy-bar .red { background-color: var(--accent-red); }

.turkey-bar {
    display: flex;
    width: 120px;
    height: 4px;
    margin: 1.5rem auto;
    border-radius: 2px;
    overflow: hidden;
}

.turkey-bar span {
    flex: 1;
    height: 100%;
}

.turkey-bar .red { background-color: var(--accent-red); }
.turkey-bar .white { background-color: #ffffff; }

/* Quick Info Section on Homepage */
.homepage-features {
    padding: 5rem 0;
    background: var(--secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 168, 128, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feature-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card .read-more:hover {
    color: var(--text-main);
}

/* Standard Section Layouts */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

/* About Us Section Specifics */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-main);
}

.about-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
}

/* Board Members Section */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.board-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.board-card.has-bio {
    cursor: pointer;
}

.board-card:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 168, 128, 0.4);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.board-card.has-bio:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 12px 24px rgba(197, 168, 128, 0.15);
}

.board-card.has-bio:hover .bio-link {
    opacity: 1 !important;
    text-decoration: underline;
}

.board-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-gold) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.25rem;
    color: var(--primary);
    font-weight: 700;
    border: 2px solid var(--glass-border);
    font-family: 'Playfair Display', serif;
    overflow: hidden; /* Hide image corners when cropped circular */
}

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

.board-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.board-role {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.board-company {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Jurisdiction Countries Section */
.jurisdiction-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 400px;
}

.search-input {
    width: 100%;
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1.25rem 0.75rem 2.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.15);
}

.search-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.country-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.country-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.03);
}

.country-name {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
}

.btn-download-flag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--accent-gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-download-flag:hover {
    background: var(--accent-gold);
    color: var(--primary);
    border-color: var(--accent-gold);
}

/* What We Do & Events Filtering */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--accent-gold);
    color: var(--primary);
    border-color: var(--accent-gold);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.event-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: var(--transition);
}

.event-card:hover {
    border-color: rgba(197, 168, 128, 0.3);
    transform: translateX(5px);
}

.event-date-badge {
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-date-month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.event-date-year {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.event-details {
    flex-grow: 1;
}

.event-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Membership & Downloads */
.membership-grid {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.membership-info h3 {
    font-size: 1.75rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.membership-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.membership-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.membership-list i {
    color: var(--accent-gold);
    margin-top: 0.25rem;
}

.downloads-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-main);
    height: fit-content;
}

.downloads-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.download-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.download-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.download-btn:hover {
    border-color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.05);
    color: var(--accent-gold);
}

.download-btn i {
    font-size: 1.1rem;
}

/* Content Hub / News Portal */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-main);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.85);
}

.news-body {
    padding: 1.75rem;
}

.news-tag {
    display: inline-block;
    background: rgba(197, 168, 128, 0.1);
    color: var(--accent-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.news-excerpt {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.news-author {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-read-btn {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-gold);
}

/* Contact Us Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(197, 168, 128, 0.1);
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.contact-info-text p {
    font-size: 0.95rem;
}

.map-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-main);
    height: 300px;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) brightness(95%);
}

.contact-form-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-main);
}

.contact-form-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-gold);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.form-checkbox input {
    margin-top: 0.25rem;
}

.form-checkbox label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Footer styling */
footer {
    background: #03060c;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem 0;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo-col {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .footer-logo-col {
        grid-column: span 1;
    }
}

.footer-logo-desc {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    max-width: 350px;
}

.footer-title {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex-grow: 1;
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.65rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--accent-gold);
}

.newsletter-btn {
    background: var(--accent-gold);
    color: var(--primary);
    border: none;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: var(--accent-gold-hover);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-gold);
    color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a:hover {
    color: var(--text-main);
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 6, 12, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 1.5rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    position: relative;
    padding: 2.5rem;
    box-shadow: var(--shadow-main);
    transform: scale(0.9);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(5, 11, 20, 0.95) !important;
    }
    
    body.menu-open {
        overflow: hidden;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(5, 11, 20, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 6rem 2rem 4rem 2rem;
        gap: 1.25rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        overflow-y: auto;
        z-index: 999;
    }
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-item {
        height: auto;
        width: 100%;
        text-align: center;
        flex-direction: column;
        align-items: center;
        border-bottom: none;
    }
    .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 0;
        width: auto;
        justify-content: center;
        color: rgba(255, 255, 255, 0.85);
    }
    .nav-link::after {
        display: none; /* Hide hover line on mobile */
    }
    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.03);
        padding: 0.5rem 0;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .nav-item:hover .dropdown-menu {
        display: block;
    }
    .dropdown-link {
        text-align: center;
        font-size: 0.95rem;
        padding: 0.5rem 0;
        color: rgba(255, 255, 255, 0.6);
    }
    .dropdown-link:hover {
        color: var(--accent-gold);
        background: transparent;
        padding-left: 0;
    }
    .mobile-toggle {
        display: flex;
    }
    .header-actions {
        display: none; /* Hide language switch / membership on mobile or move inside menu */
    }
    .membership-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .event-card {
        flex-direction: column;
        align-items: stretch;
    }
    .event-date-badge {
        width: 100%;
    }
    .mobile-actions-item {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .mobile-lang-selector {
        display: flex;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    .mobile-lang-btn {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
        transition: var(--transition);
    }
    .mobile-lang-btn:hover, .mobile-lang-btn:focus {
        border-color: var(--accent-gold);
        color: var(--accent-gold);
    }
    .nav-link i {
        transition: transform 0.3s ease;
    }
    .nav-link i.rotate-180 {
        transform: rotate(180deg) !important;
    }
    .dropdown-menu.open {
        display: block !important;
    }
}

/* Newsletter Grouping by Year styles */
.newsletter-year-section {
    margin-bottom: 3.5rem;
}

.newsletter-year-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    color: var(--accent-gold);
    border-bottom: 1px solid rgba(197, 168, 128, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 1.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: block;
}

/* Scroll Offset for SPA Anchor Navigation */
#board-members-container, 
#jurisdiction-countries-container,
#membership-resources,
#press-publications-container,
#newsletter-archive-container {
    scroll-margin-top: 120px;
}

/* Modal Biography Styling */
#modal-bio-body p {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    line-height: 1.7;
}
#modal-bio-body strong {
    color: var(--accent-gold);
    font-weight: 500;
}
#modal-bio-body h4 {
    font-size: 0.95rem;
    color: var(--accent-gold);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.25rem;
}
#modal-bio-body ul {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    list-style-type: none;
}
#modal-bio-body li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
    line-height: 1.6;
}
#modal-bio-body li::before {
    content: "•";
    color: var(--accent-gold);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* President's Welcome Section */
.welcome-section {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(3, 6, 12, 0) 0%, rgba(3, 6, 12, 0.4) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.welcome-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.welcome-profile-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-main);
    position: sticky;
    top: 100px;
}

.welcome-avatar-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.welcome-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-name {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.welcome-title {
    font-size: 0.85rem;
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-italy-flag {
    display: flex;
    justify-content: center;
    gap: 0px;
    height: 4px;
    width: 60px;
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
}

.welcome-italy-flag span {
    flex: 1;
}

.welcome-italy-flag .green { background-color: #008C45; }
.welcome-italy-flag .white { background-color: #F4F5F0; }
.welcome-italy-flag .red { background-color: #CD212A; }

.welcome-text-col {
    display: flex;
    flex-direction: column;
}

.welcome-heading {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-weight: 600;
}

.welcome-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.welcome-body p strong {
    color: var(--accent-gold);
    font-weight: 500;
}

.welcome-signature {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
}

.welcome-signature .sig-name {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.welcome-signature .sig-title {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Welcome Section */
@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .welcome-profile-col {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .welcome-heading {
        font-size: 2rem;
        text-align: center;
    }
    
    .welcome-text-col .section-subtitle {
        text-align: center;
    }
}

/* Useful Links Page */
.links-group-section {
    position: relative;
}

.links-group-header {
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.25rem;
}

.links-group-title {
    font-size: 1.6rem;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 0.25rem;
}

.flag-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tr-flag-tag { color: #CD212A; }
.it-flag-tag { color: #008C45; }
.bi-flag-tag { color: var(--accent-gold); }

.useful-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

.useful-link-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.useful-link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 160, 89, 0.3); /* gold tint */
    background: rgba(255, 255, 255, 0.03);
}

.link-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.link-domain {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.link-card-icon {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.useful-link-card:hover .link-card-icon {
    color: var(--accent-gold);
}

.link-card-title {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.useful-link-card:hover .link-card-title {
    color: var(--accent-gold);
}

.link-card-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 300;
    margin: 0;
}


