/*
 * Theme Name: FSM 2026
 * Theme URI: https://fsm2026.org
 * Description: Theme officiel du Forum Social Mondial 2026 - Cotonou, Benin
 * Version: 1.0.0
 * Author: FSM Dev Team
 * Author URI: https://fsm2026.org
 * Text Domain: fsm2026
 * Requires at least: 6.0
 * Tested up to: 6.5
 * Requires PHP: 8.0
 * License: GPL v2 or later
 */

/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================================================== */

:root {
    /* Primary palette — navy & blue */
    --fsm-navy: #0f172a;
    --fsm-navy-800: #152243;
    --fsm-navy-700: #1a365d;
    --fsm-navy-600: #1e3a5f;

    /* Blue accent range */
    --fsm-blue-400: #60a5fa;
    --fsm-blue-500: #3b82f6;
    --fsm-blue-600: #2563eb;
    --fsm-blue-700: #1d4ed8;

    /* Secondary accents — turquoise / sky blue */
    --fsm-turquoise-400: #22d3ee;
    --fsm-turquoise-500: #06b6d4;
    --fsm-turquoise-600: #0891b2;
    --fsm-sky-400: #38bdf8;
    --fsm-sky-500: #0ea5e9;
    --fsm-teal: #14b8a6;
    --fsm-emerald: #059669;
    --fsm-amber: #f59e0b;

    /* Neutrals */
    --fsm-gray-50: #f8fafc;
    --fsm-gray-100: #f1f5f9;
    --fsm-gray-200: #e2e8f0;
    --fsm-gray-300: #cbd5e1;
    --fsm-gray-400: #94a3b8;
    --fsm-gray-500: #64748b;
    --fsm-gray-600: #475569;
    --fsm-gray-700: #334155;
    --fsm-gray-800: #1e293b;
    --fsm-gray-900: #0f172a;

    /* Semantic */
    --fsm-text: #1e293b;
    --fsm-text-muted: #64748b;
    --fsm-text-light: #94a3b8;
    --fsm-bg: #ffffff;
    --fsm-bg-alt: #f8fafc;
    --fsm-border: #e2e8f0;

    /* Gradients — blue → turquoise → sky (elegant blue tones) */
    --fsm-gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #2563eb 30%, #06b6d4 65%, #38bdf8 100%);
    --fsm-gradient-hero-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    --fsm-gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --fsm-gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --fsm-gradient-cta: linear-gradient(to right, #2563eb 0%, #06b6d4 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-strong: rgba(255, 255, 255, 0.25);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 20px 40px -8px rgba(59, 130, 246, 0.18), 0 8px 16px -4px rgba(0, 0, 0, 0.08);

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Header height for sticky offset */
    --header-height: 72px;
}


/* ==========================================================================
   2. RESET & BASE TYPOGRAPHY
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--fsm-text);
    background-color: var(--fsm-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--fsm-navy);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: 1em;
    color: var(--fsm-gray-600);
}

a {
    color: var(--fsm-blue-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--fsm-blue-700);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.35em;
}


/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.fsm-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.fsm-section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.fsm-section--alt {
    background-color: var(--fsm-bg-alt);
}

.fsm-section__title {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.fsm-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--fsm-gradient-blue);
    border-radius: var(--radius-full);
    margin: var(--space-md) auto 0;
}

.fsm-section__subtitle {
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--fsm-gray-500);
    max-width: 600px;
    margin: calc(-1 * var(--space-md)) auto var(--space-2xl);
}

.fsm-grid {
    display: grid;
    gap: var(--space-xl);
}

.fsm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fsm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fsm-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive auto grid: 4 cols → 3 cols → 2 cols → 1 col */
.fsm-grid--auto {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
    .fsm-grid--auto { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .fsm-grid--auto { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .fsm-grid--auto { grid-template-columns: 1fr; }
}


/* ==========================================================================
   3b. TOPBAR — Dark info bar above header
   ========================================================================== */

.fsm-topbar {
    background-color: var(--fsm-navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-xs);
    padding: 7px 0;
}

.fsm-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fsm-topbar__text {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.fsm-topbar__right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Override lang switcher in topbar */
.fsm-topbar .fsm-lang-switcher__toggle {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    padding: 2px 8px;
}

.fsm-topbar .fsm-lang-switcher__toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}


/* ==========================================================================
   4. HEADER — White bg, shadow (matches React Navbar)
   ========================================================================== */

.fsm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base);
}

.fsm-header.is-scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.fsm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Logo */
.fsm-header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex-shrink: 0;
}

.fsm-header__logo img {
    height: 64px;
    width: auto;
}

.fsm-header__logo-text {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--fsm-blue-600);
    letter-spacing: -0.03em;
}

.fsm-header__logo-text span {
    color: var(--fsm-turquoise-500);
}

/* Navigation */
.fsm-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.fsm-header__nav a {
    color: #374151;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.fsm-header__nav a:hover,
.fsm-header__nav a.is-active {
    color: var(--fsm-blue-600);
}

.fsm-header__nav .current-menu-item a,
.fsm-header__nav .current_page_item a {
    color: var(--fsm-blue-600);
}

/* Desktop nav list (from Walker) */
.fsm-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fsm-nav-item {
    position: relative;
    list-style: none;
}

.fsm-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

/* Icon inside nav link */
.fsm-nav-link__icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.fsm-nav-link__icon svg {
    width: 16px;
    height: 16px;
}

.fsm-nav-link__text {
    line-height: 1;
}

.fsm-nav-link:hover {
    color: #0891b2;
    background-color: #ecfeff;
}

.fsm-nav-link:hover .fsm-nav-link__icon {
    opacity: 1;
}

/* Active nav link — pill with colored background */
.fsm-nav-link--active,
.fsm-nav-item--active > .fsm-nav-link {
    color: #0891b2;
    background-color: #ecfeff;
    font-weight: 700;
}

.fsm-nav-link--active .fsm-nav-link__icon,
.fsm-nav-item--active > .fsm-nav-link .fsm-nav-link__icon {
    opacity: 1;
    color: #0891b2;
}

.fsm-nav-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.45;
}

.fsm-nav-item--has-children:hover .fsm-nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown panel */
.fsm-nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 230px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 8px;
    z-index: 1100;
    list-style: none;
    animation: fadeIn 0.15s ease-out;
}

/* Bridge the gap between parent and dropdown so hover is not lost */
.fsm-nav-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.fsm-nav-item--has-children:hover > .fsm-nav-dropdown,
.fsm-nav-item--has-children.is-touch-open > .fsm-nav-dropdown {
    display: block;
}

.fsm-nav-dropdown__link {
    display: block;
    padding: 10px 14px;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.fsm-nav-dropdown__link:hover {
    background-color: #ecfeff;
    color: #0891b2;
}

.current-menu-item > .fsm-nav-link,
.current-menu-parent > .fsm-nav-link {
    color: #0891b2;
    background-color: #ecfeff;
}

.current-menu-item > .fsm-nav-link .fsm-nav-link__icon,
.current-menu-parent > .fsm-nav-link .fsm-nav-link__icon {
    opacity: 1;
}

/* Header action buttons */
.fsm-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Login link with icon */
.fsm-header__login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fsm-header__login-link:hover {
    color: #0891b2;
    background-color: #ecfeff;
}

.fsm-header__login-link svg {
    opacity: 0.55;
    transition: opacity 0.2s;
}

.fsm-header__login-link:hover svg {
    opacity: 1;
}

.fsm-header__nav-link {
    color: #374151;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.fsm-header__nav-link:hover {
    color: var(--fsm-blue-600);
}

.fsm-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.25);
}

.fsm-header__cta svg {
    width: 16px;
    height: 16px;
}

.fsm-header__cta:hover {
    background: linear-gradient(135deg, #0e7490, #0891b2);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
    transform: translateY(-1px);
    color: #ffffff;
}

/* User menu dropdown (logged-in) */
.fsm-user-menu {
    position: relative;
}

.fsm-user-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.fsm-user-menu__toggle svg {
    transition: transform var(--transition-fast);
}

.fsm-user-menu.is-open .fsm-user-menu__toggle svg {
    transform: rotate(180deg);
}

.fsm-user-menu__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    overflow: hidden;
}

.fsm-user-menu.is-open .fsm-user-menu__dropdown {
    display: block;
}

.fsm-user-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #374151;
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.fsm-user-menu__item:hover {
    background-color: #f3f4f6;
    color: var(--fsm-blue-600);
}

.fsm-user-menu__item--logout {
    border-top: 1px solid var(--fsm-border);
    color: #dc2626;
}

.fsm-user-menu__item--logout:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

/* Mobile hamburger toggle — placed after logo, visible only on mobile */
.fsm-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.fsm-header__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #374151;
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.fsm-header__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.fsm-header__toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.fsm-header__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.fsm-header__mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid var(--fsm-border);
    border-bottom: 1px solid var(--fsm-border);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fsm-header__mobile-nav.is-open {
    display: block;
}

