:root {
    --home-dark: #07111f;
    --home-ink: #0f172a;
    --home-muted: #64748b;
    --home-line: rgba(148, 163, 184, 0.22);
    --home-card-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

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

#conteudo-principal,
.home-hero-section,
.home-about-section,
.church-feature-section,
.departments-modern-section,
.youtube-showcase {
    max-width: 100%;
    overflow-x: clip;
}

.home-eyebrow,
.home-section-kicker,
.youtube-eyebrow {
    align-items: center;
    color: var(--secondary-color);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 0.45rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.home-section-heading {
    margin: 0 auto 2.4rem;
    max-width: 760px;
}

.home-section-heading h2,
.home-section-copy h2 {
    color: var(--home-ink);
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.home-section-heading p,
.home-section-copy p {
    color: var(--home-muted);
    font-size: 1.02rem;
    line-height: 1.8;
    margin: 0;
}

.home-hero-section {
    background: #020617;
    padding: 92px 18px 28px;
    width: 100%;
}

.home-hero-shell {
    margin: 0 auto;
    max-width: 1360px;
    overflow: hidden;
    width: 100%;
}

.home-hero-carousel {
    border-radius: 34px;
    box-shadow: 0 30px 100px rgba(2, 6, 23, 0.32);
    min-height: clamp(440px, 74vh, 720px);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.home-hero-inner,
.home-hero-inner .carousel-item,
.home-hero-slide {
    min-height: clamp(440px, 74vh, 720px);
    width: 100%;
}

.home-hero-slide {
    background-color: #020617;
    background-position: center;
    background-size: cover;
    display: block;
}

.hero-slide-link:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: -8px;
}

.home-hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.74) 42%, rgba(2, 6, 23, 0.18) 100%),
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.26), transparent 30%);
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.home-hero-content {
    color: #ffffff;
    left: clamp(24px, 6vw, 84px);
    max-width: min(640px, calc(100% - 48px));
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.home-hero-content h2 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.92;
    margin-bottom: 1rem;
    overflow-wrap: anywhere;
}

.home-hero-content p {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.02rem, 1.8vw, 1.35rem);
    line-height: 1.7;
    margin-bottom: 1.6rem;
    max-width: 560px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
}

.home-primary-link,
.home-secondary-link {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.home-primary-link {
    background: var(--secondary-color);
    color: #111827;
}

.home-secondary-link {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.home-primary-link:hover,
.home-primary-link:focus,
.home-secondary-link:hover,
.home-secondary-link:focus {
    color: #ffffff;
    transform: translateY(-2px);
}

.home-primary-link:hover,
.home-primary-link:focus {
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.28);
}

.home-hero-indicators {
    bottom: 22px;
    z-index: 3;
}

.home-hero-indicators [data-bs-target] {
    border-radius: 999px;
    height: 8px;
    opacity: 0.55;
    width: 34px;
}

.home-hero-indicators .active {
    opacity: 1;
}

.home-carousel-control {
    background: rgba(2, 6, 23, 0.22);
    border-radius: 999px;
    bottom: auto;
    height: 52px;
    opacity: 0.82;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.25s ease, opacity 0.25s ease;
    width: 52px;
    z-index: 3;
}

.home-carousel-control:hover,
.home-carousel-control:focus {
    background: rgba(2, 6, 23, 0.42);
    opacity: 1;
}

.carousel-control-prev.home-carousel-control {
    left: 22px;
}

.carousel-control-next.home-carousel-control {
    right: 22px;
}

.home-about-section {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 30%),
        #ffffff;
    padding: 90px 0;
}

.home-about-media {
    min-height: 520px;
    position: relative;
}

.home-about-image {
    border-radius: 34px;
    box-shadow: var(--home-card-shadow);
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    max-width: 100%;
    width: 88%;
}

.home-about-media::after {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 28px;
    bottom: 24px;
    content: '';
    height: 62%;
    position: absolute;
    right: 0;
    width: 42%;
    z-index: -1;
}

.home-about-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    bottom: 36px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
    left: 34px;
    padding: 18px 20px;
    position: absolute;
    width: min(310px, calc(100% - 68px));
}

.home-about-card strong {
    color: var(--home-ink);
    display: block;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.home-about-card span {
    color: var(--home-muted);
    display: block;
    font-size: 0.95rem;
    line-height: 1.5;
}

.home-about-pill-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.6rem;
}

.home-about-pill-grid span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    color: var(--home-ink);
    display: inline-flex;
    font-weight: 700;
    gap: 0.55rem;
    padding: 0.9rem 1rem;
    min-width: 0;
}

