@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/Climate.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.7);
}

.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: #ffffff;
  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;
}

/* ************ */
.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: 420px; /* 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(auto-fit, minmax(160px, auto));
  gap: 10px 20px;
  padding: 10px;
  align-items: center;
  justify-content: start;
}

@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;
  }
}

@media (max-width: 420px) {
  .nav-pills li + li {
    margin-inline-start: 15px;
  }
  .chart1-content_tab3[dir="rtl"] {
    max-height: 330px; /* optional, adjust as needed */
  }
}

@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 */
  }
}

/* -------------------------------------------- */
/* chart2 */
.section-chart2 {
  padding: 80px 20px;
  background: var(--background, #f8f9fa);
}
#chart2 {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  animation: slideInFromRight 1s ease-out;
}
.chart2-container {
  flex: 1;
  min-width: 265px;
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
}
.chart2-metric-selector {
  margin-bottom: 35px;
}
.chart2-metric-selector label,
.chart2-Governorate-selector label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}
.chart2-dropdown select {
  font-family: "Montserrat Alternates", "ply", "Roboto", "Arial", sans-serif;
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}
.chart2-dropdown select:focus {
  border-color: var(--accent-color);
  outline: none;
}
.chart2-dropdown[dir="rtl"] select {
  font-family: "Almarai", "Arial", sans-serif;
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}
.chart2-dropdown[dir="rtl"] select:focus {
  border-color: var(--accent-color);
  outline: none;
}
.chart2-Governorate-list input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #3264c8;
}
.chart2-Governorate-list {
  max-height: 575px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  background-color: var(--card-bg);
}
.chart2-Governorate-list label {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  margin: 2px 0px;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-weight: normal;
  color: var(--light-text);
}

/* @media (min-width: 1200px) {
  .chart2_container h2 {
    font-size: 2.2rem;
  }
  #chart2 {
    flex-direction: row;
  }
  .chart2-container {
    min-width: 300px;
    padding-right: 20px;
  }
} */

@media (max-width: 1199px) and (min-width: 992px) {
  .chart2_container h2 {
    font-size: 1.8rem;
  }
  #chart2 {
    flex-direction: row;
  }
  .chart2-container {
    min-width: 250px;
    padding-right: 15px;
  }
  .chart2-Governorate-list {
    max-height: 300px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .chart2_container h2 {
    font-size: 1.8rem;
  }
  #chart2 {
    flex-direction: column;
  }
  .chart2-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart2-Governorate-list {
    max-height: none;
    overflow: visible;
  }
  .checkbox-container {
    max-height: 250px;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .section-chart2 {
    padding: 60px 10px;
  }
  .chart2_container h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  #chart2 {
    flex-direction: column;
  }
  .chart2-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart2-metric-selector {
    margin-bottom: 20px;
  }
  .chart2-metric-selector label,
  .chart2-Governorate-selector label {
    font-size: 14px;
  }
  .chart2-dropdown select {
    font-size: 13px;
  }
  .chart2-Governorate-list {
    max-height: none;
    overflow: visible;
    font-size: 13px;
  }
  .checkbox-container {
    max-height: 220px;
    overflow-y: auto;
  }
}

@media (max-width: 375px) {
  .section-chart2 {
    padding: 60px 10px;
  }
  .chart2_container h2 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  #chart2 {
    flex-direction: column;
  }
  .chart2-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart2-metric-selector {
    margin-bottom: 20px;
  }
  .chart2-metric-selector label,
  .chart2-Governorate-selector label {
    font-size: 14px;
  }
  .chart2-dropdown select {
    font-size: 13px;
  }

  .chart2-Governorate-list {
    max-height: none;
    overflow: visible;
    font-size: 13px;
  }
  .checkbox-container {
    max-height: 220px;
    overflow-y: auto;
  }
}
/* ********************************* */
/* 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: 20px;
}
.chart3-content.expandable-text {
  max-height: none;
  overflow: visible;
  transition: max-height 0.4s ease;
}
.chart3-content.expandable-text[dir="rtl"] {
  max-height: none;
  overflow: visible;
  transition: max-height 0.4s ease;
}
#legend-container-chart3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, auto));
  gap: 10px 20px;
  padding: 10px;
  align-items: center;
  justify-content: center;
}
#legend-container-chart3[dir="rtl"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, auto));
  gap: 10px 20px;
  padding: 10px;
  align-items: center;
}
#legend-container-chart3 .legend-item {
  justify-content: center;
}

@media (min-width: 1200px) {
  .section-chart3 {
    padding: 100px 40px;
  }
  .section-chart3-container .read-more-btn {
    display: none;
  }
  .section-chart3-container .read-more-btn[dir="rtl"] {
    display: none;
  }
}
@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.expandable-text {
    max-height: 210px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart3-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 */
  }

  .chart3-content {
    margin-top: 5px;
  }
}
@media (max-width: 480px) {
  .section-chart3 {
    padding: 60px 10px;
  }
  .chart3-content.expandable-text {
    max-height: 200px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart3-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-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;
  }
  .chart3-content {
    margin-top: 5px;
  }
}

