/*
Theme Name: IbaFest
Theme URI: https://ibafest.com
Author: IbaFest
Author URI: https://ibafest.com
Description: Official WordPress theme for the Ibadan Book and Arts Festival (IbaFest) — a vibrant celebration of African literature, creativity, and cultural dialogue.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ibafest
Tags: culture, festival, literature, arts, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   FONT FACES
   ========================================================= */
@font-face {
    font-family: 'CreatoDisplay';
    src: url('fonts/CreatoDisplay-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CreatoDisplay';
    src: url('fonts/CreatoDisplay-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CreatoDisplay';
    src: url('fonts/CreatoDisplay-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CreatoDisplay';
    src: url('fonts/CreatoDisplay-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CreatoDisplay';
    src: url('fonts/CreatoDisplay-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CreatoDisplay';
    src: url('fonts/CreatoDisplay-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
    --color-primary: #40000b;
    --color-primary-dark: #2e0008;
    --color-secondary: #030712;
    --color-accent-blue: #021341;
    --color-accent-red: #d32d3a;
    --color-accent-gold: #da9a19;
    --color-background: #ffffff;
    --color-surface: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --color-text-primary: #40000b;
    --color-text-secondary: #374151;
    --gradient-accent: linear-gradient(90deg, #021341, #d32d3a, #da9a19);
    --font-display: 'CreatoDisplay', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius-button: 8px;
    --radius-card: 10px;
    --shadow-card: 0 6px 20px rgba(2, 6, 23, 0.08);
    --header-height: 72px;
    --container-max: 1200px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-primary-dark); }
a:focus-visible { outline: 3px solid var(--color-accent-gold); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.2;
    margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; }

button, input, textarea, select {
    font-family: var(--font-display);
    font-size: inherit;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container-max {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}
@media (min-width: 768px) { .container-max { padding: 0 2rem; } }
@media (min-width: 1200px) { .container-max { padding: 0 2.5rem; } }

.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; margin-top: var(--header-height); }

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--color-gray-100);
    transition: box-shadow 0.3s;
}
.site-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(64, 0, 11, 0.12);
}

.site-header__inner {
    display: flex;
    align-items: center;
    height: var(--header-height);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
    gap: 1.5rem;
    position: relative;
}
@media (min-width: 1024px) { .site-header__inner { padding: 0 2rem; } }

/* Logo */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-logo__img {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* Primary nav — desktop */
.main-nav {
    display: none;
    align-items: center;
    gap: 0.1rem;
    flex: 1;
    justify-content: flex-end;
}
@media (min-width: 1024px) { .main-nav { display: flex; } }

/* nav items from wp_nav_menu walker */
.main-nav__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.main-nav > a,
.main-nav__list > li > a {
    display: block;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.01em;
}
.main-nav > a:hover,
.main-nav__list > li > a:hover,
.main-nav__list > li.current-menu-item > a,
.main-nav__list > li.current-menu-ancestor > a {
    background: var(--color-gray-50);
    color: var(--color-accent-red);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-dropdown > a {
    display: block;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.nav-dropdown > a:hover { background: var(--color-gray-50); color: var(--color-accent-red); }

.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 0.5rem;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { display: block; }

.nav-dropdown__menu a {
    display: block;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.nav-dropdown__menu a:hover { background: var(--color-gray-50); color: var(--color-primary); }

/* Dropdown via WP menu list items */
.main-nav__list > li.menu-item-has-children { position: relative; }
.main-nav__list > li.menu-item-has-children > .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 0.5rem;
    z-index: 200;
    list-style: none;
    margin: 0;
}
.main-nav__list > li.menu-item-has-children:hover > .sub-menu,
.main-nav__list > li.menu-item-has-children:focus-within > .sub-menu { display: block; }
.main-nav__list > li.menu-item-has-children > .sub-menu > li > a {
    display: block;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.main-nav__list > li.menu-item-has-children > .sub-menu > li > a:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
}

/* Header CTAs */
.header-cta {
    display: none;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}
@media (min-width: 1024px) { .header-cta { display: flex; } }

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff !important;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-button);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.btn-register:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

/* Mobile hamburger */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 0.5rem;
    margin-left: auto;
    border-radius: 6px;
    transition: background 0.2s;
}
.mobile-menu-toggle:hover { background: var(--color-gray-50); }
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

/* Mobile nav */
.mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--color-gray-100);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0.15rem;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    z-index: 999;
}
.mobile-nav.is-open { display: flex; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

.mobile-nav a,
.mobile-nav .mobile-nav__list a {
    display: block;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
}
.mobile-nav a:hover,
.mobile-nav .mobile-nav__list a:hover { background: var(--color-gray-50); }

.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.mobile-nav ul .sub-menu { padding-left: 1rem; }
.mobile-nav ul .sub-menu a { font-weight: 600; font-size: 0.875rem; color: var(--color-text-secondary); }

.mobile-nav-divider { height: 1px; background: var(--color-gray-100); margin: 0.5rem 0; }
.mobile-nav-cta-row { display: flex; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }
.mobile-nav-cta-row a { flex: 1; min-width: 120px; text-align: center; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-button);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64,0,11,0.3);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-primary) !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.73rem 1.75rem;
    border-radius: var(--radius-button);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    letter-spacing: 0.02em;
}
.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff !important;
}

