/*
 * Church Theme Override
 * Layered on top of main_styles.css — changes palette, fonts, and
 * a handful of decorative details to give a traditional church feel.
 *
 * Palette:
 *   --navy  #1B2748   deep midnight navy (replaces #1B2C50)
 *   --gold  #C8973A   warm liturgical gold
 *   --cream #FAF8F2   warm off-white (replaces cold #f7f7f7 / #FFFFFF sections)
 *   --ink   #1A1A1A   near-black body text
 *   --muted #5E5A52   warm mid-grey
 */

/* ── Fonts ───────────────────────────────────────────────────── */

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

/* ── Global colour tokens ────────────────────────────────────── */

:root {
    --navy  : #1B2748;
    --gold  : #C8973A;
    --cream : #FAF8F2;
    --ink   : #1A1A1A;
    --muted : #5E5A52;
}

/* ── Typography ──────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6,
.home_title,
.section_title,
.sermon_title a,
.news_post_title a,
.event_title,
.event_title a,
.mission_title,
.footer_title,
.logo_text,
.footer_logo_text {
    font-family: 'Nunito', 'Assistant', sans-serif !important;
    letter-spacing: -0.01em;
}

body, p, li, td, input, select, textarea, button {
    font-family: 'Nunito Sans', 'Nunito', 'Assistant', sans-serif;
}

p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--muted);
}

/* ── Section titles — gold underline ornament ────────────────── */

.section_title {
    font-size: 34px;
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    padding-bottom: 14px;
}

.section_title_container {
    position: relative;
}

