/* =====================================================
   Military Medicine Society - Main Stylesheet
   Colors: Dark Olive Green + Metallic Gold/Bronze
   ===================================================== */

/* CSS Variables - Brand Identity */
:root {
  --primary: #4a5240;
  /* Dark Olive Green */
  --primary-dark: #353b2d;
  /* Darker Olive */
  --primary-light: #5e6854;
  /* Lighter Olive */
  --secondary: #b8953a;
  /* Metallic Gold */
  --secondary-dark: #9a7b2d;
  /* Darker Gold */
  --secondary-light: #d4af55;
  /* Lighter Gold */
  --white: #ffffff;
  --off-white: #f8f7f5;
  --light-grey: #f5f5f5;
  --grey: #e8e8e8;
  --text-dark: #1a1a1a;
  --text-medium: #444444;
  --text-light: #777777;
  --border: rgba(184, 149, 58, 0.25);
  --shadow: 0 4px 24px rgba(74, 82, 64, 0.12);
  --shadow-hover: 0 8px 40px rgba(74, 82, 64, 0.2);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Tajawal', 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

body.mobile-nav-open,
body.admin-sidebar-open {
  overflow: hidden !important;
}

body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

body.font-arabic {
  font-family: 'Tajawal', sans-serif;
}

body.font-latin {
  font-family: 'Inter', sans-serif;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================== HEADER / NAVBAR ===================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 2px 20px rgba(74, 82, 64, 0.08);
}

/* Transparent header when hero is visible (homepage only) */
body.has-hero .site-header {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

body.has-hero .site-header .logo-text .name-ar,
body.has-hero .site-header .logo-text .name-en {
  color: var(--white);
}

body.has-hero .site-header .nav-link {
  color: rgba(255, 255, 255, 0.92);
}

body.has-hero .site-header .nav-link:hover {
  color: var(--secondary-light);
}

body.has-hero .site-header .btn-membership {
  border-color: var(--secondary);
  color: var(--secondary-light);
  background: transparent;
}

body.has-hero .site-header .btn-login {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

body.has-hero .site-header .lang-btn {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

body.has-hero .site-header .mobile-toggle span {
  background: var(--white);
}

/* Once scrolled, always white */
.site-header.scrolled {
  background: var(--white) !important;
  border-bottom-color: var(--border) !important;
  box-shadow: 0 4px 30px rgba(74, 82, 64, 0.15) !important;
}

.site-header.scrolled .logo-text .name-ar,
.site-header.scrolled .logo-text .name-en {
  color: var(--primary) !important;
}

.site-header.scrolled .nav-link {
  color: var(--text-dark) !important;
}

.site-header.scrolled .btn-login {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-color: var(--primary) !important;
}

.site-header.scrolled .btn-membership {
  border-color: var(--secondary) !important;
  color: var(--secondary-dark) !important;
  background: transparent !important;
}

.site-header.scrolled .lang-btn {
  color: var(--text-medium) !important;
  border-color: var(--border) !important;
}

.site-header.scrolled .mobile-toggle span {
  background: var(--primary) !important;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1.5rem;
  height: 65px;
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 2.5rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .name-ar {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text .name-en {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: flex-start;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  height: 65px;
  border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

.nav-link .chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.nav-item:hover .nav-link .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--secondary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
  padding: 0.5rem 0;
}

body.rtl .dropdown-menu {
  right: 0;
  left: auto;
}

body.ltr .dropdown-menu {
  left: 0;
  right: auto;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-medium);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

body.rtl .dropdown-item {
  border-left: none;
  border-right: 3px solid transparent;
}

.dropdown-item:hover {
  background: var(--light-grey);
  color: var(--primary);
  border-left-color: var(--secondary);
}

body.rtl .dropdown-item:hover {
  border-left-color: transparent;
  border-right-color: var(--secondary);
}

.dropdown-item i {
  color: var(--secondary);
  width: 18px;
  font-size: 0.8rem;
}

/* Wide dropdown for governance / e-services */
.dropdown-wide {
  min-width: 320px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Dropdown group label (section header inside dropdown) */
.dropdown-group-label {
  padding: 0.5rem 1.2rem 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 1px dashed var(--border);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-group-label:first-child {
  border-top: none;
  margin-top: 0;
}

.dropdown-group-label i {
  color: var(--secondary);
  font-size: 0.72rem;
}

/* Indented sub-items */
.dropdown-sub-item {
  padding-inline-start: 2rem !important;
  font-size: 0.82rem !important;
}

/* Mobile sub-group labels */
.mobile-sub-group {
  padding: 0.45rem 1rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  margin-top: 0.25rem;
  list-style: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-inline-start: auto;
  justify-content: flex-end;
  height: 100%;
}

/* User Nav Dropdown */
.user-nav-dropdown {
  position: relative;
}

.user-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.8rem;
  background: rgba(184, 149, 58, 0.08);
  /* Light secondary tint */
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-sm);
  color: var(--secondary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.user-nav-btn i:first-child {
  font-size: 1.15rem;
  color: var(--secondary);
}

.user-nav-btn .chevron {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.2s;
}

.user-nav-dropdown:hover .user-nav-btn {
  background: var(--secondary);
  color: var(--white);
}

.user-nav-dropdown:hover .user-nav-btn i {
  color: var(--white);
}

.user-nav-dropdown:hover .user-nav-btn .chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  inset-inline-end: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--secondary);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1000;
  list-style: none;
  margin: 0;
}

.user-nav-dropdown:hover .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  text-decoration: none;
}

.user-dropdown-menu li a:hover {
  background: var(--light-grey);
  color: var(--primary);
}

.user-dropdown-menu li a i {
  color: var(--secondary);
  width: 18px;
  font-size: 0.9rem;
}

.user-dropdown-menu .divider {
  height: 1px;
  background: var(--border);
  margin: 0.4rem 0;
}

.user-dropdown-menu .logout-link {
  color: #dc3545 !important;
}

.user-dropdown-menu .logout-link:hover {
  background: #fff5f5 !important;
}

.user-dropdown-menu .logout-link i {
  color: #dc3545 !important;
}

.lang-btn {
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lang-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-login {
  padding: 0.45rem 1.1rem;
  background: transparent;
  border: 1.5px solid var(--secondary);
  color: var(--secondary-dark);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-login:hover {
  background: var(--secondary);
  color: var(--white);
}

.btn-membership {
  padding: 0.45rem 1.1rem;
  background: var(--primary);
  border: 1.5px solid var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-membership:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.nawa-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  font-size: 1.05rem;
  background: transparent;
  transition: var(--transition);
  text-decoration: none;
}

.nawa-link:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 149, 58, 0.3);
}

body.has-hero .site-header .nawa-link {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

/* Mobile Menu Toggle - hidden on desktop */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  margin: 0 auto;
}

/* Mobile Nav - hidden on desktop */
.mobile-nav,
.nav-overlay {
  display: none;
}

/* ===================== HERO / SLIDER ===================== */

.hero-section {
  margin-top: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100vh;
  min-height: 580px;
}

/* Default gradient backgrounds per slide index (when no image uploaded) */
.hero-slide {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: linear-gradient(135deg, #2a3020 0%, #3d4435 40%, #4a5240 100%);
}

/* Decorative geometric pattern overlay */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(184, 149, 58, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(184, 149, 58, 0.04) 0%, transparent 40%),
    repeating-linear-gradient(45deg,
      transparent,
      transparent 40px,
      rgba(255, 255, 255, 0.012) 40px,
      rgba(255, 255, 255, 0.012) 41px);
  z-index: 0;
}

/* Animated floating shapes */
.hero-slide::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 149, 58, 0.08) 0%, transparent 70%);
  z-index: 0;
}

/* Alternating gradient per slide position */
.swiper-slide:nth-child(2) .hero-slide {
  background: linear-gradient(135deg, #1e2818 0%, #2d3828 45%, #3a4435 100%);
}

.swiper-slide:nth-child(3) .hero-slide {
  background: linear-gradient(135deg, #2d3020 0%, #454d3a 45%, #4a5240 100%);
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.5) saturate(0.9);
  z-index: 1;
  transition: transform 8s ease;
}

/* Ken Burns zoom effect on active slide */
.swiper-slide-active .hero-slide-bg {
  transform: scale(1.06);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, transparent 30%, transparent 60%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(135deg, rgba(40, 47, 32, 0.82) 0%, rgba(74, 82, 64, 0.5) 55%, rgba(184, 149, 58, 0.12) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2rem 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Only show content of the active main slide */
.swiper-slide-active .hero-slide-content {
  opacity: 1;
  visibility: visible;
}

/* Decorative gold line on the side */
.hero-slide-content::before {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
  opacity: 0.6;
}

body.rtl .hero-slide-content::before {
  right: 0;
  left: auto;
}

body.ltr .hero-slide-content::before {
  left: 0;
  right: auto;
}

.hero-text {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(184, 149, 58, 0.2);
  border: 1px solid var(--secondary);
  border-radius: 20px;
  color: var(--secondary-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1.1rem;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.2rem;
  line-height: 1.75;
  max-width: 540px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mobile-hero-actions {
  display: none !important;
}

.btn-hero-primary {
  padding: 0.85rem 2rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  border: 2px solid var(--secondary);
}

.btn-hero-primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 149, 58, 0.4);
}

.btn-hero-outline {
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

/* =========================================
   HERO LEADERS SLIDER (Right Side Area)
   ========================================= */
.hero-leaders-wrapper {
  flex: 1;
  max-width: 520px;
  width: 100%;
  margin-right: auto;
  margin-left: 1rem;
  position: relative;
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

body.rtl .hero-leaders-wrapper {
  margin-right: 1rem;
  margin-left: auto;
}

.hero-leaders-swiper {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.leader-slide {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  text-align: right;
  background: rgba(30, 41, 25, 0.75);
}

body.ltr .leader-slide {
  text-align: left;
}

.leader-image-container {
  position: relative;
  width: 100%;
  flex: 1;
  z-index: 1;
  overflow: hidden;
}

.leader-image-container::after {
  display: none;
}

.leader-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 6s ease;
}

.vision-logo {
  object-fit: cover !important;
  padding: 0;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.swiper-slide-active .leader-image {
  transform: scale(1.08);
}

.leader-info {
  position: relative;
  z-index: 3;
  padding: 1.5rem 1.5rem 2.5rem;
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.swiper-slide-active .leader-info {
  transform: translateY(0);
  opacity: 1;
}

.leader-title {
  display: inline-block;
  background: rgba(184, 149, 58, 0.85);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.leader-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.leader-quote {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  border-right: 3px solid var(--secondary);
  padding-right: 1rem;
}

body.ltr .leader-quote {
  border-right: none;
  border-left: 3px solid var(--secondary);
  padding-right: 0;
  padding-left: 1rem;
}

/* Pagination for leaders slider */
.hero-leaders-wrapper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.hero-leaders-wrapper .swiper-pagination-bullet-active {
  background: var(--secondary);
  width: 20px;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-slide-content {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 100px;
    padding-bottom: 5rem;
    gap: 1.5rem;
    height: auto !important;
    min-height: auto;
  }

  .hero-slide {
    height: auto;
    min-height: auto;
  }

  .hero-text {
    display: contents;
    /* Changed to contents to allow flex ordering of children */
  }

  .hero-badge,
  .hero-title,
  .hero-subtitle {
    order: 1;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  body.rtl .hero-leaders-wrapper,
  .hero-leaders-wrapper {
    order: 2;
    margin: 0 auto;
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 450px;
    /* Adjusted for mobile text visibility */
  }

  .leader-slide {
    height: 100%;
  }

  .leader-info {
    padding: 1rem 1rem 2rem;
  }

  .leader-quote {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .desktop-hero-actions {
    display: none !important;
  }

  .mobile-hero-actions {
    display: flex !important;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    order: 3;
    position: relative;
    z-index: 10;
  }
}

/* Swiper Controls */
.hero-swiper .swiper-pagination {
  bottom: 2rem !important;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.45) !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--secondary) !important;
  width: 32px !important;
  border-radius: 4px !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--white) !important;
  background: rgba(184, 149, 58, 0.2);
  border: 1.5px solid rgba(184, 149, 58, 0.5);
  border-radius: 50%;
  width: 50px !important;
  height: 50px !important;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(184, 149, 58, 0.45) !important;
  border-color: var(--secondary) !important;
  transform: scale(1.05);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 0.9rem !important;
  font-weight: 800;
}

/* Hero scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounceDown 2s ease infinite;
  pointer-events: none;
}

.hero-scroll-hint span {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

@keyframes bounceDown {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ===================== SECTION STYLES ===================== */

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-lg {
  padding: 7rem 0;
}

.section-grey {
  background-color: var(--light-grey);
}

.section-dark {
  background-color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--secondary);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-title-underline {
  display: inline-block;
  padding-bottom: 0.5rem;
  position: relative;
}

.section-title-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===================== ABOUT SECTION ===================== */

.about-section {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-main {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-image-badge {
  position: absolute;
  bottom: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow);
}

body.rtl .about-image-badge {
  right: -20px;
  border-left: none;
  border-right: 4px solid var(--secondary);
}

body.ltr .about-image-badge {
  left: -20px;
}

.about-image-badge .badge-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary-light);
  line-height: 1;
}

.about-image-badge .badge-label {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}

.about-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.about-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.about-text {
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--light-grey);
  border-radius: var(--radius);
  border-bottom: 2px solid var(--border);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon i {
  color: var(--secondary-light);
  font-size: 0.9rem;
}

.highlight-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.highlight-text {
  font-size: 0.78rem;
  color: var(--text-light);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid var(--primary);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(74, 82, 64, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--secondary-dark);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid var(--secondary);
  transition: var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(184, 149, 58, 0.2);
}

.btn-outline-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--primary);
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===================== STATISTICS SECTION ===================== */

.stats-section {
  background: var(--primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 149, 58, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 220px;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(184, 149, 58, 0.15);
  border: 1px solid rgba(184, 149, 58, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.stat-icon i {
  color: var(--secondary-light);
  font-size: 1.3rem;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 130px;
  text-align: center;
}

.stat-suffix {
  color: var(--secondary-light);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ===================== COMMITTEES / CARDS ===================== */

.committees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.committee-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.committee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.committee-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--secondary);
}

.committee-card:hover::before {
  transform: scaleX(1);
}

.committee-icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.committee-icon-wrap i {
  color: var(--secondary-light);
  font-size: 1.3rem;
}

.committee-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.committee-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.committee-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--secondary-dark);
}

.committee-link:hover {
  color: var(--primary);
}

.committee-link i {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.committee-link:hover i {
  transform: translateX(3px);
}

body.rtl .committee-link:hover i {
  transform: translateX(-3px);
}

/* ===================== NEWS SECTION ===================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(184, 149, 58, 0.12);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(74, 82, 64, 0.08);
}

.news-card:hover {
  box-shadow: 0 20px 50px rgba(74, 82, 64, 0.15);
  transform: translateY(-8px);
  border-color: rgba(184, 149, 58, 0.3);
}

.news-card-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

.news-card-image-wrap {
  overflow: hidden;
  position: relative;
  height: 210px;
}

.news-card-category {
  position: absolute;
  top: 1rem;
  background: var(--secondary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}

body.rtl .news-card-category {
  right: 1rem;
}

body.ltr .news-card-category {
  left: 1rem;
}

.news-card-body {
  padding: 1.5rem;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

.news-card-meta i {
  color: var(--secondary);
}

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.news-card-title:hover {
  color: var(--secondary-dark);
}

.news-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  overflow: hidden;
}

.news-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1rem;
}

.news-read-more {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary-dark);
}

.news-read-more:hover {
  color: var(--primary);
}

.news-read-more i {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.news-read-more:hover i {
  transform: translateX(3px);
}

body.rtl .news-read-more:hover i {
  transform: translateX(-3px);
}

/* ===================== PARTNERS SECTION ===================== */

.partners-section {
  padding: 4rem 0;
  background: var(--off-white);
}

.partner-swiper {
  padding: 1rem 0 !important;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  height: 100px;
}

.partner-item img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: var(--transition);
}

.partner-item:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
}

.partner-item:hover img {
  filter: grayscale(0) opacity(1);
}

/* ===================== FOOTER ===================== */

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}



.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-brand .logo-wrap img {
  height: 50px;
  filter: brightness(1.2);
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-sub {
  font-size: 0.72rem;
  color: var(--secondary-light);
}

.footer-desc {
  font-size: 0.87rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
}

.footer-license {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(184, 149, 58, 0.1);
  border: 1px solid rgba(184, 149, 58, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--secondary-light);
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(184, 149, 58, 0.2);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

body.rtl .footer-heading::after {
  left: auto;
  right: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.footer-links a::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
}

.footer-links a:hover {
  color: var(--secondary-light);
  padding-inline-start: 4px;
}

.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item i {
  color: var(--secondary);
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ===================== BACK TO TOP ===================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  z-index: 500;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: 2px solid var(--secondary);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  font-size: 0.85rem;
}

body.rtl .back-to-top {
  left: 2rem;
  right: auto;
}

body.ltr .back-to-top {
  right: 2rem;
  left: auto;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary);
  border-color: var(--secondary-dark);
}

/* ===================== PAGE HEADER ===================== */

.page-header {
  background: var(--primary);
  padding: 4rem 0 3rem;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 149, 58, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: var(--secondary-light);
}

.breadcrumb-item a:hover {
  color: var(--white);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.3);
}

/* ===================== FORMS ===================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--grey);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  font-family: inherit;
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(184, 149, 58, 0.1);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 0.3rem;
}

/* ===================== CARDS GENERAL ===================== */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

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

/* ===================== DIVIDERS ===================== */

.gold-divider {
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 1rem auto;
}

.gold-divider-left {
  margin: 1rem 0;
}

/* ===================== BADGES & TAGS ===================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-primary {
  background: rgba(74, 82, 64, 0.1);
  color: var(--primary);
}

.badge-gold {
  background: rgba(184, 149, 58, 0.12);
  color: var(--secondary-dark);
}

.badge-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.badge-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* ===================== ALERTS ===================== */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.alert-success {
  background: rgba(40, 167, 69, 0.08);
  border-color: rgba(40, 167, 69, 0.3);
  color: #155724;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.3);
  color: #721c24;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.3);
  color: #856404;
}

.alert-info {
  background: rgba(74, 82, 64, 0.08);
  border-color: var(--border);
  color: var(--primary);
}

/* ===================== ADMIN LAYOUT ===================== */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f0f2f0;
}

.admin-sidebar {
  width: 260px;
  background: var(--primary-dark);
  height: 100vh;
  position: fixed;
  top: 0;
  z-index: 2050;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  overflow-y: auto;
  overflow-x: hidden;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(184, 149, 58, 0.4) transparent;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(184, 149, 58, 0.4);
  border-radius: 2px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 149, 58, 0.7);
}

body.rtl .admin-sidebar {
  right: 0;
  left: auto;
}

body.ltr .admin-sidebar {
  left: 0;
  right: auto;
}

.admin-sidebar.open {
  transform: translateX(0) !important;
}

.admin-sidebar.collapsed {
  width: 70px;
}

.admin-sidebar.collapsed .admin-nav-label,
.admin-sidebar.collapsed .logo-txt,
.admin-sidebar.collapsed .admin-nav-item span,
.admin-sidebar.collapsed .admin-nav-badge,
.admin-sidebar.collapsed .details-arrow,
.admin-sidebar.collapsed .admin-details-summary span,
.admin-sidebar.collapsed .admin-sub-hint {
  display: none !important;
}

.admin-sidebar.collapsed .admin-nav-item {
  justify-content: center;
  padding: 0.85rem 0.5rem;
}

.admin-sidebar.collapsed .admin-details-summary {
  justify-content: center;
  padding: 0.85rem 0.5rem;
}

.admin-sidebar.collapsed .admin-nav-item i,
.admin-sidebar.collapsed .admin-details-summary i:first-child {
  width: auto;
  margin: 0;
  font-size: 1.15rem;
}

.admin-sidebar.collapsed .admin-sidebar-logo {
  justify-content: center;
}

/* Admin overlay for mobile */
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}

.admin-overlay.active {
  display: block;
}

.admin-sidebar-logo {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-sidebar-logo img {
  height: 40px;
}

.admin-sidebar-logo .logo-txt {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
}

.admin-nav-section {
  padding: 0.75rem 0.75rem 0.25rem;
}

.admin-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.75rem 0.5rem 0.4rem;
  margin-bottom: 0.25rem;
}

/* ── Native <details> Accordion ── */
.admin-details {
  padding: 0 0.75rem !important;
  margin-bottom: 2px;
}

.admin-details-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}

.admin-details-summary::-webkit-details-marker {
  display: none;
}

.admin-details-summary::marker {
  display: none;
}

.admin-details-summary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.admin-details[open]>.admin-details-summary {
  color: var(--secondary-light);
  background: rgba(255, 255, 255, 0.05);
}

.admin-details-summary i:first-child {
  width: 20px;
  text-align: center;
  color: var(--secondary-light);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.admin-details-summary span {
  flex: 1;
}

.details-arrow {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.admin-details[open]>.admin-details-summary .details-arrow {
  transform: rotate(180deg);
}

.admin-details-body {
  padding-inline-start: 0.6rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.07);
  margin-inline-start: 1.2rem;
  margin-top: 2px;
  margin-bottom: 0.4rem;
}

/* ── Accordion Group Toggle Button (legacy, kept for compat) ── */
.admin-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: start;
  gap: 0.5rem;
  margin-bottom: 2px;
  font-family: inherit;
}

.admin-group-toggle span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.admin-group-toggle span i {
  width: 20px;
  text-align: center;
  color: var(--secondary-light);
  font-size: 0.88rem;
}

.admin-group-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.admin-group-toggle.open {
  color: var(--secondary-light);
  background: rgba(255, 255, 255, 0.05);
}

.admin-group-toggle .toggle-arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.admin-group-toggle.open .toggle-arrow {
  transform: rotate(180deg);
}

/* ── Accordion Group Body ── */
.admin-group-body {
  display: none;
  overflow: hidden;
  padding-inline-start: 0.5rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.07);
  margin-inline-start: 1rem;
  margin-bottom: 0.35rem;
}