/* --------------------------------- */
/* chart4 */
.section-chart4 {
  padding: 80px 20px;
  background: var(--background, #f8f9fa);
}
#chart4 {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  animation: slideInFromRight 1s ease-out;
}
.chart4-container {
  flex: 1;
  min-width: 265px;
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
}
.chart4-metric-selector {
  margin-bottom: 35px;
}
.chart4-metric-selector label,
.chart4-Governorate-selector label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}
.chart4-dropdown select {
  font-family: "Montserrat Alternates", "ply", "Roboto", "Arial", sans-serif;
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}
.chart4-dropdown select:focus {
  border-color: var(--accent-color);
  outline: none;
}
.chart4-dropdown[dir="rtl"] select {
  font-family: "Almarai", "Arial", sans-serif;
  width: 100%;
  padding: 6px 8px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.3s ease;
}
.chart4-dropdown[dir="rtl"] select:focus {
  border-color: var(--accent-color);
  outline: none;
}
.chart4-Governorate-list input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #3264c8;
}
.chart4-Governorate-list {
  max-height: 575px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  background-color: var(--card-bg);
}
.chart4-Governorate-list label {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  margin: 2px 0px;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-weight: normal;
  color: var(--light-text);
}

/* @media (min-width: 1200px) {
  .chart4_container h2 {
    font-size: 2.2rem;
  }
  #chart4 {
    flex-direction: row;
  }
  .chart4-container {
    min-width: 300px;
    padding-right: 20px;
  }
} */

@media (max-width: 1199px) and (min-width: 992px) {
  .chart4_container h2 {
    font-size: 1.8rem;
  }
  #chart4 {
    flex-direction: row;
  }
  .chart4-container {
    min-width: 250px;
    padding-right: 15px;
  }
  .chart4-Governorate-list {
    max-height: 300px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .chart4_container h2 {
    font-size: 1.8rem;
  }
  #chart4 {
    flex-direction: column;
  }
  .chart4-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart4-Governorate-list {
    max-height: none;
    overflow: visible;
  }
  .checkbox-container {
    max-height: 250px;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .section-chart4 {
    padding: 60px 10px;
  }
  .chart4_container h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  #chart4 {
    flex-direction: column;
  }
  .chart4-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart4-metric-selector {
    margin-bottom: 20px;
  }
  .chart4-metric-selector label,
  .chart4-Governorate-selector label {
    font-size: 14px;
  }
  .chart4-dropdown select {
    font-size: 13px;
  }
  .chart4-Governorate-list {
    max-height: none;
    overflow: visible;
    font-size: 13px;
  }
  .checkbox-container {
    max-height: 220px;
    overflow-y: auto;
  }
}

@media (max-width: 375px) {
  .section-chart4 {
    padding: 60px 10px;
  }
  .chart4_container h2 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  #chart4 {
    flex-direction: column;
  }
  .chart4-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart4-metric-selector {
    margin-bottom: 20px;
  }
  .chart4-metric-selector label,
  .chart4-Governorate-selector label {
    font-size: 14px;
  }
  .chart4-dropdown select {
    font-size: 13px;
  }

  .chart4-Governorate-list {
    max-height: none;
    overflow: visible;
    font-size: 13px;
  }
  .checkbox-container {
    max-height: 220px;
    overflow-y: auto;
  }
}

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

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

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

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

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

@media (max-width: 768px) {
  .section-chart5 {
    padding: 60px 20px;
  }
  .section-chart5-container {
    grid-template-columns: 1fr;
  }
  .chart5-content.expandable-text {
    max-height: 210px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart5-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-chart5 {
    padding: 30px 10px;
  }
  .section-chart5-container {
    grid-template-columns: 1fr;
  }
  .section-chart5-container .legend-container {
    grid-template-columns: 1fr 1fr;
  }
  .chart5-content {
    margin-top: 20px;
  }
  .section-chart5-container p[dir="rtl"] {
    margin-bottom: 20px;
  }
  .chart5-content.expandable-text {
    max-height: 200px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart5-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 */
  }
}
/* ***************************** */
/* chart6 */
.section-chart6 {
  padding: 80px 20px;
  background: var(--background, #f8f9fa);
}
#chart6 {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  animation: slideInFromRight 1s ease-out;
}
.chart6-container {
  flex: 1;
  min-width: 265px;
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
}

.chart6-Governorate-list input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #3264c8;
}
.chart6-Governorate-list {
  max-height: 575px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  background-color: var(--card-bg);
}
.chart6-Governorate-list label {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  margin: 2px 0px;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-weight: normal;
  color: var(--light-text);
}

