/* ============================
Font
============================ */
@font-face {
  font-family: 'IphoneMedium';
  src: url('Font/iPhone/iphone-fonst/Ios 15 Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Lalezar';
  src: url('Font/Lalezar/Digi Lalezar Plus.ttf') format('truetype');
}

/* ============================
Body Style
============================ */
body {
  margin: 0;
  background: rgb(255, 255, 255);
  font-family: 'IphoneMedium', sans-serif;
  font-size: 1rem;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
}

/* ============================
Header
============================ */
.header {
  background: #000;
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
.header-container {
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.header-links {
  display: flex;
  gap: clamp(40px, 9vw, 150px);
}
.header-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  transition: color .3s, transform .3s;
}
.header-links a:hover {
  color: #bdbdbd;
  transform: scale(1.05);
}
.logo-container {
  display: flex;
  justify-content: center;
  flex-grow: 0.5;
}
.logo {
  max-width: 120px;
  transition: transform .3s;
  cursor: pointer;
}
.logo:hover {
  transform: scale(1.4);
}

/* ------------------------------------------------------------------
hamburger panel
------------------------------------------------------------------ */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1001;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 250px;
  height: 100vh;
  background: #222;
  color: #fff;
  transform: translateX(100%);
  transition: transform .3s ease-in-out;
  z-index: 1000;
  overflow-y: auto;
  padding-top: 60px;
}
.mobile-nav a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #444;
  font-size: 1.1rem;
}
.mobile-nav a:hover { background: #333; }
.mobile-menu.open { transform: translateX(0); }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
  z-index: 999;
}
.overlay.show { opacity: 1; visibility: visible; }

body.no-scroll { overflow: hidden; }
/* ============================
Main Titles
============================ */
.h2-1 {
  font-family: 'Lalezar';
  font-size: 32px;
  text-align: center;
  margin-top: 40px;
}

.span-1 {
  color: rgb(204, 0, 0);
}

.dot-container {
  display: inline-flex;
  gap: 5px;
}

.dot {
  opacity: 0;
  animation: blink 1.5s infinite;
}

.dot:nth-child(2) { animation-delay: .3s; }
.dot:nth-child(3) { animation-delay: .6s; }

@keyframes blink {
  30% { opacity: 1; }
}

/* ============================
Icon Section
============================ */
.icon-section {
  background: #202020;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  overflow: hidden;
}

.icon-section-container {
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 15px;
}

.icon-item {
  flex: 1 1 150px;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity .5s;
}

.icon-img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.icon-text {
  font-size: 15px;
  line-height: 1.4;
}
/* ============================
benefit section
============================ */
.benefits-section {
  position: relative;
  background-color: #990000;
  max-width: 100%;
  margin: auto;
  padding: 100px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.circle-container {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 52, 52, 0.8);
  opacity: 0;
  animation: circleFloat 4s ease-out forwards;
}

.circle.red-dark {
  background-color: rgba(139, 0, 0, 0.8);
}

@keyframes circleFloat {
  0% {
    transform: translateX(0) scale(0.8);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-50px) scale(1.2);
    opacity: 0;
  }
}

h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 60px;
}

.benefits-list {
    display: grid;
    gap: 60px;
}

.benefit h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.9s ease-out;
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ============================
  motivational text
============================ */
.motivational-text-container{
  background-color: #000000;
  max-width: 100%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0 15px;
}
.motivational-text{
  font-family: 'Lalezar';
  font-size: large;
  word-spacing: 5px;
  color: #fff;
}
/* ============================
   tuition section
============================ */
.tuition-section {
  position: relative;
  padding: 60px 15px;
  background:
    radial-gradient(circle at top, rgba(255, 0, 0, 0.14), transparent 28%),
    linear-gradient(180deg, #060606 0%, #0d0d0d 45%, #050505 100%);
  color: #eeeeee;
  overflow: hidden;
}

/* بافت گریدی پس‌زمینه */
.tuition-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.75), transparent 95%);
  pointer-events: none;
}

.tuition-inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* فقط محتوای داخلی fade in شود */
.tuition-content {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.tuition-content.reveal {
  opacity: 1;
  transform: translateY(0);
}

.tuition-header {
  text-align: center;
  margin-bottom: 28px;
}

.tuition-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.12);
  border: 1px solid rgba(255, 0, 0, 0.28);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.15);
}

