#details {
  margin-bottom: 0;
}

.details div.detailsData {
  flex-basis: 35%;
  margin: 0;
  margin-right: 5%;
  color: #ffffff;
  position: relative;
  font-size: 20px;
  line-height: 30px;
  padding: 0px 0px 20px;
  font-weight: 400;
}

.details div.detailsData h4 {
  font-size: 25px;
  font-weight: 600;
}

.details div.detailsData ul {
  list-style: none;
  padding: 0;
  margin: 30px 0 20px 6px;
  clear: both;
}

.details div.detailsData li {
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 15px;
  padding-left: 22px;
  position: relative;
  font-weight: 400;
}

.details div.detailsData li:before {
  content: "√";
  position: absolute;
  left: 0;
  color: #f7c107;
  font-size: 18px;
  font-weight: bold;
}

.caseData ul li {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
  padding-left: 22px;
  position: relative;
  color: #000;
}

.caseData ul li:before {
  content: "√";
  position: absolute;
  left: 0;
  color: #00a1e4;
  font-size: 18px;
  font-weight: bold;
}

/* Strategic Section Styles for Case Study Pages */

#strategic {
  background-color: #f8f9fa;
  padding: 60px 0;
  margin-bottom: 0px;
}

#strategic h2.section-title,
#overall-outcome-kpis h2.section-title {
  margin-bottom: 50px;
}

#strategic .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.strategic-col {
  margin-bottom: 30px;
  display: flex;
}

.strategic-box {
  background-color: #ffffff;
  padding: 30px 25px;
  height: 100%;
  display: block;
  border-radius: 0;
  transition: all 0.3s ease;
}

.strategic-box:hover {
  box-shadow: 0 5px 20px rgba(0, 161, 228, 0.15);
  transform: translateY(-5px);
}

/* Icon and Title - Horizontal Layout */
.strategic-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  display: inline-block;
  vertical-align: top;
  margin-right: 15px;
}

.strategic-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.strategic-title {
  font-family: "Gotham", sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #2d2d2d;
  line-height: 1.3;
  display: inline-block;
  vertical-align: top;
  width: calc(100% - 70px);
  margin-bottom: 20px;
}

.strategic-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  clear: both;
}

.strategic-list li {
  font-family: "Avenir-Book", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}

.strategic-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #00a1e4;
  font-size: 18px;
  font-weight: bold;
}

.strategic-list li strong {
  color: #2d2d2d;
  font-weight: 600;
}

/* Tablet Responsive - 2 columns */
@media (max-width: 991px) {
  #strategic h2.section-title,
  #overall-outcome-kpis h2.section-title {
    margin-bottom: 30px;
  }

  .details div.detailsData {
    flex-basis: 75%;
    margin-right: 0;
  }

  .strategic-col {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .strategic-title {
    font-size: 20px;
  }

  #strategic {
    padding: 40px 0;
  }

  .strategic-box {
    padding: 25px 20px;
  }
}

/* Mobile Responsive - 1 column */
@media (max-width: 767px) {
  #strategic h2.section-title,
  #overall-outcome-kpis h2.section-title {
    margin-left: 20px;
  }
  .details div.detailsData {
    flex-basis: 100%;
  }
  .strategic-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .strategic-box {
    padding: 25px 20px;
  }

  .strategic-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .strategic-list li {
    font-size: 14px;
    margin-bottom: 12px;
  }

  #strategic {
    padding: 30px 0;
  }

  .strategic-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
  }

  .strategic-icon img {
    width: 45px;
    height: 45px;
  }

  .strategic-title {
    width: calc(100% - 60px);
  }
  .details div.detailsData h4 {
    font-size: 22px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .strategic-box {
    padding: 20px 15px;
  }

  .strategic-title {
    font-size: 16px;
  }

  .strategic-list li {
    font-size: 13px;
    padding-left: 15px;
  }

  .strategic-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .strategic-icon img {
    width: 40px;
    height: 40px;
  }
}

/* RTL (Right-to-Left) Support for Arabic */
.rtl .strategic-icon {
  margin-right: 0;
  margin-left: 15px;
  float: right;
}

.rtl .strategic-title {
  text-align: right;
  float: right;
}

.rtl .strategic-list li {
  padding-left: 0;
  padding-right: 20px;
}

.rtl .strategic-list li:before {
  left: auto;
  right: 0;
}

/* Overall Outcome & KPIs Section - Professional Chart Design */
#overall-outcome-kpis {
  background-color: #ffffff;
  padding: 60px 0 0;
  margin-bottom: 0px;
}

/* Chart Wrapper */
.kpi-chart-wrapper {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 35px;
  margin-bottom: 20px;
}

.chart-title {
  font-family: "Gotham", sans-serif;
  font-size: 19px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 20px;
  text-align: left;
}

