/********** Template CSS **********/

:root {
  /* =========================================
     1. ألوان الهوية الأساسية مدمجة في متغيرات النظام
     ========================================= */
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  /* ترك كما هو لرسائل الخطأ */
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  /* ترك كما هو للتحذيرات */

  --bs-green: #249AA0;
  /* تم استبداله بالأخضر الرسمي للهوية */
  --bs-teal: #043664;
  /* تم استبداله بالأزرق المخضر الرسمي */
  --bs-cyan: #249AA0;
  /* تم استبداله بالدرجة الفاتحة الرسمية */

  --bs-white: #fff;
  --bs-gray: #249AA0;
  /* رمادي مزرق يتناسب مع الهوية */
  --bs-gray-dark: #02203d;
  /* درجة داكنة رسمية */

  /* =========================================
     2. ألوان النسق (Theme Colors) والتطبيقات
     ========================================= */
  --bs-primary: #043664;
  /* اللون الأساسي للموقع والأزرار */
  --bs-secondary: #249AA0;
  /* اللون الثانوي والعناصر غير النشطة */
  --bs-success: #E79FA0;
  /* لون النجاح والنمو (السهم الأخضر) */
  --bs-info: #249AA0;
  /* لون المعلومات والتفاصيل */
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bg-danger: #fef4f9;
  --bs-light: #EFF9FE;
  /* خلفية هادئة ورسمية بدلاً من الأبيض الصارخ */
  --bs-dark: #011122;
  /* لون النصوص الأساسية المريحة للعين */

  /* =========================================
     3. الخطوط والتدرج الافتراضي
     ========================================= */
  --bs-font-sans-serif:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace:
    SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  --bs-gradient: linear-gradient(135deg,
      var(--bs-primary),
      var(--bs-success));
  /* تدرج الهوية المدمج */

  /* =========================================
     4. المتغيرات المضافة: درجات الهوية الكاملة
     ========================================= */
  /* درجات الأزرق المخضر (Teal/Navy) */
  --color-teal-900: #011122;
  --color-teal-700: #02203d;
  --color-teal-500: #043664;
  --color-teal-300: #249AA0;
  --color-teal-200: #7eb0c4;
  --color-teal-100: #d2e4eb;
  --color-teal-50: #EFF9FE;

  /* درجات الأخضر (Emerald Green) */
  --color-green-900: #965253;
  --color-green-700: #c77d7e;
  --color-green-500: #E79FA0;
  --color-green-300: #62b598;
  --color-green-100: #d6ece3;
  --color-green-50: #eff6f3;

  /* التدرجات الخطية الرسمية (Gradients) */
  --gradient-primary: linear-gradient(135deg,
      var(--color-teal-500),
      var(--color-green-500));
  --gradient-dark: linear-gradient(135deg,
      var(--color-teal-700),
      var(--color-green-700));
  --gradient-light: linear-gradient(135deg,
      var(--color-teal-50),
      var(--color-green-50));
  /* نسخة شفافة بنسبة 75% لتمرير المحتوى الخلفي */
  --gradient-primary-transparent: linear-gradient(135deg,
      rgba(4, 54, 100, 0.75),
      rgba(231, 159, 160, 0.75));
}

a {
  text-decoration: none;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.text-green {
  color: var(--bs-green) !important;
}

.text-primary-light {
  color: var(--color-teal-200) !important;
}

.text-green-light {
  color: var(--color-green-300) !important;
}

.bg-green-light {
  background: var(--color-green-300) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%) !important;
}

.btn-primary {
  color: #fff !important;
  background: var(--gradient-primary) !important;
  border-color: var(--bs-primary) !important;
}

.btn-primary:hover { background-color: #E79FA0 !important; border-color: #E79FA0 !important; color: #fff !important; }

.btn-outline-primary {
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.btn-outline-primary:hover {
  color: #fff !important;
  background: var(--gradient-primary) !important;
  border-color: var(--bs-primary) !important;
}

body {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-6 {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 99;
}

.fw-medium {
  font-weight: 500;
}

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0.5s;
  z-index: 99999;
}

#spinner.show {
  transition:
    opacity 0.5s ease-out,
    visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}

/*** Button ***/
.btn {
  transition: 0.5s;
  font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
  color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
  color: var(--bs-dark);
}

.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  font-weight: normal;
}

.icon-box-primary,
.icon-box-light {
  position: relative;
  padding: 0 0 10px 10px;
  z-index: 1;
}

.icon-box-primary i,
.icon-box-light i {
  font-size: 60px;
  line-height: 0;
}

.icon-box-primary::before,
.icon-box-light::before {
  position: absolute;
  content: "";
  width: 35px;
  height: 35px;
  left: 0;
  bottom: 0;
  border-radius: 35px;
  transition: 0.5s;
  z-index: -1;
  display: none;
}

.icon-box-primary::before {
  background: var(--bs-green);
}

.icon-box-light::before {
  background: var(--bs-light);
}

.service-icon {
  color: var(--bs-green);
}

.service-icon:hover {
  color: var(--bs-light);
}

/*** Navbar ***/
.sticky-top {
  top: -100px;
  transition: 0.5s;
}

.sticky-top.bg-white {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sticky-top.bg-white .navbar {
  background-color: transparent !important;
}

/* =========================================
   Logo Image Styles (أحجام الشعارات)
   ========================================= */
.logo-img {
  height: 55px;
  /* حجم الشعار في شريط التنقل للموبايل */
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo2-img {
  height: 70px;
  /* حجم الشعار الرئيسي في شاشة الكمبيوتر */
  width: auto;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* تأثيرات حركية بسيطة عند تمرير الماوس */
.logo-img:hover,
.logo2-img:hover {
  transform: scale(1.02);
}

/* تصغير الأحجام في الشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .logo-img {
    height: 50px;
  }

  .logo2-img {
    height: 70px;
  }
}

.navbar .navbar-nav .nav-link {
  margin-right: 35px;
  padding: 18px 0;
  color: var(--bs-dark);
  font-size: 16px;
  font-weight: 500;
  outline: none;
  position: relative;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--bs-primary);
}

.navbar .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--bs-primary);
  border-radius: 4px;
}

.navbar .dropdown-toggle::after {
  border: none;
  content: "\F229";
  font-family: "bootstrap-icons";
  vertical-align: middle;
  margin-right: 8px;
}

@media (max-width: 991.98px) {
  .navbar-toggler {
    padding: 4px 8px;
    font-size: 14px;
  }

  .navbar .navbar-nav .nav-link {
    margin-right: 0;
    padding: 8px 0;
    font-size: 15px;
  }

  .navbar .navbar-nav {
    margin-top: 10px;
    border-top: 1px solid var(--color-teal-100);
  }

  /* Swap logo (left) and toggler (right) on mobile */
  .navbar .navbar-brand.d-lg-none {
    order: 2;
    margin-left: 0;
  }

  .navbar .navbar-toggler {
    order: 1;
    margin-right: 0;
    background: var(--color-teal-50);
    color: var(--color-teal-300);
  }

  .navbar .navbar-collapse {
    order: 3;
  }
}

@media (min-width: 992px) {
  .sticky-top {
    margin-top: -34px;
  }

  .navbar {
    height: 68px;
  }

  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    margin-top: 0;
    top: 150%;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
  }

  .navbar .nav-item:hover .dropdown-menu {
    top: 100%;
    visibility: visible;
    transition: 0.5s;
    opacity: 1;
  }
}

/* Navbar Search Area */
.nav-search-container {
  display: flex;
}

.nav-search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  background: var(--color-teal-50);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  visibility: hidden;
}

