/* --- Main Services Page Layout --- */
.main-services-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1220px;
    margin: 0 ;
    padding: 0rem;
}

.left-content {
    flex: 1;
    padding-top: 0rem;
}

.left-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary-color);
}

.left-content p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.main-services {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-service-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Card Styling */
.main-service-card {
    background-color: var(--white-bg);
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 6px 15px var(--shadow-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;        
}


.main-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

/* Reverse Card Layout */
.main-service-card.service-card-reverse {
    flex-direction: row-reverse;
}

/* Card Image */
.main-card-img {
   width: 70%;
    max-width: 500px;           /* full width */
    height: auto;         /* maintain aspect ratio */
    max-height: 300px;    /* optional: limit height so image doesn’t get too tall */   /* fills box without distortion */
    border-radius: 8px;
}

/* Card Text */
.main-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: black;
}

.main-card-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease; 
    color: rgb(45, 126, 99);
}

/* When the parent card is hovered */
.main-service-card:hover .main-card-text h3 {
    text-decoration: underline; 
    color: rgb(45, 126, 99);
}

.main-card-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}
.arrow {
  display: none;}
  .page-line {
  border: none;
  border-top: 2px solid #2b2828; /* line ka color */
  margin: 20px 0;             /* gap above and below */
  width: 100%;
}

/* Responsive Layout */
@media (max-width: 992px) {
    .main-services-layout {
        flex-direction: column;
        align-items: center;
        width: 90%;
    }

    .main-service-card {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none; 
    color: inherit;     
}
    }
    .main-card-img {
        margin-bottom: 1rem;
    }
  @media (max-width: 992px) {
 
  .services-section {
    display: block ;
    position: static;
    box-shadow: none;
    background: none;
    padding: 0;
    min-width: 100%;
  }

  /* container hatado */
  .service-container {
    display: block;
    padding: 0;
    margin: 0;
  }
  .service-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #2e3e5c;
  }

  /* description bilkul hide */
  .service-card p {
    display: none ;
  }
   /* Arrow next to Our Services */
.arrow {
  display: none;
  margin-left: 5px;
  cursor: pointer;
  transition: transform 0.3s;
}

/* Desktop cards dropdown */
.desktop-cards {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 0.5rem 0;
  z-index: 999;
}

/* Mobile list dropdown */
.mobile-list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: white;
  border-top: 1px solid #ddd;
}

.mobile-list li {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ddd;
}

/* Responsive styles */
@media screen and (max-width: 927px) {
  .arrow {
    display: inline-block;
  }
  .desktop-cards {
    display: none; /* hide cards on mobile */
  }
  .mobile-list.show {
    display: block;
  }
}
.service-card {
    display: none ;
  }
}         