.fsm-header__mobile-nav a {
    display: block;
    color: #374151;
    font-size: var(--text-base);
    font-weight: 500;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #f3f4f6;
}

.fsm-header__mobile-nav a:last-child {
    border-bottom: none;
}

.fsm-header__mobile-nav a:hover {
    color: var(--fsm-blue-600);
}

/* Mobile menu list (from Walker) */
.fsm-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fsm-mobile-item {
    list-style: none;
    border-bottom: 1px solid #f3f4f6;
}

.fsm-mobile-item:last-child {
    border-bottom: none;
}

.fsm-mobile-item__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fsm-mobile-link {
    display: block;
    color: #374151;
    font-size: var(--text-base);
    font-weight: 500;
    padding: var(--space-sm) 0;
    flex: 1;
    text-decoration: none;
}

.fsm-mobile-link:hover {
    color: var(--fsm-blue-600);
}

.fsm-mobile-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: transform var(--transition-fast);
    display: flex;
    align-items: center;
}

.fsm-mobile-toggle.is-open {
    transform: rotate(180deg);
}

.fsm-mobile-submenu {
    display: none;
    list-style: none;
    padding: 0 0 var(--space-sm) var(--space-lg);
    margin: 0;
}

.fsm-mobile-submenu.is-open {
    display: block;
}

.fsm-mobile-sublink {
    display: block;
    color: #6b7280;
    font-size: var(--text-sm);
    padding: 6px 0;
    text-decoration: none;
}

.fsm-mobile-sublink:hover {
    color: var(--fsm-blue-600);
}


/* ==========================================================================
   4b. LANGUAGE SWITCHER
   ========================================================================== */

.fsm-lang-switcher {
    position: relative;
    margin-right: 8px;
}

.fsm-lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: transparent;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.fsm-lang-switcher__toggle:hover {
    border-color: #171717;
    background-color: #f9fafb;
}

.fsm-lang-switcher__arrow {
    transition: transform 0.2s;
}

.fsm-lang-switcher.is-open .fsm-lang-switcher__arrow {
    transform: rotate(180deg);
}

.fsm-lang-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    overflow: hidden;
}

.fsm-lang-switcher.is-open .fsm-lang-switcher__dropdown {
    display: block;
}

.fsm-lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #374151;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.1s;
}

.fsm-lang-switcher__option:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.fsm-lang-switcher__option.is-active {
    background-color: #f0f6ff;
    color: var(--fsm-blue-600);
    font-weight: 600;
}

.fsm-lang-switcher__flag {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    min-width: 22px;
}

.fsm-lang-switcher__option.is-active .fsm-lang-switcher__flag {
    color: var(--fsm-blue-600);
}

/* Mobile language switcher */
.fsm-lang-switcher--mobile {
    display: flex;
    gap: 6px;
    padding: 12px 0 4px;
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
}

.fsm-lang-switcher__mobile-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 28px;
    border: 1px solid #e5e5e5 !important;
    border-radius: 4px;
    font-size: 11px !important;
    font-weight: 600;
    color: #6b7280 !important;
    text-decoration: none;
    padding: 0 !important;
}

.fsm-lang-switcher__mobile-link.is-active {
    background-color: var(--fsm-blue-600);
    border-color: var(--fsm-blue-600) !important;
    color: #ffffff !important;
}

.fsm-lang-switcher__mobile-link:hover:not(.is-active) {
    background-color: #f3f4f6;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

/* ==========================================================================
   4c. RTL SUPPORT (Arabic)
   ========================================================================== */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .fsm-header__inner {
    flex-direction: row-reverse;
}

html[dir="rtl"] .fsm-header__nav {
    direction: ltr;
}

html[dir="rtl"] .fsm-header__actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .fsm-hero__content,
html[dir="rtl"] .fsm-section__title {
    text-align: right;
}

html[dir="rtl"] .fsm-activity-card__body,
html[dir="rtl"] .fsm-org-card__body {
    text-align: right;
}

html[dir="rtl"] .fsm-form-group label {
    text-align: right;
}

html[dir="rtl"] .fsm-footer__grid {
    direction: rtl;
}

html[dir="rtl"] .fsm-lang-switcher__dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .fsm-page-header-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .fsm-search-bar__icon {
    left: auto;
    right: 12px;
}

html[dir="rtl"] .fsm-search-bar__input {
    padding-left: 12px;
    padding-right: 40px;
}

/* ==========================================================================
   5. HERO
   ========================================================================== */

.fsm-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--fsm-gradient-hero);
    overflow: hidden;
    padding: var(--space-3xl) var(--space-lg);
}

/* Subtle diagonal pattern overlay */
.fsm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px,
        transparent 40px
    );
    pointer-events: none;
    z-index: 1;
}

/* Bottom fade overlay */
.fsm-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--fsm-bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.fsm-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.fsm-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 4px 24px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.03em;
}

.fsm-hero__subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.fsm-hero__description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero logo (matches React logo image in hero) */
.fsm-hero__logo {
    height: 120px;
    width: auto;
    margin: 0 auto var(--space-xl);
    filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.3));
}

/* CTA variant — emerald/teal gradient for contrast */
.fsm-hero--cta {
    background: linear-gradient(135deg, #059669 0%, #14b8a6 100%);
}

.fsm-hero--cta::before,
.fsm-hero--cta::after {
    display: none;
}


/* ==========================================================================
   5b. SLIDER / CAROUSEL
   ========================================================================== */

.fsm-slider {
    position: relative;
    overflow: hidden;
}

.fsm-slider__track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.fsm-slider__slide {
    min-width: 100%;
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--fsm-gradient-hero);
    overflow: hidden;
    padding: var(--space-3xl) var(--space-lg);
}

/* Inherit hero pattern overlay */
.fsm-slider__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0px,
        rgba(255, 255, 255, 0.02) 1px,
        transparent 1px,
        transparent 40px
    );
    pointer-events: none;
    z-index: 1;
}

/* Bottom fade */
.fsm-slider__slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--fsm-bg) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.fsm-slider__slide .fsm-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.fsm-slider__slide .fsm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(30, 58, 138, 0.40) 0%,
        rgba(37, 99, 235, 0.35) 30%,
        rgba(6, 182, 212, 0.30) 65%,
        rgba(56, 189, 248, 0.25) 100%
    );
    z-index: 1;
}

/* Dots */
.fsm-slider__dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.fsm-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    padding: 0;
}

.fsm-slider__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.fsm-slider__dot.is-active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.25);
}

/* Arrows */
.fsm-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 1.25rem;
}

.fsm-slider__arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

.fsm-slider__arrow--prev {
    left: 20px;
}

.fsm-slider__arrow--next {
    right: 20px;
}

/* Overlay (black 10%) */
.fsm-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Animated date badge with glow border */
.fsm-hero__date-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 24px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
    animation: fadeIn 0.8s ease-out 0.2s both;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15), inset 0 0 20px rgba(59, 130, 246, 0.05);
}

.fsm-hero__date-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--fsm-teal);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* CTA buttons */
.fsm-hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.fsm-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-base);
    text-decoration: none;
}

.fsm-hero__cta--primary {
    color: var(--fsm-blue-600);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fsm-hero__cta--primary:hover {
    background: #f3f4f6;
    color: var(--fsm-blue-600);
}

.fsm-hero__cta--secondary {
    color: #ffffff;
    background: transparent;
    border: 2px solid #ffffff;
}

.fsm-hero__cta--secondary:hover {
    background: #ffffff;
    color: var(--fsm-blue-600);
}


/* ==========================================================================
   6. CARDS — Activity & Organization (matches React shadcn/ui Card)
   ========================================================================== */

.fsm-activity-card,
.fsm-org-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow var(--transition-base), transform 0.2s;
    cursor: pointer;
}

.fsm-activity-card:hover,
.fsm-org-card:hover {
    transform: translateY(-2px);
}

.fsm-activity-card__body {
    flex: 1;
}

.fsm-activity-card__footer {
    padding: 12px var(--space-xl);
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.fsm-activity-card:hover,
.fsm-org-card:hover {
    box-shadow: var(--shadow-lg);
}

.fsm-activity-card__body,
.fsm-org-card__body {
    padding: var(--space-xl);
}

.fsm-activity-card__type {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fsm-blue-600);
    margin-bottom: var(--space-sm);
}

.fsm-activity-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: var(--space-sm);
    line-height: 1.35;
}

.fsm-activity-card__title a {
    color: inherit;
    text-decoration: none;
}

.fsm-activity-card__title a:hover {
    color: var(--fsm-blue-600);
}

.fsm-activity-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--fsm-text-muted);
    margin-bottom: var(--space-md);
}