/* gold rule under the title */
.section_title::after {
    content: '';
    display: block;
    width: 54px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

.text-center .section_title::after,
.section_title_container.text-center .section_title::after {
    margin: 12px auto 0;
}

.section_subtitle {
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    font-style: normal;
    font-size: 16px;
    color: var(--muted);
    margin-top: 10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.button {
    background: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 2px;
    transition: background 250ms ease, border-color 250ms ease;
}

.button:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.button a {
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.read_more {
    display: inline-block;
    padding: 9px 26px;
    background: transparent;
    border: 2px solid var(--navy);
    color: var(--navy) !important;
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 2px;
    transition: background 220ms ease, color 220ms ease;
    text-decoration: none !important;
}

.read_more:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff !important;
}

/* ── Top bar ─────────────────────────────────────────────────── */

.top_bar_background {
    background: var(--navy) !important;
    background-image: none !important;
}

.top_bar_content {
    height: 44px;
    border-bottom: 1px solid rgba(200, 151, 58, 0.35);
}

.top_bar_contact_list li i,
.top_bar_contact_list li > div,
.top_bar_contact_list li > div a {
    color: rgba(255,255,255,0.82) !important;
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    font-size: 13px;
}

.social_list li a i { color: rgba(255,255,255,0.75) !important; }
.social_list li:hover a i { color: var(--gold) !important; }

/* ── Header ──────────────────────────────────────────────────── */

.header_container {
    background: #fff;
    border-bottom: 3px solid var(--gold);
}

.logo_text {
    font-size: 26px;
    color: var(--navy) !important;
    letter-spacing: 0.05em;
}

.header.scrolled .logo_text { font-size: 21px; }

/* Nav links */
.main_nav li a {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 200ms ease, border-color 200ms ease;
}

.main_nav li a:hover,
.main_nav li.active a {
    color: var(--gold) !important;
    border-bottom-color: var(--gold);
}

/* ── Mobile menu ─────────────────────────────────────────────── */

.menu { background: rgba(27, 39, 72, 0.97) !important; }

.menu_nav ul li a {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff !important;
}

.menu_nav ul li a:hover { color: var(--gold) !important; }

.menu_close i { color: #fff !important; }
.menu_close:hover i { color: var(--gold) !important; }

/* ── Hero / Home ─────────────────────────────────────────────── */

.home_background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(27, 39, 72, 0.55) 0%,
        rgba(27, 39, 72, 0.72) 100%
    );
    pointer-events: none;
}

.home_title {
    font-size: 52px;
    font-weight: 900;
    text-shadow: 0 2px 18px rgba(0,0,0,0.45);
    line-height: 1.2;
}

.home_text {
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    font-style: normal;
    font-size: 18px;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ── Event countdown banner ──────────────────────────────────── */

.event_container {
    background: #fff !important;
    box-shadow: 0 4px 24px rgba(27,39,72,0.10);
    border-top: 3px solid var(--gold);
}

.event_date { background: var(--gold) !important; }

.event_num { color: var(--navy) !important; }

.event_icon i { color: var(--gold) !important; }

.event_title,
.event_title a { color: var(--navy) !important; }
.event_title a:hover { color: var(--gold) !important; }

/* ── About section ───────────────────────────────────────────── */

.about { background: var(--cream) !important; }

/* ── Sermons / Testimonials ──────────────────────────────────── */

.sermons { background: #fff !important; }

.card {
    border-bottom: 3px solid var(--gold) !important;
    box-shadow: 0 2px 16px rgba(27,39,72,0.07);
    transition: box-shadow 250ms ease, transform 250ms ease;
}

.card:hover {
    box-shadow: 0 6px 28px rgba(27,39,72,0.14);
    transform: translateY(-3px);
}

.sermon_title a { color: var(--ink) !important; }
.sermon_title a:hover { color: var(--gold) !important; }

.sermon_info_list li a { color: var(--gold) !important; }

/* ── Mission ─────────────────────────────────────────────────── */

.mission_background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(27, 39, 72, 0.78);
    pointer-events: none;
}

.mission_icon i { color: var(--gold) !important; }

.mission_item:not(:last-child)::after {
    background: rgba(200, 151, 58, 0.25) !important;
}

/* ── Events grid ─────────────────────────────────────────────── */

.events { background: var(--cream) !important; }

.events_item_content { border-top: 2px solid var(--gold); padding-top: 16px; }

/* ── Quote ───────────────────────────────────────────────────── */

.quote { background: var(--navy) !important; }

.quote_quote {
    font-family: 'Nunito', sans-serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 600;
    color: rgba(255,255,255,0.92) !important;
    line-height: 1.65;
}

.quote_source { color: var(--gold) !important; }

.quote_icon img { opacity: 0.12; filter: brightness(10); }

/* ── Latest News ─────────────────────────────────────────────── */

.latest_news { background: #fff !important; }

.news_post {
    border-bottom: 2px solid transparent;
    transition: border-color 220ms ease;
}

.news_post:hover { border-color: var(--gold); }

.news_post_title a { color: var(--ink) !important; }
.news_post_title a:hover { color: var(--gold) !important; }

.news_post_meta ul li i { color: var(--gold) !important; }
.news_post_meta ul li a:hover { color: var(--gold) !important; }

/* ── Footer ──────────────────────────────────────────────────── */

.footer_background {
    background: var(--navy) !important;
    background-image: none !important;
}

.footer_col { position: relative; z-index: 2; }

.footer_contact ul li div i { color: var(--gold) !important; }

.footer_links_list li a:hover { color: var(--gold) !important; }
.footer_links_list li a i     { color: var(--gold) !important; }

.subscribe_button {
    background: var(--gold) !important;
    color: #fff !important;
}

.subscribe_button:hover {
    background: #fff !important;
    color: var(--navy) !important;
}

.copyright_container {
    border-top: 1px solid rgba(200, 151, 58, 0.25) !important;
}

.copyright { color: rgba(255,255,255,0.6) !important; font-family: 'Nunito Sans', 'Nunito', sans-serif; font-size: 14px; }
.copyright a { color: var(--gold) !important; }

.footer_social ul li a i:hover { color: var(--gold) !important; }

/* ── Inline #005f7f overrides ────────────────────────────────── */
/* All the inline-style teal (#005f7f) used in newer pages */

a[style*="color:#005f7f"],
a[style*="color: #005f7f"] { color: var(--gold) !important; }

/* Join page cards */
.join-card-header    { background: var(--navy) !important; }
.join-alert          { border-color: var(--navy) !important; background: #f5f2ea !important; }
.join-alert.warning  { border-color: #c08010 !important; }
.join-alert.danger   { border-color: #9e2020 !important; }
.join-info-item i    { color: var(--gold) !important; }
.join-checklist li i { color: #5a9e4e !important; }
.join-submit         { background: var(--navy) !important; }
.join-submit:hover   { background: var(--gold) !important; }
.join-form-control:focus { border-color: var(--navy) !important; }

/* Post / blog / search sidebar headers */
[style*="border-bottom:2px solid #005f7f"],
[style*="border-bottom: 2px solid #005f7f"] {
    border-bottom-color: var(--gold) !important;
}

/* Sermon / testimony cards hover images */
.card-img-top { transition: opacity 250ms ease; }
.card:hover .card-img-top { opacity: 0.93; }

/* Gallery subtle hover */
.gallery_item a img {
    transition: opacity 220ms ease;
}
.gallery_item a:hover img { opacity: 0.85; }

/* ── Warm section backgrounds ────────────────────────────────── */

.sermons,
.latest_news,
.events,
.about { background: var(--cream) !important; }

/* ════════════════════════════════════════════════════════════════
   CREATIVE LAYER — animations, depth, visual interest
   ════════════════════════════════════════════════════════════════ */

/* ── Hero entrance animation ─────────────────────────────────── */

@keyframes mc-rise {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.home_title  { animation: mc-rise .95s cubic-bezier(.22,1,.36,1) both .15s; }
.home_text   { animation: mc-rise .95s cubic-bezier(.22,1,.36,1) both .42s; }
.button.home_link { animation: mc-rise .95s cubic-bezier(.22,1,.36,1) both .68s; }

/* Scroll-down chevron */
.scroll_hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    line-height: 1;
}
.scroll_hint i {
    display: block;
    color: rgba(255,255,255,.55);
    font-size: 22px;
    animation: mc-bounce 2.3s ease-in-out infinite;
}
@keyframes mc-bounce {
    0%, 100% { transform: translateY(0);   opacity: .5; }
    50%       { transform: translateY(8px); opacity: 1;  }
}

/* ── Scroll-reveal ───────────────────────────────────────────── */

@keyframes mc-fallback-show {
    to { opacity: 1; transform: translateY(0); }
}

.mc-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease, transform .75s ease;
    /* Safety net: if JS never fires, reveal after 1.5 s */
    animation: mc-fallback-show 0.01s ease 1.5s forwards;
}
.mc-reveal.mc-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none; /* JS fired — cancel the fallback */
}
.mc-reveal-d1           { transition-delay: .10s; }
.mc-reveal-d2           { transition-delay: .22s; }
.mc-reveal-d3           { transition-delay: .34s; }

/* ── Section title underline grows in ───────────────────────── */

.section_title::after {
    width: 0;
    transition: width .65s cubic-bezier(.22,1,.36,1) .12s;
}
.section_title.mc-visible::after { width: 54px; }

/* ── Stats strip ─────────────────────────────────────────────── */

.stats_strip {
    background: var(--navy);
    padding: 56px 0;
    position: relative;
    z-index: 1;
}
.stats_strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(200,151,58,.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.stat_item {
    text-align: center;
    padding: 12px 20px;
    position: relative;
}
.stat_item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 15%; height: 70%;
    width: 1px;
    background: rgba(200,151,58,.22);
}
.stat_num {
    font-family: 'Nunito', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    display: block;
}
.stat_label {
    font-family: 'Nunito Sans', 'Nunito', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,.55);
    margin-top: 9px;
    display: block;
}

/* ── About section left-edge accent ─────────────────────────── */

.about_image {
    overflow: visible !important;
}
.about_image::before {
    content: '';
    position: absolute;
    top: 16px; left: -10px;
    width: 4px; height: 78%;
    background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%);
    border-radius: 2px;
    z-index: 2;
}

/* ── Testimonial card — decorative quote mark ────────────────── */

.card-body {
    position: relative;
}
.card-body::before {
    content: '\201C';
    font-family: 'Nunito', sans-serif;
    font-size: 120px;
    color: var(--gold);
    opacity: .1;
    position: absolute;
    top: -20px; left: 8px;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
}

/* ── Mission items — gold left rule ──────────────────────────── */

.mission_item {
    position: relative;
}
.mission_item::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: transparent;
    transition: background .35s ease;
}
.mission_item:hover::before {
    background: linear-gradient(to right, var(--gold), transparent);
}

/* ── Quote — large typographic marks ────────────────────────── */

.quote_icon { display: none; }

.quote_quote {
    position: relative;
    padding: 0 48px;
}
.quote_quote::before,
.quote_quote::after {
    font-family: 'Nunito', sans-serif;
    font-size: 96px;
    color: var(--gold);
    opacity: .4;
    position: absolute;
    line-height: .75;
}
.quote_quote::before { content: '\201C'; top: -8px;  left: 0;  }
.quote_quote::after  { content: '\201D'; bottom: -40px; right: 0; }

/* ── Latest news — image hover zoom ─────────────────────────── */

.news_image        { overflow: hidden !important; }
.news_image img    { display: block; transition: transform .45s ease; }
.news_post:hover .news_image img { transform: scale(1.06); }

/* ── Events — image hover zoom ──────────────────────────────── */

.events_item_image        { overflow: hidden !important; }
.events_item_image img    { display: block; transition: transform .45s ease; }
.events_item:hover .events_item_image img { transform: scale(1.05); }

/* ── Gallery strip hover ─────────────────────────────────────── */

.gallery_item a {
    display: block;
    overflow: hidden;
    position: relative;
}
.gallery_item a::after {
    content: '\f002';
    font-family: 'FontAwesome';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold);
    background: rgba(27,39,72,.45);
    opacity: 0;
    transition: opacity .3s ease;
}
.gallery_item a:hover::after { opacity: 1; }
.gallery_item a img { transition: transform .4s ease, opacity .3s ease; }
.gallery_item a:hover img { transform: scale(1.06); opacity: .85; }

/* ── Shared page hero badge + outline ───────────────────────── */

.join-hero-badge {
    display: inline-block;
    background: rgba(200,151,58,.18);
    border: 1px solid rgba(200,151,58,.5);
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-family: 'Nunito Sans','Nunito',sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.join-hero-outline {
    display: inline-block;
    padding: 13px 34px;
    border: 2px solid rgba(255,255,255,.7);
    color: rgba(255,255,255,.9) !important;
    font-family: 'Nunito Sans','Nunito',sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 2px;
    text-decoration: none !important;
    transition: background .25s ease, border-color .25s ease;
}
.join-hero-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
}

/* ── Page section wrappers ───────────────────────────────────── */

.join-section      { background: var(--cream); padding: 72px 0 60px; }
.join-form-section { background: #f2f0ea;      padding: 72px 0 88px; }

/* ── Card system (jc) ────────────────────────────────────────── */

.jc {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(27,39,72,.07);
    margin-bottom: 28px;
    overflow: hidden;
    border-top: 3px solid var(--gold);
}
.jc-header {
    background: var(--navy);
    color: #fff;
    padding: 15px 26px;
    font-family: 'Nunito',sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.jc-header i { margin-right: 9px; color: var(--gold); }
.jc-body     { padding: 26px 28px; }

/* info row inside a card */
.jc-row  { display: flex; gap: 0; margin: 0 -8px; flex-wrap: wrap; }
.jc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 calc(50% - 16px);
    margin: 0 8px 18px;
    min-width: 200px;
}
.jc-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(200,151,58,.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.jc-icon i { color: var(--gold); font-size: 14px; }
.jc-label {
    font-family: 'Nunito',sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy);
    display: block;
    margin-bottom: 2px;
}
.jc-item > div { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* alerts inside cards */
.jc-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 12px;
}
.jc-alert i { flex-shrink: 0; margin-top: 1px; font-size: 16px; }
.jc-alert-info   { background: #f5f0e8; border-left: 4px solid var(--gold);  color: var(--muted); }
.jc-alert-info i { color: var(--gold); }
.jc-alert-danger   { background: #fdf4f4; border-left: 4px solid #9e2020; color: #5c1515; }
.jc-alert-danger i { color: #9e2020; }

/* form card variant — no top gold strip, heavier shadow */
.jc-form-card { border-top: none; box-shadow: 0 4px 40px rgba(27,39,72,.11); overflow: visible; }

/* ── Form sections (jf) ──────────────────────────────────────── */

.jf-section { border-bottom: 1px solid #ede8dd; }
.jf-section:last-child { border-bottom: none; }
.jf-section-head {
    background: var(--navy);
    color: #fff;
    padding: 14px 28px;
    font-family: 'Nunito',sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.jf-section-head i { margin-right: 9px; color: var(--gold); }
.jf-section-body   { padding: 26px 28px; }

.jf-group   { margin-bottom: 20px; }
.jf-label {
    font-family: 'Nunito',sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
    display: block;
    margin-bottom: 7px;
}
.jf-required { color: #c0392b; }
.jf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--muted); }

.jf-input {
    width: 100%;
    border: 1.5px solid #ddd8cc;
    border-radius: 3px;
    padding: 11px 14px;
    font-family: 'Nunito Sans','Nunito',sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.jf-input:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(27,39,72,.08);
}
.jf-input::placeholder { color: #bbb4a6; }
.jf-file-hint {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

/* footer + submit */
.jf-footer { padding: 26px 28px; background: rgba(27,39,72,.02); }
.jf-agree-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 22px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #ddd8cc;
    border-radius: 3px;
}
.jf-agree-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--navy); }
.jf-agree-label strong { color: var(--ink); }
.jf-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Nunito',sans-serif;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background .2s ease;
}
.jf-submit:hover   { background: var(--gold); }
.jf-submit:disabled { opacity: .7; cursor: not-allowed; }

@media (max-width: 767px) {
    .jc-item       { flex: 1 1 100%; }
    .jf-section-body { padding: 20px 18px; }
    .jc-body         { padding: 20px 18px; }
}

/* ── Event date box — pulse ring on upcoming event ───────────── */

.event_container .event_date {
    position: relative;
}
.event_container .event_date::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--gold);
    opacity: 0;
    animation: mc-ring 2.4s ease-in-out infinite;
}
@keyframes mc-ring {
    0%   { transform: scale(1);    opacity: .6; }
    70%  { transform: scale(1.14); opacity: 0;  }
    100% { transform: scale(1.14); opacity: 0;  }
}
