@import "/css/main.css";
@import url("https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@400;600&display=swap");
@import url("https://fonts.googleapis.com/css?family=Play&display=swap");
@import url("https://fonts.googleapis.com/css?family=Almarai&display=swap");
@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css?family=Galada&display=swap");

/* main Section */
.main {
  background-image: url("../image/population2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

.main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.main-container {
  z-index: 1;
}

.main-content {
  text-align: center;
}

.main-content h1 {
  color: #ffffff;
  font-size: 3.5rem;
  font-weight: 800;
  margin: 0;
  padding: 20px 0;
}

.main-content p {
  color: #f5f5f5;
  font-size: 1.7rem;
  margin: 0;
  padding: 20px 0;
  text-align: center;
}

.main-content {
  animation: slideInFromLeft 1s ease-out;
}

.main-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 5;
}

@keyframes move-forever1 {
  0% {
    transform: translate(-90px, 0);
  }
  100% {
    transform: translate(85px, 0);
  }
}

@keyframes move-forever2 {
  0% {
    transform: translate(-90px, 0);
  }
  100% {
    transform: translate(85px, 0);
  }
}

@keyframes move-forever3 {
  0% {
    transform: translate(-90px, 0);
  }
  100% {
    transform: translate(85px, 0);
  }
}

.wave1 use {
  animation: move-forever1 10s linear infinite;
  animation-delay: -2s;
  fill: var(--background);
  opacity: 0.6;
}

.wave2 use {
  animation: move-forever2 8s linear infinite;
  animation-delay: -2s;
  fill: var(--background);
  opacity: 0.4;
}

.wave3 use {
  animation: move-forever3 6s linear infinite;
  animation-delay: -2s;
  fill: var(--background);
  opacity: 0.2;
}

@media (max-width: 480px) {
  .main-content h1 {
    font-size: 3rem;
  }
}
/* ////////////////// */
/*  Tooltip */
.tooltip,
.mobile-tooltip {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.4;
  z-index: 100;
}
.tooltip-header,
.mobile-tooltip-header {
  padding: 12px 16px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.tooltip-header_Ar,
.mobile-tooltip-header_Ar {
  padding: 12px 16px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  gap: 8px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  font-family: "Almarai", "Arial", sans-serif;
}
.tooltip-header .fa,
.mobile-tooltip-header .fa {
  font-size: 18px;
}
.tooltip-header .tooltip-date,
.mobile-tooltip-header .tooltip-date {
  font-size: 14px;
  opacity: 0.9;
}
.tooltip-content,
.mobile-tooltip-content {
  padding: 12px 16px;
}

/* Data rows - shared between both tooltips */
.data-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f4;
}
.data-row.indent {
  padding-left: 15px;
}
.data-row.indent_Ar {
  padding-right: 15px;
}
.data-row.section-header {
  margin-top: 8px;
  padding-bottom: 4px;
  border-bottom: none;
  font-weight: 600;
  color: #2c7be5;
}
.data-row.highlight {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 8px;
  margin: 8px 0;
}
.data-label {
  color: #6e84a3;
  font-weight: 500;
}
.data-value {
  color: #12263f;
  font-weight: 600;
}

/* **** */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
}
.tooltip-icon {
  margin-left: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: #555;
}
.tooltip-text {
  display: none;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(100%);
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  width: 270px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.tooltip-text[dir="rtl"] {
  right: 50%;
  transform: translateX(-50%);
  line-height: 2.5;
}
.tooltip-text.show {
  display: block;
}
.indented-list {
  margin-top: 6px;
  padding-left: 1.1rem;
}
.circle-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
}
.indicator-group {
  margin-left: 20px;
}
.indicator-group[dir="rtl"] {
  margin-right: 20px;
}

@media (max-width: 768px) {
  .tooltip-text {
    transform: translateX(-100%);
  }
}
@media (max-width: 480px) {
  .tooltip-text {
    transform: translateX(-50%);
  }
  .tooltip-text[dir="rtl"] {
    transform: translateX(50%);
    line-height: 2.5;
  }
}
@media (max-width: 375px) {
  .tooltip-text {
    transform: translateX(-50%);
  }
  .tooltip-text[dir="rtl"] {
    transform: translateX(50%);
    line-height: 2.5;
  }
}
/* ***** */

/* Desktop-specific tooltip styles */
.tooltip {
  position: absolute;
  max-width: 300px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

#chart3 .mobile-tooltip-content {
  padding: 12px 0;
}

#chart6 .mobile-tooltip-content {
  padding: 12px 16px;
}
.mobile-tooltip-content .tooltip-content {
  background: white;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #ddd;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.data-row .country-name {
  color: #6e84a3;
}

@media (max-width: 768px) {
  .Map {
    padding: 1rem 0;
  }
  .searchMap {
    flex-direction: row;
    width: 100%;
  }
  .legend {
    transform: scale(0.8);
    transform-origin: top left;
  }
  .tooltip {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .mobile-tooltip {
    display: none !important;
  }
}
.legend {
  margin: 10px 0;
}

/* ////////////////// */
/* section-chart1 */
.section-chart1 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart1-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
#legend-container-chart1 {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}
#legend-container-chart1 .legend-item {
  justify-content: center;
}
/* ***** */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.nav-pills li + li {
  margin-inline-start: 40px;
}

