/* ═══════════════════════════════════════════════════════════════
   Thai Education Foundation (TEF) — Master Frontend Stylesheet
   Theme: Enchanted Forest Glassmorphic Design System
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --color-bg-light: #F1F7ED;
    --color-forest-dark: #243E36;
    --color-sage-accent: #7CA982;
    --color-emerald-glow: #5B8C67;
    --color-emerald-bright: #3ea86b;
    --color-card-bg-light: rgba(255, 255, 255, 0.88);
    --color-border-light: rgba(124, 169, 130, 0.28);
    --color-text-main: #1D2D27;
    --color-text-muted: #4F675D;
    --color-surface-hover: rgba(124, 169, 130, 0.15);

    /* Glassmorphism Variables */
    --glass-bg: rgba(241, 247, 237, 0.92);
    --glass-border: rgba(124, 169, 130, 0.32);
    --glass-shadow: 0 12px 36px -4px rgba(36, 62, 54, 0.08);

    /* Typography */
    --font-heading: 'Prompt', sans-serif;
    --font-body: 'Sarabun', sans-serif;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Theme */
body.dark, html.dark body, [data-theme="dark"] {
    --color-bg-light: #0F1A16;
    --color-forest-dark: #F1F7ED;
    --color-card-bg-light: rgba(24, 39, 34, 0.88);
    --color-border-light: rgba(124, 169, 130, 0.22);
    --color-text-main: #E2ECE6;
    --color-text-muted: #A3BFB3;
    --color-surface-hover: rgba(124, 169, 130, 0.2);
    --glass-bg: rgba(15, 26, 22, 0.94);
    --glass-border: rgba(124, 169, 130, 0.28);
    --glass-shadow: 0 14px 40px -4px rgba(0, 0, 0, 0.55);
}

/* Grayscale Mode */
body.grayscale, html.grayscale body, .grayscale-mode {
    filter: grayscale(100%) !important;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1.5rem;
    background: var(--color-forest-dark);
    color: var(--color-bg-light);
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 99999;
    box-shadow: var(--glass-shadow);
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-sage-accent);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-forest-dark);
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 20px;
    background: var(--color-forest-dark);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    z-index: 99999;
    font-weight: 600;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER & LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 52px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 169, 130, 0.16);
    border: 1px solid var(--color-border-light);
    color: var(--color-sage-accent);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: clamp(0.95rem, 1.2vw, 1.125rem);
}

/* Page Header Banner with Background Image & Overlay */
.page-header-banner {
    position: relative;
    overflow: hidden;
    padding: 72px 0 52px;
}
.page-header-banner.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-header-banner .banner-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.page-header-banner.has-bg-image .section-badge {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.page-header-banner.has-bg-image .section-title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}
.page-header-banner.has-bg-image .section-desc {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}


/* Glass Panel & Cards */
.glass-card {
    background: var(--color-card-bg-light);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
    transition: var(--transition);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px -6px rgba(36, 62, 54, 0.14);
    border-color: var(--color-sage-accent);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #7CA982 0%, #5B8C67 100%);
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px -4px rgba(91, 140, 103, 0.42);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -2px rgba(91, 140, 103, 0.55);
    background: linear-gradient(135deg, #8ab890 0%, #4f7e5b 100%);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    color: var(--color-forest-dark);
    border: 1.5px solid var(--color-border-light);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--color-sage-accent);
    color: #fff !important;
    border-color: var(--color-sage-accent);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   STICKY TOP NAVIGATION (.main-nav)
   ═══════════════════════════════════════════════════════════════ */
.main-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.35s ease, background 0.3s ease;
}

.main-nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo picture,
.nav-logo-picture {
    display: inline-flex;
    align-items: center;
}

