@font-face {
  font-family: "IRANYekanX-Bold";
  font-display: swap;
  src: url("fonts/IRANYekanX-Bold/font.woff");
}
@font-face {
  font-family: "IRANYekanX";
  font-display: swap;
  src: url("fonts/IRANYekanXFaNum-Regular/font.ttf");
}

/* style.css */
:root {
  --bg: #f6f4f1;
  --text: #1f1f1f;
  --muted: #8b8b8b;
  --accent: #b7a16a;
  --border: #e2dfd8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IRANYekanX", sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "IRANYekanX-Bold", sans-serif;
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

/* Top bar */
.top-bar {
  font-size: 13px;
  text-align: center;
  padding: 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

/* Header */

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 242, 236, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 56px;
}

/* brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 30px;
}

.nav-brand img {
  width: 70px;
}

.nav-brand span {
  font-size: 15px;
  letter-spacing: 1.2px;
}

/* nav sides */
.nav-side {
  display: flex;
  gap: 34px;
}

.nav-side:first-child {
  justify-content: flex-end;
}

.nav-side a {
  font-size: 14px;
  color: var(--text);
  position: relative;
  padding-bottom: 6px;
  text-decoration: none;
}

/* underline effect */
.nav-side a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s ease;
}

.nav-side a:hover::after {
  width: 100%;
}

/* ===== ACTIVE MENU (GOLD UNDERLINE) ===== */

.main-header a.nav-active,
.mobile-menu a.nav-active {
  position: relative;
}

.main-header a.nav-active::after,
.mobile-menu a.nav-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 1;
}

/* جلوگیری از override شدن توسط hover قبلی */
.main-header a.nav-active:hover::after,
.mobile-menu a.nav-active:hover::after {
  width: 100% !important;
}

/* mobile */
@media (max-width: 991px) {
  .nav-wrapper {
    grid-template-columns: auto auto;
  }

  .nav-side {
    display: none;
  }
}
/* =========================
   MOBILE HEADER
========================= */

.mobile-header {
  display: none;
}

@media (max-width: 991px) {
  .main-header {
    display: none;
  }

  .mobile-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 16px 18px;
    background: rgba(245, 242, 236, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text);
  }

  .mobile-title {
    text-align: center;
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--text);
  }

  .mobile-logo {
    width: 34px;
    height: 34px;
  }
  .mobile-header-fixed {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9999;
  }

  /* تا محتوا نره زیر هدر */
  body {
    padding-top: 70px;
  }
  .mobile-menu {
    top: 70px; /* ارتفاع mobile-header */
    height: calc(100vh - 70px);
  }
  .mobile-menu-overlay {
    top: 70px;
    height: calc(100vh - 70px);
  }
}
/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: #f5f2ec;
  z-index: 2000;
  padding: 80px 24px;
  transition: left 0.35s ease;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-menu a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

/* overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

/* active */
.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 24px;
}

.mobile-socials a {
  font-size: 18px;
  color: var(--text);
  transition: transform 0.25s ease, color 0.25s ease;
}

.mobile-socials a:hover {
  transform: translateY(-3px);
  color: var(--accent);
}

/* =========================
   HERO SLIDER
========================= */

.hero-slider {
  position: relative;
  height: 800px;
  overflow: hidden;
  background: #f5f2ec;
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 242, 236, 0.55);
  z-index: 1;
}

/* Center content */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glass box */
.hero-glass {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 42px 56px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hero-glass h1 {
  font-size: 46px;
  margin-bottom: 18px;
}

.hero-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 24px;
}

.hero-glass p {
  font-size: 17px;
  color: var(--text);
}

/* Carousel arrows */
.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
  width: 56px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
  opacity: 0.85;
}