.nav-pills {
  border-bottom: 1px solid
    color-mix(in srgb, var(--text-color), transparent 85%);
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.nav-link {
  background: none;
  font-size: 18px;
  font-weight: 400;
  color: var(--text-color);
  padding: 12px 0;
  margin-bottom: -2px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block; /* Ensures consistent alignment */
}
.nav-link.active {
  color: var(--primary-color);
  background: none;
  border-bottom: 3px solid var(--primary-color);
}
.tab_content > .tab-pane {
  display: none;
}
.tab_content > .tab-pane.active {
  display: block;
}
.tab-pane ul li {
  margin-bottom: 15px;
}
/* ***** */
/* Creates the indentation */
.indented-list {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  list-style-type: disc;
}
.indented-list li {
  text-align: start;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.tab-pane ul {
  padding-left: 1.5rem;
  text-align: start;
}

[dir="rtl"] .tab-pane ul {
  padding-right: 1.5rem;
  text-align: start;
}

[dir="rtl"] .indented-list {
  padding-right: 2rem;
}

/* **** equation **** */
.Abbreviations {
  border: none;
  border-top: 1px dashed color-mix(in srgb, var(--text-color), transparent 85%);
  margin: 1.2em 0;
}
.abbr.highlight {
  font-weight: bold;
  color: #005c99;
}
.equation {
  display: block;
  text-align: center;
  margin: 1em 0;
}

/* ******** */
/* ************ */
.section-chart1-container .chart-container {
  margin-top: 30px;
}
.chart1-content {
  margin-top: 30px;
  max-width: 600px;
  animation: slideInFromRight 1s ease-out;
}
.chart1-content_tab1 {
  margin-top: 10px;
  max-height: 380px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart1-content_tab1.expanded,
.chart1-content_tab2.expanded,
.chart1-content_tab3.expanded {
  max-height: 1200px;
}
.chart1-content_tab1.expanded[dir="rtl"],
.chart1-content_tab2.expanded[dir="rtl"],
.chart1-content_tab3.expanded[dir="rtl"] {
  max-height: 1200px;
}

.chart1-content_tab1[dir="rtl"] {
  margin-top: 10px;
  max-height: 360px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart1-content_tab2 {
  margin-top: 10px;
  max-height: 370px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart1-content_tab2[dir="rtl"] {
  margin-top: 10px;
  max-height: 370px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart1-content_tab3 {
  margin-top: 10px;
  max-height: 380px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart1-content_tab3[dir="rtl"] {
  margin-top: 10px;
  max-height: 380px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart1-container p[dir="rtl"] {
  margin-bottom: 40px;
}
#legend-container-chart1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 10px 20px;
  padding: 10px;
  align-items: center;
}
body .katex {
  text-rendering: auto;
  font: normal 1.1em "Almarai", "Montserrat Alternates", Times New Roman, serif;
  line-height: 1.2;
  text-indent: 0;
}

@media (min-width: 1200px) {
  .section-chart1 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart1 {
    padding: 70px 30px;
  }
}

@media (max-width: 768px) {
  .section-chart1 {
    padding: 60px 20px;
  }
  .section-chart1-container {
    grid-template-columns: 1fr;
  }
  .nav {
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  .section-chart1 {
    padding: 30px 10px;
  }
  .section-chart1-container {
    grid-template-columns: 1fr;
  }
  .section-chart1-container .legend-container {
    grid-template-columns: 1fr 1fr;
  }
  .chart1-content {
    margin-top: 20px;
  }
  .section-chart1-container p[dir="rtl"] {
    margin-bottom: 20px;
  }
  .nav {
    flex-wrap: wrap;
  }
  .nav-pills li + li {
    margin-inline-start: 37px;
  }
  body .katex {
    text-rendering: auto;
    font: normal 0.9em "Almarai", "Montserrat Alternates", Times New Roman,
      serif;
    line-height: 1.2;
    text-indent: 0;
  }
}

@media (max-width: 420px) {
  .nav-pills li + li {
    margin-inline-start: 15px;
  }
  .chart1-content_tab3[dir="rtl"] {
    max-height: 330px; /* optional, adjust as needed */
  }
  body .katex {
    text-rendering: auto;
    font: normal 0.9em "Almarai", "Montserrat Alternates", Times New Roman,
      serif;
    line-height: 1.2;
    text-indent: 0;
  }
}

@media (max-width: 375px) {
  .nav-pills li + li {
    margin-inline-start: 15px;
  }
  .chart1-content_tab1 {
    max-height: 370px; /* optional, adjust as needed */
  }
  .chart1-content_tab2 {
    max-height: 350px; /* optional, adjust as needed */
  }
  .chart1-content_tab3[dir="rtl"] {
    max-height: 360px; /* optional, adjust as needed */
  }
  body .katex {
    text-rendering: auto;
    font: normal 0.9em "Almarai", "Montserrat Alternates", Times New Roman,
      serif;
    line-height: 1.2;
    text-indent: 0;
  }
}

/* -------------------------------------------- */
/* section-chart2 */
.section-chart2 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.section-chart2-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart2-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart2-content {
  margin-top: 20px;
}
.chart2-content.expandable-text {
  max-height: none;
  overflow: visible;
  transition: max-height 0.4s ease;
}
.chart2-content.expandable-text[dir="rtl"] {
  max-height: none;
  overflow: visible;
  transition: max-height 0.4s ease;
}
#legend-container-chart2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-left: 30px;
  padding: 10px;
  align-items: center;
}
#legend-container-chart2[dir="rtl"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-right: 110px;
  padding: 10px;
  align-items: center;
}

@media (min-width: 1200px) {
  .section-chart2 {
    padding: 100px 40px;
  }
  .section-chart2-container .read-more-btn {
    display: none;
  }
  .section-chart2-container .read-more-btn[dir="rtl"] {
    display: none;
  }
}
@media (max-width: 992px) {
  .section-chart2 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart2 {
    padding: 60px 20px;
  }
  .section-chart2-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart2-content.expandable-text {
    max-height: 210px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart2-content.expandable-text[dir="rtl"] {
    max-height: 190px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded[dir="rtl"] {
    max-height: 1200px; /* expand height smoothly */
  }
  #legend-container-chart2 {
    grid-template-columns: repeat(2, 1fr);
    text-align: start;
    margin-right: 110px;
  }
  .chart2-content {
    margin-top: 5px;
  }
}
@media (max-width: 480px) {
  .section-chart2 {
    padding: 60px 10px;
  }
  .chart2-content.expandable-text {
    max-height: 200px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart2-content.expandable-text[dir="rtl"] {
    max-height: 200px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded[dir="rtl"] {
    max-height: 1200px; /* expand height smoothly */
  }
  #legend-container-chart2 {
    grid-template-columns: 1fr;
    text-align: center;
    margin-left: 10px;
  }

  #legend-container-chart2[dir="rtl"] {
    grid-template-columns: 1fr;
    text-align: center;
    margin-right: 40px;
  }
  .chart2-content {
    margin-top: 5px;
  }
}

/* section-chart3 */
.section-chart3 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart3-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart3-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart3-content {
  margin-top: 10px;
  max-height: 450px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart3-content[dir="rtl"] {
  margin-top: 10px;
  max-height: 390px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart3-content.expanded {
  max-height: 1200px;
}
.chart3-content.expanded[dir="rtl"] {
  max-height: 1200px;
}
#legend-container-chart3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-left: 30px;
  padding: 10px;
  align-items: center;
}
#legend-container-chart3[dir="rtl"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-right: 85px;
  padding: 10px;
  align-items: center;
}
#controls-chart3 .date-range-label {
  width: 20%;
}

@media (min-width: 1200px) {
  .section-chart3 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart3 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart3 {
    padding: 60px 20px;
  }
  .section-chart3-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart3-content {
    margin-top: 5px;
    max-height: 280px;
  }
  .chart3-content[dir="rtl"] {
    max-height: 295px;
  }
  .chart3-content.expanded {
    max-height: 1700px;
  }
  .chart3-content.expanded[dir="rtl"] {
    max-height: 1700px;
  }
}
@media (max-width: 480px) {
  .section-chart3 {
    padding: 60px 10px;
  }
  .section-chart3-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart3-content {
    margin-top: 5px;
    max-height: 260px;
  }
  .chart3-content[dir="rtl"] {
    max-height: 280px;
  }
  .chart3-content.expanded {
    max-height: 1700px;
  }
  .chart3-content.expanded[dir="rtl"] {
    max-height: 1700px;
  }
  #legend-container-chart3 {
    grid-template-columns: 1fr;
    text-align: center;
    margin-left: 10px;
  }
  #legend-container-chart3[dir="rtl"] {
    grid-template-columns: 1fr;
    text-align: center;
    margin-right: 40px;
  }
  #controls-chart3 .date-range-label {
    width: 30%;
  }
}
@media (max-width: 375px) {
  .chart3-content {
    margin-top: 5px;
    max-height: 300px;
  }
  .chart3-content[dir="rtl"] {
    max-height: 295px;
  }
  .chart3-content.expanded {
    max-height: 1700px;
  }
  .chart3-content.expanded[dir="rtl"] {
    max-height: 1700px;
  }
}

/* --------------------------------- */
/* chart4 */
.section-chart4 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.section-chart4-container {
  margin: 0 auto;
  text-align: center;
}
.section-chart4-content {
  animation: slideInFromLeft 1s ease-out;
}
.section-chart4-container .chart-container {
  margin-top: 5px;
}

#chart4 svg {
  margin-right: 20px;
}
#chart4 svg:last-child {
  margin-right: 0;
}
#chart4[dir="rtl"] svg {
  margin-left: 20px;
  margin-right: 0;
}
#chart4[dir="rtl"] svg:last-child {
  margin-left: 0;
  margin-right: 0;
}
.custom-tooltip {
  font-size: 12px;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1.4em;
}

