﻿/* Reigns International Ministries consolidated stylesheet */
/* Shared CSS custom properties for all pages */
body.page-index2,
body.page-about,
body.page-contact,
body.page-sermons {
            --bg: #ffffff;
            --ink: #1a1d2b;
            --ink-soft: #47506b;
            --brand: #0f4c81;
            --brand-deep: #093054;
            --gold: #d8a441;
            --sand: #efe5d8;
            --card: #ffffff;
            --line: #e7e9fc;
            font-size: 16px;
        }


        body.page-index2 *,
        body.page-about *,
        body.page-contact *,
        body.page-sermons * {
            box-sizing: border-box;
        }


        html body.page-index2,
        html body.page-about,
        html body.page-contact,
        html body.page-sermons {
            scroll-behavior: smooth;
        }


        body.page-index2,
        body.page-about,
        body.page-contact,
        body.page-sermons {
            margin: 0;
            font-family: "Outfit", sans-serif;
            color: var(--ink);
            background: var(--bg);
            line-height: 1.6;
        }

        body.page-index2 {
            background:
                radial-gradient(circle at 12% 10%, rgba(216, 164, 65, 0.18), transparent 40%),
                radial-gradient(circle at 88% 18%, rgba(15, 76, 129, 0.22), transparent 34%),
                var(--bg);
        }


        body.page-index2 h1, body.page-index2 h2, body.page-index2 h3, body.page-index2 h4, body.page-index2 h5, body.page-index2 h6,
        body.page-about h1, body.page-about h2, body.page-about h3, body.page-about h4, body.page-about h5, body.page-about h6,
        body.page-contact h1, body.page-contact h2, body.page-contact h3, body.page-contact h4, body.page-contact h5, body.page-contact h6,
        body.page-sermons h1, body.page-sermons h2, body.page-sermons h3, body.page-sermons h4, body.page-sermons h5, body.page-sermons h6 {
            font-family: "Spectral", serif;
            margin: 0 0 14px;
            color: var(--ink);
        }


        body.page-index2 p,
        body.page-about p,
        body.page-contact p,
        body.page-sermons p {
            margin: 0 0 12px;
            color: var(--ink-soft);
        }


        body.page-index2 a,
        body.page-about a,
        body.page-contact a,
        body.page-sermons a {
            color: inherit;
            text-decoration: none;
        }


        body.page-index2 .section-space {
            padding: 86px 0;
        }


        body.page-index2 .section-title {
            text-align: center;
            margin-bottom: 44px;
        }


        body.page-index2 .section-title .eyebrow {
            display: inline-block;
            font-size: 13px;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--brand);
            font-weight: 700;
            margin-bottom: 10px;
        }


        body.page-index2 .section-title h2 {
            font-size: 40px;
            line-height: 1.1;
        }


        body.page-index2 .rim-topbar, body.page-about .rim-topbar, body.page-contact .rim-topbar, body.page-sermons .rim-topbar {
            background: var(--ink);
            color: #eff0fa;
            font-size: 14px;
            padding: 10px 0;
        }


        body.page-index2 .rim-topbar .bar-wrap, body.page-about .rim-topbar .bar-wrap, body.page-contact .rim-topbar .bar-wrap, body.page-sermons .rim-topbar .bar-wrap {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }


        body.page-index2 .rim-topbar ul, body.page-about .rim-topbar ul, body.page-contact .rim-topbar ul, body.page-sermons .rim-topbar ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }


        body.page-index2 .rim-nav, body.page-about .rim-nav, body.page-contact .rim-nav, body.page-sermons .rim-nav {
            position: sticky;
            top: 0;
            z-index: 50;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(8px);
            border-bottom: 1px solid rgba(9, 48, 84, 0.08);
        }


        body.page-index2 .rim-nav .nav-wrap, body.page-about .rim-nav .nav-wrap, body.page-contact .rim-nav .nav-wrap, body.page-sermons .rim-nav .nav-wrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            padding: 14px 0;
        }


        body.page-index2 .rim-logo, body.page-about .rim-logo, body.page-contact .rim-logo, body.page-sermons .rim-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 220px;
            color: var(--ink);
            text-decoration: none;
        }


        body.page-index2 .rim-logo img, body.page-about .rim-logo img, body.page-contact .rim-logo img, body.page-sermons .rim-logo img {
            width: 46px;
            height: 46px;
            object-fit: contain;
        }


        body.page-index2 .rim-logo-text strong, body.page-about .rim-logo-text strong, body.page-contact .rim-logo-text strong, body.page-sermons .rim-logo-text strong {
            display: block;
            font-size: 18px;
            line-height: 1;
        }


        body.page-index2 .rim-logo-text span, body.page-about .rim-logo-text span, body.page-contact .rim-logo-text span, body.page-sermons .rim-logo-text span {
            display: block;
            font-size: 12px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--soft, var(--ink-soft, #47506b));
        }


        body.page-index2 .rim-menu, body.page-about .rim-menu, body.page-contact .rim-menu, body.page-sermons .rim-menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 22px;
            font-weight: 600;
            flex-wrap: wrap;
            justify-content: center;
        }


        body.page-index2 .rim-menu a, body.page-about .rim-menu a, body.page-contact .rim-menu a, body.page-sermons .rim-menu a {
            color: #28314e;
            font-size: 16px;
            line-height: 1.2;
            transition: color 0.25s ease;
        }


        body.page-index2 .rim-menu a:hover, body.page-about .rim-menu a:hover, body.page-contact .rim-menu a:hover, body.page-sermons .rim-menu a:hover {
            color: var(--brand);
        }


        body.page-index2 .nav-cta-group, body.page-about .nav-cta-group, body.page-contact .nav-cta-group, body.page-sermons .nav-cta-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }


        body.page-index2 .btn-admin-login, body.page-about .btn-admin-login, body.page-contact .btn-admin-login, body.page-sermons .btn-admin-login {
            border: 1px solid rgba(15, 76, 129, 0.28);
            color: var(--brand);
            background: #fff;
        }


        body.page-index2 .btn-brand, body.page-index2 .btn-outline, body.page-index2 .btn-soft, body.page-about .btn-brand, body.page-about .btn-outline, body.page-about .btn-soft, body.page-contact .btn-brand, body.page-contact .btn-outline, body.page-contact .btn-soft, body.page-sermons .btn-brand, body.page-sermons .btn-outline, body.page-sermons .btn-soft {
            display: inline-block;
            padding: 12px 20px;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.03em;
            transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
        }


        body.page-index2 .btn-brand, body.page-about .btn-brand, body.page-contact .btn-brand, body.page-sermons .btn-brand {
            background: linear-gradient(120deg, var(--brand), var(--brand-deep));
            color: #fff;
            box-shadow: 0 10px 24px rgba(15, 76, 129, 0.28);
        }


        body.page-index2 .btn-outline, body.page-about .btn-outline, body.page-contact .btn-outline, body.page-sermons .btn-outline {
            border: 1px solid rgba(255, 255, 255, 0.65);
            color: #fff;
        }


        body.page-index2 .btn-soft, body.page-about .btn-soft, body.page-contact .btn-soft, body.page-sermons .btn-soft {
            border: 1px solid rgba(15, 76, 129, 0.25);
            color: var(--brand);
            background: #fff;
        }


        body.page-index2 .btn-brand:hover, body.page-index2 .btn-outline:hover, body.page-index2 .btn-soft:hover, body.page-about .btn-brand:hover, body.page-about .btn-outline:hover, body.page-about .btn-soft:hover, body.page-contact .btn-brand:hover, body.page-contact .btn-outline:hover, body.page-contact .btn-soft:hover, body.page-sermons .btn-brand:hover, body.page-sermons .btn-outline:hover, body.page-sermons .btn-soft:hover {
            transform: translateY(-2px);
        }


        body.page-index2 .hero {
            position: relative;
            min-height: 82vh;
            display: flex;
            align-items: center;
            overflow: hidden;
            background-image:
                linear-gradient(100deg, rgba(6, 12, 25, 0.9) 0%, rgba(8, 16, 30, 0.82) 34%, rgba(9, 18, 34, 0.5) 60%, rgba(9, 18, 34, 0.22) 100%),
                url("../images/content/Cross_backround.png");
            background-position: center top;
            background-size: cover;
        }


        body.page-index2 .hero::after {
            content: "";
            position: absolute;
            inset: auto 0 -1px 0;
            height: 110px;
            background: linear-gradient(to top, var(--bg), transparent);
        }


        body.page-index2 .hero-content {
            position: relative;
            z-index: 2;
            width: 100%;
            max-width: 1120px;
            margin: 0 auto;
            text-align: center;
            color: #fff;
            animation: fadeRise 1s ease forwards;
        }


        body.page-index2 .hero-content .eyebrow {
            display: inline-block;
            font-weight: 700;
            letter-spacing: 0.13em;
            text-transform: uppercase;
            font-size: 12px;
            margin-bottom: 14px;
            color: #eff0fa;
        }


        body.page-index2 .hero-content h1 {
            color: #fff;
            font-size: clamp(36px, 6vw, 67px);
            line-height: 1.03;
            max-width: 980px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 18px;
        }


        body.page-index2 .hero-content p {
            max-width: 820px;
            margin-left: auto;
            margin-right: auto;
            color: #e9edf4;
            font-size: 17px;
            margin-bottom: 24px;
        }


        body.page-index2 .hero-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 20px;
        }


        body.page-index2 .hero-metrics {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            max-width: 980px;
            margin-left: auto;
            margin-right: auto;
            margin-top: 20px;
        }


        body.page-index2 .hero-metrics .metric {
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.22);
            border-radius: 14px;
            padding: 12px;
            backdrop-filter: blur(6px);
        }


        body.page-index2 .hero-metrics strong {
            display: block;
            color: #fff;
            font-size: 26px;
            line-height: 1;
            margin-bottom: 4px;
        }


        body.page-index2 .hero-metrics span {
            color: #e3eaf6;
            font-size: 12px;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            font-weight: 600;
        }


        body.page-index2 .quick-band {
            margin-top: -28px;
            position: relative;
            z-index: 3;
        }


        body.page-index2 .quick-card {
            background: var(--card);
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 12px 28px rgba(18, 29, 46, 0.08);
            height: 100%;
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            animation: fadeRise 0.7s ease both;
        }


        body.page-index2 .quick-card:nth-child(2) {
            animation-delay: 0.12s;
        }


        body.page-index2 .quick-card:nth-child(3) {
            animation-delay: 0.22s;
        }


        body.page-index2 .quick-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 18px 34px rgba(9, 48, 84, 0.14);
        }


        body.page-index2 .quick-card i {
            width: 44px;
            height: 44px;
            line-height: 44px;
            text-align: center;
            border-radius: 12px;
            background: rgba(15, 76, 129, 0.1);
            color: var(--brand);
            font-size: 18px;
            margin-bottom: 12px;
        }


        body.page-index2 .quick-card h3 {
            font-size: 24px;
            margin-bottom: 10px;
        }


        body.page-index2 .quick-card p {
            margin-bottom: 14px;
        }


        body.page-index2 .about-grid {
            display: grid;
            grid-template-columns: 0.77fr 0.9fr;
            gap: 28px;
            align-items: center;
        }


        body.page-index2 .about-image {
            position: relative;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(18, 29, 46, 0.12);
        }


        body.page-index2 .about-image img {
            width: 100%;
            height: 100%;
            min-height: 252px;
            object-fit: cover;
            display: block;
        }


        body.page-index2 .about-badge {
            position: absolute;
            bottom: 16px;
            right: 16px;
            background: rgba(9, 48, 84, 0.88);
            color: #fff;
            border-radius: 14px;
            padding: 14px 16px;
            font-size: 14px;
            max-width: 220px;
        }


        body.page-index2 .about-copy h2 {
            font-size: 40px;
            line-height: 1.05;
            margin-bottom: 16px;
        }


        body.page-index2 .pill-list {
            list-style: none;
            margin: 20px 0 0;
            padding: 0;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }


        body.page-index2 .pill-list li {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 999px;
            padding: 8px 12px;
            color: var(--ink-soft);
            font-size: 14px;
            font-weight: 600;
        }


        body.page-index2 .schedule-wrap {
            background: linear-gradient(140deg, #0d2b47, #0f4c81 65%, #1c6daf);
            border-radius: 22px;
            padding: 34px;
            color: #fff;
            overflow: hidden;
            position: relative;
        }


        body.page-index2 .schedule-wrap::before {
            content: "";
            position: absolute;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            right: -100px;
            top: -110px;
        }


        body.page-index2 .schedule-wrap h2 {
            color: #fff;
            font-size: 38px;
            margin-bottom: 20px;
            position: relative;
        }


        body.page-index2 .schedule-list {
            list-style: none;
            margin: 0;
            padding: 0;
            position: relative;
        }


        body.page-index2 .schedule-item {
            display: grid;
            grid-template-columns: 140px 1fr;
            gap: 12px;
            padding: 16px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.16);
        }


        body.page-index2 .schedule-item:first-child {
            border-top: 0;
            padding-top: 0;
        }


        body.page-index2 .schedule-item .time {
            font-weight: 700;
            color: #eff0fa;
        }


        body.page-index2 .schedule-item h4 {
            color: #fff;
            margin-bottom: 2px;
            font-size: 21px;
        }


        body.page-index2 .schedule-item p {
            color: rgba(237, 243, 255, 0.84);
            margin: 0;
        }


        body.page-index2 .sermon-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
        }


        body.page-index2 .sermon-card {
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 12px 24px rgba(18, 29, 46, 0.08);
            transition: transform 0.25s ease;
        }


        body.page-index2 .sermon-card:hover {
            transform: translateY(-6px);
        }


        body.page-index2 .sermon-media {
            position: relative;
        }


        body.page-index2 .sermon-media img {
            width: 100%;
            height: 220px;
            object-fit: cover;
            display: block;
        }


        body.page-index2 .sermon-tag {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(9, 48, 84, 0.86);
            color: #fff;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 700;
            padding: 5px 9px;
            border-radius: 999px;
        }


        body.page-index2 .sermon-content {
            padding: 18px;
        }


        body.page-index2 .sermon-content h3 {
            font-size: 24px;
            margin-bottom: 8px;
        }


        body.page-index2 .sermon-content p {
            margin-bottom: 14px;
        }


        body.page-index2 .impact {
            background: #eff0fa;
        }


        body.page-index2 .impact-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }


        body.page-index2 .impact-card {
            background: #fff;
            border-radius: 14px;
            border: 1px solid #e5eaf0;
            text-align: center;
            padding: 20px 14px;
        }


        body.page-index2 .impact-card strong {
            display: block;
            font-size: 34px;
            color: var(--brand-deep);
            line-height: 1;
            margin-bottom: 8px;
        }


        body.page-index2 .impact-card span {
            color: #5b6278;
            font-size: 14px;
            font-weight: 600;
        }


        body.page-index2 .cta {
            background-image:
                linear-gradient(to right, rgba(7, 17, 31, 0.82), rgba(7, 17, 31, 0.6)),
                url("images/content/sermons_bg.jpg");
            background-size: cover;
            background-position: center;
            border-radius: 18px;
            padding: 44px;
            color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }


        body.page-index2 .cta h2 {
            color: #fff;
            font-size: 38px;
            margin-bottom: 8px;
        }


        body.page-index2 .cta p {
            color: #e0e7f6;
            margin: 0;
        }


        body.page-index2 .gallery-grid {
            display: grid;
            grid-template-columns: repeat(6, minmax(0, 1fr));
            gap: 10px;
        }


        body.page-index2 .gallery-grid .big {
            grid-column: span 3;
            grid-row: span 2;
        }


        body.page-index2 .gallery-grid .wide {
            grid-column: span 2;
        }


        body.page-index2 .gallery-grid img {
            width: 100%;
            height: 100%;
            min-height: 140px;
            object-fit: cover;
            object-position: top center;
            border-radius: 12px;
            display: block;
            box-shadow: 0 10px 24px rgba(18, 29, 46, 0.1);
        }


        body.page-index2 .gallery-grid > div {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
        }


        body.page-index2 .gallery-grid a.gallery-link {
            display: block;
            height: 100%;
            position: relative;
        }


        body.page-index2 .gallery-grid .portrait a.gallery-link {
            background: #fff;
            border-radius: 12px;
            overflow: hidden;
        }


        body.page-index2 .gallery-grid .portrait img {
            object-fit: contain;
            background: #fff;
            padding: 0;
            box-shadow: none;
        }


        body.page-index2 .gallery-grid .portrait-stack {
            display: grid;
            grid-template-rows: repeat(2, minmax(0, 1fr));
            gap: 10px;
            background: transparent;
            overflow: visible;
        }


        body.page-index2 .gallery-grid .portrait-stack a.gallery-link {
            background: #fff;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 10px 24px rgba(18, 29, 46, 0.1);
        }


        body.page-index2 .gallery-grid .portrait-stack img {
            min-height: 0;
            box-shadow: none;
        }


        body.page-index2 .gallery-grid a.gallery-link::after {
            content: '\f00e';
            font-family: 'FontAwesome';
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: #fff;
            background: rgba(10, 20, 50, 0.45);
            border-radius: 12px;
            opacity: 0;
            transition: opacity 0.25s ease;
            cursor: zoom-in;
        }


        body.page-index2 .gallery-grid a.gallery-link:hover::after {
            opacity: 1;
        }


        body.page-index2 .gallery-grid img {
            transition: transform 0.3s ease;
        }


        body.page-index2 .gallery-grid a.gallery-link:hover img {
            transform: scale(1.04);
        }


        body.page-index2 .contact-strip {
            margin-top: 26px;
            background: #fff;
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 24px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
        }


        body.page-index2 .contact-strip h4 {
            font-size: 20px;
            margin-bottom: 6px;
        }


        body.page-index2 .contact-strip p {
            margin: 0;
            font-size: 15px;
        }


        body.page-index2 footer, body.page-about footer, body.page-contact footer, body.page-sermons footer {
            margin-top: 86px;
            background: #111726;
            color: #d8dfec;
            padding: 60px 0 24px;
            position: relative;
        }


        body.page-index2 .footer-grid, body.page-about .footer-grid, body.page-contact .footer-grid, body.page-sermons .footer-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr 1fr;
            gap: 24px;
            margin-bottom: 22px;
        }


        body.page-index2 .footer-title, body.page-about .footer-title, body.page-contact .footer-title, body.page-sermons .footer-title {
            font-family: "Outfit", sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-size: 12px;
            margin-bottom: 12px;
            color: #eff0fa;
        }


        body.page-index2 footer p, body.page-index2 footer li, body.page-index2 footer a, body.page-about footer p, body.page-about footer li, body.page-about footer a, body.page-contact footer p, body.page-contact footer li, body.page-contact footer a, body.page-sermons footer p, body.page-sermons footer li, body.page-sermons footer a {
            color: #d8dfec;
        }


        body.page-index2 .footer-links, body.page-about .footer-links, body.page-contact .footer-links, body.page-sermons .footer-links {
            list-style: none;
            margin: 0;
            padding: 0;
            display: grid;
            gap: 8px;
        }


        body.page-index2 .footer-bottom, body.page-about .footer-bottom, body.page-contact .footer-bottom, body.page-sermons .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 16px;
            font-size: 13px;
            color: #a9b6cb;
        }


        body.page-index2 .mobile-admin-login,
        body.page-about .mobile-admin-login,
        body.page-contact .mobile-admin-login,
        body.page-sermons .mobile-admin-login {
            display: none;
            margin: 12px 0 0;
            text-align: center;
        }


        body.page-index2 .mobile-admin-login a,
        body.page-about .mobile-admin-login a,
        body.page-contact .mobile-admin-login a,
        body.page-sermons .mobile-admin-login a {
            display: inline-block;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 999px;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 700;
        }


       @media (max-width: 991px) {

            body.page-index2 .mobile-admin-login,
            body.page-about .mobile-admin-login,
            body.page-contact .mobile-admin-login,
            body.page-sermons .mobile-admin-login {
                display: block;
            }
        }


       @keyframes fadeRise {

            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }


       @media (max-width: 1199px) {

            body.page-index2 .quick-band {
                margin-top: -14px;
            }

            body.page-index2 .hero-metrics {
                grid-template-columns: 1fr;
                max-width: 320px;
            }


            body.page-index2 .about-grid, body.page-index2 .sermon-grid, body.page-index2 .impact-grid, body.page-index2 .footer-grid, body.page-about .footer-grid, body.page-contact .footer-grid, body.page-sermons .footer-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }


            body.page-index2 .gallery-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }


            body.page-index2 .gallery-grid .big, body.page-index2 .gallery-grid .wide {
                grid-column: span 1;
                grid-row: span 1;
            }


            body.page-index2 .contact-strip {
                grid-template-columns: 1fr;
            }
        }


       @media (max-width: 767px) {

            body.page-index2 .quick-band {
                margin-top: 8px;
            }

            body.page-index2 .rim-nav .nav-wrap, body.page-index2 .rim-topbar .bar-wrap, body.page-index2 .rim-logo, body.page-about .rim-nav .nav-wrap, body.page-about .rim-topbar .bar-wrap, body.page-about .rim-logo, body.page-contact .rim-nav .nav-wrap, body.page-contact .rim-topbar .bar-wrap, body.page-contact .rim-logo, body.page-sermons .rim-nav .nav-wrap, body.page-sermons .rim-topbar .bar-wrap, body.page-sermons .rim-logo {
                justify-content: center;
                text-align: center;
            }


            body.page-index2 .rim-menu, body.page-about .rim-menu, body.page-contact .rim-menu, body.page-sermons .rim-menu {
                gap: 12px;
                font-size: 14px;
            }


            body.page-index2 .section-space {
                padding: 66px 0;
            }


            body.page-index2 .section-title h2, body.page-index2 .about-copy h2, body.page-index2 .schedule-wrap h2, body.page-index2 .cta h2 {
                font-size: 32px;
            }


            body.page-index2 .about-grid, body.page-index2 .sermon-grid, body.page-index2 .impact-grid, body.page-index2 .footer-grid, body.page-about .footer-grid, body.page-contact .footer-grid, body.page-sermons .footer-grid {
                grid-template-columns: 1fr;
            }


            body.page-index2 .pill-list {
                grid-template-columns: 1fr;
            }


            body.page-index2 .schedule-item {
                grid-template-columns: 1fr;
                gap: 4px;
            }


            body.page-index2 .cta {
                padding: 28px;
            }


            body.page-index2 .hero {
                min-height: 90vh;
            }
        }


