/*
type: uploaded file
fileName: custom.css
*/
html,
body {
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scroll {
  overflow: hidden;
}

/* --- MAIN HEADER BASE STYLES --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 0;
  padding: 0;
}

/* Floating Pill Animation Base */
.main-header.floating {
  top: 20px;
}

/* ----------------------------------------------------
   Two-Column Dropdown 
   ---------------------------------------------------- */
@media (min-width: 992px) {
  .dropdown-menu.dropdown-2cols {
    min-width: 350px;
    max-width: fit-content;
    grid-template-columns: repeat(2, 1fr);
    gap: 5;
    padding: 15px;
    max-height: 70vh;
    overflow-y: auto;
  }

  .dropdown-menu.dropdown-2cols.show,
  .navbar-nav .dropdown:hover > .dropdown-menu.dropdown-2cols {
    display: grid !important;
  }

  .dropdown-menu.dropdown-2cols::-webkit-scrollbar {
    width: 4px;
  }
  .dropdown-menu.dropdown-2cols::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
  }
}

/* Reset navbar-collapse for desktop first */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    align-items: center;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    height: auto !important;
    width: auto !important;
  }

  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    display: flex !important;
  }
}

/* Mobile Navbar Improvements */
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    padding: 80px 20px 20px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
      opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .navbar-collapse.collapsing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1050;
    padding: 80px 20px 20px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: none;
  }

  .navbar-collapse.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-header {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    min-width: 100%;
    border-radius: 0;
    padding: 0;
  }

  .main-header .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .navbar-nav {
    width: 100%;
    text-align: center;
    gap: 5px;
  }

  .navbar-nav .nav-link {
    color: #112127 !important;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: var(--color-primary) !important;
    background: transparent;
  }

  .auth-actions {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    flex-direction: column;
  }
  .auth-actions .btn {
    width: 100%;
    max-width: 250px;
  }

  .navbar-toggler {
    z-index: 1100;
    border-color: transparent !important;
  }
  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-brand {
    z-index: 1100;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }
}

