/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  font-family: IRANSans, sans-serif !important;
  background: #0a0612;
  color: #fff;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero,
.intro,
.awards,
.media {
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4, h5, h6, p, a, span, nav {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Section 1: Hero ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 4, 14, 0.72) 0%, rgba(8, 4, 14, 0.58) 45%, rgba(8, 4, 14, 0.78) 100%),
    radial-gradient(ellipse at center, rgba(60, 28, 95, 0.22) 0%, rgba(8, 4, 14, 0.68) 70%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 32px 48px;
}

/* ===== Site Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: clamp(16px, 2.5vw, 24px) clamp(20px, 4vw, 48px);
  background: rgba(8, 4, 14, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.site-header--light {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.site-header--light .hero__nav-link {
  color: #3a3a3a;
}

.site-header--light .hero__nav-link:hover {
  color: #a8894f;
}

.site-header--light .hero__logo img {
  filter: brightness(0.85) saturate(0.9);
}

/* Header */
.hero__header {
  margin-bottom: 0;
}

.hero__logo img {
  width: clamp(72px, 10vw, 120px);
  height: auto;
}

.hero__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  direction: rtl;
}

.hero__nav-link {
  font-size: clamp(12px, 1.4vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.01em;
  transition: color 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}

.hero__nav-link:hover {
  color: #d4af6a;
}

.hero__nav-link--active {
  color: #d4af6a;
  font-weight: 700;
}

.site-header--light .hero__nav-link--active {
  color: #a8894f;
}

.site-header--light .hero__nav-link--active:hover {
  color: #8f7340;
}

.hero__header-spacer {
  width: clamp(72px, 10vw, 120px);
  visibility: hidden;
}

/* Hero body */
.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 0 24px;
  gap: clamp(20px, 3vh, 36px);
}

.hero__center-logo {
  width: clamp(180px, 38vw, 420px);
  margin: 0 auto;
}

.hero__title {
  margin: 0;
  font-size: clamp(22px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero__date {
  margin: 0;
  font-family: 'IRANSans FaNum', IRANSans, sans-serif;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

/* Marquee */
.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  direction: ltr;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 1) 22%,
    rgba(0, 0, 0, 1) 78%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 8%,
    rgba(0, 0, 0, 1) 22%,
    rgba(0, 0, 0, 1) 78%,
    rgba(0, 0, 0, 0.35) 92%,
    transparent 100%
  );
}

.marquee--top {
  margin-bottom: clamp(8px, 2vh, 16px);
}

.marquee--bottom {
  margin-top: clamp(8px, 2vh, 16px);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll var(--marquee-duration, 45s) linear infinite;
}

@keyframes marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--marquee-shift, -50%), 0, 0);
  }
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__item {
  flex-shrink: 0;
  direction: rtl;
  padding: 0 clamp(28px, 5vw, 64px);
  font-size: clamp(18px, 3.2vw, 18px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  user-select: none;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

/* ===== Section 2: Intro ===== */
.intro {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #f8f6f2;
  background-image: url('https://testo.s3.ir-thr-at1.arvanstorage.ir/img/trophy-2.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #3a3a3a;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px);
  isolation: isolate;
}

.intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.82) 45%, rgba(255, 255, 255, 0.93) 100%);
  z-index: 0;
}

.intro__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
}

.intro__content {
  width: min(100%, 640px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.intro__logo {
  width: clamp(120px, 18vw, 200px);
  height: auto;
  filter: brightness(0.85) saturate(0.9);
}

.intro__title {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  color: #a8894f;
}

.intro__text {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 400;
  line-height: 2;
  color: #454545;
  text-align: justify;
}

.intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 80px);
  margin-top: clamp(4px, 1vw, 12px);
}

.intro__meta-label {
  margin: 0 0 8px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  color: #2e2e2e;
}

.intro__meta-value {
  margin: 0;
  font-family: 'IRANSans FaNum', IRANSans, sans-serif;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 400;
  line-height: 1.7;
  color: #454545;
}

.intro__countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(8px, 2vw, 16px);
  direction: ltr;
}

.intro__countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.intro__countdown-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 10vw, 96px);
  height: clamp(72px, 10vw, 96px);
  background: #b0946e;
  border-radius: 6px;
}

