@font-face {
    font-family: "Bahij Halvetica";
    src: url("../fonts/Bahijlight.ttf") format('truetype');
    font-weight: lighter;
}


* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* جلوگیری از اسکرول عرضی */
    font-family: 'Bahij Halvetica';
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    color: #2d3748;
}

/* ===== Navbar ===== */
/* Languages */
.navbar {
    width: 100%;
    height: 80px;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255), rgba(255, 255, 255, 0) 29%), /* left */ radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0) 0), /* right */ radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 28%), /* up */ radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 0), /* down */ url("../img/map2.png") no-repeat center center;
    background-size: cover;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    position: relative;
}

.language-selection {
    position: absolute;
    left: 2rem;
    display: table-caption;
    top: 30px;
}

.lan-btn {
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    margin-right: 5px;

}

.lan-btn:hover {
    color: #e39f17;
    text-decoration: underline 1px #e39f17;
}

/* Logo */
.logo {
    position: absolute;
    right: 2rem;
    top: 0; /* فاصله از سمت راست صفحه */
}

.logo img {
    height: 80px;
    width: auto;
}

/* ===== Main Container ===== */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* ===== Help Cards ===== */
.card-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* دو ستونی */
    gap: 1.5rem;
    width: 100%;
    max-width: 500px; /* کنترل پهنا تا وسط بماند */
    margin: 2rem auto; /* قرار گرفتن وسط صفحه */
    justify-items: center; /* آیتم‌ها وسط شوند */
    margin-top: 9% !important;
}

.card-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* هم‌عرض شدن در هر ستون */
    max-width: 220px; /* زیبایی ظاهری */
    font-size: 14px;

}

.card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2b6cb0;
}

.card-title {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* ===== Footer ===== */
.footer {
    background-color: #1a365d;
    color: white;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
}


/* ===== Sub Navbar ===== */
.sub-navbar {
    width: 100%;
    height: 32px;
    background: url("../img/header-logo-02.png") repeat-x center center; /* عکس پس‌زمینه */
    background-size: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 5;
}

.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.sub-menu li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    transition: 0.3s;
}

.sub-menu li a:hover {
    color: #e39f17;
    text-decoration: none;
}


/* === === */
.main-wrapper {
    width: 100%;
    margin: 0 auto 20px auto; /* وسط‌چین */
    display: flex;
    flex-direction: row-reverse; /* اسلایدر راست / سایدبار چپ */
    gap: 24px;
    direction: rtl;
}

/* ---- big slider ---- */
.big-slider {
    flex: 1; /* بقیه فضا */
}

.big-slides {
    position: relative;
}

