/* ============================================
   CANADA MAURITIUS TRADE AND INVESTMENT VENTURE
   CUBC-inspired design system
   ============================================ */

:root {
    --red: #c8102e;
    --red-dark: #a00d24;
    --red-light: rgba(200, 16, 46, 0.1);
    --dark: #1a1a1a;
    --dark-2: #222222;
    --dark-3: #2c2c2c;
    --gray-900: #333333;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #cccccc;
    --gray-200: #e0e0e0;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container: 1140px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 15px 40px rgba(0,0,0,0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); line-height: 1.7; color: var(--gray-900); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--red-dark); }
ul { list-style: none; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 400; line-height: 1.3; color: var(--dark); }
h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.8); }

.section-label {
    font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px; color: var(--red);
    margin-bottom: 28px; display: inline-block; position: relative;
}
.section-label::after {
    content: ''; display: block; width: 0; height: 2px;
    background: var(--red); margin-top: 10px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.section-label.line-visible::after { width: 40px; }
.section-heading { max-width: 700px; margin-bottom: 20px; }
.section-intro { max-width: 700px; color: var(--gray-700); font-size: 1.05rem; margin-bottom: 40px; }

/* --- Header --- */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-bottom-color: transparent; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo {
    font-family: var(--font-body); font-size: 1.1rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; color: var(--red);
    text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--dark); font-weight: 400; }
.logo-img { height: 48px; width: auto; display: block; }
.header.scrolled .logo-img { height: 40px; }

.nav > ul { display: flex; gap: 32px; align-items: center; }
.nav a {
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.2px; color: var(--gray-900); position: relative; padding: 4px 0;
    transition: color 0.3s ease;
}
.nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0;
    height: 2px; background: var(--red); transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav a:hover, .nav a.active { color: var(--red); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

/* --- Dropdown nav --- */
.has-dropdown { position: relative; }
.dropdown {
    display: none; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%); background: var(--white);
    border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
    min-width: 210px; padding: 10px 0 6px; z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
    display: block; padding: 11px 20px; font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: var(--gray-900);
    white-space: nowrap; border-bottom: none;
}
.dropdown li a::after { display: none !important; }
.dropdown li a:hover { color: var(--red); background: var(--gray-100); }
.dropdown-arrow { font-size: 0.6rem; margin-left: 3px; vertical-align: middle; }

.header-social { display: flex; gap: 12px; margin-left: 24px; }
.header-social a { color: var(--gray-500); font-size: 0.9rem; }
.header-social a:hover { color: var(--red); }

.language-switch {
    display: flex; align-items: center; gap: 8px; margin-left: 18px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--gray-500);
}
.language-switch a,
.language-switch span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 28px; height: 28px; border: 1px solid var(--gray-200);
    border-radius: 3px; color: var(--gray-700); background: var(--white);
}
.language-switch a:hover,
.language-switch .active {
    border-color: var(--red); color: var(--white); background: var(--red);
}

.menu-toggle {
    display: none; flex-direction: column; justify-content: space-around;
    width: 28px; height: 22px; background: none; border: none; cursor: pointer; z-index: 1001;
}
.menu-toggle span { width: 100%; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.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(6px, -6px); }
.nav-overlay { display: none; }

/* --- Hero --- */
.hero {
    position: relative; min-height: 92vh; margin-top: 80px;
    display: flex; align-items: center; overflow: hidden; background: var(--dark);
}
.hero-bg {
    position: absolute; inset: 0; background-size: cover;
    background-position: center; opacity: 0.4;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.5) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 60px 0; }
