/* @import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap");
body {
    margin: 0;
    background: #f4f5f4;
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
    overflow-x: hidden;
} */

:root {
    --green-dark: #00563f;
    --green-light: #008060;
    --white: #ffffff;
    --black: #000000;
    --coffee-brown: #4b3621;
}

.hero-wrap {
    position: relative;
}

.first-article-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url(img/9346704.jpg) repeat;
    opacity: 0.05;
    mix-blend-mode: darken;
}

.svg-img {
    width: 260px;
    position: relative;
    left: -20%;
}

.first-article-banner {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: radial-gradient( 1200px 400px at 10% 10%, rgba(0, 128, 96, 0.07), transparent 12%), radial-gradient( 900px 300px at 90% 40%, rgba(0, 86, 63, 0.06), transparent 12%), linear-gradient( 180deg, var(--green-light) 0%, rgba(0, 128, 96, 0.92) 30%, var(--green-dark) 100%);
    padding-top: 100px;
}

.first-article-banner::before {
    content: "";
    position: absolute;
    left: -8%;
    top: -30%;
    width: 76%;
    height: 70%;
    background: radial-gradient( 1200px 500px at 8% 12%, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.02) 18%), linear-gradient( 120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.22));
    transform: rotate(-22deg);
    filter: blur(36px) saturate(1.05);
    opacity: 0.98;
    animation: floatLight 10s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes floatLight {
    0% {
        transform: rotate(-22deg) translateY(0);
        opacity: 0.95;
    }
    50% {
        transform: rotate(-20deg) translateY(-6px);
        opacity: 1;
    }
    100% {
        transform: rotate(-22deg) translateY(0);
        opacity: 0.95;
    }
}

.hero-inner {
    width: 100%;
    z-index: 2;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
}

.hero-text {
    color: var(--white);
    padding: 60px 80px;
    transform-origin: center;
    animation: heroIn 700ms ease-out both;
    will-change: transform, opacity;
}

@keyframes heroIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.997);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-text h1 {
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 800;
    color: #eeeaea;
    letter-spacing: -0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    letter-spacing: 1px;
}

.hero-text:hover h1 {
    text-shadow: 0 14px 44px rgba(0, 0, 0, 0.36);
}

.hero-text p {
    margin-bottom: 18px;
    opacity: 0.95;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
}

.chips-bootstrap .chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px) saturate(1.05);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    transition: transform 220ms cubic-bezier(0.2, 0.9, 0.25, 1), background 220ms;
    cursor: pointer;
}

.chips-bootstrap .chip:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.hero-wave-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 230px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    transform: translate3d(0, 0, 0);
}

.wave-1 {
    animation: waveMoveA 12s linear infinite;
    opacity: 0.95;
}

.wave-2 {
    animation: waveMoveB 18s linear infinite;
    opacity: 0.7;
    bottom: -6px;
}

@keyframes waveMoveA {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes waveMoveB {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-40%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wave-1,
    .wave-2 {
        animation: none;
        transform: none;
    }
}

@media (max-width: 992px) {
    .hero-text {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .svg-img {
        position: absolute;
        left: 0px;
    }
    .hero-text {
        width: 380px;
    }
}

@media (max-width: 550px) {
    .hero-text h1 {
        font-size: 26px;
    }
    .hero-text {
        width: 100%;
    }
    .chip {
        margin-right: 6px;
    }
    .svg-img {
        left: 0px;
        width: 160px;
        top: 170px;
    }
    .first-article-banner {
        width: 100%;
        height: 450px;
    }
}


/*---article---*/

.articles-section {
    padding: 60px 0;
}

.articles-section a {
    text-decoration: none;
}

.articles-section .container {
    padding: 22px 14px;
}

.article-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(34, 42, 69, 0.06);
    padding: 20px 16px 18px;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
    margin-top: 65px;
    text-decoration: none;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(34, 42, 69, 0.09);
}

.article-img {
    position: absolute !important;
    top: -28px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 244px;
    height: 170px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(34, 42, 69, 0.08);
    background: #f0f4fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0px;
}

.article-body {
    margin-top: 130px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

#cup {
    transform-box: fill-box;
    transform-origin: center;
    animation: moveCup 1s ease-in-out infinite alternate;
}

@keyframes moveCup {
    from {
        transform: translate(0px, 0px);
    }
    to {
        transform: translate(40px, -30px);
    }
}

.article-body h5 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #26313b;
    text-align: right;
    line-height: 1.25;
}

