:root {
    --deep-red: #5C1624;
    --primary-red: #7A1F1F;
    --gold: #B9923E;
    --gold-brown: #8A6A2F;
    --cream: #FAF5E9;
    --dark-brown: #2E2118;
    --white: #FFFFFF;

    --deep-red-rgb: 92, 22, 36;
    --primary-red-rgb: 122, 31, 31;
    --gold-rgb: 185, 146, 62;
    --gold-brown-rgb: 138, 106, 47;
    --cream-rgb: 250, 245, 233;
    --dark-brown-rgb: 46, 33, 24;
    --white-rgb: 255, 255, 255;

    --bg: var(--cream);
    --surface: var(--white);
    --text: var(--dark-brown);
    --text-light: var(--gold-brown);
    --primary: var(--primary-red);
    --primary-dark: var(--deep-red);
    --accent: var(--gold);
    --section-space: clamp(4rem, 8vw, 6rem);
    --card-radius: 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    line-height: 1.2;
}

h2 {
    line-height: 1.3;
}

p {
    line-height: 1.6;
}

.py-lg-6 {
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

/* Navbar */

.navbar.fixed-top {
    background-color: var(--deep-red) !important;
}

.navbar.fixed-top .container {
    gap: 2rem;
}

.navbar.fixed-top .navbar-brand {
    flex-shrink: 0;
}

.navbar.fixed-top #mainNavbar {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
}

.navbar.fixed-top #mainNavbar .navbar-nav {
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    margin-right: 2rem !important;
    margin-bottom: 0 !important;
}

.navbar.fixed-top #mainNavbar .nav-link {
    margin: 0 !important;
    white-space: nowrap;
    color: var(--white) !important;
}

.navbar.fixed-top #mainNavbar .nav-link:hover,
.navbar.fixed-top #mainNavbar .nav-link:focus,
.navbar.fixed-top #mainNavbar .nav-link.active {
    color: var(--gold) !important;
}

.navbar.fixed-top #mainNavbar>div:not(.footer-socials) {
    flex-shrink: 0;
    white-space: nowrap;
}

.navbar.fixed-top .footer-socials {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.navbar.fixed-top .footer-socials .social-link {
    width: 34px;
    height: 34px;
}

/* Hero */

#churchHeroCarousel {
    position: relative;
    overflow: hidden;
}

.hero-image,
.carousel-item img {
    width: 100%;
    height: 88vh;
    min-height: 600px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(var(--dark-brown-rgb), 0.88) 0%,
            rgba(var(--deep-red-rgb), 0.66) 55%,
            rgba(var(--deep-red-rgb), 0.22) 100%);
}

#churchHeroCarousel .carousel-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0;
    text-align: left;
}

.hero-content {
    width: min(84%, 900px);
    margin: 0 auto 0 8%;
    padding-top: 30px;
}

.hero-label,
.section-label,
.event-date,
.about-badge strong,
.leader-badge-label,
.leader-role,
.visit-card .cta-label,
.contact-item i {
    color: var(--gold) !important;
}

.hero-label {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 850px;
    margin-bottom: 25px;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
}

.hero-content p,
.carousel-caption p {
    max-width: 650px;
    margin-bottom: 30px;
    color: rgba(var(--white-rgb), 0.9) !important;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-buttons .btn {
    padding: 13px 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.hero-buttons .btn:hover,
.cta-content .btn:hover {
    transform: translateY(-2px);
}

#churchHeroCarousel .carousel-indicators {
    bottom: 30px;
    justify-content: flex-start;
    margin-right: 0;
    margin-left: 8%;
}

#churchHeroCarousel .carousel-indicators button {
    width: 35px;
    height: 4px;
    margin-right: 8px;
    border: 0;
    border-radius: 10px;
    opacity: 0.5;
}

#churchHeroCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* Shared sections and buttons */

.events-section,
.leadership-section,
.ministries-section,
.bg-light {
    background-color: var(--cream) !important;
}

.about-section,
.cta-section,
.connected-section,
.bg-white {
    background-color: var(--white) !important;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-primary,
.btn-primary:focus {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: var(--white) !important;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--deep-red) !important;
    border-color: var(--deep-red) !important;
}

.btn-outline-light:hover {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--dark-brown) !important;
}