.hero-box {
    background: var(--red); padding: 48px 52px; position: relative;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.hero-box::before {
    content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px;
    border: 1px solid rgba(200,16,46,0.3); pointer-events: none;
    animation: fadeIn 1.4s ease 0.5s both;
}
.hero-welcome {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 4px; color: rgba(255,255,255,0.8); margin-bottom: 12px;
    animation: fadeIn 1s ease 0.4s both;
}
.hero-title {
    font-family: var(--font-heading); font-size: 2.5rem; font-weight: 400;
    color: var(--white); line-height: 1.2; margin-bottom: 16px;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}
.hero-subtitle {
    font-size: 1rem; color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: 0;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s both;
}
.hero-arrow {
    display: inline-flex; margin-top: 28px; width: 50px; height: 50px;
    border: 2px solid rgba(255,255,255,0.5); border-radius: 50%;
    align-items: center; justify-content: center; color: var(--white); font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.9s ease 0.6s both, bounceArrow 2s ease-in-out 2s infinite;
}
.hero-arrow:hover { background: var(--white); color: var(--red); border-color: var(--white); transform: translateY(-3px); }
@keyframes bounceArrow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Page hero */
.page-hero {
    margin-top: 80px; padding: 100px 0 80px;
    background: var(--dark); position: relative; overflow: hidden;
}
.page-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.page-hero .section-label { color: rgba(255,255,255,0.6); animation: fadeIn 0.8s ease 0.2s both; }
.page-hero .section-label::after { background: rgba(255,255,255,0.3); animation: slideRedLine 0.6s ease 0.5s both; }
.page-hero h1 { color: var(--white); max-width: 600px; font-size: 2.5rem; animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin-top: 16px; animation: fadeInUp 0.8s ease 0.45s both; }

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 14px 32px; font-family: var(--font-body);
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    border: 2px solid var(--red); background: var(--red); color: var(--white);
    cursor: pointer; transition: background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s, transform 0.3s, box-shadow 0.3s; text-decoration: none;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,16,46,0.3); }
.btn--outline { background: transparent; color: var(--red); }
.btn--outline:hover { background: var(--red); color: var(--white); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--red); }
.btn--white:hover { background: transparent; color: var(--white); }
.btn--sm { padding: 10px 22px; font-size: 0.72rem; }

.read-more {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--red); display: inline-flex; align-items: center; gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease;
}
.read-more::after { content: '→'; transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.read-more:hover { gap: 12px; }
.read-more:hover::after { transform: translateX(4px); }

/* --- Split Layout --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split-image { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.split-image:hover img { transform: scale(1.03); }

/* --- Vision / Mission block --- */
.vm-block {
    display: grid; grid-template-columns: auto 1fr; gap: 50px; align-items: start;
    padding: 50px; background: var(--gray-100); border-left: 4px solid var(--red);
}
.vm-icon {
    width: 60px; height: 60px; background: var(--red); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--white);
    font-size: 1.5rem; flex-shrink: 0;
}
.vm-block h4 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 12px; color: var(--dark); }
.vm-block p { color: var(--gray-700); font-size: 0.95rem; }
.vm-mission { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.vm-mission-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--red); margin-bottom: 10px; }

/* --- Members Wall --- */
.members-wall {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2px; background: var(--gray-200); border: 1px solid var(--gray-200);
}
.member-logo {
    background: var(--white); padding: 28px 20px; display: flex;
    align-items: center; justify-content: center; min-height: 100px; transition: var(--transition);
}
.member-logo:hover { background: var(--gray-100); }
.member-logo img { max-width: 120px; max-height: 50px; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: var(--transition); }
.member-logo:hover img { filter: grayscale(0%); opacity: 1; }

.member-logo-placeholder {
    background: var(--white); padding: 28px 20px; display: flex;
    align-items: center; justify-content: center; min-height: 100px;
    font-size: 0.75rem; font-weight: 600; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 1px; text-align: center;
    transition: var(--transition);
}
.member-logo-placeholder:hover { background: var(--gray-100); color: var(--red); }

/* --- News Cards --- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.news-card {
    background: var(--white); border-radius: 4px; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.45s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }
.news-card-image { height: 200px; overflow: hidden; background: var(--gray-100); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 0.6s ease; }
.news-card:hover .news-card-image img { transform: scale(1.05); }

/* Adjust card image positions for specific articles */
a[href="news-gateway.html"] .news-card-image img { object-position: center 5%; }
a[href="news-corridor.html"] .news-card-image img { object-position: center 20%; }

.news-card-body { padding: 24px; }
.news-card-date { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin-bottom: 8px; }
.news-card-body h3 { font-size: 1.15rem; margin-bottom: 12px; transition: color 0.3s; }
.news-card:hover .news-card-body h3 { color: var(--red); }
.news-card-body p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 16px; }

