@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

@font-face {
    font-family: yekan;
    src: url(../fonts/BYekan/iran_yekan_mobile_medium.ttf);
}

@keyframes twinkleStars {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

@keyframes floatMove {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes goldenGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3);
  }
}

:root {
  --black: #000000;
  --charcoalNavy: #151d27;
  --charcoalBlue: #161E27;
  --gunmetal: #1D2B3A;
  --slateNavy: #1b2735;
  --deepSpace: #090a0f;
  --white: #FFFFFF;
  --lightGray: #EEEEEE;
  --lightSilver: #CCCCCC;
  --skyBlue: #00AEFF;
  --aqua: #00c4aa;
  --gold: #FFD700;
  --silver: #C0C0C0;
  --bronze: #CD7F32;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: yekan;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: radial-gradient(ellipse at bottom, var(--slateNavy) 0%, var(--deepSpace) 100%);
  color: var(--white);
  font-family: "Vazirmatn", sans-serif;
  font-optical-sizing: auto;
}

#main {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Stars */
.stars {
  width: 2px;
  height: 2px;
  background: var(--white);
  position: absolute;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkleStars 2s infinite ease-in-out;
}

/* Header codes */
/* Header codes */
header {
  width: 100%;
  padding: 0.7rem 2rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

header .brandmark a img {
  margin: 5px 0 0 0;
  max-width: 173px;
  height: auto;
  transition: max-width 0.3s ease;
}

header nav {
  direction: rtl;
  display: flex;
  gap: 1.5rem;
  position: relative;
  --indicator-left: 0;
  --indicator-width: 0;
  --indicator-opacity: 0;
}

header nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--indicator-left);
  width: var(--indicator-width);
  height: 2px;
  background: var(--skyBlue);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: var(--indicator-opacity);
  pointer-events: none;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--skyBlue);
}

header nav a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.4s ease;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  position: relative;
}

header nav a:hover,
header nav a.active {
  color: var(--skyBlue);
}

header nav a[href="register-info"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 25px;
  border-bottom: none !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  font-weight: bold;
  transition: all 0.3s ease;
}

header nav a[href="register-info"]:hover {
  background: linear-gradient(135deg, #7c8ef5 0%, #8a5cb8 100%);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  border-bottom: none !important;
}

header .menuToggleButton {
  display: none;
  background: transparent;
  color: var(--white);
  border: none;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  transition: background 0.5s ease;
  cursor: pointer;
  font-size: 2rem;
}

header .menuToggleButton.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main article codes */
main article .introduction {
  direction: rtl;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: 100px;
}

main article .introduction .introductionContent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  gap: 2rem;
}

main article .introduction .introductionContent .introductionTextContent {
  flex: 1 1 300px;
  margin: 0 10px 0 0;
}

main article .introduction .introductionContent .introductionTextContent h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  line-height: 1.4;
}

main article .introduction .introductionContent .introductionTextContent h1 p {
  margin: 0;
}

.golden-highlight {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  animation: goldenGlow 3s ease-in-out infinite;
  display: inline-block;
}

main article .introduction .introductionContent .introductionTextContent p {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
}

main article .introduction .introductionContent .introductionTextContent a {
  position: relative;
  text-decoration: none;
  display: inline-block;
  background: inherit;
  color: var(--white);
  box-shadow: 0 0 8px var(--skyBlue);
  border: 3px solid var(--skyBlue);
  border-radius: 8px;
  padding: 0.3rem 1.7rem;
  transition: all 0.3s ease;
  font-family: yekan;
  font-size: 1rem;
  text-transform: uppercase;
}

main article .introduction .introductionImage {
  flex: 1 1 300px;
  text-align: center;
}

main article .introduction .introductionImage img {
  max-width: 250px;
  height: auto;
  animation: floatMove 4s ease-in-out infinite;
}

main article .timeline {
  direction: rtl;
  max-width: 1600px;
  display: flex;
  flex-direction: column;
  background: rgba(218, 218, 218, 0.1);
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  gap: 2rem;
  margin: 0 0 70px 0;
  padding: 1rem;
  border-radius: 0 150px 150px 0;
}

main article .timeline .timelineItems {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

main article .timeline .timelineItems img {
  width: 280px;
  height: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  border-radius: 50%;
  object-fit: cover;
}

main article .timeline .timelineItems .timelineItemsText {
  min-width: 260px;
  flex: 1;
  color: var(--lightGray);
}

main article .timeline .timelineItems .timelineItemsText h3 {
  color: var(--skyBlue);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

main article .timeline .timelineItems .timelineItemsText p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Expandable Content Styles */
.expandable-content {
  position: relative;
}

.expandable-content .content-wrapper {
  /* در دسکتاپ، محتوا کامل نمایش داده می‌شود */
  max-height: none;
  overflow: visible;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-content .expand-btn {
  /* دکمه به صورت پیش‌فرض مخفی است (دسکتاپ) */
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, var(--skyBlue), var(--aqua));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: yekan;
  cursor: pointer;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.expandable-content .expand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 196, 170, 0.4);
}

.expandable-content .expand-btn .expand-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.expandable-content.expanded .expand-btn .expand-icon {
  transform: rotate(180deg);
}

/* حالت collapsed - فقط در موبایل فعال می‌شود */
.expandable-content.collapsed .content-wrapper {
  max-height: 150px;
  overflow: hidden;
  position: relative;
}

.expandable-content.collapsed .content-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(27, 39, 53, 0.95));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.expandable-content.expanded .content-wrapper {
  max-height: 2000px; /* ارتفاع بالا برای انیمیشن نرم */
  overflow: visible;
}

