:root {
  --moj-primary-color: #3d6881;
  --moj-primaryLight-color: #6e8ea0;
  --moj-secondary-color: #8a1538;
  --moj-secondary-dark-color: #6e1030;
  --moj-light-color: #f8f9fa;
  --moj-text-color: #212529;
  --moj-gold-border: #a3937d;
  --moj-bg-light: #fcfcfc;
  --moj-black-color: #000000;
  --moj-duneLight-color: #dad4c8;
  --moj-dunemid-color: #dad4c8;
  --moj-dunemidAsh-color: #eae8e6;
  --moj-lightGray-color: #cccccc;
  --moj-ash-color: #eceae3;
  --moj-red-color: #dc2626;
  --moj-redLight-color: #fef2f2;
  --moj-success-color: #34d399;
  --moj-successLight-color: #ecfdf5;
  --moj-yellow-color: #fbbf24;
  --moj-yellowLight-color: #fffbeb;
  --moj-blue-color: #2563eb;
  --moj-blueLight-color: #eff6ff;
  --card-radius: 1rem;
  --btn-radius: 0.5rem;
  --moj-text-white: #ffffff;
  --moj-white-color: #ffffff;
  --moj-trans-white: #ffffff0d;
  --footer-border-color: rgba(255, 255, 255, 0.15);
  --icon-bg: rgba(255, 255, 255, 0.2);
  --moj-navy-color: #0d4261;
  --moj-gray-trans: #0000000a;
  --moj-navyMid-color: #9eb3c0;
  --moj-navyLight-trans: #cfd9df66;
  --moj-navyMid-trans: #cfd9df;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  color: var(--moj-text-color);
  background: #fafbfc;
}

body,
a,
button,
.btn-brand {
  -webkit-transition:
    all 400ms ease,
    outline 0ms;
  -moz-transition:
    all 400ms ease,
    outline 0ms;
  -ms-transition:
    all 400ms ease,
    outline 0ms;
  -o-transition:
    all 400ms ease,
    outline 0ms;
  transition:
    all 400ms ease,
    outline 0ms;
}

a {
  color: var(--moj-primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--moj-secondary-color);
  text-decoration: none;
}

.btn-brand {
  background-color: var(--moj-primary-color);
  color: white;
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0.5rem 1rem;
}

.btn-brand:hover {
  background-color: var(--moj-secondary-color);
}

.btn-brand-outline {
  background-color: transparent;
  color: white;
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--moj-primary-color);
  color: var(--moj-primary-color);
}

.btn-brand-outline:hover {
  background-color: var(--moj-primary-color);
  color: var(--moj-white-color);
}

.headerBannerBg {
  background: url('../img/newHeaderBg.jpg') no-repeat center;
  background-size: cover;
}

.col-container {
  display: flex;
  flex-direction: column;
}

.col-container .card {
  flex: 1;
  position: relative;
}

/* --- Global Helpers --- */
.text-primary-custom {
  color: var(--moj-primary-color);
}

.bg-secondary-custom {
  background-color: var(--moj-secondary-color);
}

.text-primary {
  color: var(--moj-primary-color) !important;
}

.text-secondary {
  color: var(--moj-secondary-color) !important;
}

.custom-navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.75rem 0;
}

.custom-navbar a,
.custom-navbar button {
  font-size: 0.9163rem;
}

.text-primaryLight {
  color: var(--moj-primaryLight-color);
}

.btn-login {
  background-color: #6e8ea0;
  border: 1px solid var(--moj-primary-color);
  color: var(--moj-white-color);
  border-radius: 3rem;
  padding: 0.5rem 1rem;
  font-size: 0.9163rem;
}

.btn-login:hover {
  background-color: var(--moj-secondary-color);
  border: 1px solid var(--moj-secondary-color);
  color: var(--moj-white-color);
}

.text-mehron {
  color: var(--moj-secondary-color) !important;
}

.lang-dropdown {
  border: 1px solid var(--moj-primary-color);
  border-radius: 3rem;
  background: transparent;
  padding: 0.5rem 1rem;
  color: var(--moj-primary-color);
  display: flex;
  align-items: center;
}

.lang-dropdown:hover {
  background-color: var(--moj-primary-color);
  border: 1px solid var(--moj-primary-color);
  color: var(--moj-white-color);
}

.flag-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  object-fit: 100%;
}