/* --- Focus Cards --- */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.focus-card {
    padding: 36px 28px; border: 1px solid var(--gray-200); border-top: 3px solid var(--red);
    background: var(--white); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease, border-color 0.3s ease;
}
.focus-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-5px); border-top-color: var(--red-dark); }
.focus-icon { font-size: 2rem; margin-bottom: 16px; }
.focus-card h3 { font-family: var(--font-heading); margin-bottom: 12px; font-size: 1.15rem; }
.focus-card h4 { font-family: var(--font-heading); margin-bottom: 12px; }
.focus-card p { font-size: 0.9rem; color: var(--gray-700); }

/* --- Resource Cards --- */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.resource-card { padding: 40px; background: var(--white); border: 1px solid var(--gray-200); border-left: 4px solid var(--red); transition: var(--transition); }
.resource-card:hover { box-shadow: var(--shadow); }
.resource-icon { font-size: 2rem; margin-bottom: 16px; }
.resource-card h3 { font-family: var(--font-heading); margin-bottom: 12px; font-size: 1.15rem; }
.resource-card h4 { font-family: var(--font-heading); margin-bottom: 12px; }
.resource-card p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 20px; }
.resource-buttons { display: flex; gap: 10px; }
.resource-btns { display: flex; gap: 10px; }
.btn--small { padding: 8px 18px; font-size: 0.7rem; }

/* --- Leadership Cards --- */
.leadership-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px; }
.leader-card { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
.leader-photo { width: 180px; height: 220px; overflow: hidden; border-radius: 4px; background: var(--gray-100); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-info h3 { font-size: 1.3rem; margin-bottom: 4px; }
.leader-role { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); margin-bottom: 16px; display: block; }
.leader-bio { font-size: 0.9rem; color: var(--gray-700); line-height: 1.7; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; top: 0; left: 14px; width: 2px; height: 100%; background: var(--gray-200); }
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-item::before {
    content: ''; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--red); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red);
}
.timeline-year { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--red); margin-bottom: 6px; }
.timeline-item h4 { font-family: var(--font-heading); margin-bottom: 8px; }
.timeline-item p { font-size: 0.9rem; color: var(--gray-700); }

/* --- Stats --- */
.stats-bar { background: var(--dark); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item { padding: 20px; }
.stat-number { font-family: var(--font-heading); font-size: 3rem; color: var(--red); display: block; margin-bottom: 6px; }
.stat-text { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.7); }

/* --- Contact Form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info { background: var(--gray-100); padding: 40px; border-left: 4px solid var(--red); }
.contact-info h3 { margin-bottom: 24px; }
.contact-detail { margin-bottom: 24px; }
.contact-detail h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); margin-bottom: 8px; }
.contact-detail p { color: var(--gray-700); font-size: 0.95rem; margin-bottom: 0; }
.contact-detail a { color: var(--red); }
.contact-block { margin-bottom: 28px; padding-left: 18px; border-left: 2px solid var(--red); }
.contact-block h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); margin-bottom: 8px; }
.contact-block p { color: var(--gray-700); font-size: 0.95rem; }
.contact-block a { color: var(--red); }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px; color: var(--gray-700);
    margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--gray-200);
    background: var(--white); font-family: var(--font-body); font-size: 0.9rem; color: var(--gray-900);
    border-radius: 3px; transition: var(--transition);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-item {
    padding: 32px 24px; border-top: 3px solid var(--red); background: var(--white);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.service-item:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-3px); }
.service-item h4 { font-family: var(--font-heading); margin-bottom: 12px; font-size: 1.1rem; }
.service-item p { font-size: 0.88rem; color: var(--gray-700); }

/* --- Social Links --- */
.social-links { display: flex; gap: 14px; }
.social-links a {
    width: 42px; height: 42px; border: 1px solid var(--gray-300); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--gray-500);
    font-size: 0.9rem; transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.social-links a:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(200,16,46,0.3); }

/* --- Sponsor Block --- */
.sponsor-block { background: var(--gray-100); padding: 50px; border-left: 4px solid var(--red); margin-top: 40px; }
.sponsor-block h3 { margin-bottom: 16px; }
.sponsor-block p { color: var(--gray-700); font-size: 0.95rem; }

