:root {
  --primary: #ff6b8b;
  --primary-dark: #e75478;
  --primary-soft: #ffd9e4;
  --secondary: #fff4f7;
  --white: #ffffff;
  --text: #2f2f2f;
  --muted: #666666;
  --border: rgba(255, 107, 139, 0.18);
  --shadow-sm: 0 8px 20px rgba(255, 107, 139, 0.08);
  --shadow-md: 0 14px 34px rgba(255, 107, 139, 0.14);
  --shadow-lg: 0 22px 48px rgba(255, 107, 139, 0.2);
  --radius-xl: 30px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 15px;
  --radius-xs: 12px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Shabnam", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 226, 0.55), transparent 30%),
    linear-gradient(180deg, #fffafb 0%, #ffffff 35%, #fff8fb 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container,
.footer-container,
.main-header,
.hero-section,
.features-section,
.news-section {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.main-header {
  margin-top: 18px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 12px;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo-img {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  object-fit: cover;
}

.logo h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #222;
  line-height: 1.5;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu > a,
.nav-link {
  position: relative;
  color: #333;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-menu > a::after,
.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.nav-menu > a:hover,
.nav-menu > a.active,
.nav-link:hover,
.contact-wrapper:hover .nav-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.nav-menu > a:hover::after,
.nav-menu > a.active::after,
.nav-link:hover::after,
.contact-wrapper:hover .nav-link::after {
  width: 100%;
}

.nav-item {
  position: relative;
}

.contact-wrapper {
  position: relative;
}

.contact-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 220px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 182, 193, 0.32);
  box-shadow: 0 18px 40px rgba(255, 107, 139, 0.16);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 30;
}

.contact-wrapper:hover .contact-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-dropdown::after {
  content: "";
  position: absolute;
  inset: -14px 0 auto 0;
  height: 14px;
}

.contact-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #333;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-dropdown-item:hover {
  background: rgba(255, 107, 139, 0.08);
  transform: translateX(-4px);
}

.contact-dropdown-item i {
  color: var(--primary);
  width: 18px;
  text-align: center;
}

/* Container - حتماً position: relative باشه */
.login-container {
    position: relative;
    display: inline-block;
}

/* دکمه ورود */
.login-trigger{
  appearance: none;
  -webkit-appearance: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;

    box-shadow: 0 0 0 5px rgba(239, 95, 143, 0.08);

  background: rgba(255, 255, 255, 0.65);
  border: 2px solid rgba(239, 95, 143, 0.35); /* صورتی کم‌رنگ */
  border-radius: 999px; /* بیضی کامل */
  padding: 10px 18px;

  cursor: pointer;
  font-family: inherit;
  text-align: center;

  color: #2b2b2b;
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}

.login-trigger:hover,
.login-trigger:focus-visible{
  border-color: rgba(239, 95, 143, 0.75);
  background: rgba(255, 240, 247, 0.85);
  box-shadow:
    0 0 0 6px rgba(239, 95, 143, 0.18),   /* رینگ صورتی */
    0 10px 25px rgba(239, 95, 143, 0.20); /* سایه لطیف */
  transform: translateY(-1px);
}

.login-trigger h6 {
    margin: 4px 0 0 0;
    font-size: 10px;
    color: #888;
}

/* پنل ورود (پیش‌فرض مخفی) */
/* اصلاح موقعیت پنل برای وسط‌چین شدن زیر دکمه */
.login-panel {
    position: absolute;
    top: calc(100% + 15px); /* فاصله از دکمه */
    left: -30%; /* از سمت چپ 50 درصد فاصله بگیر */
    transform: translateX(-50%) translateY(10px); /* وسط‌چین افقی + انیمیشن عمودی */
    
    width: 270px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(239, 95, 143, 0.30);
    border-radius: 26px;
    padding: 20px;
    z-index: 9999;
    
    opacity: 0;
    visibility: hidden;
    transition: .25s ease; /* انیمیشن نرم */
    box-shadow: 0 14px 35px rgba(239, 95, 143, 0.14);
}

/* حالت باز شده (حتماً این رو هم اصلاح کن که transform خراب نشه) */
.login-container.is-open .login-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* حفظ وسط‌چین بودن */
}


/* کلاس باز شدن (که با JS اضافه می‌کنیم) */
.login-container.is-open .login-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* هاور روی پنل: دورکادر صورتی‌تر شود */
.login-panel:hover{
  border-color: rgba(239, 95, 143, 0.65);
  box-shadow:
    0 0 0 6px rgba(239, 95, 143, 0.12),
    0 16px 40px rgba(239, 95, 143, 0.18);
}

/* استایل داخلی پنل */
/* تیتر پنل */
.panel-header{
  font-weight: 800;
  color: #ef5f8f;
  margin-bottom: 12px;
  text-align: right;
}
/* ورودی‌ها */
.panel-input{
  width: 100%;
  height: 42px;
  border: 1px solid rgba(239, 95, 143, 0.25);
  border-radius: 14px;
  padding: 0 12px;
  margin-bottom: 10px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}


/* دکمه ورود داخل پنل */
.panel-submit{
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 999px; /* بیضی */
  background: linear-gradient(135deg, #ff6aa2, #ef5f8f);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, filter .22s ease;
}


.panel-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(239, 95, 143, 0.30);
  filter: saturate(1.08);
}

@media (hover:hover){
  .login-container:hover .login-panel{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Hero */
.hero-section {
  margin-top: 28px;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
  background:
    linear-gradient(135deg, rgba(255, 245, 248, 0.95), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top left, rgba(255, 214, 226, 0.5), transparent 35%);
  border: 1px solid rgba(255, 182, 193, 0.25);
  border-radius: 34px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 107, 139, 0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(255, 107, 139, 0.18);
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.45;
  color: #222;
}

.highlight {
  color: var(--primary-dark);
}

.hero-content p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
  max-width: 62ch;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 30px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 14px 28px rgba(255, 107, 139, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(255, 107, 139, 0.3);
}

.btn-secondary {
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid rgba(255, 107, 139, 0.18);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #fff7fa;
}

.image-wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.image-wrapper > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 182, 193, 0.28);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  font-weight: 700;
  color: #333;
}

.card-1 {
  top: 22px;
  right: 22px;
}

.card-2 {
  bottom: 22px;
  left: 22px;
}

/* Shared title */
.section-title {
  text-align: center;
  margin-bottom: 24px;
}

.section-title h2,
.news-section .section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: #222;
}