.big-slide {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    padding: 30px;
    display: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.big-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.big-slide.active {
    display: block;
    /*animation: fade .8s linear;*/
}

.big-slide h2 {
    position: absolute;
    bottom: 80px;
    font-size: 28px;
    font-weight: bold;
    width: 80%;
}

.big-slide .meta {
    position: absolute;
    bottom: 34px;
    font-size: 14px;
    opacity: .9;
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(7px);
    padding: 6px 14px;
    font-size: 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
}

.news-title-img {
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    padding: 6px 14px;
    /*margin: 30% 10%;*/
}

@keyframes fade {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ===== News List  ===== */
.news-list-wrapper {
    /*width: 40%;*/
    max-width: 1100px;
    margin: 0 auto 25px;
    padding: 0 16px;
    direction: rtl;
    background: #00b3ff0f;
}

.news-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid #e2e8f0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-text-area {
    flex: 1;
}


.news-desc {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.news-image {
    width: 220px;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

/* Hover */
.news-title {
    position: relative;
    display: inline-block;
    color: #1a202c;
}

/* خط زیر متن */
.news-title::after {
    content: "";
    position: absolute;
    right: 0; /* چون متن فارسی است */
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #1a365d;
    transition: width 0.35s ease;
}

/* hover روی کل کارت خبر */
.news-item:hover .news-title {
    color: #1a365d;
}

/* انیمیشن باز شدن خط */
.news-item:hover .news-title::after {
    width: 100%;
}


.news-section-layout {
    /*width: 100%;*/
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 24px;
    direction: rtl;
    align-items: start;
}

/* ===== Side column ===== */
.side-column {
    padding: 18px;
    border: 1px solid #ccc
}

.side-column h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #1a365d;
}

.workdays-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.workdays-box li {
    padding: 6px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #eee;
}

.side-column a {
    color: inherit; /* رنگ لینک رو از متن والد بگیره */
    text-decoration: none; /* خط زیر لینک رو حذف کنه */
}

.workdays-box li:last-child {
    border-bottom: none;
}


/* Responsive */
@media (max-width: 768px) {
    .news-item {
        flex-direction: column-reverse;
    }

    .news-image {
        width: 100%;
    }

    .news-image img {
        height: 200px;
    }

    .news-list-wrapper {
        width: 94%;
    }


}

@media (min-width: 768px) and (max-width: 1200px) {
    .news-list-wrapper {
        width: 97%;
    }

    .main-wrapper {
        width: 100%;
    }

    .workdays-box {

        width: 97%;
    }

    .intro-box {
        width: 97%;

    }
}

@media (max-width: 1000px) {

    .news-section-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* ستون چپ و راست */
    .side-wrapper {
        width: 94%;
    }

    /* وسط (اخبار) اول نمایش داده شود */
    .news-list-wrapper {
        order: 1;
        width: 94%;
    }

    /* ستون چپ زیر اخبار */
    .news-section-layout > .side-wrapper:first-child {
        order: 2;
    }

    /* ستون راست زیر ستون چپ */
    .news-section-layout > .side-wrapper:last-child {
        order: 3;
    }
}


/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .navbar {
        background-size: 234% auto;
        background-position: 97% 48%;
    }

    .logo {
        text-align: center;
    }

    .language-selection {
        position: static;
        margin-bottom: 0.5rem;
        justify-content: center;
    }

    .lan-btn {
        font-size: 0.85rem;
        gap: 1.5rem;
    }

    .sub-navbar {
        height: 55px;
        justify-content: center;
        background-position: center center;
        background-size: 200%;
    }

    .sub-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .sub-menu li a {
        font-size: 0.9rem;
    }

    .card-nav {
        grid-template-columns: 1fr; /* در موبایل یک ستونه */
        max-width: 300px;
    }

    .main-wrapper {
        width: 100%;
        flex-direction: column; /* تغییر چیدمان به عمودی */
    }


}

/* حالت لپ‌تاپ / دسکتاپ */
@media (min-width: 1024px) {
    .navbar {
        background-size: 60% auto; /* کمی زوم روی تصویر */
        background-position: 29% 48%;
    }

    .workdays-box {
        margin-left: 4%;
    }


    /*.intro-box {*/
    /*    margin-right: 4%;*/
    /*}*/

}


@media (min-width: 1500px) {
    .main-wrapper {
        width: 75%;
    }

    .news-section-layout {
        width: 75%;
    }

    .news-list-wrapper {
        width: 100%;
    }

    .none-desktop {
        display: none !important;
        width: 0 !important;
        flex: 0 !important;
    }

    .footer {
        width: 75%;
        background-color: #1a365d;
        color: white;
        text-align: center;
        font-size: 0.85rem;
        margin-top: auto;

        margin-left: auto; /* ← اضافه کنید */
        margin-right: auto; /* ← اضافه کنید */
    }

    .navbar {
        width: 75%;
        height: 80px;
        background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255), rgba(255, 255, 255, 0) 29%), /* left */ radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0) 0), /* right */ radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 28%), /* up */ radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 0), /* down */ url(../img/map2.png) no-repeat 29% 48%;
        background-size: cover;
        padding: 0 2rem;
        display: flex;
        align-items: center;
        position: relative;

        margin-left: auto; /* ← اضافه کنید */
        margin-right: auto; /* ← اضافه کنید */
    }

    .sub-navbar {
        width: 75%;
        height: 32px;
        background: url(../img/header-logo-02.png) repeat-x center center;
        background-size: contain;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        position: relative;
        z-index: 5;

        margin-left: auto; /* ← اضافه کنید */
        margin-right: auto; /* ← اضافه کنید */
    }

    .news-ticker {
        width: 75% !important;
    }
}