.text-primary,
body .text-primary,
body .text-primary:hover,
body .text-primary:focus {
    color: var(--primary-red) !important;
}

.text-muted,
.text-secondary {
    color: var(--gold-brown) !important;
}

/* Events */

.event-card,
.ministry-card,
.about-badge,
.leader-badge,
.leader-quote {
    background: var(--white);
    border-color: rgba(var(--gold-brown-rgb), 0.25);
    box-shadow: 0 15px 40px rgba(var(--dark-brown-rgb), 0.12);
}

.event-card {
    overflow: hidden;
    border: 1px solid rgba(var(--gold-brown-rgb), 0.25);
    border-radius: var(--card-radius);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(var(--dark-brown-rgb), 0.16);
}

.event-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image {
    transform: scale(1.06);
}

.event-category {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 13px;
    border-radius: 50px;
    background: rgba(var(--white-rgb), 0.95);
    color: var(--dark-brown);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(var(--dark-brown-rgb), 0.12);
}

.event-content {
    padding: 25px;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.event-icon {
    font-size: 1rem;
}

.event-content h3 {
    margin-bottom: 12px;
    color: var(--dark-brown);
    font-size: 1.45rem;
    font-weight: 700;
}

.event-content p,
.ministry-card p {
    color: var(--gold-brown);
    font-size: 0.95rem;
    line-height: 1.7;
}

.event-content p {
    margin-bottom: 22px;
}

.event-link,
.ministry-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-brown);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.event-link span,
.ministry-link span {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.event-link:hover,
.ministry-link:hover {
    gap: 14px;
    color: var(--primary-red);
}

.event-link:hover span,
.ministry-link:hover span {
    transform: translateX(3px);
}

/* About */

.about-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 24px;
}

.about-image-wrapper::before {
    position: absolute;
    left: -18px;
    bottom: -18px;
    width: 120px;
    height: 120px;
    border: 3px solid var(--gold);
    border-radius: 20px;
    content: "";
    opacity: 0.15;
}

.about-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 560px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(var(--dark-brown-rgb), 0.12);
}

.about-content {
    padding-left: 15px;
}

.about-content h2 {
    line-height: 1.15;
}

.about-lead,
.leader-intro {
    color: var(--dark-brown);
    font-size: 1.2rem;
    line-height: 1.7;
}

.about-lead {
    margin-bottom: 18px;
}

/* Leadership */

.leader-image-wrapper {
    position: relative;
    padding: 0 15px 15px 0;
}

.leader-image-wrapper::before {
    position: absolute;
    top: 25px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(var(--gold-rgb), 0.2);
    border-radius: 24px;
    content: "";
}

.leader-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 560px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(var(--dark-brown-rgb), 0.15);
}

.leader-badge {
    position: absolute;
    right: -5px;
    bottom: 35px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 230px;
    padding: 18px 20px;
    border-radius: 16px;
}

.leader-badge-label,
.leader-role {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.leader-badge-label {
    margin-bottom: 5px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.leader-badge strong {
    color: var(--dark-brown);
    font-size: 0.95rem;
}

.leader-content {
    padding-left: 15px;
}

.leader-role {
    display: inline-block;
    margin-bottom: 10px;
}

.leader-content h3 {
    margin-bottom: 22px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.leader-intro {
    margin-bottom: 18px;
}

.leader-content>p {
    line-height: 1.8;
}

.leader-quote {
    position: relative;
    margin: 30px 0;
    padding: 25px 28px 25px 30px;
    border-left: 4px solid var(--gold);
    border-radius: 16px;
}

.quote-mark {
    position: absolute;
    top: 5px;
    right: 20px;
    color: rgba(var(--gold-rgb), 0.2);
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
}

.leader-quote p {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    color: var(--dark-brown);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
}

.leader-quote span {
    color: var(--gold-brown);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Prayer and visit CTA */

.cta-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    overflow: hidden;
    border-radius: 24px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 15px 45px rgba(var(--dark-brown-rgb), 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cta-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(var(--dark-brown-rgb), 0.16);
}

.visit-card {
    background-image: url("bcc-assets/SaveClip.App_587759559_17942203872082699_3837890357059474036_n.jpg");
}

.visit-card .cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(var(--white-rgb), 0.95),
            rgba(var(--cream-rgb), 0.9));
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    padding: 50px 40px;
    text-align: center;
}

.cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(var(--gold-rgb), 0.16);
    color: var(--primary-red);
    font-size: 1.5rem;
}

.cta-label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.visit-card h2 {
    color: var(--dark-brown);
}

.cta-content h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
}

