/* CSS Design System for NEXOVA - Deep Dark Blue Theme with Dynamic Color Variations */

:root {
  --bg-primary: #060F24;
  --bg-secondary: #0A1F44;
  --bg-card: #0D234C;
  --bg-glass: rgba(10, 31, 68, 0.75);
  --bg-glass-active: rgba(15, 42, 90, 0.9);
  --border-color: rgba(201, 169, 97, 0.22);
  --border-glow: rgba(201, 169, 97, 0.45);
  
  --text-primary: #F8FAFC;
  --text-muted: #94A3B8;
  
  --color-primary: #0A1F44;       /* Luxury Dark Navy */
  --color-accent: #C9A961;        /* Luxury Royal Gold */
  --color-gold-light: #E8D9A8;   /* Bright Champagne Gold */
  --color-gold-dark: #A68744;    /* Deep Antique Gold */
  --color-success: #10b981;       /* Emerald (Open) */
  --color-danger: #ef4444;        /* Rose (Closed) */
  
  --font-sans: 'Plus Jakarta Sans', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', 'Tajawal', Georgia, serif;
  --font-arabic: var(--font-sans);
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-shadow: 0 0 25px rgba(201, 169, 97, 0.18);
}

/* Theme color overrides applied via Javascript on body class */
body.theme-darkblue {
  --bg-primary: #060F24;
  --bg-secondary: #0A1F44;
  --color-primary: #0A1F44;
  --color-accent: #C9A961;
  --border-color: rgba(201, 169, 97, 0.22);
  --border-glow: rgba(201, 169, 97, 0.45);
  --glow-shadow: 0 0 25px rgba(201, 169, 97, 0.22);
}

body.theme-purple {
  --bg-primary: #0e051a;
  --bg-secondary: #170929;
  --color-primary: #8b5cf6;
  --color-accent: #d946ef;
  --border-color: rgba(217, 70, 239, 0.15);
  --border-glow: rgba(217, 70, 239, 0.35);
  --glow-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
}

body.theme-green {
  --bg-primary: #010c08;
  --bg-secondary: #041911;
  --color-primary: #047857;
  --color-accent: #10b981;
  --border-color: rgba(16, 185, 129, 0.15);
  --border-glow: rgba(16, 185, 129, 0.35);
  --glow-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

body.theme-orange {
  --bg-primary: #100601;
  --bg-secondary: #1b0c03;
  --color-primary: #c2410c;
  --color-accent: #f97316;
  --border-color: rgba(249, 115, 22, 0.15);
  --border-glow: rgba(249, 115, 22, 0.35);
  --glow-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
}

/* Reset & Scrollbar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Background Glows */
.bg-glow {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.3;
}

.glow-1 {
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  top: -10%;
  right: -10%;
}

.glow-2 {
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  bottom: -10%;
  left: -10%;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

.hidden {
  display: none !important;
}

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

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  transition: var(--transition-smooth);
}

.glass:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-shadow);
}

/* Luxury Brand Logo Styles */
.luxury-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0D234C 0%, #060F24 100%);
  border: 1px solid var(--border-color);
  box-shadow: 0 0 15px rgba(201, 169, 97, 0.25), inset 0 0 10px rgba(201, 169, 97, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: var(--transition-smooth);
}

.luxury-logo:hover .logo-badge-icon {
  transform: rotate(5deg) scale(1.05);
  border-color: var(--color-accent);
  box-shadow: 0 0 22px rgba(201, 169, 97, 0.45);
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #FFFFFF 20%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.brand-subtitle {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-gold-light);
  opacity: 0.85;
  margin-top: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
  font-size: 14px;
}

.btn-primary,
.btn-gold {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-gold-dark) 100%);
  color: #060F24;
  font-weight: 800;
  box-shadow: 0 4px 18px rgba(201, 169, 97, 0.25);
}

.btn-primary:hover,
.btn-gold:hover {
  transform: translateY(-3px) scale(1.01);
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-accent) 100%);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
  color: #060F24;
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
  color: #ffffff;
  font-weight: 700;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.btn-cyan-flat {
  background-color: var(--color-accent);
  color: #060F24;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  padding: 12px 24px;
  border: none;
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.2);
}

.btn-cyan-flat:hover {
  background-color: var(--color-gold-light);
  color: #060F24;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 169, 97, 0.35);
}

.btn-cyan-add {
  background-color: var(--color-accent);
  color: #060F24;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-cyan-add:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(201, 169, 97, 0.08);
  border-color: var(--color-accent);
  color: var(--color-gold-light);
}

.btn-outline-danger {
  background: transparent;
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-back-link {
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px;
}

.btn-back-link:hover {
  color: var(--text-primary);
}

.btn-block {
  width: 100%;
}

.btn-large {
  padding: 12px 28px;
  font-size: 16px;
}

/* User Auth Wall Overlay */
.auth-wall {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 10, 19, 0.95);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.auth-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-arabic);
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.auth-tab.active {
  background: var(--color-accent);
  color: #060a13;
}

/* Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

[dir="rtl"] .header-actions {
  margin-left: 0;
  margin-right: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
  padding: 4px 8px;
  border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
  background-color: rgba(255, 255, 255, 0.03);
}

.admin-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 188, 212, 0.08);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 188, 212, 0.15);
  color: var(--color-accent) !important;
}

.admin-link-btn:hover {
  background: var(--color-accent);
  color: #060a13 !important;
}

.user-badge-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
  border-right: 1px solid var(--border-color);
}

.user-name {
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
}

/* Page wrapper */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-section {
  display: none;
  animation: fadeIn 0.4s ease;
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Home sub-sections (About, FAQ Embedded) */
.home-sub-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 25%;
  right: 25%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
}

/* Bilingual FAQ Section Styling */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-header-sub {
  display: block;
  font-size: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-light);
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-glass);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover,
.faq-item.active {
  border-color: var(--color-accent);
  box-shadow: 0 8px 25px rgba(201, 169, 97, 0.15);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
}

[dir="ltr"] .faq-question {
  text-align: left;
}

.faq-question-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.faq-q-ar {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.faq-q-en {
  font-size: 13.5px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-light);
  opacity: 0.9;
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .faq-q-en {
  text-align: right;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 24px 24px;
}

.faq-answer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed rgba(201, 169, 97, 0.2);
}

.faq-a-ar {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
}

.faq-a-en {
  font-size: 13.5px;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-gold-light);
  opacity: 0.88;
  padding-top: 8px;
  border-top: 1px dotted rgba(201, 169, 97, 0.15);
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .faq-a-en {
  text-align: right;
}

/* Hero Area styling */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  margin-bottom: 30px;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

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

.hero-image-placeholder {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 3px solid var(--color-accent);
  box-shadow: 0 0 35px rgba(201, 169, 97, 0.35), 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  padding: 16px;
}

.award-giant {
  width: 80px;
  height: 80px;
  color: var(--color-accent);
  opacity: 0.8;
}

.floating-card {
  position: absolute;
  background: rgba(11, 18, 30, 0.85);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.floating-card i {
  color: var(--color-accent);
}

.floating-card.c1 { top: 10%; right: -10px; }
.floating-card.c2 { bottom: 15%; left: -10px; }

/* Saudi Shortcut */
.saudi-shortcut {
  margin-bottom: 60px;
}

.shortcut-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.03) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.shortcut-card:hover {
  border-color: var(--color-success);
  transform: translateY(-2px);
}

.shortcut-icon {
  background: rgba(16, 185, 129, 0.15);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
}

.shortcut-text h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.shortcut-text p {
  color: var(--text-muted);
  font-size: 13px;
}

.shortcut-action {
  margin-right: auto;
  color: var(--color-success);
}

/* Public Scholarships section */
.filter-bar {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
}

.search-box input {
  padding-right: 46px;
  background-color: rgba(6, 10, 19, 0.6);
}

.filters {
  display: flex;
  gap: 12px;
}

.filters select {
  min-width: 150px;
  background-color: rgba(6, 10, 19, 0.6);
}

