/* ==========================================================================
   Youth for Jesus International — public site refresh
   Loaded after the legacy theme; keeps the original brown / red palette.
   ========================================================================== */

:root {
    --yf-primary: #3b1500;
    --yf-primary-700: #2a0f00;
    --yf-primary-500: #5c2506;
    --yf-accent: #d34444;
    --yf-accent-600: #b93535;
    --yf-gold: #fa7712;
    --yf-cream: #fbf5ef;
    --yf-sand: #f3e7dc;
    --yf-ink: #23160f;
    --yf-muted: #6f625a;
    --yf-line: #eadfd5;
    --yf-white: #ffffff;
    --yf-radius: 14px;
    --yf-radius-lg: 22px;
    --yf-shadow: 0 10px 30px rgba(59, 21, 0, .08);
    --yf-shadow-lg: 0 24px 60px rgba(59, 21, 0, .16);
    --yf-font-head: 'Playfair Display', Georgia, serif;
    --yf-font-body: 'Poppins', 'Roboto', system-ui, sans-serif;
    --yf-header-h: 84px;
}

/* ---------- Base ---------- */
body {
    font-family: var(--yf-font-body);
    color: var(--yf-ink);
    background: var(--yf-white);
    font-size: 15px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--yf-font-head);
    color: var(--yf-ink);
    letter-spacing: -.01em;
}

a { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
img { max-width: 100%; }

.yf-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.yf-section { padding: 96px 0; position: relative; }
.yf-section--cream { background: var(--yf-cream); }
.yf-section--tight { padding: 64px 0; }

.yf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--yf-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--yf-accent);
    margin-bottom: 14px;
}
.yf-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.yf-heading {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 18px;
}
.yf-heading em { font-style: italic; color: var(--yf-accent); }

.yf-lead { color: var(--yf-muted); font-size: 16px; margin: 0; }

.yf-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 48px;
}
.yf-section-head--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.yf-section-head--center .yf-eyebrow::after {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

/* ---------- Buttons ---------- */
.yf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--yf-font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.yf-btn:hover { transform: translateY(-2px); text-decoration: none; }
.yf-btn i { font-size: 13px; transition: transform .2s ease; }
.yf-btn:hover i { transform: translateX(3px); }

.yf-btn--primary { background: var(--yf-accent); color: #fff; box-shadow: 0 10px 24px rgba(211, 68, 68, .35); }
.yf-btn--primary:hover { background: var(--yf-accent-600); color: #fff; }
.yf-btn--dark { background: var(--yf-primary); color: #fff; }
.yf-btn--dark:hover { background: var(--yf-primary-500); color: #fff; }
.yf-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.yf-btn--ghost:hover { background: #fff; color: var(--yf-primary); border-color: #fff; }
.yf-btn--outline { border-color: var(--yf-primary); color: var(--yf-primary); }
.yf-btn--outline:hover { background: var(--yf-primary); color: #fff; }
.yf-btn--sm { padding: 10px 20px; font-size: 12px; }

.yf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--yf-accent);
}
.yf-link:hover { color: var(--yf-primary); text-decoration: none; }
.yf-link i { transition: transform .2s ease; }
.yf-link:hover i { transform: translateX(4px); }

/* Legacy theme buttons, refreshed */
.theme-btn.btn-style-one,
.theme-btn.btn-style-two,
.theme-btn.btn-style-three {
    border-radius: 999px !important;
    background: var(--yf-accent) !important;
    border: 0 !important;
    color: #fff !important;
    padding: 12px 28px !important;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: 0 10px 24px rgba(211, 68, 68, .25);
    transition: transform .2s ease, background-color .2s ease;
}
.theme-btn.btn-style-one:hover,
.theme-btn.btn-style-two:hover,
.theme-btn.btn-style-three:hover {
    background: var(--yf-primary) !important;
    transform: translateY(-2px);
}
.theme-btn.btn-style-one:before, .theme-btn.btn-style-one:after,
.theme-btn.btn-style-two:before, .theme-btn.btn-style-two:after,
.theme-btn.btn-style-three:before, .theme-btn.btn-style-three:after { display: none !important; }

/* ---------- Top bar ---------- */
.yf-topbar {
    background: var(--yf-primary-700);
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}
.yf-topbar .yf-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 42px;
}
.yf-topbar a { color: rgba(255, 255, 255, .78); }
.yf-topbar a:hover { color: #fff; text-decoration: none; }
.yf-social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.yf-social a {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    background: rgba(255, 255, 255, .08);
}
.yf-social a:hover { background: var(--yf-accent); color: #fff; }

/* ---------- Word of the day ---------- */
.yf-verse {
    background: linear-gradient(90deg, var(--yf-primary) 0%, var(--yf-primary-500) 100%);
    color: #fff;
    overflow: hidden;
}
.yf-verse .yf-container { display: flex; align-items: center; gap: 16px; min-height: 44px; }
.yf-verse__label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: var(--yf-gold);
    color: var(--yf-primary-700);
    padding: 5px 12px;
    border-radius: 999px;
}
.yf-verse__track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.yf-verse__text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    font-family: var(--yf-font-head);
    font-style: italic;
    font-size: 15px;
    animation: yf-marquee 28s linear infinite;
}
.yf-verse__text strong { font-style: normal; font-family: var(--yf-font-body); font-weight: 600; color: var(--yf-gold); margin-left: 10px; }
.yf-verse:hover .yf-verse__text { animation-play-state: paused; }

@keyframes yf-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ---------- Header / Navigation ---------- */
.yf-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--yf-line);
    transition: box-shadow .25s ease;
}
.yf-header.is-scrolled { box-shadow: 0 8px 30px rgba(59, 21, 0, .1); }
.yf-header .yf-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--yf-header-h);
    transition: height .25s ease;
}
.yf-header.is-scrolled .yf-container { height: 70px; }

