/*
Theme Name: FBC CMS
Theme URI: https://fbc.servehttp.com
Author: WBH
Author URI: https://fbc.servehttp.com
Description: A comprehensive Church Management System theme with member management, events, donations, sermons, and more.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: church-cms
Tags: church, religious, responsive, custom-menu, custom-logo, featured-images
*/

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
============================================================ */
:root {
    --primary:       #7B1D1D;   /* Deep Burgundy */
    --primary-dark:  #5a1212;
    --primary-light: #a83232;
    --accent:        #C8A84B;   /* Gold */
    --accent-dark:   #a68735;
    --accent-light:  #e2c87a;
    --dark:          #1a1a1a;
    --gray-900:      #212121;
    --gray-800:      #333333;
    --gray-700:      #555555;
    --gray-600:      #777777;
    --gray-400:      #aaaaaa;
    --gray-200:      #e8e8e8;
    --gray-100:      #f5f5f5;
    --white:         #ffffff;
    --success:       #28a745;
    --warning:       #ffc107;
    --danger:        #dc3545;
    --info:          #17a2b8;

    --font-heading:  'Merriweather', Georgia, serif;
    --font-body:     'Open Sans', Arial, sans-serif;

    --shadow-sm:     0 2px 4px rgba(0,0,0,.08);
    --shadow-md:     0 4px 12px rgba(0,0,0,.12);
    --shadow-lg:     0 8px 24px rgba(0,0,0,.16);

    --border-radius: 8px;
    --transition:    .25s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: .75rem;
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

.text-primary   { color: var(--primary) !important; }
.text-accent    { color: var(--accent) !important; }
.text-muted     { color: var(--gray-600) !important; }
.text-center    { text-align: center; }
.text-white     { color: var(--white) !important; }

.lead { font-size: 1.15rem; color: var(--gray-700); }

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 900px;  margin: 0 auto; padding: 0 1.25rem; }
.container-wide   { max-width: 1400px; margin: 0 auto; padding: 0 1.25rem; }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 992px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
}
.btn-primary   { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-accent    { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline   { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
.btn-white     { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-white:hover { background: var(--gray-100); }
.btn-sm        { padding: .4rem 1rem; font-size: .85rem; }
.btn-lg        { padding: .85rem 2rem; font-size: 1.1rem; }
.btn-block     { display: flex; width: 100%; justify-content: center; }

/* ============================================================
   CARDS
============================================================ */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--gray-200);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; color: var(--gray-900); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-meta { font-size: .85rem; color: var(--gray-600); display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.card-meta i { color: var(--primary); margin-right: .25rem; }

/* ============================================================
   BADGE / TAG
============================================================ */
.badge {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.badge-primary { background: var(--primary); color: var(--white); }
.badge-accent  { background: var(--accent);  color: var(--dark); }
.badge-success { background: var(--success); color: var(--white); }
.badge-warning { background: var(--warning); color: var(--dark); }
.badge-danger  { background: var(--danger);  color: var(--white); }
.badge-info    { background: var(--info);    color: var(--white); }
.badge-light   { background: var(--gray-200); color: var(--gray-800); }

/* ============================================================
   SITE HEADER
============================================================ */
#site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    gap: 1rem;
}

.site-branding { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.site-logo img { max-height: 60px; width: auto; }
.site-title-wrap { display: flex; flex-direction: column; }
.site-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
}
.site-tagline { font-size: .8rem; color: var(--gray-600); margin: 0; }

/* Primary Navigation */
#primary-nav { display: flex; align-items: center; gap: .25rem; }
#primary-nav ul {
display: flex;
align-items: stretch;
justify-content: space-between;
width: 100%;
margin: 0;
padding: 0;
}
#primary-nav .menu-item { position: relative; }
#primary-nav .menu-item > a {
    display: block;
    padding: .5rem .85rem;
    color: var(--gray-800);
    font-weight: 600;
    font-size: .9rem;
    border-radius: var(--border-radius);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}
#primary-nav .menu-item > a:hover,
#primary-nav .menu-item.current-menu-item > a { color: var(--primary); background: var(--gray-100); }

/* Dropdown */
#primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 100;
    padding: .5rem 0;
}
#primary-nav .menu-item:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
#primary-nav .sub-menu .menu-item > a { padding: .6rem 1.25rem; border-radius: 0; color: var(--gray-800); font-size: .88rem; }
#primary-nav .sub-menu .menu-item > a:hover { color: var(--primary); background: var(--gray-100); }

/* Header CTA + Member */
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-member-link { font-size: .88rem; font-weight: 600; color: var(--primary); }
.header-member-link i { margin-right: .25rem; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    color: var(--gray-800);
    font-size: 1.5rem;
}

/* Mobile Nav */
#mobile-nav {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 0;
}
#mobile-nav .menu-item > a {
    display: block;
    padding: .65rem 1.25rem;
    color: var(--gray-800);
    font-weight: 600;
    border-bottom: 1px solid var(--gray-100);
}
#mobile-nav .menu-item > a:hover { color: var(--primary); background: var(--gray-100); }
#mobile-nav .sub-menu { background: var(--gray-100); }
#mobile-nav .sub-menu .menu-item > a { padding-left: 2.5rem; }
#mobile-nav.open { display: block; }