.article-excerpt {
    margin: 0;
    font-size: 13px;
    color: #8c9aa6;
    text-align: justify;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 6px;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    border: 1px solid rgba(103, 255, 126, 0.12);
    border-radius: 12px !important;
    background: #edf4f1;
    width: 255px;
    height: 36px;
    margin-inline: auto;
}

.article-date {
    font-size: 12px;
    color: #9ea0aa;
    padding: 10px;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--green-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 0 10px;
    transition: all 0.2s ease;
}

.btn-read:hover {
    color: var(--green-dark);
}

.btn-read img {
    width: 12px;
    height: 12px;
    transform: rotate(180deg);
}

@media (max-width: 1270px) {
    .article-card {
        width: min(92%, 292px);
        margin: 0 auto;
        margin-bottom: 10px;
    }
    .article-body {
        margin-top: 100px;
    }
    .btn-read {
        width: 100%;
        max-width: 247px;
        box-sizing: border-box;
    }
    .article-img {
        height: 140px;
    }
}

@media (max-width: 1400px) {
    .article-footer {
        width: 230px;
    }
}

@media (max-width: 1270px) {
    .article-footer {
        width: 205px;
    }
    .article-img {
        height: 140px;
        width: 200px;
    }
}

@media (max-width: 1200px) {
    .article-img {
        height: 120px;
        width: 170px;
    }
    .article-footer {
        width: 165px;
    }
    .btn-read {
        font-size: 10px;
    }
    .article-body h5 {
        margin-top: 0px !important;
    }
    .article-card {
        margin-top: 25px;
    }
}

@media (max-width: 992px) {
    .btn-read {
        font-size: 13px;
    }
    .article-footer {
        width: 255px;
    }
}


/*---end article---*/

.custom-pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    justify-content: center;
}

.custom-pagination .page-item {
    margin: 0;
}

.custom-pagination .page-link {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--green-dark);
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 247, 0.98));
    text-decoration: none;
    transition: transform 0.18s cubic-bezier(0.2, 0.9, 0.25, 1), box-shadow 0.18s, color 0.18s, background 0.18s;
    box-shadow: 0 6px 18px rgba(2, 12, 10, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.custom-pagination .page-link span {
    font-size: 18px;
    line-height: 1;
}

.custom-pagination .page-link:hover,
.custom-pagination .page-link:focus {
    transform: translateY(-4px) scale(1.02);
    color: var(--black);
    background: linear-gradient( 180deg, rgba(255, 255, 255, 1), rgba(238, 252, 246, 1));
    box-shadow: 0 18px 40px rgba(6, 10, 8, 0.12), 0 0 26px rgba(0, 128, 96, 0.06);
}

.custom-pagination .page-link[aria-current="page"],
.custom-pagination .page-link.active-page {
    background: linear-gradient(180deg, var(--green-light), var(--green-dark));
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(5, 40, 30, 0.28), 0 0 28px rgba(0, 86, 63, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.custom-pagination .page-item.disabled .page-link,
.custom-pagination .page-link[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.38;
    transform: none;
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 250, 0.96));
    color: rgba(0, 0, 0, 0.24);
    box-shadow: none;
}

.custom-pagination .page-link:focus-visible {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(0, 128, 96, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.custom-pagination .page-prev,
.custom-pagination .page-next {
    min-width: 40px;
    width: 40px;
    height: 40px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.6);
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 247, 0.98));
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(2, 12, 10, 0.06);
}

.custom-pagination .page-prev:hover,
.custom-pagination .page-next:hover {
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 128, 96, 1), rgba(0, 86, 63, 1));
    box-shadow: 0 18px 40px rgba(0, 86, 63, 0.18), 0 0 28px rgba(0, 128, 96, 0.08);
}

@media (max-width: 576px) {
    .custom-pagination {
        gap: 8px;
    }
    .custom-pagination .page-link {
        min-width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 13px;
        padding: 0 8px;
    }
    .custom-pagination .page-link span {
        font-size: 16px;
    }
    .custom-pagination .page-prev,
    .custom-pagination .page-next {
        width: 36px;
        height: 36px;
    }
}