.fsm-activity-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fsm-activity-card__excerpt {
    font-size: var(--text-sm);
    color: var(--fsm-gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fsm-activity-card__footer {
    padding: var(--space-md) var(--space-xl);
    border-top: 1px solid var(--fsm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
}

/* Places badge on activity cards */
.fsm-places-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.fsm-places-badge--full {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Org card specifics */
.fsm-org-card::before {
    background: var(--fsm-gradient-teal);
}

.fsm-org-card__name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: var(--space-xs);
}

.fsm-org-card__name a {
    color: inherit;
    text-decoration: none;
}

.fsm-org-card__name a:hover {
    color: var(--fsm-blue-600);
}

.fsm-org-card__country {
    font-size: var(--text-sm);
    color: var(--fsm-text-muted);
    margin-bottom: var(--space-md);
}

.fsm-org-card__description {
    font-size: var(--text-sm);
    color: var(--fsm-gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   6b. NEWS CARDS — Social-media style with thumbnails & video play
   ========================================================================== */

.fsm-news-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.fsm-news-card:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

/* Card image / video thumbnail */
.fsm-news-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.fsm-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fsm-news-card:hover .fsm-news-card__image img {
    transform: scale(1.08);
}

/* Play button overlay for videos */
.fsm-news-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.fsm-news-card:hover .fsm-news-card__play {
    background: rgba(0, 0, 0, 0.45);
}

.fsm-news-card__play svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.fsm-news-card:hover .fsm-news-card__play svg {
    transform: scale(1.15);
}

.fsm-news-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 12px;
}

.fsm-news-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: var(--text-base);
    font-weight: 900;
    flex-shrink: 0;
    background-color: #0891b2;
}

.fsm-news-card__author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fsm-news-card__author {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--fsm-gray-900);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fsm-news-card__org {
    font-size: 10px;
    font-weight: 800;
    color: var(--fsm-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fsm-news-card__body {
    padding: 0 24px;
    flex-grow: 1;
}

.fsm-news-card__title {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--fsm-gray-900);
    margin-bottom: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fsm-news-card__title a {
    color: inherit;
    text-decoration: none;
}

.fsm-news-card__title a:hover {
    color: #0891b2;
}

.fsm-news-card__excerpt {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--fsm-gray-500);
    line-height: 1.65;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fsm-news-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.fsm-news-card__tag {
    font-size: 10px;
    font-weight: 800;
    color: #0891b2;
    background-color: #ecfeff;
    padding: 3px 8px;
    border-radius: 6px;
}

.fsm-news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 20px;
    margin-top: auto;
    border-top: 1px solid #f8fafc;
}

.fsm-news-card__date {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--fsm-gray-400);
}

.fsm-news-card__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fsm-news-card__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--fsm-gray-400);
}

.fsm-news-card__action svg {
    width: 14px;
    height: 14px;
}


/* ==========================================================================
   6c. THEMATIC CARDS V2 — Colored icon + title + description
   ========================================================================== */

.fsm-thematic-card-v2 {
    background: #ffffff;
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.fsm-thematic-card-v2:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Header flex : icône + numéro + titre sur la même ligne */
.fsm-thematic-card-v2__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-md);
}

.fsm-thematic-card-v2__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.fsm-thematic-card-v2__icon--lg {
    width: 64px;
    height: 64px;
    font-size: 2rem;
}

.fsm-thematic-card-v2__title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: 0;
    line-height: 1.3;
}

.fsm-axe-num {
    color: var(--fsm-blue-400);
    font-weight: 800;
    margin-right: 2px;
}

.fsm-thematic-card-v2__desc {
    font-size: var(--text-sm);
    color: var(--fsm-gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Page variant: slightly more spacing */
.fsm-thematic-card-v2--page {
    padding: var(--space-xl) var(--space-xl) var(--space-2xl);
}

.fsm-thematic-card-v2--page .fsm-thematic-card-v2__desc {
    -webkit-line-clamp: 4;
}

/* Thematic grid - page variant */
.fsm-thematic-grid--page {
    grid-template-columns: repeat(3, 1fr);
}


/* ==========================================================================
   7. PAGE HEADER (matches React page headers - simple, clean)
   ========================================================================== */

.fsm-page-header {
    padding: 32px 0;
    background-color: #f9fafb;
}

.fsm-page-header__title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: #111827;
    margin-bottom: var(--space-sm);
}

.fsm-page-header__subtitle {
    font-size: var(--text-base);
    color: #6b7280;
    max-width: 600px;
}

.fsm-page-header__breadcrumb {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: #9ca3af;
}

.fsm-page-header__breadcrumb a {
    color: #6b7280;
}

.fsm-page-header__breadcrumb a:hover {
    color: var(--fsm-blue-600);
}

/* Header with flex row for title + action button */
.fsm-page-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}


/* ==========================================================================
   8. SINGLE ACTIVITY
   ========================================================================== */

.fsm-single-activity {
    padding: var(--space-3xl) 0;
}

.fsm-single-activity__header {
    margin-bottom: var(--space-2xl);
}

.fsm-single-activity__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--fsm-navy);
    margin-bottom: var(--space-md);
}

/* Info grid — key details in light blue cards */
.fsm-single-activity__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.fsm-single-activity__info-item {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #dbeafe;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.fsm-single-activity__info-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fsm-blue-600);
    margin-bottom: var(--space-xs);
}

.fsm-single-activity__info-value {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--fsm-navy);
}

/* Multilingual titles box */
.fsm-single-activity__multilingual {
    background-color: var(--fsm-gray-50);
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.fsm-single-activity__multilingual h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    color: var(--fsm-navy);
}

.fsm-single-activity__multilingual-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--fsm-border);
}

.fsm-single-activity__multilingual-item:last-child {
    border-bottom: none;
}

.fsm-single-activity__lang-label {
    flex-shrink: 0;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fsm-text-muted);
    min-width: 36px;
}

.fsm-single-activity__lang-value {
    font-size: var(--text-base);
    color: var(--fsm-text);
}

/* Description / body content */
.fsm-single-activity__content {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--fsm-gray-600);
    margin-bottom: var(--space-2xl);
}

.fsm-single-activity__content p {
    margin-bottom: 1.2em;
}

/* Co-organizers chips */
.fsm-single-activity__co-organizers {
    margin-bottom: var(--space-2xl);
}

.fsm-single-activity__co-organizers h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.fsm-co-organizer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.fsm-co-organizer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--fsm-gray-100);
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fsm-text);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
}

.fsm-co-organizer-chip:hover {
    background-color: #eff6ff;
    border-color: var(--fsm-blue-500);
    color: var(--fsm-blue-700);
}

/* Outcomes section — green left border */
.fsm-single-activity__outcomes {
    border-left: 4px solid var(--fsm-emerald);
    background-color: #f0fdf4;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.fsm-single-activity__outcomes h3 {
    font-size: var(--text-xl);
    color: var(--fsm-emerald);
    margin-bottom: var(--space-md);
}

.fsm-single-activity__outcomes p {
    color: var(--fsm-gray-700);
    line-height: 1.7;
}

/* Articles list */
.fsm-single-activity__articles {
    margin-bottom: var(--space-2xl);
}

.fsm-single-activity__articles h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.fsm-articles-list {
    list-style: none;
    padding: 0;
}

.fsm-articles-list li {
    padding: var(--space-md);
    border-bottom: 1px solid var(--fsm-border);
    transition: background-color var(--transition-fast);
}

.fsm-articles-list li:last-child {
    border-bottom: none;
}

.fsm-articles-list li:hover {
    background-color: var(--fsm-gray-50);
}

.fsm-articles-list li a {
    font-weight: 500;
    color: var(--fsm-navy);
}

.fsm-articles-list li a:hover {
    color: var(--fsm-blue-600);
}


/* ==========================================================================
   9. SINGLE ORGANIZATION
   ========================================================================== */

.fsm-single-org {
    padding: var(--space-3xl) 0;
}

.fsm-single-org__layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-2xl);
    align-items: start;
}

.fsm-single-org__main {
    min-width: 0;
}

.fsm-single-org__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Sidebar contact card */
.fsm-sidebar-card {
    background: var(--fsm-bg);
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.fsm-sidebar-card__title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--fsm-blue-500);
}

.fsm-sidebar-card__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
    color: var(--fsm-gray-600);
}

.fsm-sidebar-card__item + .fsm-sidebar-card__item {
    border-top: 1px solid var(--fsm-gray-100);
}

.fsm-sidebar-card__item a {
    color: var(--fsm-blue-600);
    word-break: break-all;
}

.fsm-sidebar-card__item a:hover {
    color: var(--fsm-blue-700);
}

/* Social links row */
.fsm-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.fsm-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background-color: var(--fsm-gray-100);
    color: var(--fsm-gray-600);
    font-size: var(--text-lg);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}

.fsm-social-link:hover {
    background-color: var(--fsm-blue-600);
    color: #ffffff;
    transform: translateY(-2px);
}


/* ==========================================================================
   10. FOOTER
   ========================================================================== */

.fsm-footer {
    background-color: #111827;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 80px;
    padding-top: 48px;
}

.fsm-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.fsm-footer a:hover {
    color: #ffffff;
}

.fsm-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 32px;
}

