/* ================= ROOT COLORS ================= */
:root {
  --primary-green: #5e9800;
  --bg-green: #5f8620;
  --light-green: #e8f5e9;
  --text-dark: #263238;
  --white: #ffffff;
}

/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
  background-color: #f6f9f6;
  color: var(--text-dark);
}

/* ================= CONTAINER ================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 75vh;
  background: url('../images/oralcarehero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 52px;
  color: #ffffff;
}

.hero h3 {
  font-size: 24px;
  color: #d8f5dc;
}

.hero-line {
  font-size: 20px;
  font-weight: 500;
}

.hero p {
  font-size: 17px;
  line-height: 1.6;
}

/* ================= DISCLAIMER ================= */
.disclaimer-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: -50px;
  position: relative;
  z-index: 100;
  padding: 0 20px;
}

.highlight-box {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  max-width: 800px;
  width: 100%;
  padding: 20px 30px;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  border-left: 8px solid var(--primary-green);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  from { opacity:0; transform: translateY(30px); }
  to { opacity:1; transform: translateY(0); }
}

.highlight-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.highlight-text {
  color: var(--primary-green);
  font-size: 16px;
}

.disclaimer-link {
  color: var(--primary-green);
  font-weight: 600;
}

.close-highlight {
  position: absolute;
  right: 15px;
  top: 15px;
  background: var(--light-green);
  border: none;
  color: var(--primary-green);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.close-highlight:hover {
  background: var(--primary-green);
  color: white;
}

/* ================= TIPS ================= */
.tips {
  padding: 60px 0 20px;
}

.tips h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-green);
  font-size: 32px;
}

.tips h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 20px;
}

/* GRID */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ================= FLIP CARD ================= */
.flip-card {
  perspective: 1000px;
  height: 420px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.active .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden;
  overflow: hidden;
}

/* FRONT */
.card-front {
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.card-front:hover {
  transform: translateY(-8px);
}

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

.card-front h3 {
  margin: 10px;
  color: var(--primary-green);
  text-align: center;
}

.card-front p {
  padding: 0 15px;
  font-size: 14px;
  text-align: center;
  color: #555;
}

/* BUTTON */
.card-front button {
  margin: 15px;
  padding: 10px 20px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 25px;
  transition: 0.3s;
}

.card-front button:hover {
  background: #4a7a00;
  transform: translateY(-2px);
}

/* BACK */
.card-back {
  background: white;
  transform: rotateY(180deg);
  overflow-y: auto;
}

.card-back h3 {
  background: var(--primary-green);
  color: white;
  padding: 15px;
}

.card-back h4 {
  color: var(--primary-green);
  margin: 15px;
}

.card-back p {
  padding: 0 15px;
}

.card-back ul {
  padding: 0 40px;
}

.pro-tip {
  background: #fff3cd;
  margin: 15px;
  padding: 10px;
  border-radius: 10px;
}

.card-back button {
  margin: 15px;
  padding: 10px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 20px;
}



.card-front button,
.card-back button {
  display: block;
  margin: 15px auto;   /* THIS centers horizontally */
  padding: 10px 20px;
  background: var(--primary-green);
  color: white;
  border: none;
  border-radius: 25px;
  transition: 0.3s;
  cursor: pointer;
}

/* ================= CTA ================= */
.cta {
  position: relative;
  text-align: center;
  padding: 50px 20px;
  /* background: url('../images/Need_help.webp') center/cover no-repeat; */
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(154, 210, 64, 0.85);
}

.cta .container {
  position: relative;
  z-index: 1;
  color: white;
}

.cta h2 {
  font-size: 32px;
}

.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--primary-green);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #4a7a00;
  transform: scale(1.05);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }
}