.nav-search-input.active {
  width: 180px;
  opacity: 1;
  padding: 6px 16px;
  visibility: visible;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/*** Hero Header ***/
.hero-header {
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-header {
    margin-top: -34px;
  }

  .page-header {
    margin-top: -34px;
  }
}

.hero-slide {
  position: relative;
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.hero-video[src] {
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(3, 30, 44, 0.8),
      rgba(5, 59, 42, 0.75));
  z-index: 1;
}

.hero-slide .container {
  z-index: 2;
}

.hero-tagline {
  display: inline-block;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-teal-200, #8dc6d9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: calc(1.3rem + 1.5vw);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 25px;
}

.hero-desc {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
}

.hero-cta-outline {
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  border-width: 2px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-cta-outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

.hero-stat {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.hero-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.hero-indicators button {
  width: 40px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    background 0.3s,
    width 0.3s;
  padding: 0;
}

.hero-indicators button.active,
.hero-indicators button:hover {
  background: var(--bs-success);
  width: 56px;
}

.page-header {
  background:
    linear-gradient(135deg, rgba(3, 30, 44, 0.7), rgba(5, 59, 42, 0.7)),
    url(../../img/10.png) center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
  color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-size: 18px;
  color: var(--bs-white);
}

/*** About ***/
.about-fact {
  width: 220px;
  height: 220px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 576px) {
  .about-fact.mt-n130 {
    margin-top: -130px;
  }
}

@media (max-width: 480px) {
  .about-fact {
    width: 140px !important;
    height: 140px !important;
  }

  .about-fact.mt-n130 {
    margin-top: -85px !important;
  }

  .about-fact p {
    font-size: 11px !important;
  }

  .about-fact h1 {
    font-size: 22px !important;
  }

  .about-fact i {
    font-size: 28px !important;
  }

  .container-team .row.g-4 {
    --bs-gutter-x: 0.6rem !important;
    --bs-gutter-y: 0.6rem !important;
  }

  .team-item h5 {
    font-size: 14px !important;
  }

  .team-item span {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  .team-item .text-center {
    padding: 12px !important;
  }

  /* Footer and Copyright Mobile styles */
  .footer {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .footer .row.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .footer img {
    height: 50px !important;
  }

  .footer .btn-lg-square {
    width: 38px !important;
    height: 38px !important;
  }

  .footer .btn-lg-square i {
    font-size: 18px !important;
  }

  .footer .input-group .form-control {
    padding: 6px 12px !important;
    font-size: 13px !important;
  }

  .footer .input-group .btn {
    padding: 6px 14px !important;
    font-size: 13px !important;
  }

  .footer p.fs-5 {
    font-size: 14px !important;
    margin-bottom: 1rem !important;
  }

  .footer p {
    font-size: 13px !important;
    margin-bottom: 8px !important;
  }

  .footer h4 {
    font-size: 16px !important;
    margin-bottom: 15px !important;
  }

  .footer .btn.btn-link {
    font-size: 13px !important;
    margin-bottom: 3px !important;
  }

  .copyright {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .copyright p {
    font-size: 11px !important;
  }

  .copyright .btn-sm-square {
    width: 24px !important;
    height: 24px !important;
  }

  .copyright i {
    font-size: 10px !important;
  }

  /* Hero Mobile Styles */
  .hero-slide {
    min-height: 85vh;
  }

  .hero-tagline {
    font-size: 11px;
    letter-spacing: 2px;
    padding: 4px 14px;
    margin-bottom: 15px;
  }

  .hero-title {
    font-size: 21px;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
  }

  .hero-cta,
  .hero-cta-outline {
    padding: 10px 24px;
    font-size: 13px;
  }

  .hero-stat {
    font-size: 26px;
  }

  .hero-stat-label {
    font-size: 12px;
  }

  .hero-indicators {
    bottom: 16px;
  }

  .hero-indicators button {
    width: 28px;
    height: 3px;
  }

  .hero-indicators button.active,
  .hero-indicators button:hover {
    width: 40px;
  }

  /* Quick Inquiry Mobile */
  .inquiry-toggle {
    font-size: 14px !important;
    padding: 10px 24px !important;
  }

  #quickInquiryForm .form-control,
  #quickInquiryForm .form-select {
    padding: 8px 10px !important;
    font-size: 13px !important;
    min-height: 38px !important;
  }

  #quickInquiryForm .form-floating label {
    font-size: 12px !important;
    padding: 6px 10px !important;
  }

  #quickInquiryForm .form-floating textarea {
    height: 90px !important;
  }

  #quickInquiryForm .btn[type="submit"] {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }

  /* Section Heading Scaling */
  .display-6 {
    font-size: 22px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  h3 {
    font-size: 18px !important;
  }

  h4 {
    font-size: 16px !important;
  }

  h5 {
    font-size: 14px !important;
  }

  .service-item h5 {
    font-size: 16px !important;
  }

  .service-item .btn {
    padding: 4px 10px !important;
    font-size: 12px !important;
  }

  .container-fluid.py-5 .btn-primary.py-3.px-5 {
    padding: 8px 20px !important;
    font-size: 14px !important;
  }

  /* Fix icon centering in square buttons on mobile */
  .btn-square,
  .btn-sm-square,
  .btn-lg-square {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  /* Supply Request Page Mobile Responsive (<= 480px) */
  #supplyRequestForm {
    font-size: 13px !important;
  }

  #supplyRequestForm h4 {
    font-size: 15px !important;
    margin-bottom: 1rem !important;
    padding-bottom: 6px !important;
  }

  #supplyRequestForm .form-floating label {
    font-size: 11px !important;
  }

  #supplyRequestForm .form-control,
  #supplyRequestForm .form-select {
    font-size: 12px !important;
    height: 48px !important;
    padding: 10px 12px !important;
  }

  #supplyRequestForm textarea.form-control {
    height: 90px !important;
  }

  /* Make items table responsive as cards on tiny screens */
  .custom-table-wrapper {
    border: none !important;
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  #itemsTable {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    overflow: hidden !important;
  }

  #itemsTable id,
  #itemsTable thead {
    display: none !important;
    /* Hide headers on tiny mobile */
  }

  #itemsTable tbody {
    display: block;
    width: 100%;
  }

  #itemsTable tr {
    display: block;
    background: var(--color-teal-50);
    border: 1px solid var(--color-teal-100);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  #itemsTable td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 6px 0 !important;
    border: none !important;
    text-align: right !important;
    box-sizing: border-box !important;
  }

  #itemsTable td input,
  #itemsTable td select {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  #itemsTable td .d-flex {
    gap: 0.5rem !important;
  }

  #itemsTable td .form-check-inline {
    margin-left: 0.5rem;
  }

  /* Add label prefix before inputs to know what fields they are since headers are hidden */
  #itemsTable td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 4px;
  }

  #itemsTable td:last-child {
    text-align: center !important;
    padding-top: 10px !important;
    border-top: 1px dashed var(--color-teal-200) !important;
  }

  #itemsTable td:last-child::before {
    display: none;
  }

  #itemsTable td:last-child .btn {
    width: 100%;
    padding: 8px !important;
    font-size: 12px !important;
  }

  .form-container-shadow {
    padding: 15px 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
  }

  /* Reduce container padding on very small mobile to maximize space */
  .container-fluid.py-5,
  .container.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .container:not(.px-0),
  .container-fluid:not(.px-0) {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .row {
    --bs-gutter-x: 0.8rem !important;
  }

  #supplyRequestForm button[type="submit"] {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* Supply Widget on index */
  .supply-widget-card {
    padding: 24px 20px !important;
  }

  .supply-widget-card h2 {
    font-size: 1.4rem !important;
  }

  .supply-widget-card p {
    font-size: 13px !important;
  }

  .supply-widget-card .btn {
    width: 100% !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
  }
}

/* Mobile bottom bar: search + language */
.mobile-nav-bar {
  display: flex;
  height: 32px;
  margin-top: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  width: 100%;
  overflow: hidden;
}

.mobile-search-wrap {
  flex: 0 0 80%;
  max-width: 80%;
  position: relative;
  padding-left: 6px;
}

.mobile-search-input {
  width: 100%;
  height: 32px;
  border: 1px solid var(--color-teal-100);
  border-radius: 6px;
  padding: 0 32px 0 8px;
  font-size: 13px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  background: var(--color-teal-50);
  color: var(--bs-dark);
  outline: none;
  transition: border-color 0.2s;
}

.mobile-search-input:focus {
  border-color: var(--bs-primary);
  background: #fff;
}

.mobile-search-icon {
  position: absolute;
  left: 22px;
  top: 60%;
  transform: translateY(-50%);
  color: var(--bs-gray);
  font-size: 15px;
  pointer-events: none;
}

.mobile-lang-btn {
  flex: 0 0 20%;
  max-width: 20%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-teal-50);
  border: 1px solid var(--color-teal-100);
  border-radius: 6px;
  color: var(--bs-primary);
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
  gap: 5px;
}

.mobile-lang-btn:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

/*** Service ***/
.container-service {
  position: relative;
}

.container-service::before {
  position: absolute;
  content: "";
  background: var(--gradient-light);
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 70%);
  z-index: -1;
}

.service-item {
  position: relative;
  height: 100%;
  padding: 45px 30px;
  background: var(--bs-white);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.05);
  border-right: 5px solid var(--bs-primary);
}

.service-item::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  left: 0;
  bottom: 0;
  transition: 0.5s;
  background: var(--gradient-primary);
}

.service-item:hover {
  border-right: 5px solid var(--color-teal-900);
}

.service-item:hover::before {
  height: 100%;
  top: 0;
}

.service-item * {
  position: relative;
  transition: 0.5s;
  z-index: 1;
}

.service-item h1 {
  color: var(--bs-primary);
}


.service-item span {
  color: var(--bs-gray);
}

.service-item:hover h1,
.service-item:hover h5,
.service-item:hover p,
.service-item:hover span {
  color: var(--bs-white);
}

.service-item:hover .icon-box-primary::before {
  background: var(--bs-dark);
}

.service-item:hover .icon-box-primary i {
  color: var(--bs-white) !important;
}

.service-whatsapp-btn {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.service-whatsapp-btn:hover {
  opacity: 0.9;
}

/*** Team ***/
.container-team {
  position: relative;
}

.container-team::before {
  position: absolute;
  content: "";
  background: var(--gradient-light);
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
  z-index: -1;
}

.team-item {
  background: var(--bs-white);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--bs-primary);
  line-height: 1.1;
  padding-bottom: 15px;
}

.team-item .team-social {
  position: absolute;
  width: 0;
  height: 100%;
  top: 0;
  right: 0;
  transition: 0.5s;
  background: var(--gradient-primary-transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-item:hover .team-social {
  width: 100%;
  left: 0;
}

.team-item .team-social .btn {
  opacity: 0;
  transition: 0.5s;
}

.team-item:hover .team-social .btn {
  opacity: 1;
}

/*** Quick Inquiry ***/
.inquiry-toggle {
  transition: 0.3s;
}

.inquiry-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.inquiry-toggle i {
  transition: transform 0.3s;
}

#quickInquiryForm {
  transition: 0.3s;
}

#quickInquiryForm .row {
  background: var(--bs-light);
  padding: 25px;
  border-radius: 8px;
}

/* Supply Request Form Customization */
.form-container-shadow {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.custom-table-wrapper {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

#itemsTable {
  margin-bottom: 0;
}

#itemsTable th {
  background-color: var(--color-teal-50);
  font-weight: 600;
  color: var(--color-teal-600);
  white-space: nowrap;
  vertical-align: middle;
  border-bottom-width: 1px;
}

#itemsTable td {
  padding: 15px 12px;
  vertical-align: middle;
}

#itemsTable input,
#itemsTable select {
  box-shadow: none;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 12px;
  background-color: #fcfcfc;
}

#itemsTable input:focus,
#itemsTable select:focus {
  border-color: var(--color-teal-300);
  background-color: #fff;
}

@media (max-width: 480px) {
  .page-header {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .page-header .display-2 {
    font-size: 26px;
  }

  .page-header h1 {
    font-size: 26px;
  }

  .page-header .breadcrumb-item,
  .page-header .breadcrumb-item a {
    font-size: 13px;
  }

  .page-header .breadcrumb-item+.breadcrumb-item::before {
    font-size: 11px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .page-header .breadcrumb {
    margin-bottom: 0;
  }

  .page-header .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .page-header .py-5.mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .form-container-shadow {
    padding: 25px 15px !important;
  }

  h4.text-primary.border-bottom {
    font-size: 17px;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
  }

  .table-responsive {
    border: none;
  }

  #itemsTable {
    min-width: 550px;
  }

  .form-floating>label {
    font-size: 14px;
  }

  .btn-lg {
    font-size: 16px;
    padding: 12px 20px !important;
    width: 100%;
  }

  .quality-header-title .display-6 {
    font-size: 20px;
  }

  .quality-header-subtitle {
    font-size: 16px;
    display: block;
    margin-right: 0;
    margin-top: 4px;
  }

  .quality-item {
    padding: 14px;
  }

  .quality-item .quality-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .quality-item p {
    font-size: 12px;
  }

  .quality-action-btn {
    padding: 10px 20px !important;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }

  .quality-header-title+.fs-5 {
    font-size: 14px !important;
    margin-bottom: 1.5rem !important;
  }
}

/*** Quality ***/
.quality-item {
  display: block;
  background-color: var(--bs-light);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.quality-item:hover {
  background-color: #fff;
  border-color: var(--color-teal-300);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.quality-item .quality-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 8px;
  transition: all 0.3s;
}

.quality-item:hover .quality-title {
  color: var(--color-teal-600);
}

.quality-item p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}

.quality-header-title {
  line-height: 1.4;
}

.quality-header-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-teal-500);
  margin-right: 10px;
}

@media (max-width: 768px) {
  .quality-header-subtitle {
    display: block;
    margin-right: 0;
    margin-top: 10px;
    font-size: 20px;
  }
}

