/* =========================================================
   🔥 GLOBAL FIX (CRITICAL)
========================================================= */

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

/* Prevent image overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   🔥 HERO SECTION
========================================================= */

.hero {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f5f7f6 0%, #ffffff 100%);
}

.hero-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  font-size: 42px;
  margin-bottom: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.hero-text .sub {
  font-size: 20px;
  margin-bottom: 10px;
  color: #444;
}

.hero-text .trust {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

/* HERO IMAGE */
.hero-image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 16px;
}

/* =========================================================
   🎯 BUTTONS (PREMIUM + CENTER FIX)
========================================================= */

.btn,
.btn-primary {
  display: block;
  width: fit-content;
  padding: 14px 26px;
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  margin: 25px auto; /* 🔥 CENTER ALIGN */
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(76,175,80,0.35);
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(76,175,80,0.45);
}

/* =========================================================
   🎥 VIDEO
========================================================= */

.youtube-box {
  width: 100%;
  max-width: 500px;
  margin: 25px auto;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
}

.youtube-box img {
  width: 100%;
}

/* 🔥 FIX: Play button ONLY inside video */
.youtube-box .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 12px 16px;
  border-radius: 50%;
}

/* =========================================================
   🧠 OCD TYPES
========================================================= */

.ocd-types {
  padding: 50px 10px;
  background: var(--bg-light);
  text-align: center;
}

.ocd-types h2 {
  font-size: 24px;
  margin-bottom: 25px;
}

/* GRID */
.ocd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* CARD */
.ocd-card {
  background: linear-gradient(135deg, var(--card-dark), var(--card-dark-2));
  border: 1px solid var(--card-border);
  padding: 16px 12px;
  border-radius: 18px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 160px;
  text-align: center;

  transition: all 0.3s ease;
  cursor: pointer;
}

/* HOVER */
@media (min-width: 768px) {
  .ocd-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  }
}

/* 🎨 CARD COLORS */
.ocd-card:nth-child(1) {
  background: linear-gradient(135deg, #1f3d3b, #2e5c57);
}
.ocd-card:nth-child(2) {
  background: linear-gradient(135deg, #4a2f5c, #6a3f7a);
}
.ocd-card:nth-child(3) {
  background: linear-gradient(135deg, #2c4a6b, #3f6f96);
}
.ocd-card:nth-child(4) {
  background: linear-gradient(135deg, #5a2d2d, #8a3f3f);
}
.ocd-card:nth-child(5) {
  background: linear-gradient(135deg, #2d5a4f, #3f8a7a);
}

/* ICON */
.ocd-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 8px;
}

/* TITLE */
.ocd-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
}

/* SUBTITLE */
.ocd-card p {
  font-size: 12px;
  color: #e0e0e0;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* BUTTON INSIDE CARD */
.ocd-card a {
  margin-top: 10px;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;

  background: linear-gradient(135deg, #ffffff, #eaeaea);
  color: #333;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.25s ease;
}

.ocd-card a:hover {
  transform: scale(1.05);
}

/* EXPLORE CARD */
.view-all {
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
}

.view-all a {
  background: #fff;
  color: #2e7d32;
  font-weight: 700;
}

/* =========================================================
   📱 RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  .hero-wrap {
    flex-direction: column;
    text-align: left;
  }

  .hero-text h1 {
    font-size: 28px;
  }

}

@media (min-width: 768px) {
  .ocd-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   📐 CONTAINER
========================================================= */

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 14px;
}

@media (min-width: 768px) {
  .container {
    max-width: 1050px;
    padding: 0 16px;
  }
}

/* =========================================================
   📐 OCD-SUB-TYPES
========================================================= */


/* ===== SECTION ===== */
.ocd-subtypes {
  padding: 60px 20px;
}

.ocd-subtypes .container {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== TYPOGRAPHY ===== */
.ocd-subtypes h1 {
  font-size: 34px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.subtitle {
  color: #4b5563;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
}

.intro {
  margin-top: 12px;
  color: #6b7280;
  max-width: 720px;
  line-height: 1.6;
}

/* ===== SECTION TITLE ===== */
.section-title {
  margin: 42px 0 18px;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

/* ===== ROW ===== */
.ocd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-radius: 14px;
  margin-bottom: 14px;
  text-decoration: none;

  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  cursor: pointer;
}

/* 🔥 IMPORTANT FIX (TEXT STACK) */
.ocd-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* TITLE */
.ocd-content h3 {
  margin: 0;
  font-size: 18px;
  color: #111827;
}

/* SUBTITLE BELOW */
.ocd-content p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #6b7280;
}

/* Arrow */
.arrow {
  font-size: 18px;
  color: #9ca3af;
  transition: all 0.25s ease;
  margin-left: 16px;
}

/* ===== HOVER ===== */
.ocd-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.06);
}

.ocd-row:hover .arrow {
  transform: translateX(6px);
  color: #374151;
}

/* ===== COLORS ===== */
.blue { background: #E6F4FF; }
.red { background: #FFE4E4; }
.gray { background: #F1F1F1; }
.pink { background: #FFE6F0; }
.purple { background: #EEE8FF; }
.lightred { background: #FFEAEA; }
.indigo { background: #E9EDFF; }
.mint { background: #E6FFF5; }
.gold { background: #FFF2CC; }
.softpink { background: #FFEAF3; }
.lavender { background: #F3E8FF; }
.green { background: #E6FFEF; }
.coolblue { background: #E8F0FF; }
.orange { background: #FFF1E6; }
.teal { background: #E6FFFA; }

/* ===== CTA ===== */
.mid-cta,
.bottom-cta {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  padding: 32px;
  border-radius: 18px;
  text-align: center;
  margin: 48px 0;
}

.mid-cta h3,
.bottom-cta h2 {
  margin-bottom: 8px;
}

.cta-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 13px 24px;
  background: #0d9488;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.cta-btn:hover {
  background: #0f766e;
  transform: translateY(-1px);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .ocd-subtypes {
    padding: 40px 16px;
  }

  .ocd-subtypes h1 {
    font-size: 26px;
  }

  .subtitle,
  .intro {
    font-size: 15px;
  }

  .ocd-row {
    padding: 16px;
  }

  .ocd-content h3 {
    font-size: 16px;
  }

  .ocd-content p {
    font-size: 13px;
  }

  .arrow {
    font-size: 16px;
  }
}