.expandable-content.expanded .content-wrapper::after {
  opacity: 0;
}


main article .titlesStyle {
  color: var(--skyBlue);
  margin: 0 0 2rem 0;
  font-size: 2rem;
}

main article .prizes {
  direction: rtl;
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
}

main article .prizes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 174, 255, 0.3) 50%, 
    transparent 100%
  );
}

main article .prizes .prizeCards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

main article .prizes .prizeCards .prizeCard {
  width: 260px;
  background: var(--charcoalNavy);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

main article .prizes .prizeCards .gold {
  border-top: 4px solid var(--gold);
}
main article .prizes .prizeCards .silver {
  border-top: 4px solid var(--silver);
}
main article .prizes .prizeCards .bronze {
  border-top: 4px solid var(--bronze);
}

main article .prizes .prizeCards .prizeCard h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

main article .prizes .prizeCards .prizeCard p {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: bold;
}

main article .extraPrizes {
  direction: rtl;
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
}

main article .extraPrizes::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 174, 255, 0.3) 50%, 
    transparent 100%
  );
}

main article .extraPrizes .extraPrizeCards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

main article .extraPrizes .extraPrizeCards .extraPrizeCard, main article .extraPrizes .extraPrizeCards .small {
  width: 220px;
  background: var(--charcoalBlue);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: transform 0.3s ease;
}

main article .extraPrizes .extraPrizeCards .extraPrizeCard h3,
main article .extraPrizes .extraPrizeCards .small h3 {
  font-size: 1.1rem;
  color: var(--skyBlue);
  margin-bottom: 0.5rem;
}

main article .extraPrizes .extraPrizeCards .extraPrizeCard p, main article .extraPrizes .extraPrizeCards .small p {
  font-size: 0.95rem;
  color: var(--gold);
  line-height: 1.5;
}

main article .extraPrizes .extraPrizeHighlightCard {
  background: var(--gunmetal);
  border: 1px solid var(--skyBlue);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,255,225,0.1);
}

main article .extraPrizes .extraPrizeHighlightCard h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

main article .extraPrizes .extraPrizeHighlightCard p {
  font-size: 1rem;
  color: var(--lightSilver);
  line-height: 1.6;
}

/* ==================== SPONSORS SECTION ==================== */
main article .sponsors {
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, 
    rgba(21, 29, 39, 0.3) 0%, 
    rgba(9, 10, 15, 0.5) 50%,
    rgba(21, 29, 39, 0.3) 100%
  );
  position: relative;
}

main article .sponsors::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 174, 255, 0.3) 50%, 
    transparent 100%
  );
}

main article .sponsors::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 174, 255, 0.3) 50%, 
    transparent 100%
  );
}

main article .sponsors .sponsorsDescription {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--lightSilver);
  line-height: 1.8;
  opacity: 0.9;
}

main article .sponsors .sponsorsGrid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 2rem 1rem;
  align-items: center;
  justify-content: center;
  direction: rtl; /* راست به چپ برای اعمال صحیح order/priority */
}

main article .sponsors .sponsorsRow {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  direction: rtl; /* راست به چپ برای اعمال صحیح order/priority */
}

main article .sponsors .sponsorItem {
  width: 220px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
}

main article .sponsors .sponsorItem.sponsor-fade-up {
  animation: sponsorFadeUp 0.8s ease forwards;
}

main article .sponsors .sponsorItem.sponsor-fade-up-delay {
  animation: sponsorFadeUp 0.8s ease 0.15s forwards;
}

@keyframes sponsorFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main article .sponsors .sponsorItem a {
  display: flex; /* تغییر از block به flex */
  flex-direction: column; /* اضافه شد */
  flex: 1; /* اضافه شد برای گرفتن تمام فضای موجود */
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

main article .sponsors .sponsorItem a:hover {
  transform: translateY(-8px);
}

main article .sponsors .sponsorLogo {
  width: 100%;
  height: 200px; /* افزایش از 180px برای فضای بیشتر */
  min-height: 200px; /* حداقل ارتفاع ثابت */
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 174, 255, 0.2);
  border-radius: 1rem;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  flex: 1;
}

main article .sponsors .sponsorLogo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 174, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

main article .sponsors .sponsorItem a:hover .sponsorLogo::before {
  opacity: 1;
  animation: shimmerSponsor 1.5s infinite;
}