body.page-index2 .cta-gap-top {
    margin-top: 30px;
}


/* Page: about */
body.page-about {
            --bg: #ffffff;
            --ink: #1a1d2b;
            --soft: #4a5168;
            --brand: #0f4c81;
            --brand-deep: #093054;
            --gold: #d8a441;
            --line: #e9dccb;
            --card: #ffffff;
        }


        body.page-about {
            margin: 0;
            background: var(--bg);
            color: var(--ink);
            font-family: "Outfit", sans-serif;
            line-height: 1.6;
        }


        body.page-about h1, body.page-about h2, body.page-about h3, body.page-about h4 {
            font-family: "Spectral", serif;
            margin: 0 0 12px;
        }


        body.page-about p {
            margin: 0 0 12px;
            color: var(--soft);
        }


        body.page-about .topbar {
            background: #141b2b;
            color: #d9e2f0;
            padding: 10px 0;
            font-size: 13px;
        }


        body.page-about .topbar .row-flex, body.page-about .nav-wrap {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }


        body.page-about .topbar .row-flex div {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }


        body.page-about .nav {
            background: rgba(255, 255, 255, 0.96);
            border-bottom: 1px solid rgba(9, 48, 84, 0.1);
            position: sticky;
            top: 0;
            z-index: 20;
        }


        body.page-about .nav-wrap {
            padding: 12px 0;
        }


        body.page-about .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #1f2a44;
            text-decoration: none;
            font-weight: 700;
        }


        body.page-about .logo img {
            width: 44px;
            height: 44px;
        }


        body.page-about .menu {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 18px;
            font-weight: 600;
            flex-wrap: wrap;
        }


        body.page-about .menu a {
            color: #2c3450;
            text-decoration: none;
        }


        body.page-about .menu a.active, body.page-about .menu a:hover {
            color: var(--brand);
        }


        body.page-about .btn-brand {
            text-decoration: none;
            color: #fff;
            background: linear-gradient(120deg, var(--brand), var(--brand-deep));
            padding: 11px 18px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 700;
            display: inline-block;
        }


        body.page-about .hero {
            padding: 86px 0 78px;
            background:
                linear-gradient(to right, rgba(10, 26, 46, 0.82), rgba(10, 26, 46, 0.55)),
                url("images/content/about_bg.jpg") center/cover no-repeat;
            color: #fff;
        }


        body.page-about .hero h1 {
            color: #fff;
            font-size: clamp(34px, 5vw, 58px);
            margin-bottom: 10px;
        }


        body.page-about .hero p {
            color: #e7eef9;
            max-width: 670px;
            font-size: 17px;
        }


        body.page-about .section {
            padding: 76px 0;
        }


        body.page-about .section-title {
            text-align: center;
            margin-bottom: 34px;
        }


        body.page-about .eyebrow {
            display: inline-block;
            color: var(--brand);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 8px;
        }


        body.page-about .section-title h2 {
            font-size: 40px;
        }


        body.page-about .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 26px;
            align-items: center;
        }


        body.page-about .about-grid img {
            width: 100%;
            min-height: 330px;
            object-fit: cover;
            border-radius: 16px;
            box-shadow: 0 16px 30px rgba(16, 32, 56, 0.14);
        }


        body.page-about .values {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
            margin-top: 24px;
        }


        body.page-about .value-card {
            background: var(--card);
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 20px;
            height: 100%;
        }


        body.page-about .value-card i {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            line-height: 42px;
            text-align: center;
            background: rgba(15, 76, 129, 0.12);
            color: var(--brand);
            margin-bottom: 10px;
        }


        body.page-about .timeline {
            background: #eff0fa;
            border-radius: 18px;
            padding: 30px;
        }


        body.page-about .timeline-item {
            border-left: 3px solid var(--gold);
            padding: 0 0 20px 20px;
            margin-left: 10px;
            position: relative;
        }


        body.page-about .timeline-item:before {
            content: "";
            position: absolute;
            left: -8px;
            top: 3px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: var(--brand);
        }


        body.page-about .timeline-item:last-child {
            padding-bottom: 0;
        }


        body.page-about footer {
            margin-top: 42px;
            background: #121a2a;
            color: #d7e0ed;
            padding: 34px 0;
        }


        body.page-about footer a {
            color: #d7e0ed;
            text-decoration: none;
        }


       @media (max-width: 991px) {

            body.page-about .about-grid, body.page-about .values {
                grid-template-columns: 1fr;
            }


            body.page-about .nav-wrap, body.page-about .topbar .row-flex {
                justify-content: center;
                text-align: center;
            }
        }