/* Features */
.features-section {
  padding: 80px 0 40px;
}

.slider-wrapper {
  display: none;
}

.slider-dots {
  justify-content: center;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 107, 139, 0.3);
  transition: width 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.dot:hover {
  transform: scale(1.08);
}

.dot.active {
  width: 28px;
  background: var(--primary);
}

.cards-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 22px;
}

.feature-card {
  flex: 0 1 300px;
  min-width: 260px;
  max-width: 320px;
  background: var(--white);
  border: 1px solid rgba(255, 182, 193, 0.4);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 107, 139, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-14px) scale(1.03);
  box-shadow: 0 18px 40px rgba(255, 107, 139, 0.2);
}

.card-image {
  height: 200px;
  overflow: hidden;
  background: #ffe7ef;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.feature-card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 22px 20px 24px;
  text-align: right;
}

.card-content h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #222;
}

.card-content p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
}

/* News */
.news-section {
  padding: 50px 0 70px;
}

.news-section .container {
  width: 100%;
}

.news-container {
  display: grid;
  gap: 22px;
}

.news-card,
.news-card2 {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  align-items: stretch;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 182, 193, 0.32);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover,
.news-card2:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.news-image {
  min-height: 250px;
  background: #ffe7ef;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content,
.news-content2 {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-header {
  margin-bottom: 12px;
}

.news-date {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 107, 139, 0.1);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.news-title {
  margin: 0;
  font-size: 1.4rem;
  color: #222;
  line-height: 1.7;
}

.news-full-text p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
  font-size: 0.98rem;
}

/* Footer */
.footer {
  background:
    linear-gradient(180deg, #1a1a1a 0%, #111111 100%);
  color: #f1f1f1;
  margin-top: 40px;
  padding: 40px 0 24px;
}

.footer-container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.contact-group {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 800;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7d7d7;
  line-height: 1.9;
}

.contact-info i {
  color: var(--primary);
  width: 18px;
  text-align: center;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px 0 22px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  direction: rtl;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 1;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #d9d9d9;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-3px);
  color: var(--primary);
  background: rgba(255, 107, 139, 0.12);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  order: 2;
}

.footer-links a {
  color: #d0d0d0;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: #bcbcbc;
  order: 3;
}







/* اصلاح قطعی ظاهر دکمه ورود */
.login-trigger {
    display: flex !important; /* اجبار به استفاده از فلکس */
    flex-direction: column;   /* چیدمان عمودی برای قرارگیری متن و h6 زیر هم */
    align-items: center;      /* تراز وسط */
    justify-content: center;  /* تراز وسط */
    text-align: center;
    line-height: 1.2 !important; /* کنترل فاصله خطوط */
    white-space: normal !important; /* اجازه به متن برای شکستن خط */
    height: auto !important;     /* اجازه به دکمه برای تغییر ارتفاع بر اساس محتوا */
    min-height: 60px;
    padding: 8px 16px !important;
}

/* اصلاح استایل متن h6 داخل دکمه */
.login-trigger h6 {
    margin: 4px 0 0 0 !important; /* حذف مارجین‌های ناخواسته */
    font-size: 0.75rem !important;
    color: var(--muted) !important; /* رنگ خاکستری */
    display: block !important;
    font-weight: 400 !important;
}
/* اصلاح قطعی ظاهر دکمه ورود */
.login-trigger {
    display: flex !important; /* اجبار به استفاده از فلکس */
    flex-direction: column;   /* چیدمان عمودی برای قرارگیری متن و h6 زیر هم */
    align-items: center;      /* تراز وسط */
    justify-content: center;  /* تراز وسط */
    text-align: center;
    line-height: 1.2 !important; /* کنترل فاصله خطوط */
    white-space: normal !important; /* اجازه به متن برای شکستن خط */
    height: auto !important;     /* اجازه به دکمه برای تغییر ارتفاع بر اساس محتوا */
    min-height: 60px;
    padding: 8px 16px !important;
}

/* اصلاح استایل متن h6 داخل دکمه */
.login-trigger h6 {
    margin: 4px 0 0 0 !important; /* حذف مارجین‌های ناخواسته */
    font-size: 0.75rem !important;
    color: var(--muted) !important; /* رنگ خاکستری */
    display: block !important;
    font-weight: 400 !important;
}

/* --- استایل های اجباری دکمه ورود (Login Trigger) --- */
.login-trigger {
    /* 1. تنظیمات اصلی دکمه */
    display: flex !important;
    flex-direction: column !important; /* چیدمان عمودی کل محتوا */
    align-items: center !important; /* تراز به وسط */
    justify-content: center !important;
    padding: 10px 15px !important;
    background-color: transparent !important; /* مطمئن شو پس‌زمینه‌ای تداخل نکنه */
    border: none !important;
    cursor: pointer !important;
}

/* 2. بخش اصلی (آیکون و متن "ورود به پنل") */
.login-main-text {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #333 !important; /* رنگ متن اصلی */
    margin-bottom: 2px !important;
}

/* 3. آیکون */
.login-main-text .icon {
    font-size: 16px !important;
    margin-left: 5px !important;
}

/* 4. بخش فرعی ("دانش آموز") */
.login-sub-text {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #555 !important; /* رنگ متن فرعی */
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    display: block !important;
}

/* 5. متن وضعیت ("در حال بروزرسانی") */
.login-status-text {
    font-size: 10px !important;
    font-weight: 400 !important;
    color: #B4B4B4 !important; /* رنگ خاکستری روشن برای وضعیت */
    margin: 0 !important;
    line-height: 1 !important;
    display: block !important;
}


/* حذف دایره/بولت کنار آیتم‌های لیست در هدر/منو */
header ul,
header ol,
header li,
nav ul,
nav ol,
nav li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}






/* Tablet */
@media (max-width: 1100px) {
  .main-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .news-card,
  .news-card2 {
    grid-template-columns: 1fr;
  }

  .news-image {
    min-height: 220px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .main-header {
    margin-top: 10px;
    padding: 14px;
    border-radius: 22px;
    position: static;
  }

  .logo {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .logo h1 {
    font-size: 1rem;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .login-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .login-trigger {
    width: min(100%, 260px);
  }

  .login-panel {
    left: 50%;
    transform: translate(-50%, 10px);
  }

  .login-container:hover .login-panel {
    transform: translate(-50%, 0);
  }

  .hero-section {
    margin-top: 20px;
    padding: 28px 18px;
    border-radius: 26px;
    gap: 24px;
  }

  .image-wrapper > img {
    min-height: 280px;
  }

  .floating-card {
    font-size: 0.86rem;
    padding: 10px 12px;
  }

  .features-section {
    padding: 60px 0 28px;
  }

  .slider-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
  }

  .slider-dots {
    display: inline-flex;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 107, 139, 0.18);
    backdrop-filter: blur(12px);
  }

  .cards-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 14px;
    padding: 8px 14px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    direction: ltr;
    scrollbar-width: none;
  }

  .cards-container::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 86%;
    max-width: 360px;
    min-width: unset;
    scroll-snap-align: center;
    direction: rtl;
    border-radius: 18px;
  }

  .card-image {
    height: 180px;
  }

  .card-content {
    padding: 18px 16px 20px;
  }

  .news-section {
    padding: 34px 0 54px;
  }

  .news-card,
  .news-card2 {
    border-radius: 18px;
  }

  .news-content,
  .news-content2 {
    padding: 20px 18px;
  }

  .news-title {
    font-size: 1.15rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    order: 1;
  }

  .footer-links {
    order: 2;
    justify-content: center;
  }

  .footer-copy {
    order: 3;
  }
}

