:root {
  --crl-primary: #1B8354;
  --crl-black: #161616;
  --crl-gray: #384250;
  --crl-light: #F3F4F6;
}

body,
html {
  font-family: 'IBM Plex Sans Arabic', Arial, sans-serif;
}

body.grayscale {
  filter: grayscale(100%) contrast(1.1);
}

html[dir="ltr"] #primary-menu {
  transform: translateX(-100%);
}

.bg-light {
  background-color: var(--crl-light) !important;
}

a {
  text-decoration: none;
  color: var(--crl-black);
  transition: 300ms ease-in-out;
}

a:hover {
  color: var(--crl-primary);
}

.head-section {
  margin-bottom: 1rem;
}

.head-section h2 {
  margin: 0;
  color: var(--crl-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.btn-outline-primary {
  border: 1px solid #E5E7EB;
  color: var(--crl-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
}

.btn-outline-primary:hover {
  background-color: var(--crl-primary);
  color: var(--crl-light);
  border-color: var(--crl-primary);
}

.btn-outline-primary:active {
  background-color: var(--crl-primary);
  color: var(--crl-light);
  border-color: var(--crl-primary);
}

.btn-outline-primary:active:hover {
  background-color: var(--crl-primary);
  color: var(--crl-light);
  border-color: var(--crl-primary);
}

.btn-outline-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(27, 131, 84, 0.5);
}

.active>.page-link,
.page-link.active {
  background-color: var(--crl-primary);
  border-color: var(--crl-primary);
  color: var(--crl-light);
}

.page-link {
  color: var(--crl-primary);
}

.card-site {
  background-color: #FFF;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  transition: box-shadow 300ms ease-in-out;
  flex-direction: column;
  align-items: flex-start;
  display: flex;
  gap: 16px;
}

.card-site:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-page {
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.btn-primary {
  background-color: var(--crl-primary);
  transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
  border-color: var(--crl-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--bs-body-color);
  border-color: var(--bs-body-color);
}

.bg-light-custom {
  background-color: #F6FEF9;
}

::selection {
  background-color: rgb(179 212 252);
}

html.is-modal-open,
body.is-modal-open {
  overflow: hidden;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 9999;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* #primary-menu,
#site-search {
  display: none;
  z-index: 1000;
  position: fixed;
  background: #fff;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

#primary-menu.active,
#site-search.active {
  display: block;
} */


/* Header */

header {
  position: relative;
}

#site-search {
  position: fixed;
  width: 100%;
  background: #FFF;
  z-index: 99999;
  top: 50%;
  left: 50%;
  display: none;
  padding: 55px 25px;
  transform: translate(-50%, -50%);
  width: min(450px, 100%, 650px);
  border-radius: 8px;
}

.btnClose {
  position: absolute;
  top: 15px;
  inset-inline-end: 20px;
}

#site-search.active {
  display: block;
}

a#UCHeaderTop_btnSearch svg {
  width: 23px;
  aspect-ratio: 1;
}

.search-box {
  position: relative;
}

a#UCHeaderTop_btnSearch {
  position: absolute;
  inset-inline-end: 0;
  top: 0;
}

a#searchc {
  display: none;
}

.logo {
  width: 150px;
  height: auto;
}

header button {
  all: unset;
  cursor: pointer;
  padding: 4px;
  transition: 300ms ease-in-out;
}

header button:hover {
  background-color: var(--crl-light);
  border-radius: 4px;
}

header .logo-container {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#primary-menu {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  background-color: var(--crl-light);
  height: 100vh;
  padding: 2rem 1.2rem;
  z-index: 9000000;
  width: 350px;
  font-size: 15px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
  padding-top: 20px;
  font-weight: 600;
}

#primary-menu .drop-menu-site {
  /* position: relative; */
  width: 100%;
}

#primary-menu .drop-menu-site a {
  display: flex;
  align-items: center;
  gap: 10px;
}

#primary-menu .drop-menu-site>a::after {
  content: '';
  background-image: url(../images/down-arraw.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 13px;
  height: 9px;
  display: inline-block;
  transition: 300ms;
}