body.page-about .eyebrow-gold {
    color: #f3cf8e;
}


body.page-about .section-tight-top {
    padding-top: 0;
}


body.page-about .footer-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}


/* Page: sermons */
body.page-sermons {
            --bg: #ffffff;
            --ink: #1a1d2b;
            --soft: #4b5269;
            --brand: #0f4c81;
            --brand-deep: #093054;
            --line: #e9dccb;
            --card: #fff;
        }


        body.page-sermons {
            margin: 0;
            font-family: "Outfit", sans-serif;
            background: var(--bg);
            color: var(--ink);
            line-height: 1.6;
        }


        body.page-sermons h1, body.page-sermons h2, body.page-sermons h3, body.page-sermons h4 {
            font-family: "Spectral", serif;
            margin: 0 0 12px;
        }


        body.page-sermons p {
            color: var(--soft);
            margin: 0 0 12px;
        }


        body.page-sermons .nav {
            background: #141b2b;
            color: #d8e1f1;
            padding: 10px 0;
        }


        body.page-sermons .nav-main {
            background: rgba(255, 255, 255, 0.97);
            border-bottom: 1px solid rgba(9, 48, 84, 0.1);
            position: sticky;
            top: 0;
            z-index: 30;
        }


        body.page-sermons .container-flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }


        body.page-sermons .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: #24304a;
            font-weight: 700;
        }


        body.page-sermons .logo img {
            width: 42px;
            height: 42px;
        }


        body.page-sermons .menu {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 18px;
            font-weight: 600;
            flex-wrap: wrap;
        }


        body.page-sermons .menu a {
            color: #2a3451;
            text-decoration: none;
        }


        body.page-sermons .menu a.active, body.page-sermons .menu a:hover {
            color: var(--brand);
        }


        body.page-sermons .btn-brand {
            background: linear-gradient(120deg, var(--brand), var(--brand-deep));
            color: #fff;
            text-decoration: none;
            border-radius: 999px;
            padding: 10px 18px;
            font-size: 13px;
            font-weight: 700;
        }


        body.page-sermons .hero {
            padding: 86px 0;
            background:
                linear-gradient(to right, rgba(12, 25, 44, 0.83), rgba(12, 25, 44, 0.5)),
                url("images/content/sermons_bg.jpg") center/cover no-repeat;
            color: #fff;
        }


        body.page-sermons .hero h1 {
            color: #fff;
            font-size: clamp(34px, 5vw, 58px);
        }


        body.page-sermons .hero p {
            color: #e5ecf7;
            max-width: 680px;
            font-size: 17px;
        }


        body.page-sermons .section {
            padding: 72px 0;
        }


        body.page-sermons .section-title {
            text-align: center;
            margin-bottom: 34px;
        }


        body.page-sermons .eyebrow {
            color: var(--brand);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-size: 12px;
            font-weight: 700;
        }


        body.page-sermons .section-title h2 {
            font-size: 40px;
        }


        body.page-sermons .sermon-switcher {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin: 0 0 24px;
        }


        body.page-sermons .sermon-switch-btn {
            border: 1px solid rgba(15, 76, 129, 0.28);
            background: #ffffff;
            color: var(--brand);
            font-family: "Outfit", sans-serif;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.01em;
            border-radius: 999px;
            padding: 10px 18px;
            transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
        }


        body.page-sermons .sermon-switch-btn:hover {
            transform: translateY(-1px);
        }


        body.page-sermons .sermon-switch-btn.active {
            background: linear-gradient(120deg, var(--brand), var(--brand-deep));
            border-color: transparent;
            color: #ffffff;
            box-shadow: 0 10px 22px rgba(15, 76, 129, 0.24);
        }


        body.page-sermons .sermon-panel[hidden] {
            display: none;
        }


        body.page-sermons .sermon-empty-state {
            max-width: 820px;
            margin: 0 auto;
            text-align: center;
            background: #f7f9ff;
            border: 1px solid #dce4f2;
            border-radius: 16px;
            padding: 38px 22px;
        }


        body.page-sermons .sermon-empty-state h3 {
            margin-bottom: 8px;
        }


        body.page-sermons .sermon-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
        }


        body.page-sermons .sermon-card {
            background: var(--card);
            border-radius: 14px;
            border: 1px solid var(--line);
            overflow: hidden;
            box-shadow: 0 12px 24px rgba(16, 31, 53, 0.08);
            height: 100%;
        }


        body.page-sermons .sermon-card img {
            width: 100%;
            height: 220px;
            object-fit: cover;
        }


        body.page-sermons .content {
            padding: 18px;
        }


        body.page-sermons .meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            text-transform: uppercase;
            color: #6a738a;
            margin-bottom: 8px;
            letter-spacing: 0.04em;
        }


        body.page-sermons .btn-soft {
            display: inline-block;
            text-decoration: none;
            border: 1px solid rgba(15, 76, 129, 0.25);
            color: var(--brand);
            border-radius: 999px;
            padding: 8px 14px;
            font-size: 13px;
            font-weight: 700;
            margin-right: 8px;
            margin-top: 4px;
        }


        body.page-sermons .series {
            margin-top: 38px;
            background: #eff0fa;
            border-radius: 16px;
            padding: 24px;
        }


        body.page-sermons .series ul {
            margin: 0;
            padding-left: 20px;
        }


        body.page-sermons .series li {
            margin-bottom: 8px;
            color: #404b65;
        }


        body.page-sermons .cta {
            margin-top: 36px;
            background: #102741;
            color: #e0e9f7;
            border-radius: 16px;
            padding: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }


        body.page-sermons .cta h3 {
            color: #fff;
            margin-bottom: 6px;
        }


        body.page-sermons footer {
            margin-top: 38px;
            background: #121a2a;
            color: #d7e0ed;
            padding: 34px 0;
        }


        body.page-sermons footer a {
            color: #d7e0ed;
            text-decoration: none;
        }


       @media (max-width: 991px) {

            body.page-sermons .sermon-grid {
                grid-template-columns: 1fr;
            }


            body.page-sermons .container-flex {
                justify-content: center;
                text-align: center;
            }
        }


