@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --primary-color: #de3a2b;
  --primary-hover: #ffc816;
  --secondary-color: #de3a2b;
  --accent-color: #f3afaf;
  --text-dark: #0c0c3f;
  --text-light: #fff7f5;
  --abc-light: #e5dedc;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #444;
  margin: 0;
}

.main-specialities-section {
  max-width: 1100px;
  color: #333;
  margin: auto;
  padding-block: 2rem;
  padding-inline: 1.5rem;

  position: relative;
}

.bg-img {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.bg-img img {
  width: 30rem;
}
.bg-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgb(255, 247, 245, 0.8);
}

.main-specialities-section h1 {
  color: var(--primary-color);
}
.main-specialities-section p {
  color: #333;
}
.main-specialities-section a {
  color: var(--text-dark);
}

.main-specialities-section .hospital-strength {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2rem;
  color: #222;
  background-color: #fff;
  border-radius: 1rem;
}

.doctor-section {
  padding: 2rem 0;
}

.doctor-section h2 {
  color: #222;
}

.container {
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-left: 20px;
}

.doctor-card-specific {
  /* padding: 2rem; */
  background-color: #fff;

  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0 0 0 / 0.15);

  position: relative;
  transition: box-shadow ease 0.4s;
}
.doctor-card-specific:hover {
  box-shadow: 0 8px 28px rgba(0 0 0 / 0.2);
}

.doctor-card-specific img {
  /* position: absolute;
  inset: 0; */
  width: 14.5rem;
  height: 14rem;
  border-radius: 1rem;
  display: block;
  position: relative;
  z-index: 0;
  padding-top: 1rem;
}
.doctor-card-specific::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 30%;
  width: 100%;
  height: 14.5rem;
  background: linear-gradient(to top, #ffffff 18%, rgba(255, 255, 255, 0) 60%);
  z-index: 1;
  pointer-events: none;
}

.doctor-card-specific .content {
  position: relative;
  z-index: 4;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding-inline: 2rem;
  width: 80%;
}

.doctor-card-specific .content h3,
.doctor-card-specific .content p {
  margin: 0;
}

.doctor-card-specific .content h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  text-align:center;
}
.doctor-card-specific .content p {
  color: #333;
  font-size: 0.88rem;
  font-weight: 600;
}

.doctor-card-specific .content .doc-btn {
  width: 100%;
  padding: 0.6rem 1.1rem;
  text-align: center;
  border-radius: 16px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background-color: #ff6f40;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 18px rgb(255 87 34 / 0.5);
  transition: background-color 0.3s ease;
  /* align-self: flex-start; */
  user-select: none;
  margin-top: 1rem;
}

.doctor-card-specific .content .doc-btn:hover {
  background-color: #ffc816;
  color: black;
  box-shadow: 0 5px 22px rgb(230 74 25 / 0.7);
}

/* ===============================
   GLOBAL CONTENT STYLING
================================ */

.content-section {
  padding: 50px 0;
  background: #fff;
}

.main-specialities-section h1 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.main-specialities-section h2 {
  font-size: 24px;
  color: var(--secondary-color);
  margin: 35px 0 15px;
  position: relative;
  padding-left: 12px;
}

.main-specialities-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 70%;
  background: var(--primary-color);
  border-radius: 2px;
}

.main-specialities-section h3 {
  font-size: 20px;
  margin-top: 25px;
  color: var(--text-dark);
}

.main-specialities-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 15px;
}

/* ===============================
   INLINE LINKS (SEO CONTENT)
================================ */

.main-specialities-section a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: 0.3s;
}

.main-specialities-section a:hover {
  color: #ffc400;
  font-weight: 600;
  /* border-color: var(--primary-hover); */
}

/* ===============================
   BULLET LIST STYLE
================================ */

.main-specialities-section ul {
  padding-left: 0px;
  margin: 15px 0;
}

.main-specialities-section ul li {
  margin-block: 10px;
  line-height: 1.6;
  color: #222;
  font-weight: 600;
  position: relative;
  /* padding-left: 10px;
  margin-left: 20px; */
}

/* ===============================
   FAQ SECTION
================================ */

.faq-wrapper {
  border-radius: 10px;
  box-shadow: 0 6px 22px rgb(255 136 77 / 0.25);
  overflow: hidden;
  /* max-width: 700px; */
  margin: 1.6rem 20px;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.faq-item {
  border-bottom: 2px solid #eee;
  /* background: #fff; */
  /* border-radius: 10px; */
  /* margin-bottom: 12px; */
  font-family: inherit;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 16.6px;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary-color);
  stroke-width: 3;
  transition: transform 0.3s ease;
}

.faq-question:hover {
  color: #111;
  background: #ffc816;
}

.faq-arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}

/* Answer container */
.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.faq-answer p {
  padding: 0 18px 18px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  font-weight: 600;
}

/* Active State */
.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

/* Keyboard focus visible */
.faq-question:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* ===============================
   COMMON TREATMENT LIST
================================ */

.common-treatment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  margin-top: 2rem !important;
}

.common-treatment-list li {
  padding-left: 0 !important;
  margin-bottom: 1 !important;
  margin-left: 0 !important;
}

.common-treatment-list li a {
  /* width: 100%; */
  height: 100%;
  display: block;
  color: #333;
  background: #fff;
  padding: 10px 15px 4px;
  border-radius: 8px;
  border: 1px solid var(--abc-light);
  font-size: 16px;
  transition: 0.3s;
}

.common-treatment-list li a:hover {
  background: var(--accent-color);
  color: var(--text-dark);
  transform: translateY(-2px);
}

/* ===============================
   DEPARTMENT IMAGE GRID
================================ */