/* =========================================================
   PAGE HERO
   ========================================================= */
.page-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
@media (min-width: 768px) { .page-hero { min-height: 420px; } }

.page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(64,0,11,0.65) 0%, rgba(64,0,11,0.85) 100%);
}
.page-hero__content {
    position: relative;
    z-index: 2;
    padding: 4rem 1.25rem;
    color: #fff;
}
.page-hero__title {
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.75rem;
}
.page-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
}
.page-hero__breadcrumb {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1rem;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero__breadcrumb a:hover { color: #fff; }

/* =========================================================
   HOMEPAGE HERO
   ========================================================= */
.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    min-height: clamp(520px, 80vh, 900px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(64,0,11,0.82) 0%, rgba(2,19,65,0.6) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 4rem 1.25rem;
}
.hero-text-content { max-width: 720px; }
.hero-content h1 {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: 2rem;
    max-width: 560px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* =========================================================
   SECTION LABELS & TITLES
   ========================================================= */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent-red);
    background: rgba(211,45,58,0.08);
    border-radius: 4px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
}
.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    line-height: 1.8;
}

/* =========================================================
   CARDS
   ========================================================= */
.card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.12); }
.card__image { width: 100%; height: 220px; object-fit: cover; display: block; }
.card__body { padding: 1.25rem; }
.card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-red);
    background: rgba(211,45,58,0.08);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.6rem;
}
.card__title { font-size: 1.05rem; font-weight: 800; color: var(--color-primary); margin-bottom: 0.5rem; line-height: 1.35; }
.card__excerpt { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.75; text-align: justify; }

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   BLOG CARDS
   ========================================================= */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 0;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.12); }
.blog-card__image { width: 100%; height: 200px; object-fit: cover; display: block; }
.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-red);
    background: rgba(211,45,58,0.08);
    border-radius: 4px;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.6rem;
}
.blog-card__title { font-size: 1rem; font-weight: 800; color: var(--color-primary); margin-bottom: 0.5rem; line-height: 1.4; }
.blog-card__excerpt { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.75; flex: 1; text-align: justify; }
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--color-gray-400);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-gray-100);
    flex-wrap: wrap;
}
.blog-card__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* =========================================================
   PROGRAMME ROWS
   ========================================================= */
.program-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-gray-100);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    cursor: pointer;
}
.program-row:hover { background: var(--color-gray-50); }
.program-row:last-child { border-bottom: none; }
.program-left-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 60px;
    text-align: center;
    line-height: 1.3;
    flex-shrink: 0;
}
.program-avatar-wrap { flex-shrink: 0; }
.program-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top; }
.program-right-content { flex: 1; min-width: 0; }
.program-title { font-size: 0.9rem; font-weight: 700; color: var(--color-primary); line-height: 1.35; white-space: normal; }
.program-date { font-size: 0.75rem; color: var(--color-gray-500); margin-top: 0.2rem; }
.program-arrow { flex-shrink: 0; color: var(--color-gray-300); }

