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

.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;
  margin-right: 5px;
}
.data-value {
  color: #12263f;
  font-weight: 600;
  margin-right: 5px;
}

/* **** */
.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;
}

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

.legend {
  margin: 10px 0;
}
.loading {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 14px;
}
/* ***** SelectSearch **** */
.itmes-selector {
  width: 250px;
  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 (max-width: 375px) {
  .itmes-selector {
    width: 250px;
    margin-right: 0;
  }
}

/* ── Select Chart type ── */
.chart-type-group {
  display: flex;
  gap: 0;
  border: 1px solid #dde1ea;
  border-radius: 8px;
  overflow: hidden;
  height: 36px;
  flex-shrink: 0;
}
.chart-type-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #5a5f7a;
  background: #f8f9fb;
  transition:
    background 0.15s,
    color 0.15s;
  user-select: none;
  border-inline-end: 1px solid #dde1ea;
}
.chart-type-group label:last-child {
  border-inline-end: none;
}
.chart-type-group input[type="radio"] {
  display: none;
}
.chart-type-group label:has(input:checked) {
  background: #1a1a2e;
  color: #fff;
}
.chart-type-group label i {
  font-size: 12px;
}

/* ── TABLE STYLES ── */
.oa-table {
  width: 100%;
  border-collapse: separate; /* important for sticky */
  border-spacing: 0;
  border-radius: 5px;
  font-size: 13px;
}

/* ── HEADER ── */
.oa-table thead tr {
  background: var(--primary-color);
  color: white;
}
.oa-table thead th {
  padding: 10px 14px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--primary-color);
  background-clip: padding-box;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  text-align: center;
}
/* first column sticky */
.oa-table thead th:first-child {
  min-width: 80px;
  z-index: 5;
}
/* [dir="rtl"] .th-content {
  flex-direction: row-reverse;
} */

/* content wrapper */
.oa-table thead th .th-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

/* hover */
.oa-table thead th:hover {
  background: #2d2d50;
}

/* sort icons */
.oa-table thead th .sort-icon {
  margin-inline-start: 4px;
}
.oa-table thead th.sort-asc .sort-icon::after {
  content: "▲";
}
.oa-table thead th.sort-desc .sort-icon::after {
  content: "▼";
}
.oa-table thead th:not(.sort-asc):not(.sort-desc) .sort-icon::after {
  content: "⇅";
}

/* ── BODY ── */
.oa-table tbody tr:nth-child(even) {
  background: var(--background);
}
.oa-table tbody tr:nth-child(odd) {
  background: var(--background-dark);
}
.oa-table tbody tr:hover {
  background: var(--background-dark);
}
.oa-table tbody td {
  padding: 9px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

/* ── FIRST COLUMN (STICKY) ── */
.oa-table th:first-child,
.oa-table td:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

/* fix background for sticky column (avoid overlap issues) */
.oa-table tbody tr:nth-child(even) td:first-child {
  background: var(--background);
}
.oa-table tbody tr:nth-child(odd) td:first-child {
  background: var(--background-dark);
}

/* header first cell */
.oa-table thead th:first-child {
  background: var(--primary-color);
}

/* ── FOOTER ── */
.oa-table tfoot tr {
  background: var(--background);
  border-top: 2px solid #c8cce0;
}
.oa-table tfoot td {
  padding: 9px 14px;
  text-align: right;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-color);
  white-space: nowrap;
}

/* ── CELL BAR ── */
.oa-table .cell-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.oa-table .cell-bar {
  height: 8px;
  border-radius: 4px;
  min-width: 2px;
  transition: width 0.3s;
}

/* ── TOOLBAR ── */
.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.chart-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.oa-table-info {
  font-size: 12px;
  color: var(--light-text);
}