@media (max-width: 420px) {
  .container,
  .footer-container,
  .main-header,
  .hero-section,
  .features-section,
  .news-section {
    width: min(var(--container), calc(100% - 20px));
  }

  .hero-content h2 {
    font-size: 1.7rem;
  }

  .btn {
    width: 100%;
  }

  .feature-card {
    flex-basis: 92%;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 18px;
  }
}





/* +++++++++++++++++++++++++
+++++++++بخش اخبار و اطلاعی ه درسه 
++++++++++++++++++++ */
/* =========================================
   Modern News Section
========================================= */

.news-section {
    border-radius: 20%;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 85px 20px 95px;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 214, 224, 0.7), transparent 25%),
        radial-gradient(circle at 90% 80%, rgba(238, 220, 255, 0.6), transparent 28%),
        linear-gradient(135deg, #fff8fa 0%, #fff 48%, #fff5f8 100%);
}

.news-section::before,
.news-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.news-section::before {
    width: 260px;
    height: 260px;
    top: -100px;
    right: -80px;
    background: rgba(255, 182, 201, 0.28);
}

.news-section::after {
    width: 220px;
    height: 220px;
    bottom: -90px;
    left: -70px;
    background: rgba(212, 190, 255, 0.22);
}

.news-pattern {
    position: absolute;
    z-index: -1;
    color: rgba(255, 107, 139, 0.2);
    font-size: 2.5rem;
    pointer-events: none;
    animation: newsFloat 5s ease-in-out infinite;
}

