/* ============================================
   HUBS.CSS - صفحه هاب‌های تخصصی
   ============================================ */

/* ---------- بخش قهرمان ---------- */
.hero {
  padding: 60px 0 75px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}
.hero-content h1 {
  font-size: 40px;
  line-height: 1.8;
  color: var(--blue);
  margin-bottom: 10px;
}
.hero-content h2 {
  font-size: 20px;
  color: var(--cyan);
  line-height: 2;
  margin-bottom: 18px;
}
.hero-content p {
  font-size: 16px;
  line-height: 2.4;
  text-align: justify;
  color: #526276;
}
.hero-actions {
  display: flex;
  gap: 15px;
  margin-top: 28px;
}
.hero-logo {
  text-align: center;
}
.hero-logo img {
  width: 250px;
  filter: drop-shadow(0 20px 40px rgba(0, 166, 166, 0.3));
}

/* ---------- بخش عمومی ---------- */
.section {
  padding: 65px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 30px;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-title p {
  font-size: 15px;
  color: var(--gray);
}

/* ---------- باکس معرفی ---------- */
.about-box {
  background: #fff;
  padding: 35px;
  border-radius: 28px;
  border: 1px solid rgba(0, 166, 166, 0.12);
  box-shadow: var(--shadow);
  line-height: 2.4;
  text-align: justify;
}

/* ---------- کارت‌های هاب ---------- */
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 35px;
}
.hub-card {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 166, 166, 0.12);
  transition: var(--transition);
}
.hub-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 45px rgba(0, 166, 166, 0.15);
}
.hub-card h3 {
  text-align: center;
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 14px;
}
.hub-card p {
  font-size: 14px;
  line-height: 2.2;
  text-align: justify;
  color: #526276;
}
.hub-card a {
  display: block;
  text-align: center;
  margin-top: 18px;
  text-decoration: none;
  color: var(--cyan);
  transition: var(--transition);
}
.hub-card a:hover {
  color: var(--blue);
}

/* ---------- بخش لینک‌های هاب (پس‌زمینه تیره) ---------- */
.eco-links {
  background: var(--dark);
  padding: 70px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.eco-links:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/fbac.png") repeat-x center/auto 130px,
    radial-gradient(circle at center, rgba(0, 166, 166, 0.35), transparent 50%);
  opacity: 0.35;
}
.eco-links .container {
  position: relative;
  z-index: 2;
}
.eco-links h2 {
  color: #fff;
}
.eco-links .section-title p {
  color: #cbd5e1;
}

.hub-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.hub-item {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition);
}
.hub-item:hover {
  background: rgba(0, 166, 166, 0.35);
  transform: translateY(-5px);
}
.hub-item a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

/* ---------- CTA ---------- */
.cta {
  margin: 65px auto;
  padding: 45px 35px;
  border-radius: 32px;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  text-align: center;
  color: #fff;
}
.cta h2 {
  font-size: 30px;
  margin-bottom: 15px;
}
.cta p {
  line-height: 2.3;
  margin-bottom: 25px;
}
.cta a {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  padding: 11px 35px;
  border-radius: 35px;
  text-decoration: none;
  transition: var(--transition);
}
.cta a:hover {
  transform: scale(1.05);
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-logo {
    order: -1;
  }
  .hero-logo img {
    width: 170px;
  }
  .hubs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hub-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 40px 0;
  }
  .hero-logo img {
    width: 125px;
  }
  .hero-content h1 {
    font-size: 27px;
  }
  .hero-content h2 {
    font-size: 16px;
  }
  .hero-content p {
    font-size: 13px;
    line-height: 2.1;
  }
  .hubs-grid {
    grid-template-columns: 1fr;
  }
  .hub-links {
    grid-template-columns: 1fr 1fr;
  }
}