/* Footer Styles */
.site-footer {
  background-color: #112127;
  padding-top: 80px;
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 10% 10%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(255, 255, 255, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.footer-heading {
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-primary, #0088cc);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(-5px);
}

.contact-info a {
  font-family: 'Cairo', sans-serif;
}

.social-icons .icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-icons .icon:hover {
  background: var(--color-primary, #0088cc);
  transform: translateY(-3px);
  color: #fff;
}

.border-white-10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Component Flip Card Styles */
.component-card {
  perspective: 1000px;
  cursor: pointer;
  height: 400px;
  position: relative;
  z-index: 1;
}

.component-flip {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

.component-flip.flipped {
  transform: rotateY(180deg);
}

.component-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  top: 0;
  left: 0;
}

.component-face.front {
  display: flex;
  flex-direction: column;
  z-index: 2;
  transform: rotateY(0deg);
}

.component-face.back {
  background: #112127;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 1;
}

.component-flip.flipped .component-face.front {
  z-index: 1;
}
.component-flip.flipped .component-face.back {
  z-index: 2;
}

.component-image {
  height: 200px;
  overflow: hidden;
  width: 100%;
}

.component-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.component-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.component-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #112127;
}

.component-face.back .component-title {
  color: #fff;
  border-bottom: 2px solid var(--color-primary, #0088cc);
  padding-bottom: 10px;
  display: inline-block;
}

.component-desc {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.component-link {
  color: var(--color-primary, #0088cc);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.component-link:hover {
  text-decoration: underline;
}

/* Navbar & Dropdown Styling */
.navbar-nav .nav-link {
  font-weight: 600;
  transition: color 0.3s ease;
}

.dropdown-menu {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  background-color: rgba(17, 33, 39, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 0px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateX(-5px);
}

.navbar-nav .dropdown-menu {
  top: 100%;
  left: auto;
}

@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }

  .navbar-nav .dropdown-menu {
    display: none;
    margin-top: 0;
  }
}

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

.dropdown-menu .dropdown-submenu {
  position: relative;
}

.dropdown-menu .dropdown-submenu > .dropdown-menu {
  top: 0;
  right: 100%;
  margin-top: -5px;
  margin-right: 5px;
  display: none;
  max-height: 50vh;
  overflow-y: auto;
  min-width: 250px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
  display: block;
  animation: fadeInRight 0.3s ease forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dropdown-item.dropdown-toggle::after {
  content: '';
  display: inline-block;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  padding: 3px;
  transform: rotate(45deg);
  margin-right: auto;
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.6;
  transition: all 0.2s;
}

.dropdown-item.dropdown-toggle:hover::after {
  opacity: 1;
  transform: rotate(45deg) translateX(-3px);
}

/* Mega Menu */
.navbar-nav .nav-item.dropdown.mega-dropdown {
  position: static;
}

@media (min-width: 992px) {
  .dropdown-menu.mega-menu {
    width: 650px;
    left: auto;
    right: 0;
    padding: 0;
    overflow: hidden;
    background-color: rgba(17, 33, 39, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    display: none;
    margin-top: 0px;
  }

  .navbar-nav .nav-item.mega-dropdown:hover > .dropdown-menu.mega-menu {
    display: flex;
    animation: fadeInUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  }
}

.mega-menu-row {
  display: flex;
  width: 100%;
}

.mega-column {
  flex: 1;
  padding: 25px;
  position: relative;
}

.mega-column:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
}

.mega-header {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mega-header::before {
  content: '';
  display: block;
  width: 4px;
  height: 20px;
  background-color: var(--color-primary, #0088cc);
  border-radius: 4px;
}

.mega-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-list li {
  margin-bottom: 8px;
}

.mega-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  background: transparent;
}

.mega-menu .dropdown-item:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-5px);
  padding-right: 18px;
}

.mega-menu .dropdown-item::before {
  content: '•';
  margin-left: 8px;
  color: var(--color-primary, #0088cc);
  font-weight: bold;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.mega-menu .dropdown-item:hover::before {
  opacity: 1;
}

.mega-menu .scrollable-list {
  max-height: 400px;
  overflow-y: auto;
  padding-left: 10px;
}

.mega-menu .scrollable-list::-webkit-scrollbar {
  width: 4px;
}
.mega-menu .scrollable-list::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.mega-menu .scrollable-list::-webkit-scrollbar-track {
  background: transparent;
}

@media (min-width: 992px) {
  .dropdown-menu.dropdown-2cols {
    min-width: 430px;
    max-width: 90vw;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 20px;
  }

  .dropdown-menu.dropdown-2cols.show,
  .navbar-nav .dropdown:hover > .dropdown-menu.dropdown-2cols {
    display: grid !important;
  }

  .dropdown-menu.dropdown-2cols > li {
    width: 100%;
    max-width: 90vw;
    margin-bottom: 0;
  }
}

/* Hero Section */
.article-hero {
  height: 65vh;
  min-height: 550px;
  background-color: #0d1e3a;
  overflow: hidden;
  position: relative;
}

.hero-compact {
  height: 50vh;
  min-height: 450px;
}

.hero-compact .container {
  padding-top: 120px;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  animation: kenburns 25s infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.15);
  }
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(13, 30, 58, 0.9) 0%,
    rgba(26, 60, 64, 0.5) 40%,
    rgba(32, 151, 156, 0.9) 100%
  );
  z-index: 1;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.meta-divider {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.news-pro-content {
  font-family: 'Cairo', sans-serif;
  font-size: 1.15rem;
  line-height: 1.9;
  color: #334155;
}

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

.letter-spacing-2 {
  letter-spacing: 2px;
}

.social-btn-minimal {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  transition: all 0.2s;
  text-decoration: none !important;
}

.social-btn-minimal:hover {
  transform: translateY(-2px);
  color: #fff;
}

.social-btn-minimal.twitter:hover {
  background: #000;
}
.social-btn-minimal.facebook:hover {
  background: #1877f2;
}
.social-btn-minimal.whatsapp:hover {
  background: #25d366;
}

.comment-bubble-wrapper {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.comment-avatar {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comment-bubble {
  background: #f8fafc;
  padding: 1.25rem;
  border-radius: 18px;
  border-top-right-radius: 2px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-user {
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}

.comment-date {
  font-size: 0.8rem;
  color: #94a3b8;
}

.comment-text {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hover-lift {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-lift:hover {
  transform: translateY(-4px);
}

.popup-hover {
  transition: all 0.3s ease;
}
.popup-hover:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-5px);
}

.form-control:focus {
  background-color: #fff !important;
  box-shadow: 0 0 0 4px rgba(32, 151, 156, 0.15) !important;
}

.form-floating > label {
  right: 0;
  left: auto;
  transform-origin: 100% 0;
  padding-right: 1.2rem;
}

.btn-submit-gradient {
  background: linear-gradient(45deg, #1a3c40, #20979c);
  border: none;
  color: #fff;
  transition: all 0.3s ease;
}
.btn-submit-gradient:hover {
  background: linear-gradient(45deg, #20979c, #1a3c40);
  box-shadow: 0 10px 20px rgba(32, 151, 156, 0.3);
  color: #fff;
}

.force-transparent-header .main-header {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.force-transparent-header body {
  padding-top: 0 !important;
}
.force-transparent-header .header-shadow {
  display: none !important;
}
.force-transparent-header .navbar .nav-link {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.force-transparent-header .navbar .nav-link:hover {
  color: var(--color-accent) !important;
}
.force-transparent-header .logo.brand-default {
  display: block !important;
  filter: brightness(0) invert(1) !important;
}
.force-transparent-header .logo.brand-floating {
  display: none !important;
}

.pagination-container {
  display: flex;
  justify-content: center;
  direction: ltr;
  margin-top: 40px;
}

.pagination-container .pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination-container .page-item .page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--color-dark);
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  background: #fff;
}

.pagination-container .page-item .page-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-dark);
}

.pagination-container .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(32, 151, 156, 0.3);
}

/* .scroll-to-top {
  position: fixed !important;
  bottom: 15px;
  right: 15px;
  z-index: 999;
  display: none !important;
}

.scroll-to-top.visible {
  display: block !important;
} */

/* -------------------------------------------------------------------------
   NAVBAR SPACING FIX & DOCUMENTATION (2026)
   1. Static Header: Using Flexbox for tight Logo-Menu spacing.
   2. Floating Header: Pills style for scrolled state.
------------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* --- 1. Static Header (Top of Page) --- */
  .main-header:not(.floating) .navbar .container {
    display: flex; /* Flexbox allows precise control over side-by-side element gaps */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 98% !important;
    margin: 0 auto;
    padding: 0 20px;
    gap: 30px; /* Reduced gap to bring Logo and Menu closer */
  }

  /* Right Side: Logo Branding */
  .main-header:not(.floating) .navbar-brand {
    flex-shrink: 0;
    margin: 0 !important;
    padding: 10px 0;
  }

  .main-header:not(.floating) .navbar-brand img {
    height: 45px !important;
    width: auto !important;
    object-fit: contain;
  }

  /* Center Side: Navigation Menu */
  .main-header:not(.floating) .navbar-collapse {
    display: flex !important;
    justify-content: center;
    flex-grow: 1; /* Occupies the middle ground between Logo and Auth buttons */
  }

  .main-header:not(.floating) .navbar-nav {
    flex-direction: row;
    gap: 10px; /* Spacing between menu items */
    margin: 0 !important;
  }

  .main-header:not(.floating) .nav-link {
    font-size: 1rem;
    padding: 8px 12px !important;
    white-space: nowrap;
  }

  /* Left Side: Auth & Donate Buttons */
  .main-header:not(.floating) .auth-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
  }

  /* --- 2. Floating Header (On Scroll) --- */
  .main-header.floating {
    width: 100%;
    left: 0;
    right: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    display: flex;
    justify-content: center;
  }

  .main-header.floating .navbar {
    width: fit-content;
    max-width: 95vw;
    margin: 0;
    padding: 8px 25px;
    background: rgba(10, 10, 18, 0.06); /* Frosted Glass Look */
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    pointer-events: auto;
  }

  .main-header.floating .navbar .container {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0;
    width: auto;
  }

  .main-header.floating .navbar-brand img {
    height: 35px !important;
  }

  .main-header.floating .nav-link {
    font-size: 0.9rem;
    white-space: nowrap;
    padding: 5px 10px;
  }
}

/* RTL Dropdown logic for Arabic support */
[direction='rtl'] .navbar-nav .dropdown-menu {
  right: 0;
  left: auto;
  text-align: right;
  transform-origin: top right;
}

/* Override Bootstrap text-primary to match Brand Identity */
.text-primary {
  color: var(--color-primary) !important;
}

/* Ensure hover states for links using text-primary also match */
a.text-primary:hover,
a.text-primary:focus {
  color: var(--color-secondary) !important;
}

/* Footer Creative Extras */
.hover-scale {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.hover-scale:hover {
  transform: scale(1.15) rotate(5deg);
}
.hover-white:hover {
  color: #fff !important;
  padding-right: 5px;
  transition: all 0.3s ease;
}
.site-footer .icon-box {
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.site-footer .logo-circle {
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

/* Override Bootstrap border-primary to match Brand Identity */
.border-primary {
  border-color: var(--color-primary) !important;
}

/* Footer Final Fixes */
.border-identity {
  border-color: #20979c !important;
}
.text-identity {
  color: #20979c !important;
}
.footer-heading::after {
  display: none !important; /* Remove old pseudo-element line if present */
}
/* Hide generic Scroll to Top button */
#scrollTop,
.scroll-to-top,
.scroll-top,
.back-to-top {
  display: none !important;
}