.fsm-footer__brand {
    grid-column: 1;
}

.fsm-footer__logo {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.fsm-footer__logo-fsm {
    color: #60a5fa;
}

.fsm-footer__logo-year {
    color: var(--fsm-turquoise-400);
}

.fsm-footer__tagline {
    font-size: var(--text-sm);
    color: #6b7280;
}

.fsm-footer__email {
    margin-top: var(--space-lg);
    font-size: var(--text-sm);
}

.fsm-footer__email a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fsm-footer__email-icon {
    flex-shrink: 0;
    vertical-align: middle;
}

.fsm-footer__email a {
    color: #9ca3af;
}

.fsm-footer__email a:hover {
    color: #ffffff;
}

/* Footer contact column */
.fsm-footer__contact-info {
    font-size: var(--text-sm);
    color: #9ca3af;
    line-height: 1.7;
}

.fsm-footer__contact-info p {
    color: #9ca3af;
    margin-bottom: var(--space-sm);
}

.fsm-footer__contact-info a {
    color: #9ca3af;
    word-break: break-all;
}

.fsm-footer__contact-info a:hover {
    color: #ffffff;
}

.fsm-footer__contact-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 2px;
}

/* Footer bottom social row */
.fsm-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.fsm-footer__bottom-social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.fsm-footer__bottom-social span {
    font-size: var(--text-sm);
    color: #6b7280;
}

.fsm-footer__col-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.fsm-footer__links {
    list-style: none;
    padding: 0;
}

.fsm-footer__links li {
    margin-bottom: var(--space-sm);
}

.fsm-footer__links a {
    font-size: var(--text-sm);
    color: #9ca3af;
    transition: color var(--transition-fast);
}

.fsm-footer__links a:hover {
    color: #ffffff;
}

.fsm-footer__description {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer social icons (React style: inline icons with color hover) */
.fsm-footer__social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.fsm-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.5rem;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.fsm-footer__social-link:hover {
    color: #60a5fa;
}

.fsm-footer__social-link[href*="instagram"]:hover {
    color: #f472b6;
}

.fsm-footer__social-link[href*="youtube"]:hover {
    color: #f87171;
}

/* Bottom bar (layout defined in new block above) */
.fsm-footer__bottom {
    border-top: 1px solid #1f2937;
    margin-top: 32px;
    padding: 32px 0;
    font-size: var(--text-sm);
    color: #6b7280;
}

.fsm-footer__bottom a {
    color: #6b7280;
}

.fsm-footer__bottom a:hover {
    color: #ffffff;
}


/* ==========================================================================
   11. FILTER BAR
   ========================================================================== */

.fsm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    align-items: center;
}

.fsm-filter-bar__label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--fsm-text-muted);
    margin-right: var(--space-sm);
}

.fsm-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fsm-gray-600);
    background-color: var(--fsm-bg);
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.fsm-filter-btn:hover {
    border-color: var(--fsm-blue-500);
    color: var(--fsm-blue-600);
    background-color: #eff6ff;
}

.fsm-filter-btn.is-active {
    background-color: var(--fsm-blue-600);
    border-color: var(--fsm-blue-600);
    color: #ffffff;
}


/* ==========================================================================
   12. THEMATIC CARDS (Icon cards)
   ========================================================================== */

.fsm-thematic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-xl);
}

/* Home page variant: 2 rows x 3 cols (matches React 6-col grid) */
.fsm-thematic-grid--home {
    grid-template-columns: repeat(3, 1fr);
}

.fsm-thematic-card {
    background: var(--fsm-bg);
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.fsm-thematic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--fsm-blue-400);
}

.fsm-thematic-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
    line-height: 1;
}

.fsm-thematic-card__title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: var(--space-sm);
}

.fsm-thematic-card__count {
    font-size: var(--text-sm);
    color: var(--fsm-text-muted);
}

/* Detailed thematic card (thematics page) — gradient banner + content */
.fsm-thematic-card--detailed {
    padding: 0;
    text-align: left;
    overflow: hidden;
}

.fsm-thematic-card__banner {
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsm-thematic-card__banner-icon {
    font-size: 3.5rem;
}

.fsm-thematic-card__content {
    padding: var(--space-xl);
}

.fsm-thematic-card__description {
    font-size: var(--text-sm);
    color: var(--fsm-gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.fsm-thematic-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--fsm-text-muted);
}


/* ==========================================================================
   13. RESPONSIVE TABLES
   ========================================================================== */

.fsm-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-md);
    border: 1px solid var(--fsm-border);
}

.fsm-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.fsm-table-wrapper th {
    background-color: var(--fsm-gray-50);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--fsm-navy);
    text-align: left;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 2px solid var(--fsm-border);
    white-space: nowrap;
}

.fsm-table-wrapper td {
    font-size: var(--text-sm);
    color: var(--fsm-gray-600);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--fsm-border);
}

.fsm-table-wrapper tr:last-child td {
    border-bottom: none;
}

.fsm-table-wrapper tr:hover td {
    background-color: var(--fsm-gray-50);
}


/* ==========================================================================
   14. ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fsm-animate {
    animation: fadeInUp 0.5s ease-out both;
}

.fsm-animate--delay-1 { animation-delay: 0.1s; }
.fsm-animate--delay-2 { animation-delay: 0.2s; }
.fsm-animate--delay-3 { animation-delay: 0.3s; }
.fsm-animate--delay-4 { animation-delay: 0.4s; }
.fsm-animate--delay-5 { animation-delay: 0.5s; }


/* ==========================================================================
   14b. BUTTON SYSTEM (matches React shadcn/ui buttons)
   ========================================================================== */

.fsm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 8px 16px;
    height: 36px;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.fsm-btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

/* Default: dark bg, white text */
.fsm-btn-primary,
.fsm-btn-default {
    background-color: #171717;
    color: #fafafa;
    box-shadow: var(--shadow-sm);
}

.fsm-btn-primary:hover,
.fsm-btn-default:hover {
    background-color: #171717e6;
    color: #fafafa;
}

/* Outline: transparent, border */
.fsm-btn-outline {
    background-color: transparent;
    color: var(--fsm-text);
    border: 1px solid #e5e5e5;
    box-shadow: var(--shadow-sm);
}

.fsm-btn-outline:hover {
    background-color: #f5f5f5;
}

/* Secondary: light gray bg */
.fsm-btn-secondary {
    background-color: #f5f5f5;
    color: #171717;
    box-shadow: var(--shadow-sm);
}

.fsm-btn-secondary:hover {
    background-color: #f5f5f5cc;
}

/* Ghost: transparent, hover gray */
.fsm-btn-ghost {
    background-color: transparent;
    color: var(--fsm-text);
}

.fsm-btn-ghost:hover {
    background-color: #f5f5f5;
}

/* Destructive: red */
.fsm-btn-destructive {
    background-color: #ef4444;
    color: #fafafa;
    box-shadow: var(--shadow-sm);
}

.fsm-btn-destructive:hover {
    background-color: #ef4444e6;
    color: #fafafa;
}

/* Green (approve) */
.fsm-btn-green {
    background-color: #16a34a;
    color: #ffffff;
}

.fsm-btn-green:hover {
    background-color: #15803d;
    color: #ffffff;
}

/* Size variants */
.fsm-btn-sm {
    height: 32px;
    padding: 4px 12px;
    font-size: var(--text-xs);
    border-radius: 6px;
}

.fsm-btn-lg {
    height: 40px;
    padding: 8px 32px;
    border-radius: 6px;
}


/* ==========================================================================
   15. UTILITY CLASSES
   ========================================================================== */

.fsm-text-center { text-align: center; }
.fsm-text-muted { color: var(--fsm-text-muted); }
.fsm-mt-0 { margin-top: 0; }
.fsm-mt-section { margin-top: var(--space-2xl); }
.fsm-mb-0 { margin-bottom: 0; }
.fsm-mb-lg { margin-bottom: var(--space-lg); }
.fsm-mb-xl { margin-bottom: var(--space-xl); }
.fsm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   15b. RESPONSIVE — Small desktop / Tablet landscape (max-width: 1100px)
   ========================================================================== */