/*** Contact ***/
@media (min-width: 992px) {
  .contact-info::after {
    position: absolute;
    content: "";
    width: 0px;
    height: 100%;
    top: 0;
    left: 50%;
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 991.98px) {
  .contact-info::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0px;
    top: 50%;
    left: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
  }
}

/*** Footer ***/
.footer {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
  background:
    linear-gradient(135deg, rgba(3, 30, 44, 0.7), rgba(5, 59, 42, 0.7)),
    url(../img/footer.png) center center no-repeat;
  background-size: contain;
}

.footer .row.py-5 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

@media (min-width: 992px) {
  .footer::after {
    position: absolute;
    content: "";
    width: 0px;
    height: 100%;
    top: 0;
    left: 50%;
    border-left: 1px dashed rgba(255, 255, 255, 0.2);
  }
}

.footer .btn.btn-link {
  display: block;
  margin-bottom: 5px;
  padding: 0;
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
  font-weight: normal;
  text-transform: capitalize;
  text-decoration: none !important;
  transition: 0.3s;
}

.footer .btn.btn-link::before {
  position: relative;
  content: "\F284";
  font-family: "bootstrap-icons";
  color: rgba(255, 255, 255, 0.5);
  margin-left: 10px;
}

.footer .btn.btn-link:hover {
  color: var(--bs-light);
  letter-spacing: 1px;
  box-shadow: none;
}

.copyright {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.copyright p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.copyright a {
  color: rgba(255, 255, 255, 0.85);
}

.copyright a:hover {
  color: var(--bs-primary);
}

.copyright .btn-sm-square {
  width: 30px;
  height: 30px;
}

.copyright i {
  font-size: 13px;
}

.Pharmacovigilance-fab {
  position: fixed;
  bottom: 35px;
  right: 0;
  width: 170px;
  height: 50px;
  z-index: 9999;
  font-size: 17px;
  background: var(--bg-danger);
  box-shadow: 0 4px 20px rgba(4, 54, 100, 0.4);
  cursor: pointer;
  transition:
    transform 0.4s ease,
    box-shadow 0.3s,
    filter 0.3s;
  border-radius: 15px 0 0 15px;
  border: 1px solid var(--bs-danger);
  border-right: none;
  font-weight: 600;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
  color: var(--bs-danger);
  transform: translateX(120px);
  /* Collapsed by default */
}

.Pharmacovigilance-fab.expanded,
.Pharmacovigilance-fab:hover {
  transform: translateX(0);
  /* Expanded state */
}

.Pharmacovigilance-fab i {
  font-size: 27px;
  color: var(--bs-danger);
}

.Pharmacovigilance-fab:hover {
  filter: brightness(1.05);
}

.Pharmacovigilance-fab i {
  line-height: 1;
}

/*** Endocare AI Chatbot ***/
.chatbot-fab {
  position: fixed;
  bottom: 35px;
  left: 0;
  width: 170px;
  height: 50px;
  z-index: 9999;
  font-size: 19px;
  background: var(--color-teal-50);
  box-shadow: 0 4px 20px rgba(4, 54, 100, 0.4);
  cursor: pointer;
  transition:
    transform 0.4s ease,
    box-shadow 0.3s,
    filter 0.3s;
  border-radius: 0 15px 15px 0;
  border: 1px solid var(--color-teal-500);
  border-left: none;
  font-weight: 600;
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
  color: var(--color-teal-500);
  transform: translateX(-120px);
  /* Collapsed by default */
}

.chatbot-fab.expanded,
.chatbot-fab:hover {
  transform: translateX(0);
  /* Expanded state */
}

.chatbot-fab i {
  font-size: 27px;
  color: var(--color-teal-500);
}

.chatbot-fab:hover {
  filter: brightness(0.95);
}

.chatbot-fab i {
  line-height: 1;
}

@media (max-width: 480px) {

  /* تنسيق زر Pharmacovigilance */
  .Pharmacovigilance-fab {
    width: auto;
    min-width: 120px;
    height: 42px;
    bottom: 20px;
    font-size: 12px;
    gap: 6px;
    padding: 0 12px;
    border-radius: 12px 0 0 12px;
    transform: translateX(88px);
    /* Collapsed state on mobile */
  }

  /* تنسيق أيقونة زر Pharmacovigilance */
  .Pharmacovigilance-fab i {
    font-size: 20px;
  }

  /* تنسيق زر Endocare AI Chatbot */
  .chatbot-fab {
    width: auto;
    min-width: 120px;
    height: 42px;
    bottom: 20px;
    font-size: 13px;
    gap: 6px;
    padding: 0 12px;
    border-radius: 0 12px 12px 0;
    transform: translateX(-79px);
    /* Collapsed state on mobile */
  }

  /* تنسيق أيقونة زر Endocare AI Chatbot */
  .chatbot-fab i {
    font-size: 20px;
  }

  .Pharmacovigilance-fab.expanded,
  .chatbot-fab.expanded,
  .Pharmacovigilance-fab:hover,
  .chatbot-fab:hover {
    transform: translateX(0);
    /* Expanded state on mobile */
  }
}

.chatbot-overlay {
  position: fixed;
  bottom: 50px;
  left: 55px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 660px;
  max-height: calc(100vh - 140px);
  z-index: 9998;
  display: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  background: var(--bs-white);
  direction: rtl;
}

.chatbot-overlay.open {
  display: block;
  animation: chatbotSlideIn 0.35s ease-out;
}

@keyframes chatbotSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chatbot-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--gradient-primary);
  color: #fff;
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}

.chatbot-header-info > div {
  min-width: 0;
  overflow: hidden;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.chatbot-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chatbot-status {
  font-size: 11px;
  opacity: 0.85;
  display: block;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chatbot-close-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  border: none;
  flex-shrink: 0;
  transition: background 0.2s;
}

.chatbot-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  background: var(--color-teal-50);
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--color-teal-300);
  border-radius: 4px;
}

/* Message Bubbles */
.message {
  display: flex;
  margin-bottom: 12px;
  animation: msgFadeIn 0.25s ease-out;
}

@keyframes msgFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-bot {
  justify-content: flex-start;
}

.message-user {
  justify-content: flex-end;
}

.message-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  position: relative;
}

.message-bot .message-bubble {
  background: var(--bs-white);
  color: var(--bs-dark);
  border-bottom-right-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.message-user .message-bubble {
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-left-radius: 4px;
}

.message-user .message-bubble.pending {
  opacity: 0.75;
}

.message-time {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 4px;
  text-align: left;
  direction: ltr;
}

.message-user .message-time {
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
}

/* Error message inline */
.message-error .message-bubble {
  background: #fff3f3;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.retry-btn {
  background: none;
  border: none;
  color: var(--bs-primary);
  font-size: 13px;
  padding: 0;
  margin-top: 4px;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
}

.retry-btn:hover {
  color: var(--color-teal-700);
}

/* Out of scope message */
.message-out-of-scope .message-bubble {
  background: #fff8e1;
  color: #795548;
  border: 1px solid #ffe082;
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.typing-indicator.active {
  display: flex;
}

.typing-dots {
  background: var(--bs-white);
  padding: 12px 18px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal-300);
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: scale(0.6);
  }

  40% {
    transform: scale(1);
    background: var(--bs-primary);
  }
}

.typing-status {
  font-size: 12px;
  color: var(--bs-gray);
  margin-right: 8px;
  align-self: center;
}

/* Quick Replies */
.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 12px;
  background: var(--color-teal-50);
  border-top: 1px solid var(--color-teal-100);
  flex-shrink: 0;
}

.chatbot-quick-replies.hidden {
  display: none;
}

.quick-reply-btn {
  font-size: 11px;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  border-width: 1.5px;
  white-space: nowrap;
  font-weight: 500;
}

/* Network Banner */
.chatbot-network-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #fff3cd;
  color: #856404;
  font-size: 12px;
  text-align: center;
  flex-shrink: 0;
  border-top: 1px solid #ffeeba;
}

/* Input Area */
.chatbot-input-area {
  padding: 10px 16px 14px;
  background: var(--bs-white);
  border-top: 1px solid var(--color-teal-100);
  flex-shrink: 0;
}

.chatbot-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--color-teal-50);
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
}

.chatbot-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  resize: none;
  outline: none;
  height: 70px;
  line-height: 1.5;
  color: var(--bs-dark);
}

.chatbot-input::placeholder {
  color: var(--bs-gray);
  font-size: 13px;
}

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  border: none;
  background: var(--gradient-primary);
}

.chatbot-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-char-count {
  text-align: left;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
  padding-left: 4px;
}

/*** Chatbot Responsive <= 480px ***/
@media (max-width: 480px) {
  .chatbot-overlay {
    bottom: 75px;
    left: 15px;
    width: 330px;
    max-width: calc(100vw - 30px);
    height: 450px;
    max-height: calc(100vh - 140px);
    border-radius: 14px;
  }

  .chatbot-header {
    padding: 12px 14px;
  }

  .chatbot-avatar {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .chatbot-title {
    font-size: 12px;
  }

  .chatbot-status {
    font-size: 10px;
  }

  .chatbot-messages {
    padding: 12px 12px 6px;
  }

  .message-bubble {
    font-size: 11px;
    padding: 8px 12px;
  }

  .quick-reply-btn {
    font-size: 10px;
    padding: 3px 8px !important;
  }

  .chatbot-input {
    font-size: 13px;
  }

  .chatbot-input::placeholder {
    font-size: 11px;
  }

  .chatbot-send-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .chatbot-input-area {
    padding: 10px 12px 14px;
  }

  .chatbot-input {
    height: 50px;
  }

  .chatbot-input-wrapper {
    padding: 6px 6px 6px 12px;
  }

  .chatbot-quick-replies {
    padding: 6px 12px 10px;
  }
}

/******************************************************
 * المرحلة 2: كتالوج المنتجات الذكي
 * Advanced Search, Filters, Product Table, Hormone Grid, Badges
 ******************************************************/

/* --- Catalog Tabs --- */
.catalog-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-tabs-row {
  margin-bottom: 24px;
}

@media (max-width: 767.98px) {
  .search-tabs-row .search-wrapper {
    min-width: 100% !important;
  }

  .search-tabs-row .catalog-tabs {
    width: 100%;
    justify-content: center;
  }
}

.catalog-tab-btn {
  padding: 8px 20px;
  border: 2px solid var(--color-teal-100);
  border-radius: 50px;
  background: transparent;
  color: var(--bs-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
}

.catalog-tab-btn:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.catalog-tab-btn.active {
  background: var(--gradient-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

/* --- Advanced Search Bar --- */
.search-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: var(--bs-white);
  border: 2px solid var(--color-teal-100);
  border-radius: 8px;
  padding: 0 16px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.search-input-group:focus-within {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(4, 54, 100, 0.1);
}

.search-input-group .search-icon {
  color: var(--bs-gray);
  font-size: 18px;
  flex-shrink: 0;
}

.search-input-group .search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 15px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  outline: none;
  color: var(--bs-dark);
}

.search-input-group .search-input::placeholder {
  color: var(--bs-gray);
  font-size: 14px;
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--bs-gray);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}

.search-clear-btn:hover {
  background: var(--color-teal-50);
  color: var(--bs-dark);
}

/* Search Suggestions Dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bs-white);
  border: 1px solid var(--color-teal-100);
  border-top: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: right;
  transition: background 0.2s;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  border-bottom: 1px solid var(--color-teal-50);
}

.search-suggest-item:hover {
  background: var(--color-teal-50);
}

.search-suggest-item .suggest-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--bs-dark);
}

.search-suggest-item .suggest-cas {
  font-size: 12px;
  color: var(--bs-gray);
  direction: ltr;
  display: inline-block;
  font-family: monospace;
}

.search-suggest-more {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--bs-gray);
  text-align: center;
}

/* --- Filter Sidebar --- */
.filter-sidebar {
  background: var(--bs-white);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-teal-50);
}

.filter-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-teal-100);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-primary);
  margin-bottom: 10px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
  font-size: 14px;
  color: var(--bs-dark);
  transition: color 0.2s;
}

