body {
  direction: rtl;
  text-align: right;
  font-family: "Tajawal", sans-serif !important;
}

.logo_1 {
  max-width: 100%;
  height: auto;
}


/* تحسين عرض الأيقونات داخل الأهداف */
.bi-check-circle-fill {
  color: var(--primary-color);
}

/* كروت الأهداف الخاصة */
.border.rounded-3 {
  border-color: #eee !important;
  background: #fff;
}

.about-header {
  background-image: url("images/slide/about-header.jpg");
  background-size: cover;
  background-position: center;
}

.navbar .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 700;
}

/* ضبط اتجاه وقالب Dropdown */
.rtl-dropdown {
  direction: rtl;
  text-align: right;
  right: 0 !important;
  left: auto !important;
  transform: translateY(-10px);
}

/* ترتيب عناصر القائمة */
.rtl-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
  padding: 10px 14px;
}

/* أيقونات */
.rtl-dropdown .dropdown-item i {
  font-size: 16px;
  color: var(--primary-color);
}

/* تأثير hover أنعم */
.rtl-dropdown .dropdown-item:hover {
  background-color: #f7f7f7;
}

/* تصغير المثلث (السهم) */
.fab-btn::after {
  display: none;
}

.fab-dropdown {
  position: fixed;
  bottom: 80px;
  right: 22px;
  /* لو بدك يمين → right:22px */
  z-index: 9999;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.fab-btn:hover,
.fab-btn:focus {
  background-color: var(--custom-btn-bg-color);
  color: #fff;
}

.dropdown-menu {
  min-width: 220px;
  border-radius: 12px;
}

.dropdown-item i {
  color: var(--primary-color);
}

.policy-header {
  position: relative;
  background-image: url("../images/about.jpeg");
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  color: #fff;
}

.policy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.policy-header h1,
.policy-header p {
  position: relative;
  z-index: 2;
}

.policy-header h1 {
  font-size: 42px;
  font-weight: 700;
}

.policy-header p {
  max-width: 650px;
  margin: 15px auto 0;
  font-size: 16px;
  opacity: 0.95;
}

.policy-card {
  background: #fff;
  border-radius: 18px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  height: 100%;
}

.policy-card i {
  font-size: 38px;
  color: #f1b56c;
  margin-bottom: 15px;
}

.policy-card h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.policy-card p {
  font-size: 14px;
  color: #666;
}

.policy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Animation */
.animate {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

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

.policy-readmore {
  background: transparent;
  color: #f4b266;
  padding: 6px 0;
  font-weight: 600;
  box-shadow: none;
}

.policy-readmore:hover {
  color: #e89a3f;
  transform: none;
}

.policy-readmore:hover i {
  transform: translateX(-6px);
}

/* زر قراءة المزيد */
.policy-readmore {
  background-color: #f4b266;
  /* لون أنيق متناسق */
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(244, 178, 102, 0.35);
}

/* أيقونة السهم */
.policy-readmore i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

/* Hover */
.policy-readmore:hover {
  background-color: #e89a3f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 154, 63, 0.4);
}

/* حركة السهم */
.policy-readmore:hover i {
  transform: translateX(-4px);
  /* لأن RTL */
}

/* إزالة حدود Bootstrap الافتراضية */
.policy-readmore:focus,
.policy-readmore:active {
  outline: none;
  box-shadow: none;
}

.navbar .dropdown-toggle i {
  font-size: 18px;
  color: #2c7a7b;
}

.dropdown-item:hover {
  background-color: #f1f5f9;
}

/* توحيد كل عناصر الـ navbar */
.navbar-nav .nav-item {
  margin: 0;
}

/* توحيد padding لكل الروابط */
.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

/* توحيد dropdown */
.navbar-nav .dropdown-toggle {
  padding: 0.5rem 1rem;
}

/* توحيد أيقونة اللغة */
.navbar-nav .nav-link i {
  margin-inline-end: 6px;
  font-size: 1rem;
}

/* منع اختلاف الارتفاع */
.navbar-nav {
  align-items: center;
}

/* الأنيميشن  */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

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

/* توحيد حجم صور الأخبار السريعة */
.news-block-two-col-image-wrap {
  width: 110px;
  /* تقدري تغيّريه: 100 - 130 */
  height: 85px;
  /* تقدري تغيّريه: 80 - 95 */
  flex: 0 0 110px;
  overflow: hidden;
  border-radius: 10px;
  /* اختياري يعطي نعومة */
}

/* الصورة نفسها */
.news-block-two-col-image-wrap img.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* أهم سطر: يقص الصورة بدون تشويه */
  display: block;
}

.news-block.news-block-two-col {
  align-items: center;
  gap: 10px;
  /* مسافة ثابتة بين الصورة والنص */
}

/* */

/* ===== Base ===== */
:root {
  --tl-content-width: calc(40vw - 84px);
  --tl-margin: 20px;
  --tl-spacing: 20px;
  --tl-bdrs: 6px;
  --tl-circle-size: 40px;
  --tl-icon-size: 32px;
  --tl-bdrs-icon: 100%;

  --tl-color1: #f1b56c;
  --tl-color2: #ffffff;

  --tl-color3: #87bbfe;
  --tl-color4: #555ac0;

  --tl-color5: #24b47e;
  --tl-color6: #aff1b6;
}

/* ===== Timeline Zigzag Layout (Total Parity with English - RTL) ===== */
/* ===== Timeline Zigzag Layout (EXACT Parity with English Full) ===== */
.timeline {
  display: flex;
  flex-direction: column;
  margin: var(--tl-margin) auto;
  position: relative;
  width: 100%;
}

.timeline__event {
  margin-bottom: var(--tl-spacing);
  position: relative;
  display: flex;
  margin: var(--tl-spacing) 0;
  border-radius: var(--tl-bdrs);
  align-self: center;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.timeline-logo {
  background: #fff;
  border-radius: 50% !important;
  width: 160px;
  height: 160px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), inset 0 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 30px;
  border: 4px solid #f1b56c;
}

.timeline-logo img {
  width: 100.5%;
  height: 100.5%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.timeline-logo:hover img {
  transform: scale(1.1);
}

.timeline__event__icon {
  width: 160px !important;
  height: 160px !important;
  min-width: 160px !important;
  min-height: 160px !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: hidden !important;
  margin: 0 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15), inset 0 0 10px rgba(0, 0, 0, 0.05) !important;
  order: 1 !important;
  align-self: center;
  position: relative;
  border: 4px solid #f1b56c !important;
  z-index: 5;
}

.timeline__event__date {
  order: 2;
  color: var(--tl-color2);
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--tl-color1);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 var(--tl-spacing);
  min-width: 100px;
  z-index: 2;
}