.admin-group-body.open {
  display: block;
}

/* ── Sub-items ── */
.admin-sub-item {
  padding: 0.5rem 0.6rem !important;
  font-size: 0.82rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.admin-sub-item:hover,
.admin-sub-item.active {
  color: var(--white) !important;
}

.admin-sub-item i {
  font-size: 0.8rem !important;
}

/* Deep sub-items (category shortcuts) */
.admin-sub-deep {
  padding: 0.4rem 0.5rem !important;
  font-size: 0.78rem !important;
  opacity: 0.8;
}

.admin-sub-deep:hover {
  opacity: 1;
}

/* Sub-section label inside accordion */
.admin-sub-hint {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(184, 149, 58, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.5rem 0.15rem;
  margin-top: 0.25rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.86rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 2px;
}

.admin-nav-item:hover,
.admin-nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.admin-nav-item.active {
  background: var(--primary);
  border-left: 3px solid var(--secondary);
}

body.rtl .admin-nav-item.active {
  border-left: none;
  border-right: 3px solid var(--secondary);
}

.admin-nav-item i {
  width: 20px;
  text-align: center;
  color: var(--secondary-light);
  font-size: 0.9rem;
}

.admin-nav-badge {
  margin-inline-start: auto;
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: 10px;
  font-weight: 700;
}

.admin-main {
  flex: 1;
  transition: var(--transition);
}

body.rtl .admin-main {
  margin-right: 260px;
  margin-left: 0;
}

body.ltr .admin-main {
  margin-left: 260px;
  margin-right: 0;
}

body.ltr.sidebar-collapsed .admin-main {
  margin-left: 70px;
}

body.rtl.sidebar-collapsed .admin-main {
  margin-right: 70px;
}

@media (max-width: 1100px) {

  .admin-wrapper {
    overflow-x: hidden;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 2050;
  }

  body.rtl .admin-sidebar {
    right: 0;
    transform: translateX(100%);
  }

  body.ltr .admin-sidebar {
    left: 0;
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0) !important;
  }

  body.rtl .admin-main,
  body.ltr .admin-main {
    margin: 0 !important;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 10px rgba(74, 82, 64, 0.08);
  transition: padding 0.3s ease;
}

@media (max-width: 600px) {
  .admin-topbar {
    padding: 0 0.75rem;
    height: 65px;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .admin-topbar-actions {
    width: auto;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    gap: 0.5rem;
  }

  .admin-topbar-title {
    font-size: 0.95rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }

  .admin-user-info {
    gap: 0.4rem !important;
  }

  .admin-user-name {
    font-size: 0.75rem !important;
  }
}

.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.admin-topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.admin-user-info:hover {
  background: var(--light-grey);
}

.admin-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-light);
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.admin-user-role {
  font-size: 0.72rem;
  color: var(--text-light);
}

.admin-content {
  padding: 2rem;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

/* Admin Stats Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(184, 149, 58, 0.15);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.admin-stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.admin-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.admin-stat-icon.green {
  background: rgba(74, 82, 64, 0.1);
  color: var(--primary);
}

.admin-stat-icon.gold {
  background: rgba(184, 149, 58, 0.12);
  color: var(--secondary-dark);
}

.admin-stat-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.admin-stat-icon.red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.admin-stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1;
}

.admin-stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.admin-stat-change {
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

.admin-stat-change.up {
  color: #28a745;
}

.admin-stat-change.down {
  color: #dc3545;
}

/* Admin Table */
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-table-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-table-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--light-grey);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-align: inherit;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: var(--text-medium);
  border-bottom: 1px solid var(--grey);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--off-white);
}