/* حالت تبلت */
@media (max-width: 1023px) and (min-width: 768px) {
    .navbar {
        background-size: 115% auto; /* کمی زوم روی تصویر */
        background-position: 163% 48%; /* کمی کمتر از لپ‌تاپ */
    }

    .main-wrapper {
        width: 100%;
        flex-direction: column; /* تغییر چیدمان به عمودی */
    }

}


@media (min-width: 360px) and (max-width: 475px) {
    .news-title-img {
        margin: 56% 10%;
    }

    .meta {
        margin: -56% 10%;
    }
}

@media (min-width: 475px) and (max-width: 560px) {
    .news-title-img {
        margin: 47% 10%;
    }

    .meta {
        margin: -46% 10%;
    }
}

@media (min-width: 560px) and (max-width: 800px) {
    .news-title-img {
        margin: 37% 10%;
    }

    .meta {
        margin: -36% 10%;
    }
}

@media (min-width: 800px) and (max-width: 1024px) {
    .news-title-img {
        margin: 27% 10%;
    }

    .meta {
        margin: -26% 10%;
    }
}

@media (min-width: 1024px) and (max-width: 1300px) {
    .news-title-img {
        margin: 21% 10%;
    }

    .meta {
        margin: -20% 10%;
    }
}

@media (min-width: 1300px) {
    .news-title-img {
        margin: 18% 10%;
    }

    .meta {
        margin: -17% 10%;
    }
}

.carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* container */
.carousel__items {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 420px;
    position: relative;
}

/* slide */
.carousel__item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    padding: 30px;
    color: #fff;
}

.carousel__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}

.carousel__item > * {
    z-index: 2;
}

/* active slide */
#carousel-1:checked ~ .carousel__items li:nth-child(1),
#carousel-2:checked ~ .carousel__items li:nth-child(2),
#carousel-3:checked ~ .carousel__items li:nth-child(3) {
    opacity: 1;
    z-index: 3;
}

/* arrows */
.carousel__prev label,
.carousel__next label {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: .3s;
    z-index: 4;
}

.carousel__prev label {
    left: 20px;
}

.carousel__next label {
    right: 20px;
}

#carousel-1:checked ~ .carousel__prev label:nth-child(3),
#carousel-2:checked ~ .carousel__prev label:nth-child(1),
#carousel-3:checked ~ .carousel__prev label:nth-child(2),
#carousel-1:checked ~ .carousel__next label:nth-child(2),
#carousel-2:checked ~ .carousel__next label:nth-child(3),
#carousel-3:checked ~ .carousel__next label:nth-child(1) {
    opacity: 1;
}

/* dots */
.carousel__nav {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.carousel__nav label {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #fff;
    margin: 0 5px;
    cursor: pointer;
}

#carousel-1:checked ~ .carousel__nav label:nth-child(1),
#carousel-2:checked ~ .carousel__nav label:nth-child(2),
#carousel-3:checked ~ .carousel__nav label:nth-child(3) {
    background: #fff;
    pointer-events: none;
}

.carousel__prev label::before,
.carousel__next label::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
}

.carousel__next label::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#carousel-1:checked ~ .carousel__prev label:nth-child(3),
#carousel-2:checked ~ .carousel__prev label:nth-child(1),
#carousel-3:checked ~ .carousel__prev label:nth-child(2),
#carousel-1:checked ~ .carousel__next label:nth-child(2),
#carousel-2:checked ~ .carousel__next label:nth-child(3),
#carousel-3:checked ~ .carousel__next label:nth-child(1) {
    opacity: 1;
    pointer-events: auto;
}

.carousel__prev label,
.carousel__next label {
    pointer-events: none;
}

.carousel__prev label:hover,
.carousel__next label:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}


.see-more-btn {
    display: block;
    margin: 24px auto 0;
    padding: 10px 26px;
    font-size: 14px;
    font-family: inherit;
    color: #1a365d;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    transition: .25s ease;
}

.see-more-btn:hover {
    background: #1a365d;
    color: #fff;
    border-color: #1a365d;
}

.side-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px; /* فاصله بین کارت‌ها */
}

/* == photo card ==*/
/* ===== CARD اختصاصی معرفی ===== */
.introcard-card {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 360px;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto 30px; /* فاصله از المان‌های پایین */
}

