/* ==========================================
   Design System Variables & Global Styles
   ========================================== */
:root {
  /* Color Palette (HSL) */
  --primary-h: 172;
  --primary-s: 75%;
  --primary-l: 20%;
  
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
  --primary-light: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) + 12%));
  --primary-dark: hsl(var(--primary-h), var(--primary-s), calc(var(--primary-l) - 8%));
  --primary-trans: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.08);

  --accent-h: 150;
  --accent-s: 84%;
  --accent-l: 40%;

  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-light: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 8%));
  --accent-dark: hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 10%));
  --accent-trans: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);

  --bg-light: hsl(210, 20%, 98%);
  --bg-white: hsl(0, 0%, 100%);
  --text-dark: hsl(210, 30%, 15%);
  --text-muted: hsl(210, 15%, 45%);
  --border-color: hsl(210, 15%, 90%);
  --error-color: hsl(0, 84%, 44%);

  /* Form & Tailwind Aliases */
  --background: #ffffff;
  --input: hsl(210, 15%, 88%);
  --muted-foreground: hsl(210, 15%, 48%);
  --primary-foreground: #ffffff;

  /* Elevation */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 20px rgba(13, 92, 84, 0.06);
  --shadow-lg: 0 20px 40px rgba(13, 92, 84, 0.12);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
}

/* Base Settings */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  border: 2px solid var(--bg-light);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--primary-dark);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--primary-light);
  background-color: var(--primary-trans);
  transform: translateY(-2px);
}

.btn-text {
  color: var(--accent-dark);
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  min-height: auto;
}
.btn-text:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.btn-full {
  width: 100%;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Badges */
.badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-lg);
  background-color: var(--primary-trans);
  color: var(--primary-light);
  margin-bottom: 1rem;
}
.badge-accent {
  background-color: var(--accent-trans);
  color: var(--accent-dark);
}

/* Accessibility Focus Outline */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

body.admin-bar .header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  height: 84px;
  gap: 1.5rem;
}

.logo,
.custom-logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover,
.custom-logo-link:hover {
  opacity: 0.94;
}

.logo img,
.custom-logo-link img,
.custom-logo,
.site-logo-img {
  height: var(--header-logo-height, 68px) !important;
  max-height: var(--header-logo-height, 68px) !important;
  width: auto !important;
  max-width: 260px !important;
  object-fit: contain !important;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.04));
  transition: transform 0.25s ease;
}

.logo:hover img,
.custom-logo-link:hover img {
  transform: scale(1.02);
}

.logo-svg {
  height: min(var(--header-logo-height, 52px), 58px);
  width: auto;
  max-width: 220px;
  flex-shrink: 0;
  display: block;
}

.site-logo-title {
  font-weight: 900;
  font-size: 1.35rem;
  color: #0d5c54;
  margin-right: 8px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

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

.nav-link {
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary);
  text-decoration: none;
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-dark);
  background-color: var(--primary-trans);
}

.nav-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-nav {
  padding: 0.5rem 1.2rem;
  min-height: 40px;
  font-size: 0.88rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

/* Dropdown Menu styling */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.25s ease;
}
.has-dropdown:hover .dropdown-toggle::after,
.has-dropdown:focus-within .dropdown-toggle::after {
  transform: rotate(225deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}
.dropdown-item:hover {
  background-color: var(--primary-trans);
  color: var(--accent-dark);
  padding-right: 1.5rem;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  position: relative;
  transition: background-color 0.3s ease;
}
.hamburger::before, .hamburger::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* Hamburger transform when nav is active */
.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-section {
  padding-top: 4rem;
  padding-bottom: 5rem;
  background: linear-gradient(135deg, var(--bg-white) 0%, hsl(200, 25%, 95%) 100%);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--accent-trans);
  top: -200px;
  left: -200px;
  filter: blur(120px);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-cta-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
}
.stat-lbl {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form Card Styling (Glassmorphism) */
.form-wrapper {
  perspective: 1000px;
}

.form-card {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  transition: transform 0.5s ease;
}
.form-card:hover {
  transform: translateY(-5px);
}

.form-header {
  margin-bottom: 2rem;
  text-align: center;
}
.form-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.form-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Lead Form and inputs */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.form-group input, .form-group select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-dark);
  min-height: 48px;
  transition: all 0.25s ease;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-trans);
}

/* Non-intrusive validation styling */
.form-group input:invalid:user-invalid, .form-group select:invalid:user-invalid {
  border-color: var(--error-color);
  background-color: hsl(0, 100%, 99%);
}