@keyframes shimmerSponsor {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

main article .sponsors .sponsorItem a:hover .sponsorLogo {
  background: rgba(255, 255, 255, 1); /* تغییر به کاملاً سفید */
  border-color: rgba(0, 174, 255, 0.6);
  box-shadow: 
    0 0 20px rgba(0, 174, 255, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

main article .sponsors .sponsorLogo img {
  max-width: 90%;
  max-height: 90%;
  min-height: 80px; /* حداقل ارتفاع برای یکدست شدن لوگوها */
  min-width: 100px; /* حداقل عرض برای لوگوهای خیلی کوچک */
  width: auto;
  height: auto;
  object-fit: contain; /* حفظ نسبت تصویر بدون کراپ */
  object-position: center; /* وسط چین کردن تصویر */
  filter: none; /* حذف grayscale - لوگوها همیشه رنگی */
  transition: filter 0.4s ease, transform 0.4s ease;
  position: relative;
  z-index: 1;
}

/* استایل ویژه برای لوگوهای با ابعاد کوچک (مستطیل دراز) */
main article .sponsors .sponsorLogo img[height][width] {
  /* اگر تصویر aspect ratio خیلی نازک داشت، اندازه‌اش را بزرگتر کن */
  height: auto;
  max-height: 90%;
}

main article .sponsors .sponsorItem a:hover .sponsorLogo img {
  filter: brightness(1.05); /* فقط کمی روشن‌تر */
  transform: scale(1.08);
}

main article .sponsors .sponsorName {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--lightSilver);
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s ease;
}

main article .sponsors .sponsorItem a:hover .sponsorName {
  color: var(--skyBlue);
  opacity: 1;
}

main article .sponsors .noSponsors {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  color: var(--lightSilver);
  opacity: 0.7;
  padding: 3rem 1rem;
  font-style: italic;
}

/* Responsive Sponsors Section */
@media screen and (max-width: 1024px) {
  main article .sponsors .sponsorsGrid {
    gap: 2rem;
    direction: rtl; /* حفظ RTL در تبلت */
  }

  main article .sponsors .sponsorsRow {
    gap: 2rem;
    direction: rtl; /* حفظ RTL در تبلت */
  }
  
  main article .sponsors .sponsorItem {
    width: 200px;
  }
  
  main article .sponsors .sponsorLogo {
    height: 180px;
    min-height: 180px;
    padding: 1rem;
  }

  main article .sponsors .sponsorLogo img {
    min-height: 70px; /* کاهش برای تبلت */
  }
}

@media screen and (max-width: 768px) {
  main article .sponsors {
    padding: 3rem 1rem;
  }
  
  main article .sponsors .sponsorsDescription {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  main article .sponsors .sponsorsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 1.5rem 0.5rem;
    direction: rtl; /* اعمال RTL برای grid */
  }
  
  main article .sponsors .sponsorsRow {
    display: contents; /* حفظ ترتیب و اولویت */
  }

  main article .sponsors .sponsorItem {
    width: 100%;
  }
  
  main article .sponsors .sponsorLogo {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* مربع کامل - aspect ratio 1:1 */
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    padding-top: 0.3rem;
    position: relative;
    min-height: 0; /* حذف min-height برای موبایل */
  }
  
  main article .sponsors .sponsorLogo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    max-height: 85%;
    min-height: 0 !important; /* حذف min-height */
    min-width: 0 !important; /* حذف min-width */
    width: auto;
    height: auto;
    object-fit: contain;
  }
  
  main article .sponsors .sponsorName {
    display: none; /* مخفی کردن نام در موبایل */
  }
  
  /* جلوگیری از تکان خوردن لوگو در هاور موبایل */
  main article .sponsors .sponsorItem a:hover .sponsorLogo {
    transform: none;
  }
  
  main article .sponsors .sponsorItem a:hover .sponsorLogo img {
    transform: translate(-50%, -50%); /* فقط حفظ مرکزیت، بدون scale */
  }
}

@media screen and (max-width: 480px) {
  main article .sponsors .sponsorsGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    padding: 1rem 0.3rem;
    direction: rtl; /* اعمال RTL برای grid */
  }
  
  main article .sponsors .sponsorsRow {
    display: contents; /* حفظ ترتیب */
  }

  main article .sponsors .sponsorItem {
    width: 100%;
  }
  
  main article .sponsors .sponsorLogo {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* مربع کامل - aspect ratio 1:1 */
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-top: 0.25rem;
    position: relative;
    min-height: 0; /* حذف min-height */
  }
  
  main article .sponsors .sponsorLogo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 82%;
    max-height: 82%;
    min-height: 0 !important; /* حذف min-height */
    min-width: 0 !important; /* حذف min-width */
    width: auto;
    height: auto;
    object-fit: contain;
  }
  
  main article .sponsors .sponsorName {
    display: none; /* مخفی کردن نام در موبایل */
  }
  
  /* جلوگیری از تکان خوردن لوگو در هاور موبایل */
  main article .sponsors .sponsorItem a:hover .sponsorLogo {
    transform: none;
  }
  
  main article .sponsors .sponsorItem a:hover .sponsorLogo img {
    transform: translate(-50%, -50%); /* فقط حفظ مرکزیت، بدون scale */
  }
}

/* ==================== REGISTERED TEAMS SECTION ==================== */
main article .registered-teams {
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

main article .registered-teams::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 174, 255, 0.3) 50%, 
    transparent 100%
  );
}

main article .registered-teams .teamsDescription {
  font-size: 1.1rem;
  color: var(--lightSilver);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

main article .registered-teams .teamsTableContainer {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
  position: relative;
  direction: rtl; /* تضمین RTL برای container */
  scroll-behavior: smooth; /* اسکرول نرم */
  -webkit-overflow-scrolling: touch; /* اسکرول روان در iOS */
}

/* اطمینان از شروع اسکرول از سمت راست (ابتدای جدول) */
@supports (scrollbar-width: thin) {
  main article .registered-teams .teamsTableContainer {
    scroll-snap-type: x mandatory;
  }
}

/* راهنمای اسکرول برای موبایل */
main article .registered-teams .teamsTableContainer::after {
  content: '→ بکشید برای مشاهده بقیه ←';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  direction: rtl;
}

@media screen and (max-width: 768px) {
  main article .registered-teams .teamsTableContainer::after {
    opacity: 1;
  }
  
  main article .registered-teams .teamsTableContainer.scrolled::after {
    opacity: 0;
  }
}

main article .registered-teams .teamsTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
  direction: rtl; /* راست به چپ برای فارسی */
}