.yf-logo { display: flex; align-items: center; flex-shrink: 0; }
.yf-logo img { max-height: 60px; width: auto; transition: max-height .25s ease; }
.yf-header.is-scrolled .yf-logo img { max-height: 50px; }

.yf-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.yf-nav a {
    position: relative;
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--yf-ink);
    border-radius: 8px;
}
.yf-nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--yf-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.yf-nav a:hover { color: var(--yf-accent); text-decoration: none; }
.yf-nav a:hover::after,
.yf-nav > li.is-active > a::after { transform: scaleX(1); }
.yf-nav > li.is-active > a,
.yf-nav__menu li.is-active a { color: var(--yf-accent); font-weight: 600; }

.yf-nav__drop { position: relative; }
.yf-nav__drop > a i { font-size: 10px; margin-left: 4px; }
.yf-nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--yf-line);
    border-radius: var(--yf-radius);
    box-shadow: var(--yf-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.yf-nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.yf-nav__drop:hover .yf-nav__menu,
.yf-nav__drop:focus-within .yf-nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.yf-nav__menu a { padding: 10px 14px; }
.yf-nav__menu a::after { display: none; }
.yf-nav__menu a:hover,
.yf-nav__menu li.is-active a { background: var(--yf-cream); }

.yf-header__actions { display: flex; align-items: center; gap: 12px; }

.yf-burger {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--yf-line);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.yf-burger span { width: 20px; height: 2px; background: var(--yf-primary); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }

/* Mobile drawer */
.yf-drawer {
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    pointer-events: none;
}
.yf-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(42, 15, 0, .55);
    opacity: 0;
    transition: opacity .3s ease;
}
.yf-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    background: #fff;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.yf-drawer.is-open { visibility: visible; pointer-events: auto; }
.yf-drawer.is-open .yf-drawer__backdrop { opacity: 1; }
.yf-drawer.is-open .yf-drawer__panel { transform: translateX(0); }
.yf-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.yf-drawer__head img { max-height: 48px; }
.yf-drawer__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: var(--yf-cream);
    color: var(--yf-primary);
    font-size: 16px;
    cursor: pointer;
}
.yf-drawer__nav { list-style: none; margin: 0; padding: 0; }
.yf-drawer__nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--yf-line);
    color: var(--yf-ink);
    font-weight: 500;
}
.yf-drawer__nav a::after { content: "\f105"; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 12px; color: var(--yf-muted); }
.yf-drawer__nav li.is-active a,
.yf-drawer__nav a:hover { color: var(--yf-accent); text-decoration: none; }
body.yf-no-scroll { overflow: hidden; }

/* ---------- Hero slider ---------- */
.yf-hero {
    position: relative;
    height: clamp(520px, 86vh, 820px);
    overflow: hidden;
    background: var(--yf-primary-700);
    color: #fff;
}
.yf-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s ease, visibility 1.1s ease;
}
.yf-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.yf-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
    transition: transform 7.5s ease-out;
}
.yf-hero__slide.is-active .yf-hero__bg { transform: scale(1); }
.yf-hero__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(42, 15, 0, .92) 0%, rgba(59, 21, 0, .7) 38%, rgba(59, 21, 0, .15) 75%, rgba(59, 21, 0, 0) 100%),
        linear-gradient(0deg, rgba(42, 15, 0, .55) 0%, rgba(42, 15, 0, 0) 40%);
}
.yf-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
    padding-bottom: 40px;
}
.yf-hero__content > * {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}
.yf-hero__slide.is-active .yf-hero__content > * { opacity: 1; transform: none; }
.yf-hero__slide.is-active .yf-hero__content > *:nth-child(1) { transition-delay: .35s; }
.yf-hero__slide.is-active .yf-hero__content > *:nth-child(2) { transition-delay: .5s; }
.yf-hero__slide.is-active .yf-hero__content > *:nth-child(3) { transition-delay: .65s; }
.yf-hero__slide.is-active .yf-hero__content > *:nth-child(4) { transition-delay: .8s; }

