:root {
  --primary-dark: #002b28;
  --primary-medium: #003d38;
  --primary-light: #66686a;
  --accent-teal: #e57e3a;
  --accent-gold: #cfb53b;
  --text-white: #ffffff;
  --text-dim: #aebdbb;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cairo", sans-serif;
  background: linear-gradient(135deg, #2f3133 0%, #66686a 50%, #4a4c4f 100%);
  color: var(--text-white);
  height: 100vh;
  padding-top: 60px;
  width: 100vw;
  overflow: hidden;
  display: flex;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 90px;
  background: #001f1d;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid var(--border-color);
  z-index: 100;
  padding: 20px 0;
}

.logo-area {
  /* display: flex; */
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.logo-area img {
  height: 30px;
}

.nav-icons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  width: 100%;
  align-items: center;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 10px 0;
}

.nav-icons::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-teal);
}

.nav-btn.active {
  background: var(--accent-teal);
  color: var(--primary-dark);
  box-shadow: 0 0 15px rgba(156, 235, 200, 0.3);
}

.nav-btn::after {
  content: attr(title);
  position: absolute;
  right: 70px;
  background: var(--accent-teal);
  color: var(--primary-dark);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1000;
}

.nav-btn:hover::after {
  opacity: 1;
}

.back-home-btn {
  margin-top: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.back-home-btn:hover {
  background: var(--accent-gold);
  color: var(--primary-dark);
}

.back-home-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ===== CONTENT AREA ===== */
.content-area {
  flex: 1;
  position: relative;
  padding: 0;
  background: linear-gradient(
    135deg,
    #001a18 0%,
    var(--primary-dark) 50%,
    #002b28 100%
  );
  overflow: hidden;
}

.content-section {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
  padding: 40px;
}

.content-section.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.content-section::-webkit-scrollbar {
  width: 6px;
}
.content-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
.content-section::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  margin-bottom: 30px;
  text-align: center;
}

.section-header h1 {
  font-size: 36px;
  color: var(--accent-teal);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-dim);
  font-size: 16px;
}

/* ===== OVERVIEW SECTION ===== */
.hero-header {
  background: linear-gradient(
      135deg,
      rgba(102, 104, 106, 0.8),
      rgba(47, 49, 51, 0.9)
    ),
    url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?w=1600")
      center/cover;
  border-radius: 20px;
  padding: 60px;
  margin-bottom: 30px;
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--primary-dark);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--text-white);
}

.hero-content p {
  font-size: 18px;
  color: var(--text-dim);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: rgb(74 76 79 / 80%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid transparent;
}

.stat-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--accent-teal);
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-dim);
  font-size: 14px;
}

.categories-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-item {
  position: relative;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

.cat-item:hover {
  transform: translateY(-5px);
}

.cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.cat-item:hover .cat-bg {
  transform: scale(1.1);
}

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
}