.scholarships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.scholarship-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.open {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.closed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.country-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(0, 188, 212, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.scholarship-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.scholarship-details-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  list-style: none;
}

.scholarship-details-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scholarship-details-list i {
  color: var(--color-accent);
  width: 16px;
  height: 16px;
}

/* About Grid & Team Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.about-card {
  padding: 30px;
  text-align: center;
}

.about-icon {
  background: rgba(0, 188, 212, 0.1);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-accent);
}

.about-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.team-section h3 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 30px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  padding: 24px;
  text-align: center;
}

.team-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-accent);
}

.team-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card .role {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(0, 188, 212, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 13px;
}

/* FAQ Styling */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 24px;
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-question i {
  color: var(--color-accent);
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(6, 10, 19, 0.25);
}

.faq-answer p {
  padding: 18px 24px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* A. Admin Login Lock Card */
.admin-login-card {
  max-width: 440px;
  margin: 60px auto;
  padding: 40px 32px;
  text-align: center;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.admin-lock-badge-container {
  width: 68px;
  height: 68px;
  background-color: var(--color-accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #060a13;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
}

.admin-lock-icon {
  width: 32px;
  height: 32px;
}

.admin-login-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.admin-login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.input-wrapper-admin {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-wrapper-admin input {
  padding-left: 45px;
  background-color: #0a0f1d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  color: #ffffff;
  border-radius: 8px;
  height: 48px;
}

.input-wrapper-admin input:focus {
  border-color: var(--color-accent);
}

.password-toggle-btn {
  position: absolute;
  left: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.password-toggle-btn:hover {
  color: var(--text-primary);
}

/* B. Admin Dashboard Layout */
.admin-dashboard-layout {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #090e1a;
  border: 1px solid var(--border-color);
}

.admin-panel-header {
  background: #0f1624;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-panel-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-accent);
}

.sub-logo-text {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.admin-panel-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}

.admin-nav-link:hover {
  color: var(--color-accent);
}

.admin-nav-link.logout-red {
  color: #f87171;
}

.admin-nav-link.logout-red:hover {
  color: #ef4444;
}

.admin-panel-tabs {
  background: #0c111d;
  display: flex;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-panel-tab {
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: var(--transition-smooth);
}

.admin-panel-tab:hover {
  color: var(--text-primary);
}

.admin-panel-tab.active {
  color: var(--color-accent);
}

.admin-panel-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-accent);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.admin-sub-content {
  padding: 24px;
  min-height: 400px;
}

.admin-section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-sec-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.admin-sch-card {
  background: #0f1624;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  position: relative;
  gap: 16px;
  transition: var(--transition-smooth);
}

.admin-sch-card:hover {
  border-color: var(--color-accent);
}

.admin-card-country-code {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.admin-card-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: right;
}

.admin-card-title-row {
  margin-bottom: 8px;
}

.admin-card-details h3 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.admin-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.admin-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-card-meta i {
  color: var(--color-accent);
  width: 14px;
  height: 14px;
}

.admin-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 12px;
}

.admin-card-actions .btn-edit {
  flex-grow: 1;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: var(--color-accent);
  border-radius: 6px;
  font-size: 12px;
  padding: 8px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.admin-card-actions .btn-edit:hover {
  background: var(--color-accent);
  color: #060a13;
}

.admin-card-actions .btn-delete {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-card-actions .btn-delete:hover {
  background: #ef4444;
  color: #ffffff;
}

.admin-sch-card .status-badge {
  font-size: 11px;
}

.settings-theme-block {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.color-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.color-theme-card {
  background: #0a0f1d;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.color-theme-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.color-theme-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

.color-preview {
  width: 100%;
  height: 48px;
  border-radius: 6px;
}

.orange-color { background-color: #f97316; }
.green-color { background-color: #10b981; }
.purple-color { background-color: #d946ef; }
.darkblue-color { background-color: #C9A961; }

.color-theme-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-update-block {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 10, 19, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 620px;
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--color-danger);
}

.modal-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-subtitle {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-subtitle i {
  color: var(--color-accent);
}

.detail-block h3 {
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-block h3 i {
  color: var(--color-accent);
}

.rich-text {
  white-space: pre-wrap;
}

.contact-footer-section {
  border-top: 1px solid var(--border-color);
  background: linear-gradient(to bottom, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: 60px 0 0;
  margin-top: 60px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.contact-info-panel h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.bilingual-title-ar {
  display: block;
}

.bilingual-title-en {
  display: block;
  font-size: 15px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-light);
  margin-top: 4px;
}

.bilingual-desc-block {
  margin-bottom: 28px;
}

.bilingual-desc-ar {
  color: var(--text-muted);
  font-size: 15px;
}

.bilingual-desc-en {
  font-size: 13.5px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-light);
  opacity: 0.9;
  margin-top: 3px;
}

/* Bilingual About Us & Team Cards Styling */
.about-card-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.about-h3-ar {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gold-light);
}

.about-h3-en {
  font-size: 13px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-light);
  opacity: 0.85;
}

.team-role-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0 12px;
}

.role-ar {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
}

.role-en {
  font-size: 11.5px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-light);
  opacity: 0.9;
}

.about-desc-ar,
.team-desc-ar {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-primary);
}

.about-desc-en,
.team-desc-en {
  font-size: 12.5px;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-gold-light);
  opacity: 0.88;
  border-top: 1px dotted rgba(201, 169, 97, 0.2);
  padding-top: 6px;
  margin-top: 6px;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  background: rgba(0, 188, 212, 0.1);
  color: var(--color-accent);
  padding: 10px;
  border-radius: 8px;
  width: 44px;
  height: 44px;
}

.contact-item-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.bilingual-h4-ar {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.bilingual-h4-en {
  font-size: 12.5px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-light);
  opacity: 0.9;
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.contact-item a:hover {
  color: var(--color-accent);
}

.whatsapp-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  color: var(--color-success) !important;
}

.whatsapp-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--color-success);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 20px;
  text-align: center;
  background: rgba(6, 10, 19, 0.8);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.owner-highlight {
  color: var(--color-accent);
  font-weight: 700;
}

.license {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .about-grid, .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    max-width: 450px;
  }
  
  .contact-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header-container {
    position: relative;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
  }
  
  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: rgba(10, 31, 68, 0.96);
    backdrop-filter: blur(18px);
    border: 1px solid var(--color-gold-light);
    border-radius: 16px;
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    display: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 169, 97, 0.2);
    z-index: 999;
  }
  
  .nav-menu.show {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  
  .user-badge-container {
    border-right: none;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    padding-right: 0;
    padding-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  
  .filter-bar {
    grid-template-columns: 1fr;
  }
  
  .filters {
    width: 100%;
  }
  
  .filters select {
    flex: 1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 480px) {
  .logo-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  
  .brand-title {
    font-size: 18px;
    letter-spacing: 1px;
  }
  
  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  
  .lang-toggle-btn {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
}

/* Floating WhatsApp Button — position is controlled by .chat-widget-wrapper (fixed)
   The button itself must be position:relative so the draggable wrapper moves it. */
.whatsapp-float-btn {
  position: relative;
  width: 62px;
  height: 62px;
  background-color: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  outline: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-glow 2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.whatsapp-icon-svg {
  width: 34px;
  height: 34px;
}

/* Smart Advisor Section Styling */
.smart-advisor-card {
  margin: 50px 0 70px;
  padding: 40px 32px;
  background: linear-gradient(145deg, rgba(13, 35, 76, 0.85) 0%, rgba(6, 15, 36, 0.95) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 169, 97, 0.12);
  position: relative;
  overflow: hidden;
}

.smart-advisor-header {
  text-align: center;
  margin-bottom: 32px;
}

.smart-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid var(--border-color);
  color: var(--color-gold-light);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.smart-advisor-header h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.smart-advisor-header p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 650px;
  margin: 0 auto;
}

.advisor-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.advisor-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.advisor-input-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.advisor-select {
  width: 100%;
  padding: 14px 16px;
  background: #060F24;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.advisor-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(201, 169, 97, 0.3);
}

.advisor-submit-wrapper {
  text-align: center;
}

.advisor-results-area {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px dashed var(--border-color);
  animation: fadeIn 0.4s ease;
}

.advisor-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.advisor-results-header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.advisor-count-badge {
  background: rgba(201, 169, 97, 0.15);
  color: var(--color-accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-color);
}

.sch-countdown-box {
  background: rgba(10, 31, 68, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  gap: 8px;
  transition: all 0.3s ease;
}

.sch-countdown-title {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.sch-countdown-digits {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--color-gold-light);
  letter-spacing: 0.3px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
  text-align: end;
}

.sch-countdown-digits.expired {
  color: #ef4444 !important;
  font-weight: 700;
}

.sch-countdown-box.expired-box {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

/* Language Switcher Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid var(--border-color);
  color: var(--color-gold-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-toggle-btn:hover {
  background: var(--color-accent);
  color: #060F24;
  box-shadow: 0 0 15px rgba(201, 169, 97, 0.4);
  transform: translateY(-1px);
}

.lang-toggle-btn i {
  width: 15px;
  height: 15px;
}

/* LTR Support & Alignment Override */
[dir="ltr"] {
  text-align: left;
}

[dir="ltr"] .faq-question,
[dir="ltr"] .admin-card-details,
[dir="ltr"] .modal-header,
[dir="ltr"] .modal-body,
[dir="ltr"] .detail-block,
[dir="ltr"] .shortcut-text {
  text-align: left;
}

[dir="ltr"] .search-box i {
  right: auto;
  left: 16px;
}

[dir="ltr"] .search-box input {
  padding-right: 16px;
  padding-left: 46px;
}

[dir="ltr"] .user-badge-container {
  border-right: none;
  border-left: 1px solid var(--border-color);
  padding-right: 0;
  padding-left: 12px;
}

/* Single-card Centered Team Grid */
.team-grid.single-card {
  display: flex;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto;
}

.team-grid.single-card .team-card {
  width: 100%;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(201, 169, 97, 0.1);
}

/* How to Start (Steps Grid) */
.how-it-works-wrapper {
  padding: 50px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(201, 169, 97, 0.2);
}

.step-num {
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.18;
}

[dir="ltr"] .step-num {
  left: auto;
  right: 18px;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Required Documents Checklist Styling */
.docs-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.docs-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-primary);
  background: rgba(10, 31, 68, 0.5);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(201, 169, 97, 0.1);
}

.docs-checklist .check-icon {
  color: var(--color-accent);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Two-cards Balanced Team Grid */
.team-grid.two-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.team-grid.two-cards .team-card {
  width: 100%;
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(201, 169, 97, 0.1);
}

/* Floating Smart Chat Widget Styling */
.chat-widget-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-sans);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.chat-widget-wrapper.is-dragging {
  cursor: grabbing !important;
  opacity: 0.92;
  transition: none !important;
}

.chat-widget-wrapper.is-dragging * {
  cursor: grabbing !important;
  pointer-events: none;
}

[dir="ltr"] .chat-widget-wrapper {
  right: 24px;
  left: auto;
  align-items: flex-end;
}

.chat-widget-panel {
  width: 320px;
  max-width: 90vw;
  background: rgba(10, 31, 68, 0.95);
  border: 1px solid var(--color-gold-light);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(201, 169, 97, 0.25);
  backdrop-filter: blur(16px);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom right;
}

.chat-widget-panel.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  pointer-events: none;
}

.chat-widget-header {
  background: linear-gradient(135deg, #0A1F44 0%, #152C59 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #0A1F44;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar i {
  width: 20px;
  height: 20px;
}

.chat-header-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold-light);
  margin: 0;
  display: flex;
  flex-direction: column;
}

.chat-h4-ar {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-gold-light);
}

.chat-h4-en {
  font-size: 10.5px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-light);
  opacity: 0.85;
}

.chat-online-badge {
  font-size: 10.5px;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.chat-sub-ar {
  font-weight: 600;
}

.chat-sub-en {
  font-family: var(--font-serif);
  font-style: italic;
  opacity: 0.9;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse-ring 1.5s infinite;
}

.chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.chat-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.chat-widget-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble-msg {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: 12px;
  border-top-right-radius: 2px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[dir="ltr"] .chat-bubble-msg {
  border-top-right-radius: 12px;
  border-top-left-radius: 2px;
}

.chat-msg-ar {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.chat-msg-en {
  font-size: 11.5px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-light);
  opacity: 0.9;
  border-top: 1px dotted rgba(201, 169, 97, 0.2);
  padding-top: 5px;
}

.chat-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-option-btn {
  width: 100%;
  background: rgba(10, 31, 68, 0.8);
  border: 1px solid var(--border-glow);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: 10px;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: right;
}

[dir="ltr"] .chat-option-btn {
  text-align: left;
}

.chat-option-btn i,
.chat-option-btn svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.chat-option-btn .btn-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  flex-grow: 1;
}

.chat-opt-ar {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.chat-opt-en {
  font-size: 11px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-light);
  opacity: 0.9;
  display: block;
}

.chat-option-btn:hover {
  background: var(--color-gold);
  color: #0A1F44;
  border-color: var(--color-gold);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.chat-option-btn:hover .chat-opt-ar,
.chat-option-btn:hover .chat-opt-en {
  color: #0A1F44;
}

[dir="ltr"] .chat-option-btn:hover {
  transform: translateX(4px);
}

.chat-option-btn:hover i {
  color: #0A1F44;
}

.chat-widget-toggle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border: 2px solid var(--color-gold-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-widget-toggle-btn:hover,
.whatsapp-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.chat-widget-toggle-btn i,
.whatsapp-float-btn i,
.whatsapp-float-btn svg {
  width: 28px;
  height: 28px;
}

/* Responsive Grid Utility Rules & Table Overflow Handling */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Global Mobile Overlap & Viewport Protection Media Queries */
@media (max-width: 768px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  .content-wrapper {
    padding: 20px 12px;
  }

  /* Prevent Floating Cards Horizontal Overflow */
  .floating-card.c1 {
    right: 0;
    top: 5%;
  }

  .floating-card.c2 {
    left: 0;
    bottom: 5%;
  }

  .hero-image-placeholder {
    width: 220px;
    height: 220px;
  }

  /* Grid Layouts to 1 column for small screens (<480px) */
  .scholarships-grid,
  .admin-cards-grid,
  .advisor-form-grid,
  .steps-grid,
  .team-grid.two-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Chat Widget Responsive Position for Mobile */
  .chat-widget-wrapper {
    right: 12px;
    bottom: 16px;
  }

  [dir="ltr"] .chat-widget-wrapper {
    right: 12px;
    left: auto;
  }

  .chat-widget-panel {
    width: calc(100vw - 24px);
    max-width: 340px;
  }

  .chat-widget-toggle-btn {
    width: 52px;
    height: 52px;
  }

  .chat-widget-toggle-btn i,
  .chat-widget-toggle-btn svg {
    width: 24px;
    height: 24px;
  }

  /* Auth & Modal Responsive Padding */
  .auth-card {
    padding: 24px 16px;
    max-width: 95vw;
  }

  .modal-card {
    padding: 20px 14px;
    max-width: 95vw;
  }

  /* Contact Details Single Column */
  .contact-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 360px) {
  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 7.5px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .color-cards-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* =====================================================
   REGISTER YOUR INTEREST — Bilingual Form Component
   ===================================================== */

.register-interest-section {
  margin-top: 50px;
  padding: 0 4px;
}

.register-interest-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 32px;
  border-radius: 20px;
  border: 1px solid rgba(201, 169, 97, 0.22);
  background: linear-gradient(145deg, rgba(10, 31, 68, 0.82) 0%, rgba(6, 10, 19, 0.72) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 169, 97, 0.08) inset;
}

.register-interest-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.register-interest-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.2) 0%, rgba(201, 169, 97, 0.05) 100%);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}

.register-interest-icon i,
.register-interest-icon svg {
  width: 26px;
  height: 26px;
}

.register-interest-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ri-title-ar {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-gold-light);
  line-height: 1.2;
}

.ri-title-en {
  font-size: 13px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-light);
  opacity: 0.85;
  display: block;
}

.ri-desc-ar {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.6;
}

.ri-desc-en {
  font-size: 11.5px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-light);
  opacity: 0.8;
  margin-top: 2px;
}

.ri-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 4px;
}

.ri-label-ar {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.ri-label-en {
  font-size: 10.5px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-light);
  opacity: 0.85;
  display: block;
}

/* Thank-you State */
.ri-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px 10px;
  gap: 8px;
  animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.ri-thankyou-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.12);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  margin-bottom: 8px;
  box-shadow: 0 0 24px rgba(201, 169, 97, 0.25);
}