.error-msg {
  font-size: 0.8rem;
  color: var(--error-color);
  font-weight: 500;
  min-height: 1.2em;
}

/* ==========================================
   Official Form V3 (Hero Registration Form)
   ========================================== */
.officialFormV3 {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.officialFormV3.space-y-3 > * + *,
.officialFormV3 .space-y-3 > * + * {
  margin-top: 0.75rem;
}

.officialFormV3 .relative {
  position: relative;
  width: 100%;
}

.officialFormV3 svg.absolute {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted-foreground, #64748b);
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.officialFormV3 .relative:focus-within svg.absolute {
  color: var(--primary);
}

.officialFormV3 input[type="text"],
.officialFormV3 input[type="tel"],
.officialFormV3 select {
  width: 100%;
  height: 2.75rem; /* h-11 */
  border-radius: 0.75rem; /* rounded-xl */
  border: 1px solid var(--input, #e2e8f0);
  background-color: var(--background, #ffffff);
  color: var(--text-dark, #0f172a);
  font-family: inherit;
  font-size: 0.875rem;
  padding-right: 2.5rem; /* pr-10 */
  padding-left: 0.75rem; /* pl-3 */
  text-align: right;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.officialFormV3 input::placeholder {
  color: var(--muted-foreground, #94a3b8);
  font-size: 0.875rem;
}

.officialFormV3 select.appearance-none {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.85rem center;
  background-size: 1rem 1rem;
  padding-left: 2.25rem;
}

.officialFormV3 select option {
  background-color: #ffffff;
  color: #0f172a;
  padding: 0.5rem;
}

.officialFormV3 select option:disabled {
  color: #94a3b8;
}

.officialFormV3 input[dir="ltr"] {
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.03em;
  padding-right: 2.5rem;
  padding-left: 0.75rem;
}

.officialFormV3 input:focus,
.officialFormV3 select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-trans);
}

.officialFormV3 input[name="your-country-other"],
.officialFormV3 input[name="your-major-other"] {
  margin-top: 0.35rem;
  padding-right: 0.875rem;
  background-color: hsl(210, 20%, 98%);
  border: 1.5px dashed var(--primary);
  animation: officialFormFieldFade 0.25s ease-out;
}

@keyframes officialFormFieldFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.officialFormV3 button[type="submit"] {
  width: 100%;
  height: 3rem; /* h-12 */
  border-radius: 0.75rem; /* rounded-xl */
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #ffffff;
  font-weight: 800; /* font-black */
  font-size: 1rem;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 92, 84, 0.22);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.5rem;
}

.officialFormV3 button[type="submit"]:hover {
  opacity: 0.96;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 92, 84, 0.32);
}

.officialFormV3 button[type="submit"]:active {
  transform: scale(0.98);
}

.officialFormV3 button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.officialFormV3 button[type="submit"] svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.2s ease;
}

.officialFormV3 button[type="submit"]:hover svg {
  transform: translateX(-3px);
}

/* ==========================================
   Section Layouts
   ========================================== */
.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   Destinations Grid
   ========================================== */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.destination-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.destination-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-trans);
}