.contact-link {
  text-decoration: none;
  color: var(--moj-primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.contact-link i {
  font-size: 1.1rem;
}

.divider {
  width: 1px;
  height: 1rem;
  background-color: var(--moj-primary-color);
  opacity: 0.5;
  margin: 0 0.25rem;
}

.search-btn,
a.search-btn {
  color: var(--moj-primary-color);
  font-size: 1.1rem;
  background: none;
  border: none;
}

.site-header {
  background-color: var(--moj-text-white);
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
}

.site-header .navbar {
  padding: 0;
}

.logo-img {
  max-height: 3.4rem;
  width: auto;
  object-fit: contain;
}

.site-header .navbar-nav .nav-link {
  color: var(--moj-navy-color);
  font-weight: 400;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

.wraper-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link.show {
  color: var(--moj-primary-color);
}

.site-header .nav-link i.bi-chevron-down {
  color: var(--moj-secondary-color);
  font-size: 0.825rem;
  transition: transform 0.2s;
  text-shadow: 0 1px var(--moj-secondary-color);
}

.site-header .nav-link.show i.bi-chevron-down {
  transform: rotate(180deg);
}

.site-header .dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

.site-header .dropdown-item {
  font-size: 0.99rem;
  padding: 0.5rem 1.5rem;
}

.site-header .dropdown-item:active {
  background-color: var(--moj-primary-color);
}

.site-header .action-icons a {
  color: var(--moj-primary-color);
}

.action-icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--moj-primary-color);
  margin-bottom: 0.25rem;
}

.action-icons i {
  font-size: 1.375rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.action-icons i:hover {
  opacity: 0.8;
}

@media (max-width: 991px) {
  .site-header .navbar-collapse {
    background: var(--moj-text-white);
    z-index: 1000;
    padding: 1rem 0;
  }

  .navbar-brand {
    margin: 0;
  }

  .action-icons {
    margin-left: 0;
    margin-right: 0;
    gap: 1rem;
  }

  .site-header .navbar-nav .nav-item {
    margin: 0.5rem 0;
  }

  .site-header .navbar-nav .nav-link {
    font-size: 1.1rem;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Hero Section */
.heroBg-wraper {
  /*    background-image: url("../img/headerBG.png");*/
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-section {
  position: relative;
  width: 100%;
}

.hero-section .app-btns {
  padding: 1rem 0;
}

.hero-section .app-btns img {
  width: 7rem;
  border-radius: 0.35rem;
  background-color: var(--moj-text-white);
  display: inline-block;
  margin: 0.3rem;
}

.hero-content {
  text-align: center;
  margin-bottom: -2rem;
  padding-top: 7rem;
}

.hero-section .hero-content h1 {
  color: var(--moj-secondary-color);
  font-size: 2.475rem;
  font-weight: 600;
}

.hero-section .hero-content p {
  color: var(--moj-navy-color);
  font-size: 1.65rem;
}

.hero-section .search-wraper {
  display: flex;
  align-items: center;
  margin-top: 3rem;
}

.hero-section .search-wraper .form-control {
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  border: 1px solid rgba(207, 217, 223, 0.4);
  background: var(--moj-white-color);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.09);
}

.hero-section .search-box {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section .icon-search-btn {
  color: var(--moj-secondary-color);
  height: 1.5rem;
  width: 1.5rem;
  position: absolute;
}

.hero-section .tag-btn {
  color: var(--moj-navy-color);
  background-color: var(--moj-navyMid-trans);
  border-radius: 0.5rem;
  padding: 0.3rem 1rem;
  position: absolute;
  font-size: 0.9625rem;
}

.hero-section .icon-search-btn:hover {
  color: var(--moj-primary-color);
}

.hero-section .search-btn {
  background-color: var(--moj-primary-color);
  color: var(--moj-text-white);
  border: 1px solid var(--moj-primary-color);
  font-weight: bold;
  border-radius: 4px;
  text-wrap: nowrap;
  padding: 0.8rem 1.5rem;
}

.hero-section .search-btn:hover {
  border: 1px solid var(--moj-secondary-color);
  background-color: var(--moj-secondary-color);
  color: var(--moj-text-white);
}

/* Hero End */
/* Tabs Styling */
.widget-tabs {
  padding-bottom: 3rem;
}

.widget-tabs .navTabsHeader {
  border-bottom: 2px solid #cfd9df99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.widget-tabs .nav-tabs {
  border: 0;
  gap: 1.5rem;
  justify-content: center;
}

.widget-tabs .nav-tabs .nav-link {
  border: none;
  color: var(--moj-primary-color);
  font-weight: normal;
  padding: 1rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.widget-tabs .nav-tabs .nav-link img {
  max-height: 1.2rem;
}

.widget-tabs .nav-tabs .nav-link.active {
  color: var(--moj-secondary-color);
  border-bottom: 3px solid var(--moj-primaryLight-color);
  background: transparent;
  font-size: 1.32rem;
  font-weight: bold;
}

.widget-tabs .tab-pane {
  position: relative;
}

.widget-tabs .tab-pane:after {
  content: '';
  position: absolute;
  height: 100%;
  top: 0;
  z-index: 1;
  width: 15%;
}

.tabs-dd {
  border-radius: 0.4rem;
  border: 1px solid rgba(207, 217, 223, 0.6);
  background: var(--moj-white-color);
}

.category-card-item {
  margin-bottom: 1rem;
}

.badge-count {
  background-color: #cfd9df66;
  color: var(--moj-text-color);
  font-size: 0.825rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
}

.navTabsHeader .tabs-dd button {
  color: var(--moj-navy-color);
  position: relative;
}

.navTabsHeader .tabs-dd .dropdown-toggle::after {
  content: '\F282';
  font-family: bootstrap-icons;
  background-image: none;
  border: none;
  color: var(--moj-secondary-color);
  position: absolute;
}

.category-card {
  background: var(--moj-white-color);
  border: 1px solid #cfd9df99;
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--moj-primary-color);
  height: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.category-card:hover {
  border-color: var(--moj-primary-color);
  color: var(--moj-primary-color);
}

.category-card i.bi-chevron-left {
  color: var(--moj-secondary-color);
  font-size: 0.88rem;
}

.category-card i.bi-chevron-down {
  color: var(--moj-secondary-color);
  font-size: 0.88rem;
}

.carousel-nav-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  flex-direction: row-reverse;
}

.widget-tabs .nav-btn {
  /*background: var(--moj-white-color);
  border: 1px solid #CFD9DF99;*/
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--moj-primary-color);
}

.page-indicator {
  font-size: 1.1rem;
  color: var(--moj-primary-color);
  background: white;
  padding: 0.2rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--moj-dunemidAsh-color);
}

.page-indicator #current-page {
  color: var(--moj-secondary-color);
}

/* Main widget-tabs End */
.main-heading {
  padding: 1rem 0;
}

.main-heading h2 {
  color: var(--moj-navy-color);
  font-size: 1.65rem;
  font-weight: 700;
}

.main-heading .tagline {
  opacity: 0.7;
  color: #9eb3c0;
  font-weight: 300;
}

.amendments {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.widget-tabs {
  padding-top: 3rem;
  padding-bottom: 6rem;
}

.timeline-wrapper {
  padding: 1rem 0 4rem 0;
}

.timeline-line {
  position: absolute;
  top: 6rem;
  left: 1rem;
  right: 1rem;
  height: 3px;
  border-top: 3px dashed rgba(207, 217, 223, 1);
  z-index: 0;
}

.swiper-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.card-text {
  display: none;
}

.swiper-slide-active {
  opacity: 1;
}

.swiper-slide-active .card-text {
  display: block;
  color: var(--moj-primary-color);
  margin-top: 0.5rem;
}

.timeline-date {
  font-size: 0.99rem;
  color: rgba(207, 217, 223, 1);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  margin-top: 1.7rem;
  font-weight: 400;
}

.swiper-slide-active .timeline-date {
  color: var(--moj-primary-color);
  font-weight: 500;
  font-size: 1.32rem;
  margin-bottom: 1rem;
  margin-top: 0rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.swiper-slide-active .timeline-date span {
  display: block;
}

.timeline-dot {
  width: 1rem;
  height: 1rem;
  background: rgba(207, 217, 223, 1);
  border-radius: 50%;
  z-index: 2;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide-active .timeline-dot {
  background-color: var(--moj-primary-color);
  transform: scale(1.5);
}

.timeline-card {
  background: var(--moj-white-color);
  border: 1px solid var(--moj-dunemidAsh-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 18rem;
  text-align: center;
  transition: all 0.3s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.swiper-slide-active .timeline-card {
  background-color: #cfd9df66;
  /* Light tinted background per image */
  transform: scale(1.1);
  margin-bottom: 1rem;
}

a.timeline-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

.timeline-card .card-title span {
  display: block;
  margin-top: 0.3rem;
}

.swiper-slide-active .timeline-card .card-title span {
  display: inline-block;
}

.card-title {
  color: #3d6881;
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.6;
  font-weight: 500;
}

.card-title span,
.swiper-slide-active .card-title {
  color: var(--moj-secondary-color);
  opacity: 1;
}

.card-title.highlight {
  color: var(--moj-secondary-color);
  font-weight: normal;
}

.swiper-button-next,
.swiper-button-prev {
  background: rgba(207, 217, 223, 1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--moj-primary-color) !important;
  top: 5.2rem !important;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  max-height: 1rem;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.1rem;
  font-weight: bold;
}

/* amends end */
/* Container Background to match image */
.latest-updates {
  padding: 4rem 0;
}

.latest-updates .tab-content {
  margin-top: 1.5rem;
}

.latest-updates .nav-tabs {
  border-bottom-color: #cfd9df99;
}

.border-bottom-light {
  border-bottom: 1px solid #cfd9df99;
}

.latest-updates .nav-tabs .nav-link {
  color: var(--moj-primary-color);
  padding: 0.5rem 1rem;
}

.latest-updates .nav-tabs .nav-item.show .nav-link,
.latest-updates .nav-tabs .nav-link.active {
  border-bottom: 4px solid #6e8ea0;
  color: var(--moj-secondary-color);
  background-color: transparent;
  font-weight: bold;
}

.section-title {
  color: var(--moj-primary-color);
}

/* Tabs Styling */
.nav-tabs .nav-link {
  color: var(--moj-lightGray-color);
  border: none;
  font-size: 1.21rem;
  padding: 0.5rem 1.5rem;
  position: relative;
  background: transparent;
  font-weight: 500;
}

.widget-tabs .nav-tabs .nav-link.active {
  background: var(--moj-white-color);
  color: var(--moj-secondary-color);
  font-weight: bold;
  box-shadow: 0 -2px 6px 0 rgba(0, 0, 0, 0.05);
}

.widget-tabs .nav-tabs .nav-link span {
  color: var(--moj-secondary-color);
}

/* Law Card Styling */
.law-card {
  background-color: var(--moj-white-color);
  border-radius: var(--card-radius);
  height: 100%;
  border: 1px solid #cfd9df66;
  transition: transform 0.2s;
}

.law-card:hover {
  transform: translateY(-1px);
}

.law-number {
  color: var(--moj-primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.law-description {
  color: var(--moj-primaryLight-color);
  font-size: 1.045rem;
  line-height: 1.6;
  margin: 0;
}

/* Status Badges */
.badge-status {
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  font-size: 0.935rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Status Colors based on image */
.modified {
  background-color: var(--moj-yellowLight-color);
  color: var(--moj-yellow-color);
}

.modified .dot {
  background-color: var(--moj-yellow-color);
}

.processing {
  background-color: var(--moj-successLight-color);
  color: var(--moj-success-color);
}

.processing .dot {
  background-color: var(--moj-success-color);
}

.canceled {
  background-color: var(--moj-redLight-color);
  color: var(--moj-red-color);
}

.canceled .dot {
  background-color: var(--moj-red-color);
}

.electronic-services {
  padding: 3rem 0;
  padding-bottom: 8rem;
  background: #fff url('../img/elec-bg.png') bottom no-repeat;
}

.electronic-services .stats-section {
  padding: 0;
}

.electronic-services .stats-section .stat-card {
  border-radius: 10px;
  border: 1px solid rgba(207, 217, 223, 0.4);
  background: rgba(207, 217, 223, 0.2);
  text-align: center;
  margin-bottom: 1.5rem;
}

.electronic-services .stats-section .icon-wraper {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--moj-primary-color);
  font-size: 1.1rem;
  margin: 1rem auto;
  border-radius: 50%;
  background: rgba(207, 217, 223, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.electronic-services .stats-section .stat-card p {
  min-height: 3rem;
  color: var(--moj-secondary-color);
}

.electronic-services .owl-nav {
  display: none;
}

.aboveFooter {
  padding: 3rem 0;
  padding-bottom: 10rem;
  background: #fff url(../img/elec-bg.png) bottom no-repeat;
}

.aboveFooter .search-title {
  font-size: 1.1rem;
  color: var(--moj-primary-color);
}

/* 3. Common Card Styles */
.custom-card {
  background-color: #cfd9df33;
  border-radius: var(--card-radius);
  border: 1px solid #cfd9df66;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.custom-card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* 4. Right Column: Most Searched */

.search-title {
  color: var(--moj-primary-color);
  font-weight: 700;
  font-size: 1.21rem;
  margin-bottom: 0.5rem;
  display: block;
  text-decoration: none;
}

.search-desc {
  color: var(--moj-primaryLight-color);
  font-size: 0.99rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* 5. App Banner Section */
.app-banner {
  border-radius: 10px;
  border: 1px solid var(--secondary-a-skyline-20, #cfd9df);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: #cfd9df4d url('../img/appsBg.png') no-repeat top;
  background-size: contain;
}

.app-banner a img {
  height: 3rem;
  background: #fff;
  border-radius: 0.5rem;
  margin: 0.2rem;
}

/* 6. Tabs Section */
.aboveFooter .nav-tabs {
  border-bottom: 2px solid var(--moj-primary-color);
  margin-bottom: 2rem;
}

.aboveFooter .nav-tabs .nav-link {
  color: #3d6881;
  border: none;
  font-weight: 600;
  padding: 1rem 1.5rem;
  font-size: 1.32rem;
  background: transparent;
  font-weight: normal;
}

.aboveFooter .input-group {
  border: 1px solid #cfd9df99;
  border-radius: 0.2rem;
  padding: 0 0.5rem;
  border-radius: 0.3rem;
}

.aboveFooter .input-group select {
  background-color: white !important;
  padding: 0.4rem;
  font-weight: 400 !important;
  background-position: left;
  appearance: none;
  position: relative;
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238A1538' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.aboveFooter .input-group:after {
  position: absolute;
  content: '\F282';
  font-family: 'bootstrap-icons';
  font-size: 1.1rem;
  top: 0.7rem;
  color: var(--moj-secondary-color);
  z-index: 5;
}

.aboveFooter .nav-tabs .nav-link.active {
  color: var(--moj-navy-color);
  background-color: transparent;
  border-bottom: 4px solid var(--moj-primary-color);
  /* Thicker active border */
  margin-bottom: -2px;
  font-weight: 600;
  /* Pull it down to cover the line */
}

.aboveFooter .input-group span {
  background-color: #cfd9df66 !important;
  border-radius: 100% !important;
  margin: 0.2rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  text-align: center;
  justify-content: center;
  display: flex;
}

.aboveFooter .nav-tabs .nav-link:hover {
  border-color: transparent;
  color: var(--moj-primary-color);
}
/* Year Selector */

.form-select-year {
  border: 1px solid var(--moj-dunemidAsh-color);
  border-radius: var(--btn-radius);
  color: var(--moj-primary-color);
  font-weight: bold;
}
/* 7. File/Issue Cards */
.file-card {
  background: var(--moj-white-color);
  border: 1px solid #cfd9df66;
  border-radius: var(--card-radius);
  padding: 1rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-icon-circle {
  width: 3rem;
  height: 3rem;
  background-color: #cfd9df66;
  /* Fallback/light bg */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--moj-secondary-color);
  font-size: 1.375rem;
}

.file-year {
  color: var(--moj-primaryLight-color);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.file-issue {
  color: var(--moj-primary-color);
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.file-meta {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  color: #9eb3c0;
  font-size: 0.99rem;
}

.file-meta i {
  color: var(--moj-secondary-color);
}
/* --- Footer --- */
.moj-footer {
  background: rgba(207, 217, 223, 0.3) url('../img/footer-lines.png') repeat-y top center;
  background-size: contain;
  color: var(--moj-primary-white);
  padding-top: 2.5rem;
  position: relative;
}

.footer-chat-icon {
  position: absolute;
  top: 0;
  right: 2rem;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--moj-lightGray-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moj-secondary-color);
  font-size: 1.65rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid var(--moj-primary-color);
}

.footer-chat-icon:hover {
  background-color: var(--moj-secondary-dark-color);
  color: var(--moj-primary-color);
}

.footer-col h5 {
  font-size: 1.265rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #0d4261;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 1rem;
}

.footer-nav-list a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* RTL Alignment */
  transition: opacity 0.3s;
  font-weight: 400;
  color: #6e8ea0;
}

.footer-nav-list a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-nav-list a i {
  font-size: 1.1rem;
  color: var(--moj-secondary-color);
  text-shadow: 0 1px var(--moj-secondary-color);
}

.footer-nav-list a {
  flex-direction: row;
}

.footer-app-download-bar {
  background-color: var(--moj-navyMid-color);
  margin-top: 1rem;
}

.footer-app-download-bar p {
  color: #0d4261;
  font-weight: 600;
  font-size: 1.2375rem;
}

.moj-footer .app-btns img {
  width: 10rem;
  border-radius: 0.35rem;
  background-color: var(--moj-text-white);
  display: block;
  margin: 0.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 2.2rem;
  height: 2.2rem;
  background-color: #6e8ea0;
  color: var(--moj-white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  line-height: 0;
}

.contact-text,
a.contact-text {
  color: #0d4261;
}

.footer-bottom-bar {
  border: 1px solid var(--footer-border-color);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #9eb3c0;
  margin-top: 2rem;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.legal-links a {
  color: var(--moj-text-white);
  text-decoration: none;
  font-size: 1.045rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.social-links a {
  font-size: 1.21rem;
  transition: color 0.3s;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 100px;
  background: rgba(207, 217, 223, 0.6);
  display: flex;
  padding: 0.5rem;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  color: #6e8ea0;
}

.social-links a:hover {
  opacity: 0.8;
}

.copyright {
  text-align: center;
  font-size: 0.935rem;
  background-color: #0d4261;
  padding: 1rem 0;
  color: var(--moj-text-white);
  margin-top: 2rem;
}

.innerPagesHeaderBG header {
  background-color: var(--moj-white-color);
  box-shadow: 0px 4px 4px 0px #0000000a;
}

.search-container {
  margin: 0 auto;
  text-align: center;
  padding: 3rem 0;
}

.search-title {
  font-weight: 600;
  font-size: 1.925rem;
  margin-bottom: 10px;
  color: var(--moj-navy-color);
}

.search-subtitle {
  color: var(--moj-secondary-color);
  font-size: 1.1rem;
  margin-bottom: 40px;
  font-weight: 300;
}

.search-bar-wrap {
  background: var(--moj-text-white);
  border-radius: 0.5rem;
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0px 4px 4px 0px #0000000a;
  border: 1px solid var(--moj-gray-trans);
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  border: none;
}

.from-wraper {
  border: 1px solid var(--moj-ash-color);
  border-radius: 0.3rem;
  overflow: hidden;
}

.search-field {
  border: none;
  border-radius: 0 !important;
  padding: 1rem 0.75rem;
  font-size: 0.935rem;
  color: var(--moj-lightGray-color);
}

.search-container input[type='date']::-webkit-calendar-picker-indicator {
  filter: brightness(0) saturate(100%) invert(13%) sepia(92%) saturate(2703%) hue-rotate(327deg)
    brightness(85%) contrast(96%);
  cursor: pointer;
}

.search-container .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238A1538' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.headerBannerBg.innerPagesHeaderBG {
  background: url(../img/inner-bg.jpg) no-repeat top center;
  background-size: cover;
}

.innerPagesHeaderBG .search-bar-wrap {
  background: #e3ebef;
}

.innerPagesHeaderBG .search-bar-wrap .from-wraper {
  background-color: var(--moj-white-color);
}

/*.innerPagesHeaderBG .search-bar-wrap .btn-brand {
  opacity: 0.3;
}*/

.search-result .sub-heading {
  color: var(--moj-navy-color);
  font-weight: 500;
  font-size: 1.375rem;
}

.searchTag-nav {
  background: var(--moj-text-white);
  padding: 0.8rem 0;
  box-shadow: 0px -1px 0px 1px #0000000a;
}

.searchTag-nav .badge-filter {
  background: var(--moj-navyLight-color);
  color: var(--moj-navy-color);
  border-radius: 1rem;
  padding: 0.3rem 1rem;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.88rem;
  margin: 0.3rem;
}

.searchTag-nav .btn-edit-search {
  color: var(--moj-primary-color);
  text-decoration: none;
  margin: 0 1rem;
  display: flex;
  align-items: center;
}

.searchTag-nav .btn-edit-search span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 100%;
  background-color: var(--moj-primary-color);
  color: var(--moj-text-white);
  margin: 0 0.3rem;
}

.searchResults-card {
  padding: 2rem 0;
}

.bage-wraper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.improve-results {
  height: 100%;
  padding: 1rem 0.5rem;
}

.improve-results .accordion-item {
  border: none;
  border-radius: 0rem;
  overflow: hidden;
}

.improve-results .accordion-button {
  background-color: transparent;
  color: var(--moj-primary-color) !important;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 12px 15px;
  position: relative;
  border-bottom: 1px solid var(--moj-navyMid-color);
}

.improve-results .accordion-button:not(.collapsed) {
  color: var(--moj-primary-color);
  box-shadow: none;
}

.improve-results .accordion-button::after {
  content: '\F4FE';
  position: absolute;
  background-image: none;
  font-family: bootstrap-icons;
  color: var(--moj-primary-color);
  transform: unset;
}

.improve-results .accordion-button:not(.collapsed)::after {
  content: '\F2EA';
  transform: unset;
}

.improve-results .accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.improve-results .accordion-button .badge.bage-light {
  background: var(--moj-navyLight-trans) !important;
  color: var(--moj-secondary-color);
  border-radius: 0.3rem;
}

.badge {
  padding: 0.2rem 0.7rem;
}

.bage-light {
  background-color: var(--moj-ash-color) !important;
  border-radius: 1rem;
}

.improve-results .filter-sub-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 48%;
  /* Creates the two-column grid look */
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  width: 100%;
}

.improve-results .filter-sub-item span {
  text-align: center;
  width: 100%;
}

.improve-results .filter-sub-item .count-badge {
  text-align: center;
  width: auto;
}

.improve-results .filter-sub-item.active,
.search-result .filter-sub-item.active {
  background: rgba(138, 21, 56, 0.08);
  font-weight: 600;
}

.bage-white {
  background-color: var(--moj-text-white);
  color: var(--moj-black-color);
}

.badge {
  padding: 0.5rem 0.5rem;
  border-radius: 1rem;
}

.searchResults-card h2 {
  color: var(--moj-navy-color);
}

.search-result .btn-action-dots {
  width: 2rem;
  height: 2rem;
  background-color: var(--moj-ash-color);
  border-radius: 50%;
  border: none;
  color: var(--moj-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-result .btn-action-dots:hover,
.btn-action-dots:focus {
  background-color: var(--moj-secondary-color);
  color: var(--moj-text-white);
  box-shadow: none;
}

.search-result .dropdown-menu-custom {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 7rem;
  padding: 0.5rem 0;
  margin-top: 0.55rem !important;
  box-shadow: 0px 0px 4px 0px #00000024;
}

.improve-results .accordion-body {
  background: #cfd9df33;
  padding: 0.5rem;
}

.search-result .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: var(--moj-Grary-color);
  font-size: 0.935rem;
  font-weight: 500;
  border-bottom: 1px solid var(--moj-ash-color);
}

.search-result .dropdown-item i {
  color: #801d33;
  /* Maroon icons */
  font-size: 1.21rem;
}

.search-result .dropdown-item:hover {
  background-color: #fdf2f4;
  color: #801d33;
}

.search-result .dropdown-item:active {
  background-color: #801d33;
  color: #fff;
}

.search-result .dropdown-item:active i {
  color: #fff;
}

.search-result .filter-header {
  background: #e2e8f0;
  padding: 10px 15px;
  font-weight: bold;
  border-bottom: 1px solid #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result .filter-item {
  background: #f1f5f9;
  margin-bottom: 2px;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.search-result .filter-sub-item {
  background: #fff;
  border: 1px solid var(--moj-dunemidAsh-color);
  border-radius: 8px;
  padding: 10px 10px;
  margin: 10px 0;
  font-size: 0.88rem;
  flex: 1 1 40%;
  display: flex;
  justify-content: space-between;
  color: var(--moj-primary-color);
  width: 100%;
}

.search-result .count-badge {
  background: var(--moj-navyLight-trans);
  color: var(--moj-secondary-color);
  border-radius: 0.3rem;
  padding: 2px 8px;
  font-size: 0.825rem;
}

.search-result .result-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  border: 1px solid #edf2f7;
  border-top: 8px solid var(--moj-navyLight-trans);
}

.search-result .status-modified {
  background: #fff4e6;
  color: #f08c00;
}

.search-result .status-active {
  background: #e6fcf5;
  color: #099268;
}

.search-result .card-meta-top .badge {
  background: var(--moj-navyLight-trans);
  font-weight: normal;
  padding: 0.4rem 0.7rem;
  border-radius: 0.3rem;
  font-size: 1.1rem;
  color: var(--moj-primary-color);
  margin: 0.5rem;
}

.search-result .law-title {
  color: var(--moj-primaryLight-color);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--moj-navyLight-trans);
  padding-bottom: 1rem;
}

.searchResults-card .menu-list {
  padding: 0 0.5rem;
}

.searchResults-card .menu-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.searchResults-card .menu-list a {
  background: var(--moj-navyLight-trans);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem 0;
}

.search-result .law-excerpt {
  color: var(--moj-Grary-color);
  font-size: 0.935rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.result-card-wraper {
  display: flex;
}

.search-result .card-footer-stats {
  background: var(--moj-NavyTrans-color);
  border-radius: 1rem;
  padding: 0.7rem;
  display: flex;
  font-size: 0.88rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--moj-navyLight-trans);
}

.search-result .stat-item {
  display: flex;
  align-items: center;
  color: var(--moj-primary-color);
  border: 1px solid var(--moj-primaryLight-color);
  padding: 0 1rem;
  flex-wrap: wrap;
  margin: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.3rem;
}

.search-result .stat-item .stat-value {
  background: var(--moj-navyLight-trans);
  color: var(--moj-secondary-color);
  border-radius: 0.3rem;
  padding: 0.3rem 0.5rem;
  min-width: 1.8rem;
  text-align: center;
}

.search-result .stat-item i {
  color: var(--moj-secondary-color);
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.935rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-red {
  background-color: var(--moj-redLight-color) !important;
  color: var(--moj-red-color) !important;
  border-color: var(--moj-red-color);
}

.badge-green {
  background-color: var(--moj-successLight-color) !important;
  color: var(--moj-success-color) !important;
  border-color: var(--moj-success-color);
  border: 1px solid;
}

.badge-yeloow {
  background-color: var(--moj-yellowLight-color) !important;
  color: var(--moj-yellow-color) !important;
  border-color: var(--moj-yellow-color);
  border: 1px solid;
}

.badge-gray {
  background-color: var(--moj-grayLight-color) !important;
  color: var(--moj-gray-color) !important;
  border-color: var(--moj-gray-color);
}

.badge-blue {
  background-color: var(--moj-blueLight-color) !important;
  color: var(--moj-blue-color) !important;
  border-color: var(--moj-blue-color);
  border: 1px solid;
}

.status-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin: 0 0.3rem;
}
.status-badge.badge-yeloow .dot {
  background-color: var(--moj-yellow-color) !important;
}
.status-badge.badge-green .dot {
  background-color: var(--moj-success-color) !important;
}
.status-badge.badge-blue .dot {
  background-color: var(--moj-primary-color) !important;
}
.status-badge.badge-red .dot {
  background-color: var(--moj-red-color) !important;
}

.search-result .stat-value {
  background: var(--moj-navyLight-trans);
  color: var(--moj-secondary-color);
  padding: 0.1rem 0.8rem;
  border-radius: 0.3rem;
}

.pagination-wraper {
  margin: 2rem 0;
}

.pagination-wraper .page-link {
  border-radius: 50% !important;
  margin: 0 3px;
  color: var(--moj-navy-color);
  border: none;
  width: 2.3rem;
  height: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem;
  border-radius: 0.3rem !important;
  border: 1px solid var(--moj-navyLight-trans);
}

.pagination-wraper .page-item.active .page-link,
.pagination-wraper .page-item:hover .page-link {
  background-color: var(--moj-primary-color);
  color: var(--moj-text-white);
}

.pagination-wraper nav {
  display: flex;
  justify-content: end;
  align-items: center;
}

.pagination-wraper p {
  color: var(--moj-primaryLight-color);
  white-space: nowrap;
  margin: 0 1rem;
  margin-bottom: 0;
}

.pagination-wraper .seclect-page {
  display: flex;
  align-items: center;
  margin: 0 1rem;
}

.search-field::placeholder {
  color: var(--moj-lightGray-color);
}

.search-field:focus {
  box-shadow: none;
  border-color: var(--moj-primary-color);
}

.search-bar-wrap button {
  width: 100%;
  padding: 1rem 1.5rem;
}

.empty-state {
  margin-top: 3rem;
}

.binocular-icon {
  background: var(--moj-navyLight-trans);
  width: 80px;
  height: 80px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.2rem;
  color: var(--moj-navy-color);
}

.empty-state p {
  color: var(--moj-navyMid-color);
  font-size: 0.9625rem;
  font-weight: 300;
  max-width: 20rem;
  margin: auto;
}

.breadcrumb-wraper {
  padding: 1rem 0;
}

.breadcrumb-wraper li {
  padding: 1rem 0;
  font-size: 0.9625rem;
  color: var(--moj-primary-color);
}

.breadcrumb-wraper li a {
  padding: 1rem 0;
  color: var(--moj-primary-color);
  text-decoration: underline;
}

.breadcrumb-wraper .breadcrumb-item + .breadcrumb-item::before {
  content: var(--bs-breadcrumb-divider, '/');
  color: var(--moj-primaryLight-color);
}

.legislation-details {
  padding: 2rem 0;
}

.legislation-details .card {
  border-radius: 0.65rem;
  border: 1px solid var(--moj-ash-color);
  margin-top: 1rem;
}

.legislation-details .law-title {
  color: var(--moj-navy-color);
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: justify;
}

.legislation-details .group-label {
  display: inline-flex;
  align-items: center;
  color: var(--moj-secondary-color);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  padding-inline-start: 0.6rem;
  border-inline-start: 3px solid var(--moj-secondary-color);
}

.legislation-details .capsule-item {
  background: var(--moj-navyLight-trans);
  color: var(--moj-primary-color);
  padding: 0.3rem 0.5rem;
  margin: 0 4px;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-bottom: 0.4rem;
}

.legislation-details .capsule-item span {
  background-color: var(--moj-navyMid-trans);
  color: var(--moj-primary-color);
  border-radius: 0.3rem;
  padding: 0.2rem 0.5rem;
  display: inline-block;
}

.legislation-details .card-heading h5 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--moj-navy-color);
}

.legislation-details .authority-name {
  font-weight: bold;
  color: var(--moj-primary-color);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.legislation-details .legal-body {
  font-weight: 300;
  color: var(--moj-navy-color);
}

.legislation-details .legal-body .law-ref,
.legislation-details .legal-body a {
  color: var(--moj-secondary-color);
  text-decoration: underline;
  cursor: pointer;
}

.legislation-details .article-text a {
  color: var(--moj-secondary-color);
  text-decoration: underline;
  cursor: pointer;
}

.legislation-details .legal-suite .accordion-button {
  background-color: var(--moj-navyLight-trans);
  color: var(--moj-primary-color);
  font-weight: bold;
  border-radius: 5px !important;
  border: 1px solid var(--moj-ash-color);
  box-shadow: none;
}

.legislation-details .legal-suite .accordion-button::after {
  display: none !important;
}

.legislation-details .legal-suite .article-dates-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 6px;
  font-size: 0.858rem;
  justify-content: end;
  margin: 0 0.5rem;
}

.legislation-details .legal-suite .article-date-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6c757d;
  font-weight: 400;
}

.legislation-details .legal-suite .article-date-item i {
  color: var(--moj-secondary-color);
  font-size: 0.99rem;
}

.legislation-details .legal-suite .article-date-item--cancel {
  color: #c62828;
}

.legislation-details .legal-suite .article-date-item--cancel i {
  color: #c62828;
}

.legislation-details .legal-suite .article-date-item .hijri-date {
  color: #9e9e9e;
  font-size: 0.825rem;
}

.legislation-details .legal-suite .article-relation-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--moj-ash-color);
}

.legislation-details .legal-suite .article-relation-footer-label {
  font-size: 0.88rem;
  color: #6c757d;
  font-weight: 400;
}

.legislation-details .legal-suite .article-relation-footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #e8eaf6;
  color: #283593;
  border: 1px solid #9fa8da;
}

.legislation-details .legal-suite .article-relation-footer-tag--amended {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffcc80;
}

.legislation-details .legal-suite .article-relation-footer-tag--cancelled {
  background: #ffebee;
  color: #c62828;
  border-color: #ef9a9a;
}

.legislation-details .legal-suite .article-relation-footer-tag--added {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #a5d6a7;
}

.legislation-details .legal-suite .article-relation-footer-tag--replaced {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #90caf9;
}

.legislation-details .legal-suite .accordion-button-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.legislation-details .legal-suite .btn-print-section {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  color: var(--moj-secondary-color);
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
  margin-inline-start: auto;
  line-height: 0;
}

.legislation-details .legal-suite .btn-print-section:hover {
  border-color: var(--moj-secondary-color);
}

.legislation-details .legal-suite .article-relation-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legislation-details .legal-suite .article-relation-class {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 600;
  background: #e8eaf6;
  color: #283593;
  border: 1px solid #9fa8da;
}

.legislation-details .legal-suite .article-relation-class--amended {
  background: #fff3e0;
  color: #e65100;
  border-color: #ffcc80;
}

.legislation-details .legal-suite .article-relation-class--cancelled {
  background: #ffebee;
  color: #c62828;
  border-color: #ef9a9a;
}

.legislation-details .legal-suite .article-relation-class--added {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #a5d6a7;
}

.legislation-details .legal-suite .article-relation-class--replaced {
  background: #e3f2fd;
  color: #1565c0;
  border-color: #90caf9;
}

.legislation-details .accordion-collapse {
  margin-top: 1rem;
  border: 1px solid var(--moj-ash-color);
  border-radius: 5px;
}

.legislation-details .legal-suite .article-text {
  line-height: 2;
  color: var(--moj-navy-color);
  font-weight: 300;
  text-align: justify;
}

/* ==========================================================
   Rich-content overrides for tables embedded in article HTML
   Article descriptions are user-generated HTML often exported
   from MS Word (MsoNormalTable / MsoNormal). The inline styles
   look ugly (barely-visible #f0f0f0 borders, fixed pt widths,
   excessive paragraph margins), so we override them here.
   ========================================================== */
.legislation-details .legal-suite .article-text table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0 !important;
  border: 1px solid var(--moj-ash-color) !important;
  border-collapse: collapse !important;
  background: #fff !important;
  font-size: 0.95rem;
  line-height: 1.6;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  table-layout: auto !important;
}

.legislation-details .legal-suite .article-text table td,
.legislation-details .legal-suite .article-text table th {
  border: 1px solid var(--moj-ash-color) !important;
  padding: 10px 14px !important;
  vertical-align: top !important;
  background-color: transparent !important;
  color: var(--moj-primaryLight-color);
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
}

/* Style the first row as a header (Word rarely emits <thead>) */
.legislation-details .legal-suite .article-text table thead th,
.legislation-details .legal-suite .article-text table thead td,
.legislation-details .legal-suite .article-text table > tbody > tr:first-child > td,
.legislation-details .legal-suite .article-text table > tr:first-child > td {
  background: var(--moj-navyLight-trans) !important;
  color: var(--moj-primary-color) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--moj-ash-color) !important;
}

/* Zebra striping for readability */
.legislation-details .legal-suite .article-text table > tbody > tr:nth-child(even) > td,
.legislation-details .legal-suite .article-text table > tr:nth-child(even) > td {
  background-color: rgba(207, 217, 223, 0.15) !important;
}

/* Reset the excessive margins Word applies to every paragraph inside a cell */
.legislation-details .legal-suite .article-text table p,
.legislation-details .legal-suite .article-text table .MsoNormal {
  margin: 0 0 0.35rem 0 !important;
  padding: 0 !important;
  line-height: 1.7 !important;
  color: inherit !important;
  font-family: inherit !important;
  text-align: inherit !important;
}

.legislation-details .legal-suite .article-text table p:last-child,
.legislation-details .legal-suite .article-text table .MsoNormal:last-child {
  margin-bottom: 0 !important;
}

/* Force spans inside cells to inherit the project font instead of Arial/Calibri */
.legislation-details .legal-suite .article-text table span {
  font-family: inherit !important;
}

/* Keep emphasis in header cells clean */
.legislation-details .legal-suite .article-text table > tbody > tr:first-child > td strong,
.legislation-details .legal-suite .article-text table > tbody > tr:first-child > td u {
  color: var(--moj-primary-color) !important;
  text-decoration: none !important;
}

/* ==========================================================
   RTE table style variants — emitted by the admin rich-text
   editor as classes (rte-table-*) and data-table-style attrs.
   These override the base .article-text table rules above and
   also apply to tables rendered directly inside .legal-body
   or any .legislation-details / .entity-details container.
   ========================================================== */

/* -------- 1) Highlighted header — emphasized header row -------- */
.legislation-details table.rte-table-highlighted-header,
.legislation-details table[data-table-style='highlighted-header'],
.entity-details table.rte-table-highlighted-header,
.entity-details table[data-table-style='highlighted-header'] {
  border: 1px solid var(--moj-ash-color) !important;
  border-collapse: collapse !important;
  border-radius: 6px;
  overflow: hidden;
  width: 100% !important;
  margin-bottom: 1rem !important;
}

.legislation-details table.rte-table-highlighted-header th,
.legislation-details table[data-table-style='highlighted-header'] th,
.entity-details table.rte-table-highlighted-header th,
.entity-details table[data-table-style='highlighted-header'] th {
  background-color: var(--moj-navyLight-trans) !important;
  color: var(--moj-primary-color) !important;
  font-weight: 700 !important;
  border: 1px solid var(--moj-ash-color) !important;
  padding: 10px 14px !important;
  text-align: start;
}

.legislation-details table.rte-table-highlighted-header td,
.legislation-details table[data-table-style='highlighted-header'] td,
.entity-details table.rte-table-highlighted-header td,
.entity-details table[data-table-style='highlighted-header'] td {
  border: 1px solid var(--moj-ash-color) !important;
  padding: 10px 14px !important;
  background-color: transparent !important;
  color: var(--moj-primaryLight-color) !important;
}

.legislation-details table.rte-table-highlighted-header tbody tr:nth-child(even) td,
.legislation-details table[data-table-style='highlighted-header'] tbody tr:nth-child(even) td,
.entity-details table.rte-table-highlighted-header tbody tr:nth-child(even) td,
.entity-details table[data-table-style='highlighted-header'] tbody tr:nth-child(even) td {
  background-color: rgba(207, 217, 223, 0.15) !important;
}

/* -------- 2) Uniform rows — every row looks the same -------- */
.legislation-details table.rte-table-uniform-rows,
.legislation-details table[data-table-style='uniform-rows'],
.entity-details table.rte-table-uniform-rows,
.entity-details table[data-table-style='uniform-rows'] {
  border: 1px solid var(--moj-ash-color) !important;
  border-collapse: collapse !important;
  overflow: hidden;
  width: 100% !important;
  margin-bottom: 1rem !important;
}

.legislation-details table.rte-table-uniform-rows th,
.legislation-details table.rte-table-uniform-rows td,
.legislation-details table[data-table-style='uniform-rows'] th,
.legislation-details table[data-table-style='uniform-rows'] td,
.entity-details table.rte-table-uniform-rows th,
.entity-details table.rte-table-uniform-rows td,
.entity-details table[data-table-style='uniform-rows'] th,
.entity-details table[data-table-style='uniform-rows'] td {
  background-color: transparent !important;
  color: var(--moj-primaryLight-color) !important;
  font-weight: normal !important;
  border: 1px solid var(--moj-ash-color) !important;
  padding: 10px 14px !important;
  text-align: start;
}

/* Neutralize the "first row = header" tint that the base rules apply */
.legislation-details table.rte-table-uniform-rows > tbody > tr:first-child > td,
.legislation-details table[data-table-style='uniform-rows'] > tbody > tr:first-child > td,
.entity-details table.rte-table-uniform-rows > tbody > tr:first-child > td,
.entity-details table[data-table-style='uniform-rows'] > tbody > tr:first-child > td {
  background-color: transparent !important;
  color: var(--moj-primaryLight-color) !important;
  font-weight: normal !important;
  border-bottom: 1px solid var(--moj-ash-color) !important;
}

.legislation-details table.rte-table-uniform-rows tbody tr:nth-child(even) td,
.legislation-details table.rte-table-uniform-rows thead tr:nth-child(even) th,
.legislation-details table[data-table-style='uniform-rows'] tbody tr:nth-child(even) td,
.legislation-details table[data-table-style='uniform-rows'] thead tr:nth-child(even) th,
.entity-details table.rte-table-uniform-rows tbody tr:nth-child(even) td,
.entity-details table.rte-table-uniform-rows thead tr:nth-child(even) th,
.entity-details table[data-table-style='uniform-rows'] tbody tr:nth-child(even) td,
.entity-details table[data-table-style='uniform-rows'] thead tr:nth-child(even) th {
  background-color: rgba(236, 234, 227, 0.35) !important;
}

/* -------- 3) Spaced — no borders, only vertical breathing room -------- */
.legislation-details table.rte-table-spaced,
.legislation-details table[data-table-style='spaced'],
.entity-details table.rte-table-spaced,
.entity-details table[data-table-style='spaced'] {
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 0.75rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
}

.legislation-details table.rte-table-spaced th,
.legislation-details table.rte-table-spaced td,
.legislation-details table[data-table-style='spaced'] th,
.legislation-details table[data-table-style='spaced'] td,
.entity-details table.rte-table-spaced th,
.entity-details table.rte-table-spaced td,
.entity-details table[data-table-style='spaced'] th,
.entity-details table[data-table-style='spaced'] td {
  border: none !important;
  background-color: #fcfbfb !important;
  color: var(--moj-primaryLight-color) !important;
  font-weight: normal !important;
  padding: 10px 14px !important;
  text-align: start;
}

/* Also flatten the "first row = header" tint for spaced tables */
.legislation-details table.rte-table-spaced > tbody > tr:first-child > td,
.legislation-details table[data-table-style='spaced'] > tbody > tr:first-child > td,
.entity-details table.rte-table-spaced > tbody > tr:first-child > td,
.entity-details table[data-table-style='spaced'] > tbody > tr:first-child > td {
  background-color: #fcfbfb !important;
  color: var(--moj-primaryLight-color) !important;
  font-weight: normal !important;
  border-bottom: none !important;
}

.legislation-details table.rte-table-spaced > tbody > tr:nth-child(even) > td,
.legislation-details table[data-table-style='spaced'] > tbody > tr:nth-child(even) > td,
.entity-details table.rte-table-spaced > tbody > tr:nth-child(even) > td,
.entity-details table[data-table-style='spaced'] > tbody > tr:nth-child(even) > td {
  background-color: #fcfbfb !important;
}

.legislation-details .legal-suite .action-btn {
  background: var(--moj-navyLight-trans);
  border: none;
  padding: 6px 15px;
  border-radius: 6px;
  font-size: 0.935rem;
  color: var(--moj-secondary-color);
  transition: 0.2s;
}

.legislation-details .legal-suite .action-btn i {
  color: var(--moj-primary-color);
}

.legislation-details .legal-suite .action-btn .action-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--moj-primary-color);
  color: #fff;
  font-size: 0.77rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  padding: 0 5px;
  margin-inline-start: 6px;
}

.legislation-details .legal-suite .action-btn.active .action-btn-badge {
  background: #fff;
  color: var(--moj-primary-color);
}

.legislation-details .legal-suite .action-btn.active {
  background: var(--moj-primary-color);
  color: #fff;
}

.legislation-details .legal-suite .action-btn.active i {
  color: #fff;
}

.legislation-details .legal-suite .related-almawad-panel {
  background: linear-gradient(135deg, #f8f9fd 0%, #eef1f8 100%);
  border: 1px solid var(--moj-ash-color);
  border-radius: 12px;
  padding: 20px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legislation-details .legal-suite .related-almawad-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--moj-primary-color);
}

.legislation-details .legal-suite .related-almawad-header i {
  font-size: 1.32rem;
  color: var(--moj-primary-color);
}

.legislation-details .legal-suite .related-almawad-header h6 {
  color: var(--moj-primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.legislation-details .legal-suite .related-almawad-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legislation-details .legal-suite .related-almawad-card {
  display: block;
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.legislation-details .legal-suite .related-almawad-card:hover {
  border-color: var(--moj-primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.legislation-details .legal-suite .related-almawad-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--moj-secondary-color);
  margin-bottom: 6px;
}

.legislation-details .legal-suite .related-almawad-card-title i {
  color: var(--moj-primary-color);
  font-size: 1.21rem;
}

.legislation-details .legal-suite .related-almawad-card-desc {
  color: #6c757d;
  font-size: 0.935rem;
  line-height: 1.6;
  margin-bottom: 8px;
  font-weight: 300;
}

.legislation-details .legal-suite .related-almawad-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--moj-primary-color);
  font-size: 0.935rem;
  font-weight: 500;
}

.legislation-details .legal-suite .related-almawad-card:hover .related-almawad-link {
  text-decoration: underline;
}

.legislation-details .legal-suite .related-almawad-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.legislation-details .legal-suite .relation-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.858rem;
  font-weight: 600;
  line-height: 1.5;
}

.legislation-details .legal-suite .relation-badge i {
  font-size: 0.88rem;
}

.legislation-details .legal-suite .relation-badge--from {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.legislation-details .legal-suite .relation-badge--to {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

.legislation-details .legal-suite .relation-type-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 500;
  background: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #ce93d8;
}

.legislation-details .legal-suite .sections-compact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.legislation-details .latest-updates .card {
  border-radius: 0.5rem;
  border: 1px solid var(--moj-ash-color);
}

.legislation-details .latest-updates .card h6 {
  color: var(--moj-primary-color);
}

.legislation-details .latest-updates .card p {
  color: var(--moj-black-color);
  font-weight: 300;
  margin-bottom: 0;
}

.legislation-details .latest-updates .icon-circle {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  background-color: var(--moj-navyMid-trans);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.legislation-details .index-card {
  max-width: 400px;
  background-color: #cfd9df33;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  margin-bottom: 2rem;
}

.legislation-details .index-item {
  display: flex;
  align-items: center;
  padding: 0.3rem 0;
  color: var(--moj-primary-color);
  font-weight: 500;
  cursor: pointer;
}

.legislation-details .index-item.active {
  font-weight: 600;
}

.legislation-details .chevron-left {
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--moj-secondary-color);
  display: inline-block;
}

.legislation-details .chevron-down {
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--moj-secondary-color);
  display: inline-block;
}

.legislation-details .action-menu-container {
  background-color: #f4f7f9;
  /* The exact light blue tint */
  border-radius: 20px;
  max-width: 400px;
  border: 1px solid #e9eff3;
}

.legislation-details .action-menu-container .action-item {
  display: flex;
  align-items: center;
  padding: 0.3rem;
}

.legislation-details .action-menu-container .action-item span {
  padding: 0.3rem;
}

.legislation-details .action-item {
  background-color: var(--moj-white-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.legislation-details .action-item:hover {
  border-color: var(--moj-dunemidAsh-color);
}

.legislation-details .action-text {
  color: var(--moj-primary-color);
  font-size: 0.9625rem;
}

.legislation-details .action-icon {
  color: var(--moj-secondary-color);
  font-size: 1.32rem;
  display: flex;
  align-items: center;
}

.Legislation-info .btn-brand {
  background-color: transparent;
  border: 1px solid var(--moj-primary-color);
  color: var(--moj-primary-color);
}

.more-link {
  gap: 0.5rem;
  color: var(--moj-primary-color);
  text-decoration: none;
  font-weight: 700;
  margin-top: 1rem;
}

.more-link i {
  color: var(--moj-secondary-color);
}

.newspaper-banner h6 {
  font-weight: normal;
  color: var(--moj-primary-color);
}

.newspaper-banner {
  padding-bottom: 6rem;
}

.newspaperCard-listing-porder {
  border-radius: 10px;
}
.newspaperCard-listing-porder a .qatar-card {
  margin-bottom: 0px;
}
.newspaperCard-listing {
  padding: 3rem 0;
  padding-bottom: 8rem;
  background: #fff url(../img/elec-bg.png) bottom no-repeat;
}

.newspaperCard-listing .main-heading h2 {
  color: var(--moj-secondary-color);
}

.newspaperCard-listing .qatar-card {
  border-radius: 15px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  text-align: center;
}

.newspaperCard-listing .qatar-card.highlighted-card {
  background-color: var(--moj-navyLight-trans);
}

.qatar-card.card.highlighted-card .center-contant {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.newspaperCard-listing .card-upper {
  padding: 1rem;
}

.newspaperCard-listing .logo {
  width: 3rem;
  margin-bottom: 20px;
}

.newspaperCard-listing .year {
  font-weight: 700;
  font-size: 1.65rem;
  margin-bottom: 5px;
  color: var(--moj-black-color);
}

.newspaperCard-listing .issue-number {
  color: var(--moj-secondary-color);
  font-weight: 600;
  font-size: 1.5rem;
}

.newspaperCard-listing .card-footer {
  background-color: var(--moj-navyLight-trans);
  padding: 1rem;
  position: relative;
}

.newspaperCard-listing .date-hijri,
.newspaperCard-listing .date-gregorian {
  color: var(--moj-primary-color);
  margin: 0;
  font-size: 1.21rem;
  font-weight: 500;
}

.newspaperCard-listing .qatar-card.highlighted-card h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0;
  color: var(--moj-navy-color);
}

.newspaperCard-listing .qatar-card.highlighted-card .card-footer {
  background-color: var(--moj-navyMid-trans);
  padding: 2rem 1rem;
}

.newspaperCard-listing .qatar-card.readMore-card .card-footer {
  min-height: 83px;
}

.qatar-card.readMore-card .diamond-marker {
  background-color: var(--moj-secondary-color);
}

.newspaperCard-listing .diamond-marker {
  width: 15px;
  height: 15px;
  background-color: var(--moj-navy-color);
  position: absolute;
  top: -7px;
  transform: rotate(45deg);
}

.newspaperCard-listing .readmore-wraper {
  margin-top: -3.5rem;
}

.generalizations-section {
  padding: 4rem 0;
}

.generalizations-section .card {
  border-color: var(--moj-navyLight-trans);
  border-radius: 0.8rem;
}

.generalizations-section .latest-updates .law-card {
  background-color: var(--moj-navyLight-trans);
}

.generalizations-section .Generalizations-listing .card {
  margin-bottom: 1rem;
}

.generalizations-section .Generalizations-listing .card h5 {
  color: var(--moj-secondary-color);
}

.generalizations-section .Generalizations-listing .card p {
  color: var(--moj-primary-color);
}

.generalizations-section .Generalizations-listing .law-description {
  color: var(--moj-primaryLight-color);
  font-weight: 300;
}

.fqs-section {
  padding: 3rem 0;
  position: relative;
}

.fqs-section .faq-title {
  color: #801d33;
  font-weight: 700;
  margin-bottom: 30px;
}

.fqs-section .accordion-item {
  border: none !important;
  background: transparent;
  margin-bottom: 1rem;
}

.fqs-section .accordion-button {
  background-color: var(--moj-text-white);
  color: var(--moj-black-color);
  font-weight: 500;
  border-radius: 0.3rem !important;
  padding: 1rem 1.5rem;
  box-shadow: none;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  justify-content: space-between;
  border: 1px solid #cfd9df66;
}

.fqs-section .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(12%) sepia(91%) saturate(2671%) hue-rotate(326deg)
    brightness(93%) contrast(96%);
  background-size: 1rem;
}

.fqs-section .accordion-button:focus {
  box-shadow: 0 4px 20px rgba(128, 29, 51, 0.1);
}

.fqs-section .accordion-collapse {
  background: #ffffff;
  border-radius: 0 0 15px 15px;
  margin-top: -0.6rem;
  /* Slight overlap to join with header */
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.fqs-section .accordion-body {
  padding: 25px;
  color: var(--moj-black-color);
  line-height: 1.8;
}

.innerUpdates {
  background: var(--moj-text-white);
  padding-top: 3rem;
  padding-bottom: 10rem;
  background: #fff url(../img/innerUpdates-bg.png) bottom no-repeat;
}

.innerUpdates .feature-title {
  color: var(--moj-primary-color);
}

.innerUpdates .feature-desc {
  color: var(--moj-black-color);
  font-weight: 300;
}

.innerUpdates .card {
  border: none;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.innerUpdates .card .icon-circle i {
  font-size: 3.3rem;
  color: var(--moj-primary-color);
}

.innerUpdates .card a {
  color: var(--moj-primary-color);
  text-decoration: none;
}

.download-app {
  display: flex;
  align-items: center;
}

.innerUpdates .download-app a {
  width: 100%;
  margin: 1rem 0;
  margin: 0 0.5rem;
  border-radius: 0.5rem;
}

.innerUpdates .download-app a img {
  width: 100%;
  background: #fff;
  border-radius: 0.5rem;
}

.feature-card {
  background-color: var(--moj-navyLight-trans);
  border: 1px solid #cfd9df99;
  border-radius: 1.5rem;
  padding: 2rem 0;
  text-align: center;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card h6 {
  color: var(--moj-primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.icon-circle {
  width: 5rem;
  padding: 0.5rem;
  height: 5rem;
  background-color: var(--moj-navyLight-trans);
  /* Light primary tint */
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  margin: 1rem auto;
}

.icon-circle i {
  font-size: 2.2rem;
  color: var(--moj-navy-color);
}

.feature-title {
  font-size: 1.65rem;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
}

.feature-desc {
  color: var(--moj-primary-color) !important;
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  margin-top: 1rem;
}

.feature-arrow {
  color: var(--moj-primary-color);
  font-size: 1.65rem;
  position: relative;
  z-index: 2;
  margin-top: auto;
  /* Pushes to bottom */
  transition: transform 0.3s;
}

.feature-card:hover .feature-arrow {
  transform: translateX(-5px);
}

.feature-card .card a {
  color: var(--moj-secondary-color);
}

.main-heading i {
  color: var(--moj-secondary-color);
}

.lega-thougthBanner {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--moj-navyMid-trans);
}

.lega-thougthBanner .app-btns {
  padding: 1rem 0;
  text-align: end;
}

.lega-thougthBanner .app-btns img {
  width: 7rem;
  border-radius: 0.35rem;
  background-color: var(--moj-black-color);
  display: inline-block;
  margin: 0.3rem;
}

.lega-thougthBanner .video-banner video {
  object-fit: cover;
  box-shadow: 0px 4px 4px 0px #00000029;
}

.lega-thougthBanner .video-banner {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.lega-thougthBanner .overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 60.25%, #000000 102.75%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}

.lega-thougthBanner .banner-info {
  position: absolute;
  bottom: 0rem;
  padding: 1rem;
  max-width: 40rem;
}

.lega-thougthBanner .banner-info h4 {
  font-size: 3.3rem;
  color: var(--moj-white-color);
  font-weight: 700;
}

.lega-thougthBanner .banner-info p {
  font-size: 1.65rem;
  color: var(--moj-white-color);
}

.lega-thougthBanner .legal-sercvices .main-heading {
  padding: 0;
}

.lega-thougthBanner .legal-sercvices .card {
  background: #cfd9df99;
  border: 1px solid #d9eaf0cc;
  margin-bottom: 1rem;
}

.lega-thougthBanner .legal-sercvices h3 {
  font-size: 1.1rem;
  color: var(--moj-primary-color);
  font-weight: 400;
}

.lega-thougthBanner .legal-sercvices p {
  color: var(--moj-primaryLight-color);
}

.lega-thougthBanner .legal-sercvices .card p,
.lega-thougthBanner .legal-sercvices a {
  color: var(--moj-secondary-color);
}

.lega-thougthBanner .legal-sercvices .ratio-1x1 {
  --bs-aspect-ratio: 85%;
}

.lega-thougthBanner .legal-sercvices .ratio {
  margin-bottom: 1rem;
}

.lega-thougthBanner .legal-sercvices .ratio img {
  border-radius: 0.5rem;
  object-fit: cover;
}

.lega-thougthBanner .brand-owl .owl-dot span,
.lega-thougthBanner .brand-owl .owl-dots .owl-dot span {
  background-color: var(--moj-navy-color);
}

.brand-owl .owl-dot.active span,
.brand-owl .owl-dots .owl-dot:hover span {
  background-color: var(--moj-secondary-color) !important;
}

.lega-thougthBanner .about-magazine .card {
  border: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 79.82%);
  border-radius: 0;
}

.lega-thougthBanner .img-wraper {
  height: 100%;
}

.lega-thougthBanner .img-wraper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.about-magazine {
  padding: 4rem 0;
}

.about-magazine h2 {
  font-size: 1.375rem;
  color: var(--moj-navy-color);
  padding: 0.5rem;
}

.about-magazine h2 i {
  color: var(--moj-secondary-color);
  margin: 0 0.5rem;
}

.about-magazine .card {
  border: 1px solid var(--moj-navyLight-trans);
  background: #f5f7f9;
  border-radius: 1rem;
}

.about-magazine.magazine-sec {
  padding-top: 3rem;
  padding-bottom: 10rem;
  background: #fff url(../img/innerUpdates-bg.png) bottom no-repeat;
}

.about-magazine.magazine-sec .card p {
  font-weight: 300;
  color: var(--moj-primaryLight-color);
}

.about-magazine .about-img {
  object-fit: cover;
  border-radius: 0.4rem;
}

.about-magazine p {
  font-weight: 300;
  color: var(--moj-primary-color);
  margin-top: 1rem;
}

.about-magazine .chief-editor {
  margin: 1rem 0 2rem 0;
  text-align: center;
}

.about-magazine .chief-editor h5,
.about-magazine .editorial-board h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--moj-secondary-color);
}

.about-magazine .chief-editor .name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--moj-navy-color);
}

.about-magazine .chief-editor .label,
.about-magazine .editorial-board li {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--moj-primary-color);
  margin: 0.5rem 0;
}

.about-magazine .editorial-board {
  text-align: center;
}

.cards-listing {
  padding: 2rem 0;
}

.cards-listing .card {
  background-color: transparent;
  border: none;
}

.cards-listing .card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--moj-navy-color);
  opacity: 1;
  margin-bottom: 1rem;
}

.cards-listing .card-title i {
  color: var(--moj-secondary-color);
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-group-item {
  display: flex;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--moj-ash-color) !important;
  border-radius: 0.5rem !important;
  margin-bottom: 1rem;
}

.list-group-item:last-child {
  border: none;
  margin: 0;
}

.article-link {
  color: var(--moj-primary-color);
  font-size: 1.1rem;
  line-height: 1.4;
  text-decoration: none;
  font-weight: 300;
}

.list-group-item span {
  color: var(--moj-secondary-color);
  margin: 0 0.5rem;
}

.list-group-item h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--moj-primary-color);
}

