/* =====================================================================
   PHM Church Management System — Core Stylesheet
   Design: Institutional Navy + Gold | Clean | Enterprise-Grade
   Font: Public Sans + Inter
   ===================================================================== */

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

:root {
    /* === Primary Palette === */
    --phm-navy:       #1B3A6B;
    --phm-navy-dark:  #0F2340;
    --phm-navy-mid:   #24508C;
    --phm-navy-light: #EDF2FA;
    --phm-navy-soft:  #D6E2F5;

    /* === Gold Accent === */
    --phm-gold:       #C4973A;
    --phm-gold-rich:  #B8861E;
    --phm-gold-dark:  #8B640F;
    --phm-gold-light: #F6EDD5;
    --phm-gold-pale:  #FBF6EC;

    /* === Neutral === */
    --phm-white:      #FFFFFF;
    --phm-bg:         #F4F7FB;
    --phm-bg-alt:     #EDF0F7;
    --phm-text:       #1A2744;
    --phm-text-soft:  #3D5075;
    --phm-gray:       #64748B;
    --phm-gray-light: #94A3B8;
    --phm-border:     #DDE5F2;
    --phm-border-soft:#EEF2FA;

    /* === Status === */
    --phm-success:    #15803D;
    --phm-danger:     #C62828;
    --phm-warning:    #B45309;
    --phm-info:       #0277BD;

    /* === Dimensions === */
    --sidebar-width:  270px;
    --topbar-height:  60px;
    --radius-sm:      8px;
    --radius-md:      12px;
    --radius-lg:      18px;
    --radius-xl:      24px;
    --radius-pill:    100px;

    /* === Fonts === */
    --font-body:    'Public Sans', 'Inter', system-ui, sans-serif;
    --font-display: 'Public Sans', 'Inter', system-ui, sans-serif;

    /* === Motion === */
    --transition:   all 0.22s cubic-bezier(.4,0,.2,1);
    --shadow-sm:    0 1px 4px rgba(27,58,107,0.08);
    --shadow-md:    0 4px 16px rgba(27,58,107,0.12);
    --shadow-lg:    0 8px 32px rgba(27,58,107,0.16);
    --shadow-gold:  0 4px 16px rgba(196,151,58,0.30);
}

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

body {
    font-family: var(--font-body);
    color: var(--phm-text);
    background: var(--phm-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--phm-text);
}

