/*
Theme Name: Mehrabpooyesh
Theme URI: http://ehsanargani.com
Author: Ehsan Argani
Author URI: http://ehsanargani.com
Version: 1.3
*/
@font-face {
    font-family: IRANSansX;
    font-style: normal;
    font-weight: 100;
    src: url('fonts/woff/IRANSansX-Regular.woff') format('woff'),
    url('fonts/woff2/IRANSansX-Regular.woff2') format('woff2');
}
body {
    font-family: 'IRANSansX', 'sans-serif';
}

.hero-section {
    position: relative;
    height: 100vh;
    background: url('images/mehrabpooyesh.jpg') no-repeat center/cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(26, 35, 126, 0.8), rgba(40, 53, 147, 0.6));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 100px 15px;
}
.nav-item {
    font-size: 16px;
    font-weight: bold;
    margin: 20px;
}
.bg_primary_custom{
    background: #323d7d;
    color: white;
}
.text_primary_custom{
    color: #323d7d;
}
.btn-outline-primary_custom {
    --bs-btn-color: #323d7d;
    --bs-btn-border-color: #323d7d;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #323d7d;
    --bs-btn-hover-border-color: #323d7d;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #323d7d;
    --bs-btn-active-border-color: #323d7d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #323d7d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #323d7d;
    --bs-gradient: none;
}
.btn_primary_custom{

        --bs-btn-color: #fff;
        --bs-btn-bg: #323d7d;
        --bs-btn-border-color: #323d7d;
        --bs-btn-hover-color: #fff;
        --bs-btn-hover-bg: #323d7d;
        --bs-btn-hover-border-color: #323d7d;
        --bs-btn-focus-shadow-rgb: 49, 132, 253;
        --bs-btn-active-color: #fff;
        --bs-btn-active-bg: #323d7d;
        --bs-btn-active-border-color: #323d7d;
        --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
        --bs-btn-disabled-color: #fff;
        --bs-btn-disabled-bg: #323d7d;
        --bs-btn-disabled-border-color:#323d7d;

}
.navbar-nav .nav-link {
    white-space: nowrap;
}
.card-img-top {
    aspect-ratio: 3/2; /* یا 4/3 یا هر نسبتی که بخوای */
    object-fit: cover;
    width: 100%;
    height: auto;
}
.contact_info_footer li {
    line-height: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.contact_info_footer i {
    font-size: 1rem;
    color: #ffffff;
}
footer .menu a {
    text-decoration: none !important;
}

footer .menu a:hover {
    text-decoration: underline; /* یا none اگر نمی‌خواهی حتی هنگام هاور هم خط نباشد */
}
a{
    text-decoration: none !important;
}
.article-card:hover {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.navbar-nav > li > a {
    position: relative;
    display: inline-block;
    color: #333;
    transition: color 0.3s ease;
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #1a237e; /* رنگ خط */
    transition: width 0.4s ease;
}

.navbar-nav > li > a:hover::after {
    width: 100%;
}
/* استایل عمومی لینک‌های منو */
.navbar-nav > li > a {
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    color: #333; /* رنگ معمولی متن */
    font-weight: 500;
    transition: color 0.3s ease;
}

/* خط انیمیشنی زیر آیتم هنگام hover */
.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* اگر راست‌چین هستی و می‌خوای از راست بیاد، بذار right: 0 و left: auto */
    width: 0;
    height: 2px;
    background-color: #1a237e; /* رنگ خط */
    transition: width 0.3s ease-in-out;
}

/* وقتی موس میره روی لینک */
.navbar-nav > li > a:hover {
    color: #1a237e;
    font-weight: 600;
}

.navbar-nav > li > a:hover::after {
    width: 100%;
}

/* آیتم فعال (مثلاً صفحه فعلی) */
.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current_page_item > a {
    color: #1a237e;
    font-weight: 700;
}

.navbar-nav > li.current-menu-item > a::after,
.navbar-nav > li.current_page_item > a::after {
    width: 100%;
}

/* ارتفاع هِرو و بک‌گراند بدون دفورمگی */


/* سایز تیترها با clamp تا تو موبایل نترکند */
.hero-title{ font-size: clamp(1.6rem, 5.2vw, 3rem); line-height: 1.2; }
.hero-subtitle{ font-size: clamp(0.95rem, 2.8vw, 1.25rem); }

/* دکمه‌ها در موبایل تمام‌عرض و در دسکتاپ جمع‌وجور */
@media (max-width: 576px){
  .btn{ width: 100%; }
}


/* جلوگیری قطعی از اسکرول افقی */
html, body { overflow-x: hidden; }

/* هیچ تصویری از عرض صفحه نزن بیرون */
img, video, svg { max-width: 100%; height: auto; }

/* متن‌های خیلی بلند بشکنند، مخصوصاً در موبایل‌های کوچک */
* { word-break: break-word; }

/* دکمه‌ها اجازه سطرشکنی داشته باشند (اگر جایی nowrap داده‌ای) */
.btn { white-space: normal; }

/* ردیف‌ها یا کانتینرهای تمام عرض که ناخواسته 100vw هستند را مهار کن */
.w-100vw, .vw-100 { width: 100% !important; }

/* کارت‌ها و عکس‌ها */
.card-img-top { aspect-ratio: 16/9; object-fit: cover; width:100%; height:auto; }

/* Hero */
.hero-section { overflow: hidden; }           /* اگر داخلش چیزی translate شده */
.hero-content { padding-left: 12px; padding-right: 12px; } /* ایمن برای xs */

/* Swiper (فلش‌ها معمولاً عامل Overflow می‌شوند) */
.swiper { overflow: hidden; }
.swiper-button-next, .swiper-button-prev { width:32px; }


.social-btn{
  width: 44px;       /* برای iPhone SE مناسب است */
  height: 44px;
  padding: 0;        /* خنثی کردن padding .btn/.btn-sm */
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* اگر خیلی تنگ شد، کوچکترش کن */
@media (max-width: 360px){
  .social-btn{ width: 40px; height: 40px; }
}