/* =============================================
   GRACE FAMILY CHURCH - THEME STYLESHEET
   Color Palette:
   - Primary (Navy):    #1b2f9c
   - Secondary (Blue):  #3a55e0
   - Accent (Gold):     #c8913a
   - Accent Hover:      #b07e30
   - Light Gold:        #f5e6cc
   - Light Background:  #f7f9fb
   - Dark Footer:       #0d164f
============================================= */

:root {
    --gfc-primary: #1b2f9c;
    --gfc-secondary: #3a55e0;
    --gfc-accent: #c8913a;
    --gfc-accent-hover: #b07e30;
    --gfc-accent-light: #f5e6cc;
    --gfc-light-bg: #f7f9fb;
    --gfc-dark: #0d164f;
    --gfc-text: #333333;
    --gfc-text-muted: #6c757d;
    --gfc-white: #ffffff;
    --gfc-success: #2e7d32;
    --gfc-danger: #c62828;
    --gfc-radius: 12px;
    --gfc-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --gfc-shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --gfc-transition: all 0.3s ease;
}

/* =============================================
   BASE STYLES
============================================= */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gfc-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: var(--gfc-light-bg);
    padding-top: 68px;
    color: var(--gfc-text);
}

main {
    flex: 1;
}

::selection {
    background: var(--gfc-accent-light);
    color: var(--gfc-primary);
}

html {
    scroll-behavior: smooth;
}

/* =============================================
   ANIMATIONS
============================================= */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200, 145, 58, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(200, 145, 58, 0); }
}

/* =============================================
   NAVBAR
============================================= */

.custom-navbar {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    border-bottom: 2px solid var(--gfc-accent-hover);
    backdrop-filter: blur(10px);
}

.custom-navbar .navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--gfc-white) !important;
    font-weight: 700;
}

.custom-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.65rem !important;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
    color: var(--gfc-accent) !important;
}

.custom-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.65rem;
    right: 0.65rem;
    height: 2px;
    background: var(--gfc-accent);
    border-radius: 2px;
}

.custom-navbar .dropdown-menu {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
    animation: fadeInUp 0.2s ease;
}

.custom-navbar .dropdown-menu-dark {
    background-color: var(--gfc-primary);
}

.custom-navbar .dropdown-item:hover {
    background-color: var(--gfc-secondary);
    color: var(--gfc-accent) !important;
}

.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15) !important;
}

@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        padding: 1rem 0;
    }

    .custom-navbar .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .custom-navbar .nav-link.active::after {
        display: none;
    }

    .custom-navbar .nav-link.active {
        color: var(--gfc-accent) !important;
        font-weight: 700;
    }

    .custom-navbar .dropdown-menu {
        background-color: transparent !important;
        box-shadow: none;
        padding-left: 1rem;
    }

    .custom-navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 0.5rem 0;
    }
}

/* =============================================
   HERO SECTIONS
============================================= */

.hero-section {
    height: 75vh;
    min-height: 500px;
    background: linear-gradient(135deg, #1b2f9c 0%, #2a44c9 55%, #3a55e0 100%) center/cover no-repeat;
    position: relative;
    margin-top: -68px;
    padding-top: 68px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(27, 47, 156, 0.82) 0%, rgba(58, 85, 224, 0.68) 100%);
    z-index: 1;
}

/* Fading slideshow (admin-managed), shared by hero + content slideshows.
   Each slide shows the WHOLE image (contain) sharp on top of a blurred, zoomed
   copy of the same image — so narrow/small images fill the width without being
   stretched or cropped, instead of leaving empty bars on the sides. */
.hero-slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--gfc-dark, #0d164f); }
.gfc-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}
.gfc-slide.active { opacity: 1; }
.gfc-slide-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* zoom slightly so the blurred edges never reveal the container behind */
    transform: scale(1.15);
    filter: blur(28px) brightness(0.82);
}
.gfc-slide-img {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
}

.page-header-section {
    background: linear-gradient(135deg, var(--gfc-primary) 0%, var(--gfc-secondary) 100%);
    padding: 4rem 0;
    margin-top: -68px;
    padding-top: calc(68px + 4rem);
    position: relative;
    overflow: hidden;
}