@media (max-width: 480px) {
  .section-chart4 {
    padding: 60px 10px;
  }
}
@media (max-width: 375px) {
  .section-chart4 {
    padding: 60px 10px;
  }
}

/* section-chart5 */
.section-chart5 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart5-container {
  margin: 0 auto;
  text-align: center;
}
.section-chart5-content {
  animation: slideInFromLeft 1s ease-out;
}
.chart-content {
  margin-top: 10px;
  max-height: 350px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart5-content[dir="rtl"] {
  margin-top: 10px;
  max-height: 200px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart5-content.expanded {
  max-height: 1200px;
}
.chart5-content.expanded[dir="rtl"] {
  max-height: 1200px;
}

.section-chart5-container .chart-container {
  margin-top: 10px;
}
#SelectSearch-chart5 {
  margin-top: 10px;
}
.itmes-selector {
  width: 200px;
  position: relative;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  margin-right: 10px;
  font-family: "Montserrat Alternates", "ply", "Roboto", "Arial", sans-serif;
  transition: border-color 0.3s ease;
}
.itmes-selector:focus {
  border-color: var(--accent-color);
  outline: none;
}
.itmes-selector[dir="rtl"] {
  position: relative;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  margin-right: 10px;
  font-family: "Almarai", "Arial", sans-serif;
  transition: border-color 0.3s ease;
}
.itmes-selector[dir="rtl"]:focus {
  border-color: var(--accent-color);
  outline: none;
}

.paragraph-box {
  border-left: 4px solid #daa520;
  padding: 1rem 3.2rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.paragraph-box[dir="rtl"] {
  border-right: 4px solid #daa520;
  border-left: none;
  padding: 1rem 3.2rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 1200px) {
  .section-chart5 {
    padding: 100px 40px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: start;
    flex-direction: row;
  }
  .cta-buttons a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .section-chart5 {
    padding: 70px 30px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: start;
  }
  .cta-buttons a {
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .section-chart5 {
    padding: 60px 20px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: center;
  }
  .cta-buttons a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  .chart5-content[dir="rtl"] {
    max-height: 250px; /* optional, adjust as needed */
  }
}

@media (max-width: 480px) {
  .section-chart5 {
    padding: 60px 10px;
  }
  .section-chart5-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-chart5-container h2 {
    text-align: start;
  }
  .paragraph-box {
    border-left: 2px solid #daa520;
    padding: 0.5rem 0 0.5rem 0.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    box-shadow: none;
    transition: none;
  }
  .paragraph-box[dir="rtl"] {
    border-right: 2px solid #daa520;
    border-left: none;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    box-shadow: none;
    transition: none;
  }
  .paragraph-box[dir="rtl"]:hover {
    transform: none;
  }
  .section-chart5-container .SelectSearch {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1px;
  }
  .content .cta-buttons[dir="rtl"] {
    direction: ltr;
    flex-direction: column;
  }
  .cta-buttons a {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  .chart5-content {
    max-height: 225px; /* optional, adjust as needed */
  }
  .chart5-content[dir="rtl"] {
    max-height: 245px; /* optional, adjust as needed */
  }
  .chart5-content.expanded {
    max-height: 1800px;
  }
  .chart5-content.expanded[dir="rtl"] {
    max-height: 1800px;
  }
}
@media (max-width: 375px) {
  .section-chart5-container .SelectSearch {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1px;
  }
  .paragraph-box {
    border-left: 2px solid #daa520;
    padding: 0.5rem 0 0.5rem 0.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    box-shadow: none;
    transition: none;
  }
  .paragraph-box[dir="rtl"] {
    border-right: 2px solid #daa520;
    border-left: none;
    padding: 0.5rem 0.5rem 0.5rem 0;
    border-radius: 8px;
    margin-top: 1.5rem;
    box-shadow: none;
    transition: none;
  }
  .paragraph-box[dir="rtl"]:hover {
    transform: none;
  }
  .chart5-content.expanded {
    max-height: 1800px;
  }
  .chart5-content.expanded[dir="rtl"] {
    max-height: 1800px;
  }
}

/* ***************************** */
.TapMap_chart6 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.TapMap_chart6-container {
  display: block;
}
.section-TapMap_chart6-content .nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  gap: 8px;
  width: 100%;
}

.section-TapMap_chart6-content .nav-pills {
  background: color-mix(in srgb, var(--text-color), transparent 95%);
  padding: 6px;
  border-radius: 12px;
  width: 100%;
  display: flex;
}

.section-TapMap_chart6-content .nav-pills li {
  flex: 1;
}

.section-TapMap_chart6-content .nav-pills li + li {
  margin-inline-start: 0;
}

.section-TapMap_chart6-content .mb-2 {
  margin-bottom: 1.5rem !important;
}

.section-TapMap_chart6-content .nav-link {
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: color-mix(in srgb, var(--text-color), transparent 30%);
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
}

.section-TapMap_chart6-content .nav-link:hover {
  color: var(--text-color);
  background: color-mix(in srgb, var(--text-color), transparent 92%);
}

.section-TapMap_chart6-content .nav-link.active {
  color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color), transparent 90%);
  font-weight: 600;
  border: none;
}

.section-TapMap_chart6-content .tab-content > .tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.section-TapMap_chart6-content .tab-content > .tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-TapMap_chart6-content .tab-pane ul li {
  margin-bottom: 15px;
}

/* ***************************** */
/* Map Section */
.Map {
  padding: 0 20px;
  background: var(--background, #f9f9f9);
}
#governorateSelect {
  margin-bottom: 10px;
  width: 210px;
  position: relative;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  margin-right: 10px;
  font-family: "Montserrat Alternates", "ply", "Roboto", "Arial", sans-serif;
  transition: border-color 0.3s ease;
}
#governorateSelect:focus {
  border-color: var(--accent-color);
  outline: none;
}
#governorateSelect[dir="rtl"] {
  position: relative;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  margin-right: 10px;
  font-family: "Almarai", "Arial", sans-serif;
  transition: border-color 0.3s ease;
}
#governorateSelect[dir="rtl"]:focus {
  border-color: var(--accent-color);
  outline: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#OmanMap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
  animation: slideInFromLeft 1s ease-out;
}
.Map-container .tooltip-text {
  bottom: 63%;
  transform: translateX(-100%);
}
.Map-container .tooltip-text[dir="rtl"] {
  bottom: 100%;
  transform: translateX(-75%);
}
@media (max-width: 768px) {
  .Map {
    padding: 0;
  }
  .Map-container {
    width: 100%;
  }
  #OmanMap .legend {
    transform: translate(17px, 40px);
  }
  .Map-container .tooltip-text {
    bottom: 45%;
    transform: translateX(-90%);
  }
  .Map-container .tooltip-text[dir="rtl"] {
    bottom: 63%;
    transform: translateX(50%);
  }
}
@media (max-width: 480px) {
  .Map {
    padding: 0;
  }
  #OmanMap {
    display: block;
  }
  .Map-container .tooltip-text {
    bottom: 40%;
    transform: translateX(-55%);
  }
  .Map-container .tooltip-text[dir="rtl"] {
    bottom: 45%;
  }
}
@media (max-width: 375px) {
  .Map {
    padding: 0;
  }
  .Map-container .tooltip-text {
    bottom: 30%;
  }
}
/* ***************** */
/* chart6 */
.section-chart6 {
  padding: 0 20px;
  background: var(--background, #f9f9f9);
}
#chart6 {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  animation: slideInFromRight 1s ease-out;
}