.yf-hero .yf-eyebrow { color: var(--yf-gold); }
.yf-hero__title {
    color: #fff;
    font-size: clamp(34px, 5.6vw, 68px);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .25);
}
.yf-hero__text { font-size: clamp(15px, 1.5vw, 18px); color: rgba(255, 255, 255, .86); margin: 0 0 34px; max-width: 560px; }
.yf-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.yf-hero__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 36px;
    z-index: 3;
}
.yf-hero__controls .yf-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.yf-hero__dots { display: flex; align-items: center; gap: 10px; }
.yf-hero__dot {
    position: relative;
    width: 44px;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, .3);
    overflow: hidden;
    cursor: pointer;
}
.yf-hero__dot span {
    position: absolute;
    inset: 0;
    background: var(--yf-gold);
    transform: scaleX(0);
    transform-origin: left;
}
.yf-hero__dot.is-done span { transform: scaleX(1); }
.yf-hero__dot.is-active span { animation: yf-progress var(--yf-hero-delay, 6500ms) linear forwards; }
.yf-hero.is-paused .yf-hero__dot.is-active span { animation-play-state: paused; }
@keyframes yf-progress { to { transform: scaleX(1); } }

.yf-hero__nav { display: flex; align-items: center; gap: 14px; }
.yf-hero__count { font-family: var(--yf-font-head); font-size: 15px; color: rgba(255, 255, 255, .7); min-width: 64px; text-align: center; }
.yf-hero__count b { color: #fff; font-size: 22px; }
.yf-hero__arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.yf-hero__arrow:hover { background: var(--yf-accent); border-color: var(--yf-accent); transform: scale(1.06); }
.yf-hero__scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 14px;
}
.yf-hero__scroll::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: yf-scroll 1.8s ease-in-out infinite;
}
@keyframes yf-scroll {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Activity ticker ---------- */
.yf-updates { background: var(--yf-primary); color: #fff; padding: 22px 0 16px; }
.yf-updates:focus { outline: none; }
.yf-updates__viewport { overflow: hidden; margin: 0 -10px; }
.yf-updates__track { display: flex; transition: transform .5s ease; will-change: transform; }
.yf-updates__slide { flex: 0 0 50%; padding: 0 10px; }
.yf-updates__item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 16px 16px 22px;
    border-radius: var(--yf-radius);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
}
.yf-updates__text { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.5; color: #fff; display: flex; align-items: baseline; gap: 12px; }
.yf-updates__text i { flex-shrink: 0; font-size: 7px; color: var(--yf-gold); position: relative; top: -2px; animation: yf-pulse 1.6s ease-in-out infinite; }
@keyframes yf-pulse { 50% { opacity: .35; } }
.yf-updates__btn { flex-shrink: 0; box-shadow: none; }
.yf-updates__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.yf-updates__dots:empty { display: none; }
.yf-updates__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
}
.yf-updates__dot:hover { background: rgba(255, 255, 255, .7); }
.yf-updates__dot.is-active { width: 24px; background: var(--yf-gold); }

/* ---------- Welcome / about ---------- */
.yf-welcome { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.yf-welcome__media { position: relative; padding: 24px; }
.yf-welcome__img {
    position: relative;
    border-radius: var(--yf-radius-lg);
    overflow: hidden;
    box-shadow: var(--yf-shadow-lg);
    aspect-ratio: 4 / 4.2;
    background: var(--yf-sand);
}
.yf-welcome__img img { width: 100%; height: 100%; object-fit: cover; }
.yf-welcome__text { color: var(--yf-muted); font-size: 16px; margin-bottom: 30px; }


/* ---------- Quick links ---------- */
.yf-quick { position: relative; z-index: 4; margin-top: -1px; }
.yf-quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.yf-quick__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 26px;
    border-radius: var(--yf-radius-lg);
    background: #fff;
    border: 1px solid var(--yf-line);
    color: var(--yf-ink);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.yf-quick__card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yf-accent), var(--yf-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.yf-quick__card:hover { transform: translateY(-6px); box-shadow: var(--yf-shadow-lg); border-color: transparent; color: var(--yf-ink); text-decoration: none; }
.yf-quick__card:hover::after { transform: scaleX(1); }
.yf-quick__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: var(--yf-primary);
    margin-bottom: 8px;
    transition: background-color .3s ease, transform .3s ease;
}
.yf-quick__card:hover .yf-quick__icon { background: var(--yf-accent); transform: rotate(-6deg); }
.yf-quick__card h3 { font-size: 20px; margin: 0; }
.yf-quick__card p { margin: 0; font-size: 14px; color: var(--yf-muted); line-height: 1.6; }

/* ---------- Cards (news, events) ---------- */
.yf-grid { display: grid; gap: 28px; }
.yf-grid--3 { grid-template-columns: repeat(3, 1fr); }
.yf-grid--news { grid-template-columns: 1.25fr 1fr; }

.yf-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--yf-radius-lg);
    overflow: hidden;
    border: 1px solid var(--yf-line);
    transition: transform .3s ease, box-shadow .3s ease;
    height: 100%;
}
.yf-card:hover { transform: translateY(-6px); box-shadow: var(--yf-shadow-lg); }
.yf-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--yf-sand); }
.yf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.yf-card:hover .yf-card__media img { transform: scale(1.06); }
.yf-card__date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: center;
    line-height: 1;
    box-shadow: var(--yf-shadow);
}
.yf-card__date b { display: block; font-family: var(--yf-font-head); font-size: 22px; color: var(--yf-accent); }
.yf-card__date small { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--yf-muted); }
.yf-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 28px; flex: 1; }
.yf-card__meta { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--yf-accent); }
.yf-card__title { font-size: 21px; line-height: 1.3; margin: 0; }
.yf-card__title a { color: var(--yf-ink); }
.yf-card__title a:hover { color: var(--yf-accent); text-decoration: none; }
.yf-card__text { margin: 0; font-size: 14px; color: var(--yf-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yf-card__body .yf-link { margin-top: auto; padding-top: 6px; }

.yf-card--feature .yf-card__media { aspect-ratio: auto; flex: 1; min-height: 340px; }
.yf-card--feature .yf-card__title { font-size: 26px; }

.yf-news-list { display: flex; flex-direction: column; gap: 20px; }
.yf-news-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border-radius: var(--yf-radius);
    border: 1px solid var(--yf-line);
    transition: box-shadow .3s ease, transform .3s ease;
}
.yf-news-item:hover { box-shadow: var(--yf-shadow); transform: translateX(4px); }
.yf-news-item__img { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--yf-sand); }
.yf-news-item__img img { width: 100%; height: 100%; object-fit: cover; }
.yf-news-item h4 { font-size: 17px; line-height: 1.35; margin: 6px 0 0; }
.yf-news-item h4 a { color: var(--yf-ink); }
.yf-news-item h4 a:hover { color: var(--yf-accent); text-decoration: none; }