@media (max-width: 1199px) and (min-width: 992px) {
  .chart6_container h2 {
    font-size: 1.8rem;
  }
  #chart6 {
    flex-direction: row;
  }
  .chart6-container {
    min-width: 250px;
    padding-right: 15px;
  }
  .chart6-Governorate-list {
    max-height: 300px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .chart6_container h2 {
    font-size: 1.8rem;
  }
  #chart6 {
    flex-direction: column;
  }
  .chart6-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart6-Governorate-list {
    max-height: none;
    overflow: visible;
  }
  .checkbox-container {
    max-height: 250px;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .section-chart6 {
    padding: 60px 10px;
  }
  .chart6_container h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  #chart6 {
    flex-direction: column;
  }
  .chart6-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart6-Governorate-list {
    max-height: none;
    overflow: visible;
    font-size: 13px;
  }
  .checkbox-container {
    max-height: 220px;
    overflow-y: auto;
  }
}

@media (max-width: 375px) {
  .section-chart6 {
    padding: 60px 10px;
  }
  .chart6_container h2 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  #chart6 {
    flex-direction: column;
  }
  .chart6-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .chart6-Governorate-selector label {
    font-size: 14px;
  }
  .chart6-dropdown select {
    font-size: 13px;
  }

  .chart6-Governorate-list {
    max-height: none;
    overflow: visible;
    font-size: 13px;
  }
  .checkbox-container {
    max-height: 220px;
    overflow-y: auto;
  }
}

/* ***************************** */

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

@media (min-width: 1200px) {
  .section-chart7 {
    padding: 100px 40px;
  }
  .section-chart7-container .read-more-btn {
    display: none;
  }
  .section-chart7-container .read-more-btn[dir="rtl"] {
    display: none;
  }
}
@media (max-width: 992px) {
  .section-chart7 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart7 {
    padding: 60px 20px;
  }
  .section-chart7-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .chart7-content.expandable-text {
    max-height: 210px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart7-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 */
  }

  .chart7-content {
    margin-top: 5px;
  }
}
@media (max-width: 480px) {
  .section-chart7 {
    padding: 60px 10px;
  }
  .chart7-content.expandable-text {
    max-height: 200px; /* adjust to desired preview height */
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px; /* expand height smoothly */
  }
  .chart7-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-chart7 {
    grid-template-columns: 1fr;
    text-align: center;
    margin-left: 10px;
  }

  #legend-container-chart7[dir="rtl"] {
    grid-template-columns: 1fr;
    text-align: center;
    margin-right: 40px;
  }
  .chart7-content {
    margin-top: 5px;
  }
}
/* ************************* */
/* section-chart8 */
.section-chart8 {
  padding: 80px 20px;
  background: var(--background, #f8f9fa);
}
#chart8 {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  animation: slideInFromRight 1s ease-out;
}
.chart8-container {
  flex: 1;
  min-width: 265px;
  border-right: 1px solid var(--border-color);
  padding-right: 20px;
}

.chart8-Governorate-list input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #3264c8;
}
.chart8-Governorate-list {
  max-height: 575px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px;
  background-color: var(--card-bg);
}
.chart8-Governorate-list label {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  margin: 2px 0px;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-weight: normal;
  color: var(--light-text);
}

@media (max-width: 1199px) and (min-width: 992px) {
  .chart8_container h2 {
    font-size: 1.8rem;
  }
  #chart8 {
    flex-direction: row;
  }
  .chart8-container {
    min-width: 250px;
    padding-right: 15px;
  }
  .chart8-Governorate-list {
    max-height: 300px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .chart8_container h2 {
    font-size: 1.8rem;
  }
  #chart8 {
    flex-direction: column;
  }
  .chart8-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart8-Governorate-list {
    max-height: none;
    overflow: visible;
  }
  .checkbox-container {
    max-height: 250px;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .section-chart8 {
    padding: 60px 10px;
  }
  .chart8_container h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  #chart8 {
    flex-direction: column;
  }
  .chart8-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }
  .chart8-Governorate-list {
    max-height: none;
    overflow: visible;
    font-size: 13px;
  }
  .checkbox-container {
    max-height: 220px;
    overflow-y: auto;
  }
}

@media (max-width: 375px) {
  .section-chart8 {
    padding: 60px 10px;
  }
  .chart8_container h2 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  #chart8 {
    flex-direction: column;
  }
  .chart8-container {
    width: 100%;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .chart8-Governorate-selector label {
    font-size: 14px;
  }
  .chart8-dropdown select {
    font-size: 13px;
  }

  .chart8-Governorate-list {
    max-height: none;
    overflow: visible;
    font-size: 13px;
  }
  .checkbox-container {
    max-height: 220px;
    overflow-y: auto;
  }
}
