
:root {
    --bg: #0b0b0f;
    --bg-soft: #0e4380; 
    /* #1f3e6a */
    --card: rgba(255,255,255,0.04);
    --line: rgba(255,255,255,0.08);
    --text: #f5f5f5;
    --muted: #ffffff;
    --gold: #2B59A2;
    --gold-light: #3f73c9;
    --shadow: 0 20px 60px rgba(0,0,0,0.35);

    --autohub-blue: #2B59A2;
    /* #ee2128; */
  
    --text-muted: rgba(255,255,255,0.7);
    --transition: all 0.3s ease;
    --autohub-red: #ee2128;
    --autohub-dark: #1a1a1a;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     font-family: 'Vazir';
}
@font-face {
    font-family: 'Vazir';
    src: url(../fonts/Vazir-Medium.woff);
}
body {
    font-family: 'Vazir';
    background:
        radial-gradient(circle at top right, rgba(198,161,91,0.08), transparent 20%),
        radial-gradient(circle at bottom left, rgba(255,255,255,0.03), transparent 30%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}
.contact-item{
    font-family: 'vazir';
}
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 138px;
    height: 100vh;
    background: rgba(10, 10, 14, 0.92);
    border-left: 1px solid var(--line);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 999;
    box-shadow: -10px 0 40px rgba(0,0,0,0.25);
}

/* تنظیمات کلی بخش بالای سایدبار */
.sidebar-top {
    padding: 30px 10px 20px; /* افزایش فاصله از بالا */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ساختار ستونی لوگو */
.logo {
    display: flex;
    flex-direction: column; /* چیدمان زیر هم */
    align-items: center;    /* وسط‌چین کردن آیتم‌ها */
    gap: 12px;              /* ایجاد فاصله مناسب بین تصویر و متن‌ها */
    text-decoration: none;
    text-align: center;
}

/* استایل تصویر لوگو */
.logo-img {
    width: 52px;            /* سایز کمی بزرگتر برای وضوح بیشتر */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(43, 89, 162, 0.3)); /* سایه ملایم برای عمق دادن */
    margin-bottom: 5px;     /* فاصله اضافه زیر عکس */
}

/* کانتینر متن‌ها */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;               /* فاصله بین متن انگلیسی و فارسی */
}

/* متن انگلیسی AUTO HUB */
.logo-en {
    font-size: 18px;        /* کمی کوچکتر برای تناسب بهتر در عرض سایدبار */
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1.5px;
    line-height: 1;
    text-transform: uppercase;
}

.logo-en span {
    color: var(--autohub-blue); /* استفاده از متغیر آبی برند */
}

/* متن فارسی اتوهاب */
.logo-fa {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6); /* رنگ ملایم‌تر برای تمرکز روی برند اصلی */
    letter-spacing: 0;
    line-height: 1;
    margin-top: 2px;
}


.sidebar-menu {
    list-style: none;
    padding: 0 10px;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.menu-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    padding: 14px 10px;
    border-radius: 18px;
    transition: all 0.35s ease;
    overflow: hidden;
    border: 1px solid transparent;
}

.menu-link i {
    font-size: 20px;
    transition: 0.35s;
}

.menu-link span {
    font-size: 13px;
    transition: 0.35s;
}

.menu-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(34, 40, 190, 0.18), rgba(91, 137, 198, 0.04));
    opacity: 0;
    transition: 0.35s;
    border-radius: 18px;
}

.menu-link:hover::before,
.menu-link.active::before {
    opacity: 1;
}

.menu-link:hover,
.menu-link.active {
    color: #fff;
    border-color: rgba(91, 105, 198, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(91, 118, 198, 0.12);
}

.menu-link:hover i,
.menu-link.active i {
    color: var(--gold-light);
    transform: scale(1.1);
}

.sidebar-bottom {
    padding: 20px;
    text-align: center;
}

.socials {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.socials a {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    transition: 0.3s;
    border: 1px solid var(--line);
}

.socials a:hover {
    color: var(--gold-light);
    border-color: rgba(43, 89, 162, 0.35);
    transform: translateY(-3px);
}

.main-content {
    margin-right: 138px;
    padding: 0 40px;
}

.section-padding {
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 64px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--gold);
}

.hero-tag {
    display: inline-block;
    color: var(--gold-light);
    border: 1px solid rgba(54, 111, 198, 0.25);
    background: rgba(91, 125, 198, 0.08);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 1px;
}

.hero-content p {
    /* color: var(--muted); */
    font-size: 18px;
    max-width: 700px;
    line-height: 2;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #111;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.35s;
    box-shadow: 0 10px 30px rgba(198,161,91,0.22);
}

.btn-gold:hover {
    transform: translateY(-3px);
    color: #111;
}

.custom-outline {
    border-radius: 14px;
    padding: 14px 28px;
}

.hero-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(198,161,91,0.18), transparent 70%);
    top: -40px;
    left: -40px;
}