p {
    margin-bottom: 1rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ===================== CONTENT JUSTIFICATION ===================== */
/* Applies to rich-text divs that render |linebreaks output */
.phm-content,
.phm-section-desc,
.phm-hero-sub,
.phm-daily-word p,
.phm-footer p,
.phm-mv-card p,
.phm-value-card p,
.phm-pastor-bio,
.phm-leader-card p,
.phm-card-body p,
.phm-form-section p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ===================== UTILITIES ===================== */
.text-navy       { color: var(--phm-navy) !important; }
.text-gold       { color: var(--phm-gold) !important; }
.text-gold-dark  { color: var(--phm-gold-dark) !important; }
.text-soft       { color: var(--phm-text-soft) !important; }
.bg-navy         { background-color: var(--phm-navy) !important; }
.bg-navy-dark    { background-color: var(--phm-navy-dark) !important; }
.bg-navy-light   { background-color: var(--phm-navy-light) !important; }
.bg-gold         { background-color: var(--phm-gold) !important; }
.bg-gold-light   { background-color: var(--phm-gold-light) !important; }
.bg-gold-pale    { background-color: var(--phm-gold-pale) !important; }
.bg-site         { background-color: var(--phm-bg) !important; }
.border-gold     { border-color: var(--phm-gold) !important; }
.border-navy     { border-color: var(--phm-navy) !important; }
.text-danger-soft { color: #EF4444 !important; }
.fw-semibold     { font-weight: 600 !important; }
.text-xs         { font-size: 0.72rem !important; }
.text-sm         { font-size: 0.85rem !important; }
.text-justify    { text-align: justify !important; }
.rounded-xl      { border-radius: var(--radius-lg) !important; }
.rounded-2xl     { border-radius: var(--radius-xl) !important; }
.lh-relaxed      { line-height: 1.8 !important; }
.letter-wide     { letter-spacing: 0.06em !important; }
.shadow-custom   { box-shadow: var(--shadow-md) !important; }

/* ===================== BUTTONS ===================== */
.btn-navy {
    background: var(--phm-navy);
    color: #fff;
    border: 2px solid var(--phm-navy);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition);
}
.btn-navy:hover, .btn-navy:focus {
    background: var(--phm-navy-dark);
    border-color: var(--phm-navy-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-gold {
    background: var(--phm-gold);
    color: #fff;
    border: 2px solid var(--phm-gold);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: var(--transition);
}
.btn-gold:hover, .btn-gold:focus {
    background: var(--phm-gold-rich);
    border-color: var(--phm-gold-rich);
    color: #fff;
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}
.btn-outline-navy {
    border: 2px solid var(--phm-navy);
    color: var(--phm-navy);
    background: transparent;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-navy:hover {
    background: var(--phm-navy);
    color: #fff;
}
.btn-outline-gold {
    border: 2px solid var(--phm-gold);
    color: var(--phm-gold);
    background: transparent;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-gold:hover {
    background: var(--phm-gold);
    color: #fff;
}
.btn-outline-white {
    border: 2px solid rgba(255,255,255,0.7);
    color: #fff;
    background: transparent;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}

/* ===================== ANNOUNCEMENT BAR ===================== */
.phm-announcement {
    background: var(--phm-navy-dark);
    color: rgba(255,255,255,0.92);
    font-size: 0.82rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.phm-announcement a { color: var(--phm-gold); text-decoration: none; }
.phm-announcement a:hover { text-decoration: underline; }

/* ===================== NAVBAR ===================== */
.phm-navbar {
    background: var(--phm-white) !important;
    border-bottom: 1px solid var(--phm-border);
    box-shadow: var(--shadow-sm);
    padding: 0;
    min-height: 70px;
}

.phm-navbar .navbar-brand { padding: 0.75rem 0; }

.phm-navbar .nav-link {
    color: var(--phm-text-soft) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.6rem 0.875rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0.01em;
    position: relative;
}
.phm-navbar .nav-link:hover {
    color: var(--phm-navy) !important;
    background: var(--phm-navy-light);
}
.phm-navbar .nav-link.active {
    color: var(--phm-navy) !important;
    background: var(--phm-navy-light);
    font-weight: 600;
}
.phm-navbar .dropdown-toggle::after {
    vertical-align: 0.15em;
}

/* Logo */
.phm-logo-mark {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, var(--phm-navy) 0%, var(--phm-navy-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(27,58,107,0.30);
}
.phm-logo-mark-sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.phm-logo-text-mark {
    color: var(--phm-gold);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

/* Legacy logo compatibility */
.phm-logo-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--phm-navy) 0%, var(--phm-navy-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(27,58,107,0.30);
}
.phm-logo-circle-sm { width: 32px; height: 32px; }
.phm-logo-text { color: var(--phm-gold); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; }

/* Dropdown */
.phm-dropdown {
    border: 1px solid var(--phm-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 200px;
}
.phm-dropdown .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--phm-text-soft);
    transition: var(--transition);
}
.phm-dropdown .dropdown-item:hover {
    background: var(--phm-navy-light);
    color: var(--phm-navy);
}

/* ===================== PAGE HERO ===================== */
.phm-hero {
    background: linear-gradient(135deg, var(--phm-navy-dark) 0%, var(--phm-navy) 60%, var(--phm-navy-mid) 100%);
    color: #fff;
    padding: 90px 0 80px;
    position: relative;
    overflow: hidden;
}
.phm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.phm-hero::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(196,151,58,0.08) 100%);
    pointer-events: none;
}
.phm-hero h1, .phm-hero h2 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    color: #fff;
}
.phm-hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.phm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(196,151,58,0.2);
    color: var(--phm-gold);
    border: 1px solid rgba(196,151,58,0.35);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* Sub-page hero (shorter) */
.phm-hero-sm {
    padding: 56px 0 52px;
}
.phm-hero-sm h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
}

/* ===================== SECTION HEADER ===================== */
.phm-section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--phm-gold);
    margin-bottom: 0.75rem;
}
.phm-section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--phm-gold);
    border-radius: 2px;
}
.phm-section-title {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 800;
    color: var(--phm-text);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.phm-section-title.light { color: #fff; }
.phm-section-desc {
    color: var(--phm-gray);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
}
.phm-section-rule {
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--phm-gold), var(--phm-gold-light));
    border-radius: var(--radius-pill);
    margin: 0.75rem 0 1.75rem;
}
.phm-section-rule.centered {
    margin-left: auto;
    margin-right: auto;
}
/* Legacy compat */
.phm-section-line { width: 52px; height: 3px; background: var(--phm-gold); border-radius: 2px; margin-bottom: 2rem; }
.phm-section-line-center { margin-left: auto; margin-right: auto; }