@media (max-width: 1100px) {
    .fsm-nav-link__icon {
        display: none;
    }
    .fsm-nav-link {
        padding: 8px 8px;
        font-size: 0.75rem;
    }
    .fsm-nav-chevron {
        margin-left: -2px;
    }
    .fsm-header__cta,
    .fsm-header__login-link {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   16. RESPONSIVE — Tablet (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

    :root {
        --header-height: 64px;
    }

    /* Header */
    .fsm-header__nav {
        display: none;
    }

    .fsm-header__toggle {
        display: flex;
    }

    .fsm-header__actions {
        gap: var(--space-xs);
    }

    /* Hide login/register buttons on mobile — they're in the mobile menu */
    .fsm-header__login-link,
    .fsm-header__actions .fsm-header__cta {
        display: none;
    }

    /* Keep language switcher and user menu visible */
    .fsm-header__actions .fsm-lang-switcher,
    .fsm-header__actions .fsm-user-menu {
        display: flex;
    }

    /* Hero */
    .fsm-hero {
        min-height: 420px;
        padding: var(--space-2xl) var(--space-md);
    }

    .fsm-hero__title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .fsm-hero__subtitle {
        font-size: var(--text-base);
    }

    .fsm-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .fsm-hero__cta {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Grids collapse */
    .fsm-grid--2,
    .fsm-grid--3,
    .fsm-grid--4 {
        grid-template-columns: 1fr;
    }

    /* Single org — stack to single column */
    .fsm-single-org__layout {
        grid-template-columns: 1fr;
    }

    .fsm-single-org__sidebar {
        order: -1;
    }

    /* Footer — 2 columns on tablet */
    .fsm-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }

    /* Page header */
    .fsm-page-header {
        padding: var(--space-2xl) 0;
    }

    .fsm-page-header__title {
        font-size: var(--text-3xl);
    }

    /* Single activity */
    .fsm-single-activity__title {
        font-size: var(--text-3xl);
    }

    .fsm-single-activity__info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Thematic grid */
    .fsm-thematic-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fsm-thematic-grid--home {
        grid-template-columns: repeat(2, 1fr);
    }

    .fsm-thematic-grid--page {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Section spacing */
    .fsm-section {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-2xl);
    }

    /* Filter bar — horizontal scroll */
    .fsm-filter-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
    }

    /* Footer bottom */
    .fsm-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* ==========================================================================
   17. RESPONSIVE — Phone (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {

    /* Container tighter padding */
    .fsm-container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    /* Hero */
    .fsm-hero {
        min-height: 360px;
        padding: var(--space-xl) var(--space-md);
    }

    .fsm-hero__title {
        font-size: 1.6rem;
    }

    .fsm-hero__date-badge {
        font-size: var(--text-xs);
        padding: 8px 16px;
    }

    /* Cards full width, reduced padding */
    .fsm-activity-card__body,
    .fsm-org-card__body {
        padding: var(--space-lg);
    }

    .fsm-activity-card__footer {
        padding: var(--space-sm) var(--space-lg);
    }

    /* Footer single column */
    .fsm-footer__grid {
        grid-template-columns: 1fr;
    }

    /* Single activity info */
    .fsm-single-activity__info-grid {
        grid-template-columns: 1fr;
    }

    .fsm-single-activity__title {
        font-size: var(--text-2xl);
    }

    /* Thematic grid single */
    .fsm-thematic-grid,
    .fsm-thematic-grid--home,
    .fsm-thematic-grid--page {
        grid-template-columns: 1fr;
    }

    /* News cards reduced padding on mobile */
    .fsm-news-card__header {
        padding: 20px 20px 12px;
    }

    .fsm-news-card__body {
        padding: 0 20px;
    }

    .fsm-news-card__footer {
        padding: 0 20px 20px;
        margin-top: 16px;
    }

    .fsm-news-card__title {
        font-size: var(--text-lg);
        margin-bottom: 12px;
    }

    /* Multilingual items stack */
    .fsm-single-activity__multilingual-item {
        flex-direction: column;
        gap: var(--space-xs);
    }

    /* Section titles */
    .fsm-section__title {
        font-size: var(--text-2xl);
    }

    /* Headings */
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
}


/* ==========================================================================
   18. PRINT STYLES
   ========================================================================== */

@media print {
    .fsm-header,
    .fsm-footer,
    .fsm-hero__actions,
    .fsm-filter-bar,
    .fsm-header__toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .fsm-hero {
        min-height: auto;
        padding: 1cm 0;
        background: none !important;
        color: #000;
    }

    .fsm-hero__title {
        color: #000;
        text-shadow: none;
    }

    .fsm-activity-card,
    .fsm-org-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}


/* ==========================================================================
   19. ADDITIONAL COMPONENT STYLES
   ========================================================================== */

/* Hero compact variant (CTA section) */
.fsm-hero--compact {
    min-height: auto;
    padding: var(--space-3xl) var(--space-lg);
}

/* Page content wrapper */
.fsm-page-content {
    padding: var(--space-3xl) 0;
    background-color: #f9fafb;
    min-height: 50vh;
}

/* Badge color system — matches React reference */
.fsm-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 2px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}

/* Activity type badges */
.fsm-badge--workshop    { background: #dbeafe; color: #1e40af; }
.fsm-badge--conference  { background: #dcfce7; color: #166534; }
.fsm-badge--panel       { background: #f3e8ff; color: #6b21a8; }
.fsm-badge--debate      { background: #fef9c3; color: #854d0e; }
.fsm-badge--artistic    { background: #fce7f3; color: #9d174d; }
.fsm-badge--assembly    { background: #e0e7ff; color: #3730a3; }

/* Organization type badges */
.fsm-badge--ong         { background: #dbeafe; color: #1e40af; }
.fsm-badge--association { background: #dcfce7; color: #166534; }
.fsm-badge--network     { background: #f3e8ff; color: #6b21a8; }
.fsm-badge--institution { background: #fef9c3; color: #854d0e; }
.fsm-badge--movement    { background: #fee2e2; color: #991b1b; }

/* Status badges */
.fsm-badge--pending     { background: #fef9c3; color: #854d0e; }
.fsm-badge--approved    { background: #dcfce7; color: #166534; }
.fsm-badge--rejected    { background: #fee2e2; color: #991b1b; }
.fsm-badge--cancelled   { background: #f3f4f6; color: #374151; }

/* Generic color badges */
.fsm-badge--blue        { background: #dbeafe; color: #1e40af; }
.fsm-badge--green       { background: #dcfce7; color: #166534; }
.fsm-badge--purple      { background: #f3e8ff; color: #6b21a8; }
.fsm-badge--yellow      { background: #fef9c3; color: #854d0e; }
.fsm-badge--red         { background: #fee2e2; color: #991b1b; }

/* Stats section — 4-col grid with colored icons */
.fsm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.fsm-stat-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 24px;
    text-align: center;
}

.fsm-stat-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.fsm-stat-card__icon--blue      { color: #2563eb; }
.fsm-stat-card__icon--turquoise { color: #06b6d4; }
.fsm-stat-card__icon--purple    { color: #8b5cf6; }
.fsm-stat-card__icon--yellow    { color: #0ea5e9; }
.fsm-stat-card__icon--green     { color: #059669; }
.fsm-stat-card__icon--teal      { color: #14b8a6; }

.fsm-stat-card__number {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.fsm-stat-card__label {
    font-size: var(--text-sm);
    color: #4b5563;
    margin-top: 8px;
}

/* Search bar */
.fsm-search-bar {
    position: relative;
    margin-bottom: var(--space-lg);
}

.fsm-search-bar__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.25rem;
    pointer-events: none;
}

.fsm-search-bar__input {
    width: 100%;
    height: 36px;
    padding: 4px 12px 4px 40px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: var(--text-sm);
    background: transparent;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.fsm-search-bar__input:focus {
    outline: none;
    border-color: #171717;
    box-shadow: 0 0 0 1px #171717;
}

.fsm-search-bar__input::placeholder {
    color: #9ca3af;
}

/* Thematic icon circles (home page) */
.fsm-thematic-icons {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.fsm-thematic-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.fsm-thematic-icon__circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    transition: transform var(--transition-fast);
}

.fsm-thematic-icon:hover .fsm-thematic-icon__circle {
    transform: scale(1.1);
}

.fsm-thematic-icon__circle--blue      { background: #3b82f6; }
.fsm-thematic-icon__circle--turquoise { background: #06b6d4; }
.fsm-thematic-icon__circle--green     { background: #059669; }
.fsm-thematic-icon__circle--teal      { background: #14b8a6; }
.fsm-thematic-icon__circle--purple    { background: #8b5cf6; }
.fsm-thematic-icon__circle--indigo    { background: #6366f1; }

.fsm-thematic-icon__label {
    font-size: var(--text-sm);
    color: #4b5563;
    font-weight: 500;
}

/* Thematic badges on page headers */
.fsm-thematic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.fsm-badge-thematic--header {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
}

/* Format badge on activity headers */
.fsm-format-badge {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Org header meta (badges + location) */
.fsm-org-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    margin-top: var(--space-md);
    color: #4b5563;
    font-size: var(--text-base);
}

/* Org logo on header */
.fsm-org-logo {
    margin-bottom: var(--space-lg);
}

.fsm-org-logo__img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    border: 3px solid var(--glass-border-strong);
    object-fit: cover;
    margin: 0 auto;
}

/* Activity info grid (single activity) */
.fsm-activity-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.fsm-info-item {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #dbeafe;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.fsm-info-item label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fsm-blue-600);
    margin-bottom: var(--space-xs);
}

.fsm-info-item span {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--fsm-navy);
}

.fsm-info-item small {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--fsm-text-muted);
}

.fsm-at-fsm-note,
.fsm-translation-note {
    color: var(--fsm-emerald);
    font-weight: 500;
}

/* Capacity bar */
.fsm-capacity-bar {
    margin-top: 8px;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.fsm-capacity-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #059669, #10b981);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Reservation box */
.fsm-reservation-box {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-lg, 16px);
    padding: var(--space-lg, 24px);
    margin-bottom: var(--space-2xl, 32px);
    text-align: center;
}
.fsm-reservation-box__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: var(--text-base, 16px);
    margin-bottom: 12px;
}
.fsm-reservation-box__status--confirmed {
    color: #059669;
}
.fsm-reservation-box__status--full {
    color: #dc2626;
}
.fsm-btn--reserve {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base, 16px);
    padding: 12px 32px;
}
.fsm-btn--cancel {
    color: #6b7280;
    border-color: #d1d5db;
}
.fsm-btn--cancel:hover {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* Multilingual box */
.fsm-multilang-box {
    background-color: var(--fsm-gray-50);
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.fsm-multilang-box__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    color: var(--fsm-navy);
}

.fsm-multilang-box p {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--fsm-border);
    margin-bottom: 0;
}

.fsm-multilang-box p:last-child {
    border-bottom: none;
}

/* Entry content */
.fsm-entry-content {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--fsm-gray-600);
    margin-bottom: var(--space-2xl);
}

.fsm-entry-content p {
    margin-bottom: 1.2em;
}

/* Co-organizers section */
.fsm-coorg-section {
    margin-bottom: var(--space-2xl);
}

.fsm-coorg-section__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.fsm-coorg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.fsm-coorg-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: var(--fsm-gray-100);
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fsm-text);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.fsm-coorg-chip a {
    color: inherit;
    text-decoration: none;
}

.fsm-coorg-chip:hover {
    background-color: #eff6ff;
    border-color: var(--fsm-blue-500);
    color: var(--fsm-blue-700);
}

/* Outcomes section */
.fsm-outcomes-section {
    border-left: 4px solid var(--fsm-emerald);
    background-color: #f0fdf4;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.fsm-outcomes-section__title {
    font-size: var(--text-xl);
    color: var(--fsm-emerald);
    margin-bottom: var(--space-md);
}

.fsm-outcomes-item {
    margin-bottom: var(--space-lg);
}

.fsm-outcomes-item__heading {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: var(--space-sm);
}

.fsm-outcomes-item__body {
    color: var(--fsm-gray-700);
    line-height: 1.7;
}

.fsm-outcomes-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

/* Articles section */
.fsm-articles-section {
    margin-bottom: var(--space-2xl);
}

.fsm-articles-section__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.fsm-article-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--fsm-border);
    transition: background-color var(--transition-fast);
}

.fsm-article-row:last-child {
    border-bottom: none;
}

.fsm-article-row:hover {
    background-color: var(--fsm-gray-50);
}

.fsm-article-row__link {
    font-weight: 500;
    color: var(--fsm-navy);
    flex: 1;
}

.fsm-article-row__link:hover {
    color: var(--fsm-blue-600);
}

.fsm-article-row__badge {
    flex-shrink: 0;
}

.fsm-article-row__date {
    font-size: var(--text-sm);
    color: var(--fsm-text-muted);
    flex-shrink: 0;
}

/* Badge small variant */
.fsm-badge--small {
    font-size: 11px;
    padding: 2px 8px;
}

/* Back link */
.fsm-back-link {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--fsm-border);
}

/* ══════════════════════════════════════════════════════
   Organization Profile Page (single-fsm_organization)
   ══════════════════════════════════════════════════════ */

/* Hero section */
.fsm-org-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0891b2 100%);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}
.fsm-org-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.fsm-org-hero__inner {
    display: flex;
    align-items: center;
    gap: 28px;
}
.fsm-org-hero__logo {
    flex-shrink: 0;
}
.fsm-org-hero__logo-img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    border: 3px solid rgba(255,255,255,0.3);
    object-fit: cover;
    background: #fff;
}
.fsm-org-hero__info {
    flex: 1;
    min-width: 0;
}
.fsm-org-hero__name {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}
.fsm-org-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.fsm-org-hero__location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.85);
    font-size: var(--text-sm);
}
.fsm-org-hero__thematics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

/* Stats bar */
.fsm-org-stats {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: -28px 0 32px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.fsm-org-stats__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    border-right: 1px solid var(--fsm-gray-100);
}
.fsm-org-stats__item:last-child {
    border-right: none;
}
.fsm-org-stats__number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fsm-navy);
    line-height: 1;
    display: flex;
    align-items: center;
}
.fsm-org-stats__label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fsm-text-muted);
    margin-top: 4px;
}

/* Page layout (main + sidebar) */
.fsm-org-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}
.fsm-org-page-main {
    min-width: 0;
}
.fsm-org-page-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: 24px;
}

/* Sections in main column */
.fsm-org-section {
    margin-bottom: var(--space-2xl);
}
.fsm-org-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--fsm-blue-500);
}
.fsm-org-section__title svg {
    flex-shrink: 0;
    color: var(--fsm-blue-500);
}
.fsm-org-section__body {
    color: var(--fsm-gray-600);
    line-height: 1.7;
}

/* Activities grid inside org page */
.fsm-grid--org-activities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* Publications list */
.fsm-org-publications-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.fsm-pub-card {
    display: block;
    background: #fff;
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}
.fsm-pub-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--fsm-blue-300, #93c5fd);
}
.fsm-pub-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.fsm-pub-card__date {
    font-size: var(--text-xs);
    color: var(--fsm-text-muted);
    margin-left: auto;
}
.fsm-pub-card__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--fsm-navy);
    margin: 0 0 6px;
    line-height: 1.4;
}
.fsm-pub-card__excerpt {
    font-size: var(--text-sm);
    color: var(--fsm-gray-500);
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fsm-pub-card__read {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--fsm-blue-600);
}
.fsm-pub-card:hover .fsm-pub-card__read {
    color: var(--fsm-blue-700);
}

/* Empty state */
.fsm-org-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--fsm-text-muted);
}
.fsm-org-empty svg {
    margin-bottom: 16px;
}
.fsm-org-empty p {
    font-size: var(--text-base);
    max-width: 400px;
    margin: 0 auto;
}

/* Sidebar cards */
.fsm-sidebar-card {
    background: #fff;
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}
.fsm-sidebar-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--fsm-blue-500);
}
.fsm-sidebar-card__title svg {
    flex-shrink: 0;
    color: var(--fsm-blue-500);
}
.fsm-sidebar-card__body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Contact items in sidebar */
.fsm-sidebar-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
    font-size: var(--text-sm);
    color: var(--fsm-gray-600);
    border-bottom: 1px solid var(--fsm-gray-100);
}
.fsm-sidebar-contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.fsm-sidebar-contact-item:first-child {
    padding-top: 0;
}
.fsm-sidebar-contact-item__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fsm-text-muted);
}
.fsm-sidebar-contact-item a {
    color: var(--fsm-blue-600);
    word-break: break-all;
}
.fsm-sidebar-contact-item a:hover {
    color: var(--fsm-blue-700);
}

/* Social links in sidebar */
.fsm-sidebar-social {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fsm-sidebar-social__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fsm-gray-600);
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.fsm-sidebar-social__link:hover {
    background: var(--fsm-gray-50);
    color: var(--fsm-blue-600);
}
.fsm-sidebar-social__link svg {
    flex-shrink: 0;
}

/* Share URL input */
.fsm-sidebar-share {
    display: flex;
    gap: 8px;
}
.fsm-sidebar-share__input {
    flex: 1;
    min-width: 0;
    font-size: var(--text-xs);
    padding: 6px 10px;
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-sm);
    background: var(--fsm-gray-50);
    color: var(--fsm-gray-600);
    cursor: pointer;
}
.fsm-sidebar-share__input:focus {
    outline: 2px solid var(--fsm-blue-500);
    outline-offset: -1px;
}