/* export button */
.oa-export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #dde1ea;
  border-radius: 7px;
  background: #f8f9fb;
  font-size: 12px;
  font-weight: 500;
  color: #5a5f7a;
  cursor: pointer;
  transition: background 0.15s;
}
.oa-export-btn[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
.oa-export-btn:hover {
  background: #eef0f5;
}
@media (max-width: 425px) {
  .chart-type-group,
  .chart-toolbar-right {
    width: 100%;
  }
  .chart-type-group label {
    flex: 1;
    justify-content: center;
  }
  .chart-toolbar-right {
    justify-content: space-between;
  }
}
@media (max-width: 375px) {
  .chart-type-group,
  .chart-toolbar-right {
    width: 100%;
  }
  .chart-type-group label {
    flex: 1;
    justify-content: center;
  }
  .chart-toolbar-right {
    justify-content: space-between;
  }
}

.highlight {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
/* 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: 33px;
}

.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;
}
.chart1-content_tab3 ul {
  padding-left: 0.5rem;
}

[dir="rtl"] .tab-pane ul {
  padding-right: 1.5rem;
  text-align: start;
}
[dir="rtl"] .chart1-content_tab3 ul {
  padding-left: 0.5rem;
}
[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: start;
  margin: 1em 0;
}

/* ******** */
/* ************ */
.section-chart1-container .chart-container {
  margin-top: 30px;
  position: sticky;
  top: 100px;
  align-self: start;
}
.chart1-content {
  margin-top: 30px;
  max-width: 600px;
  animation: slideInFromRight 1s ease-out;
}
.chart1-content_tab1 {
  margin-top: 10px;
  max-height: 395px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart1-content_tab1.expanded,
.chart1-content_tab2.expanded,
.chart1-content_tab3.expanded {
  max-height: 2200px;
}
.chart1-content_tab1.expanded[dir="rtl"],
.chart1-content_tab2.expanded[dir="rtl"],
.chart1-content_tab3.expanded[dir="rtl"] {
  max-height: 1230px;
}

.chart1-content_tab1[dir="rtl"] {
  margin-top: 10px;
  max-height: 405px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart1-content_tab2 {
  margin-top: 10px;
  max-height: 380px; /* 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: 400px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart1-content_tab3[dir="rtl"] {
  margin-top: 10px;
  max-height: 390px; /* 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(2, 1fr);
  gap: 10px 20px;
  padding: 10px;
  align-items: center;
}
body .katex {
  text-rendering: auto;
  font:
    normal 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 .chart-container {
    position: static;
    top: auto;
    align-self: stretch;
  }
  .section-chart1-container {
    grid-template-columns: 1fr;
  }
  .nav {
    flex-wrap: nowrap;
  }
  .chart1-content_tab1 {
    max-height: 350px;
  }
  .chart1-content_tab1[dir="rtl"] {
    max-height: 350px;
  }
}

@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;
  }
  .chart1-content_tab1[dir="rtl"] {
    max-height: 310px;
  }
}

@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;
  }
  .chart1-content_tab1[dir="rtl"] {
    max-height: 310px;
  }
}

@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: 400px; /* 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;
  }
  .chart1-content_tab1[dir="rtl"] {
    max-height: 301px;
  }
}

/* section-chart2 */
.section-chart2 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart2-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.section-chart2-container .chart-container {
  position: sticky;
  top: 100px;
  align-self: start;
}
.section-chart2-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart2-content {
  margin-top: 45px;
  max-height: 395px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart2-content[dir="rtl"] {
  max-height: 400px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart2-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

#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;
  }
}
@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;
  }
  .section-chart2-container .chart-container {
    position: static;
    top: auto;
    align-self: stretch;
  }
  .chart2-content.expandable-text {
    max-height: 180px;
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 1200px;
  }
  .section-chart2-content .expandable-text[dir="rtl"] {
    max-height: 195px;
    overflow: hidden;
  }
  .expandable-text.expanded[dir="rtl"] {
    max-height: 1200px;
  }
  .section-chart2-content[dir="rtl"] .read-more-btn {
    display: inline-block;
  }
  #legend-container-chart2 {
    grid-template-columns: repeat(2, 1fr);
    text-align: start;
  }
  .chart2-content {
    margin-top: 5px;
  }
}
@media (max-width: 480px) {
  .section-chart2 {
    padding: 60px 10px;
  }
  .chart2-content.expandable-text {
    max-height: 200px;
    overflow: hidden;
  }
  .expandable-text.expanded {
    max-height: 3000px;
  }
  .chart2-content.expandable-text[dir="rtl"] {
    max-height: 200px;
    overflow: hidden;
  }
  .expandable-text.expanded[dir="rtl"] {
    max-height: 3000px;
  }
  #legend-container-chart2 {
    grid-template-columns: 1fr;
    text-align: center;
    margin-left: 10px;
    margin-right: 0;
  }

  #legend-container-chart2[dir="rtl"] {
    grid-template-columns: 1fr;
    text-align: center;
    margin-right: 70px;
  }
  .chart2-content {
    margin-top: 5px;
  }
}
@media (max-width: 375px) {
  #legend-container-chart2 {
    grid-template-columns: 1fr;
    text-align: center;
    margin-left: 10px;
    margin-right: 0;
  }
  .chart2-content.expandable-text[dir="rtl"] {
    max-height: 195px;
    overflow: hidden;
  }
  .expandable-text.expanded[dir="rtl"] {
    max-height: 3000px;
  }
}

