/* Add here all your CSS customizations */

/* ==========================================
   Brand Design Tokens (Aldoha: navy + red)
   ========================================== */
:root {
  --brand-navy: #1B2A5B;
  --brand-navy-dark: #131F45;
  --brand-navy-light: #2A3E7E;
  --brand-red: #D8232A;
  --brand-red-hover: #E63A40;
  --brand-red-dark: #B41C22;
  --primary: var(--brand-navy);
}

/* Primary buttons: navy fill, red accent on hover/focus */
.btn-primary {
  background-color: var(--brand-navy) !important;
  border-color: var(--brand-navy) !important;
}

.btn-primary:not(.btn-outline):hover,
.btn-primary:not(.btn-outline):focus,
.btn-primary:not(.btn-outline):active {
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
}

/* Outline + primary combo (e.g. footer "send message" button): Porto's
   built-in .btn-outline.btn-primary hardcodes a grey (#CCC) that ignores
   the skin's primary color entirely. Re-wire it to the brand colors,
   using a light/white outline since it only appears on the dark footer. */
.btn-outline.btn-primary {
  color: #fff !important;
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.btn-outline.btn-primary:hover,
.btn-outline.btn-primary:focus,
.btn-outline.btn-primary:active,
.btn-outline.btn-primary.active {
  color: #fff !important;
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
}

/* Bolder rounded corners on buttons (site-wide restyle) */
.btn:not(.rounded-0) {
  border-radius: 6px;
}

/* Required field marker */
label.required:after {
  color: var(--brand-red);
}

/* Section title divider accent */
.section-title {
  position: relative;
  text-align: center;
  border-bottom: 2px solid var(--brand-red);
  line-height: 0.1em;
  margin: 10px 0 30px;
}

.section-title span {
  background: #fff;
  padding: 0 15px;
}

/* Typography refresh: Poppins for headings, Cairo for Arabic */
h1, h2, h3, h4, h5, h6,
.section-title {
  font-family: 'Poppins', sans-serif;
}

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .section-title {
  font-family: 'Cairo', sans-serif;
}

.badge.bg-primary {
  color: #fff !important;
}

/* Home "About" section: navy -> red brand gradient */
section.section-primary.about-gradient {
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-red) 100%) !important;
}

.product-owl-carousel .owl-stage {
  display: flex !important;
}

.product-owl-carousel .owl-item {
  display: flex !important;
  flex: 1 0 auto !important;
}

.product-owl-carousel .owl-item > div {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.product-card {
  height: 100% !important;
  min-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* Breadcrumb separator arrow direction for LTR (points right '>' \f105) */
html[dir="ltr"] .page-header .breadcrumb > li + li:before,
html:not([dir="rtl"]) .page-header .breadcrumb > li + li:before {
  content: "\f105" !important;
  padding: 0 7px 0 5px !important;
}

/* Header Logo Styling */
#header .header-logo img {
  width: auto !important;
  height: 95px !important;
  max-height: 95px !important;
  object-fit: contain !important;
}

html.sticky-header-active #header .header-logo img {
  height: 55px !important;
  max-height: 55px !important;
}

/* Header navigation menu font size */
#header .header-nav nav > ul > li > a,
#header .header-nav .dropdown-item {
  font-size: 1.05rem !important;
}

/* Dropdown sub-items (slightly smaller than main header items) */
#header .header-nav .dropdown-menu .dropdown-item,
#header .header-nav .dropdown-menu li a {
  font-size: 0.92rem !important;
}

/* ==========================================
   Header Top Bar (contact info, socials, language)
   ========================================== */
.header-top-bar {
  background-color: var(--brand-navy-dark);
  font-size: 0.85rem;
  border-bottom: 0 !important;
  min-height: 0 !important;
}

#header .header-body {
  border-top: 0 !important;
}

.header-top-bar .container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header-top-contact .header-top-item {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
}

html[dir="rtl"] .header-top-contact .header-top-item {
  margin-right: 0;
  margin-left: 1.5rem;
}