main article .registered-teams .teamsTable thead {
  background: linear-gradient(135deg, rgba(0, 196, 170, 0.2), rgba(0, 174, 255, 0.2));
  border-bottom: 2px solid rgba(0, 196, 170, 0.3);
}

main article .registered-teams .teamsTable thead th {
  padding: 1.2rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--aqua);
  text-align: right;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, rgba(0, 196, 170, 0.2), rgba(0, 174, 255, 0.2));
  z-index: 10;
}

main article .registered-teams .teamsTable thead th:first-child {
  text-align: center;
  width: 70px;
  border-top-right-radius: 12px; /* گوشه راست بالا */
}

main article .registered-teams .teamsTable thead th:last-child {
  text-align: center;
  width: 150px;
  border-top-left-radius: 12px; /* گوشه چپ بالا */
}

main article .registered-teams .teamsTable tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  animation: teamRowFadeIn 0.5s ease forwards;
  opacity: 0;
}

main article .registered-teams .teamsTable tbody tr:nth-child(1) { animation-delay: 0.1s; }
main article .registered-teams .teamsTable tbody tr:nth-child(2) { animation-delay: 0.15s; }
main article .registered-teams .teamsTable tbody tr:nth-child(3) { animation-delay: 0.2s; }
main article .registered-teams .teamsTable tbody tr:nth-child(4) { animation-delay: 0.25s; }
main article .registered-teams .teamsTable tbody tr:nth-child(5) { animation-delay: 0.3s; }
main article .registered-teams .teamsTable tbody tr:nth-child(n+6) { animation-delay: 0.35s; }

@keyframes teamRowFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main article .registered-teams .teamsTable tbody tr:hover {
  background: rgba(0, 196, 170, 0.08);
  transform: scale(1.01);
  box-shadow: 0 4px 12px rgba(0, 196, 170, 0.15);
}

main article .registered-teams .teamsTable tbody tr:last-child {
  border-bottom: none;
}

main article .registered-teams .teamsTable tbody td {
  padding: 1.1rem 1rem;
  color: var(--lightGray);
  font-size: 0.95rem;
  text-align: right;
}

main article .registered-teams .teamsTable .team-number {
  text-align: center;
  font-weight: bold;
  color: var(--aqua);
  font-size: 1.1rem;
  width: 70px;
}

main article .registered-teams .teamsTable .team-name {
  font-weight: 600;
  color: var(--white);
  font-size: 1rem;
  max-width: 300px; /* محدود کردن عرض برای جلوگیری از کشیدگی بیش از حد */
  word-wrap: break-word; /* شکستن کلمات طولانی */
  line-height: 1.4; /* فاصله خط برای خوانایی بهتر */
}

main article .registered-teams .teamsTable .team-university {
  color: var(--lightSilver);
  opacity: 0.9;
  max-width: 250px;
  word-wrap: break-word;
  line-height: 1.4;
}

main article .registered-teams .teamsTable .team-status {
  text-align: center;
  width: 150px;
}

main article .registered-teams .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

main article .registered-teams .status-approved {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

main article .registered-teams .status-approved i {
  font-size: 0.9rem;
}

main article .registered-teams .no-teams {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--lightSilver);
  opacity: 0.7;
}

main article .registered-teams .no-teams i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
  color: var(--aqua);
}

main article .registered-teams .no-teams p {
  font-size: 1.2rem;
  font-style: italic;
}

/* استایل ردیف‌های مخفی تیم‌ها */
main article .registered-teams .teamsTable tbody tr.teamRowHidden {
  display: none;
  opacity: 0;
  transform: translateY(0);
}

main article .registered-teams .teamsTable tbody tr.teamRowHidden.show {
  display: table-row;
  animation: teamRowFadeIn 0.4s ease forwards;
}

main article .registered-teams .teamsTable tbody tr.teamRowHidden.hiding {
  display: table-row;
  animation: teamRowFadeOut 0.35s ease forwards;
}

@keyframes teamRowFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

/* دکمه نمایش لیست کامل تیم‌ها */
main article .registered-teams .showAllTeamsBtn {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4), 0 0 0 0 rgba(0, 212, 255, 0.5);
  animation: pulseBlue 2s infinite;
  font-family: yekan;
}

main article .registered-teams .showAllTeamsBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

main article .registered-teams .showAllTeamsBtn:hover::before {
  width: 300px;
  height: 300px;
}

main article .registered-teams .showAllTeamsBtn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

main article .registered-teams .showAllTeamsBtn:active {
  transform: translateY(-1px) scale(0.98);
}

main article .registered-teams .showAllTeamsBtn i {
  transition: transform 0.3s ease;
}

main article .registered-teams .showAllTeamsBtn.expanded i {
  transform: rotate(180deg);
}

