/* ========================================================
   BACK PAIN TREATMENT PAGE - SIMPLIFIED CARD DESIGNS
   Standard, clean card layouts with basic hover effects
   ======================================================== */

/* ========================================================
   SECTION 1: "WHAT CAN CAUSE BACK PAIN?" - 3-COLUMN GRID
   ======================================================== */

.causes-cascade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.cause-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
  border: 1px solid rgba(13, 76, 136, 0.12);
  box-shadow: 0 8px 32px rgba(14, 34, 56, 0.08);
  transition: all 0.4s ease;
  min-height: 240px;
}

/* Alternating blue/green gradients */
.cause-card:nth-child(odd) {
  background: linear-gradient(135deg, #e8f2ff 0%, #f3f8fb 100%);
}

.cause-card:nth-child(even) {
  background: linear-gradient(135deg, #e8f8f0 0%, #f3f8fb 100%);
}

.cause-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(13, 76, 136, 0.14);
}

.cause-card__icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}

.cause-card h3 {
  font-size: 1.25rem;
  margin: 12px 0 8px 0;
  color: #0d4c88;
  font-weight: 700;
}

.cause-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a6480;
  margin: 0;
}

/* Responsive for tablet */
@media (max-width: 980px) {
  .causes-cascade-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* Responsive for mobile */
@media (max-width: 720px) {
  .causes-cascade-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cause-card {
    padding: 24px 18px;
    min-height: auto;
  }

  .cause-card__icon {
    font-size: 2.4rem;
  }

  .cause-card h3 {
    font-size: 1.1rem;
  }

  .cause-card p {
    font-size: 0.9rem;
  }
}

/* ========================================================
   SECTION 2: "HOW WE DIAGNOSE" - 2x2 GRID WITH HEXAGONS
   ======================================================== */

.diagnostic-cascading-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.diagnostic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(13, 76, 136, 0.1);
  box-shadow: 0 8px 32px rgba(14, 34, 56, 0.08);
  transition: all 0.4s ease;
  width: 260px;
  height: 260px;
  border-radius: 25px;
}

/* Alternating blue/green gradients */
.diagnostic-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(13, 76, 136, 0.22), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(13, 76, 136, 0.3);
}

.diagnostic-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.22), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(115, 201, 69, 0.3);
}

/* Standard hexagon clip-path - removed for square design */
.diagnostic-card--hex {
  /* clip-path removed - using square design with border-radius */
}

/* Floating transforms - vertical only */
.diagnostic-card:nth-child(1) {
  transform: translateY(-20px);
}

.diagnostic-card:nth-child(2) {
  transform: translateY(12px);
}

.diagnostic-card:nth-child(3) {
  transform: translateY(20px);
}

.diagnostic-card:nth-child(4) {
  transform: translateY(-8px);
}

.diagnostic-card:hover {
  transform: translateY(-16px);
  box-shadow: 0 16px 48px rgba(13, 76, 136, 0.14);
}

.diagnostic-card__badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d4c88, #1c5a96);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(13, 76, 136, 0.25);
  z-index: 10;
}

.diagnostic-card__icon {
  font-size: 2.6rem;
  margin: 16px 0;
  display: block;
}

.diagnostic-card h3 {
  font-size: 1.25rem;
  margin: 12px 0 8px 0;
  color: #0d4c88;
  font-weight: 700;
}

.diagnostic-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a6480;
  margin: 0;
}

/* Responsive for tablet */
@media (max-width: 980px) {
  .diagnostic-cascading-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .diagnostic-card:nth-child(1),
  .diagnostic-card:nth-child(2),
  .diagnostic-card:nth-child(3),
  .diagnostic-card:nth-child(4) {
    transform: none;
  }

  .diagnostic-card:hover {
    transform: translateY(-12px);
  }
}

/* Responsive for mobile */
@media (max-width: 720px) {
  .diagnostic-cascading-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .diagnostic-card {
    padding: 24px 18px;
    min-height: auto;
    clip-path: none;
    border-radius: 20px;
  }

  .diagnostic-card__badge {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    top: -16px;
  }

  .diagnostic-card__icon {
    font-size: 2.2rem;
  }

  .diagnostic-card h3 {
    font-size: 1.1rem;
  }

  .diagnostic-card p {
    font-size: 0.9rem;
  }
}

/* ========================================================
   SECTION 3: "TREATMENT PLAN" - 2-COLUMN GRID
   ======================================================== */

.treatment-asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.treatment-option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(13, 76, 136, 0.08);
  box-shadow: 0 8px 32px rgba(14, 34, 56, 0.08);
  transition: all 0.4s ease;
  min-height: 220px;
}

/* Alternating blue/green gradients */
.treatment-option-card:nth-child(odd) {
  background: linear-gradient(135deg, #e8f2ff 0%, #f3f8fb 100%);
}

.treatment-option-card:nth-child(even) {
  background: linear-gradient(135deg, #e8f8f0 0%, #f3f8fb 100%);
}

.treatment-option-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(13, 76, 136, 0.14);
}

.treatment-option-card__icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}