.article-link:hover {
  color: var(--moj-secondary-color);
}

.cards-listing .card-body p {
  color: var(--moj-Grary-color);
  font-weight: 300;
}

.cards-listing .newsletter-card .card-body {
  background-color: var(--moj-navyLight-trans);
  border: 1px solid var(--moj-ash-color);
  border-radius: 0.5rem;
}

.newsletter-card {
  padding: 4rem 0;
}

.newsletter-card h4 {
  color: var(--moj-navy-color);
  margin-bottom: 1rem;
  font-size: 1.65rem;
}

.newsletter-card p {
  color: var(--moj-primaryLight-color);
  margin: 1rem 0;
  font-weight: 300;
}

.custom-input {
  border-radius: 0.3rem;
  padding: 0.75rem;
  font-size: 0.9625rem;
  background-color: #fcfcfc;
  position: relative;
  border-color: var(--moj-navyMid-trans);
  border-radius: 0.5rem;
}

.newsletter-card .form-group {
  position: relative;
}

.newsletter-card .card .btn-brand {
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.newsletter-card .custom-input::placeholder {
  color: var(--moj-primary-color);
}

.newsletter-card .form-group i {
  position: absolute;
  color: var(--moj-primary-color);
  top: 0.8rem;
}

.newsletter-card .card-body {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.newsletter-card .card {
  border: 1px solid var(--moj-navyLight-trans);
  border-radius: 0.5rem;
}

.newsletter-card .card:after {
  content: '';
  position: absolute;
  background-image: url('../img/newsletter-bg.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 17%;
  height: 90%;
  bottom: 0;
  z-index: 0;
}

.legal-article-page {
  padding: 2rem 0;
}

.legal-article-page .article-title {
  font-size: 1.5125rem;
  line-height: 1.6;
  font-weight: bold;
  color: var(--moj-navy-color);
}

.legal-article-page .article-sub-title {
  font-size: 1.1125rem;
  line-height: 1.6;
  font-weight: bold;
  color: var(--moj-navy-color);
}

.legal-article-page .abstract-text {
  font-size: 1.045rem;
  line-height: 1.8;
  text-align: justify;
  color: var(--moj-Grary-color);
}

.legal-article-page .meta-box {
  text-align: center;
  font-size: 0.88rem;
  color: var(--moj-Grary-color);
}

.legal-article-page .meta-box strong {
  font-size: 1.1rem;
  color: var(--moj-primary-color);
}

.legal-article-page .metadata-bar.inner-box {
  background-color: var(--moj-text-white);
  margin-bottom: 1rem;
  box-shadow: 0px 4px 4px 0px #0000000a;
  padding: 1rem;
}

.legal-article-page .contents-card .card {
  background: #cfd9df33;
  border: 1px solid #cfd9df66;
  border-radius: 0.5rem;
}

.abstract-section .card {
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.info-card .card {
  background-color: var(--moj-navyLight-trans);
  margin-bottom: 1rem;
  border: 1px solid var(--moj-ash-color);
}

.legal-article-page .stat-card {
  background-color: var(--moj-navyLight-trans);
  border: 1px solid var(--moj-ash-color);
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-align: center;
}

.legal-article-page .stat-card .icon-wraper,
.legal-article-page .author-box .icon-wraper {
  background-color: var(--moj-navyMid-trans);
  margin: 0.5rem auto;
  border-radius: 100%;
  min-width: 3rem;
  width: 3rem;
  height: 3rem;
  display: inline-block;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moj-primary-color);
  font-size: 1.375rem;
}

.abstract-section .card {
  box-shadow: 0px 4px 4px 0px #0000000a;
  border: none;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.abstract-section .contant-wraper {
  border-top: 1px solid var(--moj-ash-color);
  border-bottom: 1px solid var(--moj-ash-color);
  background-color: var(--moj-light-color);
  padding: 1rem;
  margin-bottom: 1rem;
}

.legal-article-page .stat-card p {
  color: var(--moj-primary-color);
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.legal-article-page .stat-card h6 {
  color: var(--moj-secondary-color);
  font-weight: 600;
}

.legal-article-page .author-box a {
  color: var(--moj-secondary-color);
}

.legal-article-page .inner-box {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
}

.legal-article-page .inner-box .btn {
  width: 50%;
  border: 1px solid var(--moj-navy-color);
  color: var(--moj-navy-color);
  background: var(--moj-text-white);
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
}

.legal-article-page .inner-box .btn i {
  color: var(--moj-secondary-color);
}

.contents-card .card {
  border: none;
  border-radius: 0.5rem;
  background-color: transparent;
}

.legal-article-page .inner-box .btn:hover {
  color: var(--moj-secondary-color);
}

.legal-article-page .contents-title {
  font-size: 1.1rem;
  color: var(--moj-primary-color);
  font-weight: 600;
  font-size: 1.2375rem;
}

.legal-article-page .list-group-item h3 {
  font-weight: 600;
}

.legal-article-page .list-group-item {
  border: none;
  padding: 0.5rem 0;
}

.legal-article-page .list-group-item {
  padding: 0;
  color: var(--moj-navy-color);
  border: none !important;
}

.legal-article-page .abstract-section a {
  color: var(--moj-secondary-color);
  text-decoration: underline;
}

.legal-article-page .abstract-section .reviewer-card a {
  color: var(--moj-navy-color);
  text-decoration: none;
}

.legal-article-page .author-box {
  display: flex;
  padding: 0.35rem 0;
  align-items: center;
  color: var(--moj-primary-color);
}

.legal-article-page i {
  line-height: 0;
}

.abstract-section ul {
  list-style: none;
  padding: 0;
}

.abstract-section ul li {
  display: flex;
  align-items: start;
  margin-bottom: 0.8rem;
  color: var(--moj-primary-color);
  font-weight: 300;
}

.abstract-section a {
  color: var(--moj-secondary-color);
  text-decoration: underline;
}

.abstract-section ul li .icon-wraper {
  background-color: var(--moj-navyMid-trans);
  margin: 0 0.5rem;
  border-radius: 100%;
  min-width: 2rem;
  width: 2rem;
  height: 2rem;
  display: inline-block;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moj-primary-color);
  font-size: 1.1rem;
}

.abstract-section p,
.abstract-section span,
.abstract-section a {
  font-weight: 300;
  color: var(--moj-primary-color);
  text-decoration: none;
}

.abstract-section a:hover {
  color: var(--moj-secondary-color);
}

.about-magazine .editorial-board li {
  list-style: none;
  margin: 1rem 0;
}

.improve-results {
  position: relative;
}

.improve-results .collapse-btn img {
  width: 2rem;
}

.improve-results .collapse-btn {
  position: absolute;
  width: 2rem;
  top: 1rem;
}

.collapse-col.active .coplase-contant {
  display: none;
}

.latest-updates .fill-nav li.nav-item {
  flex: 1;
  align-items: center;
  width: 100%;
}

.latest-updates .fill-nav li.nav-item button {
  width: 100%;
}

.magazine-info {
  padding: 4rem 0;
}

.magazine-info .card {
  position: relative;
  border: 1px solid var(--moj-navyMid-trans);
  border-radius: 1rem;
  overflow: hidden;
}

.magazine-info .card p {
  color: var(--moj-primaryLight-color);
  font-weight: 300;
}

.magazine-info .card:after {
  content: '';
  position: absolute;
  background-image: url(../img/book-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  width: 15%;
  height: 100%;
  top: 0;
  z-index: 0;
}

.navbar-custom {
  display: flex;
  align-items: center;
  gap: 20px;
  direction: ltr;
  /* Keeping the group horizontal flow LTR */
}

.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid #6d8ca1;
  border-radius: 50px;
  padding: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  height: 42px;
  min-width: 150px;
}

.lang-option {
  flex: 1;
  text-align: center;
  font-size: 0.99rem;
  z-index: 2;
  color: #4a6a7e;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}
/* The sliding "pill" background */
.lang-toggle-bg {
  position: absolute;
  width: 49%;
  height: 85%;
  background-color: #6d8ca1;
  border-radius: 50px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.lang-switcher.lang-ar .lang-toggle-bg {
  transform: translateX(95%);
}

.lang-switcher.lang-ar .opt-ar {
  color: white;
}

.lang-switcher.lang-ar .gb-icon {
  display: none;
}

.lang-switcher.lang-en .opt-en {
  color: white;
}

.lang-switcher.lang-en .qatar-icon {
  display: none;
}

.lang-switcher.lang-en .lang-toggle-bg {
  width: 60%;
}
/* Flag styling */
.flag-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin: 0 6px;
  border: 1px solid #fff;
}
/* Search Icon */
.search-trigger {
  font-size: 1.65rem;
  color: #4a6a7e;
  cursor: pointer;
}
/* Responsive adjustments */
@media (max-width: 1400px) {
  .site-header .navbar-nav .nav-link {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
}

@media (max-width: 1200px) {
  .newspaper-banner {
    padding-bottom: 2rem;
  }

  .newspaperCard-listing {
    margin-top: 0rem;
  }

  .newspaperCard-listing .readmore-wraper {
    margin-top: 1rem;
  }

  .newspaperCard-listing .qatar-card.highlighted-card {
    margin-top: 0rem;
  }

  .custom-navbar a:first-child {
    margin-top: 0;
  }

  .custom-navbar a,
  .custom-navbar .dropdown {
    margin-top: 1rem;
    display: block;
  }

  header {
    padding-top: 1rem;
  }

  .hero-section .search-btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
    background-color: var(--moj-white-color);
    border: 1px solid var(--moj-primary-color);
    color: var(--moj-primary-color);
    border-radius: 0.5rem;
  }

  .widget-tabs .nav-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: start;
    border-bottom: 2px solid #cfd9df99;
  }

  .widget-tabs .navTabsHeader {
    border-bottom: none;
  }

  .navTabsHeader .tabs-dd {
    margin-top: 1rem;
  }

  .navTabsHeader .tabs-dd button,
  .navTabsHeader .tabs-dd {
    width: 100%;
  }

  .timeline-wrapper {
    padding: 0 0 4rem 0;
  }

  .latest-updates .nav-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: start;
    border-bottom: 2px solid #cfd9df99;
  }

  .latest-updates .border-bottom-light {
    border-bottom: none;
  }

  .magazine-info .card:after,
  .newsletter-card .card:after {
    display: none;
  }

  .aboveFooter {
    background: none;
  }

  .custom-card-wraper {
    padding: 3rem 0;
    padding-bottom: 10rem;
    background: #fff url(../img/elec-bg.png) bottom no-repeat;
  }

  .app-banner {
    display: flex;
    border: 1px solid var(--secondary-a-skyline-20, #cfd9df);
    padding: 1rem 1rem 10rem 1rem;
    background: #cfd9df33 url(../img/app-bg.png) no-repeat bottom center;
    background-size: contain;
    justify-content: center;
  }

  .app-banner a {
    width: 50%;
  }

  .app-banner a img {
    height: 3rem;
    border-radius: 0.2rem;
    width: calc(100% - 0.5rem);
  }

  .aboveFooter .nav-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: start;
    border-bottom: 1px solid #cfd9df99;
  }

  .year-selector-container {
    margin-top: 1rem;
    width: 100%;
  }

  .year-selector-container .form-select {
    text-align: center;
  }

  .year-selector-container i {
    color: var(--moj-primary-color) !important;
  }

  .contact-row {
    justify-content: start;
  }

  footer .mob-col {
    background: var(--moj-navyMid-color);
    margin-bottom: 0;
    padding: 1rem 0.5rem;
  }

  footer .app-btns {
    display: flex;
  }

  footer .app-btns a {
    width: 50%;
  }

  .moj-footer .app-btns img {
    width: calc(100% - 0.5rem) !important;
    height: 3rem;
    border-radius: 0.5rem;
  }

  .copyright {
    margin-top: 0;
  }

  .legal-links {
    margin: 1rem 0;
  }

  .footer-nav-list a {
    position: relative;
    display: block;
    width: 100%;
    border-bottom: 1px solid var(--moj-navyMid-color);
    padding-bottom: 0.5rem;
  }

  .footer-nav-list a i {
    position: absolute;
  }

  .wraper-brand {
    flex-direction: row-reverse;
  }

  .aboveFooter .border-bottom {
    border-bottom: none;
  }

  .hero-section .search-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 991px) {
  .footer-header {
    flex-direction: column-reverse;
  }

  .app-download-area {
    flex-direction: column;
  }

  .footer-col {
    margin-bottom: 2rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-wraper nav {
    display: block;
  }

  .pagination-wraper .seclect-page {
    margin-bottom: 1rem;
  }

  .pagination-wraper ul {
    justify-content: center !important;
  }

  .legislation-details .info-group {
    flex-wrap: wrap;
    width: 100%;
    gap: 5px;
  }

  .legislation-details .law-title {
    font-size: 1.32rem;
  }

  .feature-card {
    height: auto;
  }

  .lega-thougthBanner .banner-info h4 {
    font-size: 2.2rem;
  }

  .lega-thougthBanner .video-banner .ratio-16x9 {
    --bs-aspect-ratio: 100%;
  }

  .lega-thougthBanner .video-banner {
    margin-bottom: 2rem;
  }

  .legal-article-page .metadata-bar.inner-box {
    display: block;
  }

  .legal-article-page .metadata-bar .meta-item,
  .tabs-dd {
    margin: 0.5rem 0;
  }

  .generalizations-section .main-heading h2 {
    padding: 0.5rem 0;
  }

  .lega-thougthBanner .img-wraper {
    margin-bottom: 1rem;
  }

  .improve-results .collapse-btn {
    display: none;
  }
}

@media (max-width: 767px) {
  .electronic-services .stats-section {
    padding: 1rem;
  }

  .newsletter-card .card-body:after {
    display: none;
  }

  .hero-section .search-wraper {
    display: block;
  }

  .hero-section .search-box {
    margin-bottom: 2rem;
  }
}

@media (max-width: 567px) {
  .search-result .card-meta-top .badge {
    word-wrap: break-word;
    text-wrap: auto;
    text-align: start;
  }
}

/* 11 Mar 2026 */
.heroBg-wraper {
  background-image: none;
}

.headerBannerBg.darkHeader {
  background: url(../img/MOJ-Almeezan-Hreader-Dark.png) no-repeat top center;
  background-size: cover;
}

.darkHeader .custom-navbar a,
.darkHeader .custom-navbar button,
.darkHeader .lang-option,
.darkHeader .hero-section .hero-content h1,
.darkHeader .hero-section .hero-content p,
.darkHeader .newspaper-banner h6 {
  color: white;
}

.moj-footer.darkFooter {
  background: rgba(207, 217, 223, 0.3) url(../img/MOJ-Almeezan-Footer-Dark.png) no-repeat top center;
  background-size: cover;
}

.darkFooter .logo-img {
  filter: brightness(0) invert(1);
}

.darkFooter .footer-col h5,
.darkFooter .footer-col p,
.darkFooter .footer-nav-list a,
.darkFooter .footer-nav-list a i,
.darkFooter .contact-text,
.darkFooter a.contact-text,
.darkFooter .social-links a {
  color: white;
}

.footer-app-download-bar {
  background-color: #31617c;
  margin-top: 1rem;
}

/*11 Mar 2026 Hussain css*/
.officil-gazette .card {
  border-color: #cfd9dfcc;
  border-radius: 0.65rem;
}

.officil-gazette > .container-lg > .row > .col-container {
  flex: 0 0 auto;
}

.officil-gazette > .container-lg > .row > .col-container > .card {
  flex: none;
}

.officil-gazette .law-card {
  height: auto;
}

.officil-gazette .Generalizations-listing .card {
  border: none;
  border-bottom: 1px solid #cfd9dfcc;
  border-radius: 0;
}

.officil-gazette .law-card {
  background-color: #cfd9df33;
}

.legal-suite.officil-gazette-accordion .accordion-button {
  background-color: white;
}

.darkHeader .breadcrumb-wraper li {
  font-weight: 300;
}

.darkHeader .breadcrumb-wraper li,
.darkHeader .breadcrumb-wraper li a,
.darkHeader .breadcrumb-wraper .breadcrumb-item + .breadcrumb-item::before {
  color: var(--moj-white-color);
}

.darkHeader .breadcrumb-wraper li img {
  filter: brightness(0) saturate(100%) invert(98%) sepia(4%) saturate(383%) hue-rotate(185deg)
    brightness(117%) contrast(100%);
}

.offcial-law-accordion .accordion-button {
  display: flex;
  align-content: center;
  justify-content: space-between;
}

.offcial-law-accordion .accordion-button a {
  padding: 0 0.5rem;
}

.offcial-law-accordion .accordion-button .border-right {
  color: var(--moj-secondary-color);
}

.offcial-law-accordion .accordion-button::after {
  margin: 0;
  position: absolute;
}

.offcial-law-accordion .accordion-button .more-link {
  padding: 0 2rem;
}
.offcial-gazete-issue .accordion-button:not(.collapsed) {
  color: var(--moj-secondary-color) !important;
}
.next-pervious {
  display: flex;
  align-items: center;
  justify-content: end;
}

.next-pervious a {
  border: 1px solid #cfd9df99;
  color: var(--moj-black-color);
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  border-radius: 0.3rem;
  text-decoration: none;
  background: white;
}

.next-pervious a:hover {
  background-color: var(--moj-primary-color);
  color: var(--moj-white-color);
}

.next-pervious a i {
  color: var(--moj-primary-color);
}

.next-pervious a:hover i {
  color: var(--moj-white-color);
}

.next-pervious a.disabled {
  opacity: 0.5;
  cursor: none;
  color: #313131;
}

.next-pervious a.disabled:hover {
  color: var(--moj-white-color);
}

.offcial-gazete-issue .improve-results-wraper .card h2 {
  color: var(--moj-secondary-color);
  font-size: 1.2375rem;
}

.offcial-gazete-issue .improve-results-wraper .card p {
  color: var(--moj-primary-color);
}

.offcial-gazete-issue .improve-results {
  background: #cfd9df33;
  border: 1px solid #cfd9df66;
}

.offcial-gazete-issue .filter-sub-item {
  background: #fff;
  border: 1px solid var(--moj-dunemidAsh-color);
  border-radius: 6px;
  padding: 10px 10px;
  margin: 8px 0;
  color: var(--moj-primary-color);
  position: relative;
}

.offcial-gazete-issue .filter-sub-item.active {
  background: #cfd9df66;
  border: 1px solid #cfd9df;
}
.offcial-gazete-issue .filter-sub-item.active:after {
  content: '\F272';
  position: absolute;
  right: 0.5rem;
  top: 0.2rem;
  font-family: bootstrap-icons;
  color: #129b82;
  font-size: 1.43rem;
}
.offcial-gazete-issue .improve-results .accordion-body {
  background: #cfd9df75;
}
.get-appFooter {
  background: #3d6881;
  padding: 1rem;
  text-align: center;
  margin-top: 2rem;
}
.get-appFooter h5 {
  color: var(--moj-white-color);
}
.get-appFooter .app-btns {
  display: flex;
  align-items: center;
}
.get-appFooter .app-btns img {
  width: 10rem;
  border-radius: 0.5rem;
}
.darkFooter .contact-icon i {
  line-height: 0;
}
@media (max-width: 1200px) {
  .darkHeader .custom-navbar a,
  .darkHeader .custom-navbar .lang-dropdown {
    color: var(--moj-primary-color);
  }
  .darkHeader .custom-navbar .btn-login {
    color: var(--moj-white-color);
  }
}

.offcial-gazete-issue .improve-results .accordion-item {
  background: rgba(255, 255, 255, 0.1);
}

/* Accessibility */
.access-btn {
  border: 0;
  line-height: 1;
  font-size: 0.9625rem;
  background: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
}

.access-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-icon:after {
  content: '';
  position: relative;
  height: 1rem;
  width: 1px;
  top: 0;
  background-color: var(--moj-primary-color);
  display: inline-block;
  margin: 0 1rem;
}

.dropdown.access-icon a {
  color: var(--moj-primary-color);
}

.dropdown.access-icon .dropdown-item.active,
.dropdown.access-icon .dropdown-item:active {
  color: var(--moj-primary-color);
  text-decoration: none;
  background-color: var(--moj-white-color);
}

#bright-on,
.active #bright-off {
  display: inline-flex !important;
  pointer-events: auto;
}

#bright-off,
.active #bright-on {
  display: none !important;
  pointer-events: none;
}

.skipNav {
  position: absolute;
  top: 5px;
  z-index: -1;
  background: transparent !important;
}

.skipNav:focus-within {
  z-index: 999;
}

.skipNav .skipLink {
  opacity: 0;
  background: rgb(142 24 56 / 90%);
  height: 0;
  border: 0;
  color: var(--cgb-white-color);
  padding: 5px 15px;
  height: auto;
}

.skipNav .skipLink:focus {
  opacity: 1;
}

html[dir='ltr'] .skipNav .skipLink.ar,
html[lang='en-US'] .skipNav .skipLink.ar {
  display: none;
}

html[dir='rtl'] .skipNav .skipLink.en,
html[lang='ar'] .skipNav .skipLink.en {
  display: none;
}

.hero-section .search-wraper .form-control::placeholder {
  color: #999999;
}

.category-card-item .category-card i {
  color: var(--moj-secondary-color);
  font-size: 0.88rem;
  position: absolute;
  left: 1rem;
}

.category-card-item .category-card {
  background: #cfd9df1a;
  border: 1px solid #cfd9df66;
  justify-content: center;
}

.category-card-item .category-card {
  font-size: 0.99rem;
}

.widget-tabs .nav-tabs .nav-link.active {
  background: #cfd9df33;
}

.timeline-section .timelineSwiper .swiper-button-next i,
.timeline-section .timelineSwiper .swiper-button-prev i {
  font-size: 1.485rem;
}

.timeline-section .swiper-navigation-icon {
  display: none;
}

.ms-dropdown__btn.ms-dropdown__btn--placeholder,
.search-field::placeholder {
  color: #999999 !important;
}

.ms-dropdown__chevron {
  color: var(--moj-secondary-color) !important;
  text-shadow: 0 0 var(--moj-secondary-color) !important;
}

.span-number {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0.5rem 0.5rem;
}

.span-number i {
  color: var(--moj-secondary-color);
}

.span-number h6,
.span-number h5 {
  margin: 0;
  font-weight: 500;
  color: var(--moj-primary-color);
}
.profile-dropdown .profile-dropdown-menu {
  min-width: 13rem;
}

.card-heading-leg h6 {
  font-weight: bold;
  font-size: 1.2375rem;
  margin-top: 0.5rem;
  color: var(--moj-secondary-color);
}

.profile-dropdown .profile-dropdown-menu a.dropdown-item i {
  margin: 0 0.5rem;
  color: var(--moj-secondary-color);
}
.profile-dropdown .profile-dropdown-menu .dropdown-item-bookmark {
  padding: 0.5rem 1rem;
}
.profile-dropdown .profile-dropdown-menu .dropdown-item-bookmark i {
  margin: 0 0.5rem;
}

.offcial-gazete-issue .accordion-button:not(.collapsed) {
  color: var(--moj-secondary-color) !important;
}
.next-pervious {
  display: flex;
  align-items: center;
  justify-content: end;
}

.next-pervious a {
  border: 1px solid #cfd9df99;
  color: var(--moj-black-color);
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  border-radius: 0.3rem;
  text-decoration: none;
  background: white;
}

.next-pervious a:hover {
  background-color: var(--moj-primary-color);
  color: var(--moj-white-color);
}

.next-pervious a i {
  color: var(--moj-primary-color);
}

.next-pervious a:hover i {
  color: var(--moj-white-color);
}

.next-pervious a.disabled {
  opacity: 0.5;
  cursor: none;
  color: #313131;
}

.next-pervious a.disabled:hover {
  color: var(--moj-white-color);
}

.offcial-gazete-issue .improve-results-wraper .card h2 {
  color: var(--moj-secondary-color);
  font-size: 1.2375rem;
}

.offcial-gazete-issue .improve-results-wraper .card p {
  color: var(--moj-primary-color);
}

.offcial-gazete-issue .improve-results {
  background: #cfd9df33;
  border: 1px solid #cfd9df66;
}

.offcial-gazete-issue .filter-sub-item {
  background: #fff;
  border: 1px solid var(--moj-dunemidAsh-color);
  border-radius: 6px;
  padding: 10px 10px;
  margin: 8px 0;
  color: var(--moj-primary-color);
  position: relative;
}

.offcial-gazete-issue .filter-sub-item.active {
  background: #cfd9df66;
  border: 1px solid #cfd9df;
}
.offcial-gazete-issue .filter-sub-item.active:after {
  content: '\F272';
  position: absolute;
  right: 0.5rem;
  top: 0.2rem;
  font-family: bootstrap-icons;
  color: #129b82;
  font-size: 1.43rem;
}
.offcial-gazete-issue .improve-results .accordion-body {
  background: #cfd9df75;
}

.offcial-gazete-issue .improve-results .accordion-item {
  background: rgba(255, 255, 255, 0.1);
}

/* E-Services inline submenu inside profile dropdown */
.profile-dropdown .eservices-submenu {
  margin: 0;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 0.25rem;
}
.profile-dropdown .eservices-submenu .dropdown-item {
  padding-left: 2.5rem;
  font-size: 0.9625rem;
}
[dir='rtl'] .profile-dropdown .eservices-submenu .dropdown-item {
  padding-left: 1rem;
  padding-right: 2.5rem;
}

.legislation-details .list-unstyled .inner-list span {
  color: #6e8ea0;
  font-weight: 400;
  font-size: 15.4px;
}
.legislation-details .index-item.active strong,
.legislation-details .index-item.active span {
  font-weight: 700;
  color: var(--moj-primary-color);
}
.legislation-details .index-item span {
  color: var(--moj-primary-color);
}
.legislation-details .index-item strong {
  font-weight: 400;
}
.legislation-details span.related-almawad-details-label {
  margin: 0 0.5rem;
}
.legislation-details span.related-almawad-details-label i {
  margin: 0 0.5rem;
  color: var(--moj-secondary-color);
}
.legislation-details .legal-suite .related-almawad-card-title {
  margin: 1rem 0rem;
}
.legislation-details .metadata-row .group-label {
  margin-left: 15px;
  min-width: fit-content;
}
.profile-dropdown .profile-dropdown-menu a.dropdown-item i {
  margin: 0 0.5rem;
  color: var(--moj-secondary-color);
}
.profile-dropdown .profile-dropdown-menu .dropdown-item-bookmark {
  padding: 0.5rem 1rem;
}
.profile-dropdown .profile-dropdown-menu .dropdown-item-bookmark i {
  margin: 0 0.5rem;
}

.article-number {
  color: maroon;
}

/* Versioned mada article badge */
.badge-versioned {
  background-color: #e0e7ff;
  color: #3730a3;
  border: 1px solid #818cf8;
}

/* Subtle accent on the whole accordion item when the article is versioned */
.accordion-item--versioned {
  position: relative;
  background-color: rgba(99, 102, 241, 0.04);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(129, 140, 248, 0.35);
}

.accordion-item--versioned::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  width: 4px;
}

/* Tint the accordion header for versioned articles */
.accordion-item--versioned .accordion-header,
.accordion-item--versioned .accordion-button {
  background-color: rgba(129, 140, 248, 0.12) !important;
}

/* Add a soft indigo border to the collapse body */
.accordion-item--versioned .accordion-collapse {
  background-color: rgba(129, 140, 248, 0.05);
}

/* Optional small top-right ribbon label */
.accordion-item--versioned .accordion-header::after {
  content: attr(data-versioned-label);
  position: absolute;
  inset-inline-end: 3.25rem;
  top: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4f46e5;
  background: #e0e7ff;
  padding: 0.15em 0.6em;
  border-radius: 0.35rem;
  pointer-events: none;
}

.almawad-info-card {
  border: solid 1px;
  border-radius: 5px;
  padding: 11px 4px 0px 4px;
  background-color: var(--moj-navyLight-trans);
  color: var(--moj-primary-color);
  font-size: 13.2px;
  font-weight: bold;
  margin-bottom: 0.7rem;
}

/*Lawpage-Timeline page start css 1-Apr-2026 */

.legislation-details .legal-suite .accordion-button {
  background-color: var(--moj-navyLight-trans);
  color: var(--moj-primary-color);
  font-weight: bold;
  border-radius: 5px !important;
  border: 1px solid var(--moj-ash-color);
  box-shadow: none;
}

.legislation-details .legal-suite .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(12%) sepia(91%) saturate(2671%) hue-rotate(326deg)
    brightness(93%) contrast(96%);
}

