/* ======== PHILOSOPHY SECTION - STAGGERED LAYOUT ======== */
.philosophy-section {
    padding: 80px 0;
    background: #f8f8f8; /* light neutral background matching services page */
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern - removed for cleaner look matching services */
.philosophy-section::before {
    content: none;
}

.philosophy-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Individual Philosophy Card */
.philosophy-card {
    position: relative;
    background: #ffffff; /* solid white background initially */
    border-radius: 20px;
    padding: 25px 35px; /* reduced vertical padding from 40px to 25px */
    display: grid;
    grid-template-columns: 1fr 100px; /* reduced image column to 100px */
    gap: 35px; /* reduced gap between text and image */
    align-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1); /* matching services page shadow */
    transition: all 0.4s ease;
    border-left: 5px solid transparent; /* prepare for colored border */
}

/* Different colored left borders for each card */
.philosophy-card:nth-child(1) {
    border-left-color: #E8F4FA; /* light blue */
    background: linear-gradient(to right, #E8F4FA 0%, #ffffff 25%); /* extended to 25% */
}

.philosophy-card:nth-child(2) {
    border-left-color: #E8F5E9; /* light green */
    background: linear-gradient(to right, #E8F5E9 0%, #ffffff 25%); /* extended to 25% */
}

.philosophy-card:nth-child(3) {
    border-left-color: #F3E5F5; /* light purple */
    background: linear-gradient(to right, #F3E5F5 0%, #ffffff 25%); /* extended to 25% */
}

.philosophy-card:hover {
    transform: translateY(-5px); /* matching services page hover */
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Hover gradients - white to color */
.philosophy-card:nth-child(1):hover {
    background: linear-gradient(to right, #ffffff 0%, #E8F4FA 75%); /* starts earlier at 75% */
}

.philosophy-card:nth-child(2):hover {
    background: linear-gradient(to right, #ffffff 0%, #E8F5E9 75%); /* starts earlier at 75% */
}

.philosophy-card:nth-child(3):hover {
    background: linear-gradient(to right, #ffffff 0%, #F3E5F5 75%); /* starts earlier at 75% */
}

/* Stagger cards to the right */
.philosophy-card:nth-child(1) {
    margin-left: 0;
}

.philosophy-card:nth-child(2) {
    margin-left: 80px;
}

.philosophy-card:nth-child(3) {
    margin-left: 160px;
}

/* Floating Tag */
.philosophy-tag {
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #F1C40F, #F7DC6F);
    color: #2B3A55;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
    z-index: 2;
}

/* Text Content */
.philosophy-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    text-align: left;
    margin: 0;
    grid-column: 1; /* text stays in first column */
    grid-row: 1;
}

/* Icon Image on the Right */
.philosophy-icon-img {
    width: 100px; /* reduced to 50% (was 200px) */
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    grid-column: 2; /* image in second column (right side) */
    grid-row: 1;
    justify-self: end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .philosophy-section {
        padding: 60px 20px;
    }
    
    .philosophy-container {
        gap: 30px;
    }
    
    .philosophy-card {
        grid-template-columns: 1fr;
        padding: 30px 25px;
        text-align: center;
    }
    
    /* Remove stagger on mobile */
    .philosophy-card:nth-child(1),
    .philosophy-card:nth-child(2),
    .philosophy-card:nth-child(3) {
        margin-left: 0;
    }
    
    .philosophy-tag {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .philosophy-icon-img {
        width: 140px;
        height: 140px;
        margin: 20px auto 0;
    }
    
    .philosophy-card p {
        text-align: center;
    }
}

/* ===== Our Doctor Section ===== */
.our-doctors {
  padding: 60px 0;
  background: #f8f8f8; /* matching services and philosophy sections */
}

.our-doctors h2 {
  text-align: center;
  font-size: 32px;
  color: #2B3A55;
  margin-bottom: 50px;
  font-weight: 700;
}

.doctor-cards {
  display: flex;
  justify-content: center; /* center the single doctor */
}

.doctor-card {
  max-width: 900px; /* slightly wider to match philosophy cards */
  background: #fff;
  border-radius: 20px; /* matching philosophy card radius */
  box-shadow: 0 6px 20px rgba(0,0,0,0.1); /* matching shadow */
  padding: 40px;
  text-align: center;
  border-left: 5px solid #F1C40F; /* yellow accent border matching theme */
  transition: all 0.4s ease; /* smooth hover transition */
}

.doctor-card:hover {
  transform: translateY(-5px); /* matching services/philosophy hover */
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.doctor-photo img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 25px;
  border: 4px solid #F1C40F; /* yellow border matching theme */
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3); /* subtle yellow glow */
  transition: all 0.3s ease;
}

.doctor-card:hover .doctor-photo img {
  transform: scale(1.05); /* slight zoom on hover */
  box-shadow: 0 6px 16px rgba(241, 196, 15, 0.4);
}

.doctor-card h3 {
  font-size: 26px;
  color: #2B3A55;
  margin-bottom: 8px;
  font-weight: 700;
}

.doctor-card p:first-of-type {
  font-size: 18px;
  font-weight: 600;
  color: #555;
  margin-bottom: 20px;
}

.doctor-card p:last-of-type {
  font-size: 15px;
  line-height: 1.7; /* matching philosophy text line-height */
  color: #444; /* matching philosophy text color */
  text-align: justify;
}

/* Responsive */
@media (max-width: 1024px) {
  .doctor-card {
    max-width: 90%;
    padding: 35px 30px;
  }
  
  .doctor-photo img {
    width: 150px;
    height: 150px;
  }
  
  .doctor-card h3 {
    font-size: 22px;
  }
  
  .doctor-card p:first-of-type {
    font-size: 16px;
  }
  
  .doctor-card p:last-of-type {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .our-doctors {
    padding: 50px 20px;
  }
  
  .doctor-card {
    padding: 30px 25px;
  }
  
  .doctor-photo img {
    width: 130px;
    height: 130px;
  }
}