body.page-sermons .nav-main-pad {
    padding: 12px 0;
}


body.page-sermons .eyebrow-gold {
    color: #f2cf8e;
}


body.page-sermons .footer-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}


/* Page: contact */
body.page-contact {
            --bg: #ffffff;
            --ink: #1a1d2b;
            --soft: #4a5168;
            --brand: #0f4c81;
            --brand-deep: #093054;
            --line: #eadccb;
            --card: #ffffff;
            --ok: #137f3a;
            --warn: #ad2d2d;
        }


        body.page-contact {
            margin: 0;
            font-family: "Outfit", sans-serif;
            background: var(--bg);
            color: var(--ink);
            line-height: 1.6;
        }


        body.page-contact h1, body.page-contact h2, body.page-contact h3, body.page-contact h4 {
            font-family: "Spectral", serif;
            margin: 0 0 12px;
        }


        body.page-contact p {
            margin: 0 0 12px;
            color: var(--soft);
        }


        body.page-contact .topbar {
            background: #141b2b;
            color: #d7e0f1;
            padding: 10px 0;
            font-size: 13px;
        }


        body.page-contact .flex {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }


        body.page-contact .nav {
            background: rgba(255, 255, 255, 0.96);
            border-bottom: 1px solid rgba(9, 48, 84, 0.1);
            position: sticky;
            top: 0;
            z-index: 25;
        }


        body.page-contact .nav .flex {
            padding: 12px 0;
        }


        body.page-contact .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: #25314a;
            font-weight: 700;
        }


        body.page-contact .logo img {
            width: 42px;
            height: 42px;
        }


        body.page-contact .menu {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 18px;
            font-weight: 600;
            flex-wrap: wrap;
        }


        body.page-contact .menu a {
            color: #2a3451;
            text-decoration: none;
        }


        body.page-contact .menu a.active, body.page-contact .menu a:hover {
            color: var(--brand);
        }


        body.page-contact .btn-brand {
            display: inline-block;
            text-decoration: none;
            color: #fff;
            background: linear-gradient(120deg, var(--brand), var(--brand-deep));
            border-radius: 999px;
            padding: 10px 18px;
            font-size: 13px;
            font-weight: 700;
        }


        body.page-contact .hero {
            padding: 84px 0;
            background:
                linear-gradient(to right, rgba(10, 26, 46, 0.83), rgba(10, 26, 46, 0.54)),
                url("images/content/video_bg.jpg") center/cover no-repeat;
            color: #fff;
        }


        body.page-contact .hero h1 {
            color: #fff;
            font-size: clamp(34px, 5vw, 56px);
        }


        body.page-contact .hero p {
            color: #e8eef8;
            max-width: 680px;
            font-size: 17px;
        }


        body.page-contact .section {
            padding: 72px 0;
        }


        body.page-contact .eyebrow {
            color: var(--brand);
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 8px;
            display: inline-block;
        }


        body.page-contact .section-title {
            text-align: center;
            margin-bottom: 32px;
        }


        body.page-contact .section-title h2 {
            font-size: 40px;
        }


        body.page-contact .contact-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
            margin-bottom: 30px;
        }


        body.page-contact .contact-card {
            background: var(--card);
            border: 1px solid var(--line);
            border-radius: 14px;
            padding: 20px;
        }


        body.page-contact .contact-card i {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            line-height: 42px;
            text-align: center;
            background: rgba(15, 76, 129, 0.11);
            color: var(--brand);
            margin-bottom: 10px;
        }


        body.page-contact .form-wrap {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }


        body.page-contact .panel {
            background: var(--card);
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 24px;
            height: 100%;
        }


        body.page-contact label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #303955;
            margin-bottom: 7px;
        }


        body.page-contact input, body.page-contact textarea, body.page-contact select {
            width: 100%;
            border: 1px solid #d8dce8;
            border-radius: 10px;
            padding: 10px 12px;
            font: inherit;
            color: #2a3452;
            margin-bottom: 14px;
            background: #fff;
        }


        body.page-contact textarea {
            min-height: 140px;
            resize: vertical;
        }


        body.page-contact .hint {
            font-size: 12px;
            color: #66708a;
            margin-top: -8px;
            margin-bottom: 12px;
        }


        body.page-contact .form-status {
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 14px;
            display: none;
        }


        body.page-contact .form-status.ok {
            background: rgba(19, 127, 58, 0.12);
            color: var(--ok);
            display: block;
        }


        body.page-contact .form-status.warn {
            background: rgba(173, 45, 45, 0.12);
            color: var(--warn);
            display: block;
        }


        body.page-contact .quick-links {
            margin-top: 18px;
            list-style: none;
            padding: 0;
        }


        body.page-contact .quick-links li {
            margin-bottom: 8px;
            color: #394462;
        }


        body.page-contact footer {
            margin-top: 38px;
            background: #121a2a;
            color: #d7e0ed;
            padding: 34px 0;
        }


        body.page-contact footer a {
            color: #d7e0ed;
            text-decoration: none;
        }


       @media (max-width: 991px) {

            body.page-contact .contact-grid, body.page-contact .form-wrap {
                grid-template-columns: 1fr;
            }


            body.page-contact .flex {
                justify-content: center;
                text-align: center;
            }
        }


