/* assets/css/style.css */
:root {
    --primary: #f7941d;        /* نارنجی صنعتی */
    --secondary: #0a1929;      /* آبی نفتی */
    --dark: #1b2a3a;
    --light: #f4f6f9;
    --white: #ffffff;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    width: 100%;
}

/* ===== هدر صنعتی ===== */
.top-bar {
    background: #0a1929;
    color: #ccc;
    font-size: 0.9rem;
}
.top-bar a {
    color: #ccc;
    text-decoration: none;
}
.top-bar i {
    color: #f7941d;
}

.navbar {
    background: #0a1929 !important;
    border-bottom: 3px solid #f7941d;
}
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff !important;
}
.nav-link {
    color: #838383 !important;
    transition: 0.3s;
}
.nav-link:hover,
.nav-link.active {
    color: #f7941d !important;
}

/* ===== اسلایدر ===== */
/* محافظ اسلایدر */
.slider-safe-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 1;  /* بالاتر از محتوای عادی */
}
.hero-slider .swiper-slide {
    height: 80vh;
    background-size: cover;
    background-position: center;
    width: 100%;
    will-change: transform;  /* بهبود performance */
}
.hero-slider .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(10,25,41,0.8), transparent);
}
.hero-caption {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 500px;
    max-width: 90%;
    word-wrap: break-word;
}
.hero-caption h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #f7941d;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* ===== کارت خدمات ===== */
.service-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    background: #fff;
}
.service-card:hover {
    border-color: #f7941d;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.service-icon {
    font-size: 2.8rem;
    color: #0a1929;
    transition: 0.3s;
}
.service-card:hover .service-icon {
    color: #f7941d;
}

/* ===== کارت مقالات ===== */
.blog-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.blog-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.blog-card img {
    height: 220px;
    object-fit: cover;
}

/* ===== دکمه‌ها ===== */
.btn-primary {
    background-color: #0a1929;
    border-color: #0a1929;
}
.btn-primary:hover {
    background-color: #f7941d;
    border-color: #f7941d;
    color: #000;
}
.btn-warning {
    background-color: #f7941d;
    border-color: #f7941d;
    color: #000;
    font-weight: bold;
}
.btn-outline-primary {
    color: #0a1929;
    border-color: #0a1929;
}
.btn-outline-primary:hover {
    background-color: #0a1929;
    color: #fff;
}

/* ===== فوتر ===== */
.footer {
    background: #0a1929;
    color: #aaa;
    padding: 2rem 0;
}
.footer h5 {
    color: #f7941d;
}
.footer a {
    color: #aaa;
    text-decoration: none;
}
.footer a:hover {
    color: #f7941d;
}

/* ===== بخش dark ===== */
.bg-dark-section {
    background-color: #0a1929;
    color: #fff;
}

/* ===== صفحه بندی ===== */
.pagination .page-link {
    color: #0a1929;
}
.pagination .active .page-link {
    background-color: #0a1929;
    border-color: #0a1929;
}

/* <!-- ========== استایل مشترک برای کارت‌های دسته‌بندی ========== --> */
.cat-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}
.cat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s;
}
.cat-circle img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}
.cat-circle i {
    font-size: 3rem;
    color: #0a1929;
}
.cat-name {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #333;
    text-align: center;
    line-height: 1.4;
}