:root {
    --faith-gold: #fece1a;
    --faith-gold-light: #ffe36b;
    --faith-ink: #151719;
    --faith-paper: #fff9dc;
    --faith-border: rgba(21, 23, 25, 0.18);
    --faith-shadow: 0 18px 50px rgba(21, 23, 25, 0.14);
}

html {
    scroll-padding-top: 88px;
}

body {
    background: var(--faith-gold);
    color: var(--faith-ink);
    font-family: "Roboto", Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.container {
    width: min(1120px, calc(100% - 40px));
}

#google_translate_element {
    min-height: 28px;
}

.navbar .nav > li:not(.active) > a:focus {
    border-color: #181a1c;
    background: #181a1c;
    color: #ffffff;
}

#home {
    background: var(--faith-ink);
}

.da-slider {
    min-width: 0;
    max-width: none;
    margin: 0;
    border: 0;
    box-shadow: none;
}

.da-slider .mask {
    opacity: 0.72;
}

.da-slide h2,
.da-slide h4 {
    text-shadow: none;
}

.section {
    position: relative;
    padding: 86px 0;
}

.secondary-section {
    background:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(180deg, var(--faith-gold-light) 0%, var(--faith-gold) 100%);
}

.secondary-section:nth-of-type(even) {
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 255, 255, 0.22), transparent 26%),
        linear-gradient(180deg, #ffd935 0%, var(--faith-gold) 100%);
}

.secondary-section .title {
    max-width: 980px;
    margin: 0 auto;
    padding: 42px clamp(22px, 5vw, 64px);
    border: 1px solid var(--faith-border);
    border-radius: 24px;
    background: rgba(255, 249, 220, 0.72);
    box-shadow: var(--faith-shadow);
    backdrop-filter: blur(8px);
}

.secondary-section h1,
.contact h1 {
    margin-bottom: 22px;
    color: var(--faith-ink);
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.secondary-section .title p,
.contact p {
    max-width: 850px;
    margin-right: auto;
    margin-left: auto;
    color: var(--faith-ink);
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.75;
}

.roundbtn {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 16px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--faith-ink);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.church-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 10px auto;
    padding: 0 24px;
    border: 2px solid var(--faith-ink);
    border-radius: 999px;
    background: var(--faith-ink);
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.church-button:hover {
    transform: translateY(-2px);
    background: transparent;
    color: var(--faith-ink);
}

.daily-bread-button {
    display: inline-block;
    padding: 12px 20px;
    border: 2px solid var(--faith-ink);
    border-radius: 999px;
    background: var(--faith-ink);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.daily-bread-player {
    position: relative;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 16 / 9;
    margin: 22px auto 30px;
    overflow: hidden;
    border-radius: 16px;
    background: #000000;
    box-shadow: var(--faith-shadow);
}

.daily-bread-player[hidden] {
    display: none;
}

.daily-bread-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.daily-bread-button:hover,
.daily-bread-button:focus {
    transform: translateY(-2px);
    background: transparent;
    color: var(--faith-ink) !important;
    text-decoration: none;
}

.map-wrapper {
    position: relative;
    height: auto;
    margin-top: 26px;
}

.map-status {
    margin: 0 0 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--faith-ink);
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    text-align: left;
}

.church-search {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 12px;
    color-scheme: light;
    text-align: left;
}

.church-search-input,
.church-search gmp-place-autocomplete {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    color-scheme: light;
    border: 1px solid #b8b8b8;
    border-radius: 10px;
    background: #ffffff;
    color: var(--faith-ink);
    font: inherit;
    font-size: 16px;
}

.church-search-input {
    padding: 10px 14px;
}

.church-search-input:focus {
    border-color: #1a4f9b;
    outline: 3px solid rgba(26, 79, 155, 0.18);
}

.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--faith-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--faith-shadow);
}

.map-canvas,
#map-canvas {
    position: relative;
    inset: auto;
    width: 100%;
    height: 520px;
    margin: 0;
    background-color: #e8e5dc;
}

.map-location-button {
    margin: 10px;
    padding: 9px 14px;
    border: 0;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    color: #1f1f1f;
    font: 600 14px/1.25 Arial, sans-serif;
    cursor: pointer;
}

.map-location-button:hover,
.map-location-button:focus {
    background: #f3f3f3;
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
}

.church-results {
    max-height: 520px;
    overflow: auto;
    padding: 22px;
    border-left: 1px solid #e4e4e4;
    background: #ffffff;
    color: var(--faith-ink);
    text-align: left;
}

.church-results h2 {
    margin: 0 0 16px;
    color: var(--faith-ink);
    font-size: 20px;
    line-height: 1.25;
}

.church-results ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.church-results li {
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}

.church-results button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1a4f9b;
    font: inherit;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.church-results button:hover {
    text-decoration: underline;
}

.church-results span {
    display: block;
    margin-top: 4px;
    color: #555d65;
    font-size: 13px;
    line-height: 1.4;
}

.box {
    border-radius: 20px;
}

video {
    display: block;
    width: min(100%, 860px);
    max-height: 70vh;
    margin: 0 auto;
    border-radius: 18px;
    background: #000000;
    box-shadow: var(--faith-shadow);
}

.highlighted-box {
    border-radius: 22px;
    box-shadow: var(--faith-shadow);
}

.footer {
    padding: 18px 20px;
    background: var(--faith-ink);
}

.footer p {
    margin: 0;
    color: #ffffff;
    text-align: center;
}

@media (max-width: 979px) {
    .section {
        padding: 56px 0;
    }

    .secondary-section .title {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .map-layout {
        grid-template-columns: 1fr;
    }

    .church-results {
        max-height: 360px;
        border-top: 1px solid #e4e4e4;
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .secondary-section .title p,
    .contact p {
        padding-right: 0;
        padding-left: 0;
        font-size: 16px;
        line-height: 1.65;
    }

    #da-slider.da-slider {
        height: 260px !important;
    }

    .da-slider .container {
        width: 100%;
        margin-top: 0;
    }

    .da-slide h2,
    .da-slide-current h2 {
        top: 52px;
        left: 8% !important;
        width: 84%;
        font-size: 24px;
        white-space: normal;
    }

    .da-slide h4,
    .da-slide-current h4 {
        top: 100px;
        left: 8% !important;
        width: 84%;
        font-size: 18px;
        line-height: 1.45;
        white-space: normal;
    }

    .da-slide h4 span {
        font-size: 24px !important;
    }

    .da-slide .da-img,
    .da-slide-current .da-img {
        display: none;
    }

    .da-dots {
        top: auto;
        bottom: 26px;
    }

    .da-dots span {
        width: 36px;
    }

    .map-canvas,
    #map-canvas {
        height: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