.cat-overlay h3 {
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.cat-overlay p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== SEASONAL EVENTS ===== */
.events-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.event-card {
  background: rgb(74 76 79 / 80%);
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.event-image {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.event-card.featured .event-image {
  height: 100%;
}

.event-content {
  padding: 25px;
  position: relative;
}

.event-tag {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 10px;
}

.event-content h2,
.event-content h3 {
  color: var(--accent-teal);
  margin-bottom: 10px;
}

.event-meta {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== SPORTS ACTIVITIES ===== */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.activity-box {
  background: rgb(74 76 79 / 80%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid transparent;
  transition: 0.3s;
}

.activity-box:hover {
  border-color: var(--accent-teal);
  transform: translateY(-5px);
}

.activity-icon {
  font-size: 50px;
  margin-bottom: 15px;
}

.activity-box h3 {
  color: var(--accent-teal);
  margin-bottom: 10px;
}

.activity-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: right;
}

.activity-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.register-btn {
  background: var(--accent-teal);
  color: var(--primary-dark);
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  margin-top: 15px;
}

.register-btn:hover {
  background: var(--accent-gold);
}

/* ===== FAMILY ACTIVITIES ===== */
.family-activities {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}

.family-card {
  background: rgb(74 76 79 / 80%);
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
}

.family-card:hover {
  transform: translateY(-5px);
}

.family-card.large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.family-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.family-card.large .family-img {
  height: 100%;
}

.family-info {
  padding: 25px;
}

.freq-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 10px;
}

.family-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.family-includes span {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
}

.date-info {
  background: var(--accent-teal);
  color: var(--primary-dark);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  margin-top: 15px;
}

/* ===== CULTURE & ARTS ===== */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.culture-item {
  background: rgb(74 76 79 / 80%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
  border: 1px solid transparent;
}

.culture-item:hover {
  border-color: var(--accent-teal);
  background: rgba(156, 235, 200, 0.05);
}

.culture-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.culture-date {
  display: block;
  margin-top: 15px;
  color: var(--accent-gold);
  font-size: 12px;
}

/* ===== WORKSHOPS ===== */
.workshops-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.workshop-card {
  background: rgb(74 76 79 / 80%);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: 0.3s;
}

.workshop-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-3px);
}

.workshop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.workshop-cat {
  background: var(--accent-teal);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: bold;
}

.workshop-level {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
}

.workshop-details {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.workshop-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent-teal);
  color: var(--accent-teal);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  margin-top: 10px;
}

.workshop-btn:hover {
  background: var(--accent-teal);
  color: var(--primary-dark);
}

/* ===== FOOD FESTIVALS ===== */
.food-festivals {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.festival-banner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: rgb(74 76 79 / 80%);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.festival-image {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.festival-content {
  padding: 40px;
}

.festival-badge {
  background: var(--accent-gold);
  color: var(--primary-dark);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

.festival-info {
  margin-top: 20px;
}

.info-item {
  margin: 10px 0;
}

.info-item strong {
  color: var(--accent-teal);
  margin-left: 10px;
}

.food-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.highlight-item {
  background: rgb(74 76 79 / 80%);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
}

.highlight-icon {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
}

/* ===== CHARITY INITIATIVES ===== */
.charity-initiatives {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.initiative-card {
  padding: 30px;
  border-radius: 15px;
  border-right: 4px solid;
}

.initiative-card.green {
  background: rgba(46, 204, 113, 0.1);
  border-color: #2ecc71;
}

.initiative-card.blue {
  background: rgba(52, 152, 219, 0.1);
  border-color: #3498db;
}

.initiative-card.orange {
  background: rgba(230, 126, 34, 0.1);
  border-color: #e67e22;
}

.initiative-card.red {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
}

.init-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.init-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.init-stat {
  text-align: center;
}

.init-stat strong {
  display: block;
  font-size: 28px;
  color: var(--accent-teal);
}

.init-stat span {
  font-size: 12px;
  color: var(--text-dim);
}

/* ===== ENTERTAINMENT ===== */
.entertainment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.entertainment-card {
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  cursor: pointer;
}

.entertainment-card:hover {
  transform: translateY(-5px);
}

.ent-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.ent-info {
  background: rgb(74 76 79 / 80%);
  padding: 20px;
}

.ent-freq {
  display: block;
  margin-top: 10px;
  color: var(--accent-gold);
  font-size: 12px;
}

/* ===== COMPETITIONS ===== */
.competitions-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.current-comp {
  background: rgb(74 76 79 / 80%);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--accent-teal);
  position: relative;
}

.comp-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}

.prizes {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.prize {
  flex: 1;
  text-align: center;
  padding: 25px;
  border-radius: 15px;
}

.prize.gold {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #000;
}
.prize.silver {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: #000;
}
.prize.bronze {
  background: linear-gradient(135deg, #cd7f32, #e59866);
  color: #000;
}

.prize-medal {
  font-size: 40px;
  margin-bottom: 10px;
}

.prize-value {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.prize-label {
  font-size: 12px;
}

.comp-deadline {
  background: rgba(231, 76, 60, 0.1);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin: 20px 0;
  border: 1px solid #e74c3c;
}

.participate-btn {
  width: 100%;
  background: var(--accent-teal);
  color: var(--primary-dark);
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.participate-btn:hover {
  background: var(--accent-gold);
}

.upcoming-comps {
  background: rgb(74 76 79 / 80%);
  padding: 25px;
  border-radius: 15px;
}

.upcoming-comps h3 {
  color: var(--accent-teal);
  margin-bottom: 20px;
}

.upcoming-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 10px;
}

.up-icon {
  font-size: 30px;
}

.up-info h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.up-date {
  font-size: 11px;
  color: var(--accent-gold);
}

/* ===== PARTNERSHIPS ===== */
.partners-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.partners-intro {
  background: rgb(74 76 79 / 80%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-card {
  background: rgb(74 76 79 / 80%);
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
}

.partner-card:hover {
  background: rgba(156, 235, 200, 0.05);
  transform: translateY(-3px);
}

.partner-logo {
  font-size: 50px;
  margin-bottom: 15px;
}

.sponsorship-cta {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  color: var(--primary-dark);
}

.contact-btn {
  background: var(--primary-dark);
  color: var(--accent-teal);
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: 0.3s;
}

.contact-btn:hover {
  background: #000;
}

/* ===== CALENDAR ===== */
.calendar-view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.month-section {
  background: rgb(74 76 79 / 80%);
  padding: 25px;
  border-radius: 15px;
}

.month-header {
  background: rgba(47, 49, 51, 0.8);
  color: #b5b7ba;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}

.events-timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.timeline-event {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border-right: 3px solid var(--accent-gold);
}

.event-date {
  color: var(--accent-teal);
  font-weight: bold;
  font-size: 13px;
}

.event-name {
  color: var(--text-white);
  font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-preview {
    grid-template-columns: 1fr;
  }
  .events-showcase {
    grid-template-columns: 1fr;
  }
  .event-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .activities-grid {
    grid-template-columns: 1fr;
  }
  .family-activities {
    grid-template-columns: 1fr;
  }
  .family-card.large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .culture-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workshops-list {
    grid-template-columns: 1fr;
  }
  .entertainment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .competitions-layout {
    grid-template-columns: 1fr;
  }
  .calendar-view {
    grid-template-columns: 1fr;
  }
}
/* ===== BOTTOM NAV EXTENDED (10 Items) ===== */
.bottom-nav-extended {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 43, 40, 0.98);
  backdrop-filter: blur(10px);
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  padding: 8px 5px;
  border-top: 1px solid rgba(229, 126, 58, 0.2);
  z-index: 1000;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.nav-item-ext {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  color: var(--text-dim);
  position: relative;
}

.nav-item-ext:hover {
  background: #533a2d;
  color: var(--accent-teal);
  transform: translateY(-2px);
}

.nav-item-ext.active {
  background: rgba(156, 235, 200, 0.15);
  color: var(--accent-teal);
}

.nav-item-ext svg {
  flex-shrink: 0;
}

.nav-item-ext span {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* زر المزيد مع مؤشر */
.nav-item-ext.nav-more::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ===== EXTENDED MENU POPUP ===== */
.extended-menu-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.extended-menu-popup.active {
  pointer-events: auto;
  opacity: 1;
}

.extended-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.extended-menu-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  max-height: 75vh;
  background: var(--primary-dark);
  border-radius: 25px 25px 0 0;
  padding: 25px 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.extended-menu-popup.active .extended-menu-content {
  transform: translateY(0);
}

.extended-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(229, 126, 58, 0.2);
}

.extended-menu-header h3 {
  color: var(--accent-teal);
  font-size: 20px;
  font-weight: bold;
}

.close-extended-menu {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-white);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s;
}

.close-extended-menu:hover {
  background: var(--accent-teal);
  color: var(--primary-dark);
  transform: rotate(90deg);
}

.extended-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.extended-menu-section h4 {
  color: var(--accent-teal);
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.extended-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-white);
  transition: all 0.3s;
  border: 1px solid transparent;
  margin-bottom: 8px;
}

.extended-menu-link:hover {
  background: rgba(156, 235, 200, 0.1);
  border-color: var(--accent-teal);
  transform: translateX(-3px);
}

.extended-menu-link .link-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.extended-menu-link span:last-child {
  font-size: 14px;
  font-weight: 500;
}

.extended-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--accent-teal);
  color: var(--primary-dark);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
}

.quick-action-btn:hover {
  background: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(156, 235, 200, 0.3);
}

/* Scrollbar */
.extended-menu-content::-webkit-scrollbar {
  width: 6px;
}

.extended-menu-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.extended-menu-content::-webkit-scrollbar-thumb {
  background: var(--accent-teal);
  border-radius: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .bottom-nav-extended {
    grid-template-columns: repeat(5, 1fr);
  }

  .nav-item-ext:nth-child(n + 6) {
    display: none;
  }

  .nav-item-ext.nav-more {
    display: flex;
  }
}

@media (max-width: 768px) {
  .bottom-nav-extended {
    grid-template-columns: repeat(5, 1fr);
    padding: 6px 3px;
  }

  .nav-item-ext {
    padding: 6px 2px;
  }

  .nav-item-ext span {
    font-size: 9px;
  }

  .nav-item-ext svg {
    width: 18px;
    height: 18px;
  }

  .extended-menu-grid {
    grid-template-columns: 1fr;
  }

  .extended-menu-content {
    padding: 20px 15px;
    max-height: 80vh;
  }

  .extended-quick-actions {
    grid-template-columns: 1fr;
  }
  .festival-banner {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }
  .food-highlights,
  .charity-initiatives,
  .entertainment-grid,
  .partners-grid,
  .culture-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .prizes {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .bottom-nav-extended {
    grid-template-columns: repeat(5, 1fr);
  }

  .nav-item-ext span {
    font-size: 8px;
  }

  .extended-menu-header h3 {
    font-size: 18px;
  }

  .extended-menu-link {
    padding: 10px;
  }

  .quick-action-btn {
    font-size: 12px;
    padding: 10px;
  }
}

/* إخفاء القائمة القديمة على الصفحات الفرعية */
.bottom-nav {
  display: none;
}
/* تحسينات إضافية للقائمة الموسعة */

.extended-menu-note {
  background: rgba(156, 235, 200, 0.1);
  border: 1px solid rgba(156, 235, 200, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

.extended-menu-note p {
  color: var(--accent-teal);
  font-size: 12px;
  margin: 0;
  line-height: 1.5;
}

/* تمييز العناصر في القائمة المنبثقة */
.extended-menu-link.main-page {
  background: rgba(156, 235, 200, 0.08);
  border: 1px solid rgba(229, 126, 58, 0.2);
}

/* تحسين عرض الأيقونات في الموبايل */
@media (max-width: 768px) {
  .nav-item-ext span {
    font-size: 8.5px;
    max-width: 55px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* تحسين العرض على الشاشات الصغيرة جداً */
@media (max-width: 380px) {
  .bottom-nav-extended {
    grid-template-columns: repeat(5, 1fr);
    padding: 5px 2px;
  }

  .nav-item-ext {
    padding: 5px 1px;
  }

  .nav-item-ext svg {
    width: 16px;
    height: 16px;
  }

  .nav-item-ext span {
    font-size: 7.5px;
  }

  /* إخفاء بعض العناصر على الشاشات الصغيرة جداً */
  .nav-item-ext:nth-child(n + 6):not(.nav-more) {
    display: none;
  }
}

/* تأثير خاص للعناصر الرئيسية */
.nav-item-ext:nth-child(-n + 9) {
  position: relative;
}

.nav-item-ext:nth-child(-n + 9):hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: #eaa75e;
  border-radius: 2px;
}

/* تحسين ترتيب العناصر في التابلت */
@media (max-width: 1024px) and (min-width: 769px) {
  .bottom-nav-extended {
    grid-template-columns: repeat(5, 1fr);
  }

  /* إظهار أول 4 عناصر + المزيد */
  .nav-item-ext:nth-child(n + 6):not(.nav-more) {
    display: none;
  }

  .nav-item-ext.nav-more {
    display: flex;
  }
}

/* تحسين الظهور على الشاشات العريضة */
@media (min-width: 1400px) {
  .bottom-nav-extended {
    padding: 10px 20px;
    max-width: 1400px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px 20px 0 0;
  }

  .nav-item-ext {
    padding: 10px 8px;
  }

  .nav-item-ext span {
    font-size: 11px;
  }
}

/* ===== CONTENT AREA (تحديث للسماح بالسكرول الداخلي في الأقسام الفرعية فقط) ===== */
.content-area {
  flex: 1;
  position: relative;
  padding: 0;
  background: linear-gradient(
    135deg,
    #001a18 0%,
    var(--primary-dark) 50%,
    #002b28 100%
  );
  overflow: hidden; /* الحفاظ على hidden للـ content-area الرئيسي */
  margin-top: var(--header-height);
  height: calc(
    100vh - var(--header-height)
  ); /* أو calc(100vh - var(--header-height) - var(--bottom-nav-height)) في الموبايل */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ===== CONTENT SECTION (بدون سكرول داخلي عام، يعتمد على الأبناء) ===== */
.content-section {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  height: 100%; /* يملأ content-area كاملاً */
  overflow: hidden; /* إزالة السكرول من هنا، ليكون بدون scroll عام */
  padding: 0; /* إزالة padding عام، ونضيفه للأبناء */
  -webkit-overflow-scrolling: touch;
}

.content-section.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* إزالة scrollbar من content-section العام */
.content-section::-webkit-scrollbar {
  display: none; /* إخفاء أي scrollbar متبقي */
}

/* ===== SECTION HEADER (بدون سكرول) ===== */
.section-header {
  margin-bottom: 30px;
  text-align: center;
  overflow: hidden; /* منع أي سكرول داخلي */
  padding: 0 40px; /* padding أفقي فقط، بدون vertical إضافي */
  position: relative; /* للتحكم في الموقع */
  flex-shrink: 0; /* منع الضغط عليه */
}

.section-header h1 {
  font-size: 36px;
  color: var(--accent-teal);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-dim);
  font-size: 16px;
}

@media (max-width: 768px) {
  /* content-area: خصم header + bottom-nav */
  .content-area {
    height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
    padding-bottom: var(--bottom-nav-height);
  }

  .event-card,
  .workshop-card,
  .activity-box,
  .family-card,
  .culture-item,
  .initiative-card,
  .entertainment-card,
  .partner-card,
  .month-section,
  .partners-intro {
    margin-bottom: 20px;
  }
  .content-section {
    display: flex;
    flex-direction: column;
  }

  .food-festivals,
  .events-showcase,
  .workshops-list,
  .activities-grid,
  .family-activities,
  .culture-grid,
  .charity-initiatives,
  .entertainment-grid,
  .partners-grid,
  .calendar-view,
  .partners-content,
  .competitions-layout {
    flex: 1;
    display: block;
    height: auto;
    overflow-y: auto;
  }

  .food-festivals::-webkit-scrollbar,
  .events-showcase::-webkit-scrollbar,
  .workshops-list::-webkit-scrollbar,
  .activities-grid::-webkit-scrollbar,
  .family-activities::-webkit-scrollbar,
  .culture-grid::-webkit-scrollbar,
  .charity-initiatives::-webkit-scrollbar,
  .entertainment-grid::-webkit-scrollbar,
  .partners-grid::-webkit-scrollbar,
  .calendar-view::-webkit-scrollbar,
  .partners-content::-webkit-scrollbar,
  .competitions-layout::-webkit-scrollbar {
    width: 4px;
  }

  .food-festivals::-webkit-scrollbar-thumb,
  .events-showcase::-webkit-scrollbar-thumb,
  .workshops-list::-webkit-scrollbar-thumb,
  .activities-grid::-webkit-scrollbar-thumb,
  .family-activities::-webkit-scrollbar-thumb,
  .culture-grid::-webkit-scrollbar-thumb,
  .charity-initiatives::-webkit-scrollbar-thumb,
  .entertainment-grid::-webkit-scrollbar-thumb,
  .partners-grid::-webkit-scrollbar-thumb,
  .calendar-view::-webkit-scrollbar-thumb,
  .partners-content::-webkit-scrollbar-thumb,
  .competitions-layout::-webkit-scrollbar-thumb {
    border-radius: 2px;
  }
}