/* Legacy (kept for backward compat) */
.fsm-org-container {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}
.fsm-org-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-2xl);
    align-items: start;
}
.fsm-org-main {
    min-width: 0;
}
.fsm-org-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Organization content sections */
.fsm-org-mission,
.fsm-org-participation,
.fsm-org-thematics,
.fsm-org-activities {
    margin-bottom: var(--space-2xl);
}

.fsm-org-mission__title,
.fsm-org-participation__title,
.fsm-org-thematics__title,
.fsm-org-activities__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
}

.fsm-org-mission__body,
.fsm-org-participation__body {
    color: var(--fsm-gray-600);
    line-height: 1.7;
}

/* Contact card in sidebar */
.fsm-contact-card,
.fsm-social-card {
    background: var(--fsm-bg);
    border: 1px solid var(--fsm-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.fsm-contact-card__title,
.fsm-social-card__title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--fsm-blue-500);
}

.fsm-contact-item {
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
    color: var(--fsm-gray-600);
    border-bottom: 1px solid var(--fsm-gray-100);
}

.fsm-contact-item:last-child {
    border-bottom: none;
}

.fsm-contact-item__label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fsm-text-muted);
}

.fsm-contact-item a {
    color: var(--fsm-blue-600);
    word-break: break-all;
}

