/* ==================================================
   AYAT MARKET INTERNAL LINKING
================================================== */

.ayat-home-markets,
.ayat-market-network {
    background: #f7f8f3;
    padding: 72px 20px;
    color: #202718;
}

.ayat-market-network {
    padding-top: 58px;
    padding-bottom: 58px;
}

.ayat-market-links-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.ayat-market-links-head {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.ayat-market-links-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #65751d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ayat-market-links-head h2 {
    margin: 0;
    color: #263015;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 650;
    letter-spacing: -.025em;
}

.ayat-market-links-head p {
    max-width: 710px;
    margin: 16px auto 0;
    color: #626858;
    font-size: 16px;
    line-height: 1.8;
}

.ayat-market-links-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ayat-market-network-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 23px;
    background: #fff;
    border: 1px solid #e5e8dd;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(34, 43, 17, .045);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.ayat-market-network-card:hover {
    transform: translateY(-3px);
    border-color: #cfd69f;
    box-shadow: 0 12px 32px rgba(34, 43, 17, .075);
}

.ayat-market-network-card.is-current {
    background: #fbfcf6;
    border-color: #a4b61f;
}

.ayat-market-network-top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
}

.ayat-market-network-flag {
    font-size: 23px;
    line-height: 1;
}

.ayat-market-network-country {
    color: #707761;
    font-size: 13px;
    font-weight: 650;
}

.ayat-market-network-card h3 {
    margin: 0 0 10px;
    color: #273016;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 650;
}

.ayat-market-network-card p {
    margin: 0 0 20px;
    color: #69705e;
    font-size: 14px;
    line-height: 1.7;
}

.ayat-market-network-link,
.ayat-market-network-current {
    margin-top: auto;
    font-size: 14px;
    font-weight: 700;
}

.ayat-market-network-link {
    width: fit-content;
    color: #687719;
    text-decoration: none;
}

.ayat-market-network-link:hover {
    color: #4f5e1b;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ayat-market-network-current {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eef2d7;
    color: #566419;
}


/* ==================================================
   FOOTER MARKET LINKS
================================================== */

.ayat-footer-markets {
    width: 100%;
    margin-top: 28px;
    padding: 21px 0 4px;
    border-top: 1px solid rgba(120, 130, 85, .22);
}

.ayat-footer-markets-inner {
    width: 100%;
}

.ayat-footer-markets-title {
    display: block;
    margin-bottom: 13px;
    font-size: 14px;
    font-weight: 700;
}

.ayat-footer-markets-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 17px;
}

.ayat-footer-markets-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    opacity: .82;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
}

.ayat-footer-markets-nav a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* ==================================================
   RTL
================================================== */

html[dir="rtl"] .ayat-market-links-head,
html[dir="rtl"] .ayat-market-network-card {
    direction: rtl;
}

html[dir="rtl"] .ayat-market-network-top,
html[dir="rtl"] .ayat-footer-markets-nav {
    direction: rtl;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 1050px) {

    .ayat-market-links-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {

    .ayat-home-markets,
    .ayat-market-network {
        padding: 50px 16px;
    }

    .ayat-market-links-head {
        text-align: start;
        margin-bottom: 24px;
    }

    .ayat-market-links-head h2 {
        font-size: 29px;
    }

    .ayat-market-links-head p {
        margin-inline: 0;
        font-size: 15px;
    }

    .ayat-market-links-grid {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .ayat-market-network-card {
        min-height: 0;
        padding: 20px;
    }

    .ayat-footer-markets-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    html[dir="rtl"] .ayat-footer-markets-nav {
        align-items: flex-end;
    }
}