.timeline__event__content {
  order: 3;
  padding: var(--tl-spacing);
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25);
  background: #fff;
  width: var(--tl-content-width);
}

/* RTL Zigzag (Mirrored from English LTR) */
/* Odd: Icon Right(1) - Date(2) - Content Left(3) */
.timeline__event:nth-child(2n+1) {
  flex-direction: row;
}

.timeline__event:nth-child(2n+1) .timeline__event__date {
  border-radius: 0;
}

.timeline__event:nth-child(2n+1) .timeline__event__content {
  border-radius: var(--tl-bdrs) 0 0 var(--tl-bdrs);
}

/* Even: Icon Left(1) - Date(2) - Content Right(3) */
.timeline__event:nth-child(2n) {
  flex-direction: row-reverse;
}

.timeline__event:nth-child(2n) .timeline__event__date {
  border-radius: 0;
}

.timeline__event:nth-child(2n) .timeline__event__content {
  border-radius: 0 var(--tl-bdrs) var(--tl-bdrs) 0;
}

.timeline__event__title {
  font-size: 1.2rem;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--tl-color1);
  letter-spacing: 1.5px;
}

/* Responsive Timeline (Exact Parity) */
@media (max-width: 786px) {
  .timeline__event {
    flex-direction: column !important;
    width: 100%;
  }

  .timeline__event__icon {
    order: 1 !important;
    margin: 20px auto !important;
    /* Size inherited from desktop 160px for exact match */
  }

  .timeline__event__date {
    order: 2 !important;
    margin-bottom: 15px;
    border-radius: var(--tl-bdrs) !important;
  }

  .timeline__event__content {
    order: 3 !important;
    width: 100% !important;
    border-radius: var(--tl-bdrs) !important;
  }
}