/* section-chart3 */
.section-chart3 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart3-container {
  margin: 0 auto;
  text-align: center;
}
.section-chart3-content {
  animation: slideInFromLeft 1s ease-out;
}
.chart3-content {
  margin-top: 10px;
  max-height: 200px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart3-content[dir="rtl"] {
  margin-top: 10px;
  max-height: 210px; /* 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;
}

.section-chart3-container .chart-container {
  margin-top: 10px;
}
#SelectSearch-chart3 {
  margin-top: 10px;
}
#SelectSearch-chart3[dir="rtl"] {
  margin-top: 10px;
  gap: 15px;
}
.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-chart3 {
    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-chart3 {
    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-chart3 {
    padding: 60px 20px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: center;
  }
  .cta-buttons a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  .chart3-content[dir="rtl"] {
    max-height: 250px; /* optional, adjust as needed */
  }
}

@media (max-width: 480px) {
  .section-chart3 {
    padding: 60px 10px;
  }
  .section-chart3-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-chart3-container h2 {
    text-align: start;
  }
  #SelectSearch-chart3 {
    display: inline-flex;
  }
  #SelectSearch-chart3[dir="rtl"] {
    gap: 5px;
    display: inline-flex;
  }
  .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-chart3-container .SelectSearch {
    flex-direction: column;
    align-items: self-end;
    gap: 5px;
  }
  .content .cta-buttons[dir="rtl"] {
    direction: ltr;
    flex-direction: column;
  }
  .cta-buttons a {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  .chart3-content {
    max-height: 225px;
  }
  .chart3-content[dir="rtl"] {
    max-height: 245px;
  }
  .chart3-content.expanded {
    max-height: 1800px;
  }
  .chart3-content.expanded[dir="rtl"] {
    max-height: 1800px;
  }
}
@media (max-width: 375px) {
  .section-chart3-container .SelectSearch {
    flex-direction: column;
    align-items: self-end;
    gap: 5px;
  }

  .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;
  }
  .chart3-content.expanded {
    max-height: 1800px;
  }
  .chart3-content.expanded[dir="rtl"] {
    max-height: 1800px;
  }
}

/* section-chart4 */
.section-chart4 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.controls-chart4 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart4 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart4 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart4 tbody tr {
  height: 32px;
}
.legend-container-chart4 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart4 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart4 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart4-container .paragraph-box {
  margin-top: 40px;
}
.section-chart4-content .expandable-text {
  max-height: 147px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart4-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart4-content[dir="rtl"] .expandable-text {
  max-height: 225px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart4-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  .section-chart4 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart4 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart4 {
    padding: 60px 20px;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart4 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart4.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart4 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart4 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart4 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
}

/* chart5 */
.section-chart5 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.section-chart5-container {
  margin: 0 auto;
  text-align: center;
}
.section-chart5-container .chart-container {
  margin-top: 5px;
}
#chart5 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}
#chart5 svg {
  flex: 0 0 250px;
  width: 250px;
  height: 330px;
  margin: 0;
}
#chart5[dir="rtl"] {
  direction: rtl;
}
.custom-tooltip,
.tooltip {
  font-size: 12px;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  line-height: 1.4em;
}

@media (max-width: 768px) {
  .section-chart5 {
    padding: 60px 0 40px;
  }
  .section-chart5-container {
    width: 100%;
    overflow: hidden;
  }
  .section-chart5-container h2 {
    padding: 0 15px;
  }
  #chart5 {
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 10px 6vw 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #chart5::-webkit-scrollbar {
    display: none;
  }
  #chart5 svg {
    flex: 0 0 88vw;
    width: 88vw;
    max-width: 320px;
    height: auto;
    margin: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  #chart5[dir="rtl"] {
    direction: rtl;
  }
}

@media (max-width: 375px) {
  .section-chart5 {
    padding-top: 50px;
  }
  #chart5 {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  #chart5 svg {
    flex-basis: 92vw;
    width: 92vw;
  }
}