.ri-thankyou-icon i,
.ri-thankyou-icon svg {
  width: 36px;
  height: 36px;
}

.ri-ty-ar {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-gold-light);
}

.ri-ty-en {
  font-size: 12.5px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-light);
  opacity: 0.85;
}

.ri-ty-sub-ar {
  font-size: 13px;
  color: var(--text-muted);
}

.ri-ty-sub-en {
  font-size: 11px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-gold-light);
  opacity: 0.75;
}

/* Bilingual button inner text block */
.btn-bilingual-block {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1.2;
  vertical-align: middle;
}

.btn-ar {
  font-size: 13px;
  font-weight: 700;
}

.btn-en {
  font-size: 10.5px;
  font-family: var(--font-serif);
  font-style: italic;
  opacity: 0.9;
}

.ri-modal-card {
  padding: 32px 28px;
}

@media (max-width: 768px) {
  .ri-fields-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .register-interest-card {
    padding: 24px 16px;
  }
}

/* ============================================================
   SUCCESS STORIES SECTION
   ============================================================ */
.success-stories-section {
  padding: 20px 0 40px;
}

.success-coming-soon {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg,
    rgba(10, 31, 68, 0.85) 0%,
    rgba(6, 10, 36, 0.95) 100%);
  max-width: 860px;
  margin: 0 auto;
  box-shadow:
    0 0 60px rgba(201, 169, 97, 0.06),
    0 20px 60px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(201, 169, 97, 0.12);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.success-coming-soon:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 80px rgba(201, 169, 97, 0.12),
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(201, 169, 97, 0.2);
}