.news-pattern-one {
    top: 16%;
    left: 8%;
}

.news-pattern-two {
    top: 35%;
    right: 7%;
    color: rgba(184, 139, 232, 0.22);
    animation-delay: 1s;
}

.news-pattern-three {
    bottom: 15%;
    left: 18%;
    color: rgba(255, 190, 93, 0.25);
    animation-delay: 2s;
}

.news-section-heading {
    margin-bottom: 42px;
    text-align: center;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 9px 17px;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 107, 139, 0.2);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(255, 107, 139, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.9rem;
    font-weight: 700;
}

.news-badge i {
    animation: bellSwing 2.2s ease-in-out infinite;
}

.news-section-heading h2 {
    margin: 0 0 12px;
    color: var(--primary-hover);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
}

.news-section-heading p {
    margin: 0;
    color: #777;
    font-size: 0.98rem;
}

/* تنظیم فاصله و فضای تنفس */
.news-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px; /* فاصله بین باکس‌ها را از ۲۸ به ۴۰ افزایش دادم */
    padding: 15px; /* این پدینگ فضای تنفس ایجاد می‌کند تا کارت هنگام هاور بریده نشود */
    max-width: 1200px;
    margin: 0 auto;
}

/* اصلاح کارت برای جلوگیری از بریده شدن */
.news-card, 
.news-card2 {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* انیمیشن نرم‌تر */
    margin-top: 5px; /* یک مارجین کوچک برای اینکه از لبه فاصله بگیرد */
}