.filter-checkbox-label:hover {
  color: var(--bs-primary);
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--bs-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-checkbox-text {
  flex: 1;
}

.filter-count {
  font-size: 12px;
  color: var(--bs-gray);
  background: var(--color-teal-50);
  padding: 1px 8px;
  border-radius: 20px;
  min-width: 24px;
  text-align: center;
}

@media (max-width: 480px) {
  .search-wrapper {
    margin-bottom: 16px;
  }

  .search-input-group {
    padding: 0 12px;
  }

  .search-input-group .search-icon {
    font-size: 16px;
  }

  .search-input-group .search-input {
    padding: 10px 8px;
    font-size: 13px;
  }

  .search-input-group .search-input::placeholder {
    font-size: 12px;
  }

  .search-clear-btn {
    font-size: 16px;
    padding: 2px 6px;
  }

  .search-suggestions {
    max-height: 260px;
    border-radius: 0 0 8px 8px;
  }

  .search-suggest-item {
    padding: 8px 12px;
  }

  .search-suggest-item .suggest-name {
    font-size: 13px;
  }

  .search-suggest-item .suggest-cas {
    font-size: 11px;
  }

  .search-suggest-more {
    padding: 6px 12px;
    font-size: 11px;
  }

  .filter-sidebar {
    padding: 14px;
    border-radius: 8px;
  }

  .filter-sidebar-title {
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    gap: 6px;
  }

  .filter-group {
    margin-bottom: 14px;
  }

  .filter-group-title {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .filter-options {
    gap: 4px;
  }

  .filter-checkbox-label {
    gap: 6px;
    font-size: 12px;
  }

  .filter-checkbox {
    width: 14px;
    height: 14px;
  }

  .filter-count {
    font-size: 10px;
    padding: 0px 6px;
    min-width: 20px;
  }

  .catalog-tab-btn {
    padding: 5px 10px;

    font-size: 12px;
  }
}

/* Active Filters Tags */
.active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
  min-height: 36px;
}

.active-filter-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--bs-gray);
  margin-left: 4px;
}

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-teal-50);
  color: var(--bs-primary);
  font-size: 13px;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  border: 1px solid var(--color-teal-100);
  font-weight: 500;
}

.active-filter-remove {
  background: none;
  border: none;
  color: var(--bs-primary);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.active-filter-remove:hover {
  opacity: 1;
}

.active-filter-clear-all {
  font-size: 13px;
  color: var(--bs-danger) !important;
  text-decoration: none !important;
  padding: 0 4px !important;
}

/* --- Regulatory Badges --- */
.reg-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
}

.badge-gmp {
  background: #249AA0;
}

.badge-coa {
  background: #043664;
}

.badge-moh {
  background: #6f42c1;
}

/* Mobile: reduce service item sizes at 480px */
@media (max-width: 480px) {
  .service-item {
    padding: 20px 16px !important;
  }

  .service-item h5 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }

  .service-item p {
    font-size: 13px !important;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
  }

  .service-item .icon-box-primary {
    margin-bottom: 12px !important;
  }

  .service-item .icon-box-primary i {
    font-size: 36px !important;
  }

  .service-whatsapp-btn {
    font-size: 12px !important;
    padding: 5px 12px !important;
  }
}

/*** Topbar ***/
.topbar {
  background: var(--bs-dark);
}

.topbar small {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 400;
}

.topbar small i {
  color: var(--bs-success);
  font-size: 14px;
}

/*** Segments Served (قطاعات الخدمات) ***/
.segments-section {
  background: var(--gradient-light);
  padding: 60px 0;
}

.pharma-slider-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.slider-container {
  display: flex;
  gap: 20px;
  /* المسافة بين البطاقات */
  position: relative;
}

/* Card Design with Background Image */
.pharma-card {
  flex: 1;
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* دفع المحتوى للأسفل */
  padding: 35px 30px;
  overflow: hidden;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(3, 30, 44, 0.08);
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1;
  text-decoration: none;
}

.pharma-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(3, 30, 44, 0.2);
  color: #fff;
  /* تأكيد بقاء النص باللون الأبيض عند التمرير */
}

/* Card Background Image Zoom */
.pharma-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
}

.pharma-card.card-hospitals::before {
  background-image: url("../../img/4.png");
}

.pharma-card.card-pharmacies::before {
  background-image: url("../../img/5.png");
}

.pharma-card.card-manufacturers::before {
  background-image: url("../../img/3.png");
}

.pharma-card:hover::before {
  transform: scale(1.08);
}

/* Dark overlay for readability */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* تدرج ناعم يعتمد على لون الهوية الداكن للموقع */
  background: linear-gradient(to bottom,
      rgba(3, 30, 44, 0.1) 0%,
      rgba(3, 30, 44, 0.85) 100%);
  z-index: 1;
  transition: background 0.4s ease;
}

.pharma-card:hover .card-overlay {
  background: linear-gradient(to bottom,
      rgba(3, 30, 44, 0.2) 0%,
      rgba(3, 30, 44, 0.95) 100%);
}

/* Content Container */
.card-content {
  position: relative;
  z-index: 2;
}

/* Category Badge with theme success color */
.card-category {
  display: inline-block;
  color: var(--bs-white);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  letter-spacing: 0.5px;
  background: var(--gradient-primary-transparent);
  padding: 3px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pharma-card:hover .card-category {
  background-color: var(--bs-success);
  color: #fff;
}

/* Title styling */
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 15px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  text-shadow: 1px 1px 3px rgba(3, 30, 44, 0.5);
  color: var(--color-green-100);
}

/* Footer / Meta info */
.card-meta {
  font-size: 0.85rem;
  color: var(--color-green-300);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 500;
}

.card-meta .separator {
  color: #fff;
  opacity: 0.7;
  margin: 0 2px;
}

/* Responsiveness */
@media (max-width: 992px) {
  .slider-container {
    flex-direction: column;
    gap: 20px;
  }

  .pharma-card {
    min-height: 300px;
    padding: 25px;
  }

  .card-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .pharma-card .card-category {
    font-size: calc(0.85rem - 1px);
  }

  .pharma-card .card-title {
    font-size: calc(1.1rem - 1px);
  }

  .pharma-card .card-meta {
    font-size: calc(0.85rem - 1px);
  }
}

/* =========================================
   Pharmacovigilance Modal (التيقظ الدوائي)
   ========================================= */
.pv-glass-modal {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(3, 30, 44, 0.15);
}