.offcial-law-accordion .legal-suite .accordion-button {
  display: flex;
  align-content: center;
  justify-content: space-between;
}

.offcial-law-accordion .accordion-button .border-right {
  border-right: 1px solid var(--moj-primaryLight-color);
}

.offcial-law-accordion .accordion-button .border-right {
  color: var(--moj-secondary-color);
}

.legislation-details .legal-suite .accordion-button::after {
  display: none;
}

.offcial-law-accordion .accordion-button .more-link {
  padding: 0 0.5rem;
}

.offcial-law-accordion .accordion-button a {
  padding: 0 0.8rem;
}

.legislation-details .more-link {
  font-weight: normal;
}

.timeline-section .swiper-button-next i,
.timeline-section .swiper-button-prev i {
  font-size: 1.485rem;
}

.legislation-details .accordion .swiper-button-next svg,
.legislation-details .accordion .swiper-button-prev svg {
  display: none;
}

.lawPage-timeline .timeline-line {
  position: absolute;
  top: unset;
  bottom: 2.4rem;
  left: 1rem;
  right: 1rem;
  height: 3px;
  border-top: 3px dashed rgba(207, 217, 223, 1);
  z-index: 0;
}

.lawPage-timeline .swiper-slide-active .timeline-card {
  background-color: unset;
  transform: unset;
  margin-bottom: unset;
}