.news-card:hover,
.news-card2:hover {
    transform: translateY(-8px); /* مقدار را کمی تنظیم کن */
    box-shadow: 0 15px 30px rgba(255, 182, 193, 0.4); /* سایه عمیق‌تر برای حس بهتر */
}


/* اصلاح تصویر */
.news-image {
    flex: 0 0 40%; /* عکس دقیقاً ۴۰ درصد کارت را بگیرد */
    position: relative;
    overflow: hidden;
}

.news-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* اصلاح محتوا */
.news-content {
    flex: 1; /* باقی‌مانده فضا را بگیرد */
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-image-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(
        135deg,
        rgba(255, 107, 139, 0.2),
        rgba(105, 61, 133, 0.3)
    );
    font-size: 2.4rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.news-card:hover .news-image-overlay {
    opacity: 1;
}

.news-floating-date {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    width: 62px;
    height: 67px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #ff6b8b, #d94d7a);
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(150, 38, 78, 0.28);
}

.news-floating-date strong {
    font-size: 1.35rem;
    line-height: 1;
}

.news-floating-date span {
    margin-top: 5px;
    font-size: 0.78rem;
}

.news-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px;
    text-align: right;
}

.news-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    padding: 7px 12px;
    color: #d94d7a;
    background: #fff0f3;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.news-category-purple {
    color: #8d63b8;
    background: #f3ebff;
}

.news-title {
    margin: 0 0 12px;
    color: #3f3f46;
    font-size: 1.25rem;
    line-height: 1.7;
}

.news-full-text {
    margin: 0 0 20px;
    color: #777;
    font-size: 0.9rem;
    line-height: 2;
}

.news-more,
.news-all-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.news-more:hover,
.news-all-link:hover {
    gap: 14px;
    color: var(--primary-hover);
}

.news-all-link {
    display: flex;
    width: fit-content;
    margin: 36px auto 0;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 107, 139, 0.2);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(217, 77, 122, 0.1);
}

/* انیمیشن‌های ظریف */
@keyframes newsFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-13px) rotate(8deg);
    }
}

@keyframes bellSwing {
    0%, 100% {
        transform: rotate(0);
    }

    10%, 25% {
        transform: rotate(12deg);
    }

    18%, 32% {
        transform: rotate(-12deg);
    }

    40% {
        transform: rotate(0);
    }
}

@media (max-width: 850px) {
    .news-container {
        grid-template-columns: 1fr;
        max-width: 700px;
    }
}

@media (max-width: 600px) {
    .news-section {
        padding: 60px 14px 70px;
    }

    .news-card {
        flex-direction: column;
        border-radius: 22px;
    }

    .news-image {
        flex-basis: auto;
        height: 220px;
        min-height: 0;
    }

    .news-content {
        padding: 23px 20px 25px;
    }

    .news-title {
        font-size: 1.12rem;
    }

    .news-pattern {
        font-size: 1.8rem;
    }
}


/* کلاس باکس مخفی */
.hidden-news {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: opacity 0.45s ease, max-height 0.6s ease, margin-top 0.35s ease;
}

.hidden-news.active {
    opacity: 1;
    max-height: 2000px;
    margin-top: 28px;
}

@media (max-width: 850px) {
    .hidden-news {
        grid-template-columns: 1fr;
    }
}
/* استایل عمومی کارت که از قبل داشتی */
.news-card {
    display: flex;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    overflow: hidden;
    /* بقیه استایل‌های کارتت را اینجا نگه دار */
}

