/* ================= GLOBAL MATCHING HOME PAGE ================= */
:root {
  --primary: #d4a017;
  --primary-dark: #b8860b;
  --accent: #6b7280;
  --text-dark: #2f3133;
  --muted: #6f7277;
  --bg-gradient:
    radial-gradient(circle at 0% 30%, #f2deb0 0, transparent 40%),
    radial-gradient(circle at 90% 80%, #d9d6ce 0, transparent 35%), #f3f0e8;
  --white: #ffffff;
  --border: #ddd5c6;
  --glass: rgba(255, 255, 255, 0.85);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(
  to bottom,
  #FBDC30 -10%,
  #FFFFFF 50%,
  #FBDC30 120%
)!important;
  color: var(--text-dark);
  line-height: 1.6;
}
/* ================= HERO ================= */
.hero {
  min-height: 70vh;
  overflow: visible;
  background:
    linear-gradient(
      90deg,
      rgba(44, 41, 36, 0.95) 0%,
      rgba(44, 41, 36, 0.85) 30%,
      rgba(44, 41, 36, 0.6) 50%,
      rgba(44, 41, 36, 0.3) 70%,
      rgba(44, 41, 36, 0.2) 85%,
      rgba(44, 41, 36, 0.4) 100%   /* ✅ RIGHT DARK */
    ),
    url("../images/oralcare_hero.jpeg") center/cover no-repeat;
  position: relative;
}

.overlay {
  min-height: 70vh;
  width: 100%;
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 2rem);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  overflow: visible;
}
.hero-kicker h1{
 font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
  font-weight: 700;
  letter-spacing: -1px;

}
.hero-kicker {
  font-size: clamp(0.72rem, 0.62rem + 0.35vw, 1rem);
  font-weight: 400;
  color: #efd98c;
  margin-bottom: 1rem;
  display: inline-block;
  width: fit-content;
  max-width: min(90vw, 900px);
  letter-spacing: clamp(0.02em, 0.2vw, 0.08em);
  line-height: 1.5;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: center;
  text-wrap: balance;
  
}

/* Tablets */
@media (max-width: 768px) {
  .overlay {
    padding-block: 3rem;
  }

  .hero-kicker {
    font-size: 0.78rem;
    max-width: 32rem;
    letter-spacing: 0.04em;
  }

  
}

@media (max-width: 640px) {
  .hero,
  .overlay {
    min-height: calc(100vh - 96px);
  }

  .overlay {
    padding: 2.5rem 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero-kicker {
    font-size: 0.72rem;
    line-height: 1.5;
    max-width: 18rem;
    letter-spacing: 0.02em;
    white-space: normal;
  }
}

.overlay h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 15px;
  color: white;
  font-weight: 700;
}

.overlay p {
  color: #ebe6db;
  font-size: 1rem;
  margin-bottom: 25px;
}

.overlay button {
  background: #373028;
  color: #FBDC30 !important;
  
  border-radius: 10px;
  border:#FBDC30 3px solid;
  padding: 0.7rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.25);
  transition: all 0.3s ease;
}

.overlay button:hover {
  /* transform: translateY(-3px);
  background: #f7ecd0; */
  background:#FBDC30 ;
  border:#FBDC30 3px solid;
  font-weight: 500;
   
  color:#ffffff !important;
}

/* ================= ABOUT SECTION ================= */
.about {
  /* background: transparent; */
  background: linear-gradient(
  to bottom,
  #FBDC30 -10%,
  #FFFFFF 50%,
  #FBDC30 120%
) ;
  padding: 80px 10%;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about img {
  width: 45%;
  border-radius: 15px;
  box-shadow: 20px 20px 50px rgba(47, 49, 51, 0.1);
}

.about h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.about p {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.7;
}

/* doctor recommended oral care section */
.doctor-section {
  position: relative;
  min-height: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
  padding-top: 20px;
  padding-bottom: 20px;

  /* ✅ IMAGE BACKGROUND */
  background: 
    /* linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)), */
    url("../images/oralcrae_background.jpeg") center/cover no-repeat;
}
/* CONTENT WRAPPER */
.doctor-content {
  width: 100%;
  z-index: 2;
}

/* HEADING STYLE */
.doctor-heading {
  text-align: center;
  font-size: 48px;
  color: #373028;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 30px; /* adjust if needed */
}


.video-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* MAIN LAYOUT */
.doctor-wrapper {
  display: flex;
  gap: 50px;
  width: 100%;
}

/* LEFT GRID */
/* ===== LEFT GRID ===== */
.doctor-cards {
  width: 25%;
  height: 25%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-left: 10%;
}

/* ===== SMALL CLEAN CARD ===== */
.doctor-card {
  cursor: pointer;
  padding: 18px 15px;
  border-radius: 14px;
  background: rgba(47, 49, 51, 0.75);
  backdrop-filter: blur(12px);
  text-align: center;
  transition: 0.35s;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  border: 2px solid #FBDC30;
}

/* ICON SMALL */
.doctor-card i {
  width: 10px;
  height: 10px;
  font-size: 10px;
  margin-bottom: 4px;
}

/* TITLE SMALL */
.doctor-card h3 {
  font-size: 14px;
  font-weight: 500;
}

.doctor-card:hover,
.doctor-card.active {
  transform: translateY(-8px);
  background: linear-gradient(rgba(47, 49, 51, 0.82), rgba(47, 49, 51, 0.82));
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 35px rgba(212, 160, 23, 0.3);
}

/* RIGHT BIG CARD */
.doctor-big-card {
  width: 55%;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  margin-right: 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(212, 160, 23, 0.2);
  border: 2PX solid #FBDC30;
}

/* BIG CONTENT */
.big-card-content h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--primary);
}

