/* Card Section */
.card-grid {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
  position: relative;
  margin-top: 20px;
}

.card-grid h2{
  color: var(--primary-color);
}

.get-card {
  display: flex;
  align-items: center;
}

.get-card img{
  width: 100px;
}

.medprime-cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.medprime-cta-button:hover {
  background: #1a6fc4;
}

.medprime-card-wrapper {
  display: flex;
  margin-bottom: 10px;
}

.medprime-card-wrapper img{
  width: 50%;
  border-radius: 30px;
  margin: 0 20px;
}

.card-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.card-highlights h3 {
  color: var(--primary-color);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: var(--text-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.service-card h3 {
  font-size: 1.1rem;
  margin-top: var(--spacing-sm);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-color: var(--secondary-color);
  padding: var(--spacing-xxl) 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xxl);
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  font-size: 2.8rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xl);
  color: var(--text-color);
}

.hero-image {
  flex: 1;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-video {
  flex: 1;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-video video {
  width: 100%;
}

/* Services Grid */
.services-grid {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
  position: relative;
  margin-top: 20px;
}

.services-grid h2{
  color: var(--primary-color);
}

.services-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: var(--text-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.service-card h3 {
  font-size: 1.1rem;
  margin-top: var(--spacing-sm);
  color: var(--primary-color);
}

/* About Section */
.about-section {
  background-color: var(--white);
  padding: var(--spacing-xxl) 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xxl);
}

.about-video {
  flex: 1;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-video video {
  width: 100%;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  color: var(--primary-color);
  position: relative;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Medical & Diagnostics Section */
.medical-diagnostics {
  background-color: var(--secondary-color);
  padding: var(--spacing-xxl) 0;
}

.medical-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xxl);
}

.medical-text {
  flex: 1;
}

.medical-text h2 {
  color: var(--primary-color);
  position: relative;
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.medical-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.medical-image {
  height: 600px;
  width: auto;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.medical-image img{
  height: 600px;
  width: auto;
}

.btn-choose {
  background-color: aqua;
  color: var(--primary-color);
}

.btn-choose:hover{
  background-color: var(--primary-color);
  color: white;
  border-color: white;
}

/* Why Choose Us Section */
.choose-us {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.choose-us h2 {
  margin-bottom: 0px
}

.section-subtitle {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Book a Consultation Section */
.book-consultation {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/consultation-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xxl) 0;
}

.book-consultation h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-xs);
}

.book-consultation h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xl);
  font-weight: 500;
}

.consultation-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
}

.book-consultation .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.book-consultation .btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-content,
  .about-content,
  .medical-content,
  .steps-container,
  .step-content,
  .medprime-card-wrapper{
    flex-direction: column;
  }

  .hero-text {
    order: 1;
  }

  .hero-image {
    order: 0;
    margin-bottom: var(--spacing-xl);
  }

  .about-image,
  .medical-image {
    margin-bottom: var(--spacing-xl);
  }

  .step {
    display: block!important;
  }

  .step-image {
    display: flex;
    justify-content: center;
  }

  .step-image img{
    max-width: 50%;
  }

  .medprime-card-wrapper{
    max-width: 100%;
    align-items: center;
  }

  .medprime-card-wrapper img{
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .hero-content,
  .about-content,
  .medical-content,
  .steps-container,
  .step-content,
  .medprime-card-wrapper{
    flex-direction: column;
  }

  .consultation-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .services-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .step {
    display: block!important;
  }

  .step-image {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .step-image img{
    max-width: 50%;
  }

  .medprime-card-wrapper{
    max-width: 100%;
    padding: 0;
    margin: 0;
    align-items: center;
  }

  .medprime-card-wrapper img{
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
}

.modal {
  display: none; /* hidden by default */
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: white;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-title {
  font-size: 24px;
  color: #0b4991;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section h3 {
  font-size: 18px;
  margin-bottom: 0.5rem;
  color: #333;
}

.modal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: #555;
}

.close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 24px;
  color: #666;
  cursor: pointer;
}

.close-btn:hover {
  color: #000;
}

/* How it works section */
.how-it-works {
  background-color: #f9f9f9;
  position: relative;
  text-align: center;
}

.how-it-works h2 {
    color: var(--primary-color);
    position: relative;
}

.steps-container {
  margin-top: 60px;
}

.step {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

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

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step:nth-child(even) .step-content {
  padding-left: 0;
  text-align: center;
}

.step:not(:last-child):after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  height: 80px;
  border-left: 2px dashed var(--secondary);
  transform: translateX(-50%);
}

.step-number {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.step-image {
  flex-basis: 20%;
}

.step-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.step-content {
  flex-basis: 25%;
}

.step-content h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 15px;
}

.step-content p {
  color: var(--text-light);
}

.primie {
    display: flex;
    align-items: center;
}