/**
 * Al Bushra Multi-Portal Design System (Student, Teacher, Parent)
 * Modern Glassmorphic, Mobile-First, Trilingual (Arabic RTL, French LTR, English LTR)
 */

:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  --amber-500: #f59e0b;
  --rose-500: #ef4444;

  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.25);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg-app: #090d16;
  --bg-surface: #111827;
  --bg-surface-glass: rgba(17, 24, 39, 0.85);
  --border-color: #1f293d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

[dir="ltr"] {
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Common Layout Wrapper */
.portal-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphic Navbar */
.portal-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.portal-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.portal-brand-text h2 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}

.portal-brand-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* User Pill & Sibling Switcher */
.user-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

/* Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  transform: translateY(-1px);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  background: var(--border-color);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Dropdowns & Language Switcher */
.dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.btn-icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-icon-pill:hover {
  background: var(--border-color);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.45rem;
  min-width: 180px;
  display: none;
  z-index: 1000;
}
.dropdown-menu.show {
  display: block !important;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: start;
  transition: var(--transition);
}
.dropdown-item:hover, .dropdown-item.active {
  background: var(--primary-50);
  color: var(--primary-700);
}
[data-theme="dark"] .dropdown-item:hover, [data-theme="dark"] .dropdown-item.active {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
}