/* **** */
.chart6_container .tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-icon {
  margin-left: 6px;
  cursor: pointer;
  font-size: 1rem;
  color: #555;
}

.chart6_container .tooltip-text {
  display: none;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.4;
  width: 310px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}
.chart6_container .tooltip-text[dir="rtl"] {
  right: 50%;
  bottom: 63%;
  transform: translateX(70%);
  line-height: 2.5;
}

.tooltip-text.show {
  display: block;
}

.indented-list {
  margin-top: 6px;
  padding-left: 1.1rem;
}
@media (max-width: 768px) {
  .chart6_container .tooltip-text {
    bottom: 45%;
    transform: translateX(4%);
  }
}
@media (max-width: 768px) {
  .chart6_container .tooltip-text[dir="rtl"] {
    transform: translateX(90%);
  }
}
@media (max-width: 480px) {
  .chart6_container .tooltip-text {
    bottom: 30%;
    transform: translateX(-50%);
  }
}
@media (max-width: 480px) {
  .chart6_container .tooltip-text[dir="rtl"] {
    bottom: 36%;
    transform: translateX(50%);
  }
}
@media (max-width: 375px) {
  .chart6_container .tooltip-text {
    bottom: 25%;
    transform: translateX(-50%);
  }
  .chart6_container .tooltip-text[dir="rtl"] {
    bottom: 30%;
    transform: translateX(50%);
    line-height: 2.5;
  }
}
/* ***** */
.chart6-container {
  display: block;
}
.chart6-container svg {
  width: 100%;
  height: 600px;
}

@media (max-width: 480px) {
  .section-chart6 {
    padding: 0;
  }
  .chart6_container {
    width: 100%;
  }
  .chart6-container svg {
    height: 400px;
  }
}
@media (max-width: 375px) {
  .chart6-container svg {
    height: 300px;
  }
}
/* ***** */
/* card_chart6 */

.section-card_chart6 {
  padding: 150px 20px;
  background: var(--section-bg, #f8f9fa);
}
.card_chart6 h2 {
  margin-bottom: 30px;
}
.card_chart6-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for large screens */
  gap: 2rem;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}
