/* =========================================================
   Philadelphia Church International - Minnesota
   Front-end stylesheet
   Palette taken from the original pci-mn.org design
   ========================================================= */

:root {
    --navy:        #283b6a;
    --navy-dark:   #242c42;
    --teal:        #21cdc0;
    --blue:        #227bc3;
    --submenu:     #0986c0;
    --pink:        #e44993;
    --peach:       #fabc8b;
    --ink:         #231f20;
    --body:        #6a6969;
    --white:       #ffffff;
    --off-white:   #fefefe;
    --grey-bg:     #f7f8fa;
    --grey-2:      #f6f6f6;
    --fb:          #0371c6;
    --yt:          #fb0a0a;
    --green:       #048518;
    --red:         #f04d4e;
    --team-blue:   #285afd;

    --font-head:   'Quicksand', 'Trebuchet MS', sans-serif;
    --font-body:   'Open Sans', 'Helvetica Neue', Arial, sans-serif;
    --container:   1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--body);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--teal); text-decoration: none; transition: all .3s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--navy-dark);
    margin: 0 0 .5em;
    line-height: 1.2;
    font-weight: 600;
}

p { margin: 0 0 1em; }

.container       { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.container-wide  { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 15px; }
.center          { text-align: center; }
.mt-30           { margin-top: 30px; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border: 0;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.3;
    cursor: pointer;
    transition: all .4s ease;
    text-align: center;
}
.btn-navy    { background: var(--navy);   color: #fff; }
.btn-navy:hover  { background: var(--teal); color: #fff; }
.btn-teal    { background: var(--teal);   color: #fff; }
.btn-teal:hover  { background: var(--navy); color: #fff; }
.btn-white   { background: var(--off-white); color: var(--navy); font-family: var(--font-head); font-size: 25px; padding: 14px 28px; }
.btn-white:hover { background: var(--teal); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-danger  { background: var(--yt); color: #fff; }
.btn-danger:hover { background: #c40000; color: #fff; }
.btn-lg      { font-size: 20px; padding: 14px 30px; }
.btn-xl      { font-size: 22px; padding: 16px 34px; }
.btn-round   { border-radius: 25px; font-size: 17px; font-weight: 500; padding: 14px 22px; }

/* ---------------------------------------------------------
   Top bar
   --------------------------------------------------------- */
.topbar {
    background: var(--navy);
    color: #fff;
    font-size: 15px;
}
.topbar a { color: #fff; }
.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.tb-item i    { color: #fff; font-size: 15px; }
.tb-label     { padding-left: 9px; }
.tb-phone,
.tb-address   { color: #fff; }
.tb-social    { display: inline-flex; gap: 4px; margin-left: 10px; }
.soc {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    color: #fff;
    font-size: 14px;
}
.soc.fb { background: var(--fb); }
.soc.yt { background: var(--yt); }
.soc:hover { opacity: .85; color: #fff; }

/* ---------------------------------------------------------
   Navbar
   --------------------------------------------------------- */
.site-header {
    background: #fff;
    padding-top: 12px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 4px 2px rgba(211, 213, 214, .36);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 85px; max-width: 30vw; }

.nav-toggle {
    display: none;
    background: var(--navy);
    color: var(--off-white);
    border: 0;
    font-size: 26px;
    line-height: 1;
    padding: 8px 12px;
    cursor: pointer;
}

.main-nav { flex: 1 1 auto; }
.nav-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.nav-li { position: relative; }
.nav-li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 20px 25px;
    color: var(--navy);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    border-bottom: 3px solid transparent;
}
.nav-li > a:hover,
.nav-li:hover > a { color: var(--teal); }
.nav-li.current > a { color: var(--teal); border-bottom-color: var(--teal); }
.nav-li > a .fa-caret-down { font-size: 13px; }

.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--submenu);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 50;
}
.nav-li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li a {
    display: block;
    padding: 10px;
    margin-left: 10px;
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
}
.sub-menu li a:hover,
.sub-menu li.current a { background: rgba(0, 0, 0, .15); color: #fff; }

.nav-close   { display: none; }
.nav-backdrop { display: none; }

/* ---------------------------------------------------------
   Hero slider
   --------------------------------------------------------- */
.hero-slider {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: #070810;
}
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-overlay { position: absolute; inset: 0; background: #050707; opacity: .4; }
.hero-inner {
    position: absolute;
    color: #fff;
}
.hero-inner.align-center {
    width: 70%;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -42%);
    padding: 60px 50px 50px;
    text-align: center;
}
.hero-inner.align-left {
    width: 54%;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    padding: 50px;
    text-align: left;
}
.hero-heading {
    font-family: var(--font-head);
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.hero-sub {
    font-family: var(--font-head);
    font-size: 60px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    padding-bottom: 20px;
}
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-nav, .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 0;
    background: rgba(33, 205, 192, .74);
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s;
}
.hero-nav:hover, .slider-nav:hover { background: var(--teal); }
.hero-nav.prev, .slider-nav.prev { left: 20px; }
.hero-nav.next, .slider-nav.next { right: 20px; }

/* ---------------------------------------------------------
   Schedule cards
   --------------------------------------------------------- */
.schedule-strip { margin-top: -3em; position: relative; z-index: 10; }
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.schedule-card { padding: 25px; color: #fff; }
.schedule-card-inner { display: flex; gap: 20px; align-items: flex-start; }
.schedule-card-inner > i { font-size: 50px; color: #fafafa; line-height: 1.1; }
.schedule-card-body h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 600;
    color: #f8f9f9;
    margin: 0 0 10px;
}
.schedule-card-body p { color: #fff; margin: 0; font-size: 15px; }

/* ---------------------------------------------------------
   Photo carousel — endlessly looping, 4 photos per view.
   Clones at both ends are inserted by JS so the strip never
   visibly rewinds: the viewer cannot tell where it starts.
   --------------------------------------------------------- */
.photo-strip { padding: 40px 0 20px; }

.pstrip {
    position: relative;
    --pstrip-h: 285px;
    --pstrip-pv: 4;
}
.pstrip-viewport { overflow: hidden; }
.pstrip-track {
    display: flex;
    will-change: transform;
    /* JS sets the transform; this is the resting state before it runs */
    transform: translate3d(0, 0, 0);
}
.pstrip-item {
    flex: 0 0 calc(100% / var(--pstrip-pv));
    max-width: calc(100% / var(--pstrip-pv));
    padding: 0 6px;                 /* 12px between photos, as on the original */
}
.pstrip-item img {
    width: 100%;
    height: var(--pstrip-h);
    object-fit: cover;
    display: block;
}
.pstrip.shape-rounded .pstrip-item img { border-radius: 25px; }
.pstrip.shape-circle  .pstrip-item img { border-radius: 50%; aspect-ratio: 1/1; height: auto; }
.pstrip.shape-square  .pstrip-item img { border-radius: 0; }

/* Fixed-size variant (the ministry pages): a square photo of a set size,
   centred in its slot rather than stretched across it. */
.pstrip.fixed .pstrip-item img {
    width: var(--pstrip-w, 500px);
    max-width: 100%;
    margin: 0 auto;
}

/* Arrows — small blue squares, as on the original */
.pstrip-nav {
    position: absolute;
    top: calc(var(--pstrip-h) / 2);
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 20%;
    background: var(--pstrip-arrow, #0334d3);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    box-shadow: 0 0 4px -1px #231f20;
    transition: background .3s ease;
}
.pstrip-nav:hover { filter: brightness(.8); }
.pstrip-nav.prev { left: 6px; }
.pstrip-nav.next { right: 6px; }

/* Dots */
.pstrip-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pstrip-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(35, 31, 32, .53);
    cursor: pointer;
    transition: all .25s ease;
}
.pstrip-dots button.active { width: 12px; height: 12px; background: #231f20; }

/* ---------------------------------------------------------
   Welcome
   --------------------------------------------------------- */
.welcome-sec { padding: 1em 0 4em; }
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.welcome-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.welcome-img img { width: 100%; height: 100%; object-fit: cover; }
.welcome-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy-dark);
    line-height: 1.2;
    margin-bottom: 12px;
}
.welcome-body {
    font-family: var(--font-head);
    font-size: 20px;
    color: var(--body);
}

/* ---------------------------------------------------------
   Generic heading section
   --------------------------------------------------------- */
.heading-sec .sec-heading {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}
.sec-heading.center { text-align: center; }

/* ---------------------------------------------------------
   Sermons
   --------------------------------------------------------- */
.sermons-sec { padding: 30px 0 50px; }
.sermons-sec .sec-heading { font-size: 34px; color: var(--navy-dark); margin-bottom: 30px; }
.sermons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.sermon-video {
    position: relative;
    padding-bottom: 62.5%;  /* 8:5 aspect ratio, as on the original */
    height: 0;
    overflow: hidden;
    background: #000;
}
.sermon-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------
   Pillars
   --------------------------------------------------------- */
.pillars-sec { background: var(--grey-bg); padding: 4em 0 3em; }
.pillars-title {
    text-align: center;
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 600;
    color: var(--navy-dark);
    margin: 0;
}
.pillars-sub {
    text-align: center;
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--body);
    padding-bottom: 2em;
}
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.pillar { display: flex; gap: 18px; padding-bottom: 1em; }
.pillar.align-right { flex-direction: row-reverse; text-align: right; }
.pillar.align-left  { text-align: left; }
.pillar-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    padding: calc(.5em + 35px);
    font-size: 35px;
    color: var(--teal);
    border: 2px solid var(--teal);
    border-radius: 50%;
    transition: all .4s ease;
}
.pillar:hover .pillar-icon i {
    color: #fff;
    background: var(--teal);
    transform: rotate(28deg);
}
.pillar-body h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy-dark);
    margin: 0 0 10px;
}
.pillar-body p { margin: 0; }

/* ---------------------------------------------------------
   Background banner with heading
   --------------------------------------------------------- */
.bgbanner {
    position: relative;
    padding: 50px 0 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 7px;
    transition: background-image .8s ease-in-out;
}
.bgbanner-overlay { position: absolute; inset: 0; background: #3a4447; opacity: .2; }
.bgbanner .container { position: relative; z-index: 2; }
.bgbanner-heading {
    color: #f7f7f7;
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

/* ---------------------------------------------------------
   Image slider block
   --------------------------------------------------------- */
.imgslider-sec { padding: 25px 0; }
.imgslider-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 600;
    color: var(--navy-dark);
    text-align: center;
    margin-bottom: 16px;
}
.imgslider { position: relative; overflow: hidden; }
.imgslider-track { position: relative; }
.imgslide { display: none; }
.imgslide.is-active { display: block; animation: fadeIn .8s ease; }
.imgslide img { width: 100%; max-height: 620px; object-fit: contain; margin: 0 auto; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Two half-width blocks sit side by side; any full-width section after
   them clears the floats so nothing overlaps. */
.imgslider-sec.half,
.image-sec.half { width: 50%; float: left; }
.imgslider-sec.half .container,
.image-sec.half .container { max-width: 100%; }
#content > section:not(.half) { clear: both; }
#content::after { content: ""; display: table; clear: both; }

/* ---------------------------------------------------------
   Single image / stacked images
   --------------------------------------------------------- */
.image-sec { padding: 20px 0; }
.image-sec figcaption { text-align: center; padding-top: 8px; font-size: 14px; }

.stack-sec { padding: 40px 0 60px; }
.stack-img { margin-bottom: 24px; }
.stack-img img { width: 100%; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */
.pci-form { display: flex; flex-wrap: wrap; gap: 0 18px; }
.pci-form .fld { margin-bottom: 20px; width: 100%; }
.pci-form .fld.half { width: calc(50% - 9px); }
.pci-form .fld.full { width: 100%; }
.pci-form label {
    display: block;
    font-size: 16px;
    padding-bottom: 8px;
    color: var(--navy-dark);
}
.pci-form input[type=text],
.pci-form input[type=email],
.pci-form input[type=tel],
.pci-form input[type=date],
.pci-form select,
.pci-form textarea {
    width: 100%;
    line-height: 28px;
    min-height: 28px;
    padding: 10px 30px;
    border: 1px solid rgba(207, 207, 207, .54);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    transition: all .3s;
}
.pci-form textarea { padding: 14px 30px; resize: vertical; }
.pci-form input:focus, .pci-form select:focus, .pci-form textarea:focus {
    outline: none;
    border-color: var(--teal);
}
.pci-form ::placeholder { color: rgba(174, 174, 174, .77); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border-left: 4px solid var(--teal);
    background: #eafaf8;
    color: #10716a;
    width: 100%;
}
.form-alert.err { border-color: var(--yt); background: #fdecec; color: #a01414; }

/* Appointment section */
.appt-sec { padding: 30px 0; }
.appt-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; }
.appt-media img { width: 100%; }
.appt-title {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 600;
    color: var(--navy-dark);
    padding-bottom: 20px;
    margin: 0;
}

/* ---------------------------------------------------------
   Counters
   --------------------------------------------------------- */
.counters-sec {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5em 0;
    margin-bottom: 73px;
}
.counters-overlay { position: absolute; inset: 0; background: var(--navy); opacity: .8; }
.counters-sec .container { position: relative; z-index: 2; }
.counters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.counter { text-align: center; color: #fff; }
.counter-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em; height: 1em;
    padding: calc(.5em + 10px);
    font-size: 40px;
    color: var(--off-white);
}
.counter-num {
    font-family: var(--font-head);
    font-size: 50px;
    font-weight: 600;
    color: #f7f7f7;
    line-height: 1.1;
}
.counter-label {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 2;
    color: #fff;
}

/* ---------------------------------------------------------
   CTA banner
   --------------------------------------------------------- */
.cta-sec {
    position: relative;
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    padding: 7em 0;
    margin-top: 6em;
}
.cta-overlay { position: absolute; inset: 0; background: var(--navy); opacity: .8; }
.cta-sec .container { position: relative; z-index: 2; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-body { text-align: center; }
.cta-line1 {
    font-family: var(--font-head);
    font-size: 21px;
    font-weight: 700;
    color: var(--off-white);
    line-height: 1.2;
}
.cta-line2 {
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 700;
    color: #f7f7f7;
    line-height: 1.2;
    padding-bottom: 20px;
}

/* ---------------------------------------------------------
   Page banner (inner pages)
   --------------------------------------------------------- */
.page-banner {
    position: relative;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    padding: 125px 0 75px;
}
.page-banner-overlay { position: absolute; inset: 0; background: #026d99; opacity: .9; }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 {
    color: var(--off-white);
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
    margin: 0 0 8px;
}
.breadcrumb { color: var(--grey-2); font-size: 15px; }
.breadcrumb a { color: #fbfbfb; }
.breadcrumb a:hover { color: #ff5722; }
.breadcrumb .sep { color: #fff; font-weight: 700; }

/* ---------------------------------------------------------
   Team
   --------------------------------------------------------- */
.team-sec { padding: 40px 0 60px; }
.team-group-title {
    text-align: center;
    color: #0047b2;
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 600;
    margin: 30px 0 30px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 20px;
}
.team-card { background: var(--team-blue); overflow: hidden; }
.team-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.team-body { padding: 0 12px 18px; text-align: center; }
.team-body h3 {
    color: #fff;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 600;
    padding-top: 20px;
    margin: 0 0 10px;
}
.team-body p { color: #fff; font-size: 16px; margin: 0; }

/* ---------------------------------------------------------
   Weekly activities
   --------------------------------------------------------- */
.activities-sec {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px;
}
.activities-panel { background: #fff; padding: 60px; max-width: 760px; }
.activities-title {
    text-align: center;
    color: #000;
    font-family: var(--font-body);
    font-size: 30px;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1;
    padding-bottom: 30px;
    margin: 0;
}
.activity-row { display: flex; margin-bottom: 10px; }
.activity-name {
    flex: 1 1 auto;
    background: var(--red);
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    padding: 12px 14px;
    display: flex;
    align-items: center;
}
.activity-time {
    flex: 0 0 170px;
    background: #000;
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.4;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ---------------------------------------------------------
   Ministry pages
   --------------------------------------------------------- */
.ministry-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 140px 0 110px;
}
.ministry-hero-overlay { position: absolute; inset: 0; background: rgba(102, 102, 102, .96); opacity: .7; }
.ministry-hero .container { position: relative; z-index: 2; }
.ministry-hero-title {
    text-align: center;
    color: #fff;
    font-family: 'Cabin', var(--font-body);
    font-size: 60px;
    font-weight: 600;
    line-height: 1.65em;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin: 0;
}

/* Intro sits in a peach-bordered box, as on the original */
.ministry-intro { padding: 40px 0; }
.ministry-intro-text {
    border: 2px solid var(--peach);
    padding: 30px 30px 6px;
    text-align: center;
    font-family: var(--font-head);
    font-size: 20px;
    color: var(--navy-dark);
}
.ministry-intro-text h4 {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 .6em;
}
.ministry-intro-text h4:last-child { margin-bottom: .3em; }

.carousel-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}
.carousel-bg-overlay { position: absolute; inset: 0; background: #231f20; opacity: .8; }
.carousel-bg .container { position: relative; z-index: 2; }

/* ---------------------------------------------------------
   Gallery
   --------------------------------------------------------- */
.gallery-sec { padding: 40px 0 70px; }
.gallery-title {
    text-align: center;
    font-family: var(--font-head);
    font-size: 40px;
    font-weight: 600;
    color: var(--navy-dark);
    text-transform: uppercase;
    margin-bottom: 30px;
}
.gallery-grid { display: grid; gap: 14px; }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-item { display: block; overflow: hidden; background: #eee; }
.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* ---------------------------------------------------------
   Giving
   --------------------------------------------------------- */
.giving-sec {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
}
.giving-panel {
    background: rgba(19, 0, 180, .73);
    padding: 60px 40px;
    color: #fff;
    max-width: 900px;
    margin: 0 auto;
}
.giving-heading { color: #fff; font-family: var(--font-head); font-size: 40px; font-weight: 700; margin: 0 0 10px; }
.giving-sub     { color: #fff; font-family: var(--font-head); font-size: 28px; margin: 0 0 14px; }
.giving-intro, .giving-details { color: #fff; }
.giving-details { font-size: 18px; margin-bottom: 26px; }
.giving-form label { color: #fff; }
.giving-form .fld { margin-bottom: 16px; }

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */
.contact-sec { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.contact-heading {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 22px;
}
.cinfo { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; }
.cinfo a { color: var(--body); }
.cinfo a:hover { color: var(--teal); }
.cicon i { color: var(--teal); font-size: 18px; }
.map-sec iframe { width: 100%; border: 0; display: block; }

/* ---------------------------------------------------------
   Rich text
   --------------------------------------------------------- */
.richtext-sec { padding: 45px 0; }
.richtext { font-size: 16px; }
.richtext h2 { font-size: 32px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { margin-top: 0; }

.footer-ministries { background: var(--navy); padding: 30px 0; }
.fm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fm-item { display: flex; align-items: center; gap: 20px; }
.fm-icon i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em; height: 1em;
    padding: calc(.5em + 18px);
    font-size: 45px;
    color: var(--off-white);
    background: var(--teal);
}
.fm-title {
    color: #fff;
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.15;
}

.footer-main {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 6em 0 5em;
}
.footer-main-overlay { position: absolute; inset: 0; background: var(--navy-dark); opacity: .7; }
.footer-main .container { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-brand {
    font-family: var(--font-head);
    font-size: 45px;
    font-weight: 600;
    line-height: 1;
    color: var(--teal);
    margin-bottom: 10px;
}
.footer-about { color: #fff; font-size: 14px; font-weight: 300; }
.footer-h {
    color: var(--grey-2);
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    padding-bottom: 14px;
    margin: 0;
}
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; }
.footer-list li i { color: var(--teal); font-size: 12px; }
.footer-list li a { color: var(--off-white); font-size: 15px; }
.footer-list li a:hover { color: var(--teal); }

.finfo { display: flex; gap: 15px; align-items: flex-start; padding-bottom: 9px; }
.finfo, .finfo a { color: var(--grey-2); font-size: 15px; font-weight: 300; }
.finfo a:hover { color: var(--teal); }
.ficon i { color: var(--teal); font-size: 18px; }

.footer-bottom { background: var(--navy); padding: 20px 0; text-align: center; }
.footer-bottom a { color: #fff; font-size: 15px; }
.footer-bottom a:hover { color: var(--teal); }

/* ---------------------------------------------------------
   Back to top + lightbox
   --------------------------------------------------------- */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    z-index: 800;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox button {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}
.lb-close { top: 18px; right: 24px; font-size: 44px; }
.lb-prev  { left: 20px;  font-size: 62px; }
.lb-next  { right: 20px; font-size: 62px; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-heading, .hero-sub { font-size: 42px; }
    .hero-inner { width: 88%; padding: 40px 20px; }
    .sermons-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: 1fr; }
    .pillar.align-right { flex-direction: row; text-align: left; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid.cols-4, .gallery-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
    .activities-sec { padding: 40px 15px; }
    .activities-panel { padding: 30px; max-width: 100%; }
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: var(--navy);
        padding: 70px 0 30px;
        overflow-y: auto;
        transition: right .35s ease;
        z-index: 1200;
    }
    .main-nav.open { right: 0; }
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .5);
        opacity: 0;
        visibility: hidden;
        transition: all .3s;
        z-index: 1100;
    }
    .nav-backdrop.show { opacity: 1; visibility: visible; }
    .nav-close {
        display: block;
        position: absolute;
        top: 14px;
        right: 14px;
        background: var(--teal);
        color: var(--off-white);
        border: 0;
        font-size: 22px;
        padding: 8px 11px;
        cursor: pointer;
    }
    .nav-ul { flex-direction: column; justify-content: flex-start; }
    .nav-li > a { color: var(--off-white); padding: 13px 22px; border-bottom: 0; justify-content: space-between; }
    .nav-li.current > a { color: var(--teal); }
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(0, 0, 0, .18);
        min-width: 0;
    }
    .nav-li.open > .sub-menu { display: block; }
    .nav-li:hover > .sub-menu { opacity: 1; visibility: visible; }
    .sub-menu li a { padding: 11px 22px 11px 34px; margin-left: 0; }

    .schedule-grid { grid-template-columns: 1fr; }
    .schedule-strip { margin-top: 0; }
    .welcome-grid  { grid-template-columns: 1fr; }
    .appt-grid     { grid-template-columns: 1fr; }
    .contact-grid  { grid-template-columns: 1fr; }
    .cta-grid      { grid-template-columns: 1fr; }
    .cta-spacer    { display: none; }
    .footer-grid   { grid-template-columns: 1fr; gap: 40px; }
    .fm-grid       { grid-template-columns: 1fr; }
    .imgslider-sec.half, .image-sec.half { width: 100%; float: none; }
    .counters-sec, .cta-sec, .giving-sec, .activities-sec { background-attachment: scroll; }
}

@media (max-width: 640px) {
    .hero-slider { height: 78vh; }
    .hero-heading, .hero-sub { font-size: 30px; }
    .btn { font-size: 16px; padding: 10px 18px; }
    .btn-white { font-size: 20px; padding: 10px 16px; }
    .topbar-inner { flex-direction: column; align-items: flex-start; }
    .topbar { font-size: 13px; }
    .brand img { width: 150px; }
    .pillars-title, .gallery-title { font-size: 28px; }
    .counters-grid { grid-template-columns: 1fr; gap: 30px; }
    .team-grid { grid-template-columns: 1fr; }
    .gallery-grid.cols-3, .gallery-grid.cols-4, .gallery-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .pci-form .fld.half { width: 100%; }
    .pstrip { --pstrip-h: 230px; }
    .ministry-hero-title { font-size: 34px; letter-spacing: 2.5px; }
    .pstrip-nav { width: 32px; height: 32px; font-size: 24px; }
    .activity-row { flex-direction: column; }
    .activity-time { flex: 1 1 auto; }
    .giving-panel { padding: 30px 18px; }
    .footer-brand { font-size: 34px; }
    .fm-title { font-size: 22px; }
    .pstrip { --pstrip-h: 300px; }
    .ministry-hero-title { font-size: 47px; letter-spacing: 5px; }
    .pstrip-dots { margin-top: 22px; }
}