.lawPage-timeline .nav-link.active .timeline-card {
  background-color: #cfd9df66;
  transform: scale(1.1);
  margin-bottom: 1rem;
}

.lawPage-timeline .swiper-slide-active .timeline-dot {
  background: rgba(207, 217, 223, 1);
  transform: unset;
}

.lawPage-timeline .nav-link.active .timeline-dot {
  background-color: var(--moj-primary-color);
  transform: scale(1.3);
}

.lawPage-timeline .timeline-card {
  margin-bottom: 1.75rem !important;
  margin-top: 0.5rem !important;
  padding: 0.5rem;
  min-height: 70px;
}

.lawPage-timeline .timeline-wrapper {
  position: relative;
}

.lawPage-timeline .timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  width: 35%;
  height: 100px;
  background: linear-gradient(90deg, #fafbfc 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 2;
}

.lawPage-timeline .swiper-backface-hidden .swiper-slide {
  padding: 0;
}

.lawPage-timeline .timeline-wrapper {
  padding: 1rem 0 0rem 0;
}

.lawPage-timeline .tab-pane {
  border: 1px solid #cfd9df4d;
  border-radius: 0;
  background-color: #fafbfc;
  border-top: none;
  padding: 0.8rem;
}

.lawPage-timeline .tab-pane .tab-pane {
  background-color: transparent;
  border: none;
  padding: 0;
}

.lawPage-timeline .accordion p {
  color: var(--moj-navy-color);
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 5px;
  font-weight: 300;
  text-align: start;
}

.lawPage-timeline ul.timeline-tabs {
  gap: 0.5rem;
}