.card_chart6-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card_chart6-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.card_chart6-item h3 {
  color: var(--primary-color, #007bff);
}
.item-list {
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: start;
  padding-left: 10px;
  color: var(--secondary-color, #555);
}
.item-listd {
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: start;
  padding-right: 10px;
  color: var(--secondary-color, #555);
}
.item-list li {
  padding-left: 10px;
  margin-bottom: 10px;
}
.item-list[dir="rtl"] {
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: start;
  padding-right: 10px;
  color: var(--secondary-color, #555);
}
.item-list[dir="rtl"] li {
  padding-right: 10px;
  margin-bottom: 10px;
}
.highlight {
  margin-right: 8px;
}
.item-list[dir="rtl"] .highlight {
  margin-left: 25px;
}

@media (min-width: 1200px) {
  .card_chart6-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for XL screens */
  }
  .card_chart6-item {
    padding: 24px;
  }
}

@media (max-width: 992px) {
  .card_chart6-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
  }
  .card_chart6-item {
    padding: 20px;
  }
  .card_chart6-item p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .card_chart6-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    animation: none;
  }
  .card_chart6-item {
    flex: 1 1 calc(50% - 1rem); /* 2 columns for small screens */
    padding: 14px;
    box-sizing: border-box;
  }
  .card_chart6-item p {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .wilayat-list {
    font-size: 0.8rem;
    line-height: 1.7;
    padding-left: 7px;
  }

  .wilayat-list li {
    padding-left: 7px;
    margin-bottom: 7px;
  }
}

@media (max-width: 576px) {
  .card_chart6-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: none;
  }
  .card_chart6-item {
    flex: 1 1 100%; /* full width for mobile */
    box-sizing: border-box;
  }
  .card_chart6-item p {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .wilayat-list {
    font-size: 0.7rem;
    line-height: 1.7;
    padding-left: 6px;
  }

  .wilayat-list li {
    padding-left: 6px;
    margin-bottom: 6px;
  }
}

/* **************************** */
/* chart7 */
.section-chart7 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
#chart7 {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  animation: slideInFromRight 1s ease-out;
}
.chart7-container {
  border-right: 1px solid var(--border-color);
  padding-right: 10px;
}
.tooltip-text {
  width: 320px;
}
.responsive-svg {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.chart7 svg {
  flex: 1; /* Chart area takes remaining space */
}
.chart7-governorat-selector,
.chart7-legend-selector {
  margin-bottom: 35px;
}
.chart7-governorat-selector label,
.chart7-legend-selector label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}
.chart7-governorat-selector[dir="rtl"] label,
.chart7-legend-selector[dir="rtl"] label {
  font-weight: 400;
  margin-bottom: 5px;
  display: block;
}
#governorate-control-buttons,
.legend-control-buttons {
  margin: 10px 0;
}
.chart7-dropdown[dir="rtl"] select:focus {
  border-color: var(--accent-color);
  outline: none;
}
.chart7-governorat-list,
.chart7-legend-list {
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  background-color: var(--card-bg);
  cursor: pointer;
}
.chart7-governorat-list label,
.chart7-legend-list label {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: normal;
  color: var(--light-text);
}
.chart7-governorat-list input[type="checkbox"],
.chart7-legend-list input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #3264c8;
}
.chart7-governorat-list[dir="rtl"] input[type="checkbox"],
.chart7-legend-list[dir="rtl"] input[type="checkbox"] {
  margin-left: 6px;
  accent-color: #3264c8;
}

@media (min-width: 1200px) {
  #chart7 {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  #chart7 {
    flex-direction: column;
  }
  .chart7-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .responsive-svg {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .section-chart7 {
    padding: 60px 10px;
  }
  .chart7_container h2 {
    margin-bottom: 2rem;
  }
  #chart7 {
    flex-direction: column;
  }
  .chart7-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
}

@media (max-width: 375px) {
  .section-chart7 {
    padding: 60px 10px;
  }
  .responsive-svg {
    max-width: 100%;
  }

  .chart7-governorat-selector,
  .chart7-legend-selector {
    margin-bottom: 15px;
  }
}

/* section-chart8 */
.section-chart8 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart8-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.section-chart8-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
  display: flex;
  flex-direction: column;
}
.chart8-content {
  margin-top: 10px;
  max-height: 350px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart8-content[dir="rtl"] {
  margin-top: 10px;
  max-height: 390px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart8-content.expanded {
  max-height: 1200px;
}
.chart8-content.expanded[dir="rtl"] {
  max-height: 1200px;
}

#controls-chart8 .date-range-label {
  width: 15%;
}
#legend-container-chart8 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-left: 30px;
  padding: 10px;
  align-items: center;
}
#legend-container-chart8[dir="rtl"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-right: 80px;
  padding: 10px;
  align-items: center;
}

@media (min-width: 1200px) {
  .section-chart8 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart8 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart8 {
    padding: 60px 20px;
  }
  .section-chart8-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart8-content {
    margin-top: 5px;
  }
  .chart8-content[dir="rtl"] {
    max-height: 295px;
  }
  .chart8-content.expanded {
    max-height: 1700px;
  }
  .chart8-content.expanded[dir="rtl"] {
    max-height: 1700px;
  }
  #legend-container-chart8 {
    grid-template-columns: repeat(2, 1fr);
    text-align: start;
    margin-right: 110px;
  }
  #legend-container-chart8[dir="rtl"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-right: 85px;
    padding: 10px;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .section-chart8 {
    padding: 60px 10px;
  }
  .section-chart8-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart8-content {
    margin-top: 5px;
  }
  #controls-chart8 .date-range-label {
    width: 30%;
  }
  #legend-container-chart8 {
    grid-template-columns: 1fr;
    text-align: center;
    margin-left: 10px;
  }
  #legend-container-chart8[dir="rtl"] {
    grid-template-columns: 1fr;
    text-align: center;
    margin-right: 40px;
  }
}

/* section-chart9 */
.section-chart9 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.section-chart9-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart9-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart9-content {
  margin-top: 50px;
}
.chart9-content p {
  margin-bottom: 50px;
}
.chart9-content[dir="rtl"] p {
  margin-bottom: 50px;
}
#legend-container-chart9 {
  margin-left: 50px;
}
#legend-container-chart9[dir="rtl"] {
  margin-right: 50px;
}
/* Apply grid layout ONLY to the labels */
#legend-container-chart9 label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 10px;
}
#legend-container-chart9 h3 {
  font-size: 16px;
}
.legend-container h3 {
  grid-column: 1 / -1; /* spans full width if inside a grid */
  margin-bottom: 0.1rem;
}