/* --- Footer --- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 70px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 50px; margin-bottom: 50px; }
.footer h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--white); margin-bottom: 20px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer ul a:hover { color: var(--white); }
.footer p { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 6px; }
.footer .social-links a { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
.footer .social-links a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
    flex: 1; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05); color: var(--white); font-family: var(--font-body); font-size: 0.85rem; border-radius: 3px 0 0 3px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { outline: none; border-color: var(--red); }
.newsletter-form button {
    padding: 12px 20px; background: var(--red); border: 1px solid var(--red);
    color: var(--white); font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border-radius: 0 3px 3px 0;
    transition: var(--transition);
}
.newsletter-form button:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* --- Loading --- */
.loading {
    position: fixed; inset: 0; background: var(--white); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s, visibility 0.4s;
}
.loading.hidden { opacity: 0; visibility: hidden; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--gray-200); border-top-color: var(--red); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes slideRedLine { from { width: 0; } to { width: 40px; } }

/* --- Image-based page hero (news.html, about.html) --- */
.page-hero-bg {
    margin-top: 80px; position: relative; overflow: hidden;
    min-height: 360px; display: flex; align-items: center;
    background-size: cover; background-position: center;
}

/* ── Hero position classes — valeurs calbrées sur mobile ── */
.hero--padminee      { background-position: center 20%; }
.hero--mission       { background-position: center 40%; min-height: 520px; }
.hero--corridor      { background-position: center 25%; min-height: 520px; }
.hero--diaspora      { background-position: center 15%; }
.hero--membership    { background-position: center 60%; }
.hero--focus         { background-position: center 70%; }
.hero--news-list     { background-position: center 30%; }
.hero--young-leaders { background-position: center 40%; }
.hero--sponsorship   { background-position: center 50%; }
.hero--gateway       { background-position: center 20%; }
/* Desktop : article heroes — adjusted position to compensate for wider container scaling */
@media (min-width: 769px) {
    .hero--padminee  { background-position: center 35%; }
    .hero--mission   { background-position: center 25%; }
    .hero--corridor  { background-position: center 30%; }
    .hero--diaspora  { background-position: center 30%; }
}

.page-hero-overlay {
    position: absolute; inset: 0; background: rgba(10, 20, 40, 0.62);
}
.page-hero-title {
    font-family: var(--font-heading); font-size: 2.5rem; font-weight: 400;
    color: var(--white); max-width: 640px; line-height: 1.25; margin-bottom: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}
.page-hero-sub {
    color: rgba(255,255,255,0.8); max-width: 600px; margin-top: 12px; font-size: 1rem;
    animation: fadeInUp 0.8s ease 0.35s both;
}

/* ===== Article Pages ===== */
.article-date-hero {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: rgba(255,255,255,0.7); margin-bottom: 10px;
}
.article-layout {
    display: grid; grid-template-columns: 1fr 320px; gap: 60px; align-items: start;
}
.article-body h3 {
    font-size: 1.35rem; margin: 40px 0 14px; color: var(--dark);
}
.article-lead {
    font-size: 1.15rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 28px;
}
.article-quote {
    border-left: 4px solid var(--red); padding: 20px 28px;
    margin: 40px 0; background: var(--gray-100);
}
.article-quote p {
    font-family: var(--font-heading); font-size: 1.1rem;
    font-style: italic; color: var(--dark); margin-bottom: 10px;
}
.article-quote cite {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--red);
}
.article-list {
    padding-left: 20px; margin: 16px 0 24px; line-height: 2; color: var(--gray-700);
}
.article-list li { margin-bottom: 4px; }
.article-sectors {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0;
}
.article-sector-item {
    padding: 24px; border-top: 3px solid var(--red); background: var(--gray-100);
}
.article-sector-item h4 {
    font-family: var(--font-heading); margin-bottom: 8px; font-size: 1rem;
}
.article-sector-item p { font-size: 0.88rem; color: var(--gray-700); margin-bottom: 0; }
.article-cta {
    margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--gray-200);
    display: flex; align-items: center; flex-wrap: wrap; gap: 20px;
}
.article-sidebar { position: sticky; top: 100px; }
.sidebar-block { padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.sidebar-block:last-child { border-bottom: none; }
.sidebar-block p { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 4px; }
.sidebar-label {
    font-size: 0.68rem !important; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--red) !important; margin-bottom: 8px !important;
}
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li {
    margin-bottom: 10px; border-left: 2px solid var(--gray-200);
    padding-left: 12px; transition: border-color 0.3s;
}
.sidebar-links li:hover { border-left-color: var(--red); }
.sidebar-links a { font-size: 0.85rem; color: var(--gray-700); line-height: 1.5; }
.sidebar-links a:hover { color: var(--red); }
@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .article-sectors { grid-template-columns: 1fr; }
}