.success-cs-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse at center,
    rgba(201, 169, 97, 0.08) 0%,
    transparent 65%);
  pointer-events: none;
  animation: successGlowPulse 4s ease-in-out infinite;
}

@keyframes successGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

.success-cs-icon {
  position: relative;
  flex-shrink: 0;
}

.success-cs-icon-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(201, 169, 97, 0.18) 0%,
    rgba(201, 169, 97, 0.04) 100%);
  border: 2px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(201, 169, 97, 0.15);
  animation: iconRingPulse 3s ease-in-out infinite;
}

@keyframes iconRingPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,169,97,0.15), 0 0 0 0 rgba(201,169,97,0.12); }
  50%       { box-shadow: 0 0 40px rgba(201,169,97,0.3),  0 0 0 12px rgba(201,169,97,0); }
}

.success-cs-star {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  filter: drop-shadow(0 0 10px rgba(201,169,97,0.6));
  animation: starSpin 8s linear infinite;
}

@keyframes starSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.success-cs-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: var(--color-accent);
  opacity: 0;
  animation: sparkleFade 3s ease-in-out infinite;
}
.sparkle svg { width: 16px; height: 16px; filter: drop-shadow(0 0 4px var(--color-accent)); }
.sparkle.s1 { top: -10px; left: 50%; animation-delay: 0s; }
.sparkle.s2 { top: 50%; right: -15px; animation-delay: 1s; }
.sparkle.s3 { bottom: -8px; left: 20%; animation-delay: 2s; }

@keyframes sparkleFade {
  0%   { opacity: 0; transform: scale(0.5) translateY(0); }
  40%  { opacity: 1; transform: scale(1)   translateY(-8px); }
  100% { opacity: 0; transform: scale(0.6) translateY(-20px); }
}

.success-cs-text {
  flex: 1;
}

.success-cs-title-ar {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
  line-height: 1.4;
}

.success-cs-title-en {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-gold-light);
  opacity: 0.85;
  margin-bottom: 16px;
  display: block;
}

.success-cs-desc-ar,
.success-cs-desc-en {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.7;
}

.success-cs-cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.success-cs-cta .btn-ar,
.success-cs-cta .btn-en { font-size: 13px; display: block; }

@media (max-width: 768px) {
  .success-coming-soon {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    gap: 28px;
  }
  .success-cs-title-ar { font-size: 18px; }
}

/* ============================================================
   OPTIONAL USER LOGIN NAV BUTTON
   ============================================================ */
.user-login-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg,
    rgba(201, 169, 97, 0.12) 0%,
    rgba(201, 169, 97, 0.06) 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--color-accent);
  font-family: var(--font-arabic);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
  text-decoration: none;
}

.user-login-nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.user-login-nav-btn:hover {
  background: linear-gradient(135deg,
    rgba(201, 169, 97, 0.22) 0%,
    rgba(201, 169, 97, 0.12) 100%);
  border-color: var(--border-glow);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 169, 97, 0.18);
}

.user-login-nav-btn .login-btn-en {
  font-size: 11px;
  opacity: 0.75;
}

/* ============================================================
   MODAL OVERLAY & CARDS
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  padding: 36px 32px;
  width: 100%;
  max-width: 480px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(201,169,97,0.08);
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.user-auth-card { max-width: 460px; }

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.3);
  color: #f87171;
}

.modal-close svg { width: 16px; height: 16px; }

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-gold-light) 60%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Official Scholarship Site Viewer Modal & Floating Banner Overlay */
.os-modal-card {
  width: 96vw;
  height: 94vh;
  max-width: 1400px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-glow);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  background: var(--bg-primary);
}

.os-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(10, 31, 68, 0.95);
  border-bottom: 1px solid var(--border-color);
  gap: 16px;
}

.os-brand-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.os-sch-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.os-sch-domain {
  font-size: 11px;
  color: var(--text-muted);
}

.os-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.os-close-btn {
  position: static;
  width: 36px;
  height: 36px;
}

.os-iframe-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

.os-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Floating NEXOVA Overlay Banner on top of Official Site */
.os-floating-nexova-banner {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  border-radius: 50px;
  background: rgba(6, 15, 36, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 2px solid var(--color-accent) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(201, 169, 97, 0.35);
  min-width: 320px;
  max-width: 90vw;
  animation: bannerPulse 3s infinite alternate;
}

@keyframes bannerPulse {
  0% {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 169, 97, 0.25);
    border-color: rgba(201, 169, 97, 0.6);
  }
  100% {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(201, 169, 97, 0.55);
    border-color: var(--color-accent);
  }
}

.os-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.os-pulse-badge {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-gold-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #060F24;
  flex-shrink: 0;
}

.os-banner-icon {
  width: 22px;
  height: 22px;
}

.os-banner-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.os-banner-ar {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.os-banner-en {
  font-size: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-light);
  line-height: 1.2;
}

.os-banner-cta {
  border-radius: 30px !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .os-floating-nexova-banner {
    bottom: 12px;
    padding: 10px 16px;
    gap: 12px;
    width: 94vw;
  }
  .os-banner-ar {
    font-size: 13px;
  }
  .os-banner-en {
    font-size: 11px;
  }
}

/* --- ScholarHubGo Brand & Custom Components Styles --- */
.header-logo-img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  vertical-align: middle;
}

.hero-branding-img {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
  display: block;
}

.hero-branding-img:hover {
  transform: scale(1.04);
}

/* Offline Banner Alert */
.offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(90deg, #e11d48, #be123c);
  color: #ffffff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Country Flag Badges */
.country-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.country-flag-badge .flag-emoji {
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}

.flag-icon-img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  vertical-align: middle;
  display: inline-block;
  margin-inline-end: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Visual Stepper Timeline (Application Status) */
.app-timeline-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  position: relative;
  padding: 0 10px;
}

.app-timeline-stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.stepper-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}

.stepper-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.stepper-step.completed .stepper-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #060F24;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.stepper-step.active .stepper-icon {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-light));
  border-color: var(--color-gold-light);
  color: #060F24;
  box-shadow: 0 0 20px rgba(201, 169, 97, 0.6);
  animation: pulse 1.5s infinite;
}

.stepper-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.stepper-step.active .stepper-label,
.stepper-step.completed .stepper-label {
  color: var(--text-primary);
  font-weight: 700;
}

/* Side-by-Side Comparison Matrix */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: right;
  font-size: 13px;
}

.comparison-table th {
  background: rgba(6, 182, 212, 0.1);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
}

.comparison-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* Buttons and Badges Extra */
.btn-biometric {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-biometric:hover {
  background: rgba(6, 182, 212, 0.15);
}

/* Floating Action Badges */
.wishlist-btn-active {
  color: #ef4444 !important;
  fill: #ef4444;
}

/* --- Floating Smart Chat Widget (WhatsApp Support & Consultations) --- */
/* The wrapper is fixed and controlled by the JS draggable system.
   Setting right/bottom here only provides the default start position;
   JS will override with left/top once dragging occurs. */
.chat-widget-wrapper {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-sans);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Floating WhatsApp Classic Green Button
   MUST be position:relative — dragging is done by moving the wrapper, not the button. */
.whatsapp-float-btn {
  width: 62px;
  height: 62px;
  background: linear-gradient(145deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  outline: none;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}


.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.65), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-pulse-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2.5px solid #25D366;
  animation: wa-pulse-glow 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes wa-pulse-glow {
  0% {
    transform: scale(0.95);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.28);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.whatsapp-icon-svg {
  width: 34px;
  height: 34px;
}

/* Luxury Chat Widget Popup Panel */
.chat-widget-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(160deg, #0d234c 0%, #060f24 100%);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(201, 169, 97, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
}

.chat-widget-panel.hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  pointer-events: none;
}

.chat-widget-header {
  padding: 16px 18px;
  background: rgba(8, 20, 46, 0.9);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.4);
}

.chat-header-info h4 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.25;
  display: flex;
  flex-direction: column;
}