/* section-chart6 */
.section-chart6 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.section-chart6-container {
  margin: 0 auto;
  text-align: center;
}
.section-chart6-content {
  animation: slideInFromLeft 1s ease-out;
}
#chart6 {
  min-height: 500px;
}
.chart6-content {
  margin-top: 10px;
  max-height: 200px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.chart6-content[dir="rtl"] {
  margin-top: 10px;
  max-height: 220px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.chart6-content.expanded {
  max-height: 1200px;
}
.chart6-content.expanded[dir="rtl"] {
  max-height: 1220px;
}

.section-chart6-container .chart-container {
  margin-top: 10px;
}
#SelectSearch-chart6 {
  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-chart6 {
    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-chart6 {
    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-chart6 {
    padding: 60px 20px;
  }
  .content .cta-buttons[dir="rtl"] {
    justify-content: center;
  }
  .cta-buttons a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  .chart6-content[dir="rtl"] {
    max-height: 250px; /* optional, adjust as needed */
  }
}

@media (max-width: 480px) {
  .section-chart6 {
    padding: 60px 10px;
  }
  .section-chart6-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .section-chart6-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-chart6-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;
  }
  .chart6-content {
    max-height: 225px; /* optional, adjust as needed */
  }
  .chart6-content[dir="rtl"] {
    max-height: 245px; /* optional, adjust as needed */
  }
  .chart6-content.expanded {
    max-height: 1800px;
  }
  .chart6-content.expanded[dir="rtl"] {
    max-height: 1800px;
  }
}
@media (max-width: 375px) {
  .section-chart6-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;
  }
  .chart6-content.expanded {
    max-height: 1800px;
  }
  .chart6-content.expanded[dir="rtl"] {
    max-height: 1800px;
  }
}

/* section-chart7 */
.section-chart7 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.controls-chart7 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart7 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart7 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart7 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart7 tbody tr {
  height: 32px;
}
.legend-container-chart7 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart7 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart7 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart7-container .paragraph-box {
  margin-top: 40px;
}
.section-chart7-content .expandable-text {
  max-height: 147px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart7-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart7-content[dir="rtl"] .expandable-text {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart7-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  .section-chart7 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart7 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart7 {
    padding: 60px 20px;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart7 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart7.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart7 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart7 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart7 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
}

/* card_chart7 */

.section-card_chart7 {
  padding: 150px 20px;
  background: var(--section-bg, #f8f9fa);
}
.card_chart7 h2 {
  margin-bottom: 30px;
}
.card_chart7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 columns for large screens */
  gap: 2rem;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}
.card_chart7-item {
  background: var(--background);
  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_chart7-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.card_chart7-item h3 {
  color: var(--primary-color, #007bff);
}
.ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}
.ranking-row:hover {
  background-color: var(--background-dark);
}
.ranking-row:last-child {
  border-bottom: none;
}
.ranking-rank {
  flex-shrink: 0;
  min-width: 42px;
}
.ranking-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-name_ar {
  flex: 1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-value {
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
  font-weight: 700;
}
@media (max-width: 768px) {
  .section-chart7 {
    padding: 80px 20px 20px 20px;
  }
  .card_chart7-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    animation: none;
  }
  .card_chart7-item {
    flex: 1 1 calc(50% - 1rem); /* 2 columns for small screens */
    padding: 14px;
    box-sizing: border-box;
  }
  .section-chart7-content[dir="rtl"] .expandable-text {
    max-height: 120px;
  }
}
@media (max-width: 425px) {
  .card_chart7-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: none;
  }
  .card_chart7-item {
    flex: 1 1 100%; /* full width for mobile */
    box-sizing: border-box;
  }
  .section-chart7-content[dir="rtl"] .expandable-text {
    max-height: 155px;
  }
  .section-chart7-content[dir="rtl"] .expandable-text.expanded {
    max-height: 2400px;
  }
}

/* section-chart8 */
.section-chart8 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.controls-chart8 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart8 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart8 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart8 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart8 tbody tr {
  height: 32px;
}
.legend-container-chart8 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart8 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart8 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart8-container .paragraph-box {
  margin-top: 40px;
}
.section-chart8-content .expandable-text {
  max-height: 147px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart8-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart8-content[dir="rtl"] .expandable-text {
  max-height: 195px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart8-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@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;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart8 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart8.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart8 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart8 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart8 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
}

/* section-chart9 */
.section-chart9 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.controls-chart9 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart9 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart9 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart9 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart9 tbody tr {
  height: 32px;
}
.legend-container-chart9 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart9 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart9 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart9-container .paragraph-box {
  margin-top: 40px;
}
.section-chart9-content .expandable-text {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart9-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart9-content[dir="rtl"] .expandable-text {
  max-height: 175px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart9-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@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;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart9 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart9.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart9 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart9 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart9 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .section-chart9-content[dir="rtl"] .expandable-text {
    max-height: 195px;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
}

/* section-chart10 */
.section-chart10 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.controls-chart10 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart10 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart10 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart10 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart10 tbody tr {
  height: 32px;
}
.legend-container-chart10 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart10 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart10 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart10-container .paragraph-box {
  margin-top: 40px;
}
.section-chart10-content .expandable-text {
  max-height: 210px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart10-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart10-content[dir="rtl"] .expandable-text {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart10-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@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;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart10 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart10.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart10 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart10 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart10 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
}
/* card_chart10 */

.section-card_chart10 {
  padding: 150px 20px;
  background: var(--section-bg, #f8f9fa);
}
.card_chart10 h2 {
  margin-bottom: 30px;
}
.card_chart10-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 columns for large screens */
  gap: 0.5rem;
  margin: 2rem 0;
}
.card_chart10-item {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.card_chart10-item:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.card_chart10-item h3 {
  color: var(--primary-color, #007bff);
  font-size: 1rem;
}
.ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}
.ranking-row:hover {
  background-color: var(--background-dark);
}
.ranking-row:last-child {
  border-bottom: none;
}
.employment-educational-level-ranking-list .ranking-rank {
  flex-shrink: 0;
  min-width: 1px;
}
#employment-educational-level-ranking-government .ranking-rank {
  flex-shrink: 0;
  min-width: 1px;
}
#employment-educational-level-ranking-private .ranking-rank {
  flex-shrink: 0;
  min-width: 1px;
}
.ranking-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}
.ranking-name_ar {
  flex: 1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-value {
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .section-chart10 {
    padding: 80px 20px 20px 20px;
  }
  .card_chart10-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    animation: none;
  }
  .card_chart10-item {
    flex: 1 1 calc(50% - 1rem); /* 2 columns for small screens */
    padding: 14px;
    box-sizing: border-box;
  }
  .section-chart10-content[dir="rtl"] .expandable-text {
    max-height: 120px;
  }
}
@media (max-width: 425px) {
  .card_chart10-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: none;
  }
  .card_chart10-item {
    flex: 1 1 100%; /* full width for mobile */
    box-sizing: border-box;
  }
  .section-chart10-content[dir="rtl"] .expandable-text {
    max-height: 155px;
  }
  .section-chart10-content[dir="rtl"] .expandable-text.expanded {
    max-height: 2400px;
  }
}

/* section-chart11 */
.section-chart11 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.controls-chart11 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart11 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart11 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart11 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart11 tbody tr {
  height: 32px;
}
.legend-container-chart11 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart11 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart11 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart11-container .paragraph-box {
  margin-top: 40px;
}
.section-chart11-content .expandable-text {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart11-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart11-content[dir="rtl"] .expandable-text {
  max-height: 175px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart11-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  .section-chart11 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart11 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart11 {
    padding: 60px 20px;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart11 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart11.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart11 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart11 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart11 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .section-chart11-content[dir="rtl"] .expandable-text {
    max-height: 195px;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
}

/* section-chart12 */
.section-chart12 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.controls-chart12 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart12 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart12 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart12 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart12 tbody tr {
  height: 32px;
}
.legend-container-chart12 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart12 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart12 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart12-container .paragraph-box {
  margin-top: 40px;
}
.section-chart12-content .expandable-text {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart12-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart12-content[dir="rtl"] .expandable-text {
  max-height: 175px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart12-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  .section-chart12 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart12 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart12 {
    padding: 60px 20px;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart12 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart12.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart12 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart12 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart12 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .section-chart12-content[dir="rtl"] .expandable-text {
    max-height: 195px;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
}

/* section-chart13 */
.section-chart13 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.controls-chart13 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart13 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart13 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart13 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart13 tbody tr {
  height: 32px;
}
.legend-container-chart13 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart13 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart13 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart13-container .paragraph-box {
  margin-top: 40px;
}
.section-chart13-content .expandable-text {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart13-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart13-content[dir="rtl"] .expandable-text {
  max-height: 235px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart13-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@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;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart13 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart13.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart13 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart13 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart13 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
}

/* section-chart14 */
.section-chart14 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
.controls-chart14 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart14 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart14 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart14 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart14 tbody tr {
  height: 32px;
}
.legend-container-chart14 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart14 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart14 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart14-container .paragraph-box {
  margin-top: 40px;
}
.section-chart14-content .expandable-text {
  max-height: 147px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart14-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart14-content[dir="rtl"] .expandable-text {
  max-height: 220px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart14-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@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;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart14 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart14.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart14 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart14 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart14 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
}

/* card_chart14 */

.section-card_chart14 {
  padding: 150px 20px;
  background: var(--section-bg, #f8f9fa);
}
.card_chart14 h2 {
  margin-bottom: 30px;
}
.card_chart14-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 columns for large screens */
  gap: 2rem;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}
.card_chart14-item {
  background: var(--background);
  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_chart14-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.card_chart14-item h3 {
  color: var(--primary-color, #007bff);
}
.ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}
.ranking-row:hover {
  background-color: var(--background-dark);
}
.ranking-row:last-child {
  border-bottom: none;
}
.ranking-rank {
  flex-shrink: 0;
  min-width: 42px;
}
.ranking-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-name_ar {
  flex: 1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-value {
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
  font-weight: 700;
}
@media (max-width: 768px) {
  .section-chart14 {
    padding: 80px 20px 20px 20px;
  }
  .card_chart14-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    animation: none;
  }
  .card_chart14-item {
    flex: 1 1 calc(50% - 1rem); /* 2 columns for small screens */
    padding: 14px;
    box-sizing: border-box;
  }
  .section-chart14-content[dir="rtl"] .expandable-text {
    max-height: 120px;
  }
}
@media (max-width: 425px) {
  .card_chart14-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: none;
  }
  .card_chart14-item {
    flex: 1 1 100%; /* full width for mobile */
    box-sizing: border-box;
  }
  .section-chart14-content[dir="rtl"] .expandable-text {
    max-height: 155px;
  }
  .section-chart14-content[dir="rtl"] .expandable-text.expanded {
    max-height: 2400px;
  }
}

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

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

/* section-chart16 */
.section-chart16 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}

.chart16-content {
  margin-top: 10px;
  max-height: 195px; /* optional, adjust as needed */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* 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-container .chart-container {
  position: sticky;
  top: 100px;
  align-self: start;
}
.section-chart17-content {
  max-width: 600px;
  animation: slideInFromLeft 1s ease-out;
}
.chart17-content {
  margin-top: 30px;
  max-height: 410px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#controls-chart17 .date-range-label {
  width: 0;
}
#legend-container-chart17 {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  align-items: center;
  gap: 10px 50px;
  padding: 10px;
}
#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(--background, #f9f9f9);
}
.controls-chart18 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart18 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart18 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart18 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart18 tbody tr {
  height: 32px;
}
.legend-container-chart18 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart18 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart18 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart18-container .paragraph-box {
  margin-top: 40px;
}
.section-chart18-content .expandable-text {
  max-height: 210px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart18-content .expandable-text.expanded {
  max-height: 3000px;
}
.section-chart18-content[dir="rtl"] .expandable-text {
  max-height: 145px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart18-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@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;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart18 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart18.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart18 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart18 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart18 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .section-chart18-content[dir="rtl"] .expandable-text {
    max-height: 210px;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
}

/* Map Section */
.Map {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
#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%);
}

/* map */
/* dividers */
.section-header {
  margin-top: 8px;
  padding: 2px 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ecbff;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.section-header span {
  display: block;
}

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

.data-label {
  opacity: 0.7;
}
.data-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.map-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: start;
}

.map-canvas {
  min-width: 0;
}

.map-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px;
  min-height: 260px;
  font-size: 12.5px;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: opacity 0.15s ease;
}

.map-panel.empty .panel-body {
  display: none;
}
.map-panel:not(.empty) .panel-placeholder {
  display: none;
}

.panel-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  color: #94a3b8;
  text-align: center;
  gap: 8px;
}
.panel-placeholder i {
  font-size: 22px;
  opacity: 0.5;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #0f172a;
}
.panel-subtitle {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-section {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.panel-section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.panel-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2563eb;
  margin-bottom: 6px;
}

.panel-hero {
  text-align: center;
  padding: 8px 0 12px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  margin-bottom: 8px;
}
.panel-hero-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.panel-hero-value {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}
.panel-row .k {
  color: #64748b;
}
.panel-row .v {
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
#controls-OmanMap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Metric */
.oman-map-metric-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.oman-map-metric-control label {
  font-weight: 600;
  white-space: nowrap;
}

#map-metric-selector {
  height: 38px;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Play + Year */
.oman-map-animation-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

#play-button-OmanMap {
  width: 42px;
  height: 38px;
  flex-shrink: 0;
}

.oman-map-year-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

#year-slider {
  flex: 1;
  min-width: 0;
}

#year-label {
  min-width: 45px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

/* Reset */
#reset-button-OmanMap {
  width: 42px;
  height: 38px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #OmanMap {
    display: block;
  }
  .Map-container .tooltip-text {
    bottom: 40%;
    transform: translateX(-55%);
  }
  .Map-container .tooltip-text[dir="rtl"] {
    bottom: 45%;
  }
  #controls-OmanMap {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    grid-template-areas:
      "metric metric metric"
      "playyear playyear reset";
    row-gap: 20px;
    column-gap: 8px;
  }
  .oman-map-metric-control {
    grid-area: metric;
    width: 100%;
  }
  #map-metric-selector {
    flex: 1;
    width: 100%;
    min-width: 0;
  }
  .oman-map-animation-controls {
    grid-area: playyear;
    display: flex;
    width: 100%;
    min-width: 0;
  }
  #play-button-OmanMap {
    flex-shrink: 0;
  }
  .oman-map-year-controls {
    flex: 1;
    min-width: 0;
  }
  #reset-button-OmanMap {
    grid-area: reset;
  }
  .map-layout {
    display: block;
  }
  .map-panel {
    display: none;
  }
  .panel-hero-label {
    font-size: 13px;
  }
  .panel-section-title {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  #OmanMap {
    display: block;
  }
  .Map-container .tooltip-text {
    bottom: 40%;
    transform: translateX(-55%);
  }
  .Map-container .tooltip-text[dir="rtl"] {
    bottom: 45%;
  }
  .Map-container .tooltip-text {
    bottom: 30%;
  }
  #controls-OmanMap {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    grid-template-areas:
      "metric metric metric"
      "playyear playyear reset";
    gap: 8px;
  }
  .oman-map-metric-control {
    grid-area: metric;
    width: 100%;
  }
  #map-metric-selector {
    flex: 1;
    width: 100%;
    min-width: 0;
  }
  .oman-map-animation-controls {
    grid-area: playyear;
    display: flex;
    width: 100%;
    min-width: 0;
  }
  #play-button-OmanMap {
    flex-shrink: 0;
  }
  .oman-map-year-controls {
    flex: 1;
    min-width: 0;
  }
  #reset-button-OmanMap {
    grid-area: reset;
  }
}