.nav-logo picture img,
.site-logo-img {
    height: 32px;
    max-height: 34px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-logo:hover picture img,
.nav-logo:hover .site-logo-img {
    opacity: 0.95;
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14.5px;
    color: var(--color-forest-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-sage-accent);
    transition: width 0.25s ease;
}

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

.nav-item:hover > .nav-link::after,
.nav-item.active > .nav-link::after {
    width: 100%;
}

.nav-caret {
    font-size: 10px;
    transition: transform 0.25s ease;
}
.nav-item:hover .nav-caret {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 240px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
}
.dropdown-link i {
    color: var(--color-sage-accent);
    font-size: 14px;
}
.dropdown-link:hover {
    background: var(--color-surface-hover);
    color: var(--color-sage-accent);
}

/* Mega Menu */
.nav-mega {
    position: absolute;
    top: calc(100% + 8px);
    left: -120px;
    width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: 0 20px 42px rgba(0,0,0,0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.nav-item:hover .nav-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}
.mega-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-forest-dark);
}
.mega-view-all {
    font-size: 12px;
    color: var(--color-sage-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mega-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 12.5px;
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    line-height: 1.35;
}
.mega-link i {
    font-size: 8px;
    color: var(--color-sage-accent);
    flex-shrink: 0;
}
.mega-link:hover {
    background: var(--color-surface-hover);
    color: var(--color-sage-accent);
}

/* Nav Actions (Search, Lang, Theme, Mobile toggle) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Nav Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--glass-border);
    color: var(--color-forest-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

body.dark .nav-icon-btn {
    background: rgba(255, 255, 255, 0.08);
}

.nav-icon-btn:hover {
    background: var(--color-sage-accent);
    color: #fff;
    border-color: var(--color-sage-accent);
}

.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 4px 10px;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

body.dark .lang-switcher {
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn {
    color: var(--color-text-muted);
    padding: 2px 4px;
    border-radius: 4px;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--color-sage-accent);
}

.lang-sep {
    color: var(--color-border-light);
}

.nav-link-donate {
    background: rgba(124, 169, 130, 0.18) !important;
    border: 1px solid var(--color-border-light) !important;
    border-radius: var(--radius-full) !important;
    padding: 6px 16px !important;
    color: var(--color-sage-accent) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.nav-link-donate:hover {
    background: var(--color-sage-accent) !important;
    color: #fff !important;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-forest-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    gap: 10px;
}

.search-submit {
    background: var(--color-sage-accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    font-size: 13.5px;
    transition: var(--transition);
}

.search-submit:hover {
    background: #6a9570;
}

.search-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-forest-dark);
    padding: 4px 8px;
}

@media (max-width: 1024px) {
    .nav-hamburger {
        display: flex;
    }
}

.nav-search-btn, .nav-theme-btn, .nav-lang-btn, .nav-toggle-btn {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--glass-border);
    color: var(--color-forest-dark);
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

body.dark .nav-search-btn, 
body.dark .nav-theme-btn, 
body.dark .nav-lang-btn, 
body.dark .nav-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
}

.nav-search-btn:hover, .nav-theme-btn:hover, .nav-lang-btn:hover, .nav-toggle-btn:hover {
    background: var(--color-sage-accent);
    color: #fff;
    border-color: var(--color-sage-accent);
}

.nav-toggle-btn {
    display: none;
    padding: 0 10px;
}

/* Search Dropdown / Bar */
.nav-search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 24px;
    display: none;
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}
.nav-search-bar.active {
    display: block;
}
.search-form-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 12px 46px 12px 18px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--color-border-light);
    background: var(--color-card-bg-light);
    color: var(--color-text-main);
    font-size: 14px;
    outline: none;
}
.search-input:focus {
    border-color: var(--color-sage-accent);
}
.search-submit-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-sage-accent);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════════════ */
.hero-section {
    position: relative;
    padding: 24px 24px 0;
    max-width: 1360px;
    margin: 0 auto;
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    max-height: 720px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
}

.slide-item:not([style*="background-image"]) {
    background: linear-gradient(135deg, #243E36 0%, #152621 100%);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 26, 22, 0.88) 0%, rgba(36, 62, 54, 0.65) 55%, rgba(15, 26, 22, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 48px;
    color: #FFFFFF;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 169, 130, 0.25);
    border: 1px solid rgba(124, 169, 130, 0.4);
    backdrop-filter: blur(8px);
    color: #A3D9AC;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    color: #FFFFFF;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    color: #DDECD5;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 620px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Slider Controls */
.slider-arrows {
    position: absolute;
    right: 36px;
    bottom: 36px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--color-sage-accent);
    border-color: var(--color-sage-accent);
    transform: scale(1.08);
}

.slider-dots {
    position: absolute;
    left: 48px;
    bottom: 36px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    width: 32px;
    border-radius: 8px;
    background: var(--color-sage-accent);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED IMPACT COUNTERS
   ═══════════════════════════════════════════════════════════════ */
.counter-section {
    padding: 40px 0 60px;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.counter-card {
    text-align: center;
    padding: 32px 20px;
}

.counter-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(124, 169, 130, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage-accent);
    font-size: 24px;
    border: 1px solid var(--color-border-light);
}

.counter-num-wrap {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-forest-dark);
    line-height: 1.1;
    margin-bottom: 8px;
}

.counter-label {
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION (4 Switchable Layouts: Grid, Slider, Accordion, Timeline)
   ═══════════════════════════════════════════════════════════════ */
.project-card-image {
    position: relative;
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    flex: 0 0 220px;
    background: linear-gradient(135deg, #243E36 0%, #152621 100%);
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.project-card-image img {
    width: 100%;
    height: 220px;
    max-height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.glass-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-category-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 26, 22, 0.8);
    backdrop-filter: blur(8px);
    color: #A3D9AC;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(124, 169, 130, 0.3);
    z-index: 2;
}

.project-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
}

.project-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-forest-dark);
}