.chat-h4-ar {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-h4-en {
  font-size: 11px;
  font-style: italic;
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.chat-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chat-online-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
}

.chat-sub-en {
  font-style: italic;
  opacity: 0.85;
}

.chat-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.chat-widget-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble-msg {
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: inset 0 0 10px rgba(201, 169, 97, 0.05);
}

.chat-msg-ar {
  font-size: 13.5px;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.chat-msg-en {
  font-size: 11.5px;
  color: var(--color-gold-light);
  font-style: italic;
  margin: 0;
  line-height: 1.35;
}

.chat-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: right;
  width: 100%;
}

.chat-option-btn:hover {
  background: rgba(201, 169, 97, 0.12);
  border-color: var(--color-accent);
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 15px rgba(201, 169, 97, 0.2);
}

.chat-opt-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(201, 169, 97, 0.15);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(201, 169, 97, 0.3);
  transition: all 0.25s ease;
}

.chat-option-btn:hover .chat-opt-icon {
  background: var(--color-accent);
  color: #060a13;
  box-shadow: 0 0 12px var(--color-accent);
}

.chat-option-btn .btn-text-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.chat-opt-ar {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-opt-en {
  font-size: 10.5px;
  color: var(--color-gold-light);
  font-style: italic;
  font-weight: 500;
}


/* ====================================================
   SOP GENERATOR STYLES
   ==================================================== */

.sop-generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .sop-generator-layout {
    grid-template-columns: 1fr;
  }
}

.sop-form-panel {
  padding: 24px;
  border-radius: 16px;
}

.sop-form-panel textarea {
  width: 100%;
  background: rgba(10,31,68,0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 12px;
  font-family: var(--font-arabic);
  font-size: 13px;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s ease;
  direction: rtl;
}

.sop-form-panel textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201,169,97,0.1);
}

.sop-form-panel select {
  width: 100%;
  background: rgba(10,31,68,0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 10px 14px;
  font-family: var(--font-arabic);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.sop-form-panel select:focus {
  border-color: var(--color-accent);
}

.sop-output-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Loading State */
.sop-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: rgba(10,31,68,0.4);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  gap: 14px;
}

.sop-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(201,169,97,0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error State */
.sop-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  text-align: center;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 16px;
}

/* Empty State */
.sop-empty-state {
  padding: 48px 24px;
  text-align: center;
  background: rgba(10,31,68,0.3);
  border: 1px dashed var(--border-glow);
  border-radius: 16px;
}

/* Draft Container */
.sop-draft-container {
  background: rgba(10,31,68,0.6);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201,169,97,0.1);
}

.sop-draft-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(10,31,68,0.9), rgba(6,15,36,0.9));
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.sop-draft-textarea {
  width: 100%;
  min-height: 380px;
  background: rgba(6,15,36,0.8);
  border: none;
  color: var(--text-primary);
  padding: 18px 20px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.8;
  resize: vertical;
  outline: none;
  direction: ltr;
  text-align: left;
  display: block;
}

.sop-draft-textarea:focus {
  background: rgba(6,15,36,0.95);
}

/* Saved Draft Cards */
.sop-draft-card {
  background: rgba(10,31,68,0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}

.sop-draft-card:hover {
  border-color: var(--border-glow);
  background: rgba(10,31,68,0.7);
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

/* ====================================================
   MOBILE RESPONSIVE - FLOATING BUTTONS
   ==================================================== */

@media (max-width: 600px) {
  .whatsapp-float-btn {
    width: 52px;
    height: 52px;
  }

  .ai-chat-wrapper {
    bottom: 20px;
    left: 20px;
  }

  .robot-float-btn {
    width: 52px;
    height: 52px;
  }

  .ai-chat-panel {
    width: calc(100vw - 40px);
    left: 0;
    max-height: 480px;
    border-radius: 16px;
  }

  .sop-generator-layout {
    grid-template-columns: 1fr;
  }
}


}

/* Animated Statistics Section Styling */
.stats-section {
  max-width: 1100px;
  margin: 60px auto 40px;
  padding: 40px 24px;
  border-radius: 24px;
  border: 1px solid var(--border-glow);
  background: rgba(10, 31, 68, 0.65);
  backdrop-filter: blur(16px);
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(201, 169, 97, 0.15);
}

.stats-header h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.stat-card {
  padding: 28px 20px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.06);
}

.stat-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.stat-icon-wrapper i {
  width: 26px;
  height: 26px;
}

.stat-number-block {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 900;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-shadow: 0 0 20px rgba(201, 169, 97, 0.4);
}

.stat-plus {
  color: var(--color-accent);
  font-weight: 800;
}

.stat-label-ar {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label-en {
  font-size: 12px;
  color: var(--text-muted);
}

/* Contact Section Styling */
.contact-section {
  max-width: 1150px;
  margin: 70px auto 40px;
  padding: 0 20px;
}

.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
  margin-top: 36px;
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  background: rgba(10, 31, 68, 0.6);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  border-color: var(--color-gold-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box i {
  width: 22px;
  height: 22px;
}

.contact-icon-box.gold {
  background: rgba(201, 169, 97, 0.15);
  border: 1px solid var(--color-gold-light);
  color: var(--color-gold-light);
}

.contact-icon-box.green {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #22c55e;
}

.contact-icon-box.cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.contact-card-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 2px;
}

.contact-sub-en {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.contact-detail-link {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}

.contact-detail-link:hover {
  text-decoration: underline;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #22c55e;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.phone-chip i {
  width: 15px;
  height: 15px;
}

.phone-chip:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
}

.contact-leader-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form-wrapper {
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: rgba(10, 31, 68, 0.7);
}

.contact-form-header {
  margin-bottom: 24px;
}

.contact-form-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.contact-form-header h3 i {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.contact-form-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}

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

/* Site Footer */
.site-footer {
  margin-top: 80px;
  background: rgba(5, 13, 30, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 50px 20px 20px;
}

.footer-container {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links-col h4,
.footer-contact-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.footer-links-col a:hover {
  color: var(--color-accent);
  padding-right: 4px;
}

.footer-contact-col p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-col p i {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.footer-bottom-bar {
  max-width: 1150px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}


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

/* Blog Listing Section */
.blog-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-section-header .smart-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.blog-section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.blog-section-header p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Blog Cards Grid */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Individual Blog Card */
.blog-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.3), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--glow-shadow), 0 16px 48px rgba(0, 0, 0, 0.3);
}

.blog-card:hover::before {
  opacity: 1;
}

/* Blog Card Thumbnail */
.blog-card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.08);
}

.blog-card-thumb .blog-date-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(6, 15, 36, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

[dir="ltr"] .blog-card-thumb .blog-date-badge {
  right: auto;
  left: 12px;
}

/* Blog Card Body */
.blog-card-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-body h3 {
  color: var(--color-accent);
}

.blog-card-body .blog-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card-body .blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-body .blog-read-more {
  gap: 10px;
}

.blog-card-body .blog-read-more i,
.blog-card-body .blog-read-more svg {
  width: 16px;
  height: 16px;
}

/* ===========================================
   BLOG ARTICLE PAGE STYLES
   (Used in standalone blog/*.html pages)
   =========================================== */

/* Blog Page Body */
.blog-page-body {
  background: var(--bg-primary);
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
}

/* Blog Page Header */
.blog-page-header {
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.blog-page-header .blog-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-page-header .blog-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.blog-page-header .blog-header-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.blog-page-header .blog-header-brand span {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
}

.blog-page-header .blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.25);
  color: var(--color-accent);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.blog-page-header .blog-back-btn:hover {
  background: rgba(201, 169, 97, 0.2);
  border-color: var(--color-accent);
}

.blog-page-header .blog-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201, 169, 97, 0.1);
  border: 1px solid rgba(201, 169, 97, 0.25);
  color: var(--color-accent);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.blog-page-header .blog-lang-toggle:hover {
  background: rgba(201, 169, 97, 0.2);
}

.blog-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Blog Article Content */
.blog-article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-article-hero {
  margin-bottom: 40px;
}

.blog-article-hero .blog-article-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
}

.blog-article-hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary), var(--color-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-article-hero .blog-article-meta {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 650px;
}

.blog-article-hero .blog-hero-image {
  width: 100%;
  border-radius: 16px;
  margin-top: 28px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.blog-article-hero .blog-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blog Article Body Content */
.blog-article-content {
  line-height: 1.9;
  font-size: 16px;
  color: var(--text-primary);
}

.blog-article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-gold-light);
  position: relative;
  padding-bottom: 10px;
}

.blog-article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
}