.department-section {
  padding: 20px 0;
  background: var(--text-light);
}

.department-section h4 {
  color: #333;
  font-size: 1rem;
  text-align: left;
  margin: 1rem;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  row-gap: 2.2rem;
}

.department-card {
  height: 96%;

  background: #fff;
  padding: 10px 10px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.6s ease;
  position: relative;
}

.department-card:hover {
  transform: translateY(-6px);
  background-color: var(--primary-color);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.department-card:hover h4 {
  color: #fff;
}
.department-card:hover img {
  filter: brightness(0) invert(1);
}

.department-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 10px;
  position: absolute;
  right: 10px;
  bottom: 5px;
  transition: all 0.2s ease;
}

.department-card h3 {
  font-size: 15px;
  color: var(--text-dark);
}

/* ===============================
   CTA BUTTON STYLE
================================ */

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #000;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */

@media (max-width: 980px) {
  .doctor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-specialities-section .hospital-strength {
    padding: 1rem;
    text-align: center;
  }

  .content-section h1 {
    font-size: 26px;
  }

  .content-section h2 {
    font-size: 21px;
  }

  .faq-wrapper {
    margin: 1rem 0;
  }

  .doctor-grid {
    /* grid-template-columns: repeat(1, 1fr); */
    display: flex;
    overflow-x: auto;
    /* padding-inline: 2rem; */
    margin-left: 0;
    margin-top: 0;
  }

  .doctor-card-specific {
    flex: 0 0 20rem;
    margin-block: 2rem;
  }

  .common-treatment-list {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .department-card img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 580px) {
  .department-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .department-section h4 {
    margin: 0;
    font-size: 0.8rem;
  }
  .department-card {
    /* padding: 1rem 0.88rem; */
  }
  .department-card img {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
  }
}

/* ===============================
   SERVICE TAB SECTION
================================ */

.service-tabs {
  padding: 50px 0;
  /* background: var(--text-light); */
}

.service-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  /* gap: 30px; */

  margin-top: 2rem;
}

/* LEFT SIDE LIST */
.service-list {
  display: flex;
  flex-direction: column;
}

.service-btn {
  font-family: inherit;
  background: none;
  border-left: none;
  border-right: none;
  border-top: 1px solid var(--abc-light);
  border-bottom: 1px solid var(--abc-light);
  padding: 14px 16px;
  /* margin-bottom: 10px; */
  /* border-radius: 8px; */
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;

  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-btn .right-arrow {
  font-size: 24px;
  /* transform: rotate(90deg); */
}

.service-btn:hover {
  color: var(--primary-color);
}

.service-btn.active {
  font-weight: 600;
  color: var(--primary-color);
  /* color: #fff; */
  border-bottom-color: var(--primary-color);
}
.service-btn.active .right-arrow {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-color);
}

/* RIGHT CONTENT */
.service-content {
  /* background: #fff; */
  /* border-radius: 12px; */
  /* padding: 25px; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
}

.service-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.service-panel.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 3rem; */
}

.service-panel .img-cover {
  width: 28rem;
  height: 20rem;
  padding: 1.6rem;

  border: 1px dashed #333;
  border-radius: 6.4rem;
}

.service-panel img {
  width: 100%; /* max-height: 250px; */
  height: 100%; /* max-height: 250px; */
  object-fit: cover;
  border-radius: 5rem;
  box-shadow: 0 4px 14px rgba(0 0 0 / 0.4);
}

.service-panel p {
  color: #333;
  /* background-color: #fff; */
  font-weight: 600;
  text-align: center;
  padding: 1rem 2rem;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .service-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .service-btn {
    /* min-width: 220px;
    margin-right: 10px; */
    white-space: nowrap;
  }

  .service-panel .img-cover {
    width: 100%;
    height: 18rem;
    padding: 1rem;

    border: 1px dashed #333;
    border-radius: 6.4rem;
  }

  .service-panel p {
    padding: 0.5rem 0;
  }
}

/* mobile view services css */
.service-items {
  border-bottom: 2px solid #eee;
  /* background: #fff; */
  /* border-radius: 10px; */
  /* margin-bottom: 12px; */
  font-family: inherit;
  overflow: hidden;
  /* max-width: 400px; */
}

.service-btn-new {
  font-family: inherit;
  background: none;
  border-left: none;
  border-right: none;
  border-top: 1px solid var(--abc-light);
  border-bottom: 1px solid var(--abc-light);
  padding: 14px 16px;
  margin-bottom: -6px;
  /* border-radius: 8px; */
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;

  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-btn-new:hover {
  color: var(--primary-color);
}

.service-btn-new.active {
  font-weight: 600;
  color: var(--primary-color);
  /* color: #fff; */
  border-bottom-color: var(--primary-color);
}

.service-panel-new {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
  animation: fadeIn 0.4s ease;
}

.service-panel-new .img-cover {
  /* width: 90%; */
  height: 12rem;
  padding: 1.2rem;

  border: 1px dashed #333;
  border-radius: 6.4rem;

  /* margin-top: 1rem; */
  margin: 1rem auto;
}

.service-panel-new img {
  width: 100%;
  /* max-height: 250px; */
  height: 100%;
  /* max-height: 250px; */
  object-fit: cover;
  border-radius: 5rem;
  box-shadow: 0 4px 14px rgba(0 0 0 / 0.4);
}

.service-panel-new p {
  color: #333;
  /* background-color: #fff; */
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  padding: 0.2rem 0 1rem;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Show it only if screen width is 780px or less */
@media screen and (max-width: 780px) {
  .service-wrapper {
    margin: 1.5rem 0;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}