/* ---------- Prayer CTA ---------- */
.yf-cta {
    position: relative;
    padding: 110px 0;
    color: #fff;
    background-color: var(--yf-primary);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}
.yf-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(42, 15, 0, .95) 0%, rgba(59, 21, 0, .85) 50%, rgba(211, 68, 68, .75) 100%);
}
.yf-cta .yf-container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.yf-cta__icon { font-size: 54px; color: var(--yf-gold); margin-bottom: 18px; display: block; }
.yf-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 12px; max-width: 640px; }
.yf-cta p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 580px; font-size: 16px; }
.yf-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Gallery ---------- */
.yf-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 230px;
    grid-auto-flow: dense;
    gap: 16px;
}
.yf-gallery__item {
    position: relative;
    display: block;
    border-radius: var(--yf-radius);
    overflow: hidden;
    background: var(--yf-sand);
}
.yf-gallery__item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.yf-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.yf-gallery__item::after {
    content: "\f00e";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: rgba(59, 21, 0, .55);
    opacity: 0;
    transition: opacity .3s ease;
}
.yf-gallery__item:hover img { transform: scale(1.08); }
.yf-gallery__item:hover::after { opacity: 1; }

/* ---------- Footer ---------- */
.yf-footer {
    position: relative;
    background: var(--yf-primary-700);
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    overflow: hidden;
}
.yf-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--yf-footer-pattern);
    background-size: cover;
    background-position: center;
    opacity: .06;
    pointer-events: none;
}
.yf-footer__top { position: relative; padding: 80px 0 50px; }
.yf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; gap: 48px; }
.yf-footer h5 {
    color: #fff;
    font-size: 19px;
    margin: 0 0 24px;
    padding-bottom: 14px;
    position: relative;
}
.yf-footer h5::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--yf-accent); border-radius: 2px; }
.yf-footer a { color: rgba(255, 255, 255, .72); }
.yf-footer a:hover { color: #fff; text-decoration: none; }
.yf-footer__logo img { max-height: 70px; margin-bottom: 20px; background: #fff; padding: 8px 12px; border-radius: 12px; }
.yf-footer__about { margin: 0 0 22px; line-height: 1.8; }
.yf-footer .yf-social a { width: 38px; height: 38px; font-size: 14px; }
.yf-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.yf-footer__links a { display: inline-flex; align-items: center; gap: 10px; }
.yf-footer__links a::before { content: "\f105"; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 11px; color: var(--yf-accent); transition: transform .2s ease; }
.yf-footer__links a:hover::before { transform: translateX(3px); }
.yf-footer__post { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.yf-footer__post img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.yf-footer__post a { color: #fff; font-weight: 500; line-height: 1.4; display: block; }
.yf-footer__post a:hover { color: var(--yf-gold); }
.yf-footer__post small { color: rgba(255, 255, 255, .5); font-size: 12px; }
.yf-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.yf-footer__contact li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.yf-footer__contact i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: var(--yf-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.yf-footer__contact span { padding-top: 8px; word-break: break-word; }
.yf-footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 13px; }
.yf-footer__bottom .yf-container { display: flex; align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }

.yf-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--yf-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(211, 68, 68, .4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background-color .2s ease;
}
.yf-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.yf-to-top:hover { background: var(--yf-primary); }

/* ---------- Reveal on scroll ---------- */
.yf-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.yf-reveal.is-visible { opacity: 1; transform: none; }
.yf-reveal[data-delay="1"] { transition-delay: .1s; }
.yf-reveal[data-delay="2"] { transition-delay: .2s; }
.yf-reveal[data-delay="3"] { transition-delay: .3s; }

/* ==========================================================================
   Inner pages — refresh of legacy components
   ========================================================================== */
.page-title {
    position: relative;
    padding: 130px 0 110px !important;
    background-size: cover !important;
    background-position: center !important;
    text-align: center;
}
.page-title::before {
    content: "" !important;
    position: absolute;
    inset: 0;
    display: block !important;
    opacity: 1 !important;
    background: linear-gradient(120deg, rgba(42, 15, 0, .94) 0%, rgba(59, 21, 0, .82) 55%, rgba(211, 68, 68, .7) 100%) !important;
}
.page-title .auto-container { position: relative; z-index: 1; }
.page-title .row { flex-direction: column; align-items: center; }
.page-title .title-column,
.page-title .breadcrumb-column { flex: 0 0 100%; max-width: 100%; text-align: center; }
.page-title h1 {
    color: #fff !important;
    font-family: var(--yf-font-head);
    font-size: clamp(32px, 5vw, 54px) !important;
    font-weight: 700;
    margin-bottom: 18px;
}
.page-title .bread-crumb {
    display: inline-flex !important;
    float: none !important;
    gap: 6px;
    padding: 8px 20px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
}
.page-title .bread-crumb li { color: var(--yf-gold) !important; font-size: 14px; padding-right: 0 !important; margin-right: 0 !important; }
.page-title .bread-crumb li:after { display: none !important; }
.page-title .bread-crumb li a { color: #fff !important; }
.page-title .bread-crumb li .icon,
.page-title .bread-crumb li.text-primary,
.page-title .bread-crumb li .text-primary { color: var(--yf-gold) !important; }

.sec-title h2 { font-family: var(--yf-font-head); }
.sec-title h2 .theme_color { color: var(--yf-accent); }

.sidebar-page-container,
.services-section-two,
.contact-page-section,
.gallery-page-section,
.event-detail-section,
.blog-single { padding-top: 80px; padding-bottom: 80px; }

/* Event / news list blocks */
.event-block-three .inner-box,
.news-block .inner-box,
.news-block-two .inner-box,
.causes-block .inner-box,
.sidebar .sidebar-widget,
.blog-single .inner-box {
    border-radius: var(--yf-radius-lg);
    overflow: hidden;
}
.event-block-three .inner-box {
    background: #fff;
    border: 1px solid var(--yf-line);
    box-shadow: var(--yf-shadow);
    padding: 24px;
    margin-bottom: 36px;
    transition: box-shadow .3s ease, transform .3s ease;
}
.event-block-three .inner-box:hover { box-shadow: var(--yf-shadow-lg); transform: translateY(-4px); }
.event-block-three .image,
.news-block .image,
.causes-block .image { border-radius: var(--yf-radius); overflow: hidden; }
.event-block-three .image img,
.news-block .image img,
.causes-block .image img { transition: transform .6s ease; }
.event-block-three .inner-box:hover .image img,
.news-block .inner-box:hover .image img,
.causes-block .inner-box:hover .image img { transform: scale(1.05); }
.event-block-three h3 a,
.news-block h3 a,
.causes-block h3 a { font-family: var(--yf-font-head); color: var(--yf-ink); }

.gallery-block .inner-box .image { border-radius: var(--yf-radius); overflow: hidden; }

/* Forms */
.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea,
.default-form .form-group input,
.default-form .form-group select,
.default-form .form-group textarea {
    border-radius: 12px !important;
    border: 1px solid var(--yf-line) !important;
    background: var(--yf-cream) !important;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus,
.default-form .form-group input:focus,
.default-form .form-group select:focus,
.default-form .form-group textarea:focus {
    border-color: var(--yf-accent) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(211, 68, 68, .12);
}

/* Pagination */
.pagination { gap: 8px; flex-wrap: wrap; }
.pagination .page-item .page-link {
    border-radius: 10px !important;
    border: 1px solid var(--yf-line);
    color: var(--yf-primary);
    min-width: 42px;
    text-align: center;
}
.pagination .page-item.active .page-link { background: var(--yf-accent); border-color: var(--yf-accent); color: #fff; }
.pagination .page-item .page-link:hover { background: var(--yf-cream); color: var(--yf-accent); }

/* ---------- About page ---------- */
.yf-prose { color: var(--yf-muted); font-size: 16px; margin-bottom: 30px; }
.yf-prose p { margin: 0 0 14px; }
.yf-prose p:last-child { margin-bottom: 0; }
.yf-prose img { border-radius: var(--yf-radius); height: auto; }

.yf-purpose { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.yf-purpose__card {
    position: relative;
    overflow: hidden;
    padding: 44px 40px;
    background: #fff;
    border: 1px solid var(--yf-line);
    border-radius: var(--yf-radius-lg);
    box-shadow: var(--yf-shadow);
}
.yf-purpose__card::after {
    content: "\f10e";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 28px;
    bottom: 10px;
    font-size: 96px;
    line-height: 1;
    color: var(--yf-sand);
    opacity: .7;
}
.yf-purpose__card--dark { background: var(--yf-primary); border-color: var(--yf-primary); color: #fff; }
.yf-purpose__card--dark::after { color: rgba(255, 255, 255, .06); opacity: 1; }
.yf-purpose__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(211, 68, 68, .1);
    color: var(--yf-accent);
    font-size: 24px;
    margin-bottom: 22px;
}
.yf-purpose__card--dark .yf-purpose__icon { background: rgba(255, 255, 255, .1); color: var(--yf-gold); }
.yf-purpose__label {
    display: block;
    font-family: var(--yf-font-body);
    line-height: 1.4;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--yf-accent);
    margin-bottom: 10px;
}
.yf-purpose__card--dark .yf-purpose__label { color: var(--yf-gold); }
.yf-purpose__card blockquote {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--yf-font-head);
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.3;
    color: inherit;
}

.yf-core { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.yf-core__hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 48px 44px;
    border-radius: var(--yf-radius-lg);
    background: linear-gradient(140deg, var(--yf-primary) 0%, var(--yf-primary-500) 100%);
    color: #fff;
    box-shadow: var(--yf-shadow-lg);
}
.yf-core__hero::after {
    content: "\f654";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: -10px;
    bottom: -30px;
    font-size: 200px;
    line-height: 1;
    color: rgba(255, 255, 255, .05);
}
.yf-core__hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    color: var(--yf-gold);
    font-size: 26px;
}
.yf-core__hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: var(--yf-font-head);
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.2;
    font-weight: 700;
}
.yf-core__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.yf-core__item {
    position: relative;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--yf-line);
    border-radius: var(--yf-radius-lg);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.yf-core__item::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 22px;
    bottom: 22px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--yf-accent);
    transform: scaleY(0);
    transition: transform .3s ease;
}
.yf-core__item:hover { transform: translateX(6px); box-shadow: var(--yf-shadow); border-color: transparent; }
.yf-core__item:hover::before { transform: scaleY(1); }
.yf-core__num { font-family: var(--yf-font-head); font-size: 28px; font-weight: 700; color: var(--yf-sand); line-height: 1; min-width: 36px; }
.yf-core__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yf-cream);
    color: var(--yf-accent);
    font-size: 20px;
    transition: background-color .3s ease, color .3s ease;
}
.yf-core__item:hover .yf-core__icon { background: var(--yf-accent); color: #fff; }
.yf-core__item:hover .yf-core__num { color: var(--yf-accent); }
.yf-core__item p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--yf-ink); }
.yf-intro { max-width: 860px; margin: 0 auto; text-align: center; }