/* Responsive Registered Teams Section */
@media screen and (max-width: 1024px) {
  main article .registered-teams {
    padding: 3rem 1.5rem;
  }
  
  main article .registered-teams .teamsTableContainer {
    padding: 1.2rem;
  }
  
  main article .registered-teams .teamsTable thead th {
    font-size: 0.95rem;
    padding: 1rem 0.8rem;
  }
  
  main article .registered-teams .teamsTable tbody td {
    padding: 1rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 768px) {
  main article .registered-teams {
    padding: 2.5rem 1rem;
  }
  
  main article .registered-teams .teamsDescription {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  main article .registered-teams .teamsTableContainer {
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto; /* اسکرول افقی برای موبایل */
    -webkit-overflow-scrolling: touch; /* اسکرول روان در iOS */
  }
  
  main article .registered-teams .teamsTable {
    font-size: 0.85rem;
    min-width: 600px; /* حداقل عرض جدول برای جلوگیری از فشردگی بیش از حد */
  }
  
  main article .registered-teams .teamsTable thead th {
    padding: 0.9rem 0.6rem;
    font-size: 0.85rem;
    white-space: nowrap; /* جلوگیری از شکستن عنوان‌ها */
  }
  
  main article .registered-teams .teamsTable thead th:first-child {
    width: 50px;
  }
  
  main article .registered-teams .teamsTable tbody td {
    padding: 0.9rem 0.6rem;
    font-size: 0.85rem;
  }
  
  main article .registered-teams .teamsTable .team-number {
    font-size: 1rem;
    width: 50px;
  }
  
  main article .registered-teams .teamsTable .team-name {
    font-size: 0.9rem;
    max-width: 200px; /* کاهش عرض در موبایل */
    line-height: 1.3;
  }
  
  main article .registered-teams .teamsTable .team-university {
    max-width: 180px;
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  main article .registered-teams .status-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
  }
}

@media screen and (max-width: 480px) {
  main article .registered-teams {
    padding: 2rem 0.5rem;
  }
  
  main article .registered-teams .teamsTableContainer {
    padding: 0.5rem;
    border-radius: 10px;
    /* در موبایل‌های کوچک، اسکرول افقی بهترین راه حل است */
  }
  
  main article .registered-teams .teamsTable {
    min-width: 550px; /* حداقل عرض برای خوانایی */
  }
  
  main article .registered-teams .teamsTable thead th {
    padding: 0.7rem 0.4rem;
    font-size: 0.75rem;
  }
  
  main article .registered-teams .teamsTable tbody td {
    padding: 0.8rem 0.4rem;
    font-size: 0.8rem;
  }
  
  main article .registered-teams .teamsTable .team-number {
    font-size: 0.9rem;
    width: 45px;
  }
  
  main article .registered-teams .teamsTable .team-name {
    font-size: 0.85rem;
    max-width: 180px;
  }
  
  main article .registered-teams .teamsTable .team-university {
    font-size: 0.75rem;
    max-width: 160px;
  }
  
  main article .registered-teams .status-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }
  
  main article .registered-teams .status-badge i {
    font-size: 0.75rem;
  }
  
  /* دکمه نمایش لیست کامل در موبایل */
  main article .registered-teams .showAllTeamsBtn {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    margin-top: 1.5rem;
  }

  /* دکمه گالری در موبایل */
  main article .gallery .galleryBtn {
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
  }
}

/* ==================== SCOREBOARD SECTION ==================== */
main article .scoreboard-section {
  color: var(--white);
  padding: 5rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

main article .scoreboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

main article .scoreboard-container {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(21, 29, 39, 0.95) 100%);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 30px;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 215, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

main article .scoreboard-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

main article .scoreboard-content {
  text-align: right;
  position: relative;
  z-index: 1;
}

main article .scoreboard-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

main article .scoreboard-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  animation: goldenShimmer 3s ease-in-out infinite;
  text-align: right;
  direction: rtl;
}

@keyframes goldenShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

main article .scoreboard-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-weight: 400;
}

main article .scoreboard-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #000;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 10px 30px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.3);
  position: relative;
  overflow: hidden;
}

main article .scoreboard-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

main article .scoreboard-button:hover::before {
  width: 300px;
  height: 300px;
}

main article .scoreboard-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 15px 40px rgba(255, 215, 0, 0.6),
    0 0 30px rgba(255, 215, 0, 0.5);
}

main article .scoreboard-button:active {
  transform: translateY(-1px) scale(1.02);
}

main article .scoreboard-button span {
  position: relative;
  z-index: 1;
}

main article .scoreboard-button svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

main article .scoreboard-button:hover svg {
  transform: translateX(-5px);
}

/* Download Section Styles */
main article .download-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}

main article .download-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-align: right;
  direction: rtl;
}

main article .download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  direction: rtl;
  text-align: right;
}

main article .download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  direction: rtl;
}

main article .download-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 196, 170, 0.1), transparent);
  transition: left 0.5s;
}

main article .download-item:hover::before {
  left: 100%;
}

main article .download-item:hover {
  background: rgba(0, 196, 170, 0.1);
  border-color: rgba(0, 196, 170, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 196, 170, 0.2);
}

main article .download-item.download-all {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.3);
}

main article .download-item.download-all:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 5px 25px rgba(255, 215, 0, 0.3);
}

main article .download-icon {
  font-size: 2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

main article .download-item:hover .download-icon {
  transform: scale(1.2) rotate(5deg);
}

main article .download-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  text-align: right;
  direction: rtl;
}

main article .download-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
}

main article .download-item:hover .download-text {
  color: var(--aqua);
}

main article .download-item.download-all:hover .download-text {
  color: var(--gold);
}

main article .download-hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

main article .scoreboard-decoration {
  position: relative;
  z-index: 1;
}

main article .trophy-animation {
  width: 150px;
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

main article .trophy-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.8;
  }
}