@media (max-width: 375px) {
  .Map-container .tooltip-text {
    bottom: 30%;
  }
  #controls-OmanMap {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    grid-template-areas:
      "metric metric metric"
      "playyear playyear reset";
    gap: 8px;
  }
  .oman-map-metric-control {
    grid-area: metric;
    width: 100%;
  }
  #map-metric-selector {
    flex: 1;
    width: 100%;
    min-width: 0;
  }
  .oman-map-animation-controls {
    grid-area: playyear;
    display: flex;
    width: 100%;
    min-width: 0;
  }
  #play-button-OmanMap {
    flex-shrink: 0;
  }
  .oman-map-year-controls {
    flex: 1;
    min-width: 0;
  }
  #reset-button-OmanMap {
    grid-area: reset;
  }
}
/* section-chart19 */
.section-chart19 {
  padding: 80px 20px;
  background: var(--section-bg, #f8f9fa);
}
.controls-chart19 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.sort-toggle-chart19 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--light-text);
}
.filter-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  min-width: 160px;
  max-width: 220px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  flex: 1 1 160px;
}
.filter-box label.title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.filter-actions {
  display: flex;
  gap: 5px;
  margin-bottom: 7px;
}
.filter-actions button {
  font-size: 11px;
  padding: 3px 8px;
  cursor: pointer;
  border: 1px solid #c8cdd5;
  background: #f5f6f8;
  border-radius: 4px;
  color: #444;
  transition: background 0.15s;
}
.filter-actions[dir="rtl"] button {
  font-family: "Almarai", "Arial", sans-serif;
}
.filter-actions button:hover {
  background: #e2e5eb;
}
.checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background 0.12s;
  user-select: none;
}
.checkbox-list label:hover {
  background: #f0f2f7;
}
.checkbox-list input[type="checkbox"] {
  accent-color: #4f7ef8;
  width: 13px;
  height: 13px;
  cursor: pointer;
}
.stack-box {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #dde1e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  flex: 0 0 auto;
}
.stack-box label.title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 5px;
  border-bottom: 2px solid #e8eaf0;
}
.stack-box select {
  padding: 5px 8px;
  border: 1px solid #c8cdd5;
  border-radius: 4px;
  font-size: 13px;
  background: #f9fafc;
  color: #333;
  cursor: pointer;
}
.stack-box select[dir="rtl"] {
  font-family: "Almarai", "Arial", sans-serif;
}
#table-container-chart19 {
  display: none;
  margin-top: 4px;
}
#table-scroll-chart19 {
  max-height: 420px; /* ~10 rows */
  overflow-y: auto;
  overflow-x: auto;
}
/* row height control */
#oa-table-chart19 tbody tr {
  height: 32px;
}
.legend-container-chart19 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 5px 20px 0 50px;
}
.legend-item-chart19 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}
.legend-swatch-chart19 {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.section-chart19-container .paragraph-box {
  margin-top: 40px;
}
.section-chart19-content .expandable-text {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart19-content .expandable-text.expanded {
  max-height: 2400px;
}
.section-chart19-content[dir="rtl"] .expandable-text {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.section-chart19-content[dir="rtl"] .expandable-text.expanded {
  max-height: 2400px;
}

/* ── Mobile Controls Toggle */
.controls-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: background 0.2s;
}
.controls-toggle-btn:hover {
  background: #f5f5f5;
}
.controls-toggle-btn .toggle-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
  line-height: 1;
}
.controls-toggle-btn.open .toggle-icon {
  transform: rotate(180deg);
}

@media (min-width: 1200px) {
  .section-chart19 {
    padding: 100px 40px;
  }
}
@media (max-width: 992px) {
  .section-chart19 {
    padding: 70px 30px;
  }
}
@media (max-width: 768px) {
  .section-chart19 {
    padding: 60px 20px;
  }
  .controls-toggle-btn {
    display: flex;
  }
  .controls-chart19 {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 10px;
  }
  .controls-chart19.open {
    display: block;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
  .legend-container-chart19 {
    margin: 3px 0 40px 50px;
  }
}

@media (max-width: 425px) {
  .legend-container-chart19 {
    margin: 3px 0 40px 30px;
  }
  .legend-item-chart19 {
    font-size: 10px;
  }
  .stack-box,
  .filter-box {
    width: 100%;
    box-sizing: border-box;
    max-width: none;
  }
  .stack-box select {
    width: 100%;
    box-sizing: border-box;
  }
  .checkbox-list {
    width: 100%;
    box-sizing: border-box;
  }
}

/* card_chart19 */

.section-card_chart19 {
  padding: 150px 20px;
  background: var(--section-bg, #f8f9fa);
}
.card_chart19 h2 {
  margin-bottom: 30px;
}
.card_chart19-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 columns for large screens */
  gap: 0.5rem;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}
.card_chart19-item {
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.card_chart19-item:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.card_chart19-item h3 {
  color: var(--primary-color, #007bff);
  font-size: 1rem;
}
.ranking-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}
.ranking-row:hover {
  background-color: var(--background-dark);
}
.ranking-row:last-child {
  border-bottom: none;
}
.ranking-rank {
  flex-shrink: 0;
  min-width: 42px;
}
.ranking-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-name_ar {
  flex: 1;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranking-value {
  flex-shrink: 0;
  min-width: 60px;
  text-align: right;
  font-weight: 700;
}
@media (max-width: 768px) {
  .section-chart19 {
    padding: 80px 20px 20px 20px;
  }
  .card_chart19-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    animation: none;
  }
  .card_chart19-item {
    flex: 1 1 calc(50% - 1rem); /* 2 columns for small screens */
    padding: 14px;
    box-sizing: border-box;
  }
  .section-chart19-content[dir="rtl"] .expandable-text {
    max-height: 120px;
  }
}
@media (max-width: 425px) {
  .card_chart19-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: none;
  }
  .card_chart19-item {
    flex: 1 1 100%; /* full width for mobile */
    box-sizing: border-box;
  }
  .section-chart19-content[dir="rtl"] .expandable-text {
    max-height: 175px;
  }
  .section-chart19-content[dir="rtl"] .expandable-text.expanded {
    max-height: 2400px;
  }
}

/* section-chart20 */
.section-chart20 {
  padding: 80px 20px;
  background: var(--background, #f9f9f9);
}