#primary-menu .drop-menu-site:hover .drop-menu {
  display: block;
}

.dropdown-menu-custom {
  width: 100%;
  background: #FFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 24px;
  display: none;
  margin-top: 13px;
}

.dropdown-menu-custom.active {
  display: block;
}

.dropdown-menu-custom ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dropdown-menu-custom ul li a {
  display: block !important;
  padding: 6px 0;
}

.hoverList li {
  line-height: 1.8;
  font-weight: 200;
  font-size: 14px;
}

.hoverList li h5 {
  color: #1b8354;
  font-size: 16px;
  font-weight: 600;
}

.dropdown-menu-custom h4 {
  color: #1b8354;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#primary-menu:is(.active) {
  opacity: 1;
  transform: translateX(0) !important;
}

#primary-menu .btnClose {
  top: 22px;
}

#primary-menu .logo-mobile {
  width: 46%;
  flex: 0 0 auto;
}

#primary-menu .logo-mobile img {
  width: 132px;
  height: auto;
  display: block;
}

#primary-menu ul {
  margin-top: 20px;
  flex-direction: column;
  align-items: flex-start !important;
  width: 100%;
  flex: 0 0 auto;
}

#primary-menu .links {
  display: none;
}

.hoverList li:not(.open) {
  display: none;
}

/* hero */
.hero {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.logo-national-day {
  position: absolute;
  inset-inline-end: 36px;
  top: 36px;
  z-index: 11;
}

.logo-national-day img {
  max-width: 100px;
}

.hero .hero-swiper {
  min-height: 350px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero .hero-content {
  color: var(--crl-light);
  padding-top: 110px;
}

.hero .hero-content h1 {
  font-size: 32px;
  margin-bottom: 1rem;
  font-weight: 600;
  max-width: 300px;
}

.hero .hero-content p {
  margin-bottom: 0;
}

/* News */

#news .row {
  flex-direction: column-reverse;
}

.news-item {
  display: flex;
  flex-direction: row;
  min-height: fit-content !important;
}

.news-item:is(.full) {
  display: block;
  margin-bottom: 1rem;
}

.news-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--crl-primary);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 5px !important;
}

.news-item span {
  color: var(--crl-black);
  font-size: 12px;
  display: block;
}

.news-item a {
  color: var(--crl-black);
}

.news-item a:hover {
  color: var(--crl-primary);
}

.news-item:is(.full) figure {
  height: 350px;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.news-item figure {
  height: 100px;
  width: 150px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 8px;
  margin: 0;
}

.news-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item .caption {
  padding: 0 1rem;
  flex: 1;
}

/* Services */
#services {
  background-color: #F9FAFB;
  padding-block: 5vh;
  background-image: url(../images/frame22.svg);
  background-repeat: repeat-x;
  background-position: top;
  background-size: 920px;
  padding-top: 50px;
}

.card-site {
  min-height: 150px;
}

.card-site h3 {
  font-size: 15px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}

.card-site h3 a {
  color: var(--crl-primary);
}

.card-site h3 a:hover {
  color: var(--crl-black);
}

.card-site p {
  margin: 0;
}

.card-site .btn-custom-site {
  background-color: #ecfdf3;
  border: 1px solid #ecfdf3;
  font-size: 13px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 8px;
  color: #085d3a;
}

#services .options {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-inline: 30px;
}

#services .options .buttons {
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
}

#services .options .swiper-button-next,
#services .options .swiper-button-prev {
  background-color: var(--crl-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--crl-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  transition: background-color 300ms ease-in-out;
  margin: 0 !important;
}

#services .options .swiper-button-next:hover,
#services .options .swiper-button-prev:hover {
  background-color: var(--crl-black);
}

#services .options .swiper-pagination {
  position: static;
  width: fit-content;
}

#services .options .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--crl-black);
  opacity: 10%;
  margin: 0 5px;
  transition: background-color 300ms ease-in-out, opacity 300ms ease-in-out;
}