.pv-glass-modal .modal-header {
  border-bottom: 1px solid rgba(4, 54, 100, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pv-glass-modal .modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.pv-glass-modal .btn-close {
  background-color: rgba(4, 54, 100, 0.1);
  border-radius: 50%;
  opacity: 1;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.pv-glass-modal .btn-close:hover {
  background-color: rgba(220, 53, 69, 0.2);
  transform: rotate(90deg);
}

.pv-glass-modal .modal-body {
  padding: 1.5rem;
}

.pv-glass-modal .modal-footer {
  border-top: 1px solid rgba(4, 54, 100, 0.1);
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 16px 16px;
  padding: 1.25rem 1.5rem;
}

.pv-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pv-section {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(4, 54, 100, 0.05);
}

/* High Density Inputs */
.pv-density .form-control {
  min-height: 45px;
  height: 45px;
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid rgba(4, 54, 100, 0.2);
}

.pv-density .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(4, 54, 100, 0.15);
}

.pv-density label {
  padding: 0.6rem 0.75rem;
  font-size: 12px;
  color: var(--bs-gray);
}

.pv-density textarea.form-control {
  height: 50px !important;
  min-height: 50px !important;
}

/* Checkbox Cards */
.pv-check-card {
  position: relative;
  display: block;
  cursor: pointer;
  margin-bottom: 0;
}

.pv-check-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.pv-check-content {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(4, 54, 100, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--bs-dark);
  transition: all 0.2s ease;
}

.pv-check-input:checked~.pv-check-content {
  background: var(--color-teal-50);
  border-color: var(--bs-primary);
  box-shadow: 0 4px 10px rgba(4, 54, 100, 0.1);
}

.pv-check-input:checked~.pv-check-content::after {
  content: "\F26A";
  /* bootstrap icon check-circle-fill */
  font-family: "bootstrap-icons";
  margin-right: auto;
  color: var(--bs-primary);
  font-size: 16px;
}

.pv-action-btn {
  padding: 12px 32px !important;
  font-size: 16px;
  border-radius: 12px;
}

.pv-submit-btn {
  background: linear-gradient(135deg, var(--bs-danger), #b02a37);
  border: none;
  letter-spacing: 0.5px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.pv-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* =========================================
   Responsive Pharmacovigilance Modal (480px)
   ========================================= */
@media (max-width: 480px) {
  .pv-glass-modal {
    border-radius: 12px;
  }

  .pv-glass-modal .modal-header h5 {
    font-size: 17px;
  }

  .pv-glass-modal .modal-header .btn-close {
    padding: 0.35rem;
    font-size: 0.75rem;
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  .pv-section {
    padding: 10px;
    border-radius: 10px;
  }

  .pv-badge {
    font-size: 12px;
    padding: 4px 10px;
    margin-bottom: 6px;
  }

  .pv-density .form-control {
    height: 38px;
    min-height: 38px;
    font-size: 13px;
    padding-top: 1rem;
  }

  .pv-density label {
    font-size: 11px;
    padding: 0.5rem 0.6rem;
  }

  .pv-density textarea.form-control {
    height: 45px !important;
    min-height: 45px !important;
  }

  .pv-check-content {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
  }

  .pv-check-content i {
    font-size: 17px !important;
    margin-left: 6px !important;
  }

  .pv-check-input:checked~.pv-check-content::after {
    font-size: 15px;
  }

  .pv-action-btn {
    font-size: 14px;
    padding: 10px 8px !important;
    flex: 1;
    text-align: center;
    border-radius: 8px;
  }

  /* تقليل المسافات بين الأقسام */
  .mt-3 {
    margin-top: 0.75rem !important;
  }

  /* تقليل مسافات الـ Grid (row g-2) أكثر في الشاشات الصغيرة */
  .row.g-2 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
}

/* =========================================
   Strategic Partners - Infinite Logo Marquee
   ========================================= */
.logo-marquee-wrapper {
  direction: ltr;
  /* Force LTR layout for consistent right-to-left marquee motion across all page directions */
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 30px 0;
  background: transparent;
  user-select: none;
}

/* Linear gradients on edges to create a fading/shadowed entry and exit effect */
.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right,
      #ffffff 0%,
      rgba(255, 255, 255, 0) 100%);
}

.logo-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

/* Pause animation on hover */
.logo-marquee-wrapper:hover .logo-marquee-track {
  animation-play-state: paused;
}

.logo-marquee-content {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 80px;
  padding-left: 40px;
  padding-right: 40px;
  flex-shrink: 0;
}

.logo-marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 85px;
  width: 170px;
  transition: transform 0.3s ease;
}

.logo-marquee-item:hover {
  transform: scale(1.05);
}

.logo-marquee-item svg,
.logo-marquee-item img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(0.5);
  transition: all 0.3s ease-in-out;
}

/* Highlight brand on hover */
.logo-marquee-item:hover svg,
.logo-marquee-item:hover img {
  filter: grayscale(0) opacity(1);
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Responsive Styles for Logo Marquee */
@media (max-width: 992px) {
  .logo-marquee-content {
    gap: 60px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .logo-marquee-item {
    height: 55px;
    width: 140px;
  }
}

@media (max-width: 576px) {
  .logo-marquee-wrapper {
    padding: 20px 0;
  }

  .logo-marquee-wrapper::before,
  .logo-marquee-wrapper::after {
    width: 10%;
  }

  .logo-marquee-content {
    gap: 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo-marquee-item {
    height: 38px;
    width: 100px;
  }
}

/* =========================================
   Custom Mobile Buttons & Footer Logo (<=480px)
   ========================================= */
@media (max-width: 480px) {

  .partners-btn,
  .quality-action-btn {
    padding: 12px 20px !important;
    font-size: 14px;
    width: 100%;
    margin-bottom: 5px;
  }

  .footer-logo-img {
    height: 140px !important;
  }
}

/* =========================================
   About Page Restructure & Rich Aesthetics
   ========================================= */

/* Yemen Interactive Map Styles */
.map-container-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(4, 54, 100, 0.08);
  border: 1px solid var(--color-teal-100);
  overflow: hidden;
  padding: 30px;
}

.map-svg-wrapper {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  min-height: 350px;
}

.yemen-map-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Yemen map paths and hubs */
.map-province-path {
  fill: var(--color-teal-50);
  stroke: var(--color-teal-100);
  stroke-width: 1.5;
  transition: all 0.3s ease;
  cursor: pointer;
}

.map-province-path:hover,
.map-province-path.active {
  fill: var(--color-teal-200);
  stroke: var(--bs-primary);
  filter: drop-shadow(0px 2px 5px rgba(4, 54, 100, 0.2));
}

.map-hub-pin {
  fill: var(--bs-success);
  stroke: #fff;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-hub-pin:hover,
.map-hub-pin.active {
  fill: var(--bs-primary);
  transform: scale(1.2);
}

.map-hub-pulse {
  animation: pulse-ring 2s infinite;
  transform-origin: center;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Interactive Map Info Detail */
.map-details-card {
  background: var(--gradient-light);
  border-radius: 12px;
  padding: 24px;
  border-right: 4px solid var(--bs-primary);
  height: 100%;
  transition: all 0.3s ease;
}

.map-details-title {
  color: var(--bs-primary);
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(4, 54, 100, 0.15);
}

.map-detail-item:last-child {
  border-bottom: none;
}

.map-detail-label {
  font-weight: 700;
  color: var(--bs-dark);
}

.map-detail-val {
  color: var(--bs-secondary);
}

/* Downloadable documents */
.doc-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.download-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-teal-100);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(4, 54, 100, 0.12);
  border-color: var(--bs-primary);
}

.download-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: var(--color-teal-50);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s ease;
}

.download-card:hover .download-card-icon {
  background: var(--bs-primary);
  color: #fff;
}

.download-card-info {
  flex-grow: 1;
}

.download-card-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 4px;
}

.download-card-meta {
  font-size: 12px;
  color: var(--bs-secondary);
}

/* Regulatory achievements */
.achievement-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--color-teal-100);
  transition: all 0.3s ease;
  height: 100%;
}

.achievement-card:hover {
  border-color: var(--bs-success);
  box-shadow: 0 8px 20px rgba(36, 154, 160, 0.08);
}

.achievement-icon-wrapper {
  color: var(--bs-success);
  font-size: 36px;
  margin-bottom: 15px;
}

.achievement-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 10px;
}

.achievement-desc {
  font-size: 14px;
  color: var(--bs-secondary);
  line-height: 1.6;
}

/* Premium Management Team styles */
.team-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.executive-member-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-teal-100);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.executive-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(4, 54, 100, 0.15);
  border-color: var(--bs-primary);
}

.executive-member-img-box {
  position: relative;
  width: 100%;
  padding-top: 110%;
  /* Slightly taller image container */
  overflow: hidden;
  background: #f8f9fa;
}

.executive-member-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.executive-member-card:hover .executive-member-img {
  transform: scale(1.05);
}

.executive-member-content {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.executive-member-name {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 4px;
}

.executive-member-role {
  font-size: 13px;
  color: var(--bs-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.executive-member-bio {
  font-size: 13px;
  color: var(--bs-secondary);
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}

.executive-member-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.executive-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-teal-50);
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.executive-social-btn:hover {
  background: var(--bs-primary);
  color: #fff;
}

/* =========================================
   Quality & Compliance Page Custom Styles
   ========================================= */

.cold-chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.cold-chain-step-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-teal-100);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.cold-chain-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(4, 54, 100, 0.08);
  border-color: var(--bs-primary);
}

.cold-chain-step-number {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: var(--color-teal-50);
  color: var(--bs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.cold-chain-step-icon {
  font-size: 40px;
  color: var(--bs-primary);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.cold-chain-step-card:hover .cold-chain-step-icon {
  color: var(--bs-success);
  transform: scale(1.1);
}

.cold-chain-step-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 12px;
}

.cold-chain-step-desc {
  font-size: 14px;
  color: var(--bs-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Traceability & Recall block */
.compliance-info-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--color-teal-100);
  box-shadow: 0 8px 30px rgba(4, 54, 100, 0.04);
  padding: 35px;
}

.compliance-list-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.compliance-list-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-green-100);
  color: var(--bs-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 3px;
}

.compliance-list-text h5 {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 6px;
}

.compliance-list-text p {
  font-size: 14px;
  color: var(--bs-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Pharmacovigilance safety card banner */
.safety-alert-banner {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border-radius: 12px;
  border: 1px solid #ffd8d8;
  border-right: 4px solid var(--bs-danger);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
  /* Added for responsiveness */
}

@media (max-width: 768px) {
  .safety-alert-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }

  .safety-alert-banner .text-start {
    text-align: center !important;
    width: 100%;
  }
}

.safety-alert-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffeaea;
  color: var(--bs-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.safety-alert-info {
  flex-grow: 1;
}

.safety-alert-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #c92a2a;
  margin-bottom: 8px;
}

.safety-alert-desc {
  font-size: 14px;
  color: var(--bs-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Quality Assurance Officer Form */
.qa-form-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(4, 54, 100, 0.06);
  border: 1px solid var(--color-teal-100);
  padding: 35px;
}

@media (max-width: 768px) {
  .qa-form-container {
    padding: 20px;
    margin-top: 20px;
  }
}

.qa-form-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qa-form-title i {
  color: var(--bs-primary);
}

.qa-form-label {
  font-weight: 700;
  color: var(--bs-dark);
  font-size: 14px;
  margin-bottom: 8px;
}

.qa-form-input {
  border: 2px solid var(--color-teal-100);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.qa-form-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(4, 54, 100, 0.1);
}

.qa-form-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-teal-100);
  border-radius: 4px;
  margin-top: 3px;
  cursor: pointer;
}

.qa-form-checkbox:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.qa-form-submit-btn {
  padding: 14px 30px;
  font-weight: 700;
  font-size: 15px;
}

/* Detailed verified credentials cards */
.verified-credential-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--color-teal-100);
  padding: 30px;
  transition: all 0.3s ease;
  height: 100%;
}

@media (max-width: 768px) {
  .verified-credential-card {
    padding: 20px;
  }
}

.verified-credential-card:hover {
  box-shadow: 0 10px 25px rgba(4, 54, 100, 0.08);
  border-color: var(--bs-primary);
}

.credential-badge {
  background: var(--color-teal-50);
  color: var(--bs-primary);
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 6px 16px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 20px;
}

.verified-credential-card:nth-child(2) .credential-badge {
  background: var(--color-green-50);
  color: var(--bs-success);
}

.verified-credential-card:nth-child(3) .credential-badge {
  background: #EFF9FE;
  color: var(--bs-dark);
}

.credential-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(4, 54, 100, 0.1);
  font-size: 13px;
}

.credential-meta-item:last-child {
  border-bottom: none;
}

.credential-meta-label {
  font-weight: 700;
  color: var(--bs-dark);
}

.credential-meta-val {
  color: var(--bs-secondary);
}

/* =========================================
   FAQ Page Custom Styles
   ========================================= */

.faq-search-container {
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
}

.faq-search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.faq-search-input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  font-size: 15px;
  border: 2px solid var(--color-teal-100);
  border-radius: 50px;
  background: #fff;
  color: var(--bs-dark);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(4, 54, 100, 0.03);
}

.faq-search-input:focus {
  border-color: var(--bs-primary);
  outline: none;
  box-shadow: 0 8px 25px rgba(4, 54, 100, 0.1);
}

.faq-search-icon {
  position: absolute;
  left: 20px;
  font-size: 20px;
  color: var(--bs-primary);
  pointer-events: none;
}