.tuition-header h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.18);
}

.tuition-header p {
  margin: 0 auto;
  max-width: 580px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  font-size: 0.9rem;
}

.choice-block {
  margin-top: 20px;
}

.choice-block h3 {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #fff;
  position: relative;
  padding-right: 10px;
}

.choice-block h3::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 3px;
  height: 16px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #ff3b3b, #b80000);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.gender-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sport-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.duration-group {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card {
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: #f3f3f3;
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 0.95rem;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 0, 0.28);
  background: rgba(255, 0, 0, 0.08);
}

.choice-card.active {
  background: linear-gradient(180deg, rgba(255,59,59,0.28), rgba(184,0,0,0.22));
  border-color: rgba(255, 0, 0, 0.45);
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.16);
  color: #fff;
}

.price-panel {
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.price-label {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.price-value {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.price-note {
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .tuition-inner {
    padding: 18px; /* کاهش padding */
    border-radius: 14px; /* کاهش border-radius */
  }

  .gender-group,
  .sport-group,
  .duration-group {
    grid-template-columns: 1fr;
  }

  .choice-card {
    padding: 10px 10px; /* کاهش padding */
    font-size: 0.85rem; /* کاهش font-size */
  }
  .price-value {
    font-size: clamp(1.6rem, 4vw, 2.4rem); /* کاهش font-size */
  }
}

/* ============================
  gallery section
============================ */
.gallery-section {
  background: #1f1f1f;
  padding: 100px 80px;
  color: #fff;
}

.gallery-title {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 70px;
}

.gallery-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.gallery-text {
  flex: 1;
}

.gallery-text p {
  font-size: 15px;
  line-height: 2.1;
  color: #cccccc;
  max-width: 500px;
}

.gallery-slider {
  flex: 1;
}

.slider-box {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.slider-box img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slider-box img.active {
  opacity: 1;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
}

.slider-controls button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #990000;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-controls button:hover {
  background: #cc0000;
  transform: scale(1.1);
}
.prev{
  font-weight: bolder;
  font-size: large;
}
.next{
  font-weight: bolder;
  font-size: large;
}
/* ============================
  Footer
============================ */
.footer {
  background: #0a0a0a;
  color: #eee;
  padding: 50px;
  font-family: 'IphoneMedium', sans-serif;
  border-top: 4px solid #0c0c0c;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  font-family: 'Lalezar', cursive;
  color: #fff;
  margin-bottom: 15px;
}

.footer-section p {
  margin-bottom: 10px;
}
.location-link{
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
}
.location-link:hover{
  color: red;
}
.contact-link {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: red;
}

.social-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
  margin-top: 20px;
  background: #181818;
  padding: 3px;
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease, filter 0.3s;
  filter: grayscale(100%);
}

.social-link:hover img {
  transform: translateY(-5px) scale(1.1);
  filter: grayscale(0%);
}

.designer-link {
  color: #ff5252;
  text-decoration: none;
  font-weight: bold;
}

/* موبایل */
@media (max-width: 900px) {
  .footer-section {
    max-width: 100%;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .social-box {
    width: 100%;
    justify-content: center;
  }
}

/* ============================
Responsive
============================ */
@media (max-width: 900px) {
  .icon-item {
    max-width: 30%;
  }
  .icon-item {
    max-width: 45%;
  }
  .icon-img {
    width: 50px;
    height: 50px;
  }
  .icon-text {
    font-size: 13px;
  }
  .hamburger-btn {
     display: block; 
  }
  .header-links { 
    display: none;
  }
}
@media (max-width:760px)
  {
    .h2-1{
      font-size: 28px;
    }
  }

@media (max-width: 400px) {
  .icon-item {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .gallery-section{
    padding: 60px 18px;
  }

  .gallery-title{
    font-size: 28px;
    margin-bottom: 35px;
  }

  .gallery-content{
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
  }

  .gallery-text p{
    max-width: none;
    font-size: 14px;
  }

  .slider-box{
    height: 260px;
    border-radius: 16px;
  }

  .slider-controls{
    margin-top: 14px;
  }
}