.project-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-card-title a:hover {
    color: var(--color-sage-accent);
}

.project-card-excerpt {
    color: var(--color-text-muted);
    font-size: 13.5px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-sage-accent);
    font-weight: 600;
    font-size: 13.5px;
    margin-top: auto;
    padding-top: 4px;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.project-card-link:hover {
    gap: 10px;
    color: var(--color-forest-dark);
}

/* 1. Projects Grid */
.projects-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.projects-layout-grid article.glass-card,
.related-projects-grid article.glass-card {
    display: flex;
    flex-direction: column;
}

/* 2. Projects Slider / Carousel */
.projects-layout-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 4px 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.projects-layout-slider .glass-card {
    min-width: 320px;
    max-width: 360px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* 3. Projects Accordion */
.projects-layout-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.accordion-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-forest-dark);
    cursor: pointer;
}
.accordion-header i {
    transition: transform 0.25s ease;
    color: var(--color-sage-accent);
}
.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}
.accordion-body {
    display: none;
    padding: 0 24px 24px;
    color: var(--color-text-muted);
}
.accordion-item.active .accordion-body {
    display: block;
}

/* 4. Projects Timeline */
.projects-layout-timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}
.projects-layout-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-sage-accent);
    opacity: 0.35;
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 36px;
}
.timeline-dot {
    position: absolute;
    left: 10px;
    top: 24px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-sage-accent);
    border: 4px solid var(--color-bg-light);
    box-shadow: 0 0 12px var(--color-sage-accent);
}

/* ═══════════════════════════════════════════════════════════════
   PARTNERS & DONORS (3 Switchable Layouts: Carousel, Grid, Timeline)
   ═══════════════════════════════════════════════════════════════ */
.partner-logo-box {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
body.dark .partner-logo-box {
    background: rgba(0, 0, 0, 0.3);
}
.partner-logo-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(80%);
    transition: var(--transition);
}
.glass-card:hover .partner-logo-box img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* 1. Partners Carousel */
.partners-layout-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 8px 4px 20px;
    scroll-snap-type: x mandatory;
}
.partners-layout-carousel .partner-card {
    min-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 20px;
    text-align: center;
}

/* 2. Partners Grid */
.partners-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.partners-layout-grid .partner-card {
    padding: 22px;
    text-align: center;
}

/* 3. Partners Timeline */
.partners-layout-timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}
.partners-layout-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-sage-accent);
    opacity: 0.3;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT & BRANCH OFFICES
   ═══════════════════════════════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    padding: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}
.info-item:last-child {
    margin-bottom: 0;
}
.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(124, 169, 130, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage-accent);
    font-size: 18px;
    flex-shrink: 0;
}
.info-text h4 {
    font-size: 14.5px;
    margin-bottom: 4px;
}
.info-text p, .info-text a {
    color: var(--color-text-muted);
    font-size: 13.5px;
}

.branches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.branch-card {
    padding: 18px;
}
.branch-card h5 {
    font-size: 13.5px;
    margin-bottom: 6px;
}
.branch-card p {
    font-size: 12.5px;
    color: var(--color-text-muted);
}

.map-container {
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Form */
.contact-form-card {
    padding: 36px;
}

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-forest-dark);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-border-light);
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

body.dark .form-input, 
body.dark .form-textarea, 
body.dark .form-select {
    background: rgba(0, 0, 0, 0.25);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--color-sage-accent);
}

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

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.captcha-badge {
    background: rgba(124, 169, 130, 0.2);
    border: 1px solid var(--color-border-light);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-sage-accent);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER (.site-footer)
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
    position: relative;
    background: #152621;
    color: #DDECD5;
    margin-top: auto;
    overflow: hidden;
    border-top: 1px solid rgba(124, 169, 130, 0.2);
}

.footer-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 169, 130, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 24px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    width: fit-content;
}