.page-header-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gfc-accent), transparent);
}

/* Page header with admin-managed slideshow background */
.page-header-section.has-slideshow { background: var(--gfc-dark, #0d164f); }
.page-header-section .container { position: relative; z-index: 2; }
.page-header-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(13, 22, 79, 0.80) 0%, rgba(27, 47, 156, 0.62) 100%);
}

/* In-content fading slideshow (page body photos) */
.content-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--gfc-radius, 12px);
    background: var(--gfc-dark, #0d164f);
    box-shadow: var(--gfc-shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.12));
}

.page-header-section h1 {
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.page-header-section .lead {
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease;
}

/* =============================================
   BUTTON SYSTEM
============================================= */

.btn-gfc-primary {
    background-color: var(--gfc-accent);
    color: var(--gfc-white);
    border: 2px solid var(--gfc-accent);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--gfc-transition);
    position: relative;
    overflow: hidden;
}

.btn-gfc-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-gfc-primary:hover::before {
    left: 100%;
}

.btn-gfc-primary:hover {
    background-color: var(--gfc-accent-hover);
    border-color: var(--gfc-accent-hover);
    color: var(--gfc-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 145, 58, 0.35);
}

.btn-gfc-secondary {
    background-color: var(--gfc-primary);
    color: var(--gfc-white);
    border: 2px solid var(--gfc-primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--gfc-transition);
}

.btn-gfc-secondary:hover {
    background-color: var(--gfc-secondary);
    border-color: var(--gfc-secondary);
    color: var(--gfc-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 47, 156, 0.3);
}

.btn-gfc-outline {
    background-color: transparent;
    color: var(--gfc-primary);
    border: 2px solid var(--gfc-primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--gfc-transition);
}

.btn-gfc-outline:hover {
    background-color: var(--gfc-primary);
    color: var(--gfc-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 47, 156, 0.3);
}

.btn-gfc-outline-light {
    background-color: transparent;
    color: var(--gfc-white);
    border: 2px solid rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--gfc-transition);
}

.btn-gfc-outline-light:hover {
    background-color: var(--gfc-white);
    color: var(--gfc-primary);
    border-color: var(--gfc-white);
    transform: translateY(-2px);
}

.static-primary-button {
    background-color: var(--gfc-accent);
    color: var(--gfc-white);
    border: 2px solid var(--gfc-accent);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--gfc-transition);
}

.static-primary-button:hover {
    background-color: var(--gfc-accent-hover);
    border-color: var(--gfc-accent-hover);
    color: var(--gfc-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 145, 58, 0.35);
}

.static-secondary-button {
    background-color: var(--gfc-primary);
    color: var(--gfc-white);
    border: 2px solid var(--gfc-primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--gfc-transition);
}

.static-secondary-button:hover {
    background-color: var(--gfc-secondary);
    border-color: var(--gfc-secondary);
    color: var(--gfc-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 47, 156, 0.3);
}

/* =============================================
   SECTION STYLES
============================================= */

.section-title {
    font-weight: 700;
    color: var(--gfc-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gfc-text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gfc-accent), var(--gfc-accent-hover));
    margin: 1rem auto;
    border-radius: 2px;
}

/* =============================================
   CARD STYLES
============================================= */

.gfc-card {
    border: none;
    border-radius: var(--gfc-radius);
    overflow: hidden;
    transition: var(--gfc-transition);
    background: var(--gfc-white);
    box-shadow: var(--gfc-shadow);
}

.gfc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gfc-shadow-lg);
}

.gfc-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

/* =============================================
   EVENT STYLES
============================================= */

.event-card {
    border: none;
    border-radius: var(--gfc-radius);
    overflow: hidden;
    background: var(--gfc-white);
    box-shadow: var(--gfc-shadow);
    transition: var(--gfc-transition);
    border-bottom: 3px solid transparent;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gfc-shadow-lg);
    border-bottom-color: var(--gfc-accent);
}

.event-card-image {
    height: 220px;
    object-fit: cover;
    width: 100%;
    border-radius: var(--gfc-radius) var(--gfc-radius) 0 0;
}

.event-card-body { padding: 1.5rem; }