.yf-video {
    position: relative;
    display: block;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--yf-radius-lg);
    overflow: hidden;
    background: var(--yf-primary);
    box-shadow: var(--yf-shadow-lg);
}
.yf-video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .6s ease, opacity .3s ease; }
.yf-video:hover img { transform: scale(1.04); opacity: .6; }
.yf-video__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 88px;
    height: 88px;
    margin: -44px 0 0 -44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yf-accent);
    color: #fff;
    font-size: 26px;
    padding-left: 5px;
    animation: yf-pulse 2s ease-out infinite;
}
@keyframes yf-pulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 68, 68, .55); }
    100% { box-shadow: 0 0 0 28px rgba(211, 68, 68, 0); }
}

/* ---------- Quiz list ---------- */
.yf-quiz-verse { position: relative; z-index: 1; max-width: 820px; margin: 30px auto 0; text-align: center; color: #fff; }
.yf-quiz-verse .quote-p { font-family: var(--yf-font-head); font-style: italic; font-size: 19px; line-height: 1.6; margin: 0 0 10px; color: rgba(255, 255, 255, .92); }
.yf-quiz-verse .quote-style { color: var(--yf-gold); font-size: 13px; }
.yf-quiz-verse .bible-chapter { font-family: var(--yf-font-body); font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--yf-gold); }