#services .options .swiper-pagination-bullet-active,
#services .options .swiper-pagination-bullet:hover {
  background-color: var(--crl-primary);
  opacity: 1;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  color: var(--crl-light);
  font-size: 16px;
  font-weight: bold;
}

.rating {
  display: flex;
  gap: 2px;
  margin-top: 0.5rem;
}

.rating i {
  color: var(--crl-gray);
  opacity: 20%;
  transition: color 300ms ease-in-out, opacity 300ms ease-in-out;
}

.rating i.active,
.rating i:hover {
  color: #DBA102;
  opacity: 100%;
}

/* events */
#events {
  background-image: url(../images/frame39.svg);
  background-repeat: repeat-x;
  background-position: top;
  background-size: 920px;
  padding-top: 50px;
}

.event-item figure {
  width: 48px;
  aspect-ratio: 1;
  background-color: var(--crl-primary);
  border-radius: 50%;
  /* display: grid; */
  /* place-content: center; */
  overflow: hidden;
}

.event-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-item h3 {
  font-size: 18px;
  font-weight: 600;
}

/* open-data */
#open-data {
  background-image: url(../images/frame43.svg);
  background-repeat: repeat-x;
  background-position: top;
  background-size: 920px;
  padding-top: 50px;
}

.open-data-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid #E5E7EB;
}

.open-data-item figure {
  background-color: #DBA102;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  margin-bottom: 0.5rem;
  place-content: center;
}

.open-data-item figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.open-data-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.open-data-item a.cat {
  background-color: #FFF6DE;
  display: inline-block;
  padding: 4px 8px;
  color: #DBA102;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
}

.open-data-item a.cat:hover {
  background-color: #DBA102;
  color: var(--crl-light);
}

.open-data-item .arrow {
  display: block;
  width: 24px;
  height: 24px;
  margin-block: 0.5rem;
}

/* #stats */
#stats {
  background-image: url(../images/frame46.svg);
  background-repeat: repeat-x;
  background-position: top;
  background-size: 920px;
  padding-top: 50px;
}

.stats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-item {
  width: calc(50% - 20px);
  flex: 1 1 calc(50% - 20px);
  background-color: #ECFDF3;
  padding: 1rem;
  border-radius: 8px;
  transition: box-shadow 300ms ease-in-out;
  text-align: center;
}

.stat-item .icon {
  width: 56px;
  aspect-ratio: 1;
  background-color: #FFF;
  border-radius: 50%;
  display: grid;
  place-content: center;
  margin: 0 auto 1rem;
}

.stat-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.stat-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--crl-primary);
}

.stat-item p {
  margin: 0;
  color: var(--crl-gray);
  font-size: 18px;
}

/* #links */

#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style-type: none;
  padding: 0;
}

#links ul li {
  flex: 1 1 calc(33.333% - 20px);
  width: calc(33.333% - 20px);
}

#links ul li a {
  padding: .4rem .6rem;
  border: 1px solid #D2D6DB;
  border-radius: 8px;
  transition: box-shadow 300ms ease-in-out;
  color: var(--crl-primary);
  display: block;
  text-align: center;
}

#links ul li a:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#links .head-section {
  gap: 16px;
}

#links .head-section h2 {
  color: var(--crl-black);
}

#links .head-section figure {
  width: 44px;
  aspect-ratio: 1;
  background-color: #F3FCF6;
  border-radius: 50px;
  display: grid;
  place-content: center;
}

/* footer */

footer {
  background-color: #074D31;
  text-align: center;
  background-image: url(../images/footer-backeground.png);
  background-size: 920px;
  background-position: bottom;
  background-repeat: repeat-x;
  padding: 80px 0;
}

footer .footer-content p {
  margin: 0;
  font-size: 14px;
}

footer .footer-content a {
  color: var(--crl-light);
}

footer .footer-content a:hover {
  opacity: 0.8;
}

footer .footer-content ul {
  padding: 0;
}

footer .footer-content ul.icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0;
  list-style-type: none;
}