/* ===================== CARDS ===================== */
.phm-card {
    background: var(--phm-white);
    border: 1px solid var(--phm-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.phm-card:hover {
    border-color: var(--phm-navy-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.phm-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.phm-card-body { padding: 1.4rem; }

/* Elevated card */
.phm-card-elevated {
    background: var(--phm-white);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}
.phm-card-elevated:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* News card */
.phm-news-card { position: relative; }
.phm-new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--phm-gold);
    color: #fff;
    padding: 0.18rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

/* Leader card */
.phm-leader-card {
    background: var(--phm-white);
    border: 1px solid var(--phm-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}
.phm-leader-card:hover {
    border-color: var(--phm-navy-soft);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.phm-leader-img-wrap {
    padding: 2rem 2rem 1rem;
}
.phm-leader-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--phm-border);
    margin: 0 auto;
    display: block;
}
.phm-leader-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--phm-navy) 0%, var(--phm-navy-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--phm-gold);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto;
    border: 3px solid var(--phm-border);
}
.phm-leader-body { padding: 0.75rem 1.25rem 1.5rem; }
.phm-leader-role {
    display: inline-block;
    background: var(--phm-navy-light);
    color: var(--phm-navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-top: 0.3rem;
}

/* Value card */
.phm-value-card {
    background: var(--phm-white);
    border: 1px solid var(--phm-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.phm-value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--phm-navy), var(--phm-navy-mid));
}
.phm-value-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--phm-navy-soft);
    transform: translateY(-3px);
}
.phm-value-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--phm-navy-light);
    color: var(--phm-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

/* Mission/Vision card */
.phm-mv-card {
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.phm-mv-card.mission {
    background: var(--phm-navy-dark);
    color: #fff;
}
.phm-mv-card.vision {
    background: linear-gradient(145deg, var(--phm-gold-dark), var(--phm-gold-rich));
    color: #fff;
}
.phm-mv-card.values {
    background: var(--phm-white);
    border: 2px solid var(--phm-border);
    color: var(--phm-text);
}
.phm-mv-card .mv-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: block;
    opacity: 0.9;
}
.phm-mv-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}
.phm-mv-card p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0;
    opacity: 0.92;
    text-align: justify;
}
.phm-mv-card.values h4, .phm-mv-card.values p { color: var(--phm-text); }
.phm-mv-card.values .mv-icon { color: var(--phm-navy); }

/* ===================== SERMON CARD ===================== */
.phm-sermon-card {
    display: flex;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--phm-border);
    border-radius: var(--radius-md);
    align-items: center;
    transition: var(--transition);
    background: var(--phm-white);
    text-decoration: none;
    color: var(--phm-text);
}
.phm-sermon-card:hover {
    border-color: var(--phm-navy-soft);
    box-shadow: var(--shadow-sm);
    background: var(--phm-navy-light);
    color: var(--phm-text);
}
.phm-sermon-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, var(--phm-navy) 0%, var(--phm-navy-mid) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--phm-gold);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ===================== EVENT CARD ===================== */
.phm-event-date {
    background: linear-gradient(145deg, var(--phm-navy) 0%, var(--phm-navy-mid) 100%);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    text-align: center;
    min-width: 68px;
}
.phm-event-date .day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.phm-event-date .month {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    font-weight: 600;
}

/* ===================== GALLERY ===================== */
.phm-gallery-slide {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.phm-gallery-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}
.phm-gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(15,35,64,0.82));
    color: #fff;
    padding: 3rem 2rem 1.75rem;
}

/* ===================== STATS ===================== */
.phm-stat-counter {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--phm-gold);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.phm-stat-strip {
    background: linear-gradient(135deg, var(--phm-navy-dark) 0%, var(--phm-navy) 100%);
    padding: 60px 0;
}

/* ===================== PROGRESS / DONATION ===================== */
.phm-progress {
    height: 9px;
    border-radius: var(--radius-pill);
    background: var(--phm-border-soft);
    overflow: hidden;
}
.phm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--phm-gold), var(--phm-gold-rich));
    border-radius: var(--radius-pill);
    transition: width 0.8s cubic-bezier(.4,0,.2,1);
}