.cta-content p {
    margin-bottom: 28px;
    color: var(--gold-brown);
    font-size: 1rem;
    line-height: 1.7;
}

/* Ministries */

.ministry-card {
    position: relative;
    height: 100%;
    padding: 35px 28px;
    overflow: hidden;
    border: 1px solid rgba(var(--gold-brown-rgb), 0.25);
    border-radius: var(--card-radius);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ministry-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 45px rgba(var(--dark-brown-rgb), 0.1);
}

.ministry-card::after {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(var(--gold-rgb), 0.12);
    content: "";
    transition: transform 0.4s ease;
}

.ministry-card:hover::after {
    transform: scale(1.5);
}

.ministry-number {
    position: absolute;
    top: 22px;
    right: 25px;
    color: var(--gold-brown);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.ministry-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin-bottom: 25px;
    border-radius: 18px;
    background: rgba(var(--gold-rgb), 0.12);
    color: var(--primary-red);
    font-size: 1.6rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ministry-card:hover .ministry-icon {
    background: var(--primary-red);
    color: var(--white);
    transform: scale(1.05) rotate(-3deg);
}

.ministry-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 14px;
    font-size: 1.3rem;
    font-weight: 700;
}

.ministry-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.ministry-link {
    position: relative;
    z-index: 1;
    gap: 9px;
    font-size: 0.9rem;
}

/* Sermons */

.sermon-frame {
    max-width: 1060px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 2px solid var(--dark-brown);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(var(--dark-brown-rgb), 0.1);
}

.sermon-frame-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(var(--gold-brown-rgb), 0.35);
}

.sermon-frame-header h2 {
    margin: 0.35rem 0 0;
    color: var(--dark-brown);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.sermon-frame-icon {
    color: var(--primary-red);
    font-size: 2.5rem;
}

.sermon-list {
    margin-top: 0.5rem;
}

.sermon-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(var(--gold-brown-rgb), 0.25);
}

.sermon-item:last-child {
    border-bottom: 0;
}

.sermon-play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(var(--primary-red-rgb), 0.1);
    color: var(--primary-red);
    font-size: 1.25rem;
}

.sermon-details h3 {
    margin: 0 0 0.3rem;
    color: var(--dark-brown);
    font-size: 1.05rem;
    font-weight: 700;
}

.sermon-details p,
.sermon-details time {
    display: inline-block;
    margin: 0;
    color: var(--gold-brown);
    font-size: 0.85rem;
}

.sermon-details p {
    margin-right: 0.75rem;
    font-weight: 600;
}

.sermon-details time {
    padding-left: 0.75rem;
    border-left: 1px solid rgba(var(--gold-brown-rgb), 0.45);
}

.sermon-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sermon-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(var(--gold-brown-rgb), 0.35);
    border-radius: 999px;
    color: var(--gold-brown);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
        transform 0.25s ease;
}

.sermon-links a:hover,
.sermon-links a:focus-visible {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.sermon-links i {
    font-size: 0.95rem;
}

.download-sermon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: min(100%, 360px);
    min-height: 54px;
    margin: 1.5rem auto 0;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: var(--primary-red);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(var(--primary-red-rgb), 0.2);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.download-sermon-button:hover,
.download-sermon-button:focus-visible {
    background: var(--deep-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(var(--primary-red-rgb), 0.28);
}

.download-sermon-button i {
    font-size: 1.2rem;
}

/* Gallery image actions */

.gallery-image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-image-frame>img {
    display: block;
    transition: transform 0.45s ease;
}

.gallery-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(var(--dark-brown-rgb), 0.72);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-image-frame:hover>img,
.gallery-image-frame:focus-within>img,
.gallery-image-frame.is-touch-active>img {
    transform: scale(1.05);
}

.gallery-image-frame:hover .gallery-image-overlay,
.gallery-image-frame:focus-within .gallery-image-overlay,
.gallery-image-frame.is-touch-active .gallery-image-overlay {
    opacity: 1;
}

.gallery-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 92px;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: var(--white);
    color: var(--dark-brown);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s ease,
        opacity 0.35s ease;
}

.gallery-image-frame:hover .gallery-action,
.gallery-image-frame:focus-within .gallery-action,
.gallery-image-frame.is-touch-active .gallery-action {
    opacity: 1;
    transform: translateY(0);
}

.gallery-action:hover,
.gallery-action:focus-visible {
    background: var(--gold);
    color: var(--dark-brown);
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.gallery-action i {
    font-size: 1rem;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(var(--dark-brown-rgb), 0.88);
}

.gallery-lightbox-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: min(100%, 1100px);
    max-height: 100%;
}

.gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    border: 2px solid var(--gold);
    border-radius: 1rem;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--white);
    color: var(--dark-brown);
    font-size: 1rem;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
    background: var(--gold);
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.gallery-lightbox-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-lightbox-open {
    overflow: hidden;
}