.intro__countdown-value {
  font-family: 'IRANSans FaNum', IRANSans, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.intro__countdown-label {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 500;
  color: #3a3a3a;
}

/* ===== Section 3: Awards ===== */
.awards {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(88, 42, 130, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(168, 137, 79, 0.12) 0%, transparent 50%),
    #0a0612;
}

.awards__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(88px, 12vw, 120px) clamp(24px, 5vw, 72px) clamp(40px, 6vw, 64px);
}

.awards__heading {
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #d4af6a;
  letter-spacing: -0.01em;
}

.awards__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  text-align: right;
}

.awards__voting {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 106, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.awards__subheading {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: #d4af6a;
}

.awards__text {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 400;
  line-height: 2;
  color: rgba(255, 255, 255, 0.78);
  text-align: justify;
}

.awards__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vw, 20px);
}

.awards__item {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  padding: clamp(16px, 2.5vw, 22px) clamp(20px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 106, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.awards__item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 175, 106, 0.38);
}

.awards__number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 6vw, 52px);
  height: clamp(40px, 6vw, 52px);
  font-family: 'IRANSans FaNum', IRANSans, sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #0a0612;
  background: linear-gradient(135deg, #d4af6a 0%, #a8894f 100%);
  border-radius: 50%;
}

.awards__name {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
  flex: 1;
}

.awards__name--featured {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.awards__name-sub {
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.4;
}

.awards__name-main {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

/* ===== Section 4: News & Videos ===== */
.media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 30% 15%, rgba(88, 42, 130, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(168, 137, 79, 0.1) 0%, transparent 50%),
    #0a0612;
}

.media__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(88px, 12vw, 120px) clamp(24px, 5vw, 72px) clamp(40px, 6vw, 64px);
}

.media__heading {
  margin: 0 0 clamp(24px, 4vw, 36px);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  color: #d4af6a;
  text-align: right;
}

.media__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.media__status {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  text-align: right;
  grid-column: 1 / -1;
}

.media__status--error {
  color: #e08a8a;
}

.media__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 106, 0.16);
  border-radius: 10px;
  color: inherit;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.media__card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 175, 106, 0.36);
  transform: translateY(-2px);
}

.media__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.media__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__duration {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 2px 6px;
  font-family: 'IRANSans FaNum', IRANSans, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 4px;
  direction: ltr;
}

.media__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  transition: background 0.3s ease;
}

.media__card:hover .media__play {
  background: rgba(0, 0, 0, 0.42);
}

.media__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
  min-width: 0;
}

.media__date {
  font-family: 'IRANSans FaNum', IRANSans, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
}

.media__title {
  margin: 0;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Footer ===== */
.site-footer {
  background: #07040f;
  border-top: 1px solid rgba(212, 175, 106, 0.14);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 5vw, 72px);
}

.site-footer__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.site-footer__text,
.site-footer__contact {
  margin: 0;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 400;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__phone {
  font-family: 'IRANSans FaNum', IRANSans, sans-serif;
  font-weight: 500;
  color: #d4af6a;
  direction: ltr;
  unicode-bidi: embed;
  transition: color 0.25s ease;
}

.site-footer__phone:hover {
  color: #e8c882;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero__inner {
    padding: 16px 20px 32px;
  }

  .hero__header,
  .site-header__inner {
    flex-direction: column;
    gap: 20px;
    transition: gap 0.3s ease;
  }

  .hero__logo {
    overflow: hidden;
    max-height: 56px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
  }

  .site-header--logo-hidden .hero__logo {
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    margin: 0;
    pointer-events: none;
  }

  .site-header--logo-hidden .site-header__inner {
    gap: 0;
  }

  .hero__nav {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }

  .hero__header-spacer {
    display: none;
  }

  .hero__body {
    padding: 16px 0;
  }

  .marquee__item {
    padding: 0 24px;
  }

  .intro__inner {
    justify-content: center;
  }

  .intro__content {
    width: 100%;
  }

  .intro__meta {
    gap: 24px 40px;
  }

  .awards__body {
    grid-template-columns: 1fr;
  }

  .media__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__nav-link {
    font-size: 12px;
  }

  .hero__title {
    font-size: 20px;
  }

  .hero__date {
    font-size: 15px;
  }
}