.dest-card-link-wrap {
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.dest-bg-gradient {
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dest-bg-gradient.has-custom-image {
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-card:hover .dest-bg-gradient.has-custom-image {
  transform: scale(1.06);
}

.dest-svg {
  width: 90px;
  height: 90px;
  transition: transform 0.5s ease;
}
.destination-card:hover .dest-svg {
  transform: scale(1.15) rotate(5deg);
}

.destination-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.destination-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.destination-info h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.destination-info h3 a:hover,
.destination-card:hover .destination-info h3 a {
  color: var(--primary);
}

.destination-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ==========================================
   Services Grid
   ========================================== */
.services-section {
  background-color: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--bg-light);
}

.service-card:hover {
  border-color: var(--accent);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--primary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon-wrapper {
  background-color: var(--accent);
  transform: scale(1.08);
}
.service-icon-wrapper svg {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================
   Advantages (Why Us) Section
   ========================================== */
.advantages-section {
  background: linear-gradient(135deg, #093b36 0%, #0d5c54 50%, #062b27 100%);
  color: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.advantages-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.advantages-info {
  display: flex;
  flex-direction: column;
}

.badge-accent-light {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  width: fit-content;
}

.badge-icon {
  font-size: 0.95rem;
  color: #10b981;
}

.advantages-section .section-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.advantages-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 95%;
}

.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.advantages-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantages-list li:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateX(-8px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.advantages-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.advantages-list li:hover .advantages-icon-box {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-color: #34d399;
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.advantages-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.advantages-text strong {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.advantages-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  line-height: 1.5;
}

/* Visual Card decoration */
.advantages-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.visual-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 430px;
}

.visual-card-wrapper::before {
  content: "";
  position: absolute;
  inset: -15px;
  border-radius: calc(var(--radius-lg) + 10px);
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.25), transparent 70%);
  filter: blur(25px);
  z-index: 0;
}

.visual-card {
  position: relative;
  z-index: 1;
  background: rgba(13, 92, 84, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  color: var(--bg-white);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
}

.visual-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.4);
}

.visual-card-icon-badge {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 43, 39, 0.6));
  border: 2px solid rgba(52, 211, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #34d399;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition: transform 0.4s ease, background 0.4s ease;
}

.visual-card:hover .visual-card-icon-badge {
  transform: scale(1.1) rotate(6deg);
  background: linear-gradient(135deg, #10b981, #0d5c54);
  color: #ffffff;
}

.visual-card h3 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.visual-card > p {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.visual-card-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  text-align: right;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transition: background 0.25s ease;
}

.highlight-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.highlight-item i {
  color: #34d399;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.btn-card-action i {
  font-size: 1.05rem;
  transition: transform 0.3s ease;
}

.btn-card-action:hover i {
  transform: translateX(-4px);
}

/* ==========================================
   Timeline Steps Section
   ========================================== */
.timeline-section {
  background-color: var(--bg-white);
  background-image: url('timeline_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
/* Timeline central vertical line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-step {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.timeline-step.inverse {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}
.timeline-step:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}
.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.step-num {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-trans);
}
.timeline-step.inverse .step-num {
  left: auto;
  right: 1.5rem;
}

.timeline-space {
  flex: 1;
}

.timeline-node-wrapper {
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.timeline-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  border: 4px solid var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  z-index: 2;
}
.timeline-step:hover .timeline-node {
  background-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-trans);
  transform: scale(1.1);
}

/* ==========================================
   FAQ Section (Accordion)
   ========================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: flex-start;
}

.faq-intro {
  position: sticky;
  top: 100px;
}

.faq-visual-decoration {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-start;
}
.faq-svg {
  width: 100px;
  height: 100px;
  animation: float-animation 6s ease-in-out infinite;
}

@keyframes float-animation {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.faq-trigger {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--primary);
  outline: none;
  user-select: none;
  font-size: 1.05rem;
}
/* Hide default details marker */
.faq-trigger::-webkit-details-marker {
  display: none;
}

.faq-title {
  padding-left: 1rem;
}

.faq-icon-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-top: -3px;
}
.faq-item[open] .faq-icon-arrow {
  transform: rotate(225deg);
}

.faq-panel {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item[open] .faq-panel {
  border-color: var(--border-color);
}
.faq-panel p {
  margin-bottom: 0;
}
.faq-panel ul {
  padding-right: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ==========================================
   Footer Section
   ========================================== */
.footer {
  background-color: var(--primary-dark);
  color: hsl(200, 15%, 85%);
  padding-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: hsl(200, 10%, 75%);
}

.footer-links h3, .footer-contact h3 {
  color: var(--bg-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-links h3::after, .footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: hsl(200, 10%, 75%);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--accent-light);
  padding-right: 0.25rem;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.footer-contact a {
  color: inherit;
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--accent-light);
}

.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  font-size: 0.875rem;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom-flex p {
  margin: 0;
}
.copyright-note {
  color: hsl(200, 10%, 60%);
}

/* ==========================================
   Floating Action Buttons (Exact Match to Design)
   ========================================== */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.floating-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 180px;
  height: 56px;
  border-radius: 9999px;
  color: #ffffff !important;
  text-decoration: none;
  font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  direction: ltr; /* Keeps icon on left and Arabic text on right */
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  cursor: pointer;
  user-select: none;
}

.floating-btn:hover {
  transform: translateY(-3px);
  color: #ffffff !important;
}

.floating-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Call Button - Deep Forest Teal */
.floating-btn-call {
  background-color: #146b63;
}

.floating-btn-call:hover {
  background-color: #0e564f;
  box-shadow: 0 8px 22px rgba(20, 107, 99, 0.38);
}

/* WhatsApp Button - Vibrant WhatsApp Green */
.floating-btn-whatsapp {
  background-color: #26d367;
}

.floating-btn-whatsapp:hover {
  background-color: #1eb857;
  box-shadow: 0 8px 22px rgba(38, 211, 103, 0.42);
}

/* Floating Icons */
.floating-btn .floating-btn-icon {
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.floating-btn:hover .floating-btn-icon {
  transform: scale(1.08);
}

.floating-icon-phone {
  width: 27px;
  height: 27px;
  stroke: #ffffff;
  stroke-width: 2.3;
}

.floating-icon-whatsapp {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.floating-btn-text {
  line-height: 1;
  padding-top: 1px;
}

/* ==========================================
   Responsive Media Queries (Mobile First)
   ========================================== */

/* Up to Tablet (Landscape) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-desc {
    max-width: 100%;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .advantages-visual {
    order: -1;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .faq-intro {
    position: static;
  }
  .faq-visual-decoration {
    display: none;
  }

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

/* Tablet (Portrait) and down */
@media (max-width: 1024px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

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

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

  /* Navigation Drawer toggle behavior */
  .nav-toggle {
    display: block;
  }

  .header-container {
    height: 74px;
    min-height: 74px;
  }

  .logo img,
  .custom-logo-link img,
  .custom-logo,
  .site-logo-img {
    height: 52px !important;
    max-height: 52px !important;
    max-width: 180px !important;
  }

  .logo-svg {
    height: 42px;
  }

  .nav {
    position: fixed;
    top: 74px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 74px);
    background-color: var(--bg-white);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    gap: 2rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav.active {
    right: 0;
  }

  body.admin-bar .nav {
    top: calc(75px + 32px);
    height: calc(100vh - 75px - 32px);
  }
  @media screen and (max-width: 782px) {
    body.admin-bar .nav {
      top: calc(75px + 46px);
      height: calc(100vh - 75px - 46px);
    }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    transform: none;
    padding: 0;
    margin-right: 1.5rem;
    margin-top: 0.5rem;
    display: none; /* controlled by JS click */
  }
  
  .dropdown-menu.show {
    display: block;
  }

  .dropdown-toggle::after {
    margin-right: auto;
  }

  /* Timeline styling mobile-friendly (single column stacking) */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-step {
    flex-direction: column !important;
    align-items: stretch;
    margin-bottom: 1.5rem;
  }
  
  .timeline-space {
    display: none;
  }

  .timeline-node-wrapper {
    width: auto;
    justify-content: flex-start;
    padding-right: 0px;
    margin-bottom: 0.5rem;
  }

  .timeline-node {
    left: 20px;
    transform: translateX(-50%) !important;
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
  .timeline-step:hover .timeline-node {
    transform: translateX(-50%) scale(1.1) !important;
  }

  .timeline-content {
    margin-right: 2.5rem;
    padding: 1.5rem;
  }
  
  .step-num {
    top: 1rem;
    left: auto;
    right: 1.5rem !important;
    font-size: 1.25rem;
  }
}

/* Phones */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-cta-wrapper {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-wrapper .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .form-card {
    padding: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
  }
  
  .floating-actions {
    bottom: 1.25rem;
    left: 1.25rem;
    gap: 10px;
  }
  
  .floating-btn {
    width: 156px;
    height: 48px;
    font-size: 1.15rem;
    gap: 10px;
  }
  .floating-icon-phone {
    width: 22px;
    height: 22px;
  }
  .floating-icon-whatsapp {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================
   WordPress Blog, Search & Inner Pages Styles
   Integrated with Saudi Edugate V2 Design Tokens
   ========================================== */

/* Reading Progress Bar */
#reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  z-index: 1100;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Header Navbar Additional Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  text-decoration: none;
}

.btn-icon:hover {
  background: var(--primary-trans);
  color: var(--primary);
  border-color: var(--primary-light);
}

/* Live Search Modal Overlay */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(13, 92, 84, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 90px;
  padding-left: 1rem;
  padding-right: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

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

.search-box {
  width: 100%;
  max-width: 640px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.search-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}

/* Blog & Inner Layout Shell */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff;
  padding: 4rem 0 3rem;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

.breadcrumb a {
  color: var(--accent-light);
  text-decoration: none;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.post-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.category-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card-title a:hover {
  color: var(--accent);
}

.post-card-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Single Post Layout */
.single-article-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-header .badge {
  display: inline-flex;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 2.2rem;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 1.25rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.article-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-featured-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-dark);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 2rem;
  border-right: 4px solid var(--accent);
  background: var(--primary-trans);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.15rem;
  font-style: italic;
}

.article-content ul,
.article-content ol {
  padding-right: 1.5rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 3rem 0;
}

.author-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.author-info p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Comments Section */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.comment-respond {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2.5rem;
}

.comment-respond h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.comment-form p {
  margin-bottom: 1rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-trans);
}

.comment-form input[type="submit"] {
  background: var(--accent);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.comment-form input[type="submit"]:hover {
  background: var(--accent-dark);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.pagination .nav-links {
  display: flex;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   Medicine Landing Page Styles (دليل دراسة الطب البشري)
   ========================================================================== */
.med-metrics-wrap {
  position: relative;
  margin-top: -35px;
  z-index: 20;
  padding: 0 15px;
}

.med-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  border: 1px solid var(--border-color);
}

.med-metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
}

.med-metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-trans);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.med-metric-card h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 4px;
  font-weight: 600;
}

.med-metric-card p {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 800;
  margin: 0;
}

.med-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 35px;
  align-items: start;
}

.med-main-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.med-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
}

.med-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.med-card h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 50px;
  height: 2px;
  background: var(--accent);
}

.med-card p {
  color: var(--text-body);
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 18px;
}

.med-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.med-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  border-right: 4px solid var(--accent);
}

.med-feature-bullet {
  color: var(--accent);
  font-size: 1.35rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.med-feature-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.med-feature-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.med-table-responsive {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.med-fees-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.95rem;
}

.med-fees-table th {
  background: #0f172a;
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
}

.med-fees-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--text-body);
}

.med-fees-table tbody tr:last-child td {
  border-bottom: none;
}

.med-fees-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.med-notice-box {
  background: #fffbeb;
  border-right: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #92400e;
  font-size: 0.92rem;
  line-height: 1.6;
}

.med-notice-box i {
  font-size: 1.4rem;
  color: #f59e0b;
  flex-shrink: 0;
}

.med-requirements-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.med-requirements-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.6;
}

.med-requirements-list li i {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.med-unis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.med-uni-pill {
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.med-uni-pill:hover {
  background: var(--bg-white);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.med-uni-pill i {
  color: var(--primary);
  font-size: 1rem;
}

.med-sticky-sidebar {
  position: sticky;
  top: 90px;
  z-index: 10;
}

@media (max-width: 991px) {
  .med-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .med-layout-grid {
    grid-template-columns: 1fr;
  }
  .med-sticky-sidebar {
    position: static;
  }
}

@media (max-width: 576px) {
  .med-metrics-grid {
    grid-template-columns: 1fr;
  }
  .med-card {
    padding: 22px 18px;
  }
}

/* ==========================================
   Academic Majors Section (تخصصات الدراسة في الخارج للسعوديين)
   ========================================== */
.majors-section {
  padding: 5.5rem 0;
  background-color: #fafbfc;
  position: relative;
}

.majors-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.majors-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.majors-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #d97706;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.majors-badge::before,
.majors-badge::after {
  content: "";
  display: inline-block;
  width: 45px;
  height: 2px;
  background-color: #f59e0b;
  opacity: 0.7;
}

.majors-title {
  color: #0d5c54;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  font-family: inherit;
}

.majors-title-bar {
  width: 55px;
  height: 4px;
  background-color: #d97706;
  border-radius: 9999px;
  margin: 0.85rem auto 0;
}

.majors-desc {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 0;
}

.majors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.65rem;
}

.major-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.major-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 35px rgba(13, 92, 84, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.major-card-img-wrap {
  position: relative;
  width: 100%;
  height: 185px;
  background: #f1f5f9;
}

.major-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-top-left-radius: 1.25rem;
  border-top-right-radius: 1.25rem;
}

.major-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.major-card:hover .major-card-img-wrap img {
  transform: scale(1.08);
}

.major-badge-icon {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0d5c54;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(13, 92, 84, 0.3);
  border: 3px solid #ffffff;
  z-index: 3;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.major-card:hover .major-badge-icon {
  transform: scale(1.12) rotate(6deg);
  background: #10b981;
}

.major-card-body {
  padding: 1.85rem 1.35rem 1.35rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.major-card-body h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.major-title-link {
  color: #0d5c54;
  text-decoration: none;
  transition: color 0.2s ease;
}

.major-card:hover .major-title-link {
  color: #10b981;
}

.major-card-body p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
}

.major-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #d97706;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.25s ease, color 0.25s ease;
}

.major-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
  font-size: 1.1rem;
  line-height: 1;
}

.major-card:hover .major-card-link {
  color: #b45309;
  gap: 0.65rem;
}

.major-card:hover .major-arrow {
  transform: translateX(-5px);
}

@media (max-width: 1200px) {
  .majors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .majors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .majors-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 600px) {
  .majors-grid {
    grid-template-columns: 1fr;
  }
  .majors-section {
    padding: 3.5rem 0;
  }
}