.faq-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.faq-tab-btn {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border: 2px solid var(--color-teal-100);
  border-radius: 30px;
  background: #fff;
  color: var(--bs-secondary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-tab-btn:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.faq-tab-btn.active {
  background: var(--gradient-primary);
  border-color: var(--bs-primary);
  color: #fff !important;
  box-shadow: 0 5px 15px rgba(4, 54, 100, 0.15);
}

/* Accordion updates */
.faq-accordion .accordion-item {
  border: 1px solid var(--color-teal-100) !important;
  border-radius: 12px !important;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(4, 54, 100, 0.02);
  transition: all 0.3s ease;
}

.faq-accordion .accordion-item:hover {
  border-color: var(--bs-primary) !important;
  box-shadow: 0 8px 20px rgba(4, 54, 100, 0.06);
}

.faq-accordion .accordion-button {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--bs-dark);
  padding: 20px 24px;
  background: #fff;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--bs-primary);
  background: var(--color-teal-50);
}

.faq-accordion .accordion-button::after {
  font-family: "bootstrap-icons";
  content: "\F282";
  background-image: none !important;
  font-size: 14px;
  color: var(--bs-secondary);
  transition: all 0.3s ease;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  content: "\F286";
  color: var(--bs-primary);
  transform: rotate(0deg);
}

.faq-accordion .accordion-body {
  padding: 24px;
  font-size: 14px;
  color: var(--bs-secondary);
  line-height: 1.7;
  background: #fff;
  border-top: 1px solid var(--color-teal-100);
}

.faq-accordion-category-section {
  display: none;
}

.faq-accordion-category-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.faq-no-results {
  text-align: center;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed var(--color-teal-200);
  color: var(--bs-secondary);
  font-size: 15px;
  display: none;
}

/* =========================================
   Contact Page Custom Styles
   ========================================= */

.routing-card {
  background: #fff;
  border: 1px solid var(--color-teal-100);
  border-radius: 16px;
  padding: 30px 20px;
  transition: all 0.3s ease;
  height: 100%;
}

.routing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(4, 54, 100, 0.08);
  border-color: var(--bs-primary);
}

.routing-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.bg-danger-soft {
  background-color: #fef4f9;
}

.bg-warning-soft {
  background-color: #fffbeb;
}

.bg-info-soft {
  background-color: #f0f7fa;
}

.bg-success-soft {
  background-color: #EFF9FE;
}

.btn-outline-danger {
  color: var(--bs-danger);
  border-color: var(--bs-danger);
}

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

.btn-outline-warning {
  color: #fd7e14;
  border-color: #fd7e14;
}

.btn-outline-warning:hover {
  background-color: #fd7e14;
  color: #fff;
}

.btn-outline-info {
  color: var(--bs-info);
  border-color: var(--bs-info);
}

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

.btn-outline-success {
  color: var(--bs-success);
  border-color: var(--bs-success);
}

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

/* Branch Cards */
.branch-card {
  border: 2px solid var(--color-teal-100);
  cursor: pointer;
  transition: all 0.3s ease;
}

.branch-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 8px 20px rgba(4, 54, 100, 0.05);
}

.branch-card.active {
  border-color: var(--bs-primary);
  background-color: var(--color-teal-50) !important;
  box-shadow: 0 8px 25px rgba(4, 54, 100, 0.08);
}

.branch-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
}

/* Map wrapper */
.map-wrapper {
  background: #fff;
  border: 1px solid var(--color-teal-100);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.alert-danger-light {
  background-color: #fef4f9;
  border: 1px solid #ffd8d8;
  border-radius: 8px;
}

.bg-primary-soft {
  background-color: var(--color-teal-50);
}

.border-primary-light {
  border: 1px solid var(--color-teal-100) !important;
}

/*** Knowledge Center (المركز المعرفي) Styles ***/
.kc-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.kc-cat-btn {
  padding: 10px 24px;
  border: 2px solid var(--color-teal-100);
  border-radius: 50px;
  background: #fff;
  color: var(--bs-dark);
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kc-cat-btn i {
  margin-left: 8px;
}

.kc-cat-btn:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.kc-cat-btn.active {
  background: var(--gradient-primary);
  border-color: var(--bs-primary);
  color: #fff;
  box-shadow: 0 5px 15px rgba(4, 54, 100, 0.15);
}

.kc-article-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--color-teal-100);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kc-article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(4, 54, 100, 0.1);
  border-color: var(--bs-primary);
}

.kc-card-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.kc-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.kc-article-card:hover .kc-card-img {
  transform: scale(1.08);
}

.kc-card-category {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  gap: 4px;
}

.kc-card-category-i {

  margin-left: 7px;

}

.kc-cat-market {
  background: #043664;
}

.kc-cat-logistics {
  background: #249AA0;
}

.kc-cat-regulatory {
  background: #6f42c1;
}

.kc-cat-scientific {
  background: #e67e22;
}

.kc-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.kc-card-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 10px;
  line-height: 1.5;
}

.kc-card-excerpt {
  font-size: 14px;
  color: var(--bs-secondary);
  line-height: 1.7;
  margin-bottom: 15px;
  flex-grow: 1;
}

.kc-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--bs-gray);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-teal-50);
}

.kc-card-meta i {
  margin-left: 4px;
}

.kc-card-editor {
  font-weight: 600;
  color: var(--bs-primary);
}

.kc-card-refs {
  font-size: 12px;
  color: var(--bs-gray);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--color-teal-50);
  border-radius: 8px;
  line-height: 1.5;
}

.kc-card-refs i {
  color: var(--bs-primary);
  margin-left: 6px;
}

.kc-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.kc-btn-pdf {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background: #dc3545;
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kc-btn-pdf:hover {
  background: #b02a37;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.kc-btn-read {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--color-teal-50);
  color: var(--bs-primary);
  border: 1px solid var(--color-teal-100);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kc-btn-read:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

.kc-disclaimer {
  font-size: 11px;
  color: var(--bs-gray);
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  line-height: 1.5;
}

.kc-disclaimer i {
  color: #f39c12;
  margin-left: 6px;
}

.kc-section-hidden {
  display: none;
}

.kc-section-active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.kc-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.kc-stat-card {
  background: #fff;
  border: 1px solid var(--color-teal-100);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.kc-stat-card:hover {
  border-color: var(--bs-primary);
  box-shadow: 0 8px 20px rgba(4, 54, 100, 0.06);
  transform: translateY(-3px);
}

.kc-stat-number {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 4px;
}

.kc-stat-label {
  font-size: 13px;
  color: var(--bs-secondary);
  font-weight: 500;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .kc-category-nav {
    gap: 6px;
  }

  .kc-cat-btn {
    padding: 5px 12px;
    font-size: 11px;
  }

  .kc-card-img-wrap {
    height: 150px;
  }

  .kc-card-body {
    padding: 14px;
  }

  .kc-card-title {
    font-size: 14px;
  }

  .kc-card-excerpt {
    font-size: 12px;
  }

  .kc-card-meta {
    font-size: 10px;
    gap: 6px;
  }

  .kc-card-refs {
    font-size: 11px;
    padding: 6px 10px;
  }

  .kc-btn-read {
    padding: 4px 10px;
    font-size: 11px;
  }

  .kc-disclaimer {
    font-size: 10px;
    padding: 8px 10px;
  }

  .kc-stats-row {
    gap: 12px;
  }

  .kc-stat-card {
    padding: 16px 14px;
  }

  .kc-stat-number {
    font-size: 20px;
  }

  .kc-stat-label {
    font-size: 11px;
  }
}

/*** Single Article (single-blog.html) Styles ***/
.sc-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 99999;
  width: 0;
  transition: width 0.1s ease;
}

.sc-article-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--bs-dark);
  line-height: 1.5;
  margin-bottom: 16px;
}

.sc-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--bs-gray);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-teal-100);
}

.sc-article-meta i {
  margin-left: 6px;
  color: var(--bs-primary);
}

.sc-article-meta strong {
  color: var(--bs-primary);
}

.sc-featured-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sc-featured-img {
  width: 100%;
  height: auto;
  display: block;
}

.sc-action-toolbar {
  display: flex;
  gap: 8px;
}

.sc-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-teal-100);
  background: #fff;
  color: var(--bs-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.sc-icon-btn:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

/* Table of Contents */
.sc-toc {
  background: var(--color-teal-50);
  border: 1px solid var(--color-teal-100);
  border-radius: 12px;
  margin-bottom: 30px;
  overflow: hidden;
}

.sc-toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--bs-primary);
  user-select: none;
}

.sc-toc-toggle {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.sc-toc-collapsed .sc-toc-toggle {
  transform: rotate(180deg);
}

.sc-toc-collapsed .sc-toc-body {
  display: none;
}

.sc-toc-body {
  padding: 0 20px 16px;
}

.sc-toc-list {
  margin: 0;
  padding-right: 20px;
}

.sc-toc-list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.sc-toc-list li a {
  color: var(--bs-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.sc-toc-list li a:hover {
  color: var(--bs-primary);
}

/* Article Body */
.sc-article-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--bs-dark);
  margin-bottom: 40px;
}

.sc-article-body h2 {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bs-primary);
  margin-top: 35px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-teal-50);
}

.sc-article-body p {
  margin-bottom: 16px;
}

.sc-article-body ul,
.sc-article-body ol {
  margin-bottom: 16px;
  padding-right: 24px;
}

.sc-article-body li {
  margin-bottom: 8px;
}

/* Key Facts Box */
.sc-key-facts {
  background: var(--color-teal-50);
  border-right: 4px solid var(--bs-primary);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 30px;
}

.sc-key-facts-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--bs-primary);
  margin-bottom: 12px;
}

.sc-key-facts ul {
  margin: 0;
  padding-right: 20px;
}

.sc-key-facts li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--bs-dark);
}

.sc-key-facts li:last-child {
  margin-bottom: 0;
}

/* Article Table */
.sc-table {
  font-size: 14px;
  margin-bottom: 24px;
}

.sc-table thead th {
  background: var(--gradient-primary);
  color: #fff;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  border: none;
  padding: 12px 16px;
}

.sc-table tbody td {
  padding: 10px 16px;
  border-color: var(--color-teal-100);
}

.sc-table tbody tr:hover {
  background: var(--color-teal-50);
}

/* References */
.sc-references {
  background: #fff;
  border: 1px solid var(--color-teal-100);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.sc-refs-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 16px;
}

.sc-refs-list {
  margin: 0;
  padding-right: 20px;
  font-size: 13px;
  color: var(--bs-secondary);
  line-height: 1.8;
}

.sc-refs-list li {
  margin-bottom: 6px;
}

/* Share Section */
.sc-share-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background: var(--color-teal-50);
  border-radius: 12px;
  margin-bottom: 16px;
}

.sc-share-label {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bs-dark);
}

.sc-share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sc-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.sc-share-whatsapp {
  background: #25D366;
}

.sc-share-facebook {
  background: #1877F2;
}

.sc-share-telegram {
  background: #0088cc;
}

.sc-share-twitter {
  background: #1A91DA;
}