/* =========================================================
   ABOUT GRID
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }

.about-image {
    width: 100%;
    border-radius: var(--radius-card);
    object-fit: cover;
    max-height: 480px;
}

/* =========================================================
   SPEAKERS GRID
   ========================================================= */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 640px) { .speakers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .speakers-grid { grid-template-columns: repeat(4, 1fr); } }

.speaker-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    text-align: center;
    padding-bottom: 1.25rem;
}
.speaker-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,0.12); }
.speaker-card__img { width: 100%; height: 220px; object-fit: cover; object-position: top; }
.speaker-card__name { font-size: 0.95rem; font-weight: 800; color: var(--color-primary); padding: 0.75rem 1rem 0.25rem; }
.speaker-card__role { font-size: 0.8rem; color: var(--color-gray-500); padding: 0 1rem; }

/* =========================================================
   GALLERY GRID
   ========================================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item { display: block; overflow: hidden; border-radius: 6px; }
.gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }

/* =========================================================
   FORMS
   ========================================================= */
.ibafest-form {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}
@media (min-width: 768px) { .ibafest-form { padding: 2.5rem 3rem; } }

.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    margin-bottom: 0.4rem;
}
.form-label span.required { color: var(--color-accent-red); }
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    background: #fff;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(64,0,11,0.1);
}
.form-control.has-error { border-color: #dc2626; }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-error { font-size: 0.78rem; color: #dc2626; margin-top: 0.35rem; }
.form-success {
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.form-submit-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }

/* Spam protection honeypot */
.hp-field { display: none !important; visibility: hidden; position: absolute; left: -9999px; }

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-blue) 100%);
    padding: 4rem 0;
    color: #fff;
    text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-input {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-button);
    border: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
    outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.65); }
.newsletter-input:focus { background: rgba(255,255,255,0.25); }
.newsletter-btn {
    padding: 0.75rem 1.75rem;
    background: var(--color-accent-gold);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--font-display);
    white-space: nowrap;
}
.newsletter-btn:hover { background: #c58b12; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--color-secondary);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand__logo { height: 52px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: 1rem; }
.footer-brand__desc { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.75; margin: 0 0 1.25rem; }

.footer-col__title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.footer-col a, .footer-nav-list a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    padding: 0.25rem 0;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-col a:hover, .footer-nav-list a:hover { color: #fff; }
.footer-nav-list { list-style: none; margin: 0; padding: 0; }
.footer-nav-list li { margin: 0; }

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: background 0.2s, color 0.2s;
}
.footer-social-link:hover { background: var(--color-accent-gold); color: var(--color-primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}
.footer-bottom p { margin: 0; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0;
}
@media (min-width: 900px) { .single-post-layout { grid-template-columns: 1fr 320px; } }

.single-post-content { min-width: 0; }
.single-post-content img { border-radius: 8px; margin: 1.5rem 0; }
.single-post-content p { text-align: justify; line-height: 1.9; margin-bottom: 1.25rem; }
.single-post-content h2, .single-post-content h3 { margin-top: 2rem; }
.single-post-content ul, .single-post-content ol { margin-bottom: 1.25rem; }
.single-post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-accent-gold);
    background: var(--color-gray-50);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--color-primary);
}

.author-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--color-gray-50);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    margin-top: 2rem;
}
.author-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__name { font-size: 0.95rem; font-weight: 800; color: var(--color-primary); }
.author-box__bio { font-size: 0.85rem; color: var(--color-text-secondary); margin-top: 0.35rem; line-height: 1.65; }

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.25rem; }
.sidebar-widget__title { font-size: 0.9rem; font-weight: 800; color: var(--color-primary); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* =========================================================
   ARCHIVE / BLOG PAGE
   ========================================================= */
.archive-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--color-gray-100);
    margin-bottom: 2.5rem;
}
.archive-header h1 { margin-bottom: 0.5rem; }

/* =========================================================
   404 PAGE
   ========================================================= */
.error-404 {
    text-align: center;
    padding: 6rem 1rem;
}
.error-404__code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 900;
    color: var(--color-gray-100);
    line-height: 1;
    margin-bottom: 0;
}
.error-404__title { font-size: 1.75rem; color: var(--color-primary); margin-bottom: 0.75rem; }
.error-404__text { color: var(--color-text-secondary); margin-bottom: 2rem; }

