:root {
  --gold: #cda02a;
  --gold-light: #e8c96a;
  --gold-dark: #8b6316;
  --gold-rgb: 205, 160, 42;
  --cream: #fcfdf5;
  --cream-warm: #fbf4e4;
  --cream-section: #faf8f0;
  --navy: #1a3c6e;
  --text-dark: #2c2c2c;
  --text-muted: #6c757d;
  --footer-bg: #1a1a1a;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
}

#mainNav {
  --bs-navbar-color: var(--gold) !important;
  --bs-navbar-hover-color: var(--gold-light) !important;
  --bs-navbar-nav-link-padding-x: 1rem !important;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

@media (min-width: 992px) {
  #mainNav {
    --bs-navbar-color: var(--navy) !important;
    --bs-navbar-hover-color: var(--gold) !important;
    box-shadow: none;
    background-color: transparent;
  }
}

#mainNav .nav-link {
  color: var(--gold) !important;
  font-weight: 600;
  position: relative;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

#mainNav .nav-link:hover::after {
  width: 70%;
  left: 15%;
}

@media (min-width: 992px) {
  #mainNav .nav-link {
    color: var(--navy) !important;
  }
  #mainNav .nav-link:hover {
    color: var(--gold) !important;
  }
  #mainNav .nav-link-cta {
    color: #fff !important;
  }
}

.navbar-shrink {
  --bs-navbar-color: var(--text-dark) !important;
  --bs-navbar-hover-color: var(--gold) !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  color: var(--text-dark);
  width: 100%;
  height: 100%;
}

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.skip-to-content:focus {
  top: 0;
}

.page-section {
  padding: 8rem 0;
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn-gold:hover::before,
.btn-gold:focus::before {
  width: 300px;
  height: 300px;
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--gold-rgb), 0.5), 0 4px 10px rgba(var(--gold-rgb), 0.3);
}

.btn-outline-gold {
  color: var(--gold-dark);
  border: 2px solid var(--gold);
  background: transparent;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

@media (min-width: 992px) {
  #mainNav .navbar-nav .nav-item .nav-link {
    color: var(--navy) !important;
  }
  #mainNav .navbar-nav .nav-item .nav-link:hover {
    color: var(--gold) !important;
  }
  #mainNav .nav-link-cta {
    color: #fff !important;
  }
}

@media (max-width: 991px) {
  #mainNav .navbar-nav {
    background: #fff;
    padding: 1rem;
    border-radius: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-sm);
  }
  #mainNav .navbar-nav .nav-item .nav-link {
    color: var(--text-dark) !important;
  }
  #mainNav .navbar-nav .nav-item .nav-link:hover {
    color: var(--gold) !important;
  }
  #mainNav .nav-link-cta {
    background: var(--gold) !important;
    color: #fff !important;
    margin: 0.5rem 0;
  }
  #mainNav .nav-link::after {
    display: none;
  }
  .navbar-collapse {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
  }
}

.navbar-shrink {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.navbar-shrink .navbar-brand span {
  color: var(--gold-dark) !important;
  text-shadow: none;
}

.navbar-shrink .nav-link {
  color: var(--text-dark) !important;
}

.navbar-shrink .nav-link:hover {
  color: var(--gold) !important;
}

.navbar-shrink .nav-link-cta {
  background: var(--gold);
  color: #fff !important;
}

@media (min-width: 992px) {
  #mainNav.navbar-shrink {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #fff;
  }
  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link {
    color: var(--text-dark) !important;
  }
  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover {
    color: var(--gold) !important;
  }
}

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

.navbar-brand img {
  height: 48px;
  width: auto;
  transition: height var(--transition);
}

.navbar-shrink .navbar-brand img {
  height: 40px;
}

.navbar-brand span {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  max-width: 14rem;
}

@media (max-width: 991px) {
  .navbar-brand span {
    display: none;
  }
  #mainNav .nav-link {
    color: var(--gold);
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition);
  }
  #mainNav .nav-link:hover {
    color: var(--gold-light);
  }
}

.nav-link-cta {
  background: rgba(var(--gold-rgb), 0.15);
  border-radius: 2rem;
  margin-inline-start: 0.25rem;
}

.nav-link-cta:hover {
  background: var(--gold) !important;
  color: #fff !important;
}

.lang-pill {
  border: 2px solid var(--gold);
  border-radius: 2rem;
  padding: 0.35rem 1rem !important;
  min-width: 3rem;
  text-align: center;
}

.lang-pill:hover {
  background: var(--gold);
  color: #fff !important;
}

header.masthead {
  position: relative;
  overflow: hidden;
  padding-top: 10rem;
  padding-bottom: 6rem;
  background:
    linear-gradient(135deg, rgba(252, 253, 245, 0.92) 0%, rgba(229, 192, 118, 0.75) 50%, rgba(251, 244, 228, 0.9) 100%),
    url("../img/Background.webp") center / cover no-repeat !important;
  min-height: 100vh;
}

header.masthead::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 5%) scale(1.1); }
}

header.masthead::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.3));
  pointer-events: none;
}