.introcard-card > * {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.introcard-card__background {
    object-fit: cover;
    width: 100%;
    height: 450px;
    transition: transform 0.5s ease-in-out;
    /*filter: brightness(60%);*/
}

/*.introcard-card:hover .introcard-card__background {*/
/*    filter: brightness(100%); !* شفاف و روشن *!*/
/*    transition: filter 0.7s ease-in-out;*/
/*}*/

.introcard-card__content {
    --flow-space: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: flex-end;
    /*height: 55%;*/
    padding: 12% 1rem 1.5rem;
    background: linear-gradient(
            180deg,
            hsla(0, 0%, 0%, 0) 0%,
            hsla(0, 0%, 0%, 0.25) 10%,
            hsl(0, 0%, 0%) 100%
    );
    transform: translateY(100%);
    opacity: 0;

    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.introcard-card__content--container {
    --flow-space: 1rem;
}
@media (any-hover: hover) and (any-pointer: fine) {
    .introcard-card:hover .introcard-card__content {
        transform: translateY(0); /* از پایین بالا می‌آید */
        opacity: 1;              /* محو بودن برداشته می‌شود */
    }
}
.introcard-card__title {
    position: relative;
    font-family: 'Bahij Halvetica';
    font-size: 1.75rem;
    color: #fff;
    text-align: justify;
}

.introcard-card__title::after {
    content: "";

    position: absolute;
    height: 5px;
    width: calc(100% + 10px);
    bottom: -5px;
    left: -5px;
    background-color: hsl(46, 100%, 50%);
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.5s ease-in, opacity 0.5s ease-in;
    transform-origin: right;
}

.introcard-card__description {
    font-family: 'Bahij Halvetica';
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.5;
    text-align: justify;
}

.introcard-card__button {
    padding: 0.6em 1.5em;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    background-color: hsl(46, 100%, 50%);
    font-family: 'Bahij Halvetica';
    font-size: 1rem;
    color: #000;
    cursor: pointer;
    transition: 0.3s;
    /*display: none;*/
}

.introcard-card__button:hover {
    background-color: #fff;
    color: hsl(46, 100%, 50%);
}

/* افکت hover کارت */
@media (any-hover: hover) and (any-pointer: fine) {
    .introcard-card:hover .introcard-card__content {
        transform: translateY(0);
    }

    .introcard-card:hover .introcard-card__background {
        transform: scale(1.2);
    }

    .introcard-card:hover .introcard-card__title::after {
        transform: scaleX(1);
        opacity: 1;
        transform-origin: left;
    }
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1024px) {
    .introcard-card {
        max-width: 300px;
        height: 400px;
    }

    .introcard-card__title {
        font-size: 1.5rem;
    }

    .introcard-card__description {
        font-size: 0.9rem;
    }

    .introcard-card__button {
        font-size: 0.95rem;
        padding: 0.5em 1.2em;
    }
}

@media (max-width: 768px) {
    .introcard-card {
        max-width: 100%;
        height: 350px;
    }

    .introcard-card__content {
        padding: 15% 1rem 1rem;
    }

    .introcard-card__title {
        font-size: 1.3rem;
    }

    .introcard-card__description {
        font-size: 0.85rem;
    }

    .introcard-card__button {
        font-size: 0.9rem;
        padding: 0.45em 1.1em;
    }

    .introcard-card__background {
        width: 100%;
        height: 100%; /* ارتفاع خودکار برای حفظ نسبت تصویر */
        max-height: 400px; /* اختیاری، می‌تونی ارتفاع دلخواه بدهی */
        object-fit: cover; /* پر کردن کارت بدون کشیدگی */
    }
}

@media (max-width: 480px) {
    .introcard-card {
        height: 300px;
    }

    .introcard-card__title {
        font-size: 1.15rem;
    }

    .introcard-card__description {
        font-size: 0.8rem;
    }

    .introcard-card__button {
        font-size: 0.85rem;
        padding: 0.4em 1em;
    }
}




.slider {
    width: 100%;
    max-width: 360px;
    height: 450px;
    overflow: hidden;
    margin: auto;
}


.slides {
    display: flex;
    transition: transform 0.5s ease;
}


.slide {
    min-width: 100%;
    height: 100%;
}