/* ===================== DAILY WORD ===================== */
.phm-daily-word {
    background: linear-gradient(135deg, var(--phm-navy-dark) 0%, var(--phm-navy) 100%);
    border-radius: var(--radius-xl);
    padding: 2.75rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.phm-daily-word::before {
    content: '\201C';
    position: absolute;
    top: -1.5rem;
    left: 1.5rem;
    font-size: 10rem;
    color: rgba(196,151,58,0.12);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

/* ===================== CONTACT ===================== */
.phm-contact-info {
    background: linear-gradient(145deg, var(--phm-navy-dark) 0%, var(--phm-navy) 100%);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    color: #fff;
}
.phm-contact-info h5 { color: #fff; }
.phm-contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: var(--transition);
}
.phm-contact-link:hover { color: var(--phm-gold); }
.phm-contact-link:last-child { border-bottom: none; }
.phm-contact-link-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--phm-gold);
    flex-shrink: 0;
}

/* ===================== PASTOR PROFILE ===================== */
.phm-pastor-card {
    background: var(--phm-white);
    border: 1px solid var(--phm-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.phm-pastor-header {
    background: linear-gradient(135deg, var(--phm-navy-dark) 0%, var(--phm-navy) 100%);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}
.phm-pastor-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(196,151,58,0.5);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    margin: 0 auto 1.25rem;
    display: block;
}
.phm-pastor-photo-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 5px solid rgba(196,151,58,0.4);
    display: flex;
    align-items: center;
    justify-content-center;
    margin: 0 auto 1.25rem;
}