.hero-logo {
  width: clamp(100px, 18vw, 160px);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

header.masthead h1 {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease forwards;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  margin-bottom: 0.5rem;
}

header.masthead .hero-brand {
  background: linear-gradient(135deg, var(--navy) 0%, var(--gold-dark) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.75rem;
}

.hero-tagline {
  background: linear-gradient(90deg, var(--navy), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
  color: var(--navy);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

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

header.masthead .btn-xl {
  padding: 0.85rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.35);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-dark);
  font-size: 1.5rem;
  opacity: 0.6;
  z-index: 2;
}

.scroll-indicator i {
  animation: bounceDown 2s infinite, fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.section-title {
  background: linear-gradient(135deg, var(--navy) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 auto;
}

.divider {
  max-width: 4rem;
  border-width: 0.2rem;
  border-color: var(--gold);
  margin: 1rem auto 1.5rem;
  opacity: 1;
}

.divider-light {
  border-color: #fff;
}

#about {
  position: relative;
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../img/Al-Muhallab_Executive_Medical_Dossier_Page_01_Image_0001.webp") center / cover no-repeat;
  padding: 6rem 0;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

#about h2 {
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  display: block;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

#about p {
  color: #fff !important;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  text-align: justify;
  max-width: 65ch;
  margin: 0 auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

#subsidiaries {
  background: linear-gradient(180deg, var(--cream-section) 0%, var(--cream-warm) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

#subsidiaries::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border: 40px solid var(--gold);
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}

#subsidiaries::after {
  content: '';
  position: absolute;
  bottom: 50px;
  left: -50px;
  width: 150px;
  height: 150px;
  background-image: radial-gradient(var(--gold) 2px, transparent 2px);
  background-size: 12px 12px;
  opacity: 0.06;
  pointer-events: none;
}

.subsidiary-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s ease;
  background: #fff;
  position: relative;
}

.subsidiary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.subsidiary-card:hover::before {
  opacity: 1;
  animation: shimmer 2s infinite linear;
}

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

.subsidiary-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(var(--gold-rgb), 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .subsidiary-card:hover {
    transform: translateY(-5px);
  }
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img-wrap img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.subsidiary-card:hover .card-img-wrap img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.subsidiary-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  text-align: center;
}

.subsidiary-card .card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--gold);
  text-align: center;
}

.subsidiary-card .card-teaser {
  flex: 1;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  text-align: center;
}

.subsidiary-card .btn-read-more {
  align-self: flex-start;
  border-radius: 2rem;
  padding: 0.4rem 1.25rem;
  font-size: 0.9rem;
}

.apply-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(26, 60, 110, 0.85), rgba(0, 0, 0, 0.7)),
    url("../img/Al-Muhallab_Executive_Medical_Dossier_Page_20_Image_0001.webp") center / cover no-repeat;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.apply-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(var(--gold-rgb), 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.apply-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
  text-align: justify;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.apply-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 50ch;
  text-align: justify;
}

.apply-banner .btn-gold {
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(var(--gold-rgb), 0.4);
}

#contact {
  background: #fff;
  padding: 5rem 0;
}

.contact-panel {
  background: linear-gradient(145deg, var(--cream-section) 0%, var(--cream-warm) 100%);
  border: 1px solid rgba(var(--gold-rgb), 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.contact-row:hover {
  background: rgba(var(--gold-rgb), 0.08);
  border-color: rgba(var(--gold-rgb), 0.2);
  color: inherit;
  transform: translateX(5px);
}

[dir="rtl"] .contact-row:hover {
  transform: translateX(-5px);
}

.contact-row h6 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-row p {
  margin: 0;
  color: var(--text-muted);
}

.bs-icon {
  --bs-icon-size: 0.75rem;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-size: var(--bs-icon-size);
  width: calc(var(--bs-icon-size) * 2);
  height: calc(var(--bs-icon-size) * 2);
  color: #fff;
}

.bs-icon-rounded {
  border-radius: 0.75rem;
}

.bs-icon-primary {
  background: var(--gold);
}

.bs-icon-md {
  --bs-icon-size: 1.25rem;
}

.bs-icon svg {
  fill: currentColor;
  width: 1em;
  height: 1em;
}

.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(var(--gold-rgb), 0.2);
}

#location-detail {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

#address-detail-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
}

.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
  background: linear-gradient(135deg, var(--navy), #2e5e9e);
  color: #fff;
  border: none;
  padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
  line-height: 1.8;
  color: var(--text-dark);
}

.modal-body strong {
  color: var(--navy);
}

.site-footer {
  background: linear-gradient(180deg, var(--footer-bg) 0%, #0f0f0f 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold), var(--gold-dark));
  background-size: 200% 100%;
  animation: footerShimmer 4s linear infinite;
}

@keyframes footerShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.site-footer h6 {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(var(--gold-rgb), 0.3));
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 22rem;
  text-align: justify;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '\203A';
  position: absolute;
  left: -15px;
  opacity: 0;
  color: var(--gold);
  transition: opacity 0.3s ease, left 0.3s ease;
}

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

.footer-links a:hover {
  color: var(--gold);
  padding-left: 15px;
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--gold);
  margin-top: 0.15rem;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1.5rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.preloader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  width: 80px;
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e9ecef;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

[dir="rtl"] body,
[dir="rtl"] p,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] li,
[dir="rtl"] span,
[dir="rtl"] a,
[dir="rtl"] div,
[dir="rtl"] label,
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] button {
  font-family: 'Cairo', sans-serif !important;
}

[dir="rtl"] .ms-auto {
  margin-left: 0 !important;
  margin-right: auto !important;
}

[dir="rtl"] .navbar-nav {
  align-items: flex-start;
}

[dir="rtl"] .subsidiary-card .card-teaser {
  text-align: center;
}

[dir="rtl"] .subsidiary-card .card-title {
  text-align: center;
}

[dir="rtl"] .modal-body {
  text-align: justify;
}

[dir="rtl"] #address-detail-text {
  text-align: center;
}

[dir="rtl"] #about p {
  text-align: justify;
}

[dir="rtl"] .apply-banner p {
  text-align: justify;
}

.footer-social-links {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  margin-top: 15px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--gold-rgb), 0.15);
  color: var(--gold);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(var(--gold-rgb), 0.4);
}

@media (max-width: 991px) {
  .footer-social-links {
    justify-content: center;
  }
  .footer-social-link {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