.home-about-pill-grid i {
    color: #16a34a;
}

.church-feature-section {
    background:
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 92px 0;
}

.church-modern-card {
    background: #07111f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.22);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    margin: 0 auto;
    max-width: 1160px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.church-modern-card::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 35%);
    content: '';
    height: 520px;
    position: absolute;
    right: -220px;
    top: -180px;
    width: 520px;
}

.church-modern-media {
    min-height: 430px;
    overflow: hidden;
    position: relative;
}

.church-modern-media img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.church-modern-media::after {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.55), transparent 60%);
    content: '';
    inset: 0;
    position: absolute;
}

.church-modern-badge,
.church-category {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.8rem;
    text-transform: uppercase;
}

.church-modern-badge {
    left: 24px;
    position: absolute;
    top: 24px;
    z-index: 2;
}

.church-modern-content {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 430px;
    padding: clamp(28px, 4vw, 58px);
    position: relative;
    z-index: 1;
    min-width: 0;
}

.church-modern-content h2 {
    color: #ffffff;
    font-size: clamp(2rem, 3.4vw, 3.35rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1.02;
    margin: 0.9rem 0 1rem;
    overflow-wrap: anywhere;
}

.church-modern-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.church-modern-details {
    display: grid;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.church-modern-detail {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.86);
    display: flex;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    min-width: 0;
}

.church-modern-detail span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.church-modern-detail i {
    color: var(--secondary-color);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.church-distance-detail {
    color: #bbf7d0;
}

.church-modern-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.church-action-button {
    align-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 850;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.church-action-button:hover,
.church-action-button:focus {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
    color: #ffffff;
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.church-action-button.instagram { background: #e1306c; }
.church-action-button.maps { background: #34a853; }
.church-action-button.waze { background: #357ae8; }
.church-action-button.uber { background: #000000; }

.departments-modern-section {
    background:
        radial-gradient(circle at top left, rgba(30, 64, 175, 0.08), transparent 32%),
        #f8fafc;
    overflow: hidden;
    padding: 92px 0;
    position: relative;
}

.departments-modern-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 100%;
}

.department-modern-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.department-modern-card:hover,
.department-modern-card:focus-within {
    border-color: rgba(30, 64, 175, 0.28);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    transform: translateY(-7px);
}

.department-modern-media {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(245, 158, 11, 0.12)),
        #ffffff;
    display: flex;
    height: 180px;
    justify-content: center;
    padding: 28px;
    text-decoration: none;
}

.department-modern-media img {
    max-height: 112px;
    max-width: 84%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.department-modern-card:hover .department-modern-media img {
    transform: scale(1.06);
}

.department-modern-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
    min-width: 0;
}

.department-modern-content h3 {
    color: var(--home-ink);
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.7rem;
    overflow-wrap: anywhere;
}

.department-modern-content p {
    color: var(--home-muted);
    display: -webkit-box;
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.65;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.department-modern-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: auto;
    min-width: 0;
}

.department-modern-actions a {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-weight: 800;
    gap: 0.45rem;
    text-decoration: none;
}

.department-modern-actions a:first-child {
    background: rgba(30, 64, 175, 0.08);
    color: var(--primary-color);
    padding: 0.7rem 0.95rem;
}

.department-modern-actions a:last-child {
    background: #e1306c;
    color: #ffffff;
    height: 42px;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
}

.youtube-showcase {
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.10), transparent 32%),
        linear-gradient(135deg, #07111f 0%, #0f172a 54%, #1e293b 100%);
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

.youtube-showcase::before {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    content: '';
    height: 420px;
    position: absolute;
    right: -160px;
    top: -180px;
    width: 420px;
    pointer-events: none;
}

.youtube-showcase .container {
    position: relative;
    z-index: 1;
}

.youtube-showcase-header {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 32px;
    max-width: 100%;
}

.youtube-title {
    color: #ffffff;
    display: block;
    margin-bottom: 1rem;
}

.youtube-title::after {
    background: #ef4444;
    left: 0;
    transform: none;
}

.youtube-lead {
    color: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0;
    max-width: 720px;
}

.youtube-channel-link {
    align-items: center;
    background: #ef4444;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    flex-shrink: 0;
    font-weight: 800;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.youtube-channel-link:hover,
.youtube-channel-link:focus {
    background: #dc2626;
    box-shadow: 0 18px 35px rgba(239, 68, 68, 0.28);
    color: #ffffff;
    transform: translateY(-2px);
}

.youtube-featured-card,
.youtube-list-card,
.youtube-empty-state {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.youtube-featured-card {
    border-radius: 28px;
    overflow: hidden;
}

.youtube-featured-thumb,
.youtube-list-thumb {
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.youtube-featured-thumb img,
.youtube-list-thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    width: 100%;
}

.youtube-featured-thumb {
    aspect-ratio: 16 / 9;
}

.youtube-featured-thumb:hover img,
.youtube-featured-thumb:focus img,
.youtube-list-thumb:hover img,
.youtube-list-thumb:focus img {
    transform: scale(1.04);
}

.youtube-play-button {
    align-items: center;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.35);
    color: #ffffff;
    display: inline-flex;
    font-size: 2rem;
    height: 72px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
}

.youtube-duration,
.youtube-list-duration {
    background: rgba(0, 0, 0, 0.78);
    border-radius: 999px;
    bottom: 14px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
    position: absolute;
    right: 14px;
}

.youtube-featured-body {
    padding: 28px;
}

.youtube-featured-label {
    color: #fca5a5;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.youtube-featured-body h3,
.youtube-list-body h3 {
    color: #ffffff;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.65rem;
    overflow-wrap: anywhere;
}

.youtube-featured-body h3 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.youtube-featured-body p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.youtube-video-meta {
    color: rgba(255, 255, 255, 0.74);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 0.85rem 1.25rem;
}

.youtube-video-meta span {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
}

.youtube-video-list {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.youtube-list-card {
    align-items: center;
    border-radius: 20px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 168px) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    padding: 10px;
}

.youtube-list-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
}

.youtube-list-body {
    min-width: 0;
}

.youtube-list-body h3 {
    display: -webkit-box;
    font-size: 0.98rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.youtube-list-body small {
    color: rgba(255, 255, 255, 0.62);
}

.youtube-empty-state {
    align-items: center;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    gap: 12px;
    padding: 24px;
}

.youtube-empty-state i {
    color: #ef4444;
    font-size: 2rem;
}

@media (max-width: 1199px) {
    .departments-modern-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .home-hero-section {
        padding-top: 82px;
    }

    .home-hero-content {
        left: 28px;
        right: 28px;
        max-width: calc(100% - 56px);
    }

    .home-about-media,
    .home-about-image {
        min-height: 420px;
    }

    .home-about-image {
        width: 100%;
    }

    .home-about-media::after {
        display: none;
    }

    .church-modern-card {
        grid-template-columns: 1fr;
    }

    .church-modern-media,
    .church-modern-content {
        min-height: auto;
    }

    .church-modern-media {
        aspect-ratio: 16 / 10;
    }

    .departments-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .youtube-showcase-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .youtube-list-card {
        grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .home-hero-section {
        padding: 72px 0 12px;
    }

    .home-hero-shell {
        border-radius: 0;
        max-width: 100%;
        width: 100%;
    }

    .home-hero-carousel,
    .home-hero-inner,
    .home-hero-inner .carousel-item,
    .home-hero-slide {
        border-radius: 0;
        min-height: 520px;
    }

    .home-hero-content {
        bottom: 42px;
        left: 16px;
        max-width: calc(100% - 32px);
        right: 16px;
        top: auto;
        transform: none;
    }

    .home-hero-content h2 {
        font-size: clamp(3rem, 18vw, 3.6rem);
    }

    .home-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .home-primary-link,
    .home-secondary-link {
        width: 100%;
    }

    .home-about-section,
    .church-feature-section,
    .departments-modern-section {
        padding: 58px 0;
    }

    .home-about-pill-grid,
    .departments-modern-grid {
        grid-template-columns: 1fr;
    }

    .home-about-media,
    .home-about-image {
        min-height: 340px;
    }

    .home-about-card {
        bottom: 18px;
        left: 18px;
        max-width: calc(100% - 36px);
        width: calc(100% - 36px);
    }

    .church-modern-card {
        border-radius: 24px;
        max-width: 100%;
    }

    .church-modern-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .church-action-button {
        justify-content: center;
        width: 100%;
    }

    .youtube-showcase::before,
    .church-modern-card::before {
        display: none;
    }

    .youtube-list-card {
        grid-template-columns: 1fr;
    }

    .youtube-list-thumb {
        aspect-ratio: 16 / 9;
    }

    .youtube-featured-body {
        padding: 22px;
    }

    .home-carousel-control {
        height: 44px;
        width: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-carousel .carousel-item {
        transition: none !important;
    }
}