footer .footer-content ul.icons li a {
  border: 1px solid rgba(255, 255, 255, 30%);
  border-radius: 8px;
  filter: brightness(0)invert(1);
  aspect-ratio: 1;
  transition: background-color 300ms ease-in-out, opacity 300ms ease-in-out;
  width: 35px;
  display: grid;
  place-content: center;
}

footer .footer-content ul.icons li a svg {
  width: 20px;
  height: 20px;
}

footer .footer-content ul.icons li a:hover {
  background-color: rgba(255, 255, 255, 30%);
  opacity: 0.8;
}

.q-link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

footer .q-link a {
  color: var(--crl-light);
  font-size: 14px;
  opacity: 1;
}

footer .q-link a:hover {
  opacity: 0.8;
}

footer h5 {
  border-bottom: 1px solid rgba(255, 255, 255, 30%);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* Authority Page  */

#authority #about {
  background-color: #F6FEF9;
}

#authority #about .row {
  flex-direction: column-reverse;
}

#authority #about figure {
  background-color: #FFF;
  padding: .7rem;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  height: 350px;
}

#authority #about figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.content-about {
  line-height: 1.7;
}

.content-about h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

/* services-electronic */
#services-header .items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    "area1 area2"
    "area3 area4"
    "area5 area5";
  gap: 20px;
  justify-content: center;
}

#services-header .items .item {
  padding: 1rem;
  border: 1px solid #D2D6DB;
  border-radius: 8px;
  background-color: #FFF;
  transition: box-shadow 300ms ease-in-out;
  text-align: center;
}

#services-header .items .item:nth-child(1) {
  grid-area: area1;
}

#services-header .items .item:nth-child(2) {
  grid-area: area2;
}

#services-header .items .item:nth-child(3) {
  grid-area: area3;
}

#services-header .items .item:nth-child(4) {
  grid-area: area4;
}

#services-header .items .item:nth-child(5) {
  grid-area: area5;
  margin-inline: 70px;
}

#services-header .items .item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#services-header .items .item figure {
  width: 48px;
  aspect-ratio: 1;
  background-color: var(--crl-primary);
  border-radius: 50%;
  display: grid;
  place-content: center;
  margin-bottom: 0.5rem;
  margin-inline: auto;
  overflow: hidden;
}

#services-header .items .item figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

#services-header .items .item h2 {
  font-size: 1rem;
  margin: 0;
}

#services-header .items .item h2 a {
  color: var(--crl-black)
}

#services-header .items .item h2 a:hover {
  color: var(--crl-primary);
}

/* #prince-section  */
#about-prince .row {
  flex-direction: column-reverse;
}

#about-prince .content {
  line-height: 1.8;
}

#about-prince .content h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#about-prince .content ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

#about-prince .content ul li {
  margin-bottom: 0.5rem;
}

#about-prince .content ul li:last-child {
  margin-bottom: 0;
}

#about-prince figure {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #D2D6DB;
}

#about-prince figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  border-radius: 8px;
}

.content-section .item {
  background-color: #FFF;
  padding: 1rem;
  border: 1px solid #D2D6DB;
  transition: transform 300ms ease-in-out;
  border-radius: 8px;
}

.content-section .item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#eastern-header .items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  justify-content: center;
}

#eastern-header .items .item h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

#eastern-header .items .item h2 a {
  display: block;
  padding: 16px 0;
  text-align: center;
  border: 1px solid #D2D6DB;
  border-radius: 8px;
}

#eastern-header .items .item h2 a:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-custom {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  margin-bottom: 36px;
}

.nav-item-custom {
  list-style-type: none;
}

.nav-link-custom {
  padding: 10px 10px;
  text-align: center;
  border: 1px solid #D2D6DB;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background-color: #FFF;
  box-shadow: none;
  transition: box-shadow 300ms ease-in-out, border-color 300ms ease-in-out;
}

.nav-link-custom:is(.active) {
  box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.nav-link-custom figure {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #54C08A;
  margin-inline: auto;
}

.nav-link-custom figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

#aboutBoardRegion .inner-content {
  line-height: 1.8
}

#aboutBoardRegion .inner-content .btn+.btn {
  margin-top: 8px;
}

