﻿
@font-face {
    font-family: 'vazirmatn-medium';
    src: url('../fonts/vazirmatn-medium.woff2') format('woff2');
}
html, body {
    height: 100%;
    margin: 0;
}
body {
    font-family: vazirmatn-medium;
    display: flex;
    flex-direction: column;
}
/*ForSlider*/
.floating-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
    animation: floatUpDown 4s ease-in-out infinite;
}

.typed-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid white;
    animation: blink-caret 0.75s step-end infinite;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    color: white;
}

    .typed-text.active {
        opacity: 1;
    }

@keyframes blink-caret {
    from, to {
        border-color: transparent
    }

    50% {
        border-color: white
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translate(-50%, -48%);
    }

    50% {
        transform: translate(-50%, -52%);
    }
}

/*For Annonce*/
.news-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    font-weight: bold;
    color: #005BAC;
}

/* گرید ۴ ستونه */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* دقیقا ۴ ستون */
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .news-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.news-content {
    padding: 15px;
    text-align: right;
}

    .news-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
        color: #0056b3;
        transition: color 0.3s;
    }

    .news-content p {
        font-size: 14px;
        color: #666;
    }

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

    .news-card:hover .news-content h3 {
        color: #ff5722;
    }

/* موبایل و تبلت */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/****************/

.visa-title{
    font-size: 26px;
    margin-bottom: 30px;
    color: #222;

    text-align: center;
    font-weight: bold;
    position: relative;

}

    .visa-title::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background-color: #222;
        margin: 0.5rem auto 0 auto;
        border-radius: 4px;
    }

.visa-section {
    padding: 2rem;
    background-color: #fff;
}

.visa-grid {
    display: flex;
    justify-content: center;
    gap: 1.2rem; /* فاصله بین کارت‌ها کمتر شده */
    flex-wrap: wrap;
}

.visa-card {
    flex: 1 1 calc(24% - 1rem);
    max-width: 280px; /* کارت کمی بزرگ‌تر */
    background-color: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

    .visa-card img {
        width: 100%;
        height: 220px; /* تصویر بلندتر */
        object-fit: cover;
    }

.visa-caption {
    display: inline-block;
    margin: 0.8rem auto 1rem auto;
    padding: 0.4rem 1rem;
    color: #333;
    border: 2px solid #005BAC;
    border-right: 4px double #005BAC;
    border-left: 0;
    border-bottom: 0;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    line-height: 1.8;
}

/* Hover effect */
.visa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,91,172,0.25);
}

    .visa-card:hover .visa-caption {
        color: #005BAC;
        border-color: #005BAC;
    }

/* Responsive */
@media (max-width: 992px) {
    .visa-card {
        flex: 1 1 45%;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .visa-card {
        flex: 1 1 100%;
    }

    .visa-caption {
        font-size: 1rem;
    }
}

/* نمایندگی */
.agency-official {
    background: #fff;
    padding: 40px 15px;
}

.agancy-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
    flex-direction: row; /* تغییر جهت چیدمان به راست به چپ */
}

.image-container {
    flex: 1;
}

.agency-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

.text-container {
    flex: 2;
    text-align: right;
}

.agency-official h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #222;
}

.agency-official p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #555;
}

.contact-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #25D366; /* رنگ واتساپ */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

    .contact-button:hover {
        background-color: #1da851;
    }

/* --- ریسپانسیو برای تبلت و موبایل --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .text-container {
        text-align: center;
        margin-top: 20px;
    }

    .image-container {
        padding-right: 0;
    }
}


/*****************/
/*اقامت در کشورهای مختلف*/
.residence-section {
    background: #f9f9f9;
    padding: 40px 10px; /* پدینگ کمتر */
    text-align: center;
}


.residence-container {
    max-width: 1200px;
    margin: 0 auto;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 تا کارت در دسکتاپ */
    gap: 20px; /* فاصله کمتر بین کارت‌ها */
}

.country-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

    .country-card:hover {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    .country-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .country-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
        color: #333;
    }

    .country-card p {
        font-size: 13px;
        color: #666;
    }

/* ریسپانسیو */
@media (max-width: 991px) {
    .countries-grid {
        grid-template-columns: repeat(2, 1fr); /* تبلت: 2 تا در هر ردیف */
    }
}

@media (max-width: 600px) {
    .countries-grid {
        grid-template-columns: 1fr; /* موبایل: 1 کارت در هر ردیف */
    }
}


/***********/
/* فوتر */
.site-footer {
    background-color: #222;
    color: #ddd;
    padding: 40px 20px 20px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-section {
    flex: 1 1 250px;
    margin: 15px;
}

    .footer-section h3 {
        font-size: 18px;
        color: #fff;
        margin-bottom: 15px;
    }

    .footer-section p,
    .footer-section a {
        font-size: 14px;
        color: #ccc;
        line-height: 1.8;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }

        .footer-section ul li {
            margin-bottom: 10px;
        }

            .footer-section ul li a {
                text-decoration: none;
                transition: color 0.3s;
            }

                .footer-section ul li a:hover {
                    color: #25D366; /* سبز روشن هنگام هاور */
                }

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 15px;
    font-size: 13px;
    color: #888;
}

/* ریسپانسیو فوتر */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin: 20px 0;
    }
}



/*****************************/
/* استایل‌های عمومی منو */
/*.navbar-nav {
    display: flex;
    flex-direction: row; 
}*/

.navbar-brand img{
    height:50px;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 10px 25px !important;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    text-align: right; /* راست‌چین کردن متن منو */
}

    .nav-link:hover {
        background-color: #f1f1f1;
    }

/* استایل منو کشویی سطح اول */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block; /* نمایش منو کشویی در زمان هاور */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0; /* منو کشویی را از سمت راست باز کنید */
    min-width: 200px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* استایل منو کشویی سطح دوم */
.dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    margin-right: 0;
    margin-top: -5px; /* تنظیم فاصله منوی زیرین */
}

/* استایل فعال برای منوهای کشویی */
.nav-item.dropdown.active > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* برای موبایل و تبلت */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        align-items: flex-end; /* چیدن منوها به سمت راست در موبایل */

    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
    }

    .dropdown-toggle:focus + .dropdown-menu {
        display: block; /* نمایش منو در صورت فوکوس */
    }
}