.lawPage-timeline .accordion li {
  color: var(--moj-primary-color);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.lawPage-timeline .accordion li::marker {
  color: var(--moj-secondary-color);
}

.lawPage-timeline .timeline-tabs .nav-link {
  background: var(--moj-navyLight-trans);
  color: var(--moj-secondary-color);
  border-radius: 0.5rem;
  font-weight: 300;
}

.lawPage-timeline .timeline-tabs .nav-link img {
  margin: 0 0.3rem;
}

.lawPage-timeline .timeline-tabs .nav-link.active {
  border: 1px solid #cfd9df4d;
  border-radius: 0;
  background-color: #fafbfc;
  color: var(--moj-primary-color);
  border-bottom: none;
  height: calc(100% + 0.6rem);
}

.lawPage-timeline .timeline-card .badge-status.modified {
  width: fit-content;
  margin-bottom: 0.5rem;
}

.lawPage-timeline .swiper-wrapper.nav {
  flex-wrap: unset;
}

.lawPage-timeline .swiper-button-next,
.lawPage-timeline .swiper-button-prev {
  top: unset !important;
  bottom: 1.3rem;
}

.lawPage-timeline .timlineTab-info {
  background: #cfd9df33;
}

.lawPage-timeline .timlineTab-info .btn-brand {
  background: var(--moj-white-color);
  color: var(--moj-primary-color);
  border: 1px solid var(--moj-primary-color);
}

.lawPage-timeline .timlineTab-info .btn-brand i {
  color: var(--moj-secondary-color);
}

.lawPage-timeline .timlineTab-info .btn-brand:hover {
  background: var(--moj-primary-color);
  color: var(--moj-white-color);
  border: 1px solid var(--moj-primary-color);
}

.lawPage-timeline .timlineTab-info .btn-brand:hover i {
  color: var(--moj-white-color);
}

.latest-updates .nav-tabs .nav-link {
  font-weight: 400;
}

.lawPage-timeline.card {
  box-shadow: 0px 4px 4px 0px #0000000f;
}
.timelineSwiper2 {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 1200px) {
  .lawPage-timeline ul.timeline-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow: auto;
    white-space: nowrap;
  }

  .legislation-details .lawPage-timeline .capsule-item {
    flex-wrap: wrap;
    display: flex;
  }

  .legislation-details .lawPage-timeline .capsule-item span {
    margin-top: 0.3rem;
  }
}

/*Lawpage-Timeline page End css 1-Apr-2026 */

.legislation-details.officil-gazette-details {
  padding-top: 4rem;
  background-image: url('../img/bg-faq.png');
  background-size: cover;
}

.officil-gazette.officil-gazette-update {
  background-image: url('../img/banner-bototm.png');
  background-size: cover;
}

.newsletter-card.offical-newsletter-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 7.24%, rgba(81, 113, 140, 0.2) 100%);
}

.official-gazette-header {
  background: url(../img/newHeaderBg1.jpg) no-repeat bottom;
  background-size: cover;
}
.headerBannerBg.innerPagesHeaderBG.official-gazette-header {
  background: url(../img/offical-inner.png) no-repeat top center;
  background-size: cover;
}
.official-gazette-footer .footer-app-download-bar {
  background-color: #9eb3c0;
}
.official-gazette-header .contact-link img {
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7439%) hue-rotate(326deg)
    brightness(111%) contrast(100%);
}
.official-gazette-header .search-btn,
.official-gazette-header a.search-btn,
.official-gazette-header .contact-link {
  color: var(--moj-primary-color);
}
.official-gazette-header.innerPagesHeaderBG .search-btn,
.official-gazette-header.innerPagesHeaderBG a.search-btn,
.official-gazette-header.innerPagesHeaderBG .contact-link {
  color: var(--moj-white-color);
}

.official-gazette-header .lang-switcher {
  background: #cfd9df33;
}

.official-gazette-header .lang-toggle-bg {
  background-color: #cfd9df;
}

.official-gazette-header .lang-switcher.lang-ar .opt-ar,
.official-gazette-header .lang-switcher.lang-en .opt-en {
  color: #3d6881;
}

.official-gazette-header .lang-option {
  color: var(--moj-primary-color);
}

.official-gazette-header .btn-login {
  color: #3d6881;
  background-color: #cfd9df;
}

.official-gazette-header .access-icon:after,
.official-gazette-header .divider {
  background-color: var(--moj-primary-color);
}

.official-gazette-header.innerPagesHeaderBG .access-icon:after,
.official-gazette-header.innerPagesHeaderBG .divider {
  background-color: var(--moj-white-color);
}

@media (max-width: 1200px) {
  .official-gazette-header .search-btn,
  .official-gazette-header a.search-btn,
  .official-gazette-header .contact-link {
    color: var(--moj-navy-color);
  }
}
.official-gazette-header header {
  background-color: var(--moj-white-color);
  box-shadow: 0px 4px 4px 0px #0000000a;
}

@media (max-width: 776px) {
  .uai.userway_dark {
    width: 35px !important;
    height: 35px !important;
    position: relative;
    top: -0.5rem;
    right: -0.7rem;
  }

  .site-header .access-icon:after,
  .site-header .divider {
    display: none;
  }

  .search-bar-wrap .ms-dropdown__menu {
    max-width: 100% !important;
  }

  .main-widget .d-flex.justify-content-between.align-items-center.mb-4 {
    flex-wrap: wrap;
  }

  .official-gazette-header .contact-link img {
    filter: unset;
  }

  .official-gazette-header .lang-option.opt-en {
    color: #3d6881;
  }

  .status-badge {
    white-space: nowrap !important;
  }

  .searchResults-card .d-flex.justify-content-between.align-items-center.mb-3 {
    flex-wrap: wrap;
  }

  .searchResults-card .dropdown {
    margin-top: 1rem;
  }

  .eservice-request-card {
    max-width: 100% !important;
  }
}

/* =====================================================================
   Official Gazette HOMEPAGE typography (-10%) — scoped to homepage only
   Reduces font-size by exactly x0.9 for: hero title/description,
   "آخر المستجدات" + its update items, issue cards, newsletter section.
   Scoped via homepage-only markers (og-home-hero, og-home-newspaper)
   and homepage-unique classes (officil-gazette-update,
   offical-newsletter-card). Does not touch global headings or other pages.
   ===================================================================== */

/* 1. Hero/main title — 2.475rem -> 2.2275rem */
.og-home-hero .hero-section .hero-content h1 {
  font-size: 2.2275rem;
}

/* 2. Hero/main description — 1.65rem -> 1.485rem */
.og-home-hero .hero-section .hero-content p {
  font-size: 1.485rem;
}

/* 3. "آخر المستجدات" section title — 1.65rem -> 1.485rem */
.officil-gazette-update .main-heading h2 {
  font-size: 1.485rem;
}

/* 4. Latest-updates item titles/descriptions — 1.1rem -> 0.99rem, 1.045rem -> 0.9405rem */
.officil-gazette-update .law-number {
  font-size: 0.99rem;
}

.officil-gazette-update .law-description {
  font-size: 0.9405rem;
}

/* 5. Official Gazette issue cards — slightly smaller & more balanced */
/* issue number — 2.2rem -> 1.98rem */
.og-home-newspaper .issue-number {
  font-size: 1.98rem;
}

/* year — 1.65rem -> 1.485rem */
.og-home-newspaper .year {
  font-size: 1.485rem;
}

/* date hijri/gregorian — 1.21rem -> 1.089rem */
.og-home-newspaper .date-hijri,
.og-home-newspaper .date-gregorian {
  font-size: 1.089rem;
}

/* slightly reduce card inner spacing so cards are less oversized */
.og-home-newspaper .card-upper {
  padding: 0.85rem;
}

.og-home-newspaper .card-footer {
  padding: 0.85rem;
  min-height: 83px;
}

/* 6. Newsletter subscription title/description — 1.65rem -> 1.485rem, 1rem -> 0.9rem */
.offical-newsletter-card h4 {
  font-size: 1.485rem;
}

.offical-newsletter-card p {
  font-size: 0.9rem;
}

/* =====================================================================
   Official Gazette HOMEPAGE issue cards — RTL date/number direction
   Arabic UI only (html[lang='ar']) + homepage-only marker (og-home-newspaper).
   Display-only: ensures Arabic-Indic dates/years render right-to-left
   and are not reversed/broken by browser bidi handling. The day/month/year
   groups are reordered in JS (a pure-numeric date is otherwise treated as a
   single LTR number run), and this rule keeps the run flowing RTL. Does not
   touch the shared NewspaperCard or any other page.
   ===================================================================== */
html[lang='ar'] .og-home-newspaper .issue-number,
html[lang='ar'] .og-home-newspaper .year,
html[lang='ar'] .og-home-newspaper .date-hijri,
html[lang='ar'] .og-home-newspaper .date-gregorian {
  direction: rtl;
  unicode-bidi: isolate;
  text-align: center;
}

/* =====================================================================
   Official Gazette HOMEPAGE — "اقرأ المزيد" card sizing
   Make the Read-More card match the neighboring issue cards' outer
   dimensions. The card is wrapped in an <a>, which is not a flex
   container, so the shared .col-container .card { flex: 1 } never takes
   effect and the single-line card stays short. We turn the wrapper into a
   flex column so the card fills its (row-stretched) grid column, let the
   white area grow (footer drops to the bottom), and match the footer
   height so the diamond marker aligns. Scoped to homepage markers only
   (og-home-newspaper / og-home-readmore-*); shared card untouched.
   ===================================================================== */
.og-home-newspaper .og-home-readmore-link {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.og-home-readmore-link .qatar-card.og-home-readmore-card {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.og-home-readmore-card .card-upper {
  flex: 1 1 auto;
}

body,
p,
a,
.card-title,
.legislation-details .group-label,
.legislation-details .action-text,
.widget-tabs .nav-tabs .nav-link,
.form-control,
.form-label {
  font-size: 18px !important;
}
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--moj-primary-color);
  color: white !important;
}
.legal-article-page .article-item {
  border: 1px solid;
  border-color: var(--bs-light-border-subtle) !important;
  padding: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0px 0px 10px -3px #cccccc;
}

.improve-results-wraper .improve-results {
  background: #cfd9df99;
  border: 1px solid #cfd9df66;
  border-radius: 10px;
  box-shadow: none;
}

.improve-results-wraper .improve-results .accordion-item {
  background-color: transparent;
}

.improve-results-wraper .improve-results .accordion-button {
  border-color: #cfd9df;
}

.improve-results-wraper .improve-results .accordion-body {
  background: #ffffff66;
  padding: 1rem;
}

.improve-results-wraper .improve-results .filter-sub-item {
  margin-bottom: 0.5rem;
  background: #ffffff80;
  border: 1px solid #cfd9df;
  position: relative;
}

.improve-results-wraper .improve-results .filter-sub-item.active:after {
  content: '\F272';
  position: absolute;
  font-family: bootstrap-icons;
  right: 0.5rem;
  color: #a29475;
  font-size: 1.2rem;
}

.improve-results-wraper .improve-results .filter-sub-item:last-child {
  margin-bottom: 0rem;
}

.improve-results .accordion-button .badge.bage-light {
  background-color: transparent;
  padding: 0;
}

.legal-article-page .contents-card .card {
  background: #cfd9df99;
  border: 1px solid #cfd9df66;
}

.legal-article-page .list-group-item h3,
.legal-article-page .contents-title {
  color: var(--moj-navy-color);
}

.centerCard {
  background: #cfd9df;
  border-radius: 10px;
  border: none;
  margin-bottom: 2rem;
}

.centerCard .card {
  background: #ffffff66;
  border: none;
  text-align: center;
  border-radius: 4px;
  padding: 2rem 0;
}

.centerCard .card p {
  margin-bottom: 0;
  color: var(--moj-primary-color);
  font-weight: 500;
}

.centerCard .contant {
  text-align: center;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 100%;
}

.centerCard .contant h4 {
  color: var(--moj-secondary-color);
  font-size: 28px;
}

.contents-card .toc-list .list-group-item.active {
  background-color: transparent !important;
  font-weight: bold !important;
}

.contents-card .toc-list .list-group-item.active a {
  color: var(--moj-primary-color) !important;
}

.centerCard .contant .btn-brand {
  width: fit-content;
  margin: auto;
}

.improve-results-wraper .border-light-subtle {
  border: 1px solid #cfd9df66;
  background: #cfd9df1a;
}

.improve-results-wraper .card.border-light-subtle .article-title {
  font-weight: 500;
  font-size: 20px !important;
}

.improve-results-wraper .card.border-light-subtle button {
  background-color: var(--moj-white-color);
  color: var(--moj-primary-color);
}

.improve-results-wraper .card.border-light-subtle button i {
  color: var(--moj-secondary-color);
}

.improve-results-wraper .card.border-light-subtle button:hover i {
  color: var(--moj-white-color);
}

.improve-results-wraper .card.border-light-subtle button {
  background-color: var(--moj-white-color);
  color: var(--moj-primary-color);
}

.improve-results-wraper .card.border-light-subtle button:hover {
  background-color: var(--moj-primary-color);
  color: var(--moj-white-color);
}

.article-title {
  font-family: 'Lusail Plus', Helvetica, 'Tahoma', Arial, sans-serif !important;
}

/* 22-07-2026 */
.heroBg-wraper {
  min-height: 350px;
}

.hero-section {
  bottom: -1rem;
}

.hero-content {
  padding-top: 8.3rem;
}

.amendments {
  padding-top: 5rem;
}

.Legislation-info {
  font-stretch: extra-condensed;
}

.article-text td h1 {
  font-size: 1rem;
  font-weight: normal;
}

.card-body {
  font-stretch: extra-condensed;
}

.innerPageSearchBG .headerBannerBg.innerPagesHeaderBG {
  background: #fafbfc;
}

.search-bar-wrap button i {
  font-size: 1.5rem;
}

/*newsletter-update*/

.newsletter-card.newsletter-update {
  background: #cfd9df1a;
}

.newsletter-card.newsletter-update .card {
  border: 1px solid #cfd9df66;
  box-shadow: 0px 1px 4px 0px #00000014;
  overflow: hidden;
  position: relative;
}

.newsletter-card.newsletter-update .card {
  background: url('../img/news-latterbg.png'), #ffffff;
  background-size: cover;
  background-repeat: no-repeat;
}

.newsletter-card.newsletter-update .card-body {
  padding: 3rem 1rem;
}

.newsletter-card.newsletter-update .card:after {
  background-image: url('../img/news-envelope.svg');
  bottom: unset;
  top: 5%;
  height: calc(100% - 5%);
  z-index: 2;
  width: 22%;
}

.newsletter-card.newsletter-update .card:before {
  background-image: url('../img/dates-tree.svg');
  background-size: cover;
  background-repeat: no-repeat;
  content: '';
  width: 35%;
  position: absolute;
  top: 0%;
  height: 100%;
  z-index: 1;
  left: 4%;
  bottom: 0;
}

/* ============================================
   Search Mode Selector & Guide
   ============================================ */