@media (max-width: 992px) {
    #primary-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-actions .btn { display: none; }
}

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: var(--white);
    padding: 8rem 0;
    overflow: hidden;
    text-align: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: .18;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero .lead { color: rgba(255,255,255,.9); margin-bottom: 2rem; font-size: 1.2rem; }
.hero .verse { font-style: italic; color: var(--accent-light); font-size: .95rem; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent-dark);
    margin-bottom: .5rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header .lead { max-width: 600px; margin: 0 auto; }
.section-divider {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 1rem auto;
}

/* ============================================================
   SALVATION PAGE
============================================================ */
.salvation-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}
.salvation-hero h1 { color: var(--white); }
.salvation-hero .verse-ref { color: var(--accent-light); font-style: italic; }

.salvation-steps { counter-reset: step; }
.salvation-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary);
}
.step-number {
    background: var(--primary);
    color: var(--white);
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}
.step-content h3 { color: var(--primary); margin-bottom: .5rem; }
.step-verse {
    background: var(--gray-100);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: .75rem 0;
    font-style: italic;
    color: var(--gray-700);
    font-size: .95rem;
}
.step-verse cite { display: block; text-align: right; font-weight: 700; color: var(--accent-dark); font-style: normal; font-size: .85rem; margin-top: .5rem; }

.salvation-prayer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
}
.salvation-prayer h3 { color: var(--accent-light); margin-bottom: 1.5rem; }
.prayer-text {
    background: rgba(255,255,255,.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    font-style: italic;
    line-height: 2;
    margin-bottom: 1.5rem;
}

/* ============================================================
   EVENTS
============================================================ */
.event-card .event-date-badge {
    background: var(--primary);
    color: var(--white);
    width: 60px;
    padding: .5rem;
    text-align: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.event-date-badge .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date-badge .month { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.event-card .card-body { display: flex; gap: 1rem; align-items: flex-start; }
.event-info { flex: 1; }
.event-time { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--gray-600); margin-bottom: .3rem; }

.calendar-wrapper {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.calendar-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.calendar-header h3 { color: var(--white); margin: 0; }
.calendar-nav-btn {
    background: rgba(255,255,255,.2);
    border: none;
    color: var(--white);
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition);
}
.calendar-nav-btn:hover { background: rgba(255,255,255,.35); }
.calendar-grid { padding: 1rem; }
.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    font-size: .8rem;
    color: var(--gray-600);
    text-transform: uppercase;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: .5rem;
}
.calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    transition: background var(--transition);
    position: relative;
}
.calendar-day:hover { background: var(--gray-100); }
.calendar-day.today { background: var(--primary); color: var(--white); font-weight: 700; }
.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--accent);
}
.calendar-day.today.has-event::after { background: var(--white); }
.calendar-day.other-month { color: var(--gray-400); }

/* ============================================================
   SERMONS
============================================================ */
.sermon-card .card-img { height: 180px; }
.sermon-player {
    background: var(--gray-900);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .75rem;
}
.sermon-player audio { flex: 1; height: 40px; }
.scripture-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--gray-100);
    color: var(--primary);
    padding: .3rem .75rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
}

/* ============================================================
   DONATIONS
============================================================ */
.donation-form {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}
.amount-buttons { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.amount-btn {
    padding: .6rem 1.25rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
}
.amount-btn.active, .amount-btn:hover { border-color: var(--primary); background: var(--primary); color: var(--white); }

.donation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: .25rem; }
.stat-label { font-size: .85rem; color: var(--gray-600); }

/* Progress bar for fundraising goals */
.progress-bar-wrap { background: var(--gray-200); border-radius: 50px; height: 12px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .5s ease; }

/* ============================================================
   MEMBER AREA
============================================================ */
.member-dashboard {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Desktop sidebar ─────────────────────────────────── */
.member-sidebar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.member-profile-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--white);
}
.member-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.4);
    object-fit: cover;
    margin: 0 auto 1rem;
}
.member-name { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .25rem; }
.member-role { font-size: .8rem; color: rgba(255,255,255,.75); }

.member-nav { padding: .5rem 0; }
.member-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.5rem;
    color: var(--gray-800);
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.member-nav a:hover, .member-nav a.active {
    color: var(--primary);
    background: var(--gray-100);
    border-left-color: var(--primary);
}
.member-nav a i { width: 20px; text-align: center; color: var(--gray-600); transition: color var(--transition); }
.member-nav a:hover i, .member-nav a.active i { color: var(--primary); }