.yf-quiz-section { min-height: 50vh; }
.yf-quiz-list { display: grid; gap: 16px; max-width: 980px; margin: 0 auto; }
.yf-quiz {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--yf-line);
    border-radius: var(--yf-radius-lg);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.yf-quiz::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--yf-accent);
}
.yf-quiz.is-done::before { background: #2e9d5b; }
.yf-quiz.is-closed::before { background: var(--yf-line); }
.yf-quiz.is-open:hover { transform: translateY(-3px); box-shadow: var(--yf-shadow-lg); border-color: transparent; }
.yf-quiz__num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yf-cream);
    color: var(--yf-primary);
    font-family: var(--yf-font-head);
    font-size: 20px;
    font-weight: 700;
}
.yf-quiz.is-open .yf-quiz__num { background: var(--yf-primary); color: #fff; }
.yf-quiz__body { min-width: 0; }
.yf-quiz__title { margin: 0 0 8px; font-family: var(--yf-font-body); font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--yf-ink); word-break: break-word; }
.yf-quiz__title a { color: inherit; }
.yf-quiz__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is clickable */
.yf-quiz__title a:hover { color: var(--yf-accent); text-decoration: none; }
.yf-quiz.is-closed .yf-quiz__title { color: var(--yf-muted); }
.yf-quiz__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.yf-quiz__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--yf-cream);
    color: var(--yf-muted);
    font-size: 12px;
    font-weight: 600;
}
.yf-quiz__chip--deadline i { color: var(--yf-accent); }
.yf-quiz__chip--success { background: rgba(46, 157, 91, .12); color: #2e9d5b; }
.yf-quiz__action { position: relative; z-index: 1; }
.yf-quiz__go {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yf-accent);
    color: #fff;
    transition: transform .3s ease;
}
.yf-quiz.is-open:hover .yf-quiz__go { transform: translateX(4px); }
.yf-quiz-previous { margin-top: 64px; }
.yf-quiz-previous:first-child { margin-top: 0; }
.yf-quiz-previous__title { max-width: 980px; margin: 0 auto 24px; font-size: clamp(22px, 2.6vw, 30px); }

