:root {
  --navy-950: #0a1420;
  --navy-900: #0f1d2e;
  --navy-800: #17283d;
  --yellow: #f7c31a;
  --red: #b31f1f;
  --yellow-soft: #fff6d6;
  --amber-link: #9a6b00;
  --green: #3a7d1c;
  --text: #1c2735;
  --muted: #5d6b7d;
  --surface: #f3f5f8;
  --border: #e3e8ef;
  --radius: 12px;
  --gap: 1.25rem;
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: bold;
    src: url("../fonts/woff/IRANSansWeb_Bold.woff") format("woff"); /* All Major Browsers */
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/woff/IRANSansWeb_Medium.woff") format("woff"); /* All Major Browsers */
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/woff/IRANSansWeb_Light.woff") format("woff"); /* All Major Browsers */
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url("../fonts/woff/IRANSansWeb_UltraLight.woff") format("woff"); /* All Major Browsers */
}
@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/woff/IRANSansWeb.woff") format("woff"); /* All Major Browsers */
}

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

[hidden] {
  display: none !important;
}

body {
  font-family: "IRANSans";
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
}

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

.lucide {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.text-yellow {
  color: var(--yellow);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--navy-900);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
  transform: scale(1.06);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy-900);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-login:hover {
  background: #e9b40f;
  color: var(--navy-900);
  box-shadow: 0 6px 16px rgba(247, 195, 26, 0.35);
  transform: translateY(-1px);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(15, 29, 46, 0.04);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-900);
}

.brand-icon {
  width: 36px;
  height: 36px;
  color: var(--yellow);
  stroke-width: 2.5;
}

.brand-word {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  direction: rtl;
}

.brand-light {
  color: #ffffff;
}

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(15, 29, 46, 0.08);
}

.main-nav.is-open {
  display: flex;
}

.nav-link-daha {
  position: relative;
  padding: 0.5rem 0.25rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link-daha::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link-daha:hover,
.nav-link-daha.is-active {
  color: var(--navy-900);
}

.nav-link-daha:hover::after,
.nav-link-daha.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: inline-flex;
}

@media (min-width: 1200px) {
  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .search-btn {
    display: none;
  }

  .btn-login span {
    display: none;
  }

  .btn-login {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
}

/* Hero */

.hero {
  position: relative;
  height: 460px;
  overflow: hidden;
  background: var(--navy-900);
  color: #ffffff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to left, rgba(10, 20, 32, 0.88) 0%, rgba(10, 20, 32, 0.55) 55%, rgba(10, 20, 32, 0.15) 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 6s ease-out;
}

.hero-slide.is-active .hero-image {
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 640px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-slide.is-active .hero-content > * {
  animation: hero-rise 0.8s ease both;
}

.hero-slide.is-active .hero-content > :nth-child(2) {
  animation-delay: 0.1s;
}

.hero-slide.is-active .hero-content > :nth-child(3) {
  animation-delay: 0.2s;
}

.hero-slide.is-active .hero-content > :nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
}

.hero-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  color: #ffffff;
}

.hero-text {
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary-daha,
.btn-outline-daha {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-daha {
  /*background: var(--yellow);*/
  color: var(--navy-900);
  font-weight: 700;
}

.btn-primary-daha:hover {
  background: #e9b40f;
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(247, 195, 26, 0.35);
}

.btn-outline-daha {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-daha:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(10, 20, 32, 0.5);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-arrow-left {
  left: 1rem;
}

.hero-arrow-right {
  right: 1rem;
}

.hero-arrow:hover {
  background: var(--yellow);
  color: var(--navy-900);
}

.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dot.is-active {
  width: 26px;
  background: var(--yellow);
}

@media (max-width: 767.98px) {
  .hero {
    height: 540px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }

  .hero-arrow-left {
    left: 0.5rem;
  }

  .hero-arrow-right {
    right: 0.5rem;
  }
}

/* Features */

.features {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.feature-item {
  position: relative;
  padding: 1.75rem 0.75rem;
  text-align: center;
}

.feature-item + .feature-item::before {
  content: '';
  position: absolute;
  top: 22%;
  bottom: 22%;
  right: 0;
  width: 1px;
  background: var(--border);
}

.feature-icon {
  height: 36px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
}

.feature-icon .lucide {
  width: 34px;
  height: 34px;
  stroke-width: 1.75;
}

.feature-title {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--navy-900);
}

.feature-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 991.98px) {
  .feature-item + .feature-item::before {
    display: none;
  }
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section-tight {
  padding-top: 1rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.4rem;
  color: var(--navy-900);
}

.section-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--navy-900);
  flex-shrink: 0;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--amber-link);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s ease, gap 0.2s ease;
}