.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gfc-accent-light);
    color: var(--gfc-accent-hover);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.event-status-badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-status-upcoming { background: #e8f5e9; color: #2e7d32; }
.event-status-completed { background: #f3e5f5; color: #7b1fa2; }

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gfc-text-muted);
}

.event-meta i { color: var(--gfc-accent); margin-right: 0.3rem; }

.event-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.event-thumb {
    height: 80px;
    width: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--gfc-transition);
    border: 2px solid transparent;
}

.event-thumb:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--gfc-accent);
}

.event-featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--gfc-radius);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.event-featured-image:hover { transform: scale(1.02); }

.no-events-placeholder {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--gfc-white);
    border-radius: var(--gfc-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.no-events-placeholder i {
    font-size: 3rem;
    color: var(--gfc-accent);
    margin-bottom: 1rem;
}

/* =============================================
   SERMON CARDS
============================================= */

.sermon-card {
    border: none;
    border-radius: var(--gfc-radius);
    overflow: hidden;
    box-shadow: var(--gfc-shadow);
    transition: var(--gfc-transition);
    background: var(--gfc-white);
    border-bottom: 3px solid transparent;
}

.sermon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gfc-shadow-lg);
    border-bottom-color: var(--gfc-accent);
}

.sermon-card .card-body { padding: 1.25rem; }

.sermon-card h5 {
    color: var(--gfc-primary);
    font-weight: 700;
}

/* =============================================
   SERVICE TIME CARDS
============================================= */

.service-card {
    border: none;
    border-radius: var(--gfc-radius);
    overflow: hidden;
    background: var(--gfc-white);
    box-shadow: var(--gfc-shadow);
    transition: var(--gfc-transition);
    border-left: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-left-color: var(--gfc-accent);
}

.service-card .service-time {
    color: var(--gfc-accent);
    font-weight: 700;
}

.service-card .service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gfc-accent-light), #faf0dd);
    color: var(--gfc-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

/* =============================================
   MINISTRY CARDS
============================================= */

.ministry-card {
    border: none;
    border-radius: var(--gfc-radius);
    overflow: hidden;
    box-shadow: var(--gfc-shadow);
    transition: var(--gfc-transition);
    background: var(--gfc-white);
}

.ministry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gfc-shadow-lg);
}

.ministry-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ministry-card:hover .card-img-top { transform: scale(1.03); }

.ministry-card .card-body { padding: 1.5rem; }

/* =============================================
   FOOTER
============================================= */

.gfc-footer {
    background: linear-gradient(135deg, var(--gfc-dark) 0%, var(--gfc-primary) 100%);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
}

.gfc-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gfc-accent), var(--gfc-accent-hover), var(--gfc-accent));
}