.fsm-contact-item a:hover {
    color: var(--fsm-blue-700);
}

/* Social links in sidebar */
.fsm-social-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.fsm-social-list a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--fsm-blue-600);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.fsm-social-list a:hover {
    color: var(--fsm-blue-700);
}

/* Card thumbnail image */
.fsm-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* Responsive: org profile page */
@media (max-width: 1024px) {
    .fsm-org-page-layout {
        grid-template-columns: 1fr;
    }
    .fsm-org-page-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-lg);
    }
    .fsm-grid--org-activities {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fsm-org-layout {
        grid-template-columns: 1fr;
    }

    .fsm-org-sidebar {
        order: -1;
    }

    .fsm-org-logo__img {
        width: 80px;
        height: 80px;
    }

    .fsm-org-hero__inner {
        flex-direction: column;
        text-align: center;
    }
    .fsm-org-hero__name {
        font-size: 1.5rem;
    }
    .fsm-org-hero__badges {
        justify-content: center;
    }
    .fsm-org-hero__thematics {
        justify-content: center;
    }
    .fsm-org-stats {
        margin-top: -20px;
    }
    .fsm-org-stats__item {
        padding: 14px 8px;
    }
    .fsm-org-stats__number {
        font-size: 1.25rem;
    }
    .fsm-grid--org-activities {
        grid-template-columns: 1fr;
    }
    .fsm-org-page-sidebar {
        grid-template-columns: 1fr;
    }

    .fsm-activity-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .fsm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fsm-thematic-icons {
        grid-template-columns: repeat(3, 1fr);
    }

    .fsm-thematic-grid--home {
        grid-template-columns: repeat(2, 1fr);
    }

    .fsm-hero__logo {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .fsm-activity-info {
        grid-template-columns: 1fr;
    }

    .fsm-article-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }

    .fsm-stats-grid {
        grid-template-columns: 1fr;
    }

    .fsm-thematic-icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .fsm-thematic-grid--home {
        grid-template-columns: 1fr;
    }

    .fsm-hero__logo {
        height: 64px;
    }
}


/* ==========================================================================
   19b. FLOATING SOCIAL SIDEBAR
   ========================================================================== */

.fsm-social-float {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fsm-social-float__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
}

.fsm-social-float__link:hover {
    opacity: 0.85;
    transform: scale(1.1);
    color: #ffffff;
}

.fsm-social-float__link--facebook   { background: #1877F2; }
.fsm-social-float__link--youtube    { background: #FF0000; }
.fsm-social-float__link--tiktok     { background: #000000; }
.fsm-social-float__link--x          { background: #1DA1F2; }
.fsm-social-float__link--whatsapp   { background: #25D366; }


/* ==========================================================================
   19c. RESPONSIVE — New components
   ========================================================================== */

@media (max-width: 768px) {
    /* Topbar: smaller text */
    .fsm-topbar {
        font-size: 11px;
        padding: 5px 0;
    }

    .fsm-topbar__text {
        font-size: 10px;
    }

    /* Slider */
    .fsm-slider__slide {
        min-height: 420px;
        padding: var(--space-2xl) var(--space-md);
    }

    .fsm-slider__arrow {
        display: none;
    }

    .fsm-slider__dots {
        bottom: 24px;
    }

    .fsm-slider__dot {
        width: 14px;
        height: 14px;
    }

    /* Floating social: hide */
    .fsm-social-float {
        display: none;
    }
}

@media (max-width: 480px) {
    .fsm-slider__slide {
        min-height: 360px;
        padding: var(--space-xl) var(--space-md);
    }

    /* Topbar: stack or hide on very small */
    .fsm-topbar__inner {
        font-size: 10px;
    }
}


/* ==========================================================================
   20. REDUCED MOTION (Accessibility)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   PAGE HERO — Gradient header for content pages
   ========================================================================== */

.fsm-page-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #0891b2 100%);
    padding: 60px 0 50px;
    overflow: hidden;
}

.fsm-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.02)"/></svg>') no-repeat center;
    background-size: cover;
}

.fsm-page-hero__content {
    position: relative;
    z-index: 1;
}

.fsm-page-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.fsm-page-hero__meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.fsm-page-hero__date,
.fsm-page-hero__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fsm-page-hero__date svg,
.fsm-page-hero__author svg {
    opacity: 0.7;
}

/* Breadcrumb */
.fsm-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    flex-wrap: wrap;
}

.fsm-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.fsm-breadcrumb a:hover {
    color: #ffffff;
}

.fsm-breadcrumb__sep {
    color: rgba(255, 255, 255, 0.35);
}

.fsm-breadcrumb__current {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* ==========================================================================
   ARTICLE CARD — White card container for page/post content
   ========================================================================== */

.fsm-container--narrow {
    max-width: 820px;
}

.fsm-article-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 48px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.fsm-article-card__thumbnail {
    margin: -48px -48px 32px -48px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.fsm-article-card__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.fsm-article-card__author-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.fsm-article-card__author-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1e293b;
}

.fsm-article-card__author-org {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.fsm-article-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    margin-top: 32px;
    border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
   ARTICLE CONTENT — Rich typography for page/post body
   ========================================================================== */

.fsm-article-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #374151;
}

.fsm-article-content > *:first-child {
    margin-top: 0;
}

.fsm-article-content > *:last-child {
    margin-bottom: 0;
}

.fsm-article-content p {
    margin-bottom: 1.4em;
}

.fsm-article-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-top: 2em;
    margin-bottom: 0.75em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #e5e7eb;
    letter-spacing: -0.01em;
}

.fsm-article-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
}

.fsm-article-content h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #374151;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}

.fsm-article-content a {
    color: #0891b2;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.fsm-article-content a:hover {
    color: #0e7490;
}

.fsm-article-content strong {
    font-weight: 700;
    color: #1e293b;
}

.fsm-article-content blockquote {
    margin: 1.8em 0;
    padding: 20px 24px;
    border-left: 4px solid #0891b2;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #0e7490;
    font-size: 1.125rem;
    line-height: 1.7;
}

.fsm-article-content blockquote p {
    margin-bottom: 0.5em;
}

.fsm-article-content blockquote p:last-child {
    margin-bottom: 0;
}

.fsm-article-content ol {
    margin: 1.4em 0;
    padding-left: 0;
    counter-reset: ol-counter;
    list-style: none;
}

.fsm-article-content ol > li {
    counter-increment: ol-counter;
    padding: 16px 20px 16px 56px;
    position: relative;
    margin-bottom: 12px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.fsm-article-content ol > li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 800;
}

.fsm-article-content ul {
    margin: 1.4em 0;
    padding-left: 0;
    list-style: none;
}

.fsm-article-content ul > li {
    padding: 10px 16px 10px 40px;
    position: relative;
    margin-bottom: 8px;
}

.fsm-article-content ul > li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 18px;
    width: 8px;
    height: 8px;
    background: #0891b2;
    border-radius: 50%;
}

.fsm-article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d1d5db, transparent);
    margin: 2em 0;
}

/* Responsive YouTube embeds */
.fsm-article-content iframe,
.fsm-article-content .wp-block-embed,
.fsm-article-content .wp-block-embed__wrapper {
    max-width: 100%;
}

.fsm-article-content .wp-block-embed {
    margin: 1.8em 0;
}

.fsm-article-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.fsm-article-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* ==========================================================================
   POST NAVIGATION — Prev/Next links
   ========================================================================== */

.fsm-post-nav {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.fsm-post-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.25s ease;
}

.fsm-post-nav__link:hover {
    border-color: #0891b2;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.1);
    transform: translateY(-2px);
}

.fsm-post-nav__link--next {
    text-align: right;
    align-items: flex-end;
}

.fsm-post-nav__label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0891b2;
}

.fsm-post-nav__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE — Page hero + article card
   ========================================================================== */

@media (max-width: 768px) {
    .fsm-page-hero {
        padding: 40px 0 36px;
    }

    .fsm-page-hero__title {
        font-size: 1.625rem;
    }

    .fsm-page-hero__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .fsm-article-card {
        padding: 24px;
        border-radius: 16px;
        margin-top: -20px;
    }

    .fsm-article-card__thumbnail {
        margin: -24px -24px 20px -24px;
        border-radius: 16px 16px 0 0;
    }

    .fsm-article-content h2 {
        font-size: 1.3rem;
    }

    .fsm-article-content ol > li {
        padding-left: 48px;
    }

    .fsm-post-nav {
        flex-direction: column;
    }

    .fsm-post-nav__link--next {
        text-align: left;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .fsm-page-hero {
        padding: 32px 0 28px;
    }

    .fsm-page-hero__title {
        font-size: 1.375rem;
    }

    .fsm-article-card {
        padding: 18px;
        border-radius: 12px;
    }

    .fsm-article-card__thumbnail {
        margin: -18px -18px 16px -18px;
        border-radius: 12px 12px 0 0;
    }

    .fsm-article-content {
        font-size: 1rem;
    }

    .fsm-article-content blockquote {
        padding: 16px 18px;
        font-size: 1rem;
    }
}


/* ==========================================================================
   21. PAYMENT PAGE
   ========================================================================== */

.fsm-payment-page {
    max-width: 560px;
    margin: 0 auto;
}

.fsm-payment-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.fsm-payment-amount__label {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fsm-blue-600);
    margin-bottom: 8px;
}