body.page-contact .eyebrow-gold {
    color: #f2cf8e;
}


body.page-contact .consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
}


body.page-contact .consent-checkbox {
    width: auto;
    margin: 3px 0 0;
}


body.page-contact .submit-btn {
    border: 0;
    cursor: pointer;
}


body.page-contact .panel-divider {
    margin: 18px 0;
    border-color: #ece2d5;
}


body.page-contact .footer-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}


/* Shared mobile nav overlay */
.rim-nav .nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(9, 48, 84, 0.2);
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}


.rim-nav .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #1f2b46;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}


.nav-backdrop {
    display: none;
}


@media (max-width: 991px) {

    body.page-index2 .rim-topbar,
    body.page-about .rim-topbar,
    body.page-contact .rim-topbar,
    body.page-sermons .rim-topbar,
    body.page-about .topbar,
    body.page-contact .topbar,
    body.page-sermons .nav {
        display: none !important;
    }

    .rim-nav .nav-toggle {
        display: inline-flex;
        order: 3;
    }

    body.page-index2 .rim-nav .btn-brand,
    body.page-about .rim-nav .btn-brand,
    body.page-contact .rim-nav .btn-brand,
    body.page-sermons .rim-nav .btn-brand {
        display: none;
    }

    body.page-index2 .rim-nav .nav-wrap,
    body.page-about .rim-nav .nav-wrap,
    body.page-contact .rim-nav .nav-wrap,
    body.page-sermons .rim-nav .nav-wrap {
        justify-content: space-between;
        gap: 12px;
        position: relative;
    }

    body.page-index2 .rim-logo,
    body.page-about .rim-logo,
    body.page-contact .rim-logo,
    body.page-sermons .rim-logo {
        min-width: 0;
        text-align: left;
    }

    body.page-index2 .rim-menu,
    body.page-about .rim-menu,
    body.page-contact .rim-menu,
    body.page-sermons .rim-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(78vw, 320px);
        margin: 0;
        padding: 90px 24px 24px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 18px;
        background: #ffffff;
        border-left: 1px solid rgba(9, 48, 84, 0.12);
        box-shadow: -18px 0 32px rgba(10, 20, 37, 0.18);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        z-index: 120;
    }

    body.nav-open .rim-menu {
        transform: translateX(0);
    }

    body.page-index2 .rim-menu a,
    body.page-about .rim-menu a,
    body.page-contact .rim-menu a,
    body.page-sermons .rim-menu a {
        font-size: 20px;
        line-height: 1.2;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(8, 14, 25, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
        z-index: 110;
        display: block;
    }

    body.nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.nav-open {
        overflow: hidden;
    }
}