.section-link:hover {
  color: var(--navy-900);
  gap: 0.5rem;
}

/* Carousels */

.carousel {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.25rem 0.25rem 0.75rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track > * {
  flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
  scroll-snap-align: start;
}

.course-track > * {
  flex-basis: calc((100% - 2 * var(--gap)) / 3);
}

.carousel-btn {
  position: absolute;
  top: 45%;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--navy-900);
  box-shadow: 0 6px 16px rgba(15, 29, 46, 0.12);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--navy-900);
  color: #ffffff;
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-btn-left {
  left: -20px;
}

.carousel-btn-right {
  right: -20px;
}

@media (max-width: 991.98px) {
  .carousel-track > * {
    flex-basis: calc((100% - var(--gap)) / 2);
  }

  .course-track > * {
    flex-basis: calc((100% - var(--gap)) / 2);
  }
}

@media (max-width: 767.98px) {
  .carousel-btn {
    display: none;
  }

  .carousel-track > *,
  .course-track > * {
    flex-basis: 82%;
  }
}

/* Cards */

.activity-card,
.course-card,
.report-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover,
.course-card:hover,
.report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 29, 46, 0.12);
}

.activity-media,
.course-media,
.report-media {
  position: relative;
  overflow: hidden;
}

.activity-media {
  height: 180px;
}

.course-media,
.report-media {
  height: 150px;
}

.activity-media img,
.course-media img,
.report-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover img,
.course-card:hover img,
.report-card:hover img {
  transform: scale(1.05);
}

.activity-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-accent {
  background: var(--yellow);
  color: var(--navy-900);
}

.badge-success {
  background: var(--green);
  color: #ffffff;
}

.badge-hard {
    background: var(--red);
    color: #ffffff;
}

.activity-body,
.course-body,
.report-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.1rem 1.1rem;
}

.activity-body {
  text-align: right;
}

.course-body,
.report-body {
  align-items: center;
  text-align: center;
}

.activity-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy-900);
}

.activity-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted);
}

.activity-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-meta .lucide {
  width: 15px;
  height: 15px;
}

.course-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.course-date .lucide {
  width: 15px;
  height: 15px;
}

.activity-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--amber-link);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.activity-cta .lucide {
  width: 15px;
  height: 15px;
}

.activity-card:hover .activity-cta,
.course-card:hover .activity-cta,
.report-card:hover .activity-cta {
  color: var(--navy-900);
}

/* News */

.news-panel {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding-left: 3.25rem;
  overflow: hidden;
}

.news-arrows {
  position: absolute;
  top: 50%;
  left: 0.6rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-arrows .icon-btn {
  width: 32px;
  height: 32px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item:hover {
  background: var(--surface);
}

.news-text {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.news-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--navy-900);
}

.news-excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.news-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.news-thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}

/* Footer */

.site-footer {
  position: relative;
  color: #d7dee8;
  background:
    linear-gradient(to right, rgba(15, 29, 46, 0.97) 0%, rgba(15, 29, 46, 0.92) 55%, rgba(15, 29, 46, 0.55) 100%),
    url('../img/bg-photo-5285254.jpg') center / cover no-repeat,
    var(--navy-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 1.1fr 1fr;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.footer-col {
  min-width: 0;
  padding: 0.25rem 1.5rem;
}

.footer-col:first-child {
  padding-left: 0;
}

.footer-col + .footer-col {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  direction: ltr;
  text-align: left;
}

.footer-about {
  direction: rtl;
  text-align: right;
  margin: 1.1rem 0 1.5rem;
  font-size: 0.9rem;
  line-height: 1.9;
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
  background: var(--yellow);
  color: var(--navy-900);
  transform: translateY(-2px);
}

.footer-heading {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: #ffffff;
  text-align: center;
}

.footer-links,
.footer-contact {
  width: max-content;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: #d7dee8;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-contact li {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-contact .lucide {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}

.footer-contact a {
  color: #d7dee8;
}

.footer-contact a:hover {
  color: var(--yellow);
}

.footer-art {
  min-height: 160px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 0.875rem;
}

.copyright {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: #d7dee8;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--yellow);
}

@media (max-width: 991.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col:first-child {
    padding-left: 1.5rem;
  }

  .footer-col:nth-child(3) {
    border-left: 0;
  }

  .footer-art {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-col,
  .footer-col:first-child {
    padding: 0;
    border-left: 0 !important;
  }

  .footer-heading {
    text-align: right;
  }

  .footer-links,
  .footer-contact {
    width: auto;
    margin: 0;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