#aboutBoardRegion .inner-content h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--crl-primary);
}

.gallery-item {
  margin-bottom: 1rem;
  padding: 16px;
  border: 1px solid #D2D6DB;
  border-radius: 10px;
}

.gallery-item figure {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item>a {
  font-weight: 600;
  color: var(--crl-primary);
}

.gallery-item>a:hover {
  color: var(--crl-black);
}

.form-label-custom {
  display: block;
  margin-bottom: 8px;
}

.form-control-custom {
  display: block;
  width: 100%;
  background: #F3F4F6;
  border: none;
  outline: none;
  padding: 8px 16px;
  transition: background 300ms ease-in-out;
}

.form-control-custom:focus {
  background: #E5E7EB;
}

.form-label-custom>span {
  color: #B42318;
}

.custom-file-upload input[type="file"] {
  display: none;
}

.custom-file-upload label {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #D2D6DB;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  background: #FFF;
  transition: background 300ms ease-in-out;
  width: fit-content;
  margin-top: 16px;
}

.custom-file-upload:hover label {
  background: #E5E7EB;
}

.sidebar-contact {
  padding: 24px;
  border: 1px solid #D2D6DB;
  border-radius: 10px;
}

.sidebar-contact h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
}

.sidebar-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-contact ul li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  position: relative;
}

.sidebar-contact ul li p:not(.text-primary) {
  font-weight: 600;
}

.sidebar-contact ul li button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 300ms ease-in-out;
}

.sidebar-contact ul li button:hover {
  opacity: 0.7;
}

.text-primary {
  color: var(--crl-primary) !important;
}

.sidebar-contact .social-links {
  display: flex;
  gap: 12px;
}

.sidebar-contact .social-links a {
  width: 32px;
  height: 32px;
  display: grid;
  place-content: center;
  background: #FFF;
  transition: background 300ms ease-in-out, border-color 300ms ease-in-out;
}

.sidebar-contact .social-links a:hover {
  background: #E5E7EB;
  border-color: #D2D6DB;
}

.items-news .item {
  display: flex;
  gap: 16px;
  padding: 10px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

.items-news .item figure {
  margin: 0;
  width: 110px;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 8px;
  height: 90px;
}

.items-news .item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.items-news .item .caption {
  flex: 1;
}

.items-news .item .caption a {
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.items-news .item .caption p {
  display: none;
}

.items-news .item .caption .date {
  opacity: 90%;
  font-size: 13px;
}

.content-news figure {
  overflow: hidden;
  border-radius: 8px;
  height: 300px;
}

.content-news figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-news .date {
  margin-bottom: 16px;
}

.content-news .content {
  line-height: 1.8;
  margin-bottom: 24px;
}

.content-news>h1 {
  font-weight: bold;
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.content-service h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
}

.content-service .box {
  border: 1px solid #D2D6DB;
  margin: 0 0 30px;
  padding: 18px;
  line-height: 1.8;
  border-radius: 8px;
}

.content-service .box figure.icon {
  width: 48px;
  aspect-ratio: 1;
  background: #54C08A;
  border-radius: 50px;
  display: grid;
  place-content: center;
}

.content-service .box .text h2 {
  font-size: 19px;
  font-weight: 600;
}

.stars i {
  font-size: 23px;
}

.rating p {
  margin: 0;
}

.btn-share-group {
  display: flex;
  gap: 16px;
}

.btn-share-group svg {
  width: 20px;
  height: 20px;
}

.btn-share-group a:hover {
  opacity: 60%;
}

.page-views small {
  font-size: 16px;
  font-weight: 500;
}

.page-content p *,
.page-content p {
  font-size: 16px !important;
  line-height: 1.8;
  font-weight: 400;
}

@media (min-width: 767px) {
  #services-header .items {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-template-rows: unset;
    grid-template-areas: unset
  }

  #services-header .items .item:nth-child(1),
  #services-header .items .item:nth-child(2),
  #services-header .items .item:nth-child(3),
  #services-header .items .item:nth-child(4),
  #services-header .items .item:nth-child(5) {
    grid-area: unset;
    margin: 0 !important;
  }

  #about-prince .row {
    flex-direction: row;
    align-items: center;
  }

  .nav-custom {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  .nav-link-custom {
    width: 100%;
    text-align: start;
    font-size: 14px;
  }

  .nav-link-custom figure {
    margin-inline: unset;
  }

  #aboutBoardRegion .inner-content .btn+.btn {
    margin-top: 0;
    margin-inline-start: 16px;
  }

  .gallery-item figure {
    height: 250px;
  }

  .items-news .item figure {
    width: 150px;
    height: 110px;
  }

  .items-news .item .caption p {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
  }

  .content-news figure {
    height: 430px;
  }

  .open-data-item {
    flex-direction: row;
  }

  .open-data-item figure {
    flex: 0 0 auto;
    width: 90px;
  }

  #services,
  #events,
  #open-data,
  #stats,
  footer {
    background-size: 1310px;
  }
}