/* ===================== BADGES & STATUS ===================== */
.badge-gold { background: var(--phm-gold) !important; color: #fff !important; }
.badge-navy { background: var(--phm-navy) !important; color: #fff !important; }
.badge-pending   { background: #FEF3C7; color: #78350F; }
.badge-approved  { background: #DCFCE7; color: #14532D; }
.badge-rejected  { background: #FEE2E2; color: #7F1D1D; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.status-pill.pending  { background: #FEF3C7; color: #78350F; }
.status-pill.approved { background: #DCFCE7; color: #14532D; }
.status-pill.rejected { background: #FEE2E2; color: #7F1D1D; }
.status-pill.active   { background: #DBEAFE; color: #1E3A8A; }
.status-pill.draft    { background: #F1F5F9; color: #475569; }
.status-pill.submitted                { background: #EDE9FE; color: #4C1D95; }
.status-pill.chair_approved           { background: #DBEAFE; color: #1E3A8A; }
.status-pill.chair_rejected           { background: #FEE2E2; color: #7F1D1D; }
.status-pill.accountant_budget_approved { background: #D1FAE5; color: #065F46; }
.status-pill.accountant_budget_rejected { background: #FEE2E2; color: #7F1D1D; }
.status-pill.pastor_approved          { background: #DCFCE7; color: #14532D; border:1px solid #BBF7D0; }
.status-pill.pastor_rejected          { background: #FEE2E2; color: #7F1D1D; }
.status-pill.payment_recorded         { background: #1a1a1a; color: #C9A84C; }

/* ===================== MAIN ===================== */
.phm-main { min-height: calc(100vh - 200px); }

/* ===================== FOOTER ===================== */
.phm-footer {
    background: var(--phm-navy-dark);
    color: rgba(255,255,255,0.8);
    padding: 72px 0 0;
}
.phm-footer-brand { margin-bottom: 1.5rem; }
.phm-footer-tagline { color: var(--phm-gold); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.phm-footer p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.7; }
.phm-footer h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.phm-footer ul.footer-links { list-style: none; padding: 0; margin: 0; }
.phm-footer ul.footer-links li { margin-bottom: 0.6rem; }
.phm-footer ul.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}
.phm-footer ul.footer-links a:hover { color: var(--phm-gold); }
.phm-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
}
.phm-footer-contact-item i { color: var(--phm-gold); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.phm-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    margin-top: 3rem;
}
.phm-footer-bottom small { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.phm-footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.phm-footer-bottom a:hover { color: var(--phm-gold); }

/* ===================== FORMS ===================== */
.phm-form-section {
    background: var(--phm-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--phm-border);
}
.form-control, .form-select {
    border: 1.5px solid var(--phm-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.875rem;
    font-size: 0.9rem;
    color: var(--phm-text);
    transition: var(--transition);
    background: var(--phm-white);
}
.form-control:focus, .form-select:focus {
    border-color: var(--phm-navy);
    box-shadow: 0 0 0 3px rgba(27,58,107,0.12);
    outline: none;
}
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--phm-text);
    margin-bottom: 0.4rem;
}
.form-text { font-size: 0.8rem; color: var(--phm-gray); }

/* ===================== TABLES ===================== */
.phm-table {
    font-size: 0.875rem;
    border-collapse: separate;
    border-spacing: 0;
}
.phm-table thead th {
    background: var(--phm-bg);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 2px solid var(--phm-border);
    color: var(--phm-gray);
    padding: 0.875rem 1rem;
    white-space: nowrap;
}
.phm-table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--phm-border-soft);
}
.phm-table tbody tr:last-child td { border-bottom: none; }
.phm-table tbody tr:hover td { background: var(--phm-navy-light); }

/* Responsive card-table on mobile */
@media (max-width: 767px) {
    .phm-table-responsive-cards thead { display: none; }
    .phm-table-responsive-cards tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--phm-border);
        border-radius: var(--radius-md);
        padding: 0.75rem;
        background: var(--phm-white);
    }
    .phm-table-responsive-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.45rem 0;
        border: none !important;
        font-size: 0.875rem;
    }
    .phm-table-responsive-cards td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--phm-gray);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        min-width: 42%;
    }
}

/* ===================== ALERTS ===================== */
.alert {
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.9rem;
    padding: 0.875rem 1.125rem;
}
.alert-success  { background: #F0FDF4; color: #14532D; border-left: 4px solid #22C55E; }
.alert-danger   { background: #FEF2F2; color: #7F1D1D; border-left: 4px solid #EF4444; }
.alert-warning  { background: #FFFBEB; color: #78350F; border-left: 4px solid #F59E0B; }
.alert-info     { background: #EFF6FF; color: #1E3A8A; border-left: 4px solid #3B82F6; }

/* ===================== PAGINATION ===================== */
.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    margin: 0 3px;
    border-color: var(--phm-border);
    color: var(--phm-text-soft);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.875rem;
}
.pagination .page-link:hover {
    border-color: var(--phm-navy);
    color: var(--phm-navy);
    background: var(--phm-navy-light);
}
.pagination .page-item.active .page-link {
    background: var(--phm-navy);
    border-color: var(--phm-navy);
    color: #fff;
}

/* ===================== PORTAL DASHBOARD ===================== */
.phm-portal-nav {
    background: var(--phm-white);
    border: 1px solid var(--phm-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
}
.phm-portal-nav .nav-link {
    border-radius: var(--radius-sm);
    color: var(--phm-gray);
    padding: 0.65rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
}
.phm-portal-nav .nav-link:hover,
.phm-portal-nav .nav-link.active {
    background: var(--phm-navy-light);
    color: var(--phm-navy);
    font-weight: 600;
}

/* ===================== TIMELINE (History) ===================== */
.phm-timeline { position: relative; padding-left: 2.5rem; }
.phm-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--phm-navy), var(--phm-gold));
    border-radius: 2px;
}
.phm-timeline-item { position: relative; padding-bottom: 2.5rem; }
.phm-timeline-item:last-child { padding-bottom: 0; }
.phm-timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--phm-navy);
    border: 3px solid var(--phm-white);
    box-shadow: 0 0 0 3px var(--phm-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.phm-timeline-dot.gold { background: var(--phm-gold); }
.phm-timeline-year {
    font-weight: 800;
    color: var(--phm-gold);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

/* ===================== DONATE PAGE ===================== */
.phm-howto-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}
.phm-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--phm-navy), var(--phm-navy-mid));
    color: var(--phm-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

/* ===================== STAT CARD (Public) ===================== */
.phm-stat-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: none;
}
.phm-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.phm-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.phm-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .phm-hero { padding: 60px 0 52px; }
    .phm-hero h1 { font-size: 2rem; }
    .phm-gallery-slide img { height: 340px; }
}
@media (max-width: 575px) {
    .phm-hero { padding: 50px 0 44px; }
    .phm-form-section { padding: 1.5rem; }
    .phm-daily-word { padding: 1.75rem; }
    .phm-gallery-slide img { height: 260px; }
    .phm-stat-strip { padding: 40px 0; }
}
