/* تم اصلی گرادیان */
:root {
  --primary-gradient: linear-gradient(135deg, #c74528 0%, #1a3c34 100%);
  --accent-green: #28c76f;
  --text-dark: #1a3c34;
  --text-light: #eee0e0;
  --gray: #666;
}

/* Header & Mobile Nav */
.main-menu,
.mobile-nav,
.floating-button,
.back-to-top {
  background: var(--primary-gradient);
}

.nav-menu {
  margin-top: 0;
  display: flex;
  gap: 25px;
}

.nav-menu a {
  color: var(--text-light);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #e74c3c;
}

.nav-menu a::after {

  height: 2px;
  background: #e74c3c;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

/* Banner */
.banner-area {
  position: relative;
background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&q=80') center/cover no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(181, 71, 71, 0.3);
  z-index: 1;
}

.overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.about-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
}

.about-content h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.about-content p {
  font-size: 1.2rem;
  color: #e0f2e9;
}

/* Courses Section */
.popular-courses-area {
  background: #f8f9fa;          /* روشن‌تر برای تمایز */
  padding: 100px 0;
}

.menu-content .title h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.title p {
  font-size: 1.1rem;
  color: var(--gray);
}

.single-popular-carusel {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  margin-bottom: 2rem;
}

.single-popular-carusel:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.thumb-wrap {
  position: relative;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 220px;               /* ثابت کردن ارتفاع */
  object-fit: cover;           /* مهم‌ترین اصلاح برای جلوگیری از کشیدگی */
  transition: transform 0.4s ease;
}

.thumb-wrap:hover img {
  transform: scale(1.08);
}

.thumb .overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  transition: background 0.4s ease;
}

.thumb-wrap:hover .overlay-bg {
  background: rgba(199, 69, 40, 0.4);   /* رنگ تم */
}

.meta {
  background: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
}

.meta h4 {
  color: var(--accent-green);
  margin: 0;
  font-weight: 600;
}

.details {
  padding: 20px;
}

.details h4 {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.details h4:hover,
.details a:hover {
  color: #e74c3c;
  text-decoration: none;
}

.details p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.primary-btn {
  background: var(--primary-gradient);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  
}

.primary-btn:hover {
  background: white;
  color: #c74528;            
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(199,69,40,0.25);
  text-decoration: none;
}

/* Floating buttons */
.floating-button,
.back-to-top {
  background: var(--primary-gradient);
  color: white;
  transition: all 0.3s;
}

.floating-button:hover,
.back-to-top:hover {
  background: white;
  color: #c74528;
}

/* Responsive */
@media (max-width: 992px) {
  .about-content h1 { font-size: 2.5rem; }
  .banner-area { min-height: 350px; }
}

@media (max-width: 768px) {
  .banner-area { min-height: 300px; }
  .about-content h1 { font-size: 2.2rem; }
  .menu-content .title h1 { font-size: 2.2rem; }
  .single-popular-carusel { margin-bottom: 2.5rem; }
}