.fsm-payment-amount__value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fsm-navy);
    line-height: 1.1;
}

.fsm-payment-amount__value small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fsm-gray-500);
    margin-left: 4px;
}

.fsm-payment-page__subtitle {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--fsm-navy);
    margin-bottom: 16px;
}

/* Payment method cards */
.fsm-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.fsm-payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border: 2px solid var(--fsm-gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.fsm-payment-method:hover {
    border-color: var(--fsm-blue-400);
    background-color: #fafbff;
}

.fsm-payment-method.is-selected {
    border-color: var(--fsm-blue-600);
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.fsm-payment-method__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fsm-gray-100);
    border-radius: 10px;
}

.fsm-payment-method.is-selected .fsm-payment-method__icon {
    background: #dbeafe;
}

.fsm-payment-method__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fsm-payment-method__info strong {
    font-size: var(--text-base);
    color: var(--fsm-navy);
}

.fsm-payment-method__info span {
    font-size: var(--text-sm);
    color: var(--fsm-gray-500);
}

.fsm-payment-method__radio {
    flex-shrink: 0;
}

.fsm-payment-method__radio input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--fsm-blue-600);
    cursor: pointer;
}

/* Payment forms */
.fsm-payment-form {
    background: #ffffff;
    border: 1px solid var(--fsm-gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    animation: fadeIn 0.2s ease;
}

.fsm-stripe-card {
    padding: 14px;
    border: 1px solid var(--fsm-gray-200);
    border-radius: 8px;
    background: #ffffff;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.fsm-stripe-card:focus-within {
    border-color: var(--fsm-blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.fsm-payment-error {
    color: #dc2626;
    font-size: var(--text-sm);
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 6px;
    margin-bottom: 12px;
}

.fsm-payment-instructions {
    background: var(--fsm-gray-50);
    border: 1px solid var(--fsm-gray-200);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: var(--text-sm);
    color: var(--fsm-gray-600);
    line-height: 1.6;
}

.fsm-payment-instructions p:last-child {
    margin-bottom: 0;
}

.fsm-form-group {
    margin-bottom: 16px;
}

.fsm-form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--fsm-navy);
    margin-bottom: 6px;
}

.fsm-input {
    width: 100%;
    height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--fsm-gray-200);
    border-radius: 8px;
    font-size: var(--text-base);
    color: var(--fsm-navy);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.fsm-input:focus {
    outline: none;
    border-color: var(--fsm-blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.fsm-input::placeholder {
    color: var(--fsm-gray-400);
}

/* Full-width button variant */
.fsm-btn--full {
    width: 100%;
    height: 44px;
    font-size: var(--text-base);
    border-radius: 10px;
}

/* Loading state */
.fsm-payment-loading {
    text-align: center;
    padding: 32px;
}

.fsm-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--fsm-gray-200);
    border-top-color: var(--fsm-blue-600);
    border-radius: 50%;
    margin: 0 auto 12px;
    animation: fsm-spin 0.7s linear infinite;
}

@keyframes fsm-spin {
    to { transform: rotate(360deg); }
}

.fsm-payment-loading p {
    font-size: var(--text-sm);
    color: var(--fsm-gray-500);
}

/* Payment success */
.fsm-payment-success {
    text-align: center;
    padding: 48px 32px;
    max-width: 480px;
    margin: 0 auto;
}

.fsm-payment-success__icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.fsm-payment-success h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #059669;
    margin-bottom: 12px;
}

.fsm-payment-success p {
    font-size: var(--text-base);
    color: var(--fsm-gray-600);
    margin-bottom: 8px;
}

.fsm-payment-success__ref {
    font-size: var(--text-sm);
    color: var(--fsm-gray-500);
    margin-bottom: 24px;
}

/* Notice messages */
.fsm-notice {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: var(--text-sm);
    line-height: 1.5;
}

.fsm-notice p {
    margin: 0;
}

.fsm-notice-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.fsm-notice-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #854d0e;
}

.fsm-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.fsm-notice-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Payment responsive */
@media (max-width: 480px) {
    .fsm-payment-amount {
        padding: 24px 16px;
    }

    .fsm-payment-amount__value {
        font-size: 2rem;
    }

    .fsm-payment-form {
        padding: 18px;
    }

    .fsm-payment-method {
        padding: 12px 14px;
        gap: 12px;
    }

    .fsm-payment-method__icon {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}


/* ==========================================================================
   22. FEES PAGE
   ========================================================================== */

.fsm-fees__intro {
    font-size: var(--text-lg);
    color: var(--fsm-gray-600);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 36px;
}

.fsm-fees__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.fsm-fees__card {
    background: #ffffff;
    border: 2px solid var(--fsm-gray-200);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fsm-fees__card:hover {
    border-color: var(--fsm-blue-400);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.fsm-fees__card--highlight {
    border-color: var(--fsm-blue-600);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 40%);
    position: relative;
}

.fsm-fees__card--highlight::before {
    content: "Populaire";
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--fsm-blue-600);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 14px;
    border-radius: 20px;
}

.fsm-fees__card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fsm-gray-100);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--fsm-blue-600);
}

.fsm-fees__card--highlight .fsm-fees__card-icon {
    background: #dbeafe;
}

.fsm-fees__card-title {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--fsm-navy);
    margin: 0 0 6px;
}

.fsm-fees__card-desc {
    font-size: var(--text-sm);
    color: var(--fsm-gray-500);
    margin: 0 0 20px;
}

.fsm-fees__card-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--fsm-navy);
    line-height: 1;
    margin-bottom: 24px;
}

.fsm-fees__card-price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fsm-gray-500);
    margin-left: 2px;
}

.fsm-fees__card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.fsm-fees__card-features li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: var(--text-sm);
    color: var(--fsm-gray-600);
    border-bottom: 1px solid var(--fsm-gray-100);
}

.fsm-fees__card-features li:last-child {
    border-bottom: none;
}

.fsm-fees__card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Payment methods on fees page */
.fsm-fees__methods {
    background: var(--fsm-gray-50);
    border: 1px solid var(--fsm-gray-200);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 32px;
}

.fsm-fees__methods h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--fsm-navy);
    margin: 0 0 16px;
}

.fsm-fees__methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.fsm-fees__method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--fsm-gray-200);
    border-radius: 10px;
    padding: 12px 18px;
    flex: 1;
    min-width: 200px;
}

.fsm-fees__method-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fsm-fees__method-item strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--fsm-navy);
}

.fsm-fees__method-item span {
    font-size: var(--text-xs);
    color: var(--fsm-gray-500);
}

/* Notes */
.fsm-fees__notes {
    margin-bottom: 32px;
}

.fsm-fees__notes h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--fsm-navy);
    margin: 0 0 12px;
}

.fsm-fees__notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fsm-fees__notes ul li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: var(--text-sm);
    color: var(--fsm-gray-600);
    line-height: 1.6;
}

.fsm-fees__notes ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--fsm-blue-500);
    border-radius: 50%;
}

.fsm-fees__notes ul li a {
    color: var(--fsm-blue-600);
}

/* CTA */
.fsm-fees__cta {
    text-align: center;
    padding: 24px 0;
}

/* Fees responsive */
@media (max-width: 768px) {
    .fsm-fees__grid {
        grid-template-columns: 1fr;
    }

    .fsm-fees__methods-grid {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .fsm-fees__card {
        padding: 24px;
    }

    .fsm-fees__card-price {
        font-size: 2rem;
    }

    .fsm-fees__methods {
        padding: 20px;
    }
}


/* ==========================================================================
   23. ADVANCED SEARCH & FILTER SYSTEM
   ========================================================================== */

.fsm-advanced-search {
    background: #ffffff;
    border: 1px solid var(--fsm-border, #e5e7eb);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fsm-filter-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fsm-filter-select {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.fsm-filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.fsm-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.fsm-filter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.fsm-filter-btn.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Page header row */
.fsm-page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Page hero subtitle */
.fsm-page-hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-top: 8px;
    max-width: 600px;
}

/* Article card for archive grid */
.fsm-grid .fsm-article-card {
    margin-top: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.fsm-grid .fsm-article-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Responsive filter row */
@media (max-width: 768px) {
    .fsm-advanced-search {
        padding: 16px;
    }

    .fsm-filter-row {
        grid-template-columns: 1fr 1fr !important;
    }

    .fsm-page-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .fsm-filter-row {
        grid-template-columns: 1fr !important;
    }
}