/* Mobile */
@media (max-width: 991px) {
  .hero-slider {
    height: 420px;
  }

  .hero-glass {
    padding: 28px 32px;
    margin: 10px;
  }

  .hero-glass h1 {
    font-size: 30px;
  }

  .hero-glass p {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 991px) {
  .logo-wrap img {
    max-height: 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero {
    padding: 80px 0 100px;
  }
}

/* Certificates Section */
.certificates {
  padding: 120px 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.certificate-card {
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  background: transparent;
}

.certificate-card i {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}

.certificate-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.certificate-card span {
  font-size: 13px;
  color: var(--muted);
}

.certificate-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

@media (max-width: 991px) {
  .certificates {
    padding: 80px 0;
  }

  .section-header h2 {
    font-size: 26px;
  }
}

/* Events & Media */
.media-editorial {
  padding: 70px 0;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.media-text h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.media-text p {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
}

.media-text span {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
}

.media-image img {
  width: 100%;
  display: block;
}

@media (max-width: 991px) {
  .media-row {
    grid-template-columns: 1fr;
  }
}

/* branches */
.partners-block {
  padding: 30px 0;
}
.partners-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.partners-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.partner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--border);
  transition: 0.3s ease;
}

.partner-row:hover {
  border-color: var(--accent);
}

.partner-info strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.4px;
}

.partner-info span {
  font-size: 13px;
  color: var(--muted);
}

.partner-actions {
  display: flex;
  gap: 14px;
}

.partner-actions a {
  color: var(--text);
  font-size: 16px;
  transition: 0.3s ease;
}

.partner-actions a:hover {
  color: var(--accent);
}

.partners-image img {
  width: 100%;
  display: block;
}

@media (max-width: 991px) {
  .partners-layout {
    grid-template-columns: 1fr;
  }
  .partner-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* =======================
   Footer (Large & Clean)
======================= */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 80px 0 32px;
}

.footer-brand img {
  max-height: 80px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 320px;
}

.site-footer h5 {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact i {
  color: var(--accent);
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 991px) {
  .site-footer {
    padding: 64px 0 24px;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

/* =====================================================
   Brand Statement – Luxury Visual
===================================================== */

.brand-statement {
  position: relative;
  padding: 160px 0;
  background: linear-gradient(
      rgba(245, 242, 236, 0.85),
      rgba(245, 242, 236, 0.85)
    ),
    url("/images/bg-section.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.statement-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(191, 147, 38, 0.228),
    transparent 60%
  );
}

.statement-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.statement-content h2 {
  font-size: 42px;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.statement-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 32px;
}

.statement-content p {
  font-size: 17px;
  line-height: 2.2;
}

/* Mobile */
@media (max-width: 991px) {
  .brand-statement {
    padding: 120px 0;
  }

  .statement-content h2 {
    font-size: 30px;
  }

  .statement-content p {
    font-size: 15px;
  }
}

/* =========================
   Brand Chain (Connected)
========================= */
.brand-chain {
  padding: 140px 0;
}

/* Wrapper */
.chain-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 80px;
}

/* Horizontal connector line */
.chain-wrapper::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

/* Item */
.chain-item {
  position: relative;
  text-align: center;
  z-index: 1;

  padding: 88px 22px 28px;
  border-radius: 6px;
  background: transparent;

  opacity: 0;
  transform: translateY(40px);

  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s ease, box-shadow 0.45s ease, background-color 0.45s ease;
}

/* Node (dot) */
.chain-item::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 50%;
  transform: translateX(50%);
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 2;
}

/* Vertical connector */
.chain-item::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 50%;
  transform: translateX(50%);
  width: 1px;
  height: 36px;
  background: var(--border);
  z-index: 1;
}

/* Year */
.chain-year {
  display: block;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Title */
.chain-item h3 {
  font-size: 17px;
  margin-bottom: 10px;
  transition: color 0.35s ease;
}

/* Text */
.chain-item p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  transition: color 0.35s ease;
}

/* Hover – Executive */
.chain-item:hover {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.chain-item:hover h3 {
  color: var(--accent);
}

.chain-item:hover p {
  color: var(--text);
}

.chain-item:hover::before {
  transform: translateX(50%) scale(1.35);
  box-shadow: 0 0 0 6px rgba(183, 161, 106, 0.15);
}

/* Active step (scroll synced) */
.chain-item.active::before {
  box-shadow: 0 0 0 6px rgba(183, 161, 106, 0.18),
    0 0 22px rgba(183, 161, 106, 0.35);
}

.chain-item.active h3 {
  color: var(--accent);
}

/* =========================
   Mobile (Vertical Chain)
========================= */

@media (max-width: 991px) {
  .chain-wrapper {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .chain-wrapper::before {
    top: 0;
    bottom: 0;
    right: 50%;
    left: auto;
    width: 1px;
    height: 100%;
  }

  .chain-item {
    padding: 24px 24px 24px 56px;
    text-align: right;
  }

  .chain-item::before {
    top: 24px;
    right: auto;
    left: -6px;
    transform: none;
  }

  .chain-item::after {
    display: none;
  }
}

/* selection category  */
.category-carousel {
  padding: 120px 0;
}

.category-card {
  text-align: center;
}

.category-card img {
  width: 100%;
  display: block;
  margin-bottom: 12px;
}

.category-card h3 {
  font-size: 14px;
  letter-spacing: 0.4px;
}
/* =========================
   Category Carousel Controls
========================= */
.category-swiper {
  padding: 50px 0;
}

.categorySwiper {
  position: relative;
}

/* Slides */
.category-card {
  text-align: center;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  display: block;
  margin-bottom: 12px;

  /* default */
  filter: grayscale(100%);
  transform: scale(1);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.category-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.category-card h3 {
  font-size: 14px;
  letter-spacing: 0.4px;
}

/* Arrows close to edges */
.categorySwiper .swiper-button-next,
.categorySwiper .swiper-button-prev {
  color: #000;
  width: 40px;
}

/* =======================
   Official Contact
======================= */

.official-contact {
  padding: 70px 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-box {
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--text);
}

.contact-box i {
  display: block;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}

@media (max-width: 991px) {
  .official-contact {
    padding: 80px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Event CTA Button ===== */
.event-cta {
  margin-top: 28px;
}

.btn-view-events {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 40px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Hover */
.btn-view-events:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 32px rgba(183, 161, 106, 0.35);
  transform: translateY(-2px);
}

/* Active */
.btn-view-events:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(183, 161, 106, 0.25);
}

/* ===== Latest News ===== */
.latest-news {
  padding: 120px 0;
  background: #f9f7f3;
}

.section-head {
  text-align: center;
  margin-bottom: 72px;
}

.section-head h2 {
  font-size: 32px;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 15px;
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.news-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.45s ease, transform 0.45s ease;
}

.news-content {
  padding: 26px 24px 32px;
  text-align: center;
}

.news-content h3 {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.news-link {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

.news-link::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: var(--accent);
  margin: 6px auto 0;
  transition: width 0.3s ease;
}

/* Hover */
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.news-card:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.news-card:hover .news-link::after {
  width: 40px;
}
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.news-body {
  padding: 26px 24px 0;
  text-align: center;
}

.news-body h3 {
  font-size: 16px;
  line-height: 1.8;
}

.news-footer {
  margin-top: auto; /* 👈 کلید هم‌ترازی */
  padding: 18px 24px 28px;
  text-align: center;
}

/* Mobile */
@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .latest-news {
    padding: 90px 0;
  }
}