[dir="ltr"] .blog-article-content h2::after {
  right: auto;
  left: 0;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.blog-article-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.blog-article-content p {
  margin-bottom: 18px;
  color: rgba(248, 250, 252, 0.88);
}

.blog-article-content ul,
.blog-article-content ol {
  margin: 16px 0;
  padding: 0 24px;
}

.blog-article-content li {
  margin-bottom: 10px;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.8;
}

.blog-article-content li::marker {
  color: var(--color-accent);
}

.blog-article-content strong {
  color: var(--color-gold-light);
  font-weight: 700;
}

.blog-article-content blockquote {
  border-right: 4px solid var(--color-accent);
  background: rgba(201, 169, 97, 0.06);
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-muted);
}

[dir="ltr"] .blog-article-content blockquote {
  border-right: none;
  border-left: 4px solid var(--color-accent);
  border-radius: 12px 0 0 12px;
}

/* Blog Tip Box */
.blog-tip-box {
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.blog-tip-box .tip-icon {
  color: var(--color-accent);
  min-width: 24px;
}

.blog-tip-box .tip-icon i,
.blog-tip-box .tip-icon svg {
  width: 22px;
  height: 22px;
}

.blog-tip-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

/* Blog CTA Section */
.blog-cta-section {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  margin-top: 48px;
}

.blog-cta-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-gold-light);
}

.blog-cta-section p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 14px;
}

.blog-cta-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.blog-cta-section .btn-gold {
  background: linear-gradient(135deg, var(--color-accent), var(--color-gold-dark));
  color: #0A1F44;
  border: none;
}

.blog-cta-section .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.3);
}

/* Related Articles Section */
.blog-related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-related-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.blog-related-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

.blog-related-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--glow-shadow);
}

.blog-related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.blog-related-card .related-card-body {
  padding: 16px;
}

.blog-related-card .related-card-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.5;
}

.blog-related-card .related-card-body span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Blog Page Footer */
.blog-page-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* Language Toggle for Blog */
.blog-content-ar,
.blog-content-en {
  display: none;
}

.blog-content-ar.active {
  display: block;
}

.blog-content-en.active {
  display: block;
}

/* Responsive for Blog */
@media (max-width: 768px) {
  .blog-cards-grid {
    grid-template-columns: 1fr;
  }

  .blog-article-hero h1 {
    font-size: 26px;
  }

  .blog-article-content {
    font-size: 15px;
  }

  .blog-article-content h2 {
    font-size: 20px;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }

  .blog-cta-section {
    padding: 24px 16px;
  }

  .blog-page-header .blog-header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .blog-header-actions {
    order: -1;
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .blog-card-thumb {
    height: 170px;
  }

  .blog-article-wrapper {
    padding: 28px 16px 60px;
  }
}

/* ==========================================================================
   Bilingual Success Stories Typography & Card Design
   ========================================================================== */
.story-card-bilingual {
  background: rgba(10, 16, 30, 0.75);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-card-bilingual:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(201, 169, 97, 0.15);
}

.story-card-bilingual.founder-highlight {
  border: 1px solid rgba(201, 169, 97, 0.45);
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(6, 182, 212, 0.05) 50%, rgba(10, 16, 30, 0.85) 100%);
}

.story-badge-founder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.25), rgba(201, 169, 97, 0.1));
  border: 1px solid rgba(201, 169, 97, 0.4);
  color: #f6e05e;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.story-title-ar {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.story-title-en {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 16px 0;
  direction: ltr;
  text-align: left;
}

.story-body-ar {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  color: #f1f5f9;
  margin: 0 0 16px 0;
  text-align: justify;
}

.story-divider {
  position: relative;
  margin: 18px 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.35), transparent);
}

.story-divider::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0a101e;
  padding: 0 8px;
  color: var(--color-gold);
  font-size: 10px;
}

.story-body-en {
  font-family: 'Poppins', 'Inter', -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.75;
  color: #94a3b8;
  font-style: italic;
  direction: ltr;
  text-align: left;
  margin: 0 0 16px 0;
}

.story-signature-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(201, 169, 97, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.story-sig-ar {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
}

.story-sig-en {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 11.5px;
  color: var(--color-accent);
  direction: ltr;
}

/* ==========================================================================
   Urgent Scholarships Warning Badge & Pulsing Border
   ========================================================================== */
@keyframes pulseUrgentBorder {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4), 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(239, 68, 68, 0.6);
  }
  50% {
    box-shadow: 0 0 20px 4px rgba(249, 115, 22, 0.35), 0 14px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(249, 115, 22, 0.85);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4), 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(239, 68, 68, 0.6);
  }
}

.scholarship-card.urgent-sch-card {
  border: 1.5px solid rgba(239, 68, 68, 0.65) !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(249, 115, 22, 0.04) 50%, rgba(10, 16, 30, 0.85) 100%) !important;
  animation: pulseUrgentBorder 3s infinite ease-in-out;
}

.urgent-deadline-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.urgent-deadline-badge i {
  color: #ef4444;
  animation: flameFlicker 1.5s infinite alternate;
}

@keyframes flameFlicker {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* ==========================================================================
   Admin Pending Count Badge
   ========================================================================== */
.badge-pending-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   In-Blog Direct Action Link to Scholarships
   ========================================================================== */
.blog-sch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin: 12px 0 18px 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(201, 169, 97, 0.12));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 10px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-sch-link:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(201, 169, 97, 0.22));
  border-color: var(--color-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.25);
}

/* ==========================================================================
   Luxury Visual & UX Enhancements (Phase 3 Upgrade)
   ========================================================================== */

/* 1. Smooth Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Golden Glow Effect & Sweep Shimmer on Primary CTA Buttons */
.btn-gold, .btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.28), 0 0 15px rgba(201, 169, 97, 0.18);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold::after, .btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  transition: all 0.65s ease;
  opacity: 0;
  pointer-events: none;
}

.btn-gold:hover::after, .btn-primary:hover::after {
  left: 125%;
  opacity: 1;
}

.btn-gold:hover, .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5), 0 0 25px rgba(201, 169, 97, 0.4);
}

/* 3. Section Spacing & Breathing Room Enhancement */
.home-sub-section {
  margin-bottom: 75px !important;
  padding-top: 20px;
}

.hero {
  padding: 60px 0 75px 0 !important;
}

.stats-section {
  margin-bottom: 75px !important;
  padding: 48px 36px !important;
}

.smart-advisor-card {
  margin-bottom: 75px !important;
}

/* 4. Scholarship Card Premium Hover Lift & Glow */
.scholarship-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.scholarship-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(201, 169, 97, 0.48) !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.65), 0 0 25px rgba(201, 169, 97, 0.22) !important;
}

/* 5. Skeleton Loading Styles for Scholarships Grid */
.scholarship-card-skeleton {
  background: rgba(13, 35, 76, 0.6);
  border: 1px solid rgba(201, 169, 97, 0.12);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 169, 97, 0.12) 50%, transparent 100%);
  animation: skeletonShimmer 1.8s infinite ease-in-out;
}

@keyframes skeletonShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-badge { width: 100px; height: 24px; background: rgba(255,255,255,0.06); border-radius: 20px; }
.skeleton-title { width: 85%; height: 26px; background: rgba(255,255,255,0.08); border-radius: 6px; }
.skeleton-line { width: 65%; height: 16px; background: rgba(255,255,255,0.05); border-radius: 4px; }
.skeleton-footer { width: 100%; height: 42px; background: rgba(255,255,255,0.06); border-radius: 8px; margin-top: auto; }

/* 6. Trust Badges Bar Styling */
.trust-badges-wrapper {
  margin: 60px 0 70px 0;
  padding: 36px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 35, 76, 0.75) 0%, rgba(6, 15, 36, 0.9) 100%);
  border: 1px solid rgba(201, 169, 97, 0.28);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: center;
}

.trust-badge-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.35s ease;
}

.trust-badge-card:hover {
  background: rgba(201, 169, 97, 0.08);
  border-color: rgba(201, 169, 97, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.trust-badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.25), rgba(201, 169, 97, 0.08));
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.trust-badge-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 3px;
}

.trust-badge-text p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* 7. Featured Study Destinations Showcase Grid */
.destinations-wrapper {
  margin-bottom: 75px;
}