#controls-chart9 .date-range-label {
  width: 20%;
}

@media (min-width: 1200px) {
  .section-chart9 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart9 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart9 {
    padding: 60px 20px;
  }
  .chart9-content p {
    margin-bottom: 15px;
  }
  .chart9-content[dir="rtl"] p {
    margin-bottom: 15px;
  }
  .section-chart9-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  #legend-container-chart9 label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
  }
  .legend-container h3 {
    grid-column: 1 / -1; /* spans full width if inside a grid */
    margin-bottom: 0.1rem;
  }
  .chart9-content {
    margin-top: 5px;
  }
}
@media (max-width: 480px) {
  .section-chart9 {
    padding: 60px 10px;
  }
  .section-chart9-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart9-content {
    margin-top: 5px;
  }
  .chart9-content p {
    margin-bottom: 10px;
  }
  .chart9-content[dir="rtl"] p {
    margin-bottom: 10px;
  }
  #legend-container-chart9 {
    margin-left: 20px;
  }
  #legend-container-chart9[dir="rtl"] {
    margin-right: 15px;
  }
  #controls-chart9 .date-range-label {
    width: 30%;
  }
}

/* section-chart10 */
.section-chart10 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart10-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart10-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart10-content {
  margin-top: 10px;
  max-height: 350px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart10-content[dir="rtl"] {
  margin-top: 10px;
  max-height: 380px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart10-content.expanded {
  max-height: 1200px;
}
.chart10-content.expanded[dir="rtl"] {
  max-height: 1200px;
}
#controls-chart10 .date-range-label {
  width: 15%;
}
#legend-container-chart10 {
  margin-left: 50px;
}
#legend-container-chart10[dir="rtl"] {
  margin-right: 50px;
}

@media (min-width: 1200px) {
  .section-chart10 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart10 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart10 {
    padding: 60px 20px;
  }
  .section-chart10-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart10-content {
    margin-top: 5px;
  }
  .chart10-content {
    max-height: 300px; /* optional, adjust as needed */
  }
}
@media (max-width: 480px) {
  .section-chart10 {
    padding: 60px 10px;
  }
  .section-chart10-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .chart10-content {
    margin-top: 5px;
    max-height: 335px; /* optional, adjust as needed */
  }
  .chart10-content[dir="rtl"] {
    max-height: 370px;
  }
  #controls-chart10 .date-range-label {
    width: 30%;
  }
  #legend-container-chart10 {
    margin-left: 20px;
  }
  #legend-container-chart10[dir="rtl"] {
    margin-right: 20px;
  }
}
@media (max-width: 375px) {
  .chart10-content {
    max-height: 327px; /* optional, adjust as needed */
  }
  .chart10-content[dir="rtl"] {
    max-height: 330px;
  }
}

/* section-chart11 */
.section-chart11 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.section-chart11-container {
  margin: 0 auto;
  text-align: center;
}
.section-chart11-content {
  animation: slideInFromLeft 1s ease-out;
}
.chart11-content {
  margin-top: 10px;
  max-height: 350px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart11-content[dir="rtl"] {
  margin-top: 10px;
  max-height: 390px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart11-content.expanded {
  max-height: 1200px;
}
.chart11-content.expanded[dir="rtl"] {
  max-height: 1200px;
}

.section-chart11-container .chart-container {
  margin-top: 10px;
}

#SelectSearch-chart11 {
  margin-top: 10px;
}

.itmes-selector {
  width: 200px;
  position: relative;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  margin-right: 10px;
  font-family: "Montserrat Alternates", "ply", "Roboto", "Arial", sans-serif;
  transition: border-color 0.3s ease;
}

.itmes-selector:focus {
  border-color: var(--accent-color);
  outline: none;
}

.itmes-selector[dir="rtl"] {
  position: relative;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  margin-right: 10px;
  font-family: "Almarai", "Arial", sans-serif;
  transition: border-color 0.3s ease;
}

.itmes-selector[dir="rtl"]:focus {
  border-color: var(--accent-color);
  outline: none;
}

@media (min-width: 1200px) {
  .section-chart11 {
    padding: 100px 40px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: start;
    flex-direction: row;
  }
  .cta-buttons a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .section-chart11 {
    padding: 70px 30px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: start;
  }
  .cta-buttons a {
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .section-chart11 {
    padding: 60px 20px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: center;
  }
  .cta-buttons a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  .chart11-content[dir="rtl"] {
    max-height: 280px; /* optional, adjust as needed */
  }
}

@media (max-width: 480px) {
  .section-chart11 {
    padding: 60px 10px;
  }
  .section-chart11-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-chart11-container h2 {
    text-align: start;
  }
  .section-chart11-container .SelectSearch {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1px;
  }
  .content .cta-buttons[dir="rtl"] {
    direction: ltr;
    flex-direction: column;
  }
  .cta-buttons a {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  .chart11-content.expanded {
    max-height: 1800px;
  }
  .chart11-content.expanded[dir="rtl"] {
    max-height: 1800px;
  }
  .chart11-content[dir="rtl"] {
    max-height: 245px; /* optional, adjust as needed */
  }
}
@media (max-width: 375px) {
  .section-chart11-container .SelectSearch {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1px;
  }
  .chart11-content.expanded {
    max-height: 1800px;
  }
  .chart11-content.expanded[dir="rtl"] {
    max-height: 1800px;
  }
}

/* section-chart12 */
.section-chart12 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart12-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart12-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart12-content {
  margin-top: 1px;
}
.chart12-content.expandable-text {
  max-height: none;
  overflow: visible;
  transition: max-height 0.4s ease;
}
.chart12-content.expandable-text[dir="rtl"] {
  max-height: none;
  overflow: visible;
  transition: max-height 0.4s ease;
}
#legend-container-chart12 {
  margin-left: 50px;
}
#legend-container-chart12[dir="rtl"] {
  margin-right: 50px;
}
#controls-chart12 .date-range-label {
  width: 15%;
}