/* Back link at the top of quiz pages */
.yf-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding: 10px 20px 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--yf-line);
    color: var(--yf-primary);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--yf-shadow);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.yf-back i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--yf-cream);
    color: var(--yf-accent);
    font-size: 12px;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.yf-back:hover { background: var(--yf-primary); border-color: var(--yf-primary); color: #fff; text-decoration: none; }
.yf-back:hover i { background: rgba(255, 255, 255, .15); color: #fff; transform: translateX(-3px); }

/* ---------- Contact map ---------- */
.map-section { padding: 70px 0 0; }
.map-section .map-outer { border-radius: var(--yf-radius-lg); overflow: hidden; box-shadow: var(--yf-shadow); }
.map-section .map-outer iframe { height: 420px; margin-bottom: 0; }

/* ---------- Loading overlay ---------- */
.yf-loading {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(42, 15, 0, .55);
    backdrop-filter: blur(3px);
}
.yf-loading[hidden] { display: none; }
.yf-loading__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 220px;
    padding: 30px 36px;
    border-radius: var(--yf-radius-lg);
    background: #fff;
    box-shadow: var(--yf-shadow-lg);
    text-align: center;
}
.yf-loading__spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid var(--yf-sand);
    border-top-color: var(--yf-accent);
    animation: yf-spin .8s linear infinite;
}
.yf-loading__text { font-weight: 600; color: var(--yf-primary); }
@keyframes yf-spin { to { transform: rotate(360deg); } }

/* ---------- Prayer wall ---------- */
.yf-prayer-wall { background: var(--yf-cream); }
.yf-prayer-wall .yf-lead { max-width: 640px; }
.yf-prayer-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 26px;
}
.yf-prayer-stat {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--yf-line);
    box-shadow: var(--yf-shadow);
    font-size: 14px;
    color: var(--yf-muted);
}
.yf-prayer-stat b { font-family: var(--yf-font-head); font-size: 22px; color: var(--yf-primary); line-height: 1; }
.yf-prayer-stat i { color: var(--yf-accent); }

.yf-prayer-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
}
.yf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yf-chip {
    border: 1px solid var(--yf-line);
    background: #fff;
    color: var(--yf-primary);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.yf-chip:hover { border-color: var(--yf-accent); color: var(--yf-accent); }
.yf-chip.is-active { background: var(--yf-primary); border-color: var(--yf-primary); color: #fff; }
.yf-chip small { opacity: .7; margin-left: 4px; }

.yf-prayer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.yf-prayer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 26px 22px;
    background: #fff;
    border: 1px solid var(--yf-line);
    border-radius: var(--yf-radius-lg);
    box-shadow: 0 4px 14px rgba(59, 21, 0, .04);
    transition: transform .3s ease, box-shadow .3s ease;
    animation: yf-fade-up .45s ease both;
}
.yf-prayer-card::before {
    content: "\f10d";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 24px;
    top: 20px;
    font-size: 30px;
    color: var(--yf-sand);
}
.yf-prayer-card:hover { transform: translateY(-4px); box-shadow: var(--yf-shadow-lg); }
.yf-prayer-card__tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(211, 68, 68, .1);
    color: var(--yf-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    max-width: calc(100% - 44px);
}
.yf-prayer-card__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    min-height: calc(1.75em * 6); /* always room for 6 lines */
    color: var(--yf-ink);
    white-space: pre-line;
    word-break: break-word;
}
.yf-prayer-card__text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yf-prayer-card__more {
    visibility: hidden; /* keeps its line reserved even when the text fits */
    align-self: flex-start;
    margin-top: -8px;
    line-height: 1.6;
    padding: 0;
    border: 0;
    background: none;
    color: var(--yf-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.yf-prayer-card__more.is-needed { visibility: visible; }
.yf-prayer-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px dashed var(--yf-line);
}
.yf-prayer-card__meta { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--yf-muted); }
.yf-prayer-card__meta strong { font-size: 14px; color: var(--yf-primary); }
.yf-pray-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid #0071bd;
    background: #0071bd;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.yf-pray-btn:hover { background: #005a96; border-color: #005a96; transform: translateY(-1px); }