.gfc-footer h5 {
    color: var(--gfc-accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.gfc-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.gfc-footer a:hover { color: var(--gfc-accent); }

.gfc-footer .footer-links li { margin-bottom: 0.5rem; }
.gfc-footer .footer-links li a:hover { padding-left: 4px; }
.gfc-footer hr { border-color: rgba(255, 255, 255, 0.15); }

/* =============================================
   SOCIAL MEDIA BUTTONS
============================================= */

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.social-btn:hover {
    transform: scale(1.15) translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: white;
}

.social-btn.youtube { background-color: #FF0000; }
.social-btn.facebook { background-color: #1877F2; }
.social-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-btn.tiktok { background-color: #000000; }

/* =============================================
   SCRIPTURE / QUOTE BLOCKS
============================================= */

.scripture-block {
    font-style: italic;
    color: var(--gfc-text-muted);
    border-left: 3px solid var(--gfc-accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
}

/* =============================================
   CTA BANNER
============================================= */

.cta-banner {
    background: linear-gradient(135deg, var(--gfc-primary) 0%, var(--gfc-secondary) 100%);
    color: var(--gfc-white);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200,145,58,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner h3,
.cta-banner h4 { color: var(--gfc-white); font-weight: 700; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); }

/* =============================================
   LEADERSHIP CARDS
============================================= */

.leader-card {
    border: none;
    border-radius: var(--gfc-radius);
    overflow: hidden;
    text-align: center;
    box-shadow: var(--gfc-shadow);
    transition: var(--gfc-transition);
    background: var(--gfc-white);
}

.leader-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.leader-card .leader-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gfc-accent-light), #faf0dd);
    color: var(--gfc-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* =============================================
   GIVING PAGE
============================================= */

.giving-card {
    border: none;
    border-radius: 16px;
    background: var(--gfc-white);
    box-shadow: var(--gfc-shadow);
    padding: 2rem;
    transition: var(--gfc-transition);
}

.giving-card:hover { box-shadow: var(--gfc-shadow-lg); }

.giving-card h2 {
    color: var(--gfc-primary);
    font-weight: 700;
}

/* =============================================
   FORMS
============================================= */

.form-control,
.form-select {
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    transition: var(--gfc-transition);
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--gfc-accent);
    box-shadow: 0 0 0 0.2rem rgba(200, 145, 58, 0.15);
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
    font-size: 0.9rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gfc-primary);
}

.form-check-input:checked {
    background-color: var(--gfc-accent);
    border-color: var(--gfc-accent);
}

/* =============================================
   ALERTS
============================================= */

.gfc-alert {
    border: none;
    border-radius: var(--gfc-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.4s ease;
    border-left: 4px solid;
}

.gfc-alert.alert-success { border-left-color: var(--gfc-success); }
.gfc-alert.alert-danger { border-left-color: var(--gfc-danger); }
.gfc-alert.alert-warning { border-left-color: #e65100; }
.gfc-alert.alert-info { border-left-color: #0277bd; }

/* =============================================
   UTILITY CLASSES
============================================= */

.primary-church-colour { color: var(--gfc-primary); }
.accent-colour { color: var(--gfc-accent); }
.bg-gfc-light { background-color: var(--gfc-light-bg); }
.text-gfc-primary { color: var(--gfc-primary) !important; }
.text-gfc-accent { color: var(--gfc-accent) !important; }

/* =============================================
   PAGINATION
============================================= */

.pagination .page-link {
    border: none;
    color: var(--gfc-primary);
    font-weight: 500;
    border-radius: 8px !important;
    margin: 0 2px;
    transition: var(--gfc-transition);
}

.pagination .page-link:hover {
    background: var(--gfc-accent-light);
    color: var(--gfc-accent);
}

.pagination .page-item.active .page-link {
    background: var(--gfc-accent);
    border-color: var(--gfc-accent);
    color: #fff;
}

/* =============================================
   RESPONSIVE TWEAKS
============================================= */

@media (max-width: 767.98px) {
    .hero-section { height: 60vh; min-height: 400px; }
    .hero-section h1 { font-size: 2rem; }
    .page-header-section { padding: 3rem 0; padding-top: calc(80px + 3rem); }
    .page-header-section h1 { font-size: 2rem; }
    .page-header-section .lead { font-size: 1rem; }
    .event-card-image { height: 180px; }
    .event-featured-image { height: 200px; }
    .ministry-card .card-img-top { height: 180px; }
    .cta-banner { padding: 1.5rem; }
    .gfc-footer { text-align: center; }
    .gfc-footer .footer-links { padding-left: 0; }
}

@media (max-width: 575.98px) {
    body { padding-top: 75px; }
    .hero-section { height: 55vh; min-height: 350px; margin-top: -75px; padding-top: 75px; }
    .page-header-section { margin-top: -75px; padding-top: calc(75px + 3rem); }
    .hero-section h1 { font-size: 1.75rem; }
    .hero-section .lead { font-size: 0.95rem; }
    .hero-section .btn { display: block; margin-bottom: 0.75rem; }
    .page-header-section h1 { font-size: 1.75rem; }
    .event-thumb { height: 60px; width: 80px; }
}

/* =============================================
   PRINT STYLES FOR PDF EXPORT
============================================= */

@media print {
    body { padding-top: 0 !important; background: #fff !important; }
    .custom-navbar, .gfc-footer, .skip-link, .btn, .no-print { display: none !important; }
    .page-header-section {
        margin-top: 0;
        padding-top: 2rem;
        background: var(--gfc-primary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .sermon-card, .event-card, .service-card, .gfc-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6;
        break-inside: avoid;
    }
}

/* =============================================
   VISIT MEGA-MENU
============================================= */
.has-mega { position: relative; }

.mega-toggle { cursor: pointer; }
.mega-caret { font-size: 0.65rem; transition: transform 0.25s ease; }

.mega-menu {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(13, 22, 79, 0.22);
    padding: 1.25rem;
    overflow: hidden;
}

.mega-grid { display: flex; gap: 0.5rem; }
.mega-col { flex: 1; min-width: 0; padding: 0 0.5rem; }
.mega-col-divider { border-left: 1px solid #eef0f5; }

.mega-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gfc-accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.mega-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--gfc-text, #333);
    transition: background 0.18s ease, transform 0.18s ease;
}
.mega-link:hover { background: var(--gfc-light-bg, #f7f9fb); transform: translateX(3px); }
.mega-link.active { background: rgba(58, 85, 224, 0.08); }
.mega-link strong { display: block; font-size: 0.9rem; color: var(--gfc-primary); line-height: 1.2; }
.mega-link small { display: block; font-size: 0.74rem; color: var(--gfc-text-muted); }

.mega-ico {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--gfc-accent-light, #f5e6cc);
    color: var(--gfc-accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
}

.mega-cta {
    display: block;
    margin-top: 1rem;
    text-align: center;
    padding: 0.7rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gfc-primary), var(--gfc-secondary));
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.mega-cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }

/* Desktop: hover/focus reveal with animation */
@media (min-width: 992px) {
    .mega-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) translateY(12px);
        width: 540px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
        z-index: 1050;
    }
    /* hover bridge so the menu doesn't close in the gap */
    .has-mega::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        height: 14px;
    }
    .has-mega:hover .mega-menu,
    .has-mega:focus-within .mega-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    .has-mega:hover .mega-caret,
    .has-mega:focus-within .mega-caret { transform: rotate(180deg); }
}

/* Mobile: render inline inside the collapsed menu */
@media (max-width: 991.98px) {
    .mega-menu {
        box-shadow: none;
        background: rgba(255,255,255,0.06);
        padding: 0.75rem;
        margin: 0.25rem 0 0.5rem;
    }
    .mega-grid { flex-direction: column; gap: 0; }
    .mega-col-divider { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 0.5rem; padding-top: 0.5rem; }
    .mega-heading { color: var(--gfc-accent); }
    .mega-link { color: rgba(255,255,255,0.85); }
    .mega-link strong { color: #fff; }
    .mega-link small { color: rgba(255,255,255,0.55); }
    .mega-link:hover { background: rgba(255,255,255,0.08); }
    .mega-caret { display: none; }
}

/* =============================================
   CONNECT — CONTACT CARDS & OFFICE HOURS
============================================= */
.contact-cards { display: flex; flex-direction: column; gap: 0.85rem; }

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(13, 22, 79, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(13, 22, 79, 0.12);
    border-color: var(--gfc-accent-light);
}
.contact-card-ico {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.contact-card-body { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.contact-card-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gfc-text-muted); font-weight: 600; }
.contact-card-value { font-weight: 600; color: var(--gfc-primary); word-break: break-word; }

.office-hours-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(13, 22, 79, 0.05);
}
.office-hours-head {
    background: linear-gradient(135deg, var(--gfc-primary), var(--gfc-secondary));
    color: #fff;
    padding: 0.75rem 1.1rem;
    font-weight: 600;
}
.office-hours-list { list-style: none; margin: 0; padding: 0.5rem 0; }
.office-hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
}
.office-hours-list li + li { border-top: 1px solid #f4f6f9; }
.office-hours-list .oh-day { color: var(--gfc-text); font-weight: 500; }
.office-hours-list .oh-time { color: var(--gfc-text-muted); font-variant-numeric: tabular-nums; }
.office-hours-list .oh-closed { color: #c0392b; font-weight: 600; }
.office-hours-list li.is-today { background: rgba(58, 85, 224, 0.06); }
.office-hours-list li.is-today .oh-day { color: var(--gfc-primary); font-weight: 700; }
.oh-today-badge {
    display: inline-block;
    margin-left: 0.4rem;
    background: var(--gfc-accent);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* =============================================
   BLOG
============================================= */
.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(13, 22, 79, 0.07);
    border: 1px solid #eef0f5;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13, 22, 79, 0.16); }
.blog-card-cover {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    font-size: 2.2rem;
    overflow: hidden;
}
.blog-card-cover-sm { height: 120px; }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { font-size: 0.78rem; color: var(--gfc-text-muted); margin-bottom: 0.4rem; }
.blog-card-title { font-weight: 700; color: var(--gfc-primary); font-size: 1.05rem; line-height: 1.35; margin-bottom: 0.5rem; }
.blog-card-excerpt { font-size: 0.88rem; color: var(--gfc-text-muted); flex: 1; }
.blog-card-readmore { color: var(--gfc-accent); font-weight: 600; font-size: 0.85rem; margin-top: 0.5rem; }

.blog-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    margin-top: -68px;
    padding-top: 68px;
    background: var(--gfc-primary);
}
.blog-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,22,79,0.25) 0%, rgba(13,22,79,0.85) 100%); }
.blog-hero-content { position: relative; z-index: 2; color: #fff; padding-bottom: 2.5rem; padding-top: 2.5rem; }
.blog-back { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.85rem; }
.blog-back:hover { color: var(--gfc-accent); }
.blog-hero-title { font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0.75rem 0 0.5rem; max-width: 900px; }
.blog-hero-meta { font-size: 0.85rem; opacity: 0.85; }

/* Rendered HTML article */
.blog-content { font-size: 1.06rem; line-height: 1.8; color: #2d2f36; }
.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4 { color: var(--gfc-primary); font-weight: 700; margin: 1.8rem 0 0.8rem; }
.blog-content h2 { font-size: 1.6rem; }
.blog-content h3 { font-size: 1.3rem; }
.blog-content p { margin-bottom: 1.1rem; }
.blog-content a { color: var(--gfc-secondary); text-decoration: underline; }
.blog-content ul, .blog-content ol { margin: 0 0 1.1rem 1.25rem; }
.blog-content li { margin-bottom: 0.4rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.25rem 0; }
.blog-content blockquote {
    border-left: 4px solid var(--gfc-accent);
    background: var(--gfc-light-bg);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-style: italic;
    color: var(--gfc-primary);
    margin: 1.5rem 0;
}
.blog-content pre { background: #0d164f; color: #e6e9f5; padding: 1rem; border-radius: 10px; overflow-x: auto; }
.blog-content code { background: var(--gfc-light-bg); padding: 0.1rem 0.35rem; border-radius: 5px; }

/* Comments */
.blog-comment { display: flex; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid #eef0f5; }
.blog-comment-avatar {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gfc-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.blog-comment-body { flex: 1; }
.blog-comment-date { font-size: 0.75rem; color: var(--gfc-text-muted); margin-left: 0.5rem; }
.blog-comment-response {
    margin-top: 0.6rem;
    background: var(--gfc-light-bg);
    border-left: 3px solid var(--gfc-accent);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-size: 0.92rem;
}
.blog-comment-form {
    background: var(--gfc-light-bg);
    border-radius: 14px;
    padding: 1.5rem;
}

/* =============================================
   LEADERSHIP CARDS
============================================= */
.leader-person {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(13,22,79,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.leader-person:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(13,22,79,0.14); }
.leader-person-photo {
    width: 110px; height: 110px; margin: 0 auto 1rem;
    border-radius: 50%; overflow: hidden;
    border: 4px solid var(--gfc-accent-light, #f5e6cc);
}
.leader-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-person-initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gfc-primary), var(--gfc-secondary));
    color: #fff; font-weight: 700; font-size: 2rem;
}
.leader-person-name { font-weight: 700; color: var(--gfc-primary); margin-bottom: 0.15rem; }
.leader-person-role { color: var(--gfc-accent); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.75rem; }
.leader-person-contacts { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; }
.leader-person-contacts a { color: var(--gfc-text-muted); text-decoration: none; font-size: 0.85rem; word-break: break-word; }
.leader-person-contacts a:hover { color: var(--gfc-secondary); }
.leader-person-contacts i { color: var(--gfc-accent); width: 16px; }
.leader-person-wa { background: #25D366; color: #fff; font-weight: 600; }
.leader-person-wa:hover { background: #1fb957; color: #fff; }
.leader-cta {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 18px rgba(13,22,79,0.07);
    margin-top: 1rem;
}