@media (min-width: 1200px) {
  .section-chart12 {
    padding: 100px 40px;
  }
  .section-chart12-container .read-more-btn {
    display: none;
  }
  .section-chart12-container .read-more-btn[dir="rtl"] {
    display: none;
  }
}
@media (max-width: 992px) {
  .section-chart12 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart12 {
    padding: 60px 20px;
  }
  .section-chart12-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart12-content.expandable-text {
    max-height: 180px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart12-content.expandable-text[dir="rtl"] {
    max-height: 160px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded[dir="rtl"] {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart12-content {
    margin-top: 5px;
  }
}
@media (max-width: 480px) {
  .section-chart12 {
    padding: 60px 10px;
  }
  .chart12-content.expandable-text {
    max-height: 200px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart12-content.expandable-text[dir="rtl"] {
    max-height: 205px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded[dir="rtl"] {
    max-height: 1200px; /* expand height smoothly */
  }
  .section-chart12-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart12-content {
    margin-top: 5px;
  }
  #controls-chart12 .date-range-label {
    width: 30%;
  }
}

/* section-chart13 */
.section-chart13 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.section-chart13-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
#legend-container-chart13 .legend-item {
  justify-content: center;
}

.chart13-content {
  margin-top: 30px;
  max-width: 600px;
  animation: slideInFromRight 1s ease-out;
}
.section-chart13-content {
  margin-top: 50px;
}
.section-chart13-content[dir="rtl"] {
  margin-top: 70px;
}
.section-chart13-content p {
  margin-bottom: 50px;
}
.section-chart13-container p[dir="rtl"] {
  margin-bottom: 40px;
}
#legend-container-chart13 {
  margin-left: 50px;
}
#legend-container-chart13[dir="rtl"] {
  margin-right: 70px;
}

@media (min-width: 1200px) {
  .section-chart13 {
    padding: 100px 40px;
  }
}

@media (max-width: 992px) {
  .section-chart13 {
    padding: 70px 30px;
  }
}

@media (max-width: 768px) {
  .section-chart13 {
    padding: 60px 20px;
  }
  .section-chart13-container {
    grid-template-columns: 1fr;
  }
  .section-chart13-content {
    margin-top: 5px;
  }
  .section-chart13-content[dir="rtl"] {
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  .section-chart13 {
    padding: 30px 10px;
  }
  .section-chart13-container {
    grid-template-columns: 1fr;
  }
  .section-chart13-content {
    margin-top: 20px;
  }
  .section-chart13-content[dir="rtl"] {
    margin-top: 20px;
  }
  .chart13-content {
    margin-top: 20px;
  }
  .section-chart13-container p[dir="rtl"] {
    margin-bottom: 20px;
  }
}

/* section-chart14 */
.section-chart14 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart14-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart14-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart14-content {
  margin-top: 50px;
}
.chart14-content p {
  margin-bottom: 50px;
}
.chart14-content[dir="rtl"] p {
  margin-bottom: 50px;
}
#legend-container-chart14 h3 {
  font-size: 16px;
}
#controls-chart14 .date-range-label {
  width: 20%;
}
#legend-container-chart14 {
  margin-left: 50px;
}
#legend-container-chart14[dir="rtl"] {
  margin-right: 50px;
}

@media (min-width: 1200px) {
  .section-chart14 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart14 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart14 {
    padding: 60px 20px;
  }
  .section-chart14-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart14-content {
    margin-top: 5px;
  }
  .chart14-content p {
    margin-bottom: 10px;
  }
  .chart14-content[dir="rtl"] p {
    margin-bottom: 10px;
  }
  #legend-container-chart14 label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
  }
}
@media (max-width: 480px) {
  .section-chart14 {
    padding: 60px 10px;
  }
  .section-chart14-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart14-content {
    margin-top: 5px;
  }
  #controls-chart14 .date-range-label {
    width: 30%;
  }
  .chart14-content p {
    margin-bottom: 10px;
  }
  .chart14-content[dir="rtl"] p {
    margin-bottom: 10px;
  }
}

/* section-chart15 */
.section-chart15 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.section-chart15-container {
  margin: 0 auto;
  text-align: center;
}
.section-chart15-content {
  animation: slideInFromLeft 1s ease-out;
}
.chart15-content.expanded {
  max-height: 1200px;
}

.section-chart15-container .chart-container {
  margin-top: 10px;
}

#SelectSearch-chart15 {
  margin-top: 10px;
}

.itmes-selector {
  width: 200px;
  position: relative;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  margin-right: 10px;
  font-family: "Montserrat Alternates", "ply", "Roboto", "Arial", sans-serif;
  transition: border-color 0.3s ease;
}

.itmes-selector:focus {
  border-color: var(--accent-color);
  outline: none;
}

.itmes-selector[dir="rtl"] {
  position: relative;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  margin-right: 10px;
  font-family: "Almarai", "Arial", sans-serif;
  transition: border-color 0.3s ease;
}

.itmes-selector[dir="rtl"]:focus {
  border-color: var(--accent-color);
  outline: none;
}

@media (min-width: 1200px) {
  .section-chart15 {
    padding: 100px 40px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: start;
    flex-direction: row;
  }
  .cta-buttons a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .section-chart15 {
    padding: 70px 30px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: start;
  }
  .cta-buttons a {
    padding: 0.9rem 1.4rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .section-chart15 {
    padding: 60px 20px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: center;
  }
  .cta-buttons a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .section-chart15 {
    padding: 60px 10px;
  }
  .section-chart15-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-chart15-container h2 {
    text-align: start;
  }

  .section-chart15-container .SelectSearch {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1px;
  }

  .content .cta-buttons[dir="rtl"] {
    direction: ltr;
    flex-direction: column;
  }
  .cta-buttons a {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 375px) {
  .section-chart15-container .SelectSearch {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1px;
  }
}

/* section-chart16 */
.section-chart16 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart16-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart16-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart16-content {
  margin-top: 10px;
  max-height: 350px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart16-content[dir="rtl"] {
  margin-top: 10px;
  max-height: 370px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart16-content.expanded {
  max-height: 1200px;
}
.chart16-content.expanded[dir="rtl"] {
  max-height: 1200px;
}
#controls-chart16 .date-range-label {
  width: 15%;
}
#legend-container-chart16 {
  margin-left: 50px;
}
#legend-container-chart16[dir="rtl"] {
  margin-right: 50px;
}

@media (min-width: 1200px) {
  .section-chart16 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart16 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart16 {
    padding: 60px 20px;
  }
  .section-chart16-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .chart16-content {
    margin-top: 5px;
    max-height: 300px; /* optional, adjust as needed */
  }
  .chart16-content[dir="rtl"] {
    max-height: 230px;
  }
}
@media (max-width: 480px) {
  .section-chart16 {
    padding: 60px 10px;
  }
  .section-chart16-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart16-content {
    margin-top: 5px;
    max-height: 335px; /* optional, adjust as needed */
  }
  .chart16-content[dir="rtl"] {
    max-height: 350px;
  }
  #controls-chart16 .date-range-label {
    width: 30%;
  }
  #legend-container-chart16 {
    margin-left: 20px;
  }
  #legend-container-chart16[dir="rtl"] {
    margin-right: 20px;
  }
}
@media (max-width: 375px) {
  .chart16-content {
    max-height: 327px; /* optional, adjust as needed */
  }
  .chart16-content[dir="rtl"] {
    max-height: 290px;
  }
}