.lang-flag {
  font-size: 1.1rem;
}
.lang-name {
  flex: 1;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Cards & Layout Container */
.portal-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

.portal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.portal-card:hover {
  box-shadow: var(--shadow-md);
}

.portal-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portal-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

/* Hero Section */
.portal-hero {
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  color: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.portal-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.portal-hero-info h1 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.portal-hero-info p {
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Digital Student Badge (PVC Look & Hologram) */
.student-pvc-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-radius: 16px;
  color: #ffffff;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.4);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  margin: 0 auto;
}

.pvc-hologram-strip {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-25deg);
  animation: hologram-sweep 4s infinite ease-in-out;
}

@keyframes hologram-sweep {
  0% { left: -100%; }
  40% { left: 200%; }
  100% { left: 200%; }
}

.pvc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.pvc-card-body {
  display: flex;
  gap: 16px;
  align-items: center;
}

.pvc-card-avatar {
  width: 76px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #ffffff;
  background: #cbd5e1;
}

.pvc-qr-box {
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Authentication Gateway Form */
.login-split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  margin: 3rem auto;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.login-brand-panel {
  background: linear-gradient(135deg, #1e3a8a, #0369a1);
  color: #ffffff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-form-panel {
  padding: 2.5rem 2.5rem;
}

.role-tabs {
  display: flex;
  background: var(--bg-app);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  gap: 4px;
}

.role-tab-btn {
  flex: 1;
  padding: 0.55rem 0.5rem;
  text-align: center;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.role-tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}

/* Sibling Switcher Bar */
.sibling-pills-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 1.25rem;
}

.sibling-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.sibling-pill.active {
  background: var(--primary-50);
  border-color: var(--primary-600);
  color: var(--primary-700);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  animation: toast-slide 0.3s ease;
}
.toast-success { border-inline-start: 4px solid var(--emerald-500); }
.toast-error { border-inline-start: 4px solid var(--rose-500); }
.toast-info { border-inline-start: 4px solid var(--primary-500); }

@keyframes toast-slide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Real-time Message Popup Toast */
.realtime-msg-popup {
  position: relative;
  background: var(--bg-surface, #ffffff);
  color: var(--text-main, #0f172a);
  border: 1px solid var(--border-color, #e2e8f0);
  border-inline-start: 4px solid var(--primary-600, #2563eb);
  border-radius: var(--radius-lg, 12px);
  padding: 0.9rem 1.15rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  min-width: 320px;
  max-width: 400px;
  cursor: pointer;
  overflow: hidden;
  animation: toast-slide 0.3s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  z-index: 2500;
}

.realtime-msg-popup:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.realtime-msg-popup.fade-out {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.realtime-popup-progress {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  height: 3.5px;
  width: 100%;
  background: linear-gradient(90deg, var(--primary-500, #3b82f6), var(--emerald-500, #10b981));
  animation: shrinkProgress 4s linear forwards;
}

@keyframes shrinkProgress {
  from { width: 100%; }
  to { width: 0%; }
}


@media (max-width: 768px) {
  .login-split-card {
    grid-template-columns: 1fr;
    margin: 1rem;
  }
  .login-brand-panel {
    padding: 2rem 1.5rem;
  }
  .login-form-panel {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   Student Portal Main Grid Layout (Pass on the Right Side)
   ========================================================================== */
#student-main-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* In LTR (English / French), place the Digital Pass Card on the right side */
html[dir="ltr"] #student-main-grid,
body[dir="ltr"] #student-main-grid {
  grid-template-columns: 1fr 360px !important;
}

html[dir="ltr"] #student-pass-column,
body[dir="ltr"] #student-pass-column {
  order: 2 !important;
}

html[dir="ltr"] #student-content-column,
body[dir="ltr"] #student-content-column {
  order: 1 !important;
}

@media (max-width: 992px) {
  #student-main-grid,
  html[dir="ltr"] #student-main-grid,
  body[dir="ltr"] #student-main-grid {
    grid-template-columns: 1fr !important;
  }
  html[dir="ltr"] #student-pass-column,
  body[dir="ltr"] #student-pass-column {
    order: 1 !important;
  }
  html[dir="ltr"] #student-content-column,
  body[dir="ltr"] #student-content-column {
    order: 2 !important;
  }
}

/* ==========================================================================
   Multi-Portal Dashboard Architecture (Sidebar & Multi-Page Views)
   Matching Administration Dashboard Theme (#0f172a Deep Slate & Smooth Collapse)
   ========================================================================== */
.portal-app-wrapper {
  display: flex;
  min-height: calc(100vh - 65px);
  width: 100%;
}

.portal-sidebar {
  width: 260px;
  background: #0f172a;
  color: #f8fafc;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 40;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-sidebar-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.portal-sidebar-header .brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.portal-sidebar-header .brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
}

.portal-sidebar-header .brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.portal-sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.portal-sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.portal-sidebar-nav {
  padding: 1rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.portal-nav-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  padding: 0.65rem 0.75rem 0.2rem;
  white-space: nowrap;
}

.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.86rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: start;
  width: 100%;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.portal-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.portal-nav-item:hover i {
  color: #38bdf8;
}

.portal-nav-item.active {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700)) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.portal-nav-item.active i {
  color: #ffffff !important;
}

.portal-nav-item i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #94a3b8;
  transition: var(--transition);
}

.portal-nav-item .nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-nav-item .portal-badge {
  margin-inline-start: auto;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
}

/* ==========================================================================
   Sidebar Collapsed Mode (Desktop Mini-Sidebar / Icon-Only 76px)
   ========================================================================== */
.portal-sidebar.collapsed {
  width: 76px !important;
}

.portal-sidebar.collapsed .brand-info,
.portal-sidebar.collapsed .nav-label,
.portal-sidebar.collapsed .portal-badge,
.portal-sidebar.collapsed .portal-nav-section-title {
  display: none !important;
}

.portal-sidebar.collapsed .portal-sidebar-header {
  padding: 0 0.5rem;
  justify-content: center;
}

.portal-sidebar.collapsed .portal-sidebar-header .brand-logo img {
  margin: 0 auto;
}

.portal-sidebar.collapsed .portal-sidebar-toggle-btn {
  transform: rotate(180deg);
}

.portal-sidebar.collapsed .portal-nav-item {
  justify-content: center;
  padding: 0.8rem 0;
  width: 100%;
}

.portal-sidebar.collapsed .portal-nav-item i {
  margin: 0;
  width: 22px;
  height: 22px;
}

/* Main Area */
.portal-main-area {
  flex: 1;
  min-width: 0;
  padding: 1.75rem;
  background: var(--bg-app);
  overflow-y: auto;
}

.portal-view {
  display: none;
  animation: portalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-view.active {
  display: block;
}

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

.portal-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.portal-sidebar-toggle:hover {
  background: var(--border-color);
}

.portal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 90;
}

.portal-backdrop.show {
  display: block !important;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization (< 960px)
   ========================================================================== */
@media (max-width: 960px) {
  .portal-sidebar-toggle {
    display: inline-flex;
  }

  .portal-sidebar {
    position: fixed;
    top: 65px;
    inset-inline-start: 0;
    bottom: 0;
    height: calc(100vh - 65px);
    z-index: 100;
    transform: translateX(100%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    width: 270px !important;
  }

  html[dir="ltr"] .portal-sidebar,
  body[dir="ltr"] .portal-sidebar {
    transform: translateX(-100%);
  }

  .portal-sidebar.open,
  .portal-sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .portal-sidebar.collapsed {
    width: 270px !important;
  }

  .portal-sidebar.collapsed .brand-info,
  .portal-sidebar.collapsed .nav-label,
  .portal-sidebar.collapsed .portal-badge,
  .portal-sidebar.collapsed .portal-nav-section-title {
    display: flex !important;
  }

  .portal-sidebar.collapsed .portal-nav-item {
    justify-content: flex-start;
    padding: 0.7rem 0.9rem;
  }

  .portal-main-area {
    padding: 1rem 0.85rem;
  }

  .portal-hero {
    padding: 1.25rem !important;
  }

  .portal-card-header {
    padding: 1rem !important;
  }

  .portal-card-body {
    padding: 1rem !important;
  }
}

@media (max-width: 600px) {
  .user-portal-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.78rem;
  }

  .portal-brand-text h2 {
    font-size: 0.95rem;
  }

  .portal-brand-text span {
    font-size: 0.68rem;
  }
}

/* Universal Phone Number LTR Enforcement (BiDi Arabic Inversion Fix) */
a[href^="tel:"],
.contact-phone-text,
.phone-number,
.phone-val,
.phone-text,
.student-phone,
.parent-phone,
.badge-parent-phone,
#badge-parent-phone,
#profile-phone,
#profile-parent-phone,
#nav-parent-phone,
#hero-teacher-phone,
.ltr-phone,
.phone,
[data-phone] {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block;
  text-align: left;
}

[dir="rtl"] a[href^="tel:"],
[dir="rtl"] .contact-phone-text,
[dir="rtl"] .phone-number,
[dir="rtl"] .phone-val,
[dir="rtl"] .phone-text,
[dir="rtl"] .student-phone,
[dir="rtl"] .parent-phone,
[dir="rtl"] .badge-parent-phone,
[dir="rtl"] #badge-parent-phone,
[dir="rtl"] #profile-phone,
[dir="rtl"] #profile-parent-phone,
[dir="rtl"] #nav-parent-phone,
[dir="rtl"] #hero-teacher-phone,
[dir="rtl"] .ltr-phone,
[dir="rtl"] .phone,
[dir="rtl"] [data-phone] {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block;
  text-align: left;
}