.treatment-option-card h3 {
  font-size: 1.25rem;
  margin: 8px 0 8px 0;
  color: #0d4c88;
  font-weight: 700;
}

.treatment-option-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a6480;
  margin: 0;
}

/* Responsive for tablet */
@media (max-width: 980px) {
  .treatment-asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Responsive for mobile */
@media (max-width: 720px) {
  .treatment-asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .treatment-option-card {
    padding: 24px 18px;
    min-height: auto;
  }

  .treatment-option-card__icon {
    font-size: 2.4rem;
  }

  .treatment-option-card h3 {
    font-size: 1.1rem;
  }

  .treatment-option-card p {
    font-size: 0.9rem;
  }
}

/* ========================================================
   SECTION 4: "EXERCISES" - HORIZONTAL ROW
   ======================================================== */

.exercises-cascading-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.exercise-card {
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84));
  border: 1px solid rgba(13, 76, 136, 0.09);
  box-shadow: 0 8px 32px rgba(14, 34, 56, 0.08);
  transition: all 0.4s ease;
  min-height: 240px;
  text-align: center;
  align-items: center;
}

/* Alternating blue/green gradients */
.exercise-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(13, 76, 136, 0.22), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(13, 76, 136, 0.3);
}

.exercise-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.22), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(115, 201, 69, 0.3);
}

/* Staggered animations */
.exercise-card {
  animation: slideIn 0.6s ease-out forwards;
}

.exercise-card:nth-child(1) { animation-delay: 0ms; }
.exercise-card:nth-child(2) { animation-delay: 80ms; }
.exercise-card:nth-child(3) { animation-delay: 160ms; }
.exercise-card:nth-child(4) { animation-delay: 240ms; }

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

.exercise-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(13, 76, 136, 0.14);
}

.exercise-card__emoji {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}

.exercise-card h3 {
  font-size: 1.2rem;
  margin: 8px 0 8px 0;
  color: #0d4c88;
  font-weight: 700;
}

.exercise-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a6480;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.exercise-card__benefit {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 76, 136, 0.1), rgba(183, 216, 20, 0.12));
  color: #0d4c88;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive for tablet */
@media (max-width: 980px) {
  .exercises-cascading-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* Responsive for mobile */
@media (max-width: 720px) {
  .exercises-cascading-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .exercise-card {
    padding: 24px 18px;
    min-height: auto;
  }

  .exercise-card__emoji {
    font-size: 2.4rem;
  }

  .exercise-card h3 {
    font-size: 1.1rem;
  }

  .exercise-card p {
    font-size: 0.85rem;
  }
}

/* ========================================================
   SECTION 5: "RECOVERY" - HORIZONTAL PHASE CARDS
   ======================================================== */

.recovery-diagonal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.recovery-phase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(13, 76, 136, 0.09);
  box-shadow: 0 8px 32px rgba(14, 34, 56, 0.08);
  transition: all 0.4s ease;
  min-height: 240px;
}

/* Alternating blue/green gradients */
.recovery-phase-card:nth-child(odd) {
  background: linear-gradient(135deg, rgba(13, 76, 136, 0.22), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(13, 76, 136, 0.3);
}

.recovery-phase-card:nth-child(even) {
  background: linear-gradient(135deg, rgba(115, 201, 69, 0.22), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(115, 201, 69, 0.3);
}

/* Alternating blue/green phase badges */
.recovery-phase-card:nth-child(odd)::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: #0d4c88;
}

.recovery-phase-card:nth-child(even)::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: #b7d814;
}

.recovery-phase-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(13, 76, 136, 0.14);
}

.recovery-phase-card__badge {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.recovery-phase-card__number {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b7d814, #c9ea29);
  color: #0d4c88;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(183, 216, 20, 0.25);
}

.recovery-phase-card h3 {
  font-size: 1.2rem;
  margin: 12px 0 8px 0;
  color: #0d4c88;
  font-weight: 700;
}

.recovery-phase-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4a6480;
  margin: 0;
}

/* Responsive for tablet */
@media (max-width: 980px) {
  .recovery-diagonal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .recovery-phase-card {
    min-height: 200px;
  }
}

/* Responsive for mobile */
@media (max-width: 720px) {
  .recovery-diagonal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .recovery-phase-card {
    padding: 24px 18px;
    min-height: auto;
  }

  .recovery-phase-card__number {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .recovery-phase-card__badge {
    font-size: 2rem;
  }

  .recovery-phase-card h3 {
    font-size: 1.1rem;
  }

  .recovery-phase-card p {
    font-size: 0.85rem;
  }
}

/* ========================================================
   GENERAL SECTION RESPONSIVE TWEAKS
   ======================================================== */

@media (max-width: 720px) {
  .causes-section,
  .diagnosis-section,
  .treatment-plan-section,
  .exercises-section,
  .recovery-section {
    padding: 54px 0;
  }
}
