/* ==========================================================================
   أنماط اللاندنج بيدج الرسمية - مستر عزازي علي (التاريخ والجغرافيا)
   Landing Page CSS - Highly Polished & Responsive
   ========================================================================== */

/* شريط التنقل العلوي (Navbar) */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(12, 20, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 155, 60, 0.2);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  color: var(--gold-500);
}

.brand-logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.brand-logo-text span {
  font-size: 0.8rem;
  color: var(--gold-500);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-500);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-backdrop { display: none; }

/* قسم الهيرو (Hero Section) */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #070d1e 0%, #0c1427 60%, #162447 100%);
  color: #ffffff;
  padding: 4rem 2rem 5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 155, 60, 0.25);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(200, 155, 60, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(13, 148, 136, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: right;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 155, 60, 0.15);
  border: 1px solid var(--gold-500);
  color: var(--gold-500);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hero-title .highlight-gold {
  color: var(--gold-500);
  display: block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 420px);
}

.hero-primary-action, .hero-login-action { width: 100%; min-height: 48px; }
.hero-login-action { color: #fff !important; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.025); }
.hero-login-action:hover { color: var(--navy-950) !important; background: #fff; border-color: #fff; }
.hero-login-action:hover { color: var(--navy-950); background: #fff; border-color: #fff; }
.hero-quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: min(100%, 420px); margin-top: .8rem; color: #cbd5e1; font-size: .9rem; }
.hero-quick-links a:hover { color: var(--gold-500); }
.hero-registration-actions .student-register-action { min-height: 44px; width: 100%; color: #e2e8f0 !important; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.32); box-shadow: none; }
.hero-registration-actions .student-register-action:hover { color: #fff !important; background: rgba(200,155,60,.16); border-color: var(--gold-500); transform: translateY(-1px); }

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-teacher-card {
  width: 340px;
  height: 425px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid var(--gold-500);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(200, 155, 60, 0.3);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.hero-teacher-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(200, 155, 60, 0.4);
}

.hero-teacher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-glow-circle {
  position: absolute;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.3) 0%, rgba(13, 148, 136, 0.15) 60%, transparent 80%);
  z-index: 1;
}

/* الأقسام العامة */
.section {
  padding: 5rem 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--gold-500);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* مادتان تصنعان مستقبلك (التاريخ والجغرافيا) */
.subjects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.subject-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.subject-card.history {
  border-top: 5px solid var(--history-color);
}

.subject-card.geography {
  border-top: 5px solid var(--geo-color);
}

.subject-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history .subject-card-icon {
  background-color: var(--history-bg);
  color: var(--history-color);
}

.geography .subject-card-icon {
  background-color: var(--geo-bg);
  color: var(--geo-color);
}

.subject-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1rem;
}

.subject-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* مميزات التعلم */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-500);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background-color: var(--gold-100);
  color: var(--gold-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* بطاقات المجموعات الدراسية */
.groups-filter-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--navy-850);
  color: #ffffff;
  border-color: var(--navy-850);
}

.groups-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.public-group-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-height: 285px;
}

.public-group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.public-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.public-group-card-body { flex: 1; }
.public-group-grade { font-size: .85rem; color: var(--gold-600); font-weight: 700; margin: 0; }
.group-detail-label { color: var(--text-muted); white-space: nowrap; }
.public-group-details strong { color: var(--navy-900); font-weight: 700; }
.public-group-details .group-fee { font-size: .95rem; }
.public-group-card .book-group-btn { margin-top: auto; min-height: 44px; }

.public-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
}

.public-group-details {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.public-group-details li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.public-group-capacity { margin: 1rem 0 1.25rem; font-size: .82rem; color: var(--text-muted); }
.public-group-capacity > span, .public-group-capacity > strong { display: inline-block; }
.public-group-capacity > strong { float: left; color: var(--navy-900); }
.public-group-capacity > div { clear: both; height: 7px; margin-top: .45rem; overflow: hidden; border-radius: 99px; background: #e2e8f0; }
.public-group-capacity i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-500), var(--gold-700)); }

/* شريط التواصل والحجز السريع */
.contact-banner {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(200, 155, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--gold-500);
  color: var(--navy-950);
  font-size: 1.5rem;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(200, 155, 60, 0.4);
  direction: ltr;
}

.contact-phone-btn:hover {
  background-color: var(--gold-600);
  transform: scale(1.03);
}

/* التذييل Footer */
.landing-footer {
  background-color: var(--navy-950);
  color: #94a3b8;
  padding: 3rem 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1.5rem;
}

/* Responsive التجاوب */
@media (max-width: 1024px) {
  .groups-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-actions, .hero-quick-links { margin-inline: auto; }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .groups-showcase-grid { grid-template-columns: 1fr; gap: 1rem; }
  .public-group-card { min-height: 0; padding: 1.25rem; }
  body.menu-open { overflow: hidden; }
  .landing-nav { padding: .65rem 1rem; }
  .brand-logo-icon { width: 34px; height: 34px; }
  .brand-logo-text h1 { font-size: 1.05rem; }
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    width: min(84vw, 340px);
    height: 100dvh;
    padding: 5.25rem 1.25rem 1.5rem;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
    box-shadow: -14px 0 40px rgba(0,0,0,.3);
    z-index: 1001;
  }
  .nav-links.active { transform: translateX(0); visibility: visible; }
  .nav-links li, .nav-links a { width: 100%; }
  .nav-links a { display: flex; min-height: 46px; align-items: center; padding: .55rem .8rem; border-radius: 10px; }
  .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.06); }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; border: 0; background: rgba(7,13,30,.58);
    opacity: 0; visibility: hidden; transition: .25s ease; z-index: 999;
  }
  .nav-backdrop.active { opacity: 1; visibility: visible; }
  .mobile-menu-btn { position: relative; z-index: 1002; }
  .mobile-menu-btn[aria-expanded="true"] { color: var(--gold-500); }
  .hero-section { padding: 2.75rem 1rem 3.25rem; }
  .hero-container { gap: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-actions, .hero-quick-links { grid-template-columns: 1fr; width: 100%; gap: .7rem; }
  .hero-actions .btn { width: 100%; }
  .hero-teacher-card { width: min(300px, 84vw); height: min(375px, 105vw); }
  .hero-glow-circle { width: 300px; height: 300px; }
  .section { padding: 3.25rem 1rem; }
  .section-header { margin-bottom: 2rem; }
  .section-title { font-size: 1.75rem; }
  .groups-filter-nav { justify-content: flex-start; overflow-x: auto; padding-bottom: .4rem; }
  .filter-btn { flex: 0 0 auto; }
  .contact-banner { padding: 2.25rem 1rem; }
  .contact-phone-btn { font-size: 1.1rem; padding: .7rem 1.25rem; }
  .mobile-menu-btn { display: block; }
  .hero-title {
    font-size: 2.25rem;
  }
  .subjects-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .landing-footer { padding-inline: 1rem; }
}

/* مجموعة مكتملة العدد (من غير إظهار أي أرقام للزوار) */
.public-group-card.is-full { opacity: .92; border-style: dashed; }
.group-full-note { margin: .25rem 0 .6rem; padding: .55rem .7rem; text-align: center; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 10px; font-weight: 700; font-size: .9rem; }