main article .trophy-emoji {
  font-size: 6rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(-5deg);
  }
  75% {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* استایل لینک اسکوربورد در منو */
nav a.scoreboard-link {
  color: #FFD700;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 215, 0, 0.05);
}

nav a.scoreboard-link:hover {
  background: rgba(255, 215, 0, 0.15);
  color: #FFA500;
  transform: translateY(-2px);
}

/* Responsive - Mobile */
@media only screen and (max-width: 900px) {
  main article .scoreboard-section {
    padding: 3rem 1rem;
  }

  main article .scoreboard-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
  }

  main article .scoreboard-content {
    text-align: center;
  }

  main article .scoreboard-title {
    font-size: 1.8rem;
  }

  main article .scoreboard-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  main article .scoreboard-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  main article .trophy-animation {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }

  main article .trophy-emoji {
    font-size: 4.5rem;
  }

  main article .scoreboard-icon {
    font-size: 2.5rem;
  }

  /* Download Section Mobile Styles */
  main article .download-section {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  main article .download-title {
    font-size: 1.3rem;
    text-align: right;
  }

  main article .download-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    direction: rtl;
  }

  main article .download-item {
    padding: 1rem;
  }

  main article .download-item.download-all {
    grid-column: 1;
  }

  main article .download-icon {
    font-size: 1.8rem;
  }

  main article .download-text {
    font-size: 0.95rem;
  }

  main article .download-hint {
    font-size: 0.75rem;
  }
}

/* ==================== GALLERY SECTION ==================== */
main article .gallery {
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
}

main article .gallery::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 174, 255, 0.3) 50%, 
    transparent 100%
  );
}

main article .gallery .galleryImages {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
}

main article .gallery .galleryImages .galleryImageItem {
  opacity: 0;
  transform: translateX(0);
  transition: all 0.8s ease;
  will-change: transform, opacity;
}

main article .gallery .galleryImages .galleryImageItem img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 20px rgba(0, 255, 225, 0.1);
  border-radius: 1rem;
  transition: filter 0.4s ease;
}

main article .gallery .galleryImages .from-left {
  transform: translateX(-50px);
}
main article .gallery .galleryImages .from-right {
  transform: translateX(50px);
}

main article .gallery .galleryImages .galleryImageItem.show {
  opacity: 1;
  transform: translateX(0);
}

/* استایل عکس‌های مخفی با انیمیشن */
main article .gallery .galleryImages .galleryImageItem.galleryImageHidden {
  display: none;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
}

main article .gallery .galleryImages .galleryImageItem.galleryImageHidden.show {
  display: block;
  animation: fadeInUp 0.6s ease forwards;
}

/* انیمیشن برای بسته شدن عکس‌ها */
main article .gallery .galleryImages .galleryImageItem.galleryImageHidden.hiding {
  animation: fadeOutDown 0.5s ease forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeOutDown {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
}

/* استایل عکس‌های مخفی در موبایل (4 عکس آخر از 8 عکس اول) */
main article .gallery .galleryImages .galleryImageItem.galleryImageMobileHidden {
  display: block; /* در دسکتاپ نمایش داده شود */
}

@media only screen and (max-width: 767.9px) {
  main article .gallery .galleryImages .galleryImageItem.galleryImageMobileHidden {
    display: none !important; /* در موبایل مخفی شود */
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  
  main article .gallery .galleryImages .galleryImageItem.galleryImageMobileHidden.show {
    display: block !important; /* وقتی دکمه نمایش بیشتر زده می‌شود، نمایش داده شود */
    animation: fadeInUp 0.6s ease forwards;
  }
  
  main article .gallery .galleryImages .galleryImageItem.galleryImageMobileHidden.hiding {
    animation: fadeOutDown 0.5s ease forwards;
  }
}


/* استایل دکمه‌های گالری */
main article .gallery .galleryButtons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

main article .gallery .galleryBtn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  font-family: yekan;
}

main article .gallery .galleryBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

main article .gallery .galleryBtn:hover::before {
  width: 300px;
  height: 300px;
}

main article .gallery .galleryBtnPrimary {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4), 0 0 0 0 rgba(0, 212, 255, 0.5);
  animation: pulseBlue 2s infinite;
}

@keyframes pulseBlue {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4), 0 0 0 0 rgba(0, 212, 255, 0.5);
  }
  50% {
    box-shadow: 0 4px 25px rgba(0, 212, 255, 0.5), 0 0 0 8px rgba(0, 212, 255, 0);
  }
}

main article .gallery .galleryBtnPrimary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.6);
}

main article .gallery .galleryBtnPrimary:active {
  transform: translateY(-1px) scale(0.98);
}

main article .gallery .galleryBtnSecondary {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4), 0 0 0 0 rgba(147, 51, 234, 0.5);
  animation: pulsePurple 2s infinite;
}

@keyframes pulsePurple {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4), 0 0 0 0 rgba(147, 51, 234, 0.5);
  }
  50% {
    box-shadow: 0 4px 25px rgba(147, 51, 234, 0.5), 0 0 0 8px rgba(147, 51, 234, 0);
  }
}

main article .gallery .galleryBtnSecondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.6);
}

main article .gallery .galleryBtnSecondary:active {
  transform: translateY(-1px) scale(0.98);
}

main article .location {
  direction: rtl;
  padding: 4rem 1rem;
  color: var(--white);
  text-align: center;
  position: relative;
}

main article .location::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 174, 255, 0.3) 50%, 
    transparent 100%
  );
}

main article .titlesStyle {
  color: var(--skyBlue);
  margin: 0 0 2rem 0;
  font-size: 2rem;
}

main article .locationMap {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 225, 0.1);
}

main article .locationMap iframe {
  width: 100%;
  height: 350px;
  border: none;
}

main article .locationMapText {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}

main article .locationMapText p {
  margin: 0.5rem 0;
}

/* FAQ Section */
main article .faq {
  direction: rtl;
  padding: 4rem 1rem;
  color: var(--white);
  text-align: center;
  position: relative;
}