.sc-share-linkedin {
  background: #0A66C2;
}

.sc-share-link {
  background: var(--bs-primary);
}

/* Citation */
.sc-citation {
  background: #fff;
  border: 1px dashed var(--color-teal-200);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.sc-citation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bs-primary);
  background: var(--color-teal-50);
  user-select: none;
}

.sc-citation-header i.bi-chevron-down {
  transition: transform 0.3s ease;
}

.sc-citation-open .sc-citation-header i.bi-chevron-down {
  transform: rotate(180deg);
}

.sc-citation-body {
  padding: 16px 20px;
  display: none;
}

.sc-citation-open .sc-citation-body {
  display: block;
  animation: fadeIn 0.3s ease;
}

.sc-citation-text {
  background: var(--color-teal-50);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--bs-secondary);
  direction: ltr;
  text-align: left;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  border: 1px solid var(--color-teal-100);
}

/* Feedback */
.sc-feedback {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--color-teal-100);
  border-radius: 12px;
  margin-bottom: 20px;
}

.sc-feedback-label {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bs-dark);
}

.sc-feedback-btn {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--color-teal-100);
  background: #fff;
  color: var(--bs-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
}

.sc-feedback-btn:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.sc-feedback-btn:disabled {
  cursor: default;
}

/* Sidebar Cards */
.sc-sidebar-card {
  background: #fff;
  border: 1px solid var(--color-teal-100);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.sc-sidebar-card:hover {
  box-shadow: 0 5px 20px rgba(4, 54, 100, 0.06);
}

.sc-sidebar-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-teal-50);
}

/* Author Card */
.sc-author-box {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.sc-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.sc-author-name {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 4px;
}

.sc-author-role {
  display: block;
  font-size: 12px;
  color: var(--bs-primary);
  font-weight: 600;
  margin-bottom: 6px;
}

.sc-author-bio {
  display: block;
  font-size: 13px;
  color: var(--bs-secondary);
  line-height: 1.5;
}

.sc-author-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid var(--color-teal-50);
}

.sc-author-stat {
  text-align: center;
}

.sc-author-stat-num {
  display: block;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bs-primary);
}

.sc-author-stat-label {
  font-size: 12px;
  color: var(--bs-gray);
}

/* Download List */
.sc-download-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  background: var(--color-teal-50);
  transition: all 0.3s ease;
  text-decoration: none;
}

.sc-download-item:hover {
  background: var(--color-teal-100);
  transform: translateX(-4px);
}

.sc-download-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #fff;
  color: var(--bs-primary);
  flex-shrink: 0;
}

.sc-download-info {
  flex: 1;
}

.sc-download-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-dark);
}

.sc-download-size {
  display: block;
  font-size: 11px;
  color: var(--bs-gray);
}

/* Tags */
.sc-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bs-primary);
  background: var(--color-teal-50);
  border: 1px solid var(--color-teal-100);
  transition: all 0.3s ease;
}

.sc-tag:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

@media (max-width: 480px) {
  .sc-article-title {
    font-size: 18px;
  }

  .sc-article-meta {
    font-size: 11px;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 18px;
  }

  .sc-article-body {
    font-size: 14px;
  }

  .sc-article-body h2 {
    font-size: 16px;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .sc-featured-img-wrap {
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .sc-key-facts {
    padding: 14px 16px;
  }

  .sc-key-facts-title {
    font-size: 14px;
  }

  .sc-key-facts li {
    font-size: 13px;
  }

  .sc-table {
    font-size: 12px;
  }

  .sc-table thead th,
  .sc-table tbody td {
    padding: 8px 10px;
  }

  .sc-references {
    padding: 16px;
  }

  .sc-refs-title {
    font-size: 15px;
  }

  .sc-refs-list {
    font-size: 12px;
  }

  .sc-refs-list li {
    margin-bottom: 4px;
  }

  .sc-share-section {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 10px;
  }

  .sc-share-label {
    font-size: 13px;
  }

  .sc-share-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .sc-citation {
    margin-bottom: 14px;
  }

  .sc-citation-header {
    font-size: 13px;
    padding: 10px 14px;
  }

  .sc-citation-body {
    padding: 12px 14px;
  }

  .sc-citation-text {
    font-size: 11px;
    padding: 10px 12px;
  }

  .sc-feedback {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .sc-feedback-label {
    font-size: 13px;
  }

  .sc-feedback-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .sc-sidebar-card {
    padding: 16px;
    margin-bottom: 16px;
  }

  .sc-sidebar-title {
    font-size: 15px;
    padding-bottom: 10px;
    margin-bottom: 14px;
  }

  .sc-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .sc-author-avatar {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .sc-author-name {
    font-size: 14px;
  }

  .sc-author-role {
    font-size: 11px;
  }

  .sc-author-bio {
    font-size: 12px;
  }

  .sc-author-stats {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
  }

  .sc-author-stat-num {
    font-size: 18px;
  }

  .sc-author-stat-label {
    font-size: 11px;
  }

  .sc-download-item {
    padding: 10px;
    gap: 10px;
  }

  .sc-download-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .sc-download-name {
    font-size: 13px;
  }

  .sc-download-size {
    font-size: 10px;
  }

  .sc-tag {
    padding: 4px 10px;
    font-size: 11px;
  }

  .sc-toc-header {
    font-size: 13px;
    padding: 10px 14px;
  }

  .sc-toc-body {
    padding: 0 14px 10px;
  }

  .sc-toc-list li {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .sc-icon-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/*** Admin Panel Styles ***/
:root {
  --admin-sidebar: 250px;
}

.admin-login-overlay,
.admin-login-overlay *,
.admin-login-overlay *::before,
.admin-login-overlay *::after,
.admin-wrapper,
.admin-wrapper *,
.admin-wrapper *::before,
.admin-wrapper *::after,
.admin-modal-overlay,
.admin-modal-overlay *,
.admin-modal-overlay *::before,
.admin-modal-overlay *::after {
  box-sizing: border-box;
}

.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: var(--gradient-dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-box {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 400px;
  max-width: 90vw;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.admin-login-box .login-logo {
  text-align: center;
  margin-bottom: 30px;
}

.admin-login-box .login-logo img {
  height: 60px;
  border-radius: 8px;
}

.admin-login-box .login-title {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--bs-dark);
  text-align: center;
  margin-bottom: 8px;
}

.admin-login-box .login-sub {
  text-align: center;
  color: var(--bs-gray);
  font-size: 14px;
  margin-bottom: 24px;
}

.admin-login-box .form-control {
  border: 1.5px solid var(--color-teal-100);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.admin-login-box .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(4, 54, 100, 0.1);
  background: #fcfdfe;
}

.admin-login-box .login-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  cursor: pointer;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.admin-login-box .login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(4, 54, 100, 0.25);
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f4f7fb;
  direction: rtl;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

.admin-sidebar {
  width: var(--admin-sidebar);
  background: var(--bs-dark);
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.admin-sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-header img {
  height: 45px;
  border-radius: 6px;
}

.admin-sidebar-header h6 {
  color: #fff;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.admin-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-right: 3px solid transparent;
  text-decoration: none;
}

.admin-sidebar .nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-sidebar .nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-right-color: var(--bs-success);
}

.admin-sidebar .nav-item i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.admin-sidebar .nav-label {
  padding: 20px 24px 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-main {
  flex: 1;
  min-width: 0;
  margin-right: var(--admin-sidebar);
  padding: 30px 40px;
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-teal-100);
}

.admin-topbar h4 {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  color: var(--bs-dark);
  margin: 0;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-topbar-left .admin-notif {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-primary);
  font-size: 18px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.admin-topbar-left .admin-notif:hover {
  background: var(--color-teal-50);
}

.admin-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--bs-danger);
  border-radius: 50%;
}

.admin-topbar-left .admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border-radius: 30px;
  border: 1px solid var(--color-teal-100);
  cursor: pointer;
}

.admin-topbar-left .admin-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.admin-topbar-left .admin-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-dark);
}

.admin-section {
  display: none;
  animation: adminFadeIn 0.3s ease;
}

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

@keyframes adminFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--color-teal-100);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.admin-stat-card:hover {
  box-shadow: 0 10px 30px rgba(4, 54, 100, 0.06);
  transform: translateY(-4px);
}

.admin-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.admin-stat-info h3 {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--bs-dark);
  margin: 0 0 2px;
}

.admin-stat-info span {
  font-size: 13px;
  color: var(--bs-gray);
}

.admin-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--color-teal-100);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.admin-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.admin-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-teal-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background-color: #fafbfc;
}

.admin-card-header h5 {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  color: var(--bs-dark);
  margin: 0;
  font-size: 18px;
}

.admin-card-body {
  padding: 24px;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  min-width: 700px;
}

.admin-table thead th {
  background: var(--color-teal-50);
  padding: 14px 18px;
  font-weight: 700;
  color: var(--bs-primary);
  text-align: right;
  border-bottom: 2px solid var(--color-teal-100);
  white-space: nowrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-teal-50);
  vertical-align: middle;
  color: #495057;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: var(--color-teal-50);
}

.admin-table .status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
}

.status-badge.pending {
  background: #fff8e1;
  color: #f39c12;
}

.status-badge.active {
  background: #e8f5e9;
  color: #249AA0;
}

.status-badge.draft {
  background: var(--color-teal-50);
  color: var(--bs-gray);
}

.status-badge.completed {
  background: #e8f5e9;
  color: #249AA0;
}

.status-badge.cancelled {
  background: #ffebee;
  color: #dc3545;
}

.status-badge.urgent {
  background: #ffebee;
  color: #dc3545;
}

.status-badge.review {
  background: #e3f2fd;
  color: #043664;
}

.admin-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--color-teal-100);
  background: #fff;
  color: var(--bs-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 16px;
  margin-left: 4px;
}

.admin-action-btn:hover {
  background: var(--color-teal-50);
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.admin-action-btn.danger:hover {
  background: #ffebee;
  color: #dc3545;
  border-color: #dc3545;
}

.admin-btn {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.admin-btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 54, 100, 0.2);
}

.admin-btn-outline {
  background: #fff;
  color: var(--bs-primary);
  border: 1px solid var(--color-teal-100);
}

.admin-btn-outline:hover {
  background: var(--color-teal-50);
}

.admin-btn-danger {
  background: #dc3545;
  color: #fff;
}

.admin-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.admin-search-input {
  border: 1.5px solid var(--color-teal-100);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  outline: none;
  width: 280px;
  transition: all 0.3s ease;
}

.admin-search-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(4, 54, 100, 0.1);
  background: #fcfdfe;
}

.admin-filter-select {
  border: 1.5px solid var(--color-teal-100);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  outline: none;
  background: #fff;
  transition: all 0.3s ease;
}

.admin-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 0;
}