.big-card-content p {
  font-size: 18px;
  line-height: 1.7;
}
/* BIG CARD BACKGROUND IMAGE */
.big-card-bg {
  position: relative;
  overflow: hidden;

  background: linear-gradient(rgba(47, 49, 51, 0.78), rgba(47, 49, 51, 0.78));

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.big-card-content {
  position: relative;
  z-index: 2;
  color: white;
}

.doctor-big-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  border-radius: 25px;
  color: white;
}

.big-card-content {
  max-width: 600px;
  width: 100%;
  text-align: left;
}

.big-card-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.big-card-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 25px;
  opacity: 0.95;
}
/* STEP LIST CONTAINER */
#bigstep {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* EACH STEP CARD */
#bigstep li {
  position: relative;
  padding: 10px 1px 10px 45px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid #FBDC30;
  font-size: 15px;
  line-height: 1.06;
  transition: 0.4s;
}

/* STEP NUMBER CIRCLE */
#bigstep li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);

  width: 25px;
  height: 25px;

  border-radius: 50%;
  background: white;
  color: var(--text-dark);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
}

/* Enable Counter */
#bigstep {
  counter-reset: step;
}

/* Hover Effect */
#bigstep li:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 25px rgba(184, 134, 11, 0.18);
}
/* ===== ICON STYLE (YOUR ORIGINAL DESIGN) ===== */

.doctor-card i {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  margin-bottom: 15px;
  border-radius: 50%;
  background: white;
  color: var(--text-dark);
  font-size: 28px;
  transition: 0.4s;
}

/* HOVER EFFECT SAME AS BEFORE */
.doctor-card:hover i,
.doctor-card.active i {
  background: var(--primary);
  color: white;
  transform: rotate(8deg) scale(1.1);
}
.doctor-card {
  text-align: center;
}
/* ===== TIPS ===== */
/* .tips {
  background: white;
  color: var(--text-dark);
  padding: 80px 10%;
  text-align: center;
}

.tips-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.tip-card {
  background: #f5f9fc;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
}

.tip-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tip-card:hover {
  transform: scale(1.05);
} */

.cta {
  position: relative;
  margin: 0;
  padding: 90px 5% 35px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2%;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 18px 5% 0;
  border-radius: 34px;
  background:
    radial-gradient(
      circle at top left,
      rgba(212, 160, 23, 0.18),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92),
      rgba(247, 241, 228, 0.94)
    );
  border: 1px solid rgba(212, 160, 23, 0.16);
  box-shadow:
    0 24px 60px rgba(47, 49, 51, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* INNER BOX */
.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-dark);
  max-width: 800px;
  width: 100%;
}

.cta-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.18);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-text {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

/* BUTTON */
.cta-btn {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--primary), #e4b94f);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(212, 160, 23, 0.28);
  transition: 0.3s;
}

/* HOVER */
.cta-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #c8920a, var(--primary));
  box-shadow: 0 18px 34px rgba(212, 160, 23, 0.34);
}

/* Responsive fix for the card */
@media (max-width: 768px) {
  .cta {
    padding: 70px 20px 20px;
  }

  .cta::before {
    inset: 12px 12px 0;
    border-radius: 26px;
  }

  .cta h2 {
    font-size: 1.8rem;
  }
}

/* ================= RESPONSIVE DESIGN ================= */