/* =========================================================
   DONATE PAGE
   ========================================================= */
.donate-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}
@media (min-width: 640px) { .donate-methods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .donate-methods { grid-template-columns: repeat(3, 1fr); } }

.donate-method-card {
    background: #fff;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.donate-method-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.donate-method-card__icon { font-size: 2rem; margin-bottom: 0.75rem; }
.donate-method-card__title { font-size: 0.95rem; font-weight: 800; color: var(--color-primary); margin-bottom: 0.4rem; }
.donate-method-card__desc { font-size: 0.82rem; color: var(--color-text-secondary); }

/* =========================================================
   VOLUNTEER PAGE ROLES
   ========================================================= */
.volunteer-roles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}
@media (min-width: 640px) { .volunteer-roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .volunteer-roles { grid-template-columns: repeat(3, 1fr); } }

.volunteer-role-card {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    border-left: 4px solid var(--color-accent-gold);
}
.volunteer-role-card h3 { font-size: 0.95rem; color: var(--color-primary); margin-bottom: 0.4rem; }
.volunteer-role-card p { font-size: 0.82rem; color: var(--color-text-secondary); margin: 0; }

/* =========================================================
   HIGHLIGHTS PAGE
   ========================================================= */
.highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.highlight-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--color-gray-500);
    margin: 1rem 0 1.5rem;
}
.highlight-cover {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius-card);
    margin-bottom: 2rem;
}
@media (min-width: 768px) { .highlight-cover { height: 480px; } }

/* =========================================================
   EVENTS SECTION
   ========================================================= */
.events-section { padding: 4rem 0; background: #fff; }

/* =========================================================
   ANIMATIONS
   ========================================================= */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    border: 1.5px solid var(--color-gray-200);
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
}
.pagination a:hover { background: var(--color-gray-50); border-color: var(--color-primary); }
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* =========================================================
   UTILITY
   ========================================================= */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Gradient bar */
.gradient-bar { height: 4px; background: var(--gradient-accent); }

/* Responsive embeds */
.wp-block-embed, .embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
.wp-block-embed iframe, .embed-responsive iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* Admin bar offset */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Print */
@media print {
    .site-header, .mobile-nav, footer, .newsletter-section, .btn-primary, .btn-secondary { display: none !important; }
    body { font-size: 12pt; color: #000; }
    .single-post-content p { text-align: left; }
}

/* =========================================================
   COMMENTS
   ========================================================= */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); margin-bottom: 1.5rem; }
.comment { padding: 1.25rem; background: var(--color-gray-50); border-radius: var(--radius-card); margin-bottom: 1rem; }
.comment__author { font-weight: 700; color: var(--color-primary); font-size: 0.9rem; margin-right: 0.5rem; }
.comment__date { font-size: 0.78rem; color: var(--color-gray-400); }
.comment__text { margin-top: 0.5rem; font-size: 0.875rem; }
.comment-form label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(64,0,11,0.08);
}
.comment-form input[type="submit"] {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-button);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.comment-form input[type="submit"]:hover { background: var(--color-primary-dark); }
/* White backgrounds */
body, section { background: #fff; }

/* Form inputs — fully visible */
.form-control {
    background: #fff !important;
    border: 1.5px solid #d1d5db !important;
    color: #111827 !important;
}
.form-control::placeholder { color: #9ca3af !important; }
.newsletter-input {
    background: rgba(255,255,255,0.92) !important;
    color: #40000b !important;
}
.newsletter-input::placeholder { color: #6b7280 !important; }

/* Card hover */
.blog-card, .card, .speaker-card, .podcast-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.blog-card:hover, .card:hover, .speaker-card:hover, .podcast-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(64,0,11,0.13);
}

/* Section dividers */
.section-divider { height: 1px; background: #f3f4f6; margin: 0; }
/* Outline button for use on dark/photo backgrounds (hero, CTA section) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.73rem 1.75rem;
    border-radius: var(--radius-button);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    letter-spacing: 0.02em;
}