.header-top-contact .header-top-item i {
  color: var(--brand-red);
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

html[dir="rtl"] .header-top-contact .header-top-item i {
  margin-right: 0;
  margin-left: 0.5rem;
}

.header-top-contact .header-top-item:hover {
  color: #fff !important;
}

.header-top-social {
  margin: 0 1.25rem 0 0;
}

html[dir="rtl"] .header-top-social {
  margin: 0 0 0 1.25rem;
}

.header-top-social .list-inline-item {
  margin-right: 0.85rem;
}

.header-top-social .list-inline-item:last-child {
  margin-right: 0;
}

html[dir="rtl"] .header-top-social .list-inline-item {
  margin-right: 0;
  margin-left: 0.85rem;
}

html[dir="rtl"] .header-top-social .list-inline-item:last-child {
  margin-left: 0;
}

.header-top-social a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

.header-top-social a:hover {
  color: var(--brand-red);
}

.header-top-lang-link {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  font-weight: 500;
}

.header-top-lang-link.active {
  color: #fff !important;
  font-weight: 700;
}

.header-top-lang-link:hover {
  color: #fff !important;
}

.header-top-lang-sep {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.4rem;
}

/* Mobile navigation & dropdown font size (Mobile AR & EN) */
@media (max-width: 991.98px) {
  #header .header-nav-main nav > ul > li > a,
  #header .header-nav-main nav > ul > li.dropdown > a {
    font-size: 1.15rem !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* Mobile dropdown sub-items slightly smaller than main nav items */
  #header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a,
  #header
    .header-nav-main
    nav
    > ul
    > li.dropdown
    .dropdown-menu
    .dropdown-item {
    font-size: 0.95rem !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

} /* Mobile home page sections spacing */
@media (max-width: 767.98px) {
  .main section.section,
  .main section.section-height-3,
  .main section.section-height-4 {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .main section .mb-5,
  .main section .pb-4,
  .main section .my-5 {
    margin-bottom: 25px !important;
    padding-bottom: 0 !important;
  }

  .main section h2.mb-5 {
    margin-bottom: 25px !important;
  }

  .main .slider-container {
    margin-bottom: 0 !important;
  }
}

/* Disable image long-press download & context menu on mobile gallery images */
@media (max-width: 991.98px) {
  .gallery-image img,
  .portfolio-item img,
  .mfp-img,
  .lb-image,
  img.mfp-img,
  [data-lightbox] img {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: none !important;
  }
}

/* ==========================================
   About Page Overrides
   ========================================== */
.about-page-header h1 {
  font-size: 2rem !important;
}

.about-page-header .breadcrumb,
.about-page-header .breadcrumb li,
.about-page-header .breadcrumb li a {
  font-size: 1.05rem !important;
}

.vision-mission-text,
.vision-mission-text *,
.about-content-text,
.about-content-text * {
  color: #212529 !important;
}

.vision-mission-icon {
  width: 50px !important;
  height: 50px !important;
  min-width: 50px !important;
}

.counter-icon-img {
  max-height: 40px !important;
}

.partner-thumb-img {
  height: 200px !important;
  width: 100% !important;
  object-fit: cover !important;
}

.partner-thumb-placeholder {
  height: 200px !important;
  width: 100% !important;
}

.partner-carousel-img {
  max-height: 110px !important;
  width: auto !important;
  margin: 0 auto !important;
}

@media (max-width: 767.98px) {
  .about-page-header h1 {
    font-size: 1.5rem !important;
  }

  .partner-thumb-img,
  .partner-thumb-placeholder {
    height: 160px !important;
  }
}

/* ==========================================
   Home Page Section Overrides
   (Header media, Main slider, Partners,
   Product/Service/Event carousel images)
   ========================================== */
.page-header-media {
  max-height: 200px !important;
}

.page-header-media-blur {
  filter: blur(5px) !important;
}

.page-header-media-fallback {
  height: 200px !important;
}

.main-slider-container {
  height: 650px;
}


.main-slider-container .tp-caption.btn,
.main-slider-container a.tp-caption.btn {
  display: inline-block !important;
  padding: 18px 54px;
  font-size: 17px;
  line-height: 1.5 !important;
  white-space: nowrap;
  color: #fff !important;
  background-color: transparent !important;
  border: 1px solid #fff !important;
  border-radius: 3px !important;
}

.main-slider-container .tp-caption.btn:hover,
.main-slider-container .tp-caption.btn:focus,
.main-slider-container a.tp-caption.btn:hover,
.main-slider-container a.tp-caption.btn:focus {
  color: #0e0e0e !important;
  background-color: #fff !important;
  border-color: #fff !important;
}

@media (max-width: 767.98px) {
  .main-slider-container .tp-caption.btn,
  .main-slider-container a.tp-caption.btn {
    padding: 13px 34px;
    font-size: 15px;
  }
}

.partner-logo-img {
  max-height: 140px !important;
  object-fit: contain !important;
}

.home-carousel-img {
  height: 200px !important;
  object-fit: cover !important;
  width: 100% !important;
}

.home-event-img {
  height: 180px !important;
  object-fit: cover !important;
}

.home-event-img-fallback {
  height: 180px !important;
}

@media (max-width: 767.98px) {
  .page-header-media,
  .page-header-media-fallback {
    max-height: 140px !important;
    height: 140px !important;
  }

  .home-carousel-img,
  .home-event-img,
  .home-event-img-fallback {
    height: 160px !important;
  }
}

/* ==========================================
   Shared Card Thumbnail Utilities
   (Articles, Services, Events index cards)
   ========================================== */
.card-thumb-crop {
  height: 220px;
  overflow: hidden;
  background: #f5f5f5;
}

.object-fit-cover {
  object-fit: cover !important;
}

@media (max-width: 767.98px) {
  .card-thumb-crop {
    height: 180px;
  }
}

/* ==========================================
   Products Overrides
   ========================================== */
.link-inherit-color {
  text-decoration: none !important;
  color: inherit !important;
}

.product-card-img {
  height: 260px !important;
  object-fit: cover !important;
}

.product-category-select {
  font-size: 1.15rem !important;
  margin-bottom: 1.5rem !important;
}
/* Container wrapper */
.custom-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Styled Select Input */
.custom-select-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none; /* Removes native browser arrow */

  width: 100%;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: #2b2f33;
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

/* Hover State */
.custom-select-input:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

/* Focus State */
.custom-select-input:focus {
  outline: none;
  border-color: #1b2a5b;
  box-shadow: 0 0 0 3px rgba(27, 42, 91, 0.15);
  background-color: #ffffff;
}

/* Custom SVG Caret Position */
.custom-select-icon {
  position: absolute;
  right: 1rem;
  pointer-events: none; /* Allows clicks to pass through to the select */
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.custom-select-wrapper:focus-within .custom-select-icon {
  color: #1b2a5b;
}

.product-card {
  transition: 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(27, 42, 91, 0.18) !important;
}

@media (max-width: 767.98px) {
  .product-card-img {
    height: 200px !important;
  }
}

/* ==========================================
   Articles & Events Detail Overrides
   ========================================== */
.detail-hero-img {
  max-height: 300px !important;
}

.recent-thumb-img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  flex-shrink: 0;
}

.attachment-card {
  border: 3px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 80px;
}

.attachment-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  .detail-hero-img {
    max-height: 220px !important;
  }
}

/* ==========================================
   Events Index Card Overrides
   ========================================== */
.event-card-img {
  min-height: 180px !important;
}

.service-card {
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.5rem rgba(27, 42, 91, 0.15) !important;
}

.service-card h4 a:hover {
  color: var(--primary);
}

/* ==========================================
   Customers Overrides
   ========================================== */
.customer-logo-img {
  height: 120px !important;
  object-fit: contain !important;
}

.customer-logo-detail {
  max-height: 180px !important;
}

.customer-card {
  transition: 0.3s ease;
}

.customer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(27, 42, 91, 0.15) !important;
}

@media (max-width: 575.98px) {
  .customer-logo-detail {
    max-height: 140px !important;
  }
}

/* ==========================================
   Services Overrides
   ========================================== */
.service-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 15px;
}