@media (max-width: 991px) {

    .nav-backdrop {
        display: none !important;
    }

    .rim-nav .nav-wrap {
        justify-content: space-between !important;
        align-items: center !important;
        position: relative !important;
        flex-wrap: wrap;
    }

    .rim-nav .btn-brand {
        display: none !important;
    }

    .rim-nav .btn-admin-login,
    .rim-nav .nav-cta-group {
        display: none !important;
    }

    .rim-nav .rim-menu {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 10px 0 0 !important;
        padding: 16px !important;
        background: #ffffff !important;
        border: 1px solid rgba(9, 48, 84, 0.12) !important;
        border-radius: 12px !important;
        box-shadow: 0 16px 32px rgba(10, 20, 37, 0.14) !important;
        display: none !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        z-index: 120 !important;
        transform: none !important;
        order: 4;
        flex-basis: 100%;
    }

    .rim-nav.menu-open .rim-menu {
        display: flex !important;
    }

    .rim-nav .rim-menu li {
        width: 100%;
    }

    .rim-nav .rim-menu a {
        display: block;
        width: 100%;
        font-size: 20px !important;
        line-height: 1.2;
        padding: 4px 2px;
    }
}


/* ── Wider container for all site pages on large screens ─────────────────── */
/* Bootstrap 3 caps .container at 1170px — this opens it up on big monitors  */
@media (min-width: 1200px) {
    body.page-index2 .container,
    body.page-about .container,
    body.page-contact .container,
    body.page-sermons .container {
        width: auto;
        max-width: 1440px;
        padding-right: 40px;
        padding-left: 40px;
    }
}