.yf-pray-btn:disabled { cursor: default; transform: none; }
.yf-pray-btn.is-prayed { background: #fff; color: #0071bd; }
.yf-pray-inline { width: 24px; height: 24px; margin: 0 2px; vertical-align: -6px; }
.yf-pray-btn__icon { width: 26px; height: 26px; margin: -4px 0 -4px -8px; border-radius: 50%; background: #fff; }
.yf-pray-btn.is-pop i, .yf-pray-btn.is-pop .yf-pray-btn__icon { animation: yf-pop .5s ease; }
@keyframes yf-pop { 40% { transform: scale(1.5); } }
@keyframes yf-fade-up { from { opacity: 0; transform: translateY(14px); } }

.yf-prayer-card--skeleton { min-height: 230px; animation: none; }
.yf-prayer-card--skeleton::before { display: none; }
.yf-prayer-card--skeleton span {
    display: block;
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--yf-sand) 25%, var(--yf-cream) 50%, var(--yf-sand) 75%);
    background-size: 200% 100%;
    animation: yf-shimmer 1.2s linear infinite;
}
.yf-prayer-card--skeleton span:first-child { width: 40%; height: 24px; border-radius: 999px; }
.yf-prayer-card--skeleton span:last-child { width: 60%; }
@keyframes yf-shimmer { to { background-position: -200% 0; } }

.yf-prayer-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--yf-line);
    border-radius: var(--yf-radius-lg);
}
.yf-prayer-empty i { font-size: 40px; color: var(--yf-gold); margin-bottom: 16px; }
.yf-prayer-empty h3 { font-size: 26px; margin: 0 0 8px; }
.yf-prayer-empty p { color: var(--yf-muted); margin: 0 0 22px; }
.yf-prayer-loadmore { text-align: center; margin-top: 40px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
    .yf-nav a { padding: 10px 8px; font-size: 13px; }
    .yf-nav a::after { left: 8px; right: 8px; }
    .yf-header__actions .yf-btn { padding: 12px 18px; }
}

@media (max-width: 1080px) {
    .yf-nav, .yf-header__actions .yf-btn { display: none; }
    .yf-burger { display: inline-flex; }
    .yf-welcome { grid-template-columns: 1fr; gap: 56px; }
    .yf-welcome__media { max-width: 560px; }
    .yf-quick__grid { grid-template-columns: repeat(2, 1fr); }
    .yf-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .yf-grid--news { grid-template-columns: 1fr; }
    .yf-updates__slide { flex-basis: 100%; }
    .yf-prayer-grid { grid-template-columns: repeat(2, 1fr); }
    .yf-core { grid-template-columns: 1fr; }
    .yf-footer__grid { grid-template-columns: 1fr 1fr; }
    .yf-cta { background-attachment: scroll; }
}

@media (max-width: 767px) {
    :root { --yf-header-h: 72px; }
    .yf-section { padding: 68px 0; }
    .yf-topbar { display: none; }
    .yf-hero { height: clamp(480px, 82vh, 640px); }
    .yf-hero__slide::after { background: linear-gradient(0deg, rgba(42, 15, 0, .95) 0%, rgba(59, 21, 0, .65) 55%, rgba(59, 21, 0, .35) 100%); }
    .yf-hero__content { justify-content: flex-end; padding-bottom: 120px; }
    .yf-hero__actions .yf-btn { padding: 12px 22px; font-size: 13px; }
    .yf-hero__count, .yf-hero__scroll { display: none; }
    .yf-hero__arrow { width: 44px; height: 44px; }
    .yf-hero__dot { width: 28px; }
    .yf-updates__item { gap: 14px; padding: 14px 14px 14px 16px; }
    .yf-updates__text { font-size: 13px; }
    .yf-quick__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .yf-quick__card { padding: 22px 18px; }
    .yf-quick__card p { display: none; }
    .yf-grid--3 { grid-template-columns: 1fr; }
    .yf-prayer-grid { grid-template-columns: 1fr; }
    .yf-purpose { grid-template-columns: 1fr; }
    .yf-quiz { grid-template-columns: auto 1fr; gap: 16px; padding: 18px; }
    .yf-quiz__action { grid-column: 2; }
    .yf-quiz__action:not(:has(*)) { display: none; }
    .yf-quiz__go { display: none; }
    .yf-quiz__num { width: 40px; height: 40px; font-size: 17px; }
    .yf-quiz-verse .quote-p { font-size: 15px; }
    .yf-core__hero { padding: 36px 28px; }
    .yf-core__item { grid-template-columns: auto 1fr; gap: 16px; padding: 20px; }
    .yf-core__num { display: none; }
    .yf-purpose__card { padding: 34px 26px; }
    .yf-video__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; font-size: 20px; }
    .yf-prayer-toolbar { justify-content: center; }
    .yf-prayer-card { padding: 22px 20px 18px; }
    .yf-news-item { grid-template-columns: 110px 1fr; gap: 14px; }
    .yf-card--feature .yf-card__media { min-height: 240px; }
    .yf-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
    .yf-gallery__item:nth-child(6n + 1) { grid-column: span 2; grid-row: span 1; }
    .yf-footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .page-title { padding: 90px 0 70px !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .yf-reveal { opacity: 1; transform: none; }
}