.service-content {
  font-size: 1.05rem;
  line-height: 2;
  color: #555;
}

.service-content h1,
.service-content h2,
.service-content h3,
.service-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-content p {
  margin-bottom: 1.2rem;
}

.service-content ul,
.service-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.service-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

.section-title span {
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .service-image {
    max-height: 280px;
  }

  .service-content {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* ==========================================
   Galleries Overrides
   ========================================== */
.gallery-section {
  transition: 0.3s ease;
}

.gallery-section:hover {
  box-shadow: 0 1rem 2rem rgba(27, 42, 91, 0.12) !important;
}

.gallery-title {
  transition: 0.3s;
  font-weight: 600;
}

.gallery-title:hover {
  color: var(--primary);
}

.gallery-image {
  height: 260px;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: 0.3s;
}

.gallery-image:hover img {
  transform: scale(1.08);
}

.gallery-image:hover .gallery-overlay {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .gallery-image {
    height: 200px;
  }
}

@media (max-width: 575.98px) {
  .gallery-image {
    height: 160px;
  }
}

/* ==========================================
   Home Section Background Themes
   Rotating section backgrounds: White, Soft Grey,
   Soft Ice Navy (brand navy tint), Deep Rich Navy (brand navy fill).
   ========================================== */
.bg-home-white {
  background-color: #ffffff !important;
}

.bg-home-grey {
  background-color: #f4f6f8 !important;
}

.bg-home-navy-light {
  background-color: #edf3fc !important;
}

.bg-home-navy-deep {
  background-color: var(--brand-navy) !important;
  color: #ffffff !important;
}

.bg-home-navy-deep h2,
.bg-home-navy-deep h3,
.bg-home-navy-deep h4,
.bg-home-navy-deep a:not(.btn):not(.month) {
  color: #ffffff !important;
}

.bg-home-navy-deep p,
.bg-home-navy-deep .read-more {
  color: rgba(255, 255, 255, 0.85) !important;
}

.bg-home-navy-deep .accordion-modern .card {
  background: transparent !important;
}

.bg-home-navy-deep .accordion-modern .card-header {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 6px !important;
}

.bg-home-navy-deep .accordion-modern .card-header a {
  color: #ffffff !important;
}

.bg-home-navy-deep .accordion-modern .card-body {
  background-color: rgba(0, 0, 0, 0.2) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 0 !important;
  border-radius: 0 0 6px 6px !important;
}