/* section-chart17 */
.section-chart17 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.section-chart17-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart17-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart17-content {
  margin-top: 50px;
}
.chart17-content p {
  margin-bottom: 50px;
}
.chart17-content[dir="rtl"] p {
  margin-bottom: 50px;
}
#legend-container-chart17 h3 {
  font-size: 16px;
}
#controls-chart17 .date-range-label {
  width: 20%;
}
#legend-container-chart17 {
  margin-left: 50px;
}
#legend-container-chart17[dir="rtl"] {
  margin-right: 50px;
}

@media (min-width: 1200px) {
  .section-chart17 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart17 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart17 {
    padding: 60px 20px;
  }
  .section-chart17-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart17-content {
    margin-top: 5px;
  }
  .chart17-content p {
    margin-bottom: 10px;
  }
  .chart17-content[dir="rtl"] p {
    margin-bottom: 10px;
  }
  #legend-container-chart17 label {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
  }
}
@media (max-width: 480px) {
  .section-chart17 {
    padding: 60px 10px;
  }
  .section-chart17-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart17-content {
    margin-top: 5px;
  }
  .chart17-content p {
    margin-bottom: 10px;
  }
  .chart17-content[dir="rtl"] p {
    margin-bottom: 10px;
  }
  #controls-chart17 .date-range-label {
    width: 30%;
  }
}

/* section-chart18 */
.section-chart18 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart18-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart18-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart18-content {
  margin-top: 10px;
  max-height: 350px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart18-content[dir="rtl"] {
  margin-top: 10px;
  max-height: 340px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart18-content.expanded {
  max-height: 1200px;
}
.chart18-content.expanded[dir="rtl"] {
  max-height: 1200px;
}
#controls-chart18 .date-range-label {
  width: 15%;
}
#legend-container-chart18 {
  margin-left: 50px;
}
#legend-container-chart18[dir="rtl"] {
  margin-right: 50px;
}

@media (min-width: 1200px) {
  .section-chart18 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart18 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart18 {
    padding: 60px 20px;
  }
  .section-chart18-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart18-content {
    margin-top: 5px;
    max-height: 300px; /* optional, adjust as needed */
  }
  .chart18-content[dir="rtl"] {
    max-height: 230px;
  }
}
@media (max-width: 480px) {
  .section-chart18 {
    padding: 60px 10px;
  }
  .section-chart18-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart18-content {
    margin-top: 5px;
    max-height: 335px; /* optional, adjust as needed */
  }
  .chart18-content[dir="rtl"] {
    max-height: 210px;
  }
  #controls-chart18 .date-range-label {
    width: 30%;
  }
  #legend-container-chart18 {
    margin-left: 20px;
  }
  #legend-container-chart18[dir="rtl"] {
    margin-right: 20px;
  }
}
@media (max-width: 375px) {
  .chart18-content {
    max-height: 240px; /* optional, adjust as needed */
  }
  .chart18-content[dir="rtl"] {
    max-height: 240px;
  }
}

/* section-chart19 */
.section-chart19 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.section-chart19-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart19-content {
  margin-top: 30px;
}
.chart19-content.expandable-text {
  max-height: none;
  overflow: visible;
  transition: max-height 0.4s ease;
}
.chart19-content.expandable-text[dir="rtl"] {
  max-height: none;
  overflow: visible;
  transition: max-height 0.4s ease;
}
#legend-container-chart19 {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

#legend-container-chart19 .legend-item {
  justify-content: center;
}

.section-chart19-container .chart-container {
  margin-top: 1px;
}
.chart19-content {
  margin-top: 30px;
  max-width: 600px;
  animation: slideInFromRight 1s ease-out;
}
.section-chart19-container p[dir="rtl"] {
  margin-bottom: 40px;
}

@media (min-width: 1200px) {
  .section-chart19 {
    padding: 100px 40px;
  }
  .section-chart19-container .read-more-btn {
    display: none;
  }
  .section-chart19-container .read-more-btn[dir="rtl"] {
    display: none;
  }
}

@media (max-width: 992px) {
  .section-chart19 {
    padding: 70px 30px;
  }
}

@media (max-width: 768px) {
  .section-chart19 {
    padding: 60px 20px;
  }
  .section-chart19-container {
    grid-template-columns: 1fr;
  }
  .chart19-content.expandable-text {
    max-height: 210px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart19-content.expandable-text[dir="rtl"] {
    max-height: 190px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded[dir="rtl"] {
    max-height: 1200px; /* expand height smoothly */
  }
}

@media (max-width: 480px) {
  .section-chart19 {
    padding: 30px 10px;
  }
  .section-chart19-container {
    grid-template-columns: 1fr;
  }
  .section-chart19-container .legend-container {
    grid-template-columns: 1fr 1fr;
  }
  .chart19-content {
    margin-top: 20px;
  }
  .section-chart19-container p[dir="rtl"] {
    margin-bottom: 20px;
  }
  .chart19-content.expandable-text {
    max-height: 200px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart19-content.expandable-text[dir="rtl"] {
    max-height: 200px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded[dir="rtl"] {
    max-height: 1200px; /* expand height smoothly */
  }
}