@media (min-width: 992px) {
  .head-section h2 {
    font-size: 2rem;
  }

  .logo {
    width: 160px;
  }

  header .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    font-size: 15px;
  }


  .hero .hero-image {
    height: 500px;
  }

  .hero .hero-content .inner {
    width: 480px;
  }

  .logo-national-day img {
    max-width: 180px
  }

  #news .row {
    flex-direction: unset
  }

  .stat-item {
    width: calc(33.333% - 20px);
    flex: 1 1 calc(33.333% - 20px);
  }

  #links ul li {
    flex: 1 1 calc(25% - 20px);
    width: calc(25% - 20px);
  }

  .card-site {
    min-height: 240px;
  }

  .news-item:is(.full) figure {
    height: 325px;
  }

  footer {
    text-align: start;
  }

  footer .footer-content ul.icons,
  .q-link {
    justify-content: flex-start;
  }

  .copy-right {
    margin-top: 40px;
  }

  .open-data-item {
    flex-direction: row;
    align-items: self-start;
    gap: 16px;
  }

  .open-data-item figure {
    width: 64px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    margin: 0;
  }

  #open-data .card-content {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 64px);
  }

  .hero .hero-swiper {
    min-height: 500px;
  }

  .hero .hero-content {
    padding-top: 190px
  }

  .hero .hero-content h1 {
    max-width: 100%;
    font-size: 45px;
    margin-bottom: 20px;
  }

  /* Authority */
  #authority #about .row {
    flex-direction: row;
    align-items: center;
  }

  #authority #about figure {
    height: 400px;
  }

  #services-header .items {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  #services-header .items .item {
    padding: 2rem;
  }

  #services-header .items .item h2 {
    font-size: 1.2rem;
    font-weight: 500;
  }

  #eastern-header .items {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .nav-custom {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  textarea.form-control-custom {
    min-height: 105px;
    resize: none;
  }

  .items-news .item figure {
    width: 180px;
    height: 130px;
  }

  .content-news figure {
    height: 650px;
  }

  .news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 155px);
    gap: 16px;
    grid-template-areas:
      'item1 item2'
      'item3 item2'
      'item4 .';
  }

  .news-list>div:last-child {
    display: none;
  }

  .news-list .news-item:nth-child(1) {
    grid-area: item1;
  }

  .news-list .news-item:nth-child(2) {
    grid-area: item2;
    margin: 0 !important;
    flex-direction: column-reverse;
  }

  .news-list .news-item:nth-child(3) {
    grid-area: item3;
  }

  .news-list .news-item:nth-child(4) {
    grid-area: item4;
  }


  .news-list .news-item:nth-child(2) figure {
    width: 100%;
    height: 355px;
  }

  #primary-menu .links {
    display: flex;
  }
}

