/* Site-wide design layer: brings the older sections in line with the home events style.
   Loaded last on every page, so it only refines what style.css already lays out. */
:root {
    --vic-ink: #0b3e6c;
    --vic-text: #3d4b63;
    --vic-muted: #6b7890;
    --vic-purple: #653e98;
    --vic-violet: #6933dc;
    --vic-deep: #30234f;
    --vic-line: #e8e1ef;
    --vic-soft: #f3edf9;
    --vic-shadow: 0 14px 36px #3921591a;
    --vic-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--vic-font); color: var(--vic-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #d9c8f3; color: var(--vic-deep); }
:focus-visible { outline: 3px solid #bda2dc; outline-offset: 3px; }

/* Header navigation */
.desktop-menu-item, .language-switcher > button { font-weight: 500; letter-spacing: -.005em; transition: color .2s ease; }
a.desktop-menu-item { position: relative; text-decoration: none; }
a.desktop-menu-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--vic-violet); transform: scaleX(0); transition: transform .25s ease; }
a.desktop-menu-item:hover { color: var(--vic-violet); text-decoration: none; }
a.desktop-menu-item:hover::after, a.desktop-menu-item[aria-current="page"]::after { transform: scaleX(1); }
a.desktop-menu-item[aria-current="page"] { color: var(--vic-purple); font-weight: 600; }

/* Section headings: sentence case with a short accent bar, like the events block */
.advantages h2, .goals h2, .about-us h2, .map h2, .qa, .history h2, .pastors h2, .ministries h2,
.missions h2:not(.mission-title), .Gallery h2, .future-title, .cross-title, .media-title, .give-title,
.prayer-title, .calendar-title, .about h2, .text h2 {
    text-transform: none;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--vic-ink);
}
.advantages h2::before, .goals h2::before, .about-us h2::before, .map h2::before, .qa::before, .history h2::before,
.pastors h2::before, .ministries h2::before, .missions h2:not(.mission-title)::before, .Gallery h2::before,
.media-title::before, .give-title::before, .prayer-title::before, .about h2::before, .text h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--vic-violet), #a78bfa);
}
.future-title::before, .cross-title::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--vic-violet), #a78bfa);
}

/* Body copy: readable size, left aligned instead of justified */
.about-us-text, .text-h3, .text-history, .text-history-next, .text-history-3, .text-history-4,
.text-history-3768, .text-history-4768, .text-ministries, .text-ministry, .text-group, .text-group-cross,
.description, .give-text, .give-text1, .media-text, .media-text2, .myPopupUK-text {
    text-align: left;
    font-size: 16px;
    line-height: 1.7;
    color: var(--vic-text);
    hyphens: auto;
}
.text-pastors { color: var(--vic-muted); }
.name-pastor, .name-group, .ministry-text { font-weight: 650; letter-spacing: -.015em; color: var(--vic-purple); }