/* ===== TABLET VIEW (1024px) ===== */
@media (max-width: 1024px) {
  .navbar {
    padding: 15px 30px;
  }

  .hero {
    height: 60vh;
  }

  .overlay h1 {
    font-size: 38px;
    padding: 0 10px; 
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about img {
    width: 80%;
  }

  .doctor-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .doctor-cards {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-big-card {
    width: 100%;
    margin-top: 30px;
  }

  .doctor-heading {
    font-size: 38px;
  }
}

/* ===== MOBILE VIEW (768px) ===== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .overlay h1 {
    font-size: 30px;
  }

  .overlay button {
    padding: 10px 22px;
  }

  .about {
    padding: 60px 6%;
  }

  .doctor-heading {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .doctor-wrapper {
    gap: 30px;
  }

  .doctor-cards {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    margin-left: 0;
    min-height: 190px;
  }

  .doctor-big-card {
    padding: 35px 25px;
    margin-right: 0;
  }

  .big-card-content h2 {
    font-size: 26px;
  }

  .big-card-content p {
    font-size: 15px;
  }

  #bigstep li {
    padding: 15px 15px 15px 55px;
    font-size: 14px;
  }

  .cta {
    padding: 60px 20px;
  }

  .cta-text {
    font-size: 0.98rem;
  }
}

/* ===== SMALL MOBILE (480px) ===== */
@media (max-width: 480px) {
  .overlay h1 {
    font-size: 24px;
  }

  .doctor-heading {
    font-size: 24px;
  }

  .doctor-card i {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .big-card-content h2 {
    font-size: 22px;
  }

  .big-card-content p {
    font-size: 14px;
  }

  #bigstep li::before {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* Keep the oral-care hero spacing consistent from 400px down to 330px. */
@media (min-width: 330px) and (max-width: 400px) {
  .hero,
  .overlay {
    min-height: calc(100vh - 96px);
  }

  .overlay {
    padding: 2.5rem 1rem;
  }

  .hero-kicker {
    padding-top: 30px;
    font-size: 0.72rem;
    max-width: 20rem;
    letter-spacing: 0.02em;
  }

  .overlay h1 {
    font-size: 26px;
    padding: 0;
    max-width: 21rem;
    line-height: 1.25;
  }

  .overlay p {
    max-width: 22rem;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
  }

  .overlay button {
    padding: 10px 22px;
  }
}

/* ================= MOBILE ACCORDION ================= */

.mobile-info {
  max-height: 0;
  overflow: hidden;
  transition: 0.5s ease;
  text-align: left;
}

.mobile-info.active {
  margin-top: 15px;
  max-height: 500px;
}

/* hide mobile content on desktop */
@media (min-width: 992px) {
  .mobile-info {
    display: none;
  }
}

/* hide right big card on mobile */
@media (max-width: 991px) {
  .doctor-wrapper {
    flex-direction: column;
  }

  .doctor-big-card {
    display: none;
  }
  /* ================= CARD CENTER FIX ================= */

  /* DESKTOP (KEEP ORIGINAL LOOK) */
  .doctor-cards {
    width: 25%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-left: 10%;
  }

  /* ================= TABLET ================= */
  @media (max-width: 1024px) {
    .doctor-wrapper {
      flex-direction: column;
      align-items: center;
    }

    .doctor-cards {
      width: 100%;
      margin-left: 0;
      justify-content: center;
      place-items: center;
      grid-template-columns: repeat(2, minmax(220px, 260px));
    }

    .doctor-card {
      width: 100%;
      max-width: 260px;
    }
  }

  /* ================= MOBILE ================= */
  @media (max-width: 991px) {
    .doctor-cards {
      width: 100%;
      margin-left: 0;
      display: grid;
      justify-content: center;
      align-items: center;
      place-items: center;
      grid-template-columns: minmax(260px, 320px);
      gap: 20px;
    }

    .doctor-card {
      width: 100%;
      max-width: 320px;
      margin: auto;
    }
  }

  /* ================= SMALL MOBILE ================= */
  @media (max-width: 480px) {
    .doctor-cards {
      grid-template-columns: 1fr;
      padding: 0 15px;
    }

    .doctor-card {
      max-width: 100%;
    }
  }
}

/* ================= MOBILE STEP DESIGN ================= */

.mobile-info {
  display: none;
  margin-top: 15px;
  animation: fadeIn 0.4s ease;
}

.mobile-info.active {
  display: block;
}

/* DESCRIPTION */
.mobile-desc {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  opacity: 0.95;
}

/* STEP LIST */
.mobile-steps {
  list-style: none;
  padding: 0;
  margin: 0;

  counter-reset: mobileStep;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* STEP ITEM */
.mobile-steps li {
  position: relative;
  padding: 14px 16px 14px 55px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);

  font-size: 14px;
  line-height: 1.5;

  transition: 0.35s;
}

/* NUMBER CIRCLE */
.mobile-steps li::before {
  counter-increment: mobileStep;
  content: counter(mobileStep);

  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);

  width: 30px;
  height: 30px;
  border-radius: 50%;

  background: white;
  color: var(--text-dark);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  font-size: 14px;
}

/* HOVER EFFECT */
.mobile-steps li:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* MOBILE CARD ALIGNMENT IMPROVEMENT */
@media (max-width: 991px) {
  .doctor-card {
    padding: 20px;
    min-height: auto;
    margin-left: 5px;
    margin-right: 5px;
  }

  .doctor-cards {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
/* ================= MOBILE SCROLL AREA ================= */

@media (max-width: 991px) {
  .mobile-info {
    max-height: 320px; /* height of opened card */
    overflow-y: auto;
    padding-right: 8px;
  }

  /* Smooth scrolling */
  .mobile-info {
    scroll-behavior: smooth;
  }

  /* ===== CUSTOM SCROLLBAR ===== */

  .mobile-info::-webkit-scrollbar {
    width: 6px;
  }

  .mobile-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
  }

  .mobile-info::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
  }

  .mobile-info::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
  }
}