/* Contact/social icons and form */

.connected-section .form-control {
    background-color: var(--cream);
    border-color: rgba(var(--gold-brown-rgb), 0.35);
    color: var(--dark-brown);
}

.connected-section .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(var(--gold-rgb), 0.2);
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 3vw, 1.5rem);
    margin: 2rem;
}

.contact-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(3.5rem, 8vw, 4.5rem);
    height: clamp(3.5rem, 8vw, 4.5rem);
    border: 1px solid rgba(var(--gold-rgb), 0.35);
    border-radius: 50%;
    background: var(--cream);
    color: var(--primary-red);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(var(--dark-brown-rgb), 0.08);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
        transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(var(--primary-red-rgb), 0.2);
}

/* Footer */

.site-footer {
    background: var(--dark-brown) !important;
    color: var(--white);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.footer-brand:hover {
    color: var(--white);
    opacity: 0.85;
}

.footer-logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.footer-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.footer-description {
    max-width: 390px;
    margin-bottom: 25px;
    color: rgba(var(--white-rgb), 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    /* Adds nice spacing between the icons */
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--white-rgb), 0.08);
    color: var(--cream);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.social-link:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    position: relative;
    margin-bottom: 22px;
    padding-bottom: 10px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    border-radius: 5px;
    background: var(--primary-red);
    content: "";
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(var(--white-rgb), 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
}

.contact-item i {
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 1rem;
}

.contact-item a,
.footer-links a {
    color: rgba(var(--white-rgb), 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-item a:hover,
.footer-links a:hover {
    color: var(--white);
}

.service-time {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.service-time strong {
    margin-bottom: 5px;
    color: var(--white);
    font-size: 0.9rem;
}

.service-time span {
    color: rgba(var(--white-rgb), 0.7);
    font-size: 0.8rem;
    line-height: 1.6;
}

.service-time small {
    margin-top: 2px;
    color: rgba(var(--gold-rgb), 0.72);
    font-size: 0.75rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.footer-links a:hover {
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid rgba(var(--gold-rgb), 0.28);
}

.footer-bottom p {
    margin: 0;
    color: rgba(var(--gold-rgb), 0.72);
    font-size: 0.8rem;
}

/* Responsive layout */

@media (max-width: 991.98px) {
    .navbar.fixed-top .container {
        gap: 0;
    }

    .navbar.fixed-top #mainNavbar {
        padding-top: 0.75rem;
    }

    .navbar.fixed-top #mainNavbar .navbar-nav {
        align-items: flex-start;
        gap: 0.25rem;
        margin-right: 0 !important;
    }

    .navbar.fixed-top #mainNavbar>div:not(.footer-socials) {
        align-self: flex-start;
        width: auto;
        margin-top: 0.5rem;
    }

    .navbar.fixed-top .footer-socials {
        align-self: flex-start;
        margin: 0.75rem 0 0;
    }

    .about-content,
    .leader-content {
        padding-left: 0;
    }

    .footer-description {
        max-width: 500px;
    }
}

@media (max-width: 768px) {

    .hero-image,
    .carousel-item img {
        height: 75vh;
        min-height: 600px;
    }

    .hero-overlay {
        background: linear-gradient(180deg,
                rgba(var(--dark-brown-rgb), 0.35) 0%,
                rgba(var(--dark-brown-rgb), 0.75) 70%,
                rgba(var(--dark-brown-rgb), 0.9) 100%);
    }

    #churchHeroCarousel .carousel-caption {
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .hero-content {
        width: 86%;
        margin: 0 auto;
    }

    .hero-label {
        margin-bottom: 12px;
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .hero-content h1 {
        margin-bottom: 18px;
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-content p {
        margin-bottom: 22px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-buttons {
        gap: 8px;
    }

    .hero-buttons .btn {
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    #churchHeroCarousel .carousel-indicators {
        bottom: 20px;
        margin-left: 7%;
    }

    .events-section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .sermon-item {
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
        gap: 0.75rem;
    }

    .sermon-play-icon {
        width: 38px;
        height: 38px;
    }

    .sermon-links {
        grid-column: 2;
        flex-wrap: wrap;
    }

    .event-image-wrapper {
        height: 230px;
    }

    .event-content {
        padding: 22px;
    }

    .event-content h3 {
        font-size: 1.3rem;
    }

    .about-image {
        height: 420px;
    }

    .about-image-wrapper::before {
        display: none;
    }

    .about-lead {
        font-size: 1.05rem;
    }

    .leader-image-wrapper {
        padding-right: 8px;
        padding-bottom: 8px;
    }

    .leader-image-wrapper::before {
        top: 15px;
        left: -8px;
    }

    .leader-image {
        height: 480px;
        border-radius: 20px;
    }

    .leader-badge {
        right: 5px;
        bottom: 25px;
        min-width: 200px;
        padding: 15px 17px;
    }

    .leader-content h3 {
        font-size: 2.3rem;
    }

    .leader-intro {
        font-size: 1rem;
        line-height: 1.7;
    }

    .leader-quote {
        margin: 25px 0;
        padding: 22px;
    }

    .cta-card {
        min-height: 450px;
        border-radius: 20px;
    }

    .cta-content {
        padding: 40px 25px;
    }

    .cta-content h2 {
        font-size: 2.2rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .ministry-card {
        padding: 30px 25px;
    }

    .ministry-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .ministry-card h3 {
        font-size: 1.25rem;
    }

    .site-footer .row {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        padding: 22px 0;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .hero-image,
    .carousel-item img {
        height: 60vh;
        min-height: 580px;
    }

    .hero-content {
        width: auto;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-buttons .btn,
    .carousel-caption .btn {
        width: 100%;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .carousel-caption .btn:last-child {
        margin-bottom: 0;
    }

    .event-image-wrapper {
        height: 220px;
    }

    .event-content {
        padding: 20px;
    }

    .sermon-frame {
        padding: 1.25rem;
        border-radius: 14px;
    }

    .sermon-frame-header {
        align-items: flex-start;
    }

    .sermon-frame-icon {
        font-size: 2rem;
    }

    .sermon-details p,
    .sermon-details time {
        display: block;
    }

    .sermon-details p {
        margin: 0 0 0.2rem;
    }

    .sermon-details time {
        padding-left: 0;
        border-left: 0;
    }

    .sermon-links a {
        padding: 0.4rem 0.55rem;
    }

    .download-sermon-button {
        width: 100%;
    }

    .leader-image {
        height: 400px;
        border-radius: 18px;
    }

    .leader-badge {
        right: 20px;
        bottom: 20px;
        left: 20px;
        min-width: auto;
    }

    .leader-content h3 {
        font-size: 2rem;
    }

    .cta-card {
        min-height: 430px;
    }

    .cta-content {
        padding: 30px 20px;
    }

    .cta-icon {
        width: 55px;
        height: 55px;
        font-size: 1.25rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .footer-logo {
        width: 44px;
        height: 44px;
    }

    .footer-brand-name {
        font-size: 0.95rem;
    }

    .footer-description {
        font-size: 0.85rem;
    }
}

.btn-action-icon {
    width: 48px;
    height: 48px;
    background-color: #f1f3f5;
    color: #495057;
    border: none;
    transition: all 0.2s ease;
}

.btn-action-icon:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.sermon-row-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sermon-row-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--dark-brown-rgb), 0.08) !important;
}

.sidebar-list a:hover {
    color: var(--primary-red) !important;
}