﻿/* ===== BASE ===== */
body {
    font-family: b yekan,IRANSans, Tahoma, sans-serif;
    margin: 0;
    background: #fff;
    direction: ltr;
    unicode-bidi: plaintext;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
.top-header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
/* .logo img, .slogan img { height:60px; } */
.slogan img {
    height: 40px;
}

.logo img {
    height: 80px;
}


/* ===== MENU ===== */
.navbar-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    color: #000000 !important;
    font-weight: 700;
    padding: 8px 12px;
}

.navbar-nav .dropdown-menu {
    background: #191970;
}

.navbar-nav .dropdown-item {
    color: #ffffff;
    padding: 8px 12px;
}

/* ===== SLIDER ===== */
.carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* ===== NEWS BAR ===== */
.news-bar {
    background: #0b1b4d;
    color: #fff;
    padding: 10px;
    overflow: hidden;
}

.news-text {
    white-space: nowrap;
    display: inline-block;
    animation: scroll 50s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

/* ===== SERVICES ===== */
.services {
    background: #f3f3f3;
    padding: 50px 0;
}

.service-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    height: 100%;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .service-card:hover {
        transform: translateY(-8px); /*box-shadow:0 18px 35px rgba(0,0,0,0.12);*/
        background-color: #191970;
        color: #c40000;
    }

.service-card1:hover {
    /*transform: translateY(-8px);*/
    /*box-shadow: 0 18px 35px rgba(0,0,0,0.12);*/
    color: #c40000;
}

.service-card:hover img {
    background-color: #ffffff;
    color: white;
}

.service-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px;
}

.service-card h6 {
    margin-top: 55px;
    font-weight: bold;
}

.service-card p {
    font-size: 14px;
    color: #555;
}

.service-title {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 16px;
    position: relative;
}

    .service-title::after {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background-color: #da0808;
        /* margin: 8px 20px outo 0; */
        margin-top: 20px;
        border-radius: 2px;
    }
/* ===== NEWS ===== */
/* .news-card { border-radius:14px; overflow:hidden; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.news-card img { width:100%; height:200px; object-fit:cover; border-top-left-radius:14px; border-top-right-radius:14px; }
.news-card:hover { transform:translateY(-6px); box-shadow:0 15px 30px rgba(0,0,0,0.12); } */

.news-card {
    position: relative; /* برای قرارگیری news-date */
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .news-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-top-left-radius: 14px;
        border-top-right-radius: 14px;
        padding: 5px;
        border-bottom: 1px solid #c3c2c0;
    }

    .news-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    }

/* باکس تاریخ روی گوشه عکس */
.news-date {
    position: absolute;
    top: 250px;
    left: 0; /* گوشه بالا سمت چپ */
    background-color: rgba(25,25,112,0.9); /* رنگ تیره کمی شفاف */
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    z-index: 2;
    clip-path: polygon(0% 0%, 85% 0%, 100% 105%, 0% 105%);
}
/* =========================
   News Header - Desktop
========================= */

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-weight: bold;
}

.news-tabs {
    display: flex;
    gap: 25px;
}

.news-tab {
    text-decoration: none !important;
    color: #333;
    font-size: 15px;
    position: relative;
    padding-bottom: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

    /* خط قرمز زیر تب فعال */
    .news-tab.active::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        width: 100%;
        height: 2px;
        background: #c40000;
    }

    .news-tab:hover {
        color: #c40000;
    }

/* آرشیو */
.archive-link {
    text-decoration: none !important;
    color: #333;
    font-size: 14px;
    transition: 0.3s;
}

    .archive-link:hover {
        color: #c40000;
    }


/* =========================
 Tablet
========================= */

@media (max-width: 768px) {

    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .news-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }

    .news-archive {
        align-self: flex-end;
    }
}


/* =========================
 Mobile
========================= */

@media (max-width: 576px) {

    .news-tabs {
        flex-direction: column;
        width: 100%;
    }

    .news-tab {
        width: fit-content;
        font-size: 14px;
    }
}


/* ===== FOOTER ===== */
/* footer { background:#0b1b4d; color:#fff; padding:20px; text-align:center; } */


.main-footer {
    background: linear-gradient(180deg, #191970, #290188);
    color: #fff;
    padding: 50px 0 20px;
    direction: ltr;
    font-family: sans-serif;
    font-size: 18px;
    font-family: 'b nazanin';
    margin: 20px;
}

/* ستون‌های اصلی */
.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

.footer-col p {
    margin-bottom: 8px;
    opacity: 0.9;
    text-align: left;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}
/* آیکن‌ها */
.footer-col i {
    margin-right: 8px; /* مهم برای LTR */
}
    .footer-col ul li {
        margin-bottom: 8px;
        text-align: left;
    }

        .footer-col ul li a {
            color: #fff;
            text-decoration: none;
            transition: 0.3s;
        }

            .footer-col ul li a:hover {
                color: #ffcc00;
            }

/* کادر پایین محدود به عرض ستون‌ها */
.footer-bottom-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.footer-bottom-box {
    border: 1px solid rgba(255,255,255,0.5);
    padding: 15px;
    border-radius: 6px;
    opacity: 0.95;
}

/* ردیف‌های داخلی کادر */
.footer-bottom-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.footer-bottom-col {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    cursor: pointer;
}

    .footer-bottom-col i {
        color: #ffcc00;
    }

    .footer-bottom-col:hover {
        color: #ffcc00;
    }

/* متن پایین کادر */
.footer-bottom-text {
    /*text-align: center;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;*/
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid white;
    padding-top: 5px;
}

/* ریسپانسیو تبلت */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ریسپانسیو موبایل */
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-bottom-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-bottom-box {
        padding: 10px;
    }

    .footer-bottom-text {
        font-size: 11px;

    }
}


/* ===== SCROLL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal.active {
        opacity: 1;
        transform: none;
    }

/* ===== RESPONSIVE ===== */
@media (max-width:992px) {
    .carousel-item img {
        height: 320px;
    }

    .slogan img {
        display: none;
    }

    .logo img {
        height: 70px;
    }
}

@media (max-width:768px) {
    .carousel-item img {
        height: 260px;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width:576px) {
    .news-card img {
        height: 150px;
    }

    .service-card h6 {
        font-size: 14px;
    }

    .service-card p {
        font-size: 13px;
    }
}