.hero-card-inner {
    position: relative;
    z-index: 2;
}

.hero-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.hero-card p {
    color: var(--muted);
    line-height: 1.9;
}

.card-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(33, 77, 238, 0.5), transparent);
    margin: 20px 0;
}

.hero-card ul {
    padding-right: 18px;
}

.hero-card ul li {
    margin-bottom: 12px;
    color: #ddd;
}

.section-head {
    margin-bottom: 50px;
}

.section-head span {
    color: var(--gold-light);
    font-size: 20px;
    letter-spacing: 1px;
}

.section-head h2 {
    font-size: 42px;
    margin-top: 10px;
    font-weight: 800;
}

.about-box,
.contact-box,
.service-card,
.portfolio-item,
.stat-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.about-box {
    padding: 35px;
}

.about-box p {
    color: var(--muted);
    line-height: 2.1;
    font-size: 17px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(198,161,91,0.25);
}

.stat-item h3 {
    color: var(--gold-light);
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--muted);
}

.service-card {
    position: relative;
    padding: 35px;
    overflow: hidden;
    transition: 0.35s;
    min-height: 250px;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(198,161,91,0.25);
}

.service-number {
    font-size: 52px;
    font-weight: 800;
    color: rgba(198,161,91,0.12);
    position: absolute;
    top: 15px;
    left: 20px;
}

.service-card h4 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--muted);
    line-height: 2;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    height: 320px;
    position: relative;
    overflow: hidden;
    transition: 0.35s;
    /* background: */
        /* linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.45)), */
        /* url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1000&q=80') center/cover; */
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.portfolio-overlay h4 {
    margin-bottom: 8px;
}

.portfolio-overlay p {
    color: #d4d4d8;
}

.contact-box {
    padding: 35px;
}

.custom-input {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 16px;
    padding: 16px 20px;
}

.custom-input:focus {
    background: rgba(255,255,255,0.06);
    border-color: rgba(198,161,91,0.4);
    box-shadow: none;
    color: #fff;
}

.custom-input::placeholder {
    color: #888;
}

@media (max-width: 991px) {
    .sidebar {
        width: 90px;
    }

    .menu-link span {
        display: none;
    }

    .logo-text {
        display: none;
    }

    .logo {
        justify-content: center;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .main-content {
        margin-right: 90px;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .section-head h2 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 85px;
        right: 0;
        left: 0;
        border-left: none;
        border-top: 1px solid var(--line);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
    }

    .sidebar-top,
    .sidebar-bottom {
        display: none;
    }

    .sidebar-menu {
        display: flex;
        width: 100%;
        justify-content: space-around;
        align-items: center;
        padding: 0;
    }

    .sidebar-menu li {
        margin-bottom: 0;
    }

    .menu-link {
        padding: 10px;
    }

    .main-content {
        margin-right: 0;
        padding: 0 15px 100px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
.features-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(43, 89, 162, 0.2);
    border-bottom: 1px solid rgba(43, 89, 162, 0.2);
    margin: 40px 0;
}

.feature-card {
    transition: var(--transition);
    padding: 20px;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 32px;
    color: var(--autohub-blue); /* همان آبی لوگوی شما */
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(43, 89, 162, 0.3));
}

.feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.home-cards .section-title{
  color:#fff;
  font-weight:800;
  letter-spacing:.2px;
  margin:0 0 6px;
}
.home-cards .section-subtitle{
  color: var(--text-muted, rgba(255,255,255,.7));
  margin:0;
}

.hub-card{
  position: relative;
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
  padding:18px 18px;
  border-radius:18px;
  text-decoration:none;

  background: linear-gradient(135deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.03)
  );
  border: 1px solid rgba(43, 89, 162, 0.22);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);

  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow:hidden;
}