/* Photos and videos: square corners, no shadows — an editorial look */
.photo-about, .photo-history, .photo-history-right, .photo-history-right768, .image-ministries, .ministry-girls,
.about-us-image, .pastor img, .pastors img, .card-img-top, img.rounded-1, .prayer-layout__photo,
.video-container video, .video-container-heart video, .Gallery .carousel, .media .carousel, .carousel-inner, div.map iframe {
    border-radius: 0 !important;
    box-shadow: none !important;
}
.video-container video, .video-container-heart video { background: #1d1530; object-fit: cover; }
.video-container video.video { display: block; width: calc(100% - 48px); max-width: 960px; margin: 20px auto 0; }

/* Galleries: soft backdrop instead of black letterboxing, clear round controls */
.carousel-inner { max-height: none; background: #ece6f4; }
.carousel-inner img { height: clamp(320px, 52vw, 600px); max-height: none; width: 100% !important; object-fit: contain; background: transparent; }
.carousel-control-prev, .carousel-control-next {
    top: 50%; bottom: auto; width: 52px; height: 52px; margin: 0 16px; transform: translateY(-50%);
    border-radius: 50%; background: #1d1530b3; opacity: 1; transition: background-color .2s ease;
}
.carousel-control-prev:hover, .carousel-control-next:hover { background: var(--vic-violet); }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 22px; height: 22px; filter: none; }
.gallery-text { color: var(--vic-muted); font-weight: 500; }
.card .play-icon { transition: transform .25s ease; }
.card:hover .play-icon { transform: translate(-50%, -50%) scale(1.12); }

/* Buttons */
.button, .about-us-button, .about-us-button-cross, .btn-prayer, .Pray button, form button[type="submit"],
.paypalButtons ~ button, .give-elements.button, .donate-button {
    border-radius: 999px !important;
    font-weight: 600;
    letter-spacing: .02em;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.button:hover, .about-us-button:hover, .about-us-button-cross:hover { transform: translateY(-2px); text-decoration: none; }
/* Flat buttons: no shadows, at rest or on hover */
.button, .button2, .about-us-button, .about-us-button-cross, .event-banner__button, .home-events__calendar-link,
.events-hero__link, #comment-form button, form button[type="submit"] { box-shadow: none !important; }
.button2 { border-radius: 999px; border-width: 2px; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(4px); background: #ffffff14; }
.button2:hover { background: #fff; border: 2px solid #fff; }

/* Home: advantages as cards */
.advantages-items { gap: 24px; }
.advantage-item {
    flex: 1 1 0;
    max-width: 320px;
    padding: 36px 28px;
    background: #fff;
    border: 1px solid var(--vic-line);
    border-radius: 24px;
    box-shadow: 0 10px 30px #3921590d;
    transition: transform .25s ease, box-shadow .25s ease;
}
.advantage-item:hover { transform: translateY(-4px); box-shadow: 0 20px 44px #3921591f; }
.advantage-title { color: var(--vic-purple) !important; font-weight: 650; letter-spacing: -.02em; }
.advantage-text { color: var(--vic-text) !important; font-size: 15px !important; line-height: 1.65 !important; }

/* Home: FAQ as light cards instead of solid purple bars */
.accordion .ui-accordion-header {
    margin-top: 12px;
    padding: 20px 56px 20px 24px !important;
    background: #fff !important;
    color: var(--vic-ink) !important;
    border: 1px solid var(--vic-line) !important;
    border-radius: 16px !important;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    transition: background-color .2s ease, border-color .2s ease;
}
.accordion .ui-accordion-header:hover { border-color: #cdb8ea !important; background: #fcfaff !important; }
.accordion .ui-accordion-header-active { background: var(--vic-soft) !important; color: var(--vic-purple) !important; border-color: #dccbf0 !important; border-radius: 16px 16px 0 0 !important; }
.accordion .ui-accordion-header .ui-icon { position: absolute; right: 22px; top: 50%; margin: -6px 0 0; color: var(--vic-violet); }
.accordion .ui-accordion-header-active .ui-icon { margin-top: -2px; }
.accordion .ui-accordion-content {
    padding: 4px 24px 22px !important;
    background: var(--vic-soft);
    border: 1px solid #dccbf0;
    border-top: 0;
    border-radius: 0 0 16px 16px;
}
.accordion-text { font-size: 16px; line-height: 1.7; color: var(--vic-text); margin: 0; }

/* Missions: local projects as cards */
.advantage-slider-item {
    background: #fff !important;
    border: 1px solid var(--vic-line) !important;
    border-radius: 24px !important;
    box-shadow: var(--vic-shadow);
}
.mission-title { text-transform: none !important; letter-spacing: -.025em; color: var(--vic-purple) !important; font-weight: 700; }
.mission-description { font-size: 11px !important; font-weight: 700 !important; letter-spacing: .18em; text-transform: uppercase; color: #7753aa !important; }
.mission-subtitle { font-size: 16px !important; line-height: 1.7 !important; color: var(--vic-text) !important; }
.heart { color: var(--vic-muted); font-weight: 500; }

/* Give: bank card and quote */
.bank-details { border-radius: 24px !important; border: 1px solid var(--vic-line); }
.proverbs, .give-text, .give-text1 { color: var(--vic-text); }

/* Forms */
input.form-control, textarea, #username, select.form-select {
    border: 1px solid #d9cdea !important;
    border-radius: 12px !important;
    padding: 12px 14px;
    font-size: 16px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input.form-control:focus, textarea:focus, #username:focus, select.form-select:focus {
    border-color: var(--vic-violet) !important;
    box-shadow: 0 0 0 4px #6933dc22 !important;
    outline: none;
}

/* Footer: same deep violet gradient as the events hero */
.footer-container, .footer-320 { background:radial-gradient(ellipse at top right, #8b60c64d, transparent 60%), linear-gradient(135deg, var(--vic-deep), #4a2a78) !important; }
.footer-end { background: #241a3d !important; color: #cfc3e3 !important; letter-spacing: .02em; }
.footer-container a, .footer-container320 a { transition: color .2s ease, opacity .2s ease; }
.footer-container a:hover, .footer-container320 a:hover { color: #fff; opacity: .85; }
.social img { transition: transform .2s ease; }
.social a:hover img { transform: translateY(-2px); }
.god, .god-320 { font-weight: 600; letter-spacing: -.02em; color: var(--vic-purple); }

@media (min-width: 769px) {
    /* Pages with a fifth footer column (prayer request) keep it on one row */
    .footer-container { grid-template-columns: repeat(auto-fit, minmax(150px, 200px)) !important; column-gap: 16px; }
}

@media (max-width: 768px) {
    /* Mobile headings are centered flex rows: stack the accent bar above the text */
    .advantages h2, .goals h2, .about-us h2, .map h2, .qa, .history h2, .pastors h2, .ministries h2,
    .missions h2:not(.mission-title), .Gallery h2, .media-title, .give-title, .prayer-title, .about h2, .text h2 {
        flex-direction: column;
        align-items: center;
    }
    .advantages h2::before, .goals h2::before, .about-us h2::before, .map h2::before, .qa::before, .history h2::before,
    .pastors h2::before, .ministries h2::before, .missions h2:not(.mission-title)::before, .Gallery h2::before,
    .media-title::before, .give-title::before, .prayer-title::before, .about h2::before, .text h2::before {
        margin-inline: auto;
    }
    .advantages-items { flex-direction: column; align-items: center; width: calc(100% - 32px); }
    .advantage-item { width: 100%; max-width: 420px; }
    .accordion .ui-accordion-header { font-size: 16px; padding: 16px 48px 16px 18px !important; }
    .accordion .ui-accordion-content { padding: 4px 18px 18px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .advantage-item, .button, .about-us-button, .pastor img, .pastors img, a.desktop-menu-item::after { transition: none; }
    .advantage-item:hover, .button:hover, .about-us-button:hover, .pastor img:hover, .pastors img:hover { transform: none; }
}

/* ===== Layout: one 1080px content column and an even section rhythm ===== */
:root { --vic-container: 1080px; --vic-gutter: 24px; --vic-section: 88px; }

.god, .god-320 { margin: 72px 0 36px !important; }
.footer-about-us { margin-top: 0; }

@media (min-width: 992px) {
    /* Content column shared by every section (the events block already sits on it) */
    .advantages, .goals > h2, .about-us > h2, .about-us-container, .about-us > .justify-content-center, div.map,
    .main-about, .main-history, .main-history-second, .main-pastors, .ministries, .main-about ~ .video-container, .ministry, .ministry + div,
    .info, .main-future, .missions.container-lg, .Gallery, .media.container-sm, .forms-container.container-sm, .prayerrequest, #comments-container {
        width: min(var(--vic-container), calc(100% - 2 * var(--vic-gutter)));
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    /* Section headings sit on the column edge with one consistent gap below */
    .advantages h2, .goals h2, .about-us h2, .qa, div.map h2, .history h2, .pastors h2, .ministries > h2, .future-title,
    .missions h2:not(.mission-title), .Gallery h2, .media-title, .give-title, .prayer-title {
        margin: 0 0 32px !important;
        padding: 0;
        text-align: left;
        font-size: clamp(32px, 3.2vw, 42px);
    }

    /* These two headings are themselves on the column, so they keep auto side margins */
    .goals > h2, .about-us > h2 { margin-left: auto !important; margin-right: auto !important; }
    .main-about .about-us > h2 { margin-left: 0 !important; margin-right: 0 !important; }
    .prayerrequest { display: block; text-align: left; }

    /* Vertical rhythm between sections */
    .advantages, .goals, .about-us, .about-us > .justify-content-center, div.map, .main-history, .main-history-second,
    .main-pastors, .ministries, .main-about ~ .video-container, .ministry, .info, .main-future, .Gallery {
        margin-top: var(--vic-section) !important;
    }
    .main-about, .missions.container-lg, .media.container-sm, .forms-container.container-sm, .prayerrequest { margin-top: 56px !important; }
    .missions.container-lg + .missions.container-lg { margin-top: var(--vic-section) !important; }
    .ministry + div, .ministries > .image-ministries { margin-top: 32px !important; }
    .about-us { width: auto; }

    /* Home */
    .advantages-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; margin: 0; }
    .advantage-item { max-width: none; margin: 0; }
    /* The goals artwork is drawn edge to edge, so it spans the full page width */
    .goals-text { width: 100%; margin: 0; }
    .goals-text img { display: block; width: 100%; height: auto; }
    /* The goals artwork already ends in empty space, so the next section starts closer */
    .goals + .about-us { margin-top: 8px !important; }
    .about-us-image-container { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
    .about-us-image { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; }
    .about-us-text-button { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin: 0; padding: 0; width: auto; }
    .about-us-text { margin: 0; width: auto; max-width: none; font-size: 17px; }
    .about-us-button, .about-us-button-cross { margin: 0 !important; height: auto; padding: 14px 32px; }
    .accordion { max-width: none; width: 100%; }
    div.map .map-text { text-align: left; margin: -12px 0 24px; text-transform: none; font-size: 17px; font-weight: 500; color: var(--vic-text); }
    div.map iframe { display: block; width: 100%; height: 420px; }

    /* About: text and photo side by side */
    .main-about, .main-history, .main-history-second, .ministry-start, .vision-container {
        display: grid;
        grid-template-columns: 1fr 1.3fr;
        gap: 56px;
        align-items: center;
    }
    .main-history { grid-template-columns: 1.3fr 1fr; }
    .main-about .about-us, .history, .explication-text, .main-history-second > div, .ministry-start > div, .ministry-image, .vision-container > div {
        width: auto; max-width: none; margin: 0; padding: 0; position: static;
    }
    .main-about .about-us h2 { margin-bottom: 20px !important; }
    .text-h3, .text-history, .text-history-next, .text-history-3, .text-history-4, .text-ministries, .text-ministry, .text-group, .text-group-cross {
        width: auto; max-width: 62ch; margin: 0 0 16px; padding: 0;
    }
    .photo-about, .photo-history, .photo-history-right, .ministry-girls {
        display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: 0;
    }
    .pastors { width: 100%; margin: 0; }
    .pastor { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 48px; width: 100%; margin: 0; }
    .pastors-titi, .pastors-francis { margin: 0; text-align: center; }
    .pastor img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
    .name-pastor { margin: 20px 0 4px; font-size: 22px; }
    .ministries { display: block; }
    .ministry-start { margin: 0 !important; }
    .image-ministries { display: block; width: 100%; height: 340px; object-fit: cover; margin: 0; }
    .main-about ~ .video-container video, .video-container-heart video { display: block; width: 100%; max-width: none; height: auto; margin: 0; }
    .ministry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .ministry > div, .info > div {
        width: auto; margin: 0 !important; padding: 32px; text-align: left; align-self: stretch;
        background: #fff; border: 1px solid var(--vic-line); border-radius: 24px; box-shadow: 0 10px 30px #3921590d;
    }
    .ministry-text, .name-group { text-align: left; padding: 0 !important; }
    .ministry-text { margin: 0 0 12px; font-size: 22px; }
    .future-title::before { margin: 0 0 16px; }
    .info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
    .name-group { margin: 0 0 10px; font-size: 19px; }
    .text-ministry, .text-group { margin: 0; }
    .future { width: 100%; margin: 0; }
    .video-container-heart { margin: 0 0 var(--vic-section); width: 100%; }
    .vision-container { grid-template-columns: 1fr 1.2fr; margin: 0; }
    .image-cross img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
    .vision-container .text { text-align: left; }
    .cross-title { text-align: left; margin: 0 0 20px !important; font-size: clamp(28px, 2.6vw, 36px); }
    .cross-title::before { margin: 0 0 16px; }
    .text-group-cross { margin-bottom: 28px; }

    /* Missions, media, give, prayer */
    .heart { margin: -16px 0 32px; text-align: left; }
    .gallery-text { margin: 0 0 16px; text-align: left; }
    .Gallery .row { margin-left: 0; margin-right: 0; }
    .Gallery .col-md-10, .Gallery .col-md-8 { width: 100%; flex: 0 0 100%; max-width: none; padding: 0; }
    .Gallery .video-container video.video { width: 100%; max-width: none; margin: 0 0 32px; }
    .media .items { margin: 0 0 24px !important; }
    .media-text, .media-text2 { text-align: left; margin: 0 0 8px; font-weight: 600; color: var(--vic-purple); }
    #comment-form { display: flex; flex-direction: column; align-items: stretch; gap: 16px; max-width: 640px; margin: 0 !important; padding: 0 !important; }
    #comment-form input, #comment-form textarea { width: 100%; margin: 0 !important; box-sizing: border-box; }
    #comment-form textarea { min-height: 160px; }
    #comment-form button { align-self: flex-start; margin: 8px 0 0 !important; padding: 14px 32px; }
    .gallery-text { text-align: left !important; }
    .media .Gallery { width: 100%; }
    .media .items { --bs-gutter-x: 24px; margin: 0 calc(-.5 * var(--bs-gutter-x)) 32px !important; }
    .media .card { margin: 0 !important; border: 0; background: transparent; }
}

@media (max-width: 991px) {
    /* Tablet and phone: calmer section gaps */
    .advantages h2, .goals h2, .about-us h2, .qa, div.map h2, .history h2, .pastors h2, .ministries > h2, .future-title,
    .missions h2:not(.mission-title), .Gallery h2, .media-title {
        margin-top: 56px !important;
        margin-bottom: 24px !important;
    }
    .main-about, .main-history, .main-history-second, .main-history-second768, .main-pastors, .ministries, .ministry, .info, .main-future {
        margin-top: 40px !important;
    }
    .pastors { margin-top: 0 !important; }
}

/* ===== Modern touches ===== */

/* Calm entrance animations instead of bounce and flip */
.wow.animate__bounceInUp, .wow.animate__flipInX, .wow.slideInDown { animation-name: fadeInUp !important; animation-duration: .8s !important; animation-timing-function: cubic-bezier(.22, .61, .36, 1) !important; }
.wow.animate__flip { animation-name: fadeIn !important; animation-duration: .6s !important; }

/* Hero: soft dark fade for legible type, eyebrow and a glass time pill */
.main-screen, .main-screen320 { position: relative; }
.main-screen::after, .main-screen320::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(180deg, transparent 30%, #180e30a6 100%);
}
.centered-text, .centered-text320 { z-index: 2; }
.centered-text .main-title1, .centered-text .main-title, .centered-text320 .main-title1, .centered-text320 .main-title {
    letter-spacing: -.02em; line-height: 1.02; text-shadow: 0 4px 30px #0006;
}
.centered-text h3.title, .centered-text320 h3.title {
    margin: 22px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #e6dcf7;
}
.centered-text h4.title, .centered-text320 h4.title {
    display: table; margin: 0 auto 28px; padding: 9px 20px; border-radius: 999px;
    background: #ffffff1f; border: 1px solid #ffffff38; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 16px; font-weight: 600; color: #fff;
}
.centered-text .button, .centered-text .button2, .centered-text320 .button, .centered-text320 .button2 { padding: 13px 30px; letter-spacing: .06em; }

/* Full-bleed tinted bands give long pages a rhythm */
.advantages, .main-pastors, .info { position: relative; isolation: isolate; }
.advantages::after, .main-pastors::after {
    content: ""; position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%);
    top: -56px; bottom: -64px; background: linear-gradient(180deg, #efe9f8, #f6f2fb);
}
.advantage-item, .ministry > div, .info > div { border-radius: 16px; box-shadow: none; }
.advantage-item:hover { box-shadow: 0 18px 40px #3921591a; }

/* Prayer page: form and photo side by side */
.prayer-intro { max-width: 52ch; margin: 0 0 28px; font-size: 17px; line-height: 1.7; color: var(--vic-text); }
.prayer-layout__photo { display: block; width: 100%; height: auto; object-fit: cover; }

@media (min-width: 992px) {
    /* Desktop menu sits on the same 1080px column */
    .container header nav ul.menu-item { max-width: var(--vic-container); margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0; justify-content: space-between; }
    .centered-text .main-title1, .centered-text .main-title { font-size: clamp(48px, 5vw, 72px); }
    .advantages { margin-top: 136px !important; }
    .advantages::after, .main-pastors::after { top: -64px; bottom: -72px; }

    .prayer-layout {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center;
        width: min(var(--vic-container), calc(100% - 2 * var(--vic-gutter))); margin: 56px auto 0;
    }
    .prayer-layout .prayerrequest, .prayer-layout #comments-container { width: 100%; margin: 0 !important; }
    .prayer-layout__photo { aspect-ratio: 4 / 5; }
}

@media (max-width: 991px) {
    .prayer-layout { width: calc(100% - 40px); margin: 32px auto 0; }
    .prayer-layout .prayerrequest, .prayer-layout #comments-container { width: 100%; margin: 0; padding: 0; text-align: left; }
    .prayer-layout__photo { margin-top: 32px; aspect-ratio: 3 / 2; }
    .advantages::after, .main-pastors::after { top: -36px; bottom: -32px; }
}

@media (min-width: 992px) {
    .Gallery .gallery-text, .Gallery p.gallery-text { text-align: left !important; }
}

/* No inline gap under the hero photo, so the dark fade ends exactly at its edge */
.main-screen > img, .main-screen320 > img { display: block; }
/* The desktop hero image ends in a 20px transparent strip (20 / 916 of its height) */
.main-screen::after { bottom: 2.2%; }

/* Photo interactions: square frames and gentle movement. Hero is excluded. */
:is(.photo-about, .photo-history, .photo-history-right, .photo-history-right768,
    .image-ministries, .ministry-girls, .about-us-image, .pastor img, .prayer-layout__photo) {
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: saturate(.94);
    transition: transform .65s cubic-bezier(.2,.65,.3,1), filter .65s ease;
}
/* Linked media previews zoom inside their existing frame. */
.media .card > a.position-relative { overflow: hidden; border-radius: 0; }
.media .card-img-top {
    border-radius: 0 !important;
    transform: scale(1);
    transition: transform .75s cubic-bezier(.2,.65,.3,1), filter .5s ease;
}
.media .card .play-icon {
    width: 50px; height: 50px;
    transition: transform .4s cubic-bezier(.2,.65,.3,1);
}
@media (hover: hover) and (pointer: fine) {
    :is(.photo-about, .photo-history, .photo-history-right, .photo-history-right768,
        .image-ministries, .ministry-girls, .about-us-image, .pastor img, .prayer-layout__photo):hover {
        transform: translateY(-4px);
        filter: saturate(1.06) contrast(1.015);
    }
    .media .card > a:hover .card-img-top,
    .media .card > a:focus-visible .card-img-top { transform: scale(1.035); filter: saturate(1.06); }
    .media .card > a:hover .play-icon { transform: translate(-50%, -50%) scale(1.1); }
}
@media (hover: none) {
    .media .card:hover .play-icon { transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
    :is(.photo-about, .photo-history, .photo-history-right, .photo-history-right768,
        .image-ministries, .ministry-girls, .about-us-image, .pastor img, .prayer-layout__photo),
    .media .card-img-top, .media .card .play-icon { transition: none !important; }
    :is(.photo-about, .photo-history, .photo-history-right, .photo-history-right768,
        .image-ministries, .ministry-girls, .about-us-image, .pastor img, .prayer-layout__photo):hover,
    .media .card > a:hover .card-img-top,
    .media .card > a:focus-visible .card-img-top { transform: none; filter: none; }
    .media .card:hover .play-icon { transform: translate(-50%, -50%); }
}

/* Shared micro-interactions; transform and translate remain independent. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    :is(.home-events__card, .weekly-card, .month-card, .ministry > div, .info > div) {
        transition: translate .35s ease, border-color .35s ease;
    }
    :is(.home-events__card, .weekly-card, .month-card, .ministry > div, .info > div):hover {
        translate: 0 -4px;
        border-color: #b99bd8;
    }
    :is(.about-us-button, .about-us-button-cross, .home-events__calendar-link, .events-hero__link) {
        transition: translate .3s ease, background-color .3s ease, color .3s ease;
    }
    :is(.about-us-button, .about-us-button-cross, .home-events__calendar-link, .events-hero__link):hover { translate: 0 -2px; }
    :is(.carousel-control-prev, .carousel-control-next) .carousel-control-prev-icon,
    :is(.carousel-control-prev, .carousel-control-next) .carousel-control-next-icon { transition: translate .25s ease; }
    .carousel-control-prev:hover .carousel-control-prev-icon { translate: -3px 0; }
    .carousel-control-next:hover .carousel-control-next-icon { translate: 3px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .wow { visibility: visible !important; animation: none !important; }
}

/* Language dropdown: below its trigger and above hero/section overlays. */
.header, .header320 { position: relative; z-index: 50; }
.language-switcher { position: relative; }
.container header nav ul.dropdown, .language-switcher .dropdown {
    position: absolute; top: 100%; left: 0; right: auto;
    margin: 0; padding: 8px 0; min-width: 170px; width: max-content;
    background: #fff; border: 1px solid var(--vic-line); border-radius: 8px;
    z-index: 100; list-style: none; flex-direction: column;
}
.language-switcher .dropdown a {
    display: block; padding: 12px 18px; min-height: 44px;
    color: var(--vic-ink); text-decoration: none; font-size: 15px;
}
.language-switcher .dropdown a:hover,
.language-switcher .dropdown a:focus-visible { background: var(--vic-soft); color: var(--vic-purple); }
.language-switcher .dropdown a[aria-current="page"] { font-weight: 700; }
@media (min-width: 769px) {
    .container header nav .language-switcher .dropdown { left: auto; right: 0; }
}

/* Keep the language panel attached to its button, not the stretched logo row. */
.header .menu-item > .language-switcher { align-self: flex-start; height: auto; min-height: 0; }
/* A single click state avoids hover opening and click closing on the same gesture. */
.language-switcher:not(.is-open) .dropdown { display: none !important; visibility: hidden; pointer-events: none; }
.language-switcher.is-open .dropdown { display: block !important; visibility: visible; pointer-events: auto; transform: none; }
.header320 .language-switcher .dropdown { margin-top: 0; }


/* The ministry link uses the same typography and hover as other menu items. */
.header a.restored-way-nav { white-space:nowrap; }
@media (min-width:769px) {
 .header .menu-item { gap:12px; }
 .header .main-logo_rus { margin-left:0; }
}

/* Keep the church header balanced: three entries on each side of the logo. */
@media (min-width:769px) {
 .container header nav ul.menu-item {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) 111px repeat(3,minmax(0,1fr));
    align-items:start; gap:12px; width:min(1080px,calc(100% - 40px)); max-width:1080px;
    padding-left:0; padding-right:0; margin-left:auto; margin-right:auto;
 }
 .header .menu-item > li { justify-self:center; }
 .header .menu-item > .main-logo, .header .menu-item > .main-logo_rus { margin-left:0; }
 /* The image itself contains the shaped transparent edge. Never cover it with a header rectangle. */
 .vic-home .header { background:transparent; }
 .vic-home .main-screen::after { content:none; }
 .vic-home .main-screen > .main-image {
    width:100%; height:auto; max-height:none; object-fit:contain;
    border-radius:0; clip-path:none; mask:none; filter:none; transform:none;
 }
}
@media (min-width:769px) and (max-width:1100px) {
 .header .menu-item > li > a.desktop-menu-item, .header .language-switcher > button { font-size:14px; }
}
/* Separate ministry entry, so a new destination does not shift the logo. */
.ministry-entry {
 display:flex; align-items:center; justify-content:space-between; gap:24px;
 width:min(1080px,calc(100% - 48px)); margin:36px auto 0; padding:24px 28px;
 background:#f1edf8; border-left:3px solid var(--vic-violet); color:var(--vic-ink);
}
.ministry-entry p { margin:0; }
.ministry-entry__label { font-size:10px; font-weight:650; letter-spacing:.12em; text-transform:uppercase; color:var(--vic-purple); }
.ministry-entry__title { display:inline-block; margin:6px 0; font-size:23px; font-weight:650; letter-spacing:-.025em; color:var(--vic-ink); text-decoration:none; }
.ministry-entry__description { font-size:14px; color:var(--vic-muted); line-height:1.6; }
.ministry-entry__link { display:inline-flex; align-items:center; gap:24px; color:var(--vic-purple); text-decoration:none; font-size:14px; font-weight:600; white-space:nowrap; }
.ministry-entry__link span { transition:translate .25s ease; }
.ministry-entry__link:hover span { translate:4px 0; }
.ministry-entry__title:hover, .ministry-entry__link:hover { color:var(--vic-violet); text-decoration:underline; text-underline-offset:5px; }
@media (max-width:600px) {
 .ministry-entry { width:calc(100% - 40px); padding:22px; flex-direction:column; align-items:flex-start; gap:18px; margin-top:28px; }
}
@media (prefers-reduced-motion:reduce) { .ministry-entry__link span { transition:none; } .ministry-entry__link:hover span { translate:none; } }

/* Mobile navigation: selected section is a filled row, never an underline. */
#menu li a::after { display:none; }
#menu li a { text-decoration:none; transition:background-color .2s ease, color .2s ease; }
#menu li a:hover { background:var(--vic-soft); color:var(--vic-purple); text-decoration:none; }
#menu li a[aria-current="page"] {
    background:var(--vic-violet); color:#fff; font-weight:600;
    border-radius:8px; margin:4px 12px; padding-left:16px; padding-right:16px;
    text-decoration:none;
}
#menu li a[aria-current="page"]:hover { background:var(--vic-purple); color:#fff; }