/* ── Responsive: stacked layout ≤ 992px ──────────────── */
@media (max-width: 992px) {
    .member-dashboard {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Sidebar loses sticky + rounded corners — becomes a full-width header band */
    .member-sidebar {
        position: static;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 3px solid var(--primary);
    }

    /* Profile header becomes compact horizontal row */
    .member-profile-header {
        padding: .9rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    .member-avatar {
        width: 44px;
        height: 44px;
        margin: 0;
        flex-shrink: 0;
        border-width: 2px;
    }
    .member-name { font-size: .95rem; margin-bottom: .1rem; }
    .member-role  { font-size: .75rem; }

    /* Nav becomes a horizontal scrollable tab strip */
    .member-nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;        /* Firefox — hides scrollbar */
        padding: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
    }
    .member-nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */

    .member-nav a {
        flex: 0 0 auto;               /* don't shrink — enable scroll */
        padding: .7rem .9rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        font-size: .78rem;
        gap: .35rem;
        color: var(--gray-700);
        background: transparent;
    }
    .member-nav a:hover,
    .member-nav a.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
        background: var(--gray-100);
        color: var(--primary);
    }
    .member-nav a i {
        font-size: .85rem;
        color: var(--gray-500);
    }
    .member-nav a:hover i,
    .member-nav a.active i {
        color: var(--primary);
    }

    /* Give the main content area a little breathing room */
    .member-main-content {
        padding-top: 1.25rem;
    }
}

/* ── Extra-small phones ≤ 480px ──────────────────────── */
@media (max-width: 480px) {
    /* Show only icon + abbreviated label to save space */
    .member-nav a span.nav-label {
        display: none;
    }
    .member-nav a {
        flex-direction: column;
        padding: .55rem .75rem;
        gap: .2rem;
        font-size: .7rem;
    }
    .member-nav a i {
        font-size: 1rem;
        width: auto;
    }
}

/* ============================================================
   FORMS
============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: .9rem; color: var(--gray-800); margin-bottom: .4rem; }
.form-control {
    width: 100%;
    padding: .65rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--gray-800);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.5;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(123,29,29,.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { cursor: pointer; }
.form-hint { font-size: .8rem; color: var(--gray-600); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: .3rem; }

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

.checkbox-group label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.checkbox-group input[type="checkbox"], .checkbox-group input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* ============================================================
   ALERTS / NOTICES
============================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    border-left: 4px solid;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.alert i { margin-top: .1rem; flex-shrink: 0; }
.alert-success { background: #d4edda; border-color: var(--success); color: #155724; }
.alert-warning { background: #fff3cd; border-color: var(--warning); color: #856404; }
.alert-danger  { background: #f8d7da; border-color: var(--danger);  color: #721c24; }
.alert-info    { background: #d1ecf1; border-color: var(--info);    color: #0c5460; }
.alert-primary { background: #f5e8e8; border-color: var(--primary); color: var(--primary); }

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.widget {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.widget-title {
    background: var(--primary);
    color: var(--white);
    padding: .85rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}
.widget-content { padding: 1.25rem; }

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,.75);
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 992px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .site-title { color: var(--white); font-size: 1.2rem; }
.footer-brand .site-tagline { color: rgba(255,255,255,.5); }
.footer-brand .footer-verse {
    font-style: italic;
    font-size: .88rem;
    color: var(--accent-light);
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-top: 1rem;
    line-height: 1.6;
}
.footer-heading { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; position: relative; padding-bottom: .5rem; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }

.footer-contact-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; font-size: .9rem; }
.footer-contact-item i { color: var(--accent); margin-top: .2rem; flex-shrink: 0; }

.footer-social { display: flex; gap: .75rem; margin-top: 1rem; }
.social-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    transition: all var(--transition);
    font-size: .95rem;
}
.social-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .85rem;
    color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.65); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ============================================================
   ADMIN BAR COMPENSATION
============================================================ */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

/* ============================================================
   LOADING / SPINNER
============================================================ */
.spinner {
    width: 40px; height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   PAGINATION
============================================================ */
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-200);
    color: var(--gray-800);
    font-weight: 600;
    transition: all var(--transition);
}
.pagination a:hover, .pagination .current { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ============================================================
   RESPONSIVE MISC
============================================================ */
@media (max-width: 768px) {
    .section { padding: 3rem 0; }
    .hero { padding: 5rem 0; }
    .donation-stats { grid-template-columns: 1fr; }
    .salvation-step { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
    #site-header, #site-footer, .sidebar, .no-print { display: none; }
    body { font-size: 12pt; }
    a { text-decoration: underline; }
}