/* Animations */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.delay-1s {
  animation-delay: 1s;
}

.delay-2s {
  animation-delay: 2s;
}

.delay-3s {
  animation-delay: 3s;
}

/* Scroll Animation Classes */
.js-scroll-hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.3, 0.1, 0.3, 1),
    transform 0.8s cubic-bezier(0.3, 0.1, 0.3, 1);
}

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

.timeline__event:nth-child(1) {
  transition-delay: 0ms;
}

.timeline__event:nth-child(2) {
  transition-delay: 80ms;
}

.timeline__event:nth-child(3) {
  transition-delay: 160ms;
}

.timeline__event:nth-child(4) {
  transition-delay: 240ms;
}

.timeline__event:nth-child(5) {
  transition-delay: 320ms;
}

.project-main-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.stat-box {
  background: #f5f7fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

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

.gallery-item img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

#hero-slide .carousel-item {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#hero-slide .carousel-item img,
#hero-slide .carousel-item .carousel-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  max-height: none !important;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.45);
  padding: 20px 25px;
  border-radius: 16px;
  max-width: 600px;
  margin: auto;
}

.carousel-caption p {
  color: #e5e7eb;
}

/* ============ Scroll Animations (Lightweight) ============ */
[data-anim] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

[data-anim].in-view {
  opacity: 1;
  transform: none;
}

/* Variants */
[data-anim="fade-up"] {
  transform: translateY(18px);
}

[data-anim="fade-down"] {
  transform: translateY(-18px);
}

[data-anim="fade-right"] {
  transform: translateX(18px);
}

/* RTL friendly: right */
[data-anim="fade-left"] {
  transform: translateX(-18px);
}

[data-anim="zoom-in"] {
  transform: scale(0.96);
}

[data-anim="zoom-out"] {
  transform: scale(1.04);
}

[data-anim].in-view[data-anim="zoom-in"],
[data-anim].in-view[data-anim="zoom-out"] {
  transform: none;
}

/* Stagger via inline style or CSS variable */
[data-anim][data-delay] {
  transition-delay: var(--delay, 0ms);
}

/* Respect reduced motion or small screens fallback */
@media (max-width: 767px) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ✅ Page Loader Overlay */
.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10000;

  /* خلفية ضبابية */
  background: rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  transition: opacity .25s ease, visibility .25s ease;
}

.page-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}



.page-loader__logo {
  width: 84px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  animation: loaderPulse 1.1s ease-in-out infinite;
}

.page-loader__text {
  margin: 0;
  font-size: 14px;
  color: #333;
  opacity: .9;
}

@keyframes loaderPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .9;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

/* احترام تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .page-loader__logo {
    animation: none;
  }
}

/* ===== Animated Background ===== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.1, 0, 0.2, 1);
}

.navbar {
  background: var(--white-color);
  z-index: 10;
  position: relative;
  padding-top: 0;
  padding-bottom: 0;
}

.particle {
  position: absolute;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  will-change: transform, opacity;
  animation: trail-drift 1.5s forwards ease-out;
}

@keyframes trail-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(var(--tx), var(--ty)) scale(0.1);
    opacity: 0;
  }
}


/* ============ Responsive Fixes ============ */

@media (max-width: 991px) {

  /* Offcanvas Styling */
  .offcanvas {
    background-color: #fff !important;
    width: 280px !important;
  }

  .offcanvas-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px;
  }

  .offcanvas-title {
    color: var(--primary-color);
    font-weight: 700;
  }

  .offcanvas-body {
    padding: 0;
  }

  .navbar-nav {
    align-items: flex-start;
    padding: 0;
    text-align: right;
  }

  .navbar .nav-link {
    padding: 15px 20px;
    width: 100%;
    border-bottom: 1px solid #f8f9fa;
    color: var(--p-color);
    font-weight: 500;
  }

  .navbar .nav-link.active {
    background-color: #fff8f0;
    color: var(--primary-color) !important;
  }

  .navbar-nav .dropdown-menu {
    border: none;
    background: #fcfcfc;
    box-shadow: none;
    margin: 0;
    padding-right: 20px;
    border-radius: 0;
  }

  .navbar-nav .dropdown-item {
    padding: 12px 20px;
  }

  .hero-section {
    padding-top: 80px;
  }

  .site-header {
    display: none;
    /* Hide top header on mobile to save space */
  }

}

