/* --- Existing Common CSS --- */
body {
  font-family: 'Arial', sans-serif;
  background-color: #ffffff;
  color: #1f2937;
  margin: 0;
  padding: 0.5rem 1rem;
  margin-top: 0px; 
}
body, html { height: 100%;
 font-family: 'Arial', sans-serif;
 }

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
}

header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 8.5rem;
}

.logo img {
  width: 120px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  text-decoration: none;
  color: #030303;
  font-weight: bolder;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0cd5ad;
}

/* Line (hidden initially) */
.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: #0cd5ad;
  transition: width 0.3s ease-in-out;
}

/* Dot (hidden initially) */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;           /* dot thoda neeche line ke */
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

/* On hover */
.nav-links a:hover::before {
  width: 100%;   /* line expand */
}

.nav-links a:hover::after {
  background-color: black;  /* dot visible */
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 45px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}
.hamburger span {
  width: 100%;
  height: 4px;
  background-color: #000000;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}
/* Hide arrow on desktop */
.arrow {
  display: none;
}

/* Show arrow only on mobile (≤927px) */
@media screen and (max-width: 927px) {
  body{
    margin-top: 1rem;
  }
  .arrow {
    display: inline-block;
  }
}

@media (max-width: 992px) {
  header .navbar {
    padding: 0 2rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: -100%;
    flex-direction: column;
    background-color: #fff;
    width: 250px;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }
}

main {
  margin-top: 90px;
}

@media (max-width: 992px) {
  main {
    margin-top: 80px;
  }
}

/* --- Services Dropdown CSS --- */
.services-section {
  display: none; /* hidden initially */
  position: absolute;
  top: 60px; /* adjust to header height */
  right: 10rem; /* align to right */
  width: auto; /* fit content */
  padding: 20px;
  background: rgba(255, 255, 255, 0.25); /* semi-transparent background */
  backdrop-filter: blur(10px); /* blur effect */
  border-radius: 15px; /* optional rounded corners */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 1000;
}

.service-container {
  display: flex;
  flex-wrap: wrap; /* allow multiple rows */
  gap: 20px; /* space between cards */
  justify-content: flex-end; /* align cards to right */
  max-width: 700px; /* max width of card group */
}

.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 12px;  
  width: 200px;       
  height: auto;    
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(50% - 10px);
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.service-card h3 {
  font-size: 1rem;  
  text-align: center;   
  margin-top: -0.2rem;
  font-family: Arial, Helvetica, sans-serif;
}

.service-card p {
  font-size: 0.80rem; /* smaller paragraph */
  line-height: 1.5;     
  margin: 0;
  color: grey;
  text-align: center;
  position: relative;
  top: -10px;
}
.service-card p:hover{
 text-decoration: underline;
  color: rgb(92, 91, 91);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.card-link {
  display: inline-block;
  margin-top: 10px;
  color: #ff6600;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.card-link:hover {
  color: #e55b00;
  text-decoration: underline;
}
.apply-btn {
  display: inline-block;
  background-color: #0a66c2;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}
.apply-btn:hover {
  background-color: #004182;
  transform: translateY(-2px);
}

/* Optional horizontal layout inside card */
.service-card.horizontal .card-link {
  margin-top: 0; /* align link horizontally */
  .arrow {
    display: none;
  }
}@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; /* remove underline */
    color: inherit;        /* keep text color same as normal text */
}
    }
    .main-card-img {
        margin-bottom: 1rem;
    }
  @media (max-width: 992px) {
  /* services-section ko normal list jaisa bana do */
  .services-section {
    display: block !important;
    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 !important;
  }
   /* 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 !important;
  }
}