.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.footer-logo-link:hover .footer-logo-badge {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.footer-brand picture,
.footer-logo-picture {
    display: inline-flex;
    align-items: center;
}

.footer-logo {
    height: 42px;
    max-height: 46px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #A3BFB3;
    max-width: 380px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(124, 169, 130, 0.25);
    color: #DDECD5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-sage-accent);
    color: #fff;
    transform: translateY(-3px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--color-sage-accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: #A3BFB3;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-link-arrow {
    font-size: 10px;
    color: var(--color-sage-accent);
}

.footer-link:hover {
    color: #FFFFFF;
    transform: translateX(4px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 13.5px;
    color: #A3BFB3;
    line-height: 1.45;
}

.footer-contact-icon {
    color: var(--color-sage-accent);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-link {
    color: #A3BFB3;
}
.footer-contact-link:hover {
    color: #fff;
}

.btn-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-sage-accent);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
}
.btn-footer-cta:hover {
    background: #8ec094;
    transform: translateY(-2px);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
}

.footer-bottom-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #79978C;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-policy-link {
    color: #79978C;
}
.footer-policy-link:hover {
    color: #FFFFFF;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-forest-dark);
    color: #fff;
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 900;
    transition: var(--transition);
}
.back-to-top:hover {
    background: var(--color-sage-accent);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   COOKIE BANNER (.cookie-banner)
   ═══════════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
    padding: 20px 26px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.cookie-icon {
    font-size: 26px;
    color: var(--color-sage-accent);
    flex-shrink: 0;
}

.cookie-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 2px;
}

.cookie-desc {
    font-size: 12.5px;
    color: var(--color-text-muted);
}

.cookie-policy-link {
    color: var(--color-sage-accent);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.cookie-reject {
    background: rgba(0, 0, 0, 0.08);
    color: var(--color-text-main);
    border: 1px solid var(--color-border-light);
}
.cookie-reject:hover {
    background: rgba(0, 0, 0, 0.16);
}

.cookie-accept {
    background: var(--color-sage-accent);
    color: #fff;
}
.cookie-accept:hover {
    background: #6a9570;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    .nav-toggle-btn {
        display: inline-flex;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 16px;
    }
    .nav-logo picture img,
    .nav-logo .site-logo-img {
        height: 34px !important;
        max-height: 36px !important;
        width: 34px !important;
        max-width: 36px !important;
        object-fit: contain;
    }
    .hero-slider {
        height: 60vh;
        min-height: 440px;
    }
    .hero-content {
        padding: 0 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-logo-badge {
        padding: 6px 14px;
        border-radius: 10px;
    }
    .footer-logo {
        height: 36px !important;
        max-height: 40px !important;
        width: auto !important;
        max-width: 190px !important;
        object-fit: contain;
    }
    .branches-grid {
        grid-template-columns: 1fr;
    }
    .cookie-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-actions {
        justify-content: flex-end;
    }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 360px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--glass-border);
    padding: 24px;
    z-index: 10000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    transition: right 0.35s ease;
    overflow-y: auto;
}
.mobile-nav-drawer.active {
    right: 0;
}
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}
.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-forest-dark);
    cursor: pointer;
}
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-forest-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}
.mobile-nav-overlay.active {
    display: block;
}

/* ─────────────────────────────────────────────
   Rich Text & Editorial Typography (.rte-content, .page-content, .project-body-content, etc.)
───────────────────────────────────────────── */
.rte-content,
.page-content,
.project-body-content,
.research-body-content,
.consultation-body-content,
.rich-text,
.page-body,
.project-body,
.research-body {
    font-family: var(--font-body);
    font-size: 1.075rem;
    line-height: 1.88;
    color: var(--color-text-main, #243329);
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
}

/* Beautiful Paragraphs */
.rte-content p,
.page-content p,
.project-body-content p,
.research-body-content p,
.consultation-body-content p,
.rich-text p {
    margin: 0 0 1.45rem 0;
    line-height: 1.88;
}

.rte-content p:last-child,
.page-content p:last-child,
.project-body-content p:last-child,
.research-body-content p:last-child,
.consultation-body-content p:last-child,
.rich-text p:last-child {
    margin-bottom: 0;
}

/* Headings within Rich Content */
.rte-content h1, .page-content h1, .project-body-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 2.5vw, 2.25rem);
    color: var(--color-forest-dark);
    margin: 2.2rem 0 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.rte-content h2, .page-content h2, .project-body-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    color: var(--color-forest-dark);
    margin: 2rem 0 1rem;
    font-weight: 700;
    line-height: 1.35;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(124, 169, 130, 0.25);
}

