
.fourth-section {
    padding: 60px 15px;
    background-color: #f9f9f9;
}

.fourth-section-first-div {
    text-align: center;
    margin-bottom: 40px;
}

.fourth-section-first-div h1 {
    font-size: 32px;
    color: #305CDE;
    margin-bottom: 15px;
}

.fourth-section-first-div p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* حاوية عامة للكروت */


/* صف الكروت */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

/* الكارت */
.service-box {
    background: white;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 10px;
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    min-width: 280px;
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

/* صورة الأيقونة */
.icon-frame {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.icon-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* النصوص داخل الكارت */
.service-box h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #222;
}

.service-box p {
    font-size: 14px;
    color: #555;
}

/* Responsive */
@media (max-width: 992px) {
    .service-box {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .service-box {
        flex: 1 1 100%;
    }
}

/* Responsive */
@media (max-width: 992px) {
  .services-container {
    grid-template-columns: 1fr;
  }

  .services-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    background: linear-gradient(to bottom right, #2c3e50, #3498db);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

  }

  .service-tab {
    flex: 1 1 auto;
    text-align: center;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .service-tab.active {
    border-left: none;
    border-bottom: 3px solid royalblue;
  }

  .service-details img {
    max-width: 100%;
  }
}

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


.fourth-section-first-div {
  justify-content: center;
  text-align: center;
}
    .services-container {
      max-width: 1200px;
      margin: auto;
      
    }

    .row {
      display: flex;
      gap: 20px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .row:first-child .service-box {
      flex: 1 1 calc(50% - 10px);
    }

    .row:last-child .service-box {
      flex: 1 1 calc(33.333% - 13.33px);
    }

    .service-box {
      background: white;
      padding: 20px;
      border: 1px solid #ccc;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      border-radius: 8px;
      min-width: 250px;
    }

    .service-box h3 {
      margin-top: 0;
      font-size: 18px;
    }

    .service-box p {
      font-size: 14px;
      color: #555;
    }
    .vertical-layout {
    display: flex;
    position: relative;
    left: 50px;
    display: flex;
    gap: 30px;
    margin-top: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    align-items: flex-start;
}

.vertical-menu {
    width: 250px;
    background: linear-gradient(to bottom right, #2c3e50, #3498db);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: white;
    /* change is bellow */
       max-height: none;
    overflow-y: visible;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-item:hover,
.menu-item.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.menu-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}

.service-details {
    flex: 1;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    margin-top: 15vh;
    transition: opacity 0.3s ease;
}

.service-details h3 {
    color: #305CDE;
    font-size: 26px;
    margin-bottom: 15px;
}

.service-details p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}
.services-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background:  #3498db;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.service-tab:hover,
.service-tab.active {
  background-color: #3498db;
  transform: translateX(5px);
}

.service-tab img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  background-color: #305CDE;

}

.service-tab span {
  font-size: 16px;
  font-weight: 500;
}