/* ===== Homepage: Genesis Section ===== */
.genesis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 32px 0; }
.highlight-box { background: var(--gray-100); border-left: 4px solid var(--red); padding: 28px 32px; }
.highlight-box h3 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 12px; color: var(--dark); }
.highlight-box ul { padding-left: 20px; color: var(--gray-700); line-height: 2; margin: 0; }
.missing-link-box {
    margin-top: 28px; padding: 22px 28px;
    border-left: 4px solid var(--dark); background: var(--white);
    font-size: 0.95rem; color: var(--gray-700); line-height: 1.75;
}
.missing-link-box strong { color: var(--dark); }

/* ===== Homepage: Four Pillars ===== */
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.pillar-card {
    padding: 32px 24px; background: var(--white);
    border: 1px solid var(--gray-200); border-top: 3px solid var(--red);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.pillar-number {
    display: block; font-size: 2rem; font-weight: 700;
    color: var(--red); font-family: var(--font-heading); margin-bottom: 10px; line-height: 1;
}
.pillar-card h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 10px; color: var(--dark); }
.pillar-card p { font-size: 0.88rem; color: var(--gray-700); margin: 0; line-height: 1.75; }

/* ===== Homepage: Timeline ===== */
.timeline { position: relative; padding-left: 36px; margin-top: 40px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 0; width: 2px; background: var(--red); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
    content: ''; position: absolute; left: -42px; top: 5px;
    width: 12px; height: 12px; background: var(--red); border-radius: 50%;
    border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--red);
}
.timeline-date { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--red); margin-bottom: 6px; }
.timeline-content p { color: var(--gray-700); margin: 0; line-height: 1.75; font-size: 0.95rem; }
.timeline-content a { color: var(--red); }
.timeline-content a:hover { text-decoration: underline; }

/* ===== Homepage: Network Table ===== */
.network-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.network-table thead th {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
    color: var(--red); padding: 10px 16px; text-align: left;
    border-bottom: 2px solid var(--red); background: var(--gray-100);
}
.network-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; color: var(--gray-700); vertical-align: middle; }
.network-table tbody td:first-child { font-weight: 700; color: var(--dark); font-size: 0.85rem; width: 32%; }
.network-table tbody tr:hover td { background: var(--gray-100); }

/* ===== Homepage: Roadmap List ===== */
.roadmap-list { list-style: none; padding: 0; margin-top: 32px; }
.roadmap-list li {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 14px 0; border-bottom: 1px solid var(--gray-200);
    font-size: 0.92rem; color: var(--gray-700); line-height: 1.65;
}
.roadmap-list li:last-child { border-bottom: none; }
.roadmap-list li::before { content: '\2192'; color: var(--red); font-weight: 700; flex-shrink: 0; }
.roadmap-list li strong { color: var(--dark); }

/* ===== Homepage: Dark CTA Section ===== */
.section--dark { background: var(--dark); }
.cta-block { text-align: center; padding: 20px 0; max-width: 760px; margin: 0 auto; }
.cta-block h2 { font-family: var(--font-heading); font-size: 2.2rem; color: var(--white); margin-bottom: 16px; }
.cta-block > p { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.75; margin-bottom: 28px; }
.cta-join-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin: 0 0 36px; }
.cta-join-list li { color: rgba(255,255,255,0.65); font-size: 0.88rem; padding-left: 14px; position: relative; }
.cta-join-list li::before { content: '\B7'; position: absolute; left: 0; color: var(--red); font-size: 1.3rem; line-height: 1; top: -2px; }
.cta-block .btn { margin: 6px 8px; }
.btn--outline-white {
    display: inline-block; padding: 14px 32px; margin: 6px 8px;
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    border: 2px solid rgba(255,255,255,0.5); color: var(--white);
    cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); text-decoration: none;
}
.btn--outline-white:hover { background: var(--white); color: var(--dark); border-color: var(--white); }