/* ── Mobile Table Reflow (Cards) ── */
@media (max-width: 768px) {

  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table th,
  .admin-table td,
  .admin-table tr {
    display: block;
    width: 100%;
  }

  .admin-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .admin-table tr {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 149, 58, 0.15);
    border-top: 4px solid var(--secondary);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    padding: 0;
    box-shadow: 0 10px 30px rgba(74, 82, 64, 0.1);
    overflow: hidden;
    position: relative;
    animation: cardFadeIn 0.4s ease-out forwards;
  }

  @keyframes cardFadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Specific styling for the primary column (Name) as a Header */
  .admin-table td[data-label="الاسم"],
  .admin-table td[data-label="Name"] {
    background: rgba(74, 82, 64, 0.03);
    border-bottom: 2px solid rgba(184, 149, 58, 0.1);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
  }

  .admin-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 0.85rem 1.25rem;
    position: relative;
    padding-inline-start: 40%;
    text-align: end;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .admin-table td:last-child {
    border-bottom: none;
    background: linear-gradient(to right, rgba(74, 82, 64, 0.02), rgba(184, 149, 58, 0.05));
    margin: 0;
    padding: 1.25rem;
    justify-content: center;
    gap: 1.25rem;
    border-top: 1px solid rgba(184, 149, 58, 0.1);
  }

  .admin-table td::before {
    content: attr(data-label);
    position: absolute;
    inset-inline-start: 1.25rem;
    width: 35%;
    padding-inline-end: 1rem;
    white-space: nowrap;
    text-align: start;
    font-weight: 700;
    color: var(--secondary-dark);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
  }

  .admin-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.admin-table-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-action {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-action.edit {
  background: rgba(74, 82, 64, 0.1);
  color: var(--primary);
}

.btn-action.edit:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-action.delete {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.btn-action.delete:hover {
  background: #dc3545;
  color: var(--white);
}

.btn-action.view {
  background: rgba(184, 149, 58, 0.12);
  color: var(--secondary-dark);
}

.btn-action.view:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ===================== AUTH PAGES ===================== */

.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, rgba(184, 149, 58, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo img {
  height: 70px;
  margin-bottom: 1rem;
}

.auth-logo-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.auth-logo-sub {
  font-size: 0.8rem;
  color: var(--text-light);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ===================== PAGINATION ===================== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.page-item {
  display: inline-block;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: var(--transition);
}

.page-link:hover {
  border-color: var(--secondary);
  color: var(--secondary-dark);
}

.page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {

  .hero-swiper,
  .hero-slide {
    height: 100vh;
    min-height: 500px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .committees-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  body.rtl .stat-item:nth-child(2) {
    border-left: none;
  }

  .stat-item:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  body.rtl .stat-item:nth-child(3) {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-wrapper {
    order: -1;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── 1100px – Desktop Header & Layout Adjustment ──────────────────── */
@media (max-width: 1100px) {

  /* ── Header ── */
  .site-header {
    top: 0;
  }

  .header-inner {
    padding: 0 1rem;
    height: 64px;
    gap: 0.5rem;
  }

  /* Hide desktop nav and most action buttons */
  .main-nav,
  .header-actions .btn-membership,
  .header-actions .btn-login,
  .header-actions .lang-btn,
  .header-actions .nawa-link,
  /* Note: User nav and search might be desired on mobile, but keeping current hiding for clarity unless requested */
  .header-actions .user-nav-dropdown {
    display: none !important;
  }

  .header-actions {
    min-width: 0;
    gap: 0.75rem;
    display: flex;
    align-items: center;
  }

  /* Show hamburger */
  .mobile-toggle {
    display: flex !important;
  }

  /* Logo on smaller screens */
  .site-logo {
    min-width: 0;
    gap: 0.5rem;
    flex: 1;
  }

  .site-logo img {
    height: 40px;
  }

  .logo-text .name-en {
    display: none;
  }

  .logo-text .name-ar {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  body.has-hero .site-header .logo-text .name-ar {
    color: var(--white);
  }

  /* Flush Grids for all sections */
  .news-grid,
  .committees-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ─── 768px – Tablet / Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {

  /* Hamburger animation → X when open */
  .mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-toggle span {
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  /* ── Mobile Navigation Overlay ── */
  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* ── Mobile Navigation Panel ── */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: min(300px, 85vw);
    height: 100%;
    height: 100dvh;
    background: var(--white);
    z-index: 1050;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -6px 0 32px rgba(0, 0, 0, 0.2);
    padding-bottom: env(safe-area-inset-bottom, 1rem);
  }

  /* LTR: panel slides from the left */
  body.ltr .mobile-nav {
    right: auto;
    left: -100%;
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 6px 0 32px rgba(0, 0, 0, 0.2);
  }

  .mobile-nav.open {
    right: 0 !important;
  }

  body.ltr .mobile-nav.open {
    left: 0 !important;
    right: auto !important;
  }

  /* Mobile nav header bar */
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--primary);
    border-bottom: 2px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .mobile-nav-header img {
    height: 36px;
    border-radius: 4px;
  }

  .mobile-nav-header span {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .mobile-nav-close {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  /* Mobile nav items list */
  .mobile-nav-list {
    padding: 0.35rem 0 0.5rem;
    list-style: none;
    margin: 0;
  }

  .mobile-nav-item {
    border-bottom: 1px solid #eee;
  }

  .mobile-nav-item:last-child {
    border-bottom: none;
  }

  .mobile-nav-item>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    min-height: 50px;
    background: var(--white);
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-item>a:active,
  .mobile-nav-item>a.active {
    background: #f0f2ee;
    color: var(--primary);
  }

  .mobile-nav-item .toggle-icon {
    font-size: 0.7rem;
    color: var(--text-light);
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-inline-start: 0.5rem;
  }

  /* Sub-menu: smooth max-height animation */
  .mobile-nav-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f7f8f6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid #e8ebe5;
  }

  .mobile-nav-sub.open {
    max-height: 1200px;
  }

  .mobile-nav-sub li {
    border-bottom: 1px solid #edf0ea;
  }

  .mobile-nav-sub li:last-child {
    border-bottom: none;
  }

  .mobile-nav-sub a {
    display: block;
    padding: 0.7rem 1.1rem 0.7rem 1.6rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-medium);
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  body.rtl .mobile-nav-sub a {
    padding: 0.7rem 1.6rem 0.7rem 1.1rem;
  }

  .mobile-nav-sub a:active {
    background: #e8ebe5;
    color: var(--primary);
  }

  /* Sub-group labels inside sub-menu */
  .mobile-sub-group {
    padding: 0.55rem 1.1rem 0.3rem 1.6rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--secondary-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    list-style: none;
    border-top: 1px solid rgba(184, 149, 58, 0.2);
    background: #f0f2ee;
  }

  body.rtl .mobile-sub-group {
    padding: 0.55rem 1.6rem 0.3rem 1.1rem;
  }

  /* Actions at bottom of mobile nav */
  .mobile-nav-actions {
    padding: 1rem;
    border-top: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f5f5f5;
  }

  .mobile-nav-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.7rem 1rem;
    min-height: 46px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
  }

  /* ── Hero ── */
  .hero-swiper,
  .hero-slide {
    height: 100vh;
    min-height: 460px;
  }

  .hero-slide-content {
    padding: 80px 1.25rem 4rem;
    align-items: flex-end;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    padding: 0.7rem 1.4rem;
    font-size: 0.88rem;
  }

  /* ── Sections ── */
  .section {
    padding: 3rem 0;
  }

  .section-sm {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 1rem;
  }

  /* ── Grids ── */
  .committees-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  /* Stats borders */
  .stat-item {
    border-right: none !important;
    border-left: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  /* ── Footer ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom .container>div {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* ── Cards ── */
  .committee-card,
  .news-card {
    padding: 1.25rem;
  }

  .partner-logo {
    height: 50px;
  }

  /* ── Page Header ── */
  .page-header {
    padding: 6rem 0 2rem;
  }

  .page-header-title {
    font-size: 1.5rem;
  }

  /* Admin Mobile Sidebars */
  .admin-sidebar {
    width: 280px !important;
    visibility: hidden;
    z-index: 2100;
  }

  body.ltr .admin-sidebar {
    transform: translateX(-100%);
    left: 0;
    right: auto;
  }

  body.rtl .admin-sidebar {
    transform: translateX(100%);
    right: 0;
    left: auto;
  }

  .admin-sidebar.open {
    transform: translateX(0) !important;
    visibility: visible;
  }

  #sidebar-toggle {
    display: flex !important;
    z-index: 2010;
  }

  .admin-overlay {
    z-index: 2000;
  }

  body.admin-sidebar-open {
    overflow: hidden;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-page-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─── 576px – Large phones ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .committees-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Forms */
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-outline-primary {
    width: 100%;
    justify-content: center;
  }

  /* Admin */
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-wrap {
    padding: 1.25rem;
  }
}

/* ─── 400px – Small phones ─────────────────────────────────────────── */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.3rem;
  }

  .hero-badge {
    display: none;
  }

  /* save vertical space */
  .logo-text .name-ar {
    font-size: 0.8rem;
  }

  .site-logo img {
    height: 36px;
  }

  .section {
    padding: 2.5rem 0;
  }

  .photos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
}

/* ===================== RESPONSIVE UTILITIES ===================== */
.grid-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.grid-2-sidebar-responsive {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 992px) {
  .grid-2-sidebar-responsive {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 992px) {
  .grid-sidebar {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr;
  }

  .grid-auto-fill {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   GLOBAL SEARCH ENGINE
   ========================================== */
.search-btn {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  color: var(--primary);
}

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-content {
  width: 100%;
  max-width: 800px;
  padding: 0 2rem;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
}

.search-modal.active .search-modal-content {
  transform: translateY(0);
}

.search-modal-close {
  position: absolute;
  top: -50px;
  right: 2rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.rtl .search-modal-close {
  right: auto;
  left: 2rem;
}

.search-modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.5rem;
}

.search-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-inline-end: 1rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 2rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--text);
  outline: none;
  padding: 0;
}

.search-input::placeholder {
  color: #cbd5e1;
  font-weight: 400;
}

.search-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.3s;
  margin-inline-start: 1rem;
}

.search-submit:hover {
  background: var(--primary-dark);
}

.search-suggestions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: 0.95rem;
}

.search-suggestions a {
  color: var(--secondary);
  background: rgba(184, 149, 58, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s;
}

.search-suggestions a:hover {
  background: var(--secondary);
  color: white;
}

@media (max-width: 768px) {
  .search-input {
    font-size: 1.3rem;
  }

  .search-submit {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    margin-inline-start: 0.5rem;
  }

  .search-icon {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   Admin Form Styles
   ========================================================================== */
.admin-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  max-width: 900px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.required {
  color: #dc3545;
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.35rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74, 82, 64, 0.1);
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  font-size: 0.8rem;
  color: #dc3545;
  margin-top: 0.3rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* Toggle Switch */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  inset-inline-start: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle input:checked+.toggle-slider {
  background: var(--primary);
}

.toggle input:checked+.toggle-slider::before {
  transform: translateX(20px);
}

body.rtl .toggle input:checked+.toggle-slider::before {
  transform: translateX(-20px);
}

/* Admin page header */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-page-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

/* Badge extras */
.badge-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #856404;
}

.badge-info {
  background: rgba(13, 202, 240, 0.15);
  color: #0c5460;
}

/* Admin nav badge */
.admin-nav-badge {
  background: var(--secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-inline-start: auto;
}

/* Contact section on frontend */
.contact-section {
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(184, 149, 58, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Programs grid on frontend */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.program-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(184, 149, 58, 0.12);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(74, 82, 64, 0.08);
}

.program-card:hover {
  box-shadow: 0 20px 50px rgba(74, 82, 64, 0.15);
  transform: translateY(-8px);
  border-color: var(--secondary-light);
}

.program-card-img {
  height: 200px;
  overflow: hidden;
}

.program-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.program-card:hover .program-card-img img {
  transform: scale(1.05);
}

.program-card-body {
  padding: 1.5rem;
}

.program-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-dark);
  background: rgba(184, 149, 58, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* News Cards Mobile Refinement */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .news-card {
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }

  .news-card-image-wrap {
    height: 180px;
  }

  .news-card-title {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .news-card-excerpt {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* About page styles */
.about-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Documents list */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.doc-item:hover {
  background: var(--bg-light);
}

.doc-item:last-child {
  border-bottom: none;
}

.doc-icon {
  width: 40px;
  height: 40px;
  background: rgba(220, 53, 69, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc3545;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.doc-title {
  flex: 1;
  font-weight: 500;
  color: var(--text-dark);
}

/* Board members grid */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.board-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.board-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.board-card-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid var(--border);
}

.board-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.board-card-position {
  font-size: 0.85rem;
  color: var(--secondary-dark);
  font-weight: 500;
}

/* ===================== PHOTO GALLERY ===================== */

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.photo-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.photo-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.photo-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-link:hover .photo-img {
  transform: scale(1.07);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 82, 64, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.photo-overlay i {
  font-size: 2rem;
  color: var(--secondary-light);
}

.photo-link:hover .photo-overlay {
  opacity: 1;
}

/* ===================== VIDEO GALLERY ===================== */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.video-thumb-wrap {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  aspect-ratio: 16/9;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb-wrap img {
  transform: scale(1.05);
}

.video-placeholder-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
}

.video-play-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 82, 64, 0.4);
  transition: background 0.3s ease;
}

.video-play-btn i {
  width: 56px;
  height: 56px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.video-play-link:hover .video-play-btn {
  background: rgba(74, 82, 64, 0.6);
}

.video-play-link:hover .video-play-btn i {
  transform: scale(1.1);
  background: var(--secondary-dark);
}

.video-card-body {
  padding: 1rem 1.25rem;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.video-date {
  font-size: 0.78rem;
  color: var(--text-light);
}

/*--------------------------------------------------------------
# Global Search Interface & Hero Fixes
--------------------------------------------------------------*/
/* Search Button in Navbar */
.search-btn {
  background: transparent;
  border: none;
  color: inherit;
  /* This will make it inherit white on transparent, primary on scrolled */
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

/* Ensure white color on transparent navbar */
.navbar-transparent .search-btn {
  color: #ffffff;
}

/* Ensure primary color on scrolled navbar */
.navbar-scrolled .search-btn {
  color: var(--primary);
}

.search-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Search Modal Overlay */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.search-modal.active {
  z-index: 99999;
  opacity: 1;
  visibility: visible;
}

.search-modal-close {
  position: fixed;
  top: 2rem;
  inset-inline-end: 3rem;
  font-size: 2.5rem;
  color: var(--text-light);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  line-height: 1;
  z-index: 100000;
}



.search-modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.search-modal-content {
  width: 100%;
  max-width: 800px;
  margin: 20vh auto 0;
  padding: 2rem;
  transform: translateY(-20px) scale(0.95);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: 0.1s;
}

.search-modal.active .search-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.search-form {
  position: relative;
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper input {
  width: 100%;
  padding: 1.5rem 4rem 1.5rem 2rem;
  font-size: 1.5rem;
  font-family: inherit;
  color: var(--text-dark);
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--border);
  transition: all 0.3s ease;
}

body.rtl .search-input-wrapper input {
  padding: 1.5rem 2rem 1.5rem 4rem;
}

.search-input-wrapper input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.search-input-wrapper input::placeholder {
  color: var(--text-light);
  opacity: 0.5;
}

.search-submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

body.rtl .search-submit {
  right: auto;
  left: 10px;
}

.search-submit:hover {
  background: var(--secondary);
  transform: translateY(-50%) scale(1.05);
}

.search-suggestions {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.search-suggestions span {
  font-weight: 600;
}

.search-suggestions a {
  color: var(--primary);
  text-decoration: none;
  background: rgba(74, 82, 64, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.search-suggestions a:hover {
  background: var(--primary);
  color: white;
}

/* Mobile Responsiveness for Search */
@media (max-width: 768px) {
  .search-modal-content {
    padding: 1.5rem;
    margin-top: 10vh;
  }

  .search-modal-close {
    top: 1rem;
    inset-inline-end: 1.5rem;
    font-size: 2rem;
  }


  .search-input-wrapper input {
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1.1rem;
  }

  body.rtl .search-input-wrapper input {
    padding: 1rem 1rem 1rem 3rem;
  }

  .search-btn-submit {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    right: 5px;
  }

  body.rtl .search-btn-submit {
    right: auto;
    left: 5px;
  }

  .search-suggestions {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  /* FIX MOBILE HERO TEXT OVERLAPPING TOP NAVBAR */
  .hero-slide-content {
    padding-top: 8rem !important;
    /* Push content down further on mobile */
  }
}

/* ==========================================================================
   Careers & Job Application Styles
   ========================================================================== */
.career-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.career-form-row .col-lg-8 {
  flex: 1;
  min-width: 0;
}

.career-form-row .col-lg-4 {
  width: 350px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .career-form-row {
    flex-direction: column;
  }

  .career-form-row .col-lg-4 {
    width: 100%;
  }
}

.job-application-form .form-group {
  margin-bottom: 1.5rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  width: 42px;
  text-align: center;
  font-size: 1rem;
  pointer-events: none;
}

body.rtl .input-with-icon i {
  right: 0;
}

body.ltr .input-with-icon i {
  left: 0;
}

.input-with-icon .form-control {
  padding-inline-start: 42px !important;
  height: 48px;
  border-radius: var(--radius-sm);
}

.job-application-form .btn-primary {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.job-application-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 82, 64, 0.2);
}

.job-details-sidebar {
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .job-details-sidebar {
    position: static !important;
    margin-top: 1rem;
  }
}

/* =====================================================
   MMS Interactive Tour - Premium Branded UI
   ===================================================== */

/* Trigger Button in Navbar */
.tour-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(74, 82, 64, 0.2);
  position: relative;
  overflow: hidden;
  margin-inline-start: 0.5rem;
}

.tour-btn i {
  color: var(--secondary-light);
  font-size: 1.1rem;
  transition: transform 0.4s ease;
}

.tour-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 149, 58, 0.25);
  border-color: var(--white);
}

.tour-btn:hover i {
  transform: rotate(45deg);
}

@media (max-width: 991px) {
  .tour-btn {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 50%;
  }

  .tour-btn span {
    display: none !important;
  }
}

/* Driver.js Popover Enhancement */
.driver-popover {
  background: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--border) !important;
  max-width: 380px !important;
  animation: slideUpFade 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  font-family: "Tajawal", sans-serif !important;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.driver-popover-title {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
  border-bottom: 2px solid var(--secondary) !important;
  display: inline-block !important;
  padding-bottom: 4px !important;
}

.driver-popover-description {
  font-size: 1rem !important;
  color: var(--text-medium) !important;
  line-height: 1.7 !important;
  margin-bottom: 24px !important;
}

/* Driver Buttons */
.driver-popover-next-btn,
.driver-popover-prev-btn,
.driver-popover-done-btn {
  border: none !important;
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  transition: all 0.3s ease !important;
  text-shadow: none !important;
  cursor: pointer !important;
}

.driver-popover-next-btn,
.driver-popover-done-btn {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(184, 149, 58, 0.3) !important;
}

.driver-popover-next-btn:hover,
.driver-popover-done-btn:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 6px 15px rgba(184, 149, 58, 0.4) !important;
}

.driver-popover-prev-btn {
  background: #f1f5f9 !important;
  color: var(--text-medium) !important;
  margin-inline-end: 10px !important;
}

.driver-popover-prev-btn:hover {
  background: #e2e8f0 !important;
}

.driver-popover-close-btn {
  top: 15px !important;
  right: 15px !important;
  color: var(--text-light) !important;
  transition: color 0.3s ease !important;
}

.driver-popover-close-btn:hover {
  color: #ef4444 !important;
}

.driver-popover-progress-text {
  color: var(--text-light) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}

/* Overlay & Arrow Fixes */
.driver-popover-arrow {
  border-color: #ffffff !important;
}

.driver-overlay {
  backdrop-filter: none !important;
  /* Removed blur to fix visibility issue */
  opacity: 0.8 !important;
}