@media (min-width: 1200px) {

  #btn-mobile,
  #primary-menu .logo-mobile {
    display: none;
  }

  header .logo-container {
    justify-content: flex-start;
    gap: 50px;
    padding: 0;
    align-items: center;
  }

  html[dir="ltr"] {
    header .logo-container {
      gap: 16px;
    }
  }

  #primary-menu {
    position: static;
    transform: translateX(0);
    opacity: 1;
    width: 100%;
    flex-basis: 100%;
    height: auto;
    align-items: center;
    padding: 0;
    background-color: transparent;
    z-index: 9;
    display: flex;
    justify-content: space-between;
  }

  html[dir="ltr"] #primary-menu {
    transform: unset
  }

  html[dir="ltr"] #primary-menu ul {
    gap: 3px !important;
  }

  #primary-menu ul {
    flex-direction: row;
    align-items: center !important;
    gap: 13px !important;
    order: unset;
    margin: 0;
    width: auto;
  }

  #primary-menu>ul>li>a {
    padding: 30px 5px;
    display: block;
    position: relative;
  }

  #primary-menu>ul>li>a:hover {
    background: #f3f4f6;
    color: inherit;
  }

  #primary-menu>ul>li.open>a {
    background: #1b8354;
    color: #FFF
  }

  #primary-menu>ul>li.open>a:after {
    filter: brightness(0)invert(1);
    transform: rotate(180deg)
  }

  #primary-menu>ul>li.open>a:before {
    background: #54c08a !important
  }

  #primary-menu>ul>li>a:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50px;
    background: #fff;
    height: 6px;
    width: 80%;
    transition: 300ms
  }

  #primary-menu>ul>li>a:hover:before {
    background: #9da4ae;
  }

  #primary-menu .drop-menu-site {
    width: fit-content;
  }

  .dropdown-menu-custom {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin: 0;
  }

  #primary-menu .links>a,
  #primary-menu .links>button {
    padding-block: 30px;
    padding-inline: 10px;
    position: relative;
  }


  #primary-menu .links>a:before,
  #primary-menu .links>button:before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50px;
    background: #fff;
    height: 6px;
    width: 80%;
    transition: 300ms
  }

  #primary-menu .links>a:hover {
    color: inherit;
    background-color: #f3f4f6
  }

  #primary-menu .links>a:hover:before,
  #primary-menu .links>button:hover:before {
    background: #9da4ae;
  }

  header .top {
    font-size: 16px;
    margin-bottom: 0 !important;
  }

  .hero-image {
    height: 560px;
  }

  .head-image .hero-content h1 {
    font-size: 50px;
  }

  .hero .hero-content {
    font-size: 20px;
  }

  .stat-item {
    width: calc(20% - 20px);
    flex: 1 1 calc(20% - 20px);
  }

  #links ul li {
    flex: unset;
    width: unset;
  }

  .content-page {
    padding: 2rem;
  }

  /* Authority */
  #authority #about figure {
    margin: 0;
    margin-inline-start: 20px;
  }

  #about-prince figure {
    width: 450px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #D2D6DB;
    margin-inline-start: auto;
  }

  .card-site h3 {
    font-size: 18px;
    font-weight: 700;
  }

  #primary-menu .btnClose {
    display: none;
  }

  .group-option {
    display: none;
  }
}

@media (min-width: 1400px) {
  .nav-custom {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}

/* تلميح نسبة الزوم */
#zoomHint {
  position: fixed;
  top: 1rem;
  inset-inline-end: 1rem;
  /* يدعم RTL/LTR */
  z-index: 9999;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

#zoomHint.show {
  opacity: 1;
  transform: translateY(0);
}

#modeHint {
  position: fixed;
  top: 1rem;
  inset-inline-end: 1rem;
  /* يدعم RTL / LTR */
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

#modeHint.show {
  opacity: 1;
  transform: translateY(0);
}

.btn-language {
  background: none;
  border: none;
}

@media (max-width: 768px) {

  header .top .weather,
  .locationEmara,
  .timeEmara {
    display: none !important;
  }

  header .top {
    font-size: .8rem;
  }

  header .top img {
    max-width: 18px;
  }

}

@media screen and (max-width: 992px) {
  .locationEmara {
    display: none !important;
  }
}

.page-views {
    border-top: 2px solid #1b8354;
    padding-top: 10px;
    padding-bottom: 10px;
}