/* === Base Styling === */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f9fc;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}
header {
  position: relative;
  text-align: center;
  color: white;
  padding: 60px 20px 50px; /* Reduced padding for tighter layout */
  animation: fadeInDown 1s ease;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(7, 37, 81, 0.7), rgba(0, 109, 119, 0.4));
  backdrop-filter: blur(2px);
  z-index: 0;
}

header * {
  position: relative;
  z-index: 1;
}

.profile-pic {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#doctor-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 36px); /* Slightly smaller */
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(0, 48, 73, 0.4);
  padding: 10px 20px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: inline-block;
  white-space: nowrap;
  margin: 14px auto;
  text-align: center;
}

h1, h2, h3 {
  margin: 8px 0;
  line-height: 1.4;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 18px;
  font-weight: 400;
  color: #e6e6e6;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.header-btn {
  background-color: #00b4d8;
  color: white;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  min-width: 150px;
  text-align: center;
}

.header-btn:hover {
  background-color: #0096c7;
  transform: translateY(-2px);
}

@media screen and (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .header-btn {
    width: 90%;
  }
}



section {
  padding: 60px 30px;
  max-width: 960px;
  margin: 40px auto;
  animation: fadeInUp 1s ease;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

section h2 {
  font-size: 28px;
  color: #006d77;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
}

/* === ENT Services === */
#service-headings {
  list-style: none;
  padding-left: 0 !important;
  font-size: 1.05rem;
  line-height: 1.7;
}

#toggleDetailsBtn {
  margin-top: 20px;
  font-size: 15px;
  cursor: pointer;
  background: #00b4d8;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: 0.3s;
}

#toggleDetailsBtn:hover {
  background: #0096c7;
}

#service-details {
  margin-top: 30px;
  display: none;
}

#service-details .ent-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding-left: 0;
  margin-top: 20px;
}

#service-details .ent-card {
  background: #f1f1f1;
  border-radius: 12px;
  padding: 20px;
  font-size: 0.95rem;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* === Book Section === */
.ebook-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.book-cover-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease;
  max-width: 100%;
}

.book-cover-wrapper:hover {
  transform: scale(1.02);
}

.book-cover {
  width: 100%;
  max-width: 280px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  height: auto;
}

.overlay-text {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 0;
  font-size: 14px;
  border-radius: 0 0 10px 10px;
}

/* === Video Section === */
.about-video {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.about-video h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #073951;
}

.about-video p {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.about-video video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.video-lectures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .video-lectures {
    grid-template-columns: 1fr;
  }

  .book-cover,
  .book-cover-wrapper {
    max-width: 100%;
  }

  .ebook-section .button {
    width: 100%;
    max-width: 300px;
  }
}

/* === General Elements === */
ul, ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 10px;
}

iframe {
  border: none;
  border-radius: 10px;
  margin-top: 20px;
  width: 100%;
  height: 320px;
}

footer {
  background-color: #023e8a;
  color: white;
  text-align: center;
  padding: 25px 20px;
  font-size: 15px;
}

/* === Testimonials === */
.testimonial {
  background-color: #f1faff;
  border-left: 4px solid #00b4d8;
  padding: 18px 25px;
  border-radius: 10px;
  margin-bottom: 25px;
  font-style: italic;
  color: #444;
}

.testimonial cite {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  color: #006d77;
}

/* === Appointment Form === */
#appointment {
  background: #e6f4f1;
  padding: 60px 30px;
  border-radius: 12px;
}

#appointment form {
  display: grid;
  gap: 20px;
}

#appointment input,
#appointment textarea,
#appointment select {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

#appointment button {
  background-color: #00b4d8;
  color: white;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#appointment button:hover {
  background-color: #0096c7;
}

/* === Sticky Appointment Button === */
.sticky-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00b4d8;
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sticky-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-button:hover {
  background-color: #0096c7;
  transform: translateY(-2px);
}

.sticky-button:focus,
.sticky-button:active {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.3);
}

@media screen and (max-width: 600px) {
  .sticky-button {
    padding: 12px 16px;
    font-size: 14px;
    bottom: 15px;
    right: 15px;
  }

  .button {
    padding: 10px 14px;
    font-size: 14px;
  }

  section {
    padding: 30px 20px;
    margin: 20px auto;
  }

  .profile-pic {
    width: 100px;
    height: 100px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }
}
.youtube-facade {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background-color: #000;
  overflow: hidden;
}

.youtube-facade img {
  width: 100%;
  height: auto;
  display: block;
}

.youtube-facade .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin-left: -34px;
  margin-top: -24px;
  background: url('https://img.icons8.com/color/96/youtube-play.png') no-repeat;
  background-size: contain;
  z-index: 1;
}
.profile-pic {
  width: 130px;
  height: 130px;
  aspect-ratio: 1 / 1;
}

.about-video video {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}
html {
  font-display: swap;
}
