.main-container {
  min-height: 100vh;
  background-color: var(--white-color);
}

.intro-section {
  padding: 5rem 0;
  background-color: var(--white-color);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: var(--text-title);
  margin-bottom: 1.5rem;
}

.section-description {
  color: var(--text-description);
  max-width: 48rem;
  margin: 0 auto;
}

.image-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.segments-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .segments-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.segment-card {
  background: var(--white-color);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.segment-card:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  transform: translateY(-0.5rem);
}

.segment-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-rounded);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.segment-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.segment-icon i {
  font-size: 2rem;
  color: var(--white-color);
}

.segment-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.segment-description {
  color: var(--text-description);
}

.stats-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--light-gray-2);
  padding-top: 1rem;
  height: 100%;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.stat-label {
  color: var(--text-description);
}

/* Project Portfolio Section */
.projects-section {
  padding: 5rem 0;
  background-color: var(--white-color);
}

/* Project Styles */
.project {
  margin-bottom: 4rem;
}

.project:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.project__image-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.project__content {
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  width: 100%;
  box-sizing: border-box;
}

/* Default layout (for even projects) - image left, content right */
.project:nth-child(even) .grid {
  grid-template-areas: "image" "content";
}

/* Reversed layout (for odd projects) - content left, image right */
.project:nth-child(odd) .grid {
  grid-template-areas: "image" "content";
}

.project__image-container {
  grid-area: image;
}

.project__content {
  grid-area: content;
}

/* Make sure the grid areas work correctly */
.grid>* {
  min-width: 0;
  /* Prevent grid blowout */
}

/* Desktop layout */
@media (min-width: 992px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Even projects: image on left, content on right */
  .project:nth-child(even) .grid {
    grid-template-areas: "image content";
  }

  /* Odd projects: content on left, image on right */
  .project:nth-child(odd) .grid {
    grid-template-areas: "content image";
  }
}

.project__title {
  color: var(--text-title);
  margin-bottom: 1rem;
}

.project__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project__spec {
  display: flex;
  flex-direction: column;
}

.project__spec-label {
  color: var(--text-description);
  margin-bottom: 0.25rem;
}

.project__spec-value {
  color: var(--primary-color);
}

.project__spec-text {
  color: var(--text-description);
}

.project__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project__feature {
  display: flex;
  align-items: center;
  color: var(--text-title);
}

.project__feature-icon {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* Reverse layout for alternate projects */
.project--reverse .row {
  flex-direction: row-reverse;
}

/* Responsive adjustments */
@media (max-width: 992px) {

  .project__specs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.partnerships-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.partnerships-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .partnerships-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .partnerships-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.partnership-card {
  background: var(--white-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.partnership-card:hover {
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.partnership-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-color);
  border-radius: var(--border-radius-rounded);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.partnership-icon i {
  color: var(--white-color);
  font-size: 2rem;
}

.partnership-title {
  color: var(--text-title);
  margin-bottom: 0.5rem;
  text-align: center;
  flex-grow: 1;
}

.partnership-subtitle {
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

.partnership-description {
  color: var(--text-description);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
  margin-bottom: 0;
}

.performance-section {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: var(--white-color);
}

.performance-section-title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.performance-section-subtitle {
  margin-bottom: 4rem;
  opacity: 0.9;
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.metric-card {
  text-align: center;
  margin-bottom: 2rem;
}

.metric-number {
  margin-bottom: 0.5rem;
}

.metric-unit {
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.metric-description {
  opacity: 0.75;
}

.discover-section {
  margin-top: 4rem;
  text-align: center;
}

.discover-card {
  background-color: var(--light-gray);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
}

.discover-title {
  color: var(--text-title);
  margin-bottom: 1.5rem;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* RTL Support */

.arabic-version .project__feature-icon {
  margin-right: 0;
  margin-left: 0.75rem;
}

.arabic-version .arrow-icon {
  margin-left: 0;
  margin-right: 0.5rem;
  transform: rotateY(180deg);
}
@media (max-width: 991.98px) {
    .intro-section .left-column {
        order: -1;
    }
}
