/* ================== Fonts ================== */
@font-face {
  font-family: "IranYekan";
  src: url("/public/assets/fonts/IranYekan/fonts/woff2/IRANYekanWebLight.woff2");
}
@font-face {
  font-family: "IranYekanEB";
  src: url("/public/assets/fonts/IranYekan/fonts/woff2/IRANYekanWebExtraBold.woff2");
}

/* ================== Variables ================== */
:root {
  --primary:       #4fa3e3;
  --primary-light: #84c7f7;
  --primary-pale:  #e8f4fd;
  --primary-hover: #3189cc;
  --accent:        #2271b3;

  --bg:            #ffffff;
  --bg-soft:       #f4faff;
  --bg-section:    #eef7ff;

  --text:          #0d2137;
  --text-muted:    #5a7a94;
  --text-light:    #94afc8;

  --border:        rgba(79,163,227,.18);
  --border-solid:  #daeaf8;

  --shadow-sm:  0 2px 12px rgba(79,163,227,.10);
  --shadow-md:  0 8px 32px rgba(79,163,227,.14);
  --shadow-lg:  0 20px 60px rgba(79,163,227,.18);
  --shadow-btn: 0 8px 24px rgba(49,137,204,.28);

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ================== Reset ================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ================== Container ================== */
.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.category-title-h{
  font-family: "IranYekanEB";
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: var(--text) !important;
    margin-bottom: 12px;
    position: relative;
    animation: fadeUp .5s .05s both;
}

/* ================== Navbar ================== */


/* ================== Hero Title ================== */
.hero-title {
  padding: 130px 24px 70px;
  text-align: center;
  /* background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(79,163,227,.18) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); */
  position: relative;
  overflow: hidden;
}
.hero-title::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,163,227,.10), transparent 70%);
  pointer-events: none;
}
.hero-title h1 {
  font-family: "IranYekanEB";
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  animation: fadeUp .5s .05s both;
}
.hero-title h1::after {
  content: "";
  display: block;
  width: 60px; height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0a66c2, #0b2b5b);
}
.hero-title p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
  animation: fadeUp .5s .15s both;
  position: relative;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  cursor: pointer;
}

.hero-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}


/* ================== Products Section ================== */
/* ================== Products Section ================== */
.products-section {
  padding: 80px 0;
  position: relative;
}

.container-custom-categories {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  border-radius: 48px;
}

.section-padding {
  padding: 0;
}

/* عنوان بخش */
.category-title {
  text-align: center;
  margin-bottom: 56px;
}

.category-title h2 {
  font-family: "IranYekanEB", sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #0b2b5b, #0a66c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.category-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0a66c2, #0b2b5b);
  border-radius: 100px;
}

.category-title p {
  color: #5a6e8a;
  font-size: 15px;
  max-width: 550px;
  margin: 20px auto 0;
}

/* گرید کارت‌ها */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  max-width: 750px;
  margin: 0 auto;
}

/* کارت */
.category-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 40px 30px;
  width: 100%;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -16px rgba(10, 102, 194, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  background: #ffffff;
}

/* آیکون */
.icon-wrapper {
  flex-shrink: 0;
  margin-bottom: 20px;
}

.icon-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
  border-radius: 24px;
  transition: all 0.35s ease;
  flex-shrink: 0;
  margin: 0 auto;
}

.category-card:hover .icon-boxes {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(10, 102, 194, 0.08));
  transform: scale(1.03);
}

.icon-boxes img {
  width: 42px;
  height: 42px;
  display: block;
  transition: all 0.35s ease;
}

.category-card:hover .icon-boxes img {
  transform: scale(1.05);
}

/* محتوای کارت */
.card-content {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.card-content h3 {
  font-family: "IranYekanEB", sans-serif;
  font-size: 18px;
  color: #004182;
  margin-bottom: auto;
  padding-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
}

/* دکمه */
.card-content a {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0a66c2, #0b2b5bce);
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 20px;
  border-radius: 16px;
  font-family: "IranYekan", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.card-content a:hover {
  background: linear-gradient(135deg, #0b5aad, #091f3e);
  transform: translateY(-2px);
}

.card-content a svg {
  transition: transform 0.3s ease;
}

.card-content a:hover svg {
  transform: translateX(4px);
}

/* وقتی فقط یک کارت هست */
@media (min-width: 768px) {
  .category-grid:has(.category-card:only-child) {
    grid-template-columns: minmax(290px, 400px);
    justify-content: center;
  }
}

/* ========== ریسپانسیو ========== */
@media (max-width: 991px) {
  .container-custom-categories {
    padding: 40px 24px;
    border-radius: 36px;
  }
  
  .category-grid {
    gap: 20px;
  }
  
  .category-card {
    padding: 30px 24px;
    border-radius: 24px;
  }
  
  .icon-boxes {
    width: 60px;
    height: 60px;
    border-radius: 20px;
  }
  
  .icon-boxes img {
    width: 36px;
    height: 36px;
  }
  
  .card-content h3 {
    font-size: 17px;
  }
  
  .card-content a {
    padding: 10px 18px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .products-section {
    padding: 50px 0;
  }
  
  .container-custom-categories {
    padding: 28px 16px;
    border-radius: 28px;
  }
  
  .category-title {
    margin-bottom: 32px;
  }
  
  .category-title h2 {
    font-size: 24px;
  }
  
  .category-title p {
    font-size: 13px;
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 100%;
  }
  
  .category-card {
    height: auto;
    min-height: 260px;
    padding: 24px 20px;
    justify-content: space-between;
  }
  
  .icon-wrapper {
    margin-bottom: 16px;
  }
  
  .icon-boxes {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }
  
  .icon-boxes img {
    width: 32px;
    height: 32px;
  }
  
  .card-content {
    height: auto;
    min-height: 120px;
  }
  
  .card-content h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-top: 0;
  }
  
  .card-content a {
    padding: 10px 16px;
    font-size: 12px;
    margin-top: 53px;
  }
  
  .card-content a svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .container-custom-categories {
    padding: 20px 12px;
  }
  
  .category-card {
    padding: 20px 16px;
    min-height: 240px;
  }
  
  .icon-boxes {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
  
  .icon-boxes img {
    width: 28px;
    height: 28px;
  }
  
  .card-content h3 {
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .card-content a {
    padding: 8px 14px;
    font-size: 11px;
  }
}

/* انیمیشن ورود */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card {
  animation: fadeUp 0.5s both;
}

.category-card:nth-child(1) { animation-delay: 0.05s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.15s; }
.category-card:nth-child(4) { animation-delay: 0.2s; }
.category-card:nth-child(5) { animation-delay: 0.25s; }
.category-card:nth-child(6) { animation-delay: 0.3s; }
.category-card:nth-child(7) { animation-delay: 0.35s; }
.category-card:nth-child(8) { animation-delay: 0.4s; }
/* ================== CTA Section ================== */




/* وقتی پایین صفحه است (در فوتر) از sticky در میاد */
.cta-section.cta-passed {
  position: relative;
  box-shadow: none;
}

.cta-subtitle{
  color: white;
}

.cta-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  top: -200px;
  right: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.cta-title {
  font-family: "IranYekanEB";
  font-size: clamp(1rem, 2.5vw, 1.3rem); /* کوچکتر */
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px; /* کمتر از قبل */
  position: relative;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text);
  padding: 11px 30px; /* کمی کوچکتر */
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  transition: all var(--transition);
  position: relative;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #fff, #daeef9);
}