.admin-pagination .page-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--color-teal-100);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--bs-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-pagination .page-btn:hover {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}

.admin-pagination .page-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

/* Modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 30, 44, 0.5);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.admin-modal-overlay.open {
  display: flex;
}

.admin-modal {
  background: #fff;
  border-radius: 16px;
  width: 700px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
  animation: adminModalIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes adminModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.admin-modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--color-teal-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fafbfc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-modal-header h5 {
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  font-weight: 700;
  color: var(--bs-dark);
  margin: 0;
}

.admin-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--bs-gray);
  transition: all 0.2s;
}

.admin-modal-close:hover {
  background: #ffebee;
  color: #dc3545;
}

.admin-modal-body {
  padding: 30px;
}

.admin-form-group {
  margin-bottom: 20px;
}

.admin-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--bs-dark);
  margin-bottom: 8px;
}

.admin-form-group .form-control {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--color-teal-100);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  outline: none;
  background: white;
  transition: all 0.3s ease;
}

.admin-form-group .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(4, 54, 100, 0.1);
  background: #fcfdfe;
}

.admin-form-group textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.admin-form-group select.form-control {
  appearance: auto;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.admin-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-teal-100);
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

/* Settings */
.admin-settings-form {
  max-width: 900px;
}

.admin-settings-form .form-control {
  border: 1.5px solid var(--color-teal-100);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: "Jali Arabic Variable", "Barlow", sans-serif;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
  background: white;
}

.admin-settings-form .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 4px rgba(4, 54, 100, 0.1);
  background: #fcfdfe;
}

.admin-settings-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bs-dark);
  margin-bottom: 6px;
  display: block;
}

/* Chart placeholder */
.admin-chart-placeholder {
  height: 200px;
  background: var(--color-teal-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-gray);
  font-size: 14px;
  border: 1px dashed var(--color-teal-200);
}

/* Mobile toggle */
.admin-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-teal-100);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--bs-primary);
}

/* Logout button in sidebar */
.admin-logout-btn {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Recent activity list */
.admin-activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-teal-50);
  font-size: 13px;
  color: var(--bs-secondary);
}

.admin-activity-item:last-child {
  border-bottom: none;
}

.admin-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-activity-time {
  font-size: 11px;
  color: var(--bs-gray);
  margin-right: auto;
}

@media (max-width: 768px) {
  .admin-sidebar {
    right: -260px;
  }

  .admin-sidebar.open {
    right: 0;
  }

  .admin-main {
    margin-right: 0;
    padding: 16px;
  }

  .admin-mobile-toggle {
    display: flex;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
  }

  .admin-stat-card {
    padding: 16px;
  }

  .admin-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .admin-stat-info h3 {
    font-size: 20px;
  }

  .admin-card-body {
    padding: 14px;
  }

  .admin-modal {
    max-width: 98vw;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .admin-search-input {
    width: 100%;
  }

  .admin-card-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .admin-sidebar {
    right: -260px;
    width: 220px;
  }

  .admin-sidebar.open {
    right: 0;
  }

  .admin-sidebar-header {
    padding: 14px 16px;
  }

  .admin-sidebar-header img {
    height: 35px;
  }

  .admin-sidebar-header h6 {
    font-size: 12px;
    margin-top: 6px;
  }

  .admin-sidebar .nav-item {
    padding: 10px 16px;
    font-size: 13px;
    gap: 10px;
  }

  .admin-sidebar .nav-item i {
    font-size: 16px;
    width: 18px;
  }

  .admin-sidebar .nav-label {
    padding: 12px 16px 4px;
    font-size: 10px;
  }

  .admin-main {
    margin-right: 0;
    padding: 10px;
  }

  .admin-topbar {
    padding-bottom: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-topbar h4 {
    font-size: 16px;
  }

  .admin-topbar-left .admin-user {
    padding: 4px 10px 4px 4px;
  }

  .admin-topbar-left .admin-user-avatar {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .admin-topbar-left .admin-user-name {
    font-size: 11px;
  }

  .admin-topbar-left .admin-notif {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .admin-mobile-toggle {
    display: flex;
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .admin-stat-card {
    padding: 12px;
    gap: 10px;
    border-radius: 8px;
  }

  .admin-stat-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
    border-radius: 8px;
  }

  .admin-stat-info h3 {
    font-size: 17px;
  }

  .admin-stat-info span {
    font-size: 11px;
  }

  .admin-card {
    border-radius: 8px;
    margin-bottom: 14px;
  }

  .admin-card-header {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .admin-card-header h5 {
    font-size: 14px;
  }

  .admin-card-body {
    padding: 10px;
  }

  .admin-table {
    font-size: 11px;
  }

  .admin-table thead th {
    padding: 6px 8px;
    font-size: 10px;
  }

  .admin-table tbody td {
    padding: 6px 8px;
  }

  .admin-table .status-badge {
    font-size: 9px;
    padding: 2px 7px;
  }

  .admin-action-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
    border-radius: 6px;
  }

  .admin-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
  }

  .admin-search-input {
    width: 100%;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
  }

  .admin-filter-select {
    font-size: 11px;
    padding: 6px 8px;
    border-radius: 6px;
  }

  .admin-pagination .page-btn {
    width: 28px;
    height: 28px;
    font-size: 11px;
    border-radius: 6px;
  }

  .admin-modal {
    border-radius: 12px;
    max-width: 98vw;
    max-height: 85vh;
  }

  .admin-modal-header {
    padding: 12px 16px;
  }

  .admin-modal-header h5 {
    font-size: 14px;
  }

  .admin-modal-close {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .admin-modal-body {
    padding: 14px;
  }

  .admin-form-group {
    margin-bottom: 12px;
  }

  .admin-form-group label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .admin-form-group .form-control {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-modal-footer {
    padding: 12px 16px;
    gap: 8px;
  }

  .admin-login-box {
    padding: 24px;
    width: 340px;
  }

  .admin-login-box .login-title {
    font-size: 18px;
  }

  .admin-login-box .login-sub {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .admin-login-box .login-btn {
    padding: 10px;
    font-size: 14px;
  }

  .admin-chart-placeholder {
    height: 140px;
    font-size: 12px;
  }

  .admin-activity-item {
    font-size: 12px;
    padding: 8px 0;
    gap: 8px;
  }

  .admin-activity-time {
    font-size: 10px;
  }

  .admin-settings-form {
    max-width: 100%;
  }
}

/* ==========================================================================
   Border Radius Reduction for Main Containers (Aesthetic & Consistency Grid)
   ========================================================================== */
.rounded-4,
.rounded-top-4 {
  border-radius: 8px !important;
}

.rounded-3,
.rounded-top-3 {
  border-radius: 6px !important;
}

.map-container-box {
  border-radius: 8px !important;
}

.compliance-info-card {
  border-radius: 8px !important;
}

.qa-form-container {
  border-radius: 8px !important;
}

.pv-glass-modal {
  border-radius: 8px !important;
}

.branch-card {
  border-radius: 8px !important;
}

.supply-widget-card {
  border-radius: 8px !important;
}

.modal-content {
  border-radius: 8px !important;
}

.map-wrapper {
  border-radius: 8px !important;
}

/* Related Articles */
.related-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 4px;
}

.related-article-btn {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--color-teal-50, #e8f5e9);
  color: var(--color-teal-700, #00796b);
  text-decoration: none;
  border: 1px solid var(--color-teal-200, #b2dfdb);
  font-weight: 500;
  transition: all 0.2s ease;
}

.related-article-btn:hover {
  background: var(--color-teal-100, #c8e6c9);
  color: var(--color-teal-800, #004d40);
  border-color: var(--color-teal-300, #80cbc4);
}

/* ========== TEMPORARILY HIDDEN - START ========== */
/* Re-enable by removing these rules */

/* 1. Company address & location (footer) */
p:has(> .site-address-text) {
  display: none !important;
}

/* 2. Newsletter section (footer) */
.footer .row.g-5>.col-sm-12:last-child {
  display: none !important;
}

/* 3. Branch address lines (contact page) */
.branch-card ul li:first-of-type {
  display: none !important;
}

/* 4. Google Maps iframes (contact page) */
.map-wrapper iframe {
  display: none !important;
}

/* ========== TEMPORARILY HIDDEN - END ========== */


/* =========================================\n   Pink Accent Overrides (تأثيرات اللون المرجاني)\n   ========================================= */
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:hover {
    color: #E79FA0 !important;
}

.btn-social:hover {
    background: #E79FA0 !important;
    border-color: #E79FA0 !important;
    color: #fff !important;
}

.service-item, .feature-item, .hormone-class-card {
    border-bottom: 3px solid transparent !important;
    transition: 0.3s;
}

.service-item:hover, .feature-item:hover, .hormone-class-card:hover {
    border-bottom: 3px solid #E79FA0 !important;
}

.text-accent {
    color: #E79FA0 !important;
}


/* =========================================\n   Extra Pink Accents (لمسات إضافية باللون المرجاني)\n   ========================================= */
.topbar i {
    color: #E79FA0 !important;
}
.footer a:hover {
    color: #E79FA0 !important;
}



/* Navbar Rounded Corners & Floating Pill Fix (Requested by User) */
@media (min-width: 992px) {
  .sticky-top.bg-white {
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .navbar.bg-white {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

@media (min-width: 992px) { .sticky-top { margin-bottom: -54px !important; } }
/* =========================================
   AESTHETIC UPGRADES (Premium Feel)
   ========================================= */

/* 1. Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f8f9fa;
}
::-webkit-scrollbar-thumb {
  background: var(--bs-primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bs-secondary);
}

/* 2. Glassmorphism for Sticky Navbar */
.sticky-top.bg-white {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(4, 54, 100, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.sticky-top.bg-white.shadow-sm {
  box-shadow: 0 10px 30px rgba(4, 54, 100, 0.05) !important; /* override bootstrap shadow */
}

/* 3. Text Selection Color */
::selection {
  background-color: var(--bs-secondary);
  color: #ffffff;
}
::-moz-selection {
  background-color: var(--bs-secondary);
  color: #ffffff;
}

/* 4. Hover & Micro-animations */
.service-item, .blog-item, .pharma-card, .branch-card, .kc-stat-card, .verified-credential-card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.service-item:hover, .blog-item:hover, .pharma-card:hover, .branch-card:hover, .kc-stat-card:hover, .verified-credential-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(4, 54, 100, 0.12);
}

.btn {
  transition: all 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 54, 100, 0.15);
}

/* 5. Softer Border Radius */
.btn {
  border-radius: 8px;
}
.form-control, .form-select {
  border-radius: 8px;
}
.card, .service-item, .blog-item, .pharma-card, .branch-card, .verified-credential-card {
  border-radius: 12px;
  overflow: hidden; /* Ensures contents don't break the rounded corners */
}