/* Legend */
.chart-legend {
  text-align: center;
  margin-bottom: 25px;
}

.legend-item {
  display: inline-block;
  margin: 0 12px;
  font-size: 13px;
  color: #333;
}

.legend-box {
  display: inline-block;
  width: 18px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-box.before {
  background-color: #c4c4c4;
}

.legend-box.after {
  background-color: #00a1e4;
}

/* Chart Container with Y-Axis */
.chart-container {
  display: flex;
  margin-bottom: 30px;
  border: 0;
  background: #ffffff;
  min-height: 400px;
}

/* Y-Axis */
.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0px 12px 0 0;
  border-right: 1px solid #959595;
  min-width: 60px;
}

.y-label {
  font-size: 11px;
  color: #2d2d2d;
  text-align: right;
  font-weight: 500;
  line-height: 1;
  margin: 0;
  padding: 0;
}

/* Chart Area */
.chart-area {
  flex: 1;
  position: relative;
  padding: 20px 0 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

/* Grid Lines - Evenly spaced */
.grid-line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  background: #e0e0e0;
  z-index: 1;
}

.grid-line:nth-child(1) {
  top: 20px;
}
.grid-line:nth-child(2) {
  top: calc(20px + 16.67%);
}
.grid-line:nth-child(3) {
  top: calc(20px + 33.33%);
}
.grid-line:nth-child(4) {
  top: calc(20px + 50%);
}
.grid-line:nth-child(5) {
  top: calc(20px + 66.67%);
}
.grid-line:nth-child(6) {
  top: calc(20px + 83.33%);
}

/* Bar Groups Container */
.bar-groups {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  flex: 1;
  position: relative;
  z-index: 2;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 140px;
  height: 100%;
}

.bar-pair {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex: 1;
  width: 100%;
  justify-content: center;
}

/* Bars */
.bar {
  width: 50px;
  min-height: 5px;
  position: relative;
  transition: opacity 0.2s;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.bar.before {
  background-color: #c4c4c4;
}

.bar.after {
  background-color: #00a1e4;
}

.bar:hover {
  opacity: 0.85;
}

/* Bar Values */
.bar-value {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

/* X-Axis Line */
.x-axis {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #959595;
  z-index: 3;
}

/* X-Labels - Positioned Below X-Axis */
.x-label {
  font-size: 12px;
  color: #555;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
  padding: 0px 5px 0;
  white-space: nowrap;
  position: absolute;
  bottom: -20px;
}

/* Stats Box */
.stats-box {
  background: #ffffff;
  border: 1px solid #959595;
  padding: 15px 15px;
  margin-top: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.stat-item {
  font-size: 15px;
  color: #1a1a1a;
}

.stat-item strong {
  font-weight: 600;
}

.stats-note {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* Optimization Note */
.optimization-note {
  background: #f8f9fa;
  padding: 25px;
  border-left: 4px solid #00a1e4;
  height: 100%;
  margin-bottom: 50px;
}

.optimization-note p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
  .chart-container {
    min-height: 350px;
  }

  .bar {
    width: 42px;
  }

  .bar-pair {
    gap: 10px;
  }

  .chart-title {
    font-size: 17px;
  }

  .optimization-note {
    margin-top: 20px;
  }
  .x-label {
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  #overall-outcome-kpis {
    padding: 40px 0;
  }

  .optimization-note {
    margin-bottom: 0;
  }

  .kpi-chart-wrapper {
    padding: 25px 20px;
  }

  .chart-title {
    font-size: 15px;
    margin-bottom: 15px;
  }

  .chart-container {
    min-height: 300px;
  }

  .bar {
    width: 36px;
  }

  .bar-pair {
    gap: 8px;
  }
  .x-label {
    font-size: 10px;
  }
}

@media (max-width: 639px) {
  .kpi-chart-wrapper {
    padding: 0;
    border: 0;
  }
  .y-axis {
    min-width: 50px;
    padding: 0px 5px 0 0;
  }
  .x-label {
    font-size: 9px;
    white-space: normal !important;
    max-width: 95px;
    line-height: normal;
    bottom: -35px;
  }
  .bar-value {
    font-size: 8px;
  }
  .stats-grid {
    grid-template-columns: none;
  }
}

@media (max-width: 480px) {
  .chart-container {
    min-height: 280px;
  }

  .bar {
    width: 25px;
  }

  .bar-pair {
    gap: 4px;
  }

  .chart-title {
    font-size: 13px;
  }

  .legend-item {
    font-size: 11px;
    margin: 0 8px;
  }

  .y-label {
    font-size: 9px;
  }

  .optimization-note {
    padding: 18px;
  }

  .optimization-note p {
    font-size: 13px;
  }

  .stats-box {
    padding: 18px 20px;
  }
}