@media (min-width: 1600px) {
    body.page-index2 .container,
    body.page-about .container,
    body.page-contact .container,
    body.page-sermons .container {
        max-width: 1560px;
        padding-right: 60px;
        padding-left: 60px;
    }
}

/* Page: gallery */
body.page-gallery {
    --bg: #ffffff;
    --ink: #1a1d2b;
    --ink-soft: #47506b;
    --brand: #0f4c81;
    --brand-deep: #093054;
    --gold: #d8a441;
    --line: #e7e9fc;
    --g-line: #e9eef2;
    --card-shadow: 0 14px 36px rgba(17, 34, 51, 0.11);
    --card-shadow-hover: 0 24px 48px rgba(17, 34, 51, 0.2);
    --radius-lg: 18px;
    --radius-md: 14px;
    --gap: 16px;
    --content-max: 1440px;
    margin: 0;
    font-family: "Outfit", sans-serif;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    background:
        radial-gradient(circle at 10% 0%, rgba(199, 111, 60, 0.08), transparent 34%),
        var(--bg);
}

body.page-gallery * {
    box-sizing: border-box;
}

body.page-gallery h1,
body.page-gallery h2,
body.page-gallery h3,
body.page-gallery h4,
body.page-gallery h5,
body.page-gallery h6 {
    font-family: "Spectral", serif;
    margin: 0 0 14px;
    color: var(--ink);
}

body.page-gallery p {
    margin: 0 0 12px;
    color: var(--ink-soft);
}

body.page-gallery a {
    color: inherit;
    text-decoration: none;
}

body.page-gallery .rim-topbar {
    background: var(--ink);
    color: #eff0fa;
    font-size: 14px;
    padding: 10px 0;
}

body.page-gallery .rim-topbar .bar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

body.page-gallery .rim-topbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

body.page-gallery .rim-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(9, 48, 84, 0.08);
}

body.page-gallery .rim-nav .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

body.page-gallery .rim-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    color: var(--ink);
    text-decoration: none;
}

body.page-gallery .rim-logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

body.page-gallery .rim-logo-text strong {
    display: block;
    font-size: 18px;
    line-height: 1;
}

body.page-gallery .rim-logo-text span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

body.page-gallery .rim-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 22px;
    font-weight: 600;
    flex-wrap: wrap;
    justify-content: center;
}

body.page-gallery .rim-menu a {
    color: #28314e;
    font-size: 16px;
    line-height: 1.2;
    transition: color 0.25s ease;
}

body.page-gallery .rim-menu a:hover,
body.page-gallery .rim-menu a.active {
    color: var(--brand);
}

body.page-gallery .btn-brand {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    background: linear-gradient(120deg, var(--brand), var(--brand-deep));
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 76, 129, 0.28);
}

body.page-gallery .btn-brand:hover {
    transform: translateY(-2px);
}