main article .faq::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 174, 255, 0.3) 50%, 
    transparent 100%
  );
}

main article .faqContainer {
  max-width: 900px;
  margin: 0 auto;
  text-align: right;
}

main article .faqItem {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

main article .faqItem:hover {
  background: rgba(255, 255, 255, 0.08);
}

main article .faqQuestion {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
}

main article .faqQuestion .faqIcon {
  font-size: 1.5rem;
  min-width: 30px;
}

main article .faqQuestion h3 {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}

main article .faqQuestion .faqToggle {
  font-size: 2rem;
  font-weight: 300;
  color: var(--skyBlue);
  transition: transform 0.3s ease;
}

main article .faqItem.active .faqToggle {
  transform: rotate(45deg);
}

main article .faqAnswer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px;
}

main article .faqItem.active .faqAnswer {
  max-height: 500px;
  padding: 0 25px 20px;
}

main article .faqAnswer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 10px;
}

main article .faqAnswer a {
  color: var(--skyBlue);
  text-decoration: none;
}

main article .faqAnswer a:hover {
  text-decoration: underline;
}

main article .contactForm {
  direction: rtl;
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
}

main article .contactForm form{
  display: flex;
  flex-direction: column;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  margin: 0 auto;
  border-radius: 25px;
  padding: 15px;
  gap: 1rem;
}

main article .contactForm form input, main article .contactForm form textarea {
  direction: rtl;
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  font-size: 1rem;
  border: 1px solid var(--silver);
  border-radius: 6px;
  font-family: inherit;
}

main article .contactForm form textarea {
  min-height: 150px;
  resize: vertical;
}

main article .contactForm form .formCaptchaBox {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: right;
  font-size: 0.95rem;
}

main article .contactForm form .formCaptchaBox img {
  height: 40px;
  margin: 0 0 0 1rem;
  border-radius: 6px;
}

main article .contactForm form .formCaptchaBox input {
  margin: 0;
}