.hub-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 30% 20%,
    rgba(43,89,162,.35),
    transparent 55%);
  opacity:.0;
  transition: opacity .25s ease;
}

.hub-card__icon{
  width:52px;
  height:52px;
  border-radius:14px;
  display:grid;
  place-items:center;
  flex:0 0 52px;

  background: rgba(43, 89, 162, 0.14);
  border: 1px solid rgba(43, 89, 162, 0.25);
}

.hub-card__icon i{
  font-size:22px;
  color: var(--autohub-blue, #2B59A2);
  filter: drop-shadow(0 0 8px rgba(43, 89, 162, .25));
}

.hub-card__title{
  color:#fff;
  font-weight:800;
  font-size:16px;
  margin:0 0 6px;
}

.hub-card__text{
  color: var(--text-muted, rgba(255,255,255,.7));
  font-size:13px;
  margin:0;
  line-height:1.7;
}

.hub-card__arrow{
  margin-inline-start:auto;
  color: rgba(255,255,255,.7);
  transition: transform .25s ease, color .25s ease;
}

.hub-card:hover{
  transform: translateY(-6px);
  border-color: rgba(43, 89, 162, 0.55);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.hub-card:hover::before{ opacity:1; }

.hub-card:hover .hub-card__arrow{
  transform: translateX(-6px);
  color:#fff;
}

/* Wide cards spacing harmony */
.hub-card--wide{
  padding:20px 20px;
}
/*------------------------------*/
/* Hero Header Styles
/*------------------------------*/
.hero-header {
    position: relative;
    height: 85vh; /* ارتفاع صفحه نمایش، قابل تنظیم */
    background-image: url('../images/hero-1.png'); /* مسیر تصویر پس‌زمینه خودتان */
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    /* border-bottom: 3px solid var(--autohub-blue, #2B59A2); حاشیه آبی رنگ */
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(10, 20, 30, 0.8), /* رنگ تیره با شفافیت بالا */
        rgba(10, 20, 30, 0.6)  /* کمی روشن‌تر در پایین */
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    max-width: 960px; /* حداکثر عرض محتوا */
    margin: auto;
}

.hero-title {
    font-size: 3.5rem; /* اندازه فونت بزرگ */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta .btn {
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 1.1rem;
}

.hero-cta .btn-primary {
    background-color: var(--autohub-blue, #2B59A2);
    border-color: var(--autohub-blue, #2B59A2);
}

.hero-cta .btn-primary:hover {
    background-color: #3a75d0; /* آبی کمی روشن‌تر برای هاور */
    border-color: #3a75d0;
    transform: translateY(-2px);
}

.hero-cta .btn-outline-light {
    background-color: var(--autohub-red);
    border-color: var(--autohub-red);
    color: #fff;
}

.hero-cta .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-header {
        height: 70vh;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta .btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: 90%; /* برای تمام صفحه بودن در موبایل */
        margin-bottom: 10px;
    }
     .hero-cta .btn-outline-light {
        margin-left: 0 !important; /* حذف فاصله چپ */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}
/*------------------------------*/
/* Clients Section Styles
/*------------------------------*/
.clients-section {
    background-color: #0f172a; /* یک سرمه‌ای بسیار تیره و لوکس */
    padding: 80px 0;
}

.section-header h2 {
    color: #fff;
    font-size: 1.8rem;
}

.header-line {
    width: 60px;
    height: 3px;
    background-color: var(--autohub-blue);
    margin: 15px auto;
}

.client-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
}

.client-box img {
    max-width: 80px;
    max-height: 60px;
    filter: grayscale(1) brightness(1.5); /* تبدیل لوگوها به حالت تک‌رنگ و روشن */
    transition: all 0.4s ease;
    opacity: 0.6;
}

.client-box span {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.client-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--autohub-blue);
}

.client-box:hover img {
    filter: grayscale(0) brightness(1); /* در حالت هاور رنگ اصلی لوگو برگردد */
    opacity: 1;
}

.client-box:hover span {
    color: #fff;
}
/* Quality Section Styles */
.quality-section {
    background: linear-gradient(to left, rgba(43, 89, 162, 0.05), transparent);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.quality-content .lead-text {
    font-size: 20px;
    color: #fff;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 20px;
}

.quality-content .description-text {
    color: var(--text-muted);
    line-height: 2;
    text-align: justify;
}

.certifications-grid {
    display: flex;
    justify-content: center; /* این دستور کارت‌ها را کاملاً وسط می‌آورد */
    gap: 20px;
    flex-wrap: wrap; /* اگر تعداد گواهینامه‌ها بیشتر شد، خودکار به سطر بعد می‌روند */
    margin-top: 25px;
}

/* کمی بهبود فاصله برای نمایش بهتر در موبایل */
@media (max-width: 576px) {
    .cert-item {
        width: 100%; /* در موبایل کارت‌ها تمام‌عرض شوند */
        justify-content: center; /* متن و لوگو داخل کارت هم وسط‌چین شود */
        text-align: center;
        flex-direction: column; /* اگر خواستی لوگو برود بالای متن، این را فعال کن */
        gap: 10px;
    }
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    padding: 15px 20px;
    border-radius: 16px;
    border: 1px solid rgba(43, 89, 162, 0.2);
}

.cert-item i {
    font-size: 32px;
    color: var(--gold-light);
}

.cert-item h5 {
    font-size: 16px;
    margin: 0;
    color: #fff;
}

.cert-item span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Grades Box */
.grades-box {
    background: var(--card);
    border: 1px solid var(--line);
    padding: 40px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.grade-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(43, 89, 162, 0.1);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(43, 89, 162, 0.15);
    transition: 0.3s;
}

.grade-card:hover {
    background: rgba(43, 89, 162, 0.15);
    transform: translateX(-5px);
}

.grade-badge {
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(43, 89, 162, 0.3);
}

.grade-info h5 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

.grade-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.lab-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    color: var(--gold-light);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

@media (max-width: 768px) {
    .certifications-grid {
        flex-direction: column;
        gap: 15px;
    }
    .grade-badge {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}
/* استایل لوگوهای گواهینامه */
.cert-logo {
    width: 45px;          /* اندازه مناسب */
    height: 45px;
    object-fit: contain;
    /* filter: brightness(0) invert(1) opacity(0.8); تبدیل لوگوهای رنگی به سفید ملایم */
    transition: 0.3s;
}

/* افکت هاور برای وقتی که کاربر موس را روی آن‌ها می‌برد */
.cert-item:hover .cert-logo {
    filter: brightness(1) invert(0) opacity(1); /* رنگ اصلی لوگو هنگام هاور */
    transform: scale(1.05);
}

/* تنظیم متن کنار لوگو */
.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Educational Section */
.edu-section {
    background: var(--bg);
    position: relative;
}

.edu-card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    padding: 40px 30px;
    border-radius: 24px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    text-align: center;
}

.edu-card:hover {
    background: rgba(43, 89, 162, 0.08);
    border-color: var(--autohub-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.edu-icon {
    width: 70px;
    height: 70px;
    background: rgba(43, 89, 162, 0.1);
    color: var(--autohub-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border-radius: 20px;
    margin: 0 auto 25px;
    transition: 0.3s;
}

.edu-card:hover .edu-icon {
    background: var(--autohub-blue);
    color: #fff;
    transform: rotateY(180deg);
}

.edu-card h4 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.edu-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.edu-link {
    color: var(--autohub-blue);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.7;
    transition: 0.3s;
}

.edu-card:hover .edu-link {
    opacity: 1;
    gap: 12px;
}
/* News Section */
.news-section {
background:
radial-gradient(circle at top left, rgba(0, 0, 0, 0.08), transparent 35%);

position: relative;
border-top: 1px solid var(--line);
}

.news-card {
height: 100%;
background: rgba(255, 255, 255, 0.035);
border: 1px solid var(--line);
border-radius: 26px;
overflow: hidden;
transition: var(--transition);
}

.news-card:hover {
transform: translateY(-8px);
border-color: rgba(43, 89, 162, 0.35);
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.news-image {
display: block;
position: relative;
height: 220px;
overflow: hidden;
text-decoration: none;
}

.news-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: 0.5s ease;
}

.news-card:hover .news-image img {
transform: scale(1.08);
}

.news-image::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.news-badge {
position: absolute;
top: 18px;
right: 18px;
z-index: 2;
background: rgba(43, 89, 162, 0.92);
color: #fff;
padding: 7px 14px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
backdrop-filter: blur(8px);
}

.news-content {
padding: 26px;
}

.news-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 14px;
margin-bottom: 16px;
color: var(--text-muted);
font-size: 13px;
}

.news-meta span {
display: inline-flex;
align-items: center;
gap: 6px;
}

.news-meta i {
color: var(--autohub-blue);
font-size: 14px;
}

.news-content h4 {
margin-bottom: 14px;
line-height: 1.7;
}

.news-content h4 a {
color: #fff;
text-decoration: none;
font-size: 19px;
font-weight: 700;
transition: var(--transition);
}

.news-content h4 a:hover {
color: var(--gold-light);
}

.news-content p {
color: var(--text-muted);
font-size: 14px;
line-height: 2;
margin-bottom: 20px;
}

.news-read-more {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--autohub-blue);
text-decoration: none;
font-size: 14px;
font-weight: 700;
transition: var(--transition);
}

.news-read-more:hover {
gap: 13px;
color: var(--gold-light);
}

/* Responsive */
@media (max-width: 768px) {
.news-image {
height: 200px;
}

.news-content {
padding: 22px;
}

.news-content h4 a {
font-size: 17px;
}
}
/* Home Products */
.products-home {
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.product-mini-card {
    display: block;
    text-align: center;
    padding: 30px 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    transition: 0.35s;
}

.product-mini-card:hover {
    transform: translateY(-8px);
    border-color: var(--autohub-blue);
    background: rgba(43,89,162,0.07);
}

.product-mini-img {
    height: 120px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-mini-img img {
    max-height: 120px;
    width: auto;
}

.product-mini-card h4 {
    font-size: 17px;
    color: #fff;
    margin: 0;
    font-weight: 700;
}
/* Contact Page Styles */
.contact-info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--line);
    height: 100%;
}

.contact-info-card h3 {
    margin-bottom: 25px;
    color: #fff;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--autohub-blue);
    background: rgba(43, 89, 162, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.info-item h5 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--line);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--line);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--autohub-blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(43, 89, 162, 0.1);
}

/* دکمه ارسال */
.contact-form button {
    margin-top: 10px;
    cursor: pointer;
    border: none;
}
/* Services Page Design */
.services-page {
    background: var(--bg);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    padding: 40px;
    border-radius: 24px;
    height: 100%;
    transition: 0.4s ease;
}

.service-card:hover {
    background: rgba(43, 89, 162, 0.08);
    border-color: var(--autohub-blue);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 35px;
    color: var(--autohub-blue);
    margin-bottom: 25px;
    display: inline-block;
    padding: 15px;
    background: rgba(43, 89, 162, 0.1);
    border-radius: 16px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    background: var(--autohub-blue);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 20px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}
/* Products Page */
.products-page .products-hero {
    background:
        radial-gradient(circle at top center, rgba(43, 89, 162, 0.10), transparent 35%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}

.products-categories {
    background: var(--bg);
}

.product-group-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 36px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.product-group-card:hover {
    border-color: rgba(43, 89, 162, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.group-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(43, 89, 162, 0.12);
    border: 1px solid rgba(43, 89, 162, 0.25);
    color: var(--autohub-blue);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.group-header h2 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
}

.group-header p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 2;
    margin: 0;
    max-width: 800px;
}

.group-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 20px;
    background: rgba(43, 89, 162, 0.10);
    border: 1px solid rgba(43, 89, 162, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--autohub-blue);
    font-size: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.product-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none; /* حذف خط زیر لینک */
    position: relative;
    overflow: hidden;
}

.product-item:hover {
    border-color: var(--autohub-blue);
    background: rgba(43, 89, 162, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.product-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-thumb img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.product-name {
    color: #dbe3f2;
    font-size: 15px;
    font-weight: 500;
    flex-grow: 1; /* باعث میشه فضای خالی رو پر کنه تا آیکون به چپ بچسبه */
    transition: color 0.3s ease;
}

.product-item:hover .product-name {
    color: #fff;
}
.product-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--autohub-blue);
    font-size: 20px;
    transition: all 0.3s ease;
}

/* انیمیشن آیکون هنگام هاور */
.product-item:hover .product-link-icon {
    background: var(--autohub-blue);
    color: #fff;
    transform: translateX(-5px); /* حرکت جزیی به سمت چپ در زبان فارسی */
}

/* بهینه سازی برای موبایل */
@media (max-width: 576px) {
    .product-item {
        gap: 12px;
        padding: 10px;
    }
    .product-thumb {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    .product-name {
        font-size: 14px;
    }
    .product-link-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

.product-item::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--autohub-blue);
    font-size: 16px;
}



.products-cta-box {
    margin-top: 10px;
    background: rgba(43, 89, 162, 0.08);
    border: 1px solid rgba(43, 89, 162, 0.18);
    border-radius: 28px;
    padding: 50px 30px;
}

.products-cta-box h3 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 14px;
}

.products-cta-box p {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.9;
}

/* Responsive */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .product-group-card {
        padding: 28px;
    }

    .group-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .group-header h2 {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .product-group-card {
        padding: 20px;
        border-radius: 22px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .group-header h2 {
        font-size: 22px;
    }

    .group-header p {
        font-size: 14px;
    }

    .product-item {
        font-size: 14px;
        min-height: auto;
        padding: 16px 16px 16px 42px;
    }

    .product-item::before {
        right: 14px;
    }

    .products-cta-box {
        padding: 36px 20px;
    }

    .products-cta-box h3 {
        font-size: 22px;
    }
}
/* کانتینر بخش لینک و متن */
.product-info-link {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* متن "مشخصات محصول" */
.info-text {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap; /* جلوگیری از شکستن خط */
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* تغییر رنگ متن هنگام هاور روی کل کارت */
.product-item:hover .info-text {
    color: #fff;
    opacity: 1;
}

/* آیکون دایره‌ای */
.product-link-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--autohub-blue);
    font-size: 18px;
    transition: all 0.3s ease;
}

/* حالت هاور کل کارت */
.product-item:hover .product-link-icon {
    background: var(--autohub-blue);
    color: #fff;
    transform: translateX(-5px);
}

/* بهینه سازی برای موبایل‌های خیلی کوچک */
@media (max-width: 480px) {
    .info-text {
        display: none; /* در موبایل‌های خیلی کوچک فقط آیکون بماند تا فضا کم نیاید */
    }
}
/* Product Detail Page */
.product-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--text-muted);
}
.product-breadcrumb a {
    color: var(--autohub-blue);
    text-decoration: none;
}

.product-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 40px;
}

/* Gallery */
.main-image {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}
.main-image img {
    max-width: 100%;
    height: auto;
}
.thumb-images {
    display: flex;
    gap: 10px;
}
.thumb-images img {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    padding: 5px;
    border: 2px solid transparent;
}
.thumb-images img:hover {
    border-color: var(--autohub-blue);
}

/* Info Box */
.badge-category {
    background: rgba(43, 89, 162, 0.15);
    color: var(--autohub-blue);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}
.product-info-box h1 {
    font-size: 32px;
    margin: 15px 0 25px;
    color: #fff;
}
.quick-specs {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.spec-item .label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}
.spec-item .value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.compatibility-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}
.compatibility-box h5 {
    font-size: 16px;
    color: var(--autohub-blue);
    margin-bottom: 10px;
}

.maintenance-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(43, 89, 162, 0.05);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(43, 89, 162, 0.1);
}
.info-card i {
    font-size: 24px;
    color: var(--autohub-blue);
}
.info-card strong {
    display: block;
    font-size: 14px;
}
.info-card span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Tabs & Table */
.table-specs {
    width: 100%;
    margin-top: 20px;
}
.table-specs td {
    padding: 15px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.table-specs td:nth-child(odd) {
    color: var(--text-muted);
    width: 20%;
}
.table-specs td:nth-child(even) {
    color: #fff;
    width: 30%;
}

@media (max-width: 768px) {
    .maintenance-info { grid-template-columns: 1fr; }
    .product-wrapper { padding: 20px; }
}

.application-info h5 {
    font-size: 16px;
    color: var(--autohub-blue);
    margin-bottom: 10px;
}