.country-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.country-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: rgba(13, 35, 76, 0.45);
  border: 1px solid rgba(201, 169, 97, 0.18);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.country-card:hover {
  transform: translateY(-6px) scale(1.03);
  background: linear-gradient(135deg, rgba(13, 35, 76, 0.85) 0%, rgba(201, 169, 97, 0.15) 100%);
  border-color: var(--color-accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 22px rgba(201, 169, 97, 0.25);
}

.country-card-flag {
  font-size: 40px;
  margin-bottom: 12px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

.country-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.country-card-count {
  font-size: 11.5px;
  color: var(--color-accent);
  background: rgba(201, 169, 97, 0.12);
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 97, 0.28);
}

/* 8. Mobile Performance & Reduced Motion Optimizations */
@media (max-width: 768px) {
  .stats-section {
    padding: 30px 18px !important;
    margin-bottom: 45px !important;
  }
  
  .trust-badges-wrapper {
    margin: 40px 0 50px 0;
    padding: 24px 16px;
  }

  .home-sub-section {
    margin-bottom: 45px !important;
  }

  .reveal-on-scroll {
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .scholarship-card:hover {
    transform: translateY(-3px) scale(1.005);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   OFFLINE BANNER HIDE RULE
   ========================================================================== */
.offline-banner {
  display: none !important;
}

/* ==========================================================================
   PARTNERSHIPS & DIRECT SUBMISSIONS SECTION
   ========================================================================== */
.partnerships-section {
  margin: 50px 0 60px;
}

.partnerships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 28px auto 0;
}

.partnership-card {
  background: rgba(10, 31, 68, 0.78);
  border: 1.5px solid rgba(201, 169, 97, 0.35);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.partnership-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 169, 97, 0.25);
}

.partnership-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.partner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.partner-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(201, 169, 97, 0.12);
  border: 1px solid rgba(201, 169, 97, 0.3);
  color: var(--color-gold-light);
  font-size: 13.5px;
  font-weight: 700;
}

.partner-flag-badge .flag-emoji {
  font-size: 20px;
  line-height: 1;
}

.partner-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: 12px;
}

.partner-card-body h3 {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.partner-card-body .partner-sub-en {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.partner-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.partner-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-features-list li {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.partner-features-list li i,
.partner-features-list li svg {
  color: var(--color-accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.partner-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* ==========================================================================
   COMSTECH FEATURED PREMIUM CARD — The Crown Jewel of ScholarHubGo
   ========================================================================== */

/* Make COMSTECH card span full width in the grid */
.comstech-featured-card {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(6, 15, 36, 0.98) 0%, rgba(10, 31, 68, 0.98) 40%, rgba(18, 50, 100, 0.95) 70%, rgba(8, 25, 55, 0.98) 100%);
  border: 2px solid transparent;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(201, 169, 97, 0.45),
    0 0 60px rgba(201, 169, 97, 0.18),
    inset 0 1px 0 rgba(201, 169, 97, 0.2);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.comstech-featured-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.8),
    0 0 0 2px rgba(201, 169, 97, 0.7),
    0 0 80px rgba(201, 169, 97, 0.28),
    inset 0 1px 0 rgba(201, 169, 97, 0.35);
}

/* Animated shimmer overlays */
.comstech-shimmer-1 {
  position: absolute;
  top: -60%;
  right: -20%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 169, 97, 0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: comstech-shimmer-rotate 8s linear infinite;
}

.comstech-shimmer-2 {
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: comstech-shimmer-rotate 12s linear infinite reverse;
}

@keyframes comstech-shimmer-rotate {
  0% { transform: rotate(0deg) scale(1); opacity: 0.8; }
  50% { transform: rotate(180deg) scale(1.15); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.8; }
}

/* Header row */
.comstech-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.comstech-logos-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comstech-flag-orb {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  animation: comstech-flag-float 3s ease-in-out infinite;
}

@keyframes comstech-flag-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.comstech-org-names {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.comstech-primary-name {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #F5D890 0%, #C9A961 40%, #A68744 70%, #F5D890 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: comstech-gold-sweep 3s linear infinite;
}

@keyframes comstech-gold-sweep {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.comstech-secondary-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.comstech-badges-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.comstech-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.25), rgba(201, 169, 97, 0.1));
  border: 1px solid rgba(201, 169, 97, 0.5);
  color: var(--color-gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.comstech-official-badge i, .comstech-official-badge svg {
  width: 14px;
  height: 14px;
}

.comstech-oic-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

/* Title block */
.comstech-title-block {
  margin-bottom: 24px;
}

.comstech-card-title {
  font-family: var(--font-serif), Georgia, serif;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 12px rgba(201, 169, 97, 0.3);
  line-height: 1.3;
}

.comstech-card-title-en {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.comstech-tagline {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

/* Level chips row */
.comstech-levels-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.comstech-level-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.2), rgba(201, 169, 97, 0.08));
  border: 1.5px solid rgba(201, 169, 97, 0.45);
  color: var(--color-gold-light);
  font-size: 14px;
  font-weight: 800;
  transition: all 0.3s ease;
}

.comstech-level-chip:hover {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.35), rgba(201, 169, 97, 0.15));
  transform: scale(1.04);
}

.comstech-level-chip i, .comstech-level-chip svg {
  width: 17px;
  height: 17px;
  color: var(--color-gold-light);
}

.comstech-level-chip .chip-en {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-mono, monospace);
}

.comstech-level-divider {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-gold-light);
  opacity: 0.6;
}

/* Coverage block */
.comstech-coverage-block {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}

.comstech-coverage-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.comstech-coverage-header i, .comstech-coverage-header svg {
  width: 17px;
  height: 17px;
}

.comstech-coverage-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.comstech-cover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
}

.comstech-cover-item.included {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.comstech-cover-item.included i,
.comstech-cover-item.included svg {
  color: #34d399;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.comstech-cover-item.not-included {
  color: rgba(251, 146, 60, 0.9);
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.comstech-cover-item.not-included i,
.comstech-cover-item.not-included svg {
  color: rgba(251, 146, 60, 0.9);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.comstech-coverage-note {
  font-size: 12px;
  color: rgba(251, 146, 60, 0.85);
  background: rgba(251, 146, 60, 0.07);
  border-right: 3px solid rgba(251, 146, 60, 0.5);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0;
  line-height: 1.6;
}

[dir="ltr"] .comstech-coverage-note {
  border-right: none;
  border-left: 3px solid rgba(251, 146, 60, 0.5);
}

/* Features list override for COMSTECH */
.comstech-features {
  margin-bottom: 24px;
}

.comstech-features li {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0;
}

.comstech-features li i,
.comstech-features li svg {
  color: var(--color-gold-light) !important;
  width: 17px;
  height: 17px;
}

/* Premium CTA Button */
.comstech-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #C9A961 0%, #A68744 30%, #C9A961 60%, #E8C97A 100%);
  background-size: 200% auto;
  color: #060F24;
  box-shadow:
    0 8px 30px rgba(201, 169, 97, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
  animation: comstech-btn-shimmer 3s linear infinite;
}

@keyframes comstech-btn-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.comstech-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.comstech-cta-btn:hover::before {
  left: 150%;
}

.comstech-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 14px 40px rgba(201, 169, 97, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.comstech-cta-btn:active {
  transform: translateY(0) scale(0.99);
}

.comstech-cta-btn i,
.comstech-cta-btn svg {
  width: 22px;
  height: 22px;
  color: #060F24;
  flex-shrink: 0;
}

.comstech-cta-btn .btn-bilingual-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.comstech-cta-btn .btn-ar {
  font-size: 15px;
  font-weight: 800;
}

.comstech-cta-btn .btn-en {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.3px;
}

/* Responsive: on small screens, stack to single column */
@media (max-width: 768px) {
  .comstech-featured-card {
    padding: 24px 18px;
  }

  .comstech-card-title {
    font-size: 20px;
  }

  .comstech-primary-name {
    font-size: 22px;
  }

  .comstech-levels-row {
    justify-content: center;
  }

  .comstech-badges-stack {
    align-items: flex-start;
  }
}

/* ==========================================================================
   AI CHATBOT LUXURY FLOATING WIDGET & WINDOW
   ========================================================================== */
#scholarloop-ai-chat-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 10000;
  font-family: var(--font-sans);
}

[dir="ltr"] #scholarloop-ai-chat-container {
  left: auto;
  right: 24px;
}

.ai-chat-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0A1F44 0%, #152C59 50%, #C9A961 150%);
  border: 1.5px solid var(--color-gold-light);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(201, 169, 97, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 169, 97, 0.5);
}

.ai-fab-icon-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A961 0%, #A68744 100%);
  color: #060F24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-fab-icon-wrap i, .ai-fab-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.ai-fab-sparkle {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px !important;
  height: 12px !important;
  color: #ffffff !important;
  animation: spin 4s linear infinite;
}

.ai-fab-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-gold-light);
  letter-spacing: 0.3px;
}