main article .contactForm form button {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  color: #ffffff;
  border: none;
  border-radius: 0.7rem;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

main article .contactForm form button:hover:not(:disabled):not(.btn-loading):not(.btn-success):not(.btn-error) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

main article .contactForm form button:disabled {
  cursor: not-allowed;
  transform: none;
}

/* حالت لودینگ - خاکستری */
main article .contactForm form button.btn-loading {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: #ffffff;
  cursor: wait;
  box-shadow: 0 4px 15px rgba(156, 163, 175, 0.3);
}

/* حالت موفقیت - سبز */
main article .contactForm form button.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  cursor: default;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* حالت خطا - قرمز */
main article .contactForm form button.btn-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  cursor: default;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* حذف شد - استایل‌های قدیمی پیام‌ها دیگر لازم نیست */

/* Footer codes */
footer .rights {
  color: var(--lightGray);
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer .rights a {
  color: var(--skyBlue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Social Media in Footer */
footer .socialMedia {
  margin-bottom: 25px;
  text-align: center;
}

footer .socialIcons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

footer .socialIcons a {
  color: var(--lightSilver);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

footer .socialIcons a:hover {
  color: var(--skyBlue);
  background: rgba(0, 174, 255, 0.15);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 174, 255, 0.3);
}

footer .socialIcons a svg {
  width: 24px;
  height: 24px;
}

/* Floating Social Media - دکمه‌های شناور سمت چپ */
.floatingSocial {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floatingSocial a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  position: relative;
}

.floatingSocial a::before {
  content: attr(title);
  position: absolute;
  left: 60px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, left 0.3s ease;
  font-family: yekan;
}

.floatingSocial a:hover::before {
  opacity: 1;
  left: 65px;
}

.floatingSocial .telegram {
  background: linear-gradient(135deg, #0088cc, #229ED9);
}

.floatingSocial .eitaa {
  background: linear-gradient(135deg, #E63946, #F77F00);
}

.floatingSocial .instagram {
  background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45);
}

.floatingSocial a:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.floatingSocial .telegram:hover {
  box-shadow: 0 6px 25px rgba(0, 136, 204, 0.5);
}

.floatingSocial .eitaa:hover {
  box-shadow: 0 6px 25px rgba(230, 57, 70, 0.5);
}

.floatingSocial .instagram:hover {
  box-shadow: 0 6px 25px rgba(131, 58, 180, 0.5);
}

.floatingSocial a svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@media (pointer: fine) {

  /* Header codes */
  header nav a:hover {
    color: var(--skyBlue);
  }

  /* Main article codes */
  main article .introduction .introductionContent .introductionTextContent a:hover {
    background: var(--skyBlue);
    color: var(--black);
    box-shadow: 0 0 12px var(--skyBlue), 0 0 24px var(--skyBlue);
  }

  main article .prizes .prizeCards .prizeCard:hover {
    transform: scale(1.05);
  }

  main article .extraPrizes .extraPrizeCards .extraPrizeCard:hover, main article .extraPrizes .extraPrizeCards .small:hover {
    transform: translateY(-5px);
  }

  main article .gallery .galleryImages:hover .galleryImageItem img {
    filter: blur(4px);
    transition: filter 0.4s ease;
  }

  main article .gallery .galleryImages .galleryImageItem img:hover {
    filter: blur(0px);
  }

  main article .contactForm form button:hover {
    background-color: var(--aqua);
  }
  
  /* Footer codes */
  footer .rights a:hover {
    text-decoration: underline;
  }

}
@media (pointer: coarse) {}
@media only screen and (max-width: 575.9px) {}
@media only screen and (min-width: 576px) {}
@media only screen and (max-width: 767.9px) {

  /* Temporary frame codes*/
  .temporaryFrame .temporaryFrameBrandmark .meteor {
      transform: rotate(55deg);
  }

  /* Header codes */
  header {
    padding: 0.5rem 1rem;
  }

  header .brandmark a img {
    max-width: 117px !important;
  }

  header .menuToggleButton{
    display: block;
  }

  header nav {
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 0;
    width: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  }

  header nav.open {
    max-height: 500px;
    opacity: 1;
  }

  header nav a {
    margin: 0 25px 0 0;
    padding: 12px 0;
  }

  header nav a:first-child {
    margin: 15px 25px 0 0;
  }

  header nav a:last-child {
    margin: 0 25px 10px 0;
  }

  header nav a[href="register-info"] {
    text-align: center;
    justify-content: center;
  }

  /* Main article codes */
  main article .introduction {
    margin: 30px 0;
    padding-top: 70px !important;
  }

  main article .introduction .introductionContent {
    flex-direction: column;
    text-align: center;
  }

  main article .introduction .introductionContent {
    margin: 0;
  }

  main article .introduction .introductionContent .introductionTextContent h1 {
    font-size: 2rem;
  }

  main article .introduction .introductionContent .introductionTextContent p {
    font-size: 1rem;
  }

  main article .introduction .introductionContent .introductionTextContent a {
    font-size: 1rem;
  }

  main article .timeline {
    border-radius: 0;
  }

  main article .timeline .timelineItems {
    flex-direction: column;
    text-align: center;
  }

  main article .timeline .timelineItems img {
    width: 100%;
    max-width: 300px;
    margin: auto;
  }

  /* فعال کردن قابلیت expandable فقط در موبایل */
  .expandable-content .expand-btn {
    display: flex !important;
  }

  /* در موبایل، محتوا به صورت پیش‌فرض collapsed است */
  .expandable-content {
    position: relative;
  }

  .expandable-content .content-wrapper {
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }



  main article .prizes .prizeCards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
  }

  main article .prizes .prizeCards .prizeCard {
    width: 100%;
    padding: 1rem;
  }

  /* تیم اول - کل عرض یک ردیف */
  main article .prizes .prizeCards .gold {
    grid-column: 1 / -1;
  }

  /* تیم دوم و سوم - کنار هم در یک ردیف */
  main article .prizes .prizeCards .silver {
    grid-column: 1 / 2;
  }

  main article .prizes .prizeCards .bronze {
    grid-column: 2 / 3;
  }

  /* فونت‌های کوچک‌تر برای تیم اول (تمام عرض) */
  main article .prizes .prizeCards .gold h3 {
    font-size: 1.2rem;
  }

  main article .prizes .prizeCards .gold p {
    font-size: 1.35rem;
  }

  /* فونت‌های خیلی کوچک‌تر برای تیم‌های دوم و سوم (نصف عرض) */
  main article .prizes .prizeCards .silver h3,
  main article .prizes .prizeCards .bronze h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  main article .prizes .prizeCards .silver p,
  main article .prizes .prizeCards .bronze p {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  main article .extraPrizes {
    flex-direction: column;
    align-items: center;
  }

  main article .extraPrizes .extraPrizeCards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
    width: 100%;
    margin: 0 auto 2rem;
  }

  main article .extraPrizes .extraPrizeCards .extraPrizeCard, main article .extraPrizes .extraPrizeCards .small {
    width: 100%;
    padding: 1rem;
  }

  /* فونت‌های بهتر برای کارت‌های جوایز اضافی */
  main article .extraPrizes .extraPrizeCards .extraPrizeCard h3,
  main article .extraPrizes .extraPrizeCards .small h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  main article .extraPrizes .extraPrizeCards .extraPrizeCard p,
  main article .extraPrizes .extraPrizeCards .small p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  main article .extraPrizes .extraPrizeHighlightCard {
    width: 100%;
    padding: 1rem;
  }

  /* FAQ responsive tweaks */
  main article .faq {
    padding: 3rem 0.75rem;
  }

  main article .faq .titlesStyle {
    font-size: 1.5rem;
  }

  main article .faq > p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  main article .faqContainer {
    max-width: 100%;
  }

  main article .faqItem {
    border-radius: 12px;
  }

  main article .faqQuestion {
    padding: 15px 18px;
    gap: 10px;
  }

  main article .faqQuestion .faqIcon {
    font-size: 1.1rem;
    min-width: 26px;
  }

  main article .faqQuestion h3 {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  main article .faqQuestion .faqToggle {
    font-size: 1.6rem;
  }

  main article .faqAnswer {
    padding: 0 18px;
  }

  main article .faqItem.active .faqAnswer {
    padding: 0 18px 16px;
  }

  main article .faqAnswer p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Floating Social - موبایل */
  .floatingSocial {
    left: 10px;
    gap: 12px;
  }
  
  .floatingSocial a {
    width: 45px;
    height: 45px;
  }
  
  .floatingSocial a svg {
    width: 22px;
    height: 22px;
  }
  
  /* مخفی کردن tooltip در موبایل */
  .floatingSocial a::before {
    display: none;
  }
  
  /* Footer Social - موبایل */
  footer .socialIcons a {
    width: 42px;
    height: 42px;
  }

}
@media only screen and (min-width: 768px) {}
@media only screen and (min-width: 992px) {}
@media only screen and (min-width: 1200px) {}