@media (max-width: 820px) {

  #hero-slide .carousel-item {
    position: relative;
    height: 55vw;
    min-height: 240px;
    overflow: hidden;
  }

  #hero-slide .carousel-item img,
  #hero-slide .carousel-item .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-caption {
    max-width: 90%;
    padding: 10px 14px;
    bottom: 1.5rem;
  }

}

@media (max-width: 767px) {
  .logo {
    width: 60px;
  }

  .navbar-brand span {
    font-size: 16px;
  }

  .navbar-brand small {
    font-size: 8px;
  }

  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .custom-text-box {
    padding: 25px;
  }

  .site-footer {
    text-align: center;
  }

  .site-footer-title {
    margin-top: 20px;
  }

  .footer-menu {
    padding: 0;
  }

  .social-icon {
    justify-content: center !important;
    margin-top: 20px;
  }


  @media (max-width: 480px) {
    #hero-slide .carousel-item {
      height: 60vw;
      min-height: 200px;
    }

    .hero-slider .carousel-item img,
    .hero-slider .carousel-item .carousel-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .carousel-caption {
      padding: 8px 10px;
      font-size: 13px;
      bottom: 1rem;
    }

    .carousel-caption h3,
    .carousel-caption h4 {
      font-size: 14px;
      margin-bottom: 4px;
    }

    .carousel-caption p {
      font-size: 12px;
      margin-bottom: 0;
    }

    .hero-slider h2 {
      font-size: 16px;
    }
  }
}


/* ===== Consolidated Footer Styles (Arabic) ===== */
.site-footer {
  background-color: var(--site-footer-bg-color) !important;
  color: #fff !important;
  padding: 70px 0;
  text-align: right !important;
}

.site-footer p,
.site-footer span,
.site-footer h5,
.site-footer i,
.site-footer a:not(.footer-contact-btn) {
  color: #fff !important;
  text-align: right !important;
}

.site-footer .logo_1 {
  width: 200px !important;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: 0;
}

.site-footer-title {
  color: #fff !important;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: right !important;
}

.footer-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  column-count: 1 !important;
  text-align: right;
}

.footer-menu-item {
  list-style: none !important;
  margin-bottom: 12px;
  padding: 0 !important;
  display: block !important;
}

.footer-menu-link {
  color: #fff !important;
  opacity: 0.9;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-menu-link:hover {
  opacity: 1;
  text-decoration: underline !important;
}

.footer-contact-item {

  align-items: flex-start;
  margin-bottom: 15px;
  text-align: right;
}

.footer-contact-item i {
  margin-inline-end: 12px;
  font-size: 1.1rem;
  margin-top: 3px;
  text-align: right !important;
  color: #fff !important;
}

.footer-contact-item a,
.footer-contact-item span {
  color: #fff !important;
}

.footer-contact-btn {
  background-color: #F7941D !important;
  color: #fff !important;
  padding: 10px 25px !important;
  border-radius: 50px !important;
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  border: 2px solid #F7941D !important;
  transition: all 0.3s;
  text-align: center !important;
}

.footer-contact-btn:hover {
  background-color: #fff !important;
  color: #F7941D !important;
  border-color: #fff !important;
  transform: translateY(-2px);
}

.site-footer-bottom {
  background-color: var(--secondary-color) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
}

.social-icon {
  display: flex !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 15px;
}

.social-icon-link {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icon-link:hover {
  background: #fff !important;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
}

@media (max-width: 991px) {
  .site-footer {
    text-align: center !important;
    padding: 50px 0;
  }

  .site-footer .logo_1 {
    margin: 0 auto 30px !important;
    width: 180px !important;
  }

  .footer-contact-item {
    justify-content: center !important;
  }

  .social-icon {
    justify-content: center !important;
    margin-top: 20px;
  }

  .site-footer-bottom .row {
    flex-direction: column !important;
  }

  .copyright-text {
    margin-bottom: 15px;
  }

  .footer-menu-item {
    text-align: right !important;

  }
}

/* ==========================================
   تعديلات الفراغات والـ Slider والـ Sidebars
   ========================================== */

/* تقليل الفراغات العمودية في الأقسام */
.section-padding {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

/* تصغير أبعاد سلايدر صفحات من نحن والبرامج */
.hero-slider .carousel-item img {
  height: 48vh !important;
  object-fit: cover !important;
  width: 100% !important;
}

/* شريط الأخبار السريعة الجانبي لصفحة من نحن */
.about-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.about-sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
  margin-bottom: 20px;
  position: relative;
}

.about-sidebar-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.sidebar-news-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.sidebar-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color);
}