.rte-content h3, .page-content h3, .project-body-content h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1.6vw, 1.45rem);
    color: var(--color-forest-dark);
    margin: 1.6rem 0 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.rte-content h4, .rte-content h5, .rte-content h6,
.page-content h4, .page-content h5, .page-content h6 {
    font-family: var(--font-heading);
    color: var(--color-forest-dark);
    margin: 1.3rem 0 0.6rem;
    font-weight: 600;
}

/* Lists — Restoring list-style and graceful indentations */
.rte-content ul,
.page-content ul,
.project-body-content ul,
.research-body-content ul,
.consultation-body-content ul,
.rich-text ul {
    list-style: disc outside;
    margin: 0 0 1.45rem 2rem;
    padding: 0;
}

.rte-content ol,
.page-content ol,
.project-body-content ol,
.research-body-content ol,
.consultation-body-content ol,
.rich-text ol {
    list-style: decimal outside;
    margin: 0 0 1.45rem 2rem;
    padding: 0;
}

.rte-content li,
.page-content li,
.project-body-content li,
.research-body-content li,
.consultation-body-content li,
.rich-text li {
    margin-bottom: 0.55rem;
    line-height: 1.78;
}

.rte-content ul ul, .page-content ul ul, .rte-content ol ul {
    list-style: circle outside;
    margin: 0.4rem 0 0.4rem 1.5rem;
}

/* Blockquotes */
.rte-content blockquote,
.page-content blockquote,
.project-body-content blockquote,
.research-body-content blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.8rem;
    background: rgba(124, 169, 130, 0.09);
    border-left: 4px solid var(--color-sage-accent, #7ca982);
    border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
    color: #243e32;
    font-style: italic;
    line-height: 1.82;
}

/* FontAwesome Icons within Content & Paragraphs */
.rte-content i[class*="fa-"],
.page-content i[class*="fa-"],
.project-body-content i[class*="fa-"],
.research-body-content i[class*="fa-"],
.consultation-body-content i[class*="fa-"],
.rich-text i[class*="fa-"] {
    display: inline-block;
    vertical-align: -0.125em;
    line-height: 1;
    margin-right: 0.35rem;
}

/* Links inside content */
.rte-content a,
.page-content a,
.project-body-content a {
    color: #1b6338;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.rte-content a:hover,
.page-content a:hover,
.project-body-content a:hover {
    color: #0d381e;
}

/* Tables inside content */
.rte-content table,
.page-content table,
.project-body-content table {
    width: 100%;
    margin: 1.8rem 0;
    border-collapse: collapse;
    font-size: 0.98rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rte-content th, .page-content th {
    background: rgba(21, 51, 34, 0.07);
    color: var(--color-forest-dark);
    font-weight: 600;
    padding: 12px 16px;
    border: 1px solid var(--color-border-light, #e2e8f0);
    text-align: left;
}

.rte-content td, .page-content td {
    padding: 11px 16px;
    border: 1px solid var(--color-border-light, #e2e8f0);
    color: var(--color-text-main);
}

.rte-content tr:nth-child(even) td, .page-content tr:nth-child(even) td {
    background: rgba(124, 169, 130, 0.03);
}

/* Horizontal Rule */
.rte-content hr, .page-content hr {
    margin: 2.2rem 0;
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(124, 169, 130, 0.4), transparent);
}

/* Images & Figures */
.rte-content img,
.page-content img,
.project-body-content img,
.rich-text img,
.page-body img,
.project-body img,
.research-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 14px 0;
}

img.img-fluid { width: 100%; height: auto; }
img.img-rounded { border-radius: 14px; }
img.img-circle { border-radius: 50%; }
img.img-shadow { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15), 0 8px 10px -6px rgba(0,0,0,0.1); }
img.img-thumbnail { border: 1px solid #cbd5e1; padding: 5px; background: #ffffff; border-radius: 8px; }

.float-start { float: left; margin-right: 1.5rem !important; margin-bottom: 1rem !important; }
.float-end { float: right; margin-left: 1.5rem !important; margin-bottom: 1rem !important; }
.d-block.mx-auto { display: block !important; margin-left: auto !important; margin-right: auto !important; }

figure.image { display: table; margin: 18px auto; max-width: 100%; text-align: center; }
figure.image figcaption { font-size: 13.5px; color: #64748b; margin-top: 8px; font-style: italic; }
figure.figure-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
figure.figure-centered { display: table; margin: 20px auto; }