/* Homepage responsive additions */
@media (max-width: 900px) {
    .genesis-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr 1fr; }
    .network-table tbody td:first-child { width: auto; }
}
@media (max-width: 600px) {
    .pillars-grid { grid-template-columns: 1fr; }
    .cta-join-list { flex-direction: column; align-items: center; gap: 8px; }
}

/* --- Button alias --- */
.btn--primary { display: inline-block; padding: 14px 32px; font-family: var(--font-body);
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    border: 2px solid var(--red); background: var(--red); color: var(--white);
    cursor: pointer; transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); text-decoration: none; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,16,46,0.3); }

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Staggered children — add via JS */
.animate-on-scroll.stagger-1 { transition-delay: 0.08s; }
.animate-on-scroll.stagger-2 { transition-delay: 0.16s; }
.animate-on-scroll.stagger-3 { transition-delay: 0.24s; }
.animate-on-scroll.stagger-4 { transition-delay: 0.32s; }
.animate-on-scroll.stagger-5 { transition-delay: 0.40s; }
.animate-on-scroll.stagger-6 { transition-delay: 0.48s; }
.animate-on-scroll.stagger-7 { transition-delay: 0.56s; }
.animate-on-scroll.stagger-8 { transition-delay: 0.64s; }
.animate-on-scroll.stagger-9 { transition-delay: 0.72s; }

/* Slide-from-left variant */
.animate-on-scroll.from-left { transform: translateX(-30px); }
.animate-on-scroll.from-left.visible { transform: translateX(0); }

/* Slide-from-right variant */
.animate-on-scroll.from-right { transform: translateX(30px); }
.animate-on-scroll.from-right.visible { transform: translateX(0); }

/* Scale-up variant */
.animate-on-scroll.scale-up { transform: scale(0.92); }
.animate-on-scroll.scale-up.visible { transform: scale(1); }

.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .split { gap: 40px; }
    .leadership-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .focus-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    .section { padding: 60px 0; }
    .header-inner { height: 65px; }
    .header-social { display: none; }
    .language-switch { margin-left: auto; margin-right: 14px; }
    .menu-toggle { display: flex; }
    .nav {
        position: fixed; top: 0; left: -100%; width: 280px; height: 100vh;
        background: var(--white); box-shadow: var(--shadow-xl); transition: left 0.3s ease;
        z-index: 1000; padding: 90px 28px 28px;
    }
    .nav.open { left: 0; }
    .nav ul { flex-direction: column; gap: 0; }
    .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.85rem; }
    .nav a::after { display: none; }
    .nav-overlay {
        display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
        opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999;
    }
    .nav-overlay.open { opacity: 1; visibility: visible; }
    /* Mobile dropdown */
    .has-dropdown .dropdown {
        display: none; position: static; transform: none;
        box-shadow: none; border: none;
        border-left: 3px solid var(--gray-200);
        margin: 0 0 0 12px; padding: 0; background: transparent;
        min-width: auto;
    }
    .has-dropdown.open .dropdown { display: block; }
    .has-dropdown .dropdown li a {
        padding: 11px 0 11px 12px; border-bottom: 1px solid var(--gray-200);
        font-size: 0.78rem;
    }
    .hero { margin-top: 65px; min-height: auto; padding: 60px 0; }
    .hero-box { padding: 32px 28px; }
    .hero-title { font-size: 1.75rem; }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .split--reverse { direction: ltr; }
    .vm-block { grid-template-columns: 1fr; padding: 28px; }
    .news-grid, .focus-grid, .resource-grid, .services-grid, .stats-grid { grid-template-columns: 1fr; }
    .contact-grid { gap: 40px; }
    .leader-card { grid-template-columns: 1fr; text-align: center; }
    .leader-photo { width: 140px; height: 170px; margin: 0 auto; }
    .members-wall { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .btn { display: block; width: 100%; text-align: center; margin-bottom: 10px; }
    .page-hero { padding: 70px 0 50px; }
    .page-hero h1 { font-size: 1.75rem; }
    .page-hero-bg { min-height: 260px; }
    .page-hero-title { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .hero-title { font-size: 1.5rem; }
    .hero-box { padding: 24px 20px; }
    .logo { font-size: 0.95rem; }
    .container { padding: 0 16px; }
    .members-wall { grid-template-columns: repeat(2, 1fr); }
}