.ai-fab-badge {
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Chat Window Panel */
.ai-chat-window {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: 80vh;
  background: rgba(6, 15, 36, 0.95);
  border: 1.5px solid rgba(201, 169, 97, 0.38);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(201, 169, 97, 0.2);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom left;
}

[dir="ltr"] .ai-chat-window {
  left: auto;
  right: 0;
  transform-origin: bottom right;
}

.ai-chat-window.hidden {
  display: none !important;
}

.ai-chat-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(10, 31, 68, 0.95) 0%, rgba(13, 35, 76, 0.95) 100%);
  border-bottom: 1px solid rgba(201, 169, 97, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-chat-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C9A961 0%, #0A1F44 100%);
  border: 1px solid var(--color-gold-light);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-status-dot.online {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #060F24;
}

.ai-chat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.ai-model-badge {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
}

.ai-chat-status {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-chat-header-actions {
  display: flex;
  gap: 6px;
}

.ai-header-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-header-btn:hover {
  background: rgba(201, 169, 97, 0.2);
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

.ai-header-btn i, .ai-header-btn svg {
  width: 15px;
  height: 15px;
}

/* Quick Chips */
.ai-quick-chips-wrapper {
  padding: 10px 14px 6px;
  background: rgba(10, 31, 68, 0.5);
  border-bottom: 1px solid rgba(201, 169, 97, 0.12);
}

.ai-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.ai-quick-chips::-webkit-scrollbar {
  display: none;
}

.ai-chip {
  flex-shrink: 0;
  background: rgba(13, 35, 76, 0.85);
  border: 1px solid rgba(201, 169, 97, 0.25);
  color: var(--color-gold-light);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.ai-chip:hover {
  background: rgba(201, 169, 97, 0.22);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

/* Messages */
.ai-chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(6, 15, 36, 0.4);
}

.ai-msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  animation: fadeIn 0.25s ease;
}

.ai-msg.user {
  align-self: flex-start;
}

[dir="rtl"] .ai-msg.user {
  align-self: flex-start;
}

[dir="ltr"] .ai-msg.user {
  align-self: flex-end;
}

.ai-msg.bot {
  align-self: flex-end;
}

[dir="rtl"] .ai-msg.bot {
  align-self: flex-end;
}

[dir="ltr"] .ai-msg.bot {
  align-self: flex-start;
}

.ai-msg-bubble {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  position: relative;
}

.ai-msg.user .ai-msg-bubble {
  background: linear-gradient(135deg, #152C59 0%, #0A1F44 100%);
  color: #ffffff;
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-bottom-left-radius: 4px;
}

.ai-msg.bot .ai-msg-bubble {
  background: rgba(13, 35, 76, 0.85);
  color: var(--text-primary);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-bottom-right-radius: 4px;
}

.ai-msg-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

/* Embedded Scholarship Card in Bot */
.ai-sch-card {
  margin-top: 8px;
  background: rgba(10, 31, 68, 0.9);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-sch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold-light);
}

.ai-sch-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.ai-sch-btn {
  flex: 1;
  min-width: 110px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.ai-sch-btn:hover {
  background: var(--color-accent);
  color: #060F24;
  border-color: var(--color-accent);
}

.ai-sch-btn.primary {
  background: rgba(201, 169, 97, 0.2);
  border-color: var(--color-accent);
}

/* Typing indicator */
.ai-typing-indicator {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--color-gold-light);
}

.ai-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: bounce 1.2s infinite ease-in-out;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Chat Input */
.ai-chat-input-bar {
  padding: 10px 14px;
  background: rgba(10, 31, 68, 0.95);
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-chat-input-bar input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.ai-chat-input-bar input:focus {
  border-color: var(--color-accent);
}

.ai-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #C9A961 0%, #A68744 100%);
  border: none;
  color: #060F24;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ai-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

.ai-send-btn i, .ai-send-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   1. COMSTECH SMART WHATSAPP APPLICATION FORM
   ========================================================================== */
.comstech-smart-form-card {
  margin-top: 24px;
  background: rgba(4, 12, 28, 0.75);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(201, 169, 97, 0.2);
  position: relative;
  z-index: 2;
}

.comstech-form-header {
  margin-bottom: 20px;
  text-align: right;
}

[dir="ltr"] .comstech-form-header {
  text-align: left;
}

.comstech-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.comstech-form-badge i,
.comstech-form-badge svg {
  width: 13px;
  height: 13px;
}

.comstech-form-header h4 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.comstech-form-header p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.comstech-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.comstech-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comstech-input-group.full-width {
  grid-column: 1 / -1;
}

.comstech-input-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.comstech-input-group label i,
.comstech-input-group label svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.comstech-input-wrap {
  position: relative;
}

.comstech-input-wrap input,
.comstech-input-wrap select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.comstech-input-wrap select {
  cursor: pointer;
  background-color: #0c1a33;
}

.comstech-input-wrap input:focus,
.comstech-input-wrap select:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

.comstech-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

@media (max-width: 860px) {
  .comstech-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   2. TRUST STATS BAR (4 CARDS GRID & VIBRANT STYLING)
   ========================================================================== */
.stats-grid.four-stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-icon-wrapper.stat-gold {
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.25), rgba(201, 169, 97, 0.05));
  border: 1px solid rgba(201, 169, 97, 0.4);
  color: var(--color-gold-light);
}

.stat-icon-wrapper.stat-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--color-accent);
}

.stat-icon-wrapper.stat-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.stat-icon-wrapper.stat-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.stat-number-block .stat-percent {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-gold-light);
  margin-right: 4px;
}

[dir="ltr"] .stat-number-block .stat-percent {
  margin-right: 0;
  margin-left: 4px;
}

@media (max-width: 1024px) {
  .stats-grid.four-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .stats-grid.four-stats {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3. NUMBERED HOW IT WORKS STEPS (١، ٢، ٣، ٤)
   ========================================================================== */
.modern-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.modern-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 20px;
  border-radius: 18px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modern-step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 97, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(201, 169, 97, 0.12);
}

.step-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-circle-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.25), rgba(201, 169, 97, 0.08));
  border: 2px solid var(--color-gold);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  font-family: 'Cairo', var(--font-primary), sans-serif;
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.25);
}

.modern-step-card .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-step-card .step-icon i,
.modern-step-card .step-icon svg {
  width: 20px;
  height: 20px;
}

.modern-step-card h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.modern-step-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex: 1;
}

.step-footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-accent);
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  align-self: flex-start;
}

.step-footer-tag i,
.step-footer-tag svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 1024px) {
  .modern-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .modern-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4. STUDENT TESTIMONIALS SECTION (تجارب وآراء الطلاب)
   ========================================================================== */
.testimonials-section {
  position: relative;
  margin-top: 40px;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.testimonial-card {
  position: relative;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(10, 24, 52, 0.85) 0%, rgba(6, 15, 36, 0.85) 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 169, 97, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 169, 97, 0.12);
}

.testimonial-quote-icon {
  position: absolute;
  top: 18px;
  left: 20px;
  color: var(--color-gold);
  opacity: 0.18;
  pointer-events: none;
}

[dir="ltr"] .testimonial-quote-icon {
  left: auto;
  right: 20px;
}

.testimonial-quote-icon i,
.testimonial-quote-icon svg {
  width: 42px;
  height: 42px;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-rating .star-filled {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  fill: #fbbf24;
}

.rating-score {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-gold-light);
  margin-right: 6px;
  background: rgba(201, 169, 97, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

[dir="ltr"] .rating-score {
  margin-right: 0;
  margin-left: 6px;
}

.testimonial-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 22px 0;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-student-info {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.testimonial-meta .student-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.testimonial-meta .student-major {
  font-size: 11.5px;
  color: var(--color-gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-meta .student-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #34d399;
  font-weight: 700;
  margin-top: 2px;
}

.testimonial-meta .student-badge-verified i,
.testimonial-meta .student-badge-verified svg {
  width: 12px;
  height: 12px;
}

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

.testimonials-grid.two-columns-layout {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1050px;
  margin: 30px auto 0;
}

@media (max-width: 860px) {
  .testimonials-grid.two-columns-layout {
    grid-template-columns: 1fr;
  }
}

.testimonial-example-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(201, 169, 97, 0.15);
  border: 1px dashed rgba(201, 169, 97, 0.4);
  color: var(--color-gold-light);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}

.testimonial-example-tag i,
.testimonial-example-tag svg {
  width: 13px;
  height: 13px;
}

.testimonial-invite-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(201, 169, 97, 0.08) 100%);
  border: 2px dashed rgba(201, 169, 97, 0.35);
}

.invite-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.invite-icon-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.25), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(201, 169, 97, 0.4);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(201, 169, 97, 0.2);
}

.invite-icon-orb i,
.invite-icon-orb svg {
  width: 24px;
  height: 24px;
}

.invite-card-inner h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.invite-card-inner p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 10px 0;
  max-width: 380px;
}