.search-mode-help-btn {
  border: none;
  background: transparent;
  color: var(--moj-secondary-color, #8a1538);
  font-size: 1.05rem;
  padding: 0.15rem 0.35rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.search-mode-help-btn:hover,
.search-mode-help-btn:focus {
  background: rgba(138, 21, 56, 0.08);
  transform: scale(1.12);
  outline: none;
}

.search-mode-guide-modal {
  max-width: 720px !important;
}

.smg-mode-card {
  border: 1px solid #eaeaea;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--moj-white-color, #fff);
  transition: border-color 0.2s;
}

.smg-mode-card:hover {
  border-color: rgba(138, 21, 56, 0.25);
}

.smg-mode-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  background: var(--moj-secondary-color, #8a1538);
}

.smg-badge {
  display: inline-block;
  margin-inline-start: 0.5rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: #198754;
  border-radius: 1rem;
  vertical-align: middle;
}

.smg-best-for {
  margin: 0.25rem 0 0;
  padding-inline-start: 1.25rem;
  color: #495057;
}

.smg-best-for li {
  margin-bottom: 0.15rem;
}

.smg-table {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.smg-table thead th {
  background: #f8f9fa;
  font-weight: 600;
  white-space: nowrap;
}

.smg-table td {
  vertical-align: top;
}

.smg-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #856404;
  background: #fff3cd;
  border: 1px solid #ffecb5;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.smg-note i {
  margin-top: 0.1rem;
}

.smg-stars {
  color: #f5a623;
  font-size: 0.75rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.moj-services-wrapper .search-filter-container {
  margin-bottom: 1.5rem;
}

.moj-services-wrapper .search-filter-container .input-group .form-control {
  outline: none !important;
  box-shadow: none !important;
}

.moj-services-wrapper .search-filter-container .input-group {
  border: 1px solid #cfd9df99;
  border-radius: 10px;
  height: 45px;
  overflow: hidden;
  font-size: 14px;
}

.moj-services-wrapper .search-filter-container .form-select {
  font-size: 14px;
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238A1538' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.moj-services-wrapper .search-filter-container .input-group a {
  background-color: var(--moj-white-color);
  color: var(--moj-secondary-color);
}

.moj-services-wrapper .search-filter-container .form-select {
  border: 1px solid #cfd9df99;
  border-radius: 10px;
  height: 45px;
}

.moj-services-wrapper .table-section-title {
  background-color: #cfd9df;
  color: var(--moj-navy-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--btn-radius);
  font-size: 1rem;
  display: flex;
  align-items: center;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.moj-services-wrapper .table-section-title .badge {
  background-color: #6e8ea0;
  color: var(--moj-white-color);
  font-size: 14px;
  border-radius: 50%;
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 0.5rem;
}

.moj-services-wrapper .custom-table {
  font-size: 0.85rem;
  vertical-align: middle;
}

.moj-services-wrapper .custom-table th {
  color: #3d6881;
  border-bottom: none;
  font-weight: 300;
  background: transparent;
}

.moj-services-wrapper .custom-table td {
  padding: 0.5rem 0;
  border-bottom: none;
  color: var(--moj-navy-color);
}

.moj-services-wrapper .custom-table .view-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid #6e8ea0;
  background: #cfd9df66;
  color: var(--moj-secondary-color);
  border-radius: 5px;
  padding: 5px 15px;
  font-size: 16px;
  font-weight: 400;
}

.moj-services-wrapper .custom-table .view-btn:hover {
  background-color: #6e8ea0;
  color: var(--moj-white-color);
}

.moj-services-wrapper .custom-table tr:nth-child(odd) td {
  background: #cfd9df33;
}

.moj-services-wrapper .custom-table .view-btn i {
  line-height: 0;
}

.moj-services-wrapper .moj-badge-warning {
  background-color: var(--moj-yellowLight-color);
  color: #d97706;
  border: 1px solid #d97706;
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.moj-services-wrapper .moj-badge-success {
  background-color: var(--moj-successLight-color);
  color: #065f46;
  border: 1px solid var(--moj-success-color);
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.moj-services-wrapper .moj-badge-info {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #93c5fd;
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.moj-services-wrapper .service-sidebar {
  background: #cfd9df33;
  border-radius: var(--card-radius);
  border: 1px solid #cfd9df66;
  overflow: hidden;
}

.moj-services-wrapper .sidebar-header {
  padding: 1rem;
  font-weight: 500;
  font-size: 18px;
  color: var(--moj-navy-color);
  display: flex;
  align-items: center;
}

.moj-services-wrapper .service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  color: var(--moj-primary-color);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s;
  margin: 0 0.5rem;
  border-bottom: 1px solid #cfd9df;
}

.moj-services-wrapper li:hover .service-item,
.moj-services-wrapper li.active .service-item,
.moj-services-wrapper li:hover,
.moj-services-wrapper li.active {
  background-color: var(--moj-white-color);
  color: var(--moj-secondary-color);
}

.moj-services-wrapper .service-item i {
  color: var(--moj-secondary-color);
}

.moj-services-wrapper .service-item .service-badge {
  background-color: #6e8ea0;
  color: var(--moj-white-color);
  font-size: 14px;
  border-radius: 50%;
  width: 24px;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.moj-services-wrapper .service-item.active .service-badge {
  background-color: var(--moj-primary-color);
  color: var(--moj-text-white);
}

.request-section .page-title {
  color: var(--moj-navy-color);
  font-weight: 600;
  font-size: 24px;
}

.request-section .search-box-wrapper {
  background: var(--moj-white-color);
  border: 1px solid var(--moj-dunemidAsh-color);
  border-radius: 4px;
  padding: 0.4rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.02);
}

.request-section .search-box-wrapper input {
  border: none;
  box-shadow: none;
  font-size: 14px;
  background: transparent;
}

.request-section .search-box-wrapper input:focus {
  outline: none;
  box-shadow: none;
}

.request-section .search-box-wrapper .search-icon {
  color: var(--moj-secondary-color);
  font-size: 1rem;
}

.request-section .accordion {
  --bs-accordion-bg: var(--moj-white-color);
  --bs-accordion-border-color: var(--moj-dunemidAsh-color);
  --bs-accordion-border-radius: var(--card-radius);
  --bs-accordion-inner-border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.request-section .accordion-item {
  border: 1px solid #cfd9df66;
  overflow: hidden;
  box-shadow: 0px 4px 4px 0px #00000014;
  border-radius: 10px;
}

.request-section .accordion-button {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: #0d4261;
  font-size: 1rem;
  background-color: var(--moj-white-color);
  box-shadow: none !important;
}

.request-section .accordion-button:not(.collapsed) {
  background-color: var(--moj-white-color);
  color: var(--moj-navy-color);
}

.request-section .accordion-button::after {
  background-image: none !important;
  content: '\2b';
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moj-navy-color);
  transition: transform 0.2s ease;
  font-family: 'Font Awesome 6 Free';
}

.request-section .accordion-button:not(.collapsed)::after {
  content: '\f068';
  transform: none;
}

/* Custom Layout for Title Badge & Text inside Accordion Header */
.request-section .accordion-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.request-section .service-count-badge {
  background-color: var(--moj-navy-color);
  color: var(--moj-white-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.request-section .accordion-body {
  padding: 1.5rem;
  background-color: var(--moj-white-color);
  padding-top: 0.5rem;
}

.request-section .service-sub-card {
  background: #cfd9df33;
  border: 1px solid #cfd9df;
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--moj-text-color);
  transition: all 0.2s ease;
  height: 100%;
}

.request-section .service-sub-card:hover {
  border-color: var(--moj-primaryLight-color);
  background-color: #ffffff;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.04);
}

.request-section .service-sub-icon {
  background-color: #cfd9df;
  color: var(--moj-secondary-color);
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.request-section .service-sub-icon i {
  line-height: 0;
}

.request-section .service-sub-title {
  font-size: 1rem;
  font-weight: 400;
  color: #0d4261;
  line-height: 1.4;
}

.request-section .service-arrow {
  color: var(--moj-secondary-color);
  font-size: 0.9rem;
  font-weight: bold;
}

.section-info h2 {
  color: var(--moj-navy-color);
  font-weight: 600;
  font-size: 24px;
}

.section-info p {
  color: #666666;
  font-size: 1rem;
}

.legislation-details.project-rating .card {
  border: 1px solid #cfd9df66;
  border-radius: 10px;
}

.legislation-details.project-rating .card p,
.legislation-details.project-rating .card li {
  color: var(--moj-navy-color);
}

.legislation-details.project-rating .card ul {
  padding: 0 1.3rem;
}

.legislation-details.project-rating .card ul li::marker {
  color: var(--moj-secondary-color);
}

.project-rating .btn-brand-outline {
  background-color: var(--moj-white-color);
  color: var(--moj-navy-color);
  border-radius: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--moj-primary-color);
}

.project-rating .btn-brand-outline:hover {
  background-color: var(--moj-navyLight-trans);
}

.consultation-widget {
  background: white;
  padding: 0.5rem;
}

.consultation-widget .nav-tabs {
  border-bottom: 1px solid #e9ecef;
  display: flex;
  margin-bottom: 0;
}

.consultation-widget .nav-item {
  flex: 1;
}

.consultation-widget .nav-link {
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  color: #6c757d;
  font-weight: 600;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  background-color: transparent;
}

.consultation-widget .nav-link:hover:not(.active) {
  color: #495057;
  border-bottom-color: #dee2e6;
}

.consultation-widget .nav-link.active {
  color: #1b3664;
  background-color: transparent;
  border-bottom: 2px solid #1b3664;
}

.consultation-widget .widget-list {
  padding-top: 1.5rem;
}

.consultation-widget .list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.consultation-widget .list-item.highlighted {
  background-color: #f2f6fc;
  border-color: #f2f6fc;
}

.consultation-widget .list-item:hover {
  background-color: #f8f9fa;
}

.consultation-widget .list-item.highlighted:hover {
  background-color: #e6edf7;
}

.consultation-widget .item-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.consultation-widget .item-title {
  color: #1b3664;
  font-weight: 500;
  font-size: 0.875rem;
  margin: 0;
}

.consultation-widget .item-meta {
  color: #6c757d;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.consultation-widget .icon-calendar {
  font-size: 0.8rem;
}

.consultation-widget .icon-chevron {
  color: #1b3664;
  font-size: 1rem;
  font-weight: bold;
}

.date-expire {
  display: flex;
  align-items: center;
  font-size: 014px;
  color: #6c757d;
}

.articles-widget {
  background-color: #fff;
}

.articles-widget .article-item {
  border: 1px solid #eaedf2;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

.articles-widget .article-item:hover {
  border-color: #d1d7e0;
}

.articles-widget .article-header {
  position: relative;
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.articles-widget .header-toggle-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  z-index: 1;
  cursor: pointer;
}

/* Header Content (Passes click through to toggle button) */
.articles-widget .header-right {
  display: flex;
  align-items: center;
  flex-grow: 1;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.articles-widget .icon-doc {
  color: #243757;
  font-size: 1.25rem;
  margin-left: 0.75rem;
}

.articles-widget .article-title {
  color: #243757;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.articles-widget .header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.articles-widget .btn-add-note {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid #dce1e7;
  border-radius: 50rem;
  background-color: #fff;
  color: #243757;
  text-decoration: none;
  font-size: 0.9rem !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.articles-widget .btn-add-note:hover {
  background-color: #f4f6f9;
  border-color: #c4cadd;
  color: #16243d;
}

.articles-widget .btn-add-note .bi-chat {
  font-size: 1.1rem;
}

.articles-widget .icon-chevron {
  color: #243757;
  font-size: 1rem;
  transition: transform 0.3s ease;
  font-weight: bold;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.articles-widget .header-toggle-btn[aria-expanded='true'] ~ .header-left .icon-chevron {
  transform: rotate(180deg);
}

.section-header h2 {
  color: #063b82;
  font-size: 2.5rem;
}

.why-card .card-desc {
  width: 100% !important;
  text-align: center !important;
  font-size: 1rem !important;
  color: #063b82;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: 95px;
}

.why-card .card-title {
  color: #063b82;
  font-size: 1.25rem !important;
}

.why-card .bg-image img {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.why-card .card-overlay {
  position: relative !important;
  background: white;
  box-shadow: 0px 20px 19px 11px #fffffff5;
  padding-bottom: 5px;
}

.why-card .icon-box {
  color: #063b82 !important;
  font-size: 2.5rem;
}

.why-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.area-card .icon-badge {
  left: 50%;
  font-size: 1.6rem;
  color: #063b82;
  transform: translateX(-50%);
}

.area-card .area-title {
  color: #063b82;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  min-height: 45px;
}

.area-card .area-desc {
  color: #063b82;
  font-size: 1rem !important;
  font-weight: 300;
}

.area-card .icon-badge {
  color: #063b82;
}

.journey-section .step-title,
.journey-section .step-desc,
.journey-section .step-icon {
  color: #063b82 !important;
}

.journey-section .dashed-line {
  border: none;
}

.journey-section .dashed-line:after {
  content: '\f104';
  background: transparent;
  width: auto;
  height: auto;
  font-family: 'FontAwesome';
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ae7228;
}

.journey-section .dashed-line:before {
  display: none;
}

.journey-section .step-number {
  color: #ae7228;
}

.journey-section {
  background: white !important;
}

.journey-section .step-icon {
  border: 1px solid #cbe2ef;
}

.facts-legal-section .stat-card {
  border: 1px solid #f2eee8;
  background-color: #fefefe;
  box-shadow: none !important;
}

.facts-legal-section .stat-icon {
  font-size: 1.8rem;
  color: #063b82;
  margin-top: 0.5rem;
  width: 50px;
  height: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  margin-bottom: 1rem;
  background: #e9f2ff;
}

.facts-legal-section .stat-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #063b82;
}

.facts-legal-section .stat-desc {
  font-size: 1rem !important;
  color: #063b82;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  flex-grow: unset;
}

.investment-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 25px;
  background:
    radial-gradient(
      ellipse at 48% 50%,
      rgba(62, 169, 229, 0.28) 0%,
      rgba(105, 193, 238, 0.18) 25%,
      rgba(184, 226, 248, 0.1) 45%,
      rgba(255, 255, 255, 0) 70%
    ),
    linear-gradient(90deg, #ffffff 0%, #f4fbff 25%, #eaf7ff 50%, #f6fbff 80%, #ffffff 100%);
}

.investment-section .iom-map-wrap {
  min-height: unset;
  background: transparent;
  border: none;
  text-align: center;
}

.investment-section .iom-map-wrap .iom-map {
  position: unset;
  inset: 0;
  width: auto;
  height: auto;
  padding: 0;
  max-height: 600px;
}

.investment-section .iom-legend-list {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

.investment-section .iom-swatch {
  border-radius: 100%;
}

.section-column .iom-legend {
  background: #fff;
  border: 1px solid #e3e8ec;
  border-radius: 1rem;
  padding: 0.5rem;
}

.investment-section .iom-details {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.investment-section .map-info .iom-title {
  color: #063b82;
  text-align: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.investment-section .iom-subtitle {
  color: #063b82;
  text-align: center;
}
.investment-section .iom-details .img-wraper {
  position: relative;
}

.investment-section .iom-details .img-wraper .iom-card-header {
  margin-top: -6rem;
  padding: 0.5rem;
  display: block;
}

.investment-section .iom-card-icon {
  background: transparent;
  color: #063b82;
  grid-row: unset;
  font-size: 1.2rem;
}

.investment-section .iom-card-label {
  color: #063b82;
  font-size: 1rem;
}

.investment-section .table-wraper {
  border-radius: 5px;
  border: 1px solid #e8edf0;
}

.investment-section .table-wraper table {
  border-color: #e8edf0;
}

.investment-section .iom-card-value,
.investment-section .iom-card-description {
  color: #063b82;
  font-size: 1rem;
}

.investment-section .table-wraper td {
  border-top: none;
}
.investment-section .iom-badge--usufruct {
  color: white;
  background: #ae7228;
}
.investment-section .iom-card-title {
  flex: unset;
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}
.investment-section .iom-zone-card {
  border-inline-end: 4px solid #8a1538;
  border-inline-start: none;
}
.investment-section .map-info {
  margin-top: 2rem;
}
.investment-section .iom-card-action:hover {
  color: white !important;
  background-color: var(--moj-secondary-color);
}
.investment-section .iom-point--usufruct .icon {
  color: #ae7228;
}
.investment-section .iom-point--usufruct .iom-point-label {
  color: #ae7228;
  background: white;
}
.investment-section .iom-point--usufruct.is-selected .iom-point-label,
.investment-section .iom-point--usufruct.is-hovered .iom-point-label {
  background: #ae7228;
  color: white;
}
.investment-section .iom-point--freehold .icon {
  color: #1873c5;
}
.investment-section .iom-point--freehold .iom-point-label {
  color: #1873c5;
  background: white;
}
.investment-section .iom-swatch--freehold {
  background: #1873c5;
}
.investment-section .iom-swatch--usufruct {
  background: #ae7228;
}
.investment-section .iom-point--freehold.is-selected .iom-point-label,
.investment-section .iom-point--freehold.is-hovered .iom-point-label {
  background: #1873c5;
  color: white;
}
.investment-section .iom-point .icon {
  font-size: 1.5rem;
  line-height: 0;
}
.investment-section .iom-badge {
  font-size: 1rem;
  font-weight: normal;
  padding: 0.3rem 0.75rem;
  border-radius: 7px;
  white-space: nowrap;
}
.investment-section .iom-legend {
  padding: 1rem;
  border-radius: 8px;
}

.investment-section .iom-badge--freehold {
  background: #1873c5;
  color: white;
}

.why-qatar-modal h2,
.why-qatar-modal h3 {
  color: #063b82;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.why-qatar-modal ol {
  padding-right: 1rem;
  padding-left: 1rem;
}

.why-qatar-modal ol p {
  color: #063b82;
  margin-bottom: 0.5rem;
  line-height: normal !important;
}

.why-qatar-modal p a {
  font-size: 15px !important;
  color: #063b82;
  line-height: normal !important;
}

.why-qatar-modal p a:hover {
  color: #8a1538 !important;
}

.why-qatar-modal .why-qatar-modal-icon {
  margin-bottom: 0;
}

.why-qatar-modal .why-qatar-modal-close {
  background: #8a1538;
}

.why-qatar-modal .why-qatar-modal-close {
  background: #8a1538;
  color: white;
}

.why-qatar-modal .why-qatar-modal-close i {
  line-height: 0;
}

.why-qatar-modal ol ::marker,
.why-qatar-modal .why-qatar-modal-details {
  color: #8a1538 !important;
}

.why-qatar-modal {
  padding: 0 !important;
}

.why-qatar-modal .modalWraper-img {
  position: relative;
}

.why-qatar-modal .modalWraper-img .why-qatar-modal-close {
  background: #cfd9df;
  color: #0d4261;
  position: absolute;
  z-index: 1;
  box-shadow: 0px 2px 4px 0px #00000040;
}

.why-qatar-modal .modalWraper-img .why-qatar-modal-close:hover {
  background: #0d4261;
  color: white;
}

.why-qatar-modal .why-qatar-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0d4261;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.why-qatar-modal .why-qatar-modal-header {
  flex-direction: row;
  padding: 10px;
  margin-bottom: 0;
  position: absolute;
  top: 13px;
}
.modal-inner {
  position: relative;
  padding: 2rem 0 1rem 0;
}
.why-qatar-modal h2,
.why-qatar-modal h3 {
  color: #0d4261 !important;
  margin: 0 0.8rem 0.8rem 0.8rem;
  text-align: start;
}

.why-qatar-modal ol li {
  display: flex;
}

.why-qatar-modal ol p {
  text-align: start;
}

.why-qatar-modal p a {
  color: #3d6881;
}
.why-qatar-modal ol {
  list-style: none;
  counter-reset: item;
}

.why-qatar-modal li {
  counter-increment: item;
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.why-qatar-modal li::before {
  content: counter(item);
  width: 24px;
  display: inline-block;
  height: 24px;
  background: #cfd9df;
  border-radius: 100%;
  color: #3d6881;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.invesment-modal .why-qatar-modal {
  padding-top: 2rem !important;
}

.shawar-section .moj-services-wrapper {
  padding-top: 0 !important;
}

.shawar-section .request-section .search-box-wrapper {
  border: 1px solid #cfd9df99;
}

.shawar-section .request-section .search-box-wrapper input::placeholder {
  color: #999999;
}

.shawar-section .consultation-widget .nav-tabs {
  border-bottom: 1px solid #cfd9df;
}

.shawar-section .consultation-widget .nav-link.active {
  color: #8a1538;
  border-bottom: 3px solid #0d4261;
}

.shawar-section .consultation-widget .nav-link {
  color: #0d4261;
}

.shawar-section .consultation-widget {
  background: transparent;
  padding: 0;
}

.shawar-section .consultation-widget .list-item {
  border-radius: 0;
  margin: 0rem 0.5rem;
  border: none;
  border-bottom: 1px solid #cfd9df;
  padding: 0.5rem 0;
}

.shawar-section .consultation-widget .list-item.highlighted,
.shawar-section .consultation-widget .list-item.highlighted:hover {
  background-color: white;
  border-color: white;
  margin: 0.5rem 0rem;
  padding: 0.5rem;
}

.shawar-section .consultation-widget .list-item:hover {
  background-color: transparent;
}

.shawar-section .consultation-widget .list-item:last-child {
  border-bottom: none;
}

.shawar-section .consultation-widget .item-title {
  font-size: 1rem;
  color: #0d4261;
  margin-bottom: 0.5rem;
}

.shawar-section .consultation-widget .list-item.highlighted .item-title {
  color: #8a1538;
}

.shawar-section .consultation-widget .item-details {
  display: block;
  width: 100%;
}

.shawar-section .consultation-widget .item-meta {
  color: #666666;
  font-size: 0.875rem;
  justify-content: end;
}

.shawar-section .consultation-widget .item-meta i {
  color: #0d4261;
  font-size: 1.2rem;
}

.shawar-section .shawar-admin-controls.card {
  box-shadow: none !important;
}

.shawar-section .shawar-admin-controls .card-body {
  padding: 0 !important;
}

.shawar-section .shawar-admin-controls .admin-control-icon {
  background-color: #cfd9df;
  color: #0d4261;
  font-size: 1.2rem;
}

.shawar-section .shawar-admin-controls strong {
  font-size: 16px;
  font-weight: 400;
  color: #0d4261;
}

.shawar-section .shawar-admin-controls small {
  font-size: 14px;
  color: #666666;
}

.shawar-section .shawar-admin-controls .shawar-admin-info {
  border-left: 1px solid #cfd9df;
  padding-left: 1rem;
}

.shawar-section .shawar-admin-controls .group-by-switch .form-check-input:checked {
  background-color: #3d6881;
  border-color: #3d6881;
}

.shawar-section .shawar-admin-controls .sorted-btn {
  border: 1px solid #cfd9df;
  background: #cfd9df33;
  color: #0d4261 !important;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.shawar-section .project-rating .btn-brand-outline {
  border: 1px solid #9eb3c0;
}

.shawar-section .project-rating .item-meta,
.shawar-section .project-rating .date-expire {
  color: #0d4261;
  font-size: 1rem;
}

.shawar-section .project-rating .date-expire i {
  font-size: 1.2rem;
}

.shawar-section .project-rating .law-title {
  color: #000000;
  font-weight: 700;
  font-size: 22px;
}

.shawar-section .legislation-details .capsule-item {
  color: #0d4261;
}

.shawar-section .card-heading-leg h6 {
  color: #0d4261;
  font-size: 18;
  font-weight: 600;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
}

.shawar-section .articles-widget .icon-chevron,
.shawar-section .articles-widget .btn-add-note i {
  color: #8a1538;
}

.shawar-section .article-text {
  color: #0d4261;
  font-size: 1rem;
}

.iom-map-wrap .iom-point-label.iom-point--freehold {
  color: #1873c5;
}

.iom-map-wrap .iom-point-label {
  border-radius: 0.3rem;
}

.iom-map-wrap .iom-point .icon {
  font-size: 1.1rem;
}

.iom-map-wrap .iom-point-label.iom-point--freehold.is-selected {
  background: #1873c5;
  color: white;
}

.iom-map-wrap .iom-point-label.iom-point--usufruct.is-selected {
  color: white;
  background: #ae7228;
}

.iom-map-wrap .iom-point--freehold {
  color: #1873c5;
}

.why-qatar-section .why-card .bg-image img,
.main-areas-section .area-card img,
.why-qatar-modal .modalWraper-img img {
  object-fit: cover;
}

.why-qatar-section .why-card .bg-image,
.main-areas-section .area-card .card-img {
  position: relative;
}

.why-qatar-section .why-card .bg-image:after,
.main-areas-section .area-card .card-img:after {
  content: '';
  top: 0;
  bottom: 0;
  position: absolute;
  background: #cbc1c14f;
  width: 100%;
  height: 100%;
}

/* ============================================
   Add to Research Modal
   ============================================ */
.research-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.research-modal {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.research-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eaeaea;
  background: #f8f9fa;
}

.research-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #212529;
  display: flex;
  align-items: center;
}

.research-modal-header h3 i {
  color: var(--moj-secondary-color, #8a1538);
}

.research-modal-header .btn-close {
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.research-modal-header .btn-close:hover {
  opacity: 1;
}

.research-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.research-modal-body .form-label {
  color: #212529;
  font-size: 0.9rem;
}

.research-modal-body .form-select {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
  color: #212529;
  background-color: #fff;
  transition: border-color 0.2s;
}

.research-modal-body .form-select:focus {
  border-color: var(--moj-primary-color, #3d6881);
  box-shadow: 0 0 0 0.2rem rgba(61, 104, 129, 0.15);
  outline: none;
}

.research-modal-body .alert {
  font-size: 0.9rem;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

/* Linked researches (already added) */
.linked-researches-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #eaeaea;
}

.linked-researches-section .form-label {
  color: #198754;
}

.linked-researches-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.linked-research-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #212529;
}

.linked-research-item > i {
  color: #198754;
  font-size: 1rem;
  flex-shrink: 0;
}

.linked-research-item > span {
  flex: 1;
  font-weight: 500;
}

.linked-research-link {
  color: #6c757d;
  font-size: 0.8rem;
  padding: 0.125rem;
  transition: color 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}

.linked-research-link:hover {
  color: var(--moj-primary-color, #3d6881);
}

.research-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eaeaea;
  background: #f8f9fa;
}

.research-modal-footer .btn-outline-secondary {
  background: #fff;
  border: 1px solid #dee2e6;
  color: #333;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.research-modal-footer .btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

.research-modal-footer .btn-primary-action,
.research-modal-footer .btn-brand {
  background: var(--moj-secondary-color, #8a1538);
  border: 1px solid var(--moj-secondary-color, #8a1538);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.research-modal-footer .btn-primary-action:hover,
.research-modal-footer .btn-brand:hover {
  background: var(--moj-primary-color, #3d6881);
  border-color: var(--moj-primary-color, #3d6881);
}

.research-modal-footer .btn-primary-action:disabled,
.research-modal-footer .btn-brand:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 575.98px) {
  .research-modal {
    max-width: 100%;
    margin: 0.5rem;
    border-radius: 0.75rem;
  }

  .research-modal-header,
  .research-modal-footer {
    padding: 1rem;
  }

  .research-modal-body {
    padding: 1rem;
  }
}

/* ============================================================
   AlMeezan – AI Legal Analysis Report Styles
   Supports both LTR (English) and RTL (Arabic) via [dir="rtl"]
   ============================================================ */

.ai-report {
  font-family: 'Segoe UI', 'Tahoma', 'Cairo', 'Amiri', sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.75;
  font-size: 15px;
  padding: 24px 28px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  max-width: 100%;
}

/* ---------- Header ---------- */
.ai-report-header {
  border-bottom: 2px solid #0f766e;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.ai-report-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f766e;
  letter-spacing: 0.2px;
}

.ai-report-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}

/* ---------- Sections ---------- */
.ai-section {
  margin: 22px 0;
  padding: 18px 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.ai-section-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
  border-inline-start: 4px solid #0f766e;
  padding-inline-start: 10px;
}

.ai-overview {
  background: #ecfeff;
  border-color: #a5f3fc;
}

.ai-summary {
  background: #fefce8;
  border-color: #fde68a;
}

.ai-text {
  margin: 8px 0;
  font-size: 15px;
  color: #1f2937;
}

/* ---------- Version Diff Section ---------- */
.ai-version-diff {
  background: #ffffff;
  border-inline-start: 4px solid #6366f1;
}

/* ---------- Badges (change type) ---------- */
.ai-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1.6;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.ai-badge-amendment {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.ai-badge-addition {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.ai-badge-cancelation {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.ai-badge-metadata {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #a5b4fc;
}

/* ---------- Meta (editor / date) ---------- */
.ai-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 13px;
}

.ai-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-meta-label {
  font-weight: 600;
  color: #6b7280;
}

.ai-meta-value {
  color: #111827;
  font-weight: 500;
}

/* ---------- Change Comment (editor justification) ---------- */
.ai-change-comment {
  margin: 12px 0;
  padding: 10px 14px;
  background: #fff7ed;
  border-inline-start: 4px solid #f59e0b;
  color: #78350f;
  font-style: italic;
  border-radius: 6px;
}

/* ---------- Change Card ---------- */
.ai-change-card {
  margin: 14px 0;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.ai-change-amendment {
  border-inline-start: 4px solid #3b82f6;
}
.ai-change-addition {
  border-inline-start: 4px solid #22c55e;
}
.ai-change-cancelation {
  border-inline-start: 4px solid #ef4444;
}
.ai-change-metadata {
  border-inline-start: 4px solid #6366f1;
}

.ai-change-label {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ---------- Lists ---------- */
.ai-list {
  margin: 8px 0;
  padding-inline-start: 22px;
}

.ai-list li {
  margin: 4px 0;
  line-height: 1.7;
}

/* ---------- Diff Table ---------- */
.ai-diff-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.ai-diff-table thead {
  background: #0f766e;
  color: #ffffff;
}

.ai-diff-table th {
  padding: 10px 12px;
  text-align: start;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.ai-diff-table td {
  padding: 10px 12px;
  vertical-align: top;
  border-top: 1px solid #e5e7eb;
}

.ai-diff-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.ai-field-name {
  font-weight: 600;
  color: #374151;
  width: 20%;
  background: #f3f4f6;
}

.ai-old {
  width: 40%;
}
.ai-new {
  width: 40%;
}

/* ---------- Inline diff (added / removed / highlight) ---------- */
.ai-inline-diff {
  background: #fafafa;
  border: 1px dashed #d1d5db;
  padding: 12px 14px;
  border-radius: 6px;
  line-height: 2;
}

.ai-removed,
del.ai-removed {
  background: #fee2e2;
  color: #991b1b;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  padding: 1px 4px;
  border-radius: 3px;
  margin: 0 2px;
}

.ai-added,
ins.ai-added {
  background: #dcfce7;
  color: #14532d;
  text-decoration: none;
  padding: 1px 4px;
  border-radius: 3px;
  margin: 0 2px;
  font-weight: 500;
}

.ai-highlight,
mark.ai-highlight {
  background: linear-gradient(120deg, #fef08a 0%, #fde047 100%);
  color: #713f12;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

/* ---------- RTL (Arabic) tweaks ---------- */
[dir='rtl'] .ai-report,
.ai-report[dir='rtl'] {
  font-family: 'Cairo', 'Tajawal', 'Amiri', 'Segoe UI', sans-serif;
  text-align: right;
}

[dir='rtl'] .ai-diff-table th,
[dir='rtl'] .ai-diff-table td {
  text-align: right;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .ai-report {
    padding: 16px;
  }

  .ai-diff-table,
  .ai-diff-table thead,
  .ai-diff-table tbody,
  .ai-diff-table tr,
  .ai-diff-table td,
  .ai-diff-table th {
    display: block;
    width: 100%;
  }

  .ai-diff-table thead {
    display: none;
  }

  .ai-diff-table td {
    border: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .ai-field-name {
    background: #0f766e;
    color: #fff;
  }
}

/* ---------- Print ---------- */
@media print {
  .ai-report {
    box-shadow: none;
    border: none;
  }
  .ai-badge {
    border: 1px solid #999;
  }
}

.moj-chatbot {
  min-height: 70vh;
  padding: 49px 0 50px;
  position: relative;
  color: var(--moj-navy-color);
}

.moj-chatbot .moj-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.moj-chatbot .moj-chatbot-main {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding-top: 115px;
}

.moj-chatbot .moj-chatbot-main::before {
  content: '';
  position: absolute;

  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 31px;
  width: 99vw;
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f7f9 52%, #eef2f4 100%);
  z-index: -1;

  pointer-events: none;
}
.moj-chatbot .moj-chat-content,
.moj-chatbot .moj-avatar-column {
  position: relative;
  z-index: 1;
}
.moj-chatbot .moj-new-chat-btn {
  height: 45px;

  min-width: 145px;

  padding: 0 20px;

  border: 1px solid var(--moj-primary-color);

  background: var(--moj-white-color);

  color: var(--moj-navy-color);

  border-radius: 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 16px;

  font-size: 14px;

  transition: 0.25s ease;
}

.moj-chatbot .moj-new-chat-btn i {
  font-size: 20px;
}

.moj-chatbot .moj-new-chat-btn:hover {
  background: var(--moj-primary-color);
  color: var(--moj-white-color);
}

/* line below button */
.moj-chatbot .moj-chatbot-header-border {
  width: 100%;

  height: 1px;

  margin-top: 15px;

  background: #d6e0e5;
}

.moj-chatbot .moj-chatbot-main {
  display: flex;

  align-items: flex-end;

  gap: 28px;

  padding-top: 85px;
}

.moj-chatbot .moj-chat-content {
  width: 100%;
  flex: 1 1 100%;

  min-width: 0;

  transition: all 0.35s ease;
}

.moj-chatbot .moj-chat-messages {
  display: flex;

  flex-direction: column;

  gap: 32px;
}

/* Common */
.moj-chatbot .moj-chat-message {
  min-height: 58px;

  padding: 15px 20px;

  border-radius: 5px;

  font-size: 16px;

  line-height: 1.9;

  color: var(--moj-navy-color);

  display: flex;

  align-items: center;
}

.moj-chatbot .moj-bot-message {
  width: 82%;

  align-self: flex-end;

  background: var(--moj-white-color);

  border: 1px solid #edf0f2;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.015),
    0 2px 8px rgba(61, 104, 129, 0.02);
}

.moj-chatbot .moj-user-message {
  width: 82%;

  align-self: flex-start;

  justify-content: flex-start;

  background: #dce5ea;

  border: 0;

  color: var(--moj-navy-color);
}

.moj-chatbot .moj-chat-input-row {
  display: flex;

  align-items: center;

  gap: 13px;

  margin-top: 40px;
}

.moj-chatbot .moj-chat-input-box {
  flex: 1;

  height: 63px;

  display: flex;

  align-items: center;

  position: relative;

  border: 1px solid #cbd7dd;

  border-radius: 34px;

  background: var(--moj-white-color);

  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(61, 104, 129, 0.04);

  padding: 4px 54px 4px 5px;
}

/* Input */
.moj-chatbot .moj-chat-input {
  height: 100%;

  border: 0;

  background: transparent;

  padding: 0 18px;

  box-shadow: none !important;
}

.moj-chatbot .moj-chat-input:focus {
  border: 0;

  outline: 0;

  box-shadow: none;
}

.moj-chatbot .moj-send-btn {
  width: 54px;
  height: 54px;

  flex: 0 0 54px;

  border: 0;

  border-radius: 50%;

  background: var(--moj-primary-color);

  color: var(--moj-white-color);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 22px;

  transition: 0.25s ease;
}

.moj-chatbot .moj-send-btn i {
  line-height: 0;
  transform: rotate(-135deg);
}
.moj-chatbot .moj-send-btn:hover {
  background: var(--moj-navy-color);
}

.moj-chatbot .moj-mic-btn {
  position: absolute;

  right: 14px;

  top: 50%;

  transform: translateY(-50%);

  width: 34px;
  height: 34px;

  border: 0;

  padding: 0;

  background: transparent;

  color: var(--moj-secondary-color);

  font-size: 20px;

  display: flex;

  align-items: center;

  justify-content: center;
}

.moj-chatbot .moj-monitor-btn {
  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  padding: 0;

  border-radius: 50%;

  border: 1px solid #aac0cb;

  background: #d9e5ea;

  color: var(--moj-navy-color);

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 17px;

  transition: all 0.25s ease;
}
.moj-chatbot .moj-monitor-btn i,
.moj-chatbot .moj-avatar-control i {
  line-height: 0;
}

.moj-chatbot .moj-monitor-btn:hover {
  background: var(--moj-primary-color);

  color: var(--moj-white-color);
}
.moj-chatbot .moj-monitor-btn:hover img {
  filter: brightness(0) saturate(100%) invert(99%) sepia(95%) saturate(0%) hue-rotate(200deg)
    brightness(104%) contrast(100%);
}

.moj-chatbot .moj-avatar-column {
  flex: 0 0 0;

  width: 0;

  max-width: 0;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  overflow: hidden;

  transform: translateX(20px);

  transition:
    width 0.35s ease,
    max-width 0.35s ease,
    flex-basis 0.35s ease,
    opacity 0.25s ease,
    transform 0.35s ease;
}

.moj-chatbot .moj-avatar-card {
  width: 328px;

  height: 310px;

  position: relative;

  background: #799bad;

  border-radius: 20px;

  overflow: hidden;
}

/* Avatar image */
.moj-chatbot .moj-avatar-img {
  position: absolute;

  left: 50%;

  bottom: 0;

  transform: translateX(-50%);

  height: 96%;

  width: auto;

  max-width: 100%;

  object-fit: contain;

  object-position: center bottom;
}

.moj-chatbot .moj-avatar-actions {
  position: absolute;

  top: 10px;

  right: 9px;

  z-index: 5;

  display: flex;

  align-items: center;

  gap: 8px;
}

.moj-chatbot .moj-avatar-control {
  width: 34px;

  height: 34px;

  padding: 0;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.35);

  background: rgba(255, 255, 255, 0.72);

  color: var(--moj-navy-color);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 16px;

  transition: 0.25s ease;
}

.moj-chatbot .moj-avatar-control:hover {
  background: var(--moj-white-color);
}

.moj-chatbot.avatar-open .moj-avatar-column {
  flex: 0 0 328px;

  width: 328px;

  max-width: 328px;

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform: translateX(0);
}

/* Hide external monitor */
.moj-chatbot.avatar-open .moj-monitor-btn {
  display: none;
}

/*
    Exactly like screenshot:
    when avatar appears the chat area becomes smaller.
*/
.moj-chatbot.avatar-open .moj-chat-content {
  width: calc(100% - 356px);

  flex: 1 1 auto;
}

/* message width when avatar visible */
.moj-chatbot.avatar-open .moj-bot-message {
  width: 86%;
}

.moj-chatbot.avatar-open .moj-user-message {
  width: 86%;
}

.moj-chatbot .moj-speaker-toggle.is-muted {
  color: var(--moj-secondary-color);

  background: var(--moj-white-color);
}

@media (max-width: 1199.98px) {
  .moj-chatbot .moj-chatbot-main {
    gap: 22px;
  }

  .moj-chatbot.avatar-open .moj-avatar-column {
    flex-basis: 290px;

    width: 290px;

    max-width: 290px;
  }

  .moj-chatbot .moj-avatar-card {
    width: 290px;

    height: 290px;
  }

  .moj-chatbot.avatar-open .moj-chat-content {
    width: calc(100% - 312px);
  }
}

@media (max-width: 991.98px) {
  .moj-chatbot {
    padding-top: 35px;
  }

  .moj-chatbot .moj-chatbot-main {
    padding-top: 60px;

    gap: 18px;
  }

  .moj-chatbot.avatar-open .moj-avatar-column {
    flex-basis: 240px;

    width: 240px;

    max-width: 240px;
  }

  .moj-chatbot .moj-avatar-card {
    width: 240px;

    height: 270px;

    border-radius: 16px;
  }

  .moj-chatbot.avatar-open .moj-chat-content {
    width: calc(100% - 258px);
  }

  .moj-chatbot .moj-chat-message {
    font-size: 12px;
  }

  .moj-chatbot .moj-bot-message,
  .moj-chatbot .moj-user-message {
    width: 90%;
  }
  .moj-chatbot .moj-chatbot-main {
    padding-top: 80px;
  }

  .moj-chatbot .moj-chatbot-main::before {
    bottom: 31px;
  }
}

@media (max-width: 767.98px) {
  .moj-chatbot {
    padding: 25px 0 35px;
  }

  .moj-chatbot .moj-chatbot-main {
    flex-direction: column-reverse;

    align-items: stretch;

    padding-top: 40px;
  }

  .moj-chatbot .moj-chat-content,
  .moj-chatbot.avatar-open .moj-chat-content {
    width: 100%;

    flex: 1 1 100%;
  }

  .moj-chatbot .moj-bot-message,
  .moj-chatbot .moj-user-message,
  .moj-chatbot.avatar-open .moj-bot-message,
  .moj-chatbot.avatar-open .moj-user-message {
    width: 100%;
  }

  /* hidden */
  .moj-chatbot .moj-avatar-column {
    width: 100%;

    max-width: 100%;

    height: 0;

    flex-basis: 0;

    opacity: 0;
  }

  /* visible */
  .moj-chatbot.avatar-open .moj-avatar-column {
    width: 100%;

    max-width: 100%;

    height: auto;

    flex-basis: auto;

    opacity: 1;

    margin-bottom: 25px;
  }

  .moj-chatbot .moj-avatar-card {
    width: min(100%, 320px);

    height: 290px;

    margin: 0 auto;
  }

  .moj-chatbot .moj-chat-input-box {
    height: 58px;
  }

  .moj-chatbot .moj-send-btn {
    width: 49px;

    height: 49px;

    flex: 0 0 49px;

    font-size: 19px;
  }

  .moj-chatbot .moj-chat-input-row {
    gap: 9px;

    margin-top: 28px;
  }
  .moj-chatbot .moj-chatbot-main {
    padding-top: 50px;
  }

  .moj-chatbot .moj-chatbot-main::before {
    bottom: 29px;
  }
}

@media (max-width: 575.98px) {
  .moj-chatbot .moj-new-chat-btn {
    min-width: 130px;

    height: 42px;

    padding: 0 15px;
  }

  .moj-chatbot .moj-chatbot-main {
    padding-top: 30px;
  }

  .moj-chatbot .moj-chat-messages {
    gap: 18px;
  }

  .moj-chatbot .moj-chat-message {
    min-height: 52px;

    padding: 13px 15px;

    line-height: 1.65;
  }

  .moj-chatbot .moj-chat-input-row {
    margin-top: 22px;
  }

  .moj-chatbot .moj-monitor-btn {
    width: 42px;

    height: 42px;

    flex-basis: 42px;
  }
}