.sidebar-news-img-wrap {
  position: relative;
  height: 110px;
  overflow: hidden;
  background-color: #fcfcfc;
}

.sidebar-news-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.sidebar-news-card:hover .sidebar-news-img {
  transform: scale(1.05);
}

.sidebar-news-date {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(247, 148, 29, 0.9);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-top-left-radius: 8px;
  font-weight: 600;
}

/* لضبط اتجاه التاريخ في النس�
/* ============================================================
   MOBILE RESPONSIVE FIXES – Carousel Hero & General Layout
   ============================================================ */

/* ---- Tablet & Mobile (max 820px) ---- */
@media (max-width: 820px) {

  /* Hero section: auto height so image + caption both show */
  .hero-section-full-height {
    height: auto !important;
    min-height: auto !important;
  }

  /* Carousel item fills image naturally */
  #hero-slide .carousel-item {
    height: auto !important;
    min-height: auto !important;
  }

  /* Image: responsive height */
  .carousel-image {
    height: 55vw !important;
    min-height: 220px !important;
    max-height: 420px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Caption: overlay at the BOTTOM of the image, NOT below it */
  #hero-slide .carousel-caption {
    clip-path: none !important;
    position: absolute !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    min-width: 0 !important;
    min-height: auto !important;
    width: 100% !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%) !important;
    padding: 30px 16px 14px !important;
    text-align: center !important;
  }

  /* Text colours on mobile (dark overlay bg) */
  #hero-slide .carousel-caption h3,
  #hero-slide .carousel-caption h4 {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    max-width: 100% !important;
    margin: 0 auto 6px !important;
  }

  #hero-slide .carousel-caption p {
    color: #f0f0f0 !important;
    font-size: 0.85rem !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    font-weight: 400 !important;
  }
}

/* ---- Mobile (max 576px) ---- */
@media (max-width: 576px) {

  .carousel-image {
    height: 52vw !important;
    min-height: 200px !important;
    max-height: 340px !important;
  }

  #hero-slide .carousel-caption {
    padding: 25px 12px 10px !important;
  }

  #hero-slide .carousel-caption h3,
  #hero-slide .carousel-caption h4 {
    font-size: 1rem !important;
  }

  #hero-slide .carousel-caption p {
    font-size: 0.78rem !important;
  }

  /* Tighten section padding on mobile */
  .section-padding {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
  }

  /* Floating nav button: smaller on mobile */
  .floating-nav-btn {
    width: 40px !important;
    height: 40px !important;
  }

  .floating-nav-btn i {
    font-size: 18px !important;
  }

  /* Aid registration button: full width on mobile */
  #section_aid_registration .custom-btn {
    font-size: 1rem !important;
    padding: 12px 24px !important;
    width: 100%;
    display: block;
    text-align: center;
  }

  /* Fix h2 font size on small screens */
  h2 {
    font-size: 1.6rem !important;
    letter-spacing: -0.5px !important;
  }
}

/* ---- Extra Small (max 400px) ---- */
@media (max-width: 400px) {

  .carousel-image {
    height: 50vw !important;
    min-height: 180px !important;
  }

  h2 {
    font-size: 1.35rem !important;
  }

  .floating-nav-btn {
    display: none !important;
  }
}

on .custom-btn {
  font-size: 1rem !important;
  padding: 12px 24px !important;
  width: 100%;
  display: block;
  text-align: center;
}

/* Fix h2 inside sections not overflowing */
h2 {
  font-size: 1.6rem !important;
  letter-spacing: -0.5px !important;
}

/* ---- Extra Small (max 400px) ---- */
@media (max-width: 400px) {

  .carousel-image,
  #hero-slide .carousel-item {
    height: 38vh !important;
    min-height: 200px !important;
  }

  h2 {
    font-size: 1.35rem !important;
  }

  .floating-nav-btn {
    display: none !important;
  }
}