body.page-gallery .nav-cta-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.page-gallery .btn-admin-login {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: 1px solid rgba(15, 76, 129, 0.25);
    color: var(--brand);
    background: #fff;
    transition: transform 0.25s ease;
}

body.page-gallery .btn-admin-login:hover {
    transform: translateY(-2px);
}

body.page-gallery .gallery-page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 32px 18px 70px;
}

@media (min-width: 1200px) {
    body.page-gallery .gallery-page {
        padding-right: 40px;
        padding-left: 40px;
    }
}

body.page-gallery .page-header {
    position: relative;
    height: auto;
    margin: 12px auto 48px;
    padding-bottom: 0;
    text-align: center;
    max-width: 880px;
}

body.page-gallery .eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border: 1px solid var(--g-line);
    border-radius: 999px;
    color: #2d5e74;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.82);
}

body.page-gallery .page-header h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

body.page-gallery .header-copy {
    margin: 16px auto 0;
    color: #60727f;
    font-size: clamp(15px, 1.6vw, 18px);
    max-width: 740px;
}

body.page-gallery .impact-collage {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: var(--gap);
    align-items: stretch;
    margin-bottom: 18px;
}

body.page-gallery .hero-card {
    min-height: 520px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    isolation: isolate;
}

body.page-gallery .right-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, minmax(90px, 1fr));
    gap: var(--gap);
}

body.page-gallery .tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    background: #fff;
    break-inside: avoid;
    margin: 0 0 var(--gap);
    cursor: zoom-in;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

body.page-gallery .tile img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.45s ease;
}

body.page-gallery .tile.portrait img {
    aspect-ratio: 3 / 4;
}

body.page-gallery .tile.landscape img {
    aspect-ratio: 4 / 3;
}

body.page-gallery .tile figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 13px 13px;
    background: linear-gradient(to top, rgba(13, 27, 39, 0.75), rgba(13, 27, 39, 0));
    text-wrap: balance;
}

body.page-gallery .tile:hover,
body.page-gallery .tile:focus-within {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

body.page-gallery .tile:hover img,
body.page-gallery .tile:focus-within img {
    transform: scale(1.05);
}

body.page-gallery .hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 39, 0.72) 0%, rgba(13, 27, 39, 0.12) 52%, rgba(13, 27, 39, 0) 72%);
    z-index: 1;
    pointer-events: none;
}

body.page-gallery .hero-card figcaption {
    z-index: 2;
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 24px;
    color: #ffffff;
    margin: 0;
    font-size: 16px;
    background: transparent;
}

body.page-gallery .hero-card strong {
    display: block;
    font-family: "Spectral", Georgia, serif;
    font-size: clamp(22px, 1.9vw, 32px);
    line-height: 1.2;
    margin-bottom: 8px;
}

body.page-gallery .span-two-rows {
    grid-row: span 2;
}

body.page-gallery .span-two-cols {
    grid-column: span 2;
}

body.page-gallery .story-masonry {
    clear: both;
    columns: 4 260px;
    column-gap: var(--gap);
    margin-top: 18px;
    padding-top: 0;
}

body.page-gallery .stat-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    color: #3e5666;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    justify-content: center;
}

body.page-gallery .stat-pill {
    border: 1px solid var(--g-line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
}

body.page-gallery footer {
    margin-top: 42px;
    background: #121a2a;
    color: #d7e0ed;
    padding: 46px 0 24px;
}

body.page-gallery .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

body.page-gallery .footer-title {
    font-family: "Spectral", serif;
    font-size: 22px;
    margin: 0 0 10px;
    color: #ffffff;
}

body.page-gallery footer p,
body.page-gallery footer li,
body.page-gallery footer a {
    color: #d7e0ed;
}

body.page-gallery .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

body.page-gallery .footer-bottom {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(215, 224, 237, 0.2);
    font-size: 13px;
}

body.page-gallery .mobile-admin-login {
    display: none;
    margin: 12px 0 0;
    text-align: center;
}

body.page-gallery .mobile-admin-login a {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

body.page-gallery .lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 18, 26, 0.88);
    z-index: 999;
    padding: 22px;
}

body.page-gallery .lightbox[aria-hidden="false"] {
    display: flex;
    animation: fadeIn 0.2s ease;
}

body.page-gallery .lightbox-content {
    max-width: min(1040px, 95vw);
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.page-gallery .lightbox-content img {
    width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    object-fit: contain;
    background: #0d1c28;
}

body.page-gallery .lightbox-caption {
    color: #e9f0f4;
    text-align: center;
    font-size: 15px;
}

body.page-gallery .lightbox-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1060px) {
    body.page-gallery .impact-collage {
        grid-template-columns: 1fr;
    }

    body.page-gallery .hero-card {
        min-height: 420px;
    }

    body.page-gallery .right-cards {
        grid-template-rows: none;
        grid-auto-rows: 140px;
    }

    body.page-gallery .story-masonry {
        columns: 3 220px;
    }
}

@media (max-width: 767px) {
    body.page-gallery .rim-nav .nav-wrap,
    body.page-gallery .rim-topbar .bar-wrap,
    body.page-gallery .rim-logo {
        justify-content: center;
        text-align: center;
    }

    body.page-gallery .gallery-page {
        padding: 22px 13px 44px;
    }

    body.page-gallery .right-cards {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 120px;
        gap: 12px;
    }

    body.page-gallery .tile {
        margin-bottom: 12px;
        border-radius: 13px;
    }

    body.page-gallery .story-masonry {
        columns: 2 160px;
        column-gap: 12px;
    }

    body.page-gallery .hero-card {
        border-radius: 15px;
    }

    body.page-gallery .footer-grid {
        grid-template-columns: 1fr;
    }

    body.page-gallery .mobile-admin-login {
        display: block;
    }
}

@media (max-width: 500px) {
    body.page-gallery .right-cards {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(145px, auto);
    }

    body.page-gallery .span-two-cols,
    body.page-gallery .span-two-rows {
        grid-column: span 1;
        grid-row: span 1;
    }

    body.page-gallery .story-masonry {
        columns: 1;
    }

    body.page-gallery .tile figcaption {
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    body.page-gallery .container {
        width: auto;
        max-width: 1440px;
        padding-right: 40px;
        padding-left: 40px;
    }
}

@media (min-width: 1600px) {
    body.page-gallery .container {
        max-width: 1560px;
        padding-right: 60px;
        padding-left: 60px;
    }

    body.page-gallery .gallery-page {
        max-width: 1560px;
        padding-right: 60px;
        padding-left: 60px;
    }
}
