.yvif-footer,
.yvif-footer * {
    box-sizing: border-box;
}

.yvif-footer {
    direction: rtl;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--yvif-text);
    background: var(--yvif-bg);
    font: inherit;
    overflow: clip;
}

/* English/Turkish pages: the template sets dir="ltr" on this element for
   every non-fa language — without this rule, the hardcoded RTL above still
   won, which visually misplaced trailing punctuation in EN/TR text (e.g. a
   sentence-ending period rendering before the last word instead of after
   it). The [dir="ltr"] attribute selector outranks the plain class rule
   above regardless of source order. */
.yvif-footer[dir="ltr"] {
    direction: ltr;
}

html[data-theme="dark"] .yvif-footer {
    background: var(--yvif-bg-dark);
}

.yvif-footer a {
    color: inherit;
    text-decoration: none;
}

.yvif-footer__shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    padding: 56px 0 24px;
}

.yvif-footer__main {
    display: grid;
    grid-template-columns: minmax(240px, 1.05fr) minmax(0, 1.95fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: start;
}

.yvif-footer__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.yvif-footer__logo {
    display: block;
    width: min(var(--yvif-logo-width), 100%);
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: right center;
}

.yvif-footer__brand-mark {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #fff;
    background: var(--yvif-accent);
    font-weight: 800;
}

.yvif-footer__brand-name {
    font-size: 1.1rem;
    font-weight: 800;
}

.yvif-footer__brand p {
    max-width: 430px;
    margin: 18px 0 0;
    color: var(--yvif-muted);
    font-size: .94rem;
    line-height: 2;
}

.yvif-footer__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 28px;
    min-width: 0;
}

.yvif-footer__column {
    min-width: 0;
}

.yvif-footer__column h2 {
    margin: 0 0 16px;
    color: var(--yvif-text);
    font-size: 1rem;
    line-height: 1.5;
}

.yvif-footer__column ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yvif-footer__column li {
    margin: 0;
    padding: 0;
}

.yvif-footer__column a {
    display: inline-flex;
    max-width: 100%;
    color: var(--yvif-muted);
    font-size: .92rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
    transition: color .18s ease, transform .18s ease;
}

.yvif-footer__column a:hover,
.yvif-footer__column a:focus-visible {
    color: var(--yvif-text);
    transform: translateX(-2px);
}

.yvif-footer__newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: center;
    margin-top: 42px;
    padding: 26px;
    border: 1px solid color-mix(in srgb, var(--yvif-border), transparent 18%);
    border-radius: 22px;
    background: color-mix(in srgb, var(--yvif-surface), transparent 8%);
}

.yvif-footer__newsletter-copy > span {
    display: block;
    margin-bottom: 7px;
    color: var(--yvif-accent);
    font-size: .78rem;
    font-weight: 700;
}

.yvif-footer__newsletter h2 {
    margin: 0;
    color: var(--yvif-text);
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    line-height: 1.55;
}

.yvif-footer__newsletter p {
    margin: 8px 0 0;
    color: var(--yvif-muted);
    font-size: .9rem;
    line-height: 1.8;
}

.yvif-footer__newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    min-width: 0;
}

.yvif-footer__newsletter-form input[type="email"] {
    min-width: 0;
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--yvif-border);
    border-radius: 12px;
    color: #102238;
    background: #fff;
    font: inherit;
}

.yvif-footer__newsletter-form button {
    min-width: 96px;
    height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--yvif-accent);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.yvif-footer__newsletter-form .cf-turnstile,
.yvif-footer__newsletter-form [class*="turnstile"] {
    grid-column: 1 / -1;
}

.yvif-footer__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.yvif-footer__apps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.yvif-footer__app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--yvif-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--yvif-surface) 60%, transparent);
    color: var(--yvif-text);
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.yvif-footer__app-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.yvif-footer__app-link:hover,
.yvif-footer__app-link:focus-visible {
    border-color: var(--yvif-accent);
    background: color-mix(in srgb, var(--yvif-accent) 14%, var(--yvif-surface));
}

.yvif-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--yvif-border);
    color: var(--yvif-muted);
    font-size: .84rem;
}

.yvif-footer__bottom p {
    margin: 0;
}

.yvif-footer__bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.yvif-footer__bottom a:hover,
.yvif-footer__bottom a:focus-visible {
    color: var(--yvif-text);
}

@media (max-width: 820px) {
    .yvif-footer__shell {
        width: min(100% - 28px, 680px);
        padding-top: 42px;
    }

    .yvif-footer__main,
    .yvif-footer__newsletter {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .yvif-footer__columns {
        grid-template-columns: 1fr;
    }

    .yvif-footer__column {
        padding-bottom: 18px;
        border-bottom: 1px solid var(--yvif-border);
    }

    .yvif-footer__newsletter {
        padding: 20px;
        border-radius: 18px;
    }

    .yvif-footer__newsletter-form {
        grid-template-columns: 1fr;
    }

    .yvif-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
