/* ===========================================================
   Learn With Rinkesh — Interview Prep page
   =========================================================== */

.ip-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 24px 10px;
  text-align: center;
}

.ip-hero-icon {
  font-size: 28px;
  margin-bottom: 4px;
  display: inline-block;
  animation: ipIconPop 0.55s cubic-bezier(.34,1.56,.64,1);
}
@keyframes ipIconPop {
  from { opacity: 0; transform: scale(0.4) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.ip-hero h1 { font-size: 22px; margin: 0 0 6px; }
.ip-hero p {
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Prep tips strip ---------- */

.ip-tips-shell {
  max-width: 1000px;
  margin: 16px auto;
  padding: 0 24px;
}

.ip-tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}

/* Tighter header spacing on this page specifically (global .sheet-header
   keeps its normal 18px margin-bottom everywhere else on the site). */
.ip-tips-shell .sheet-header { margin-bottom: 8px; }

.ip-tip-card {
  background: #fff;
  border: 1px solid var(--grid-line);
  border-top: 3px solid var(--excel-green);
  border-radius: var(--radius);
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ip-tip-card.visible { opacity: 1; transform: translateY(0); }
.ip-tip-card.visible:hover {
  transform: scale(1.15);
  box-shadow: 0 16px 30px rgba(28,35,33,0.18);
  z-index: 5;
  position: relative;
}
.ip-tip-card:nth-child(2) { border-top-color: var(--coral); }
.ip-tip-card:nth-child(3) { border-top-color: var(--sky); }
.ip-tip-card:nth-child(4) { border-top-color: var(--amber); }

.ip-tip-card .icon { font-size: 16px; margin-bottom: 4px; }
.ip-tip-card h3 { font-size: 12px; margin: 0 0 4px; }
.ip-tip-card p { font-size: 11px; color: var(--ink-soft); margin: 0; line-height: 1.4; }

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

/* ---------- Q&A accordion ---------- */

.ip-shell {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.ip-level-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ip-level-tab {
  padding: 5px 12px;
  border-radius: 16px;
  border: 1px solid var(--grid-line);
  background: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.ip-level-tab.active {
  background: var(--excel-green);
  color: #fff;
  border-color: var(--excel-green);
}

.ip-qa-item {
  background: #fff;
  border: 1px solid var(--grid-line);
  border-left: 4px solid var(--excel-green);
  border-radius: var(--radius);
  margin-bottom: 8px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ip-qa-item.visible { opacity: 1; transform: translateY(0); }
.ip-qa-item.visible:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 12px 28px rgba(28,35,33,0.18);
  border-color: var(--excel-green);
}
.ip-qa-item.basic { border-left-color: var(--excel-green); }
.ip-qa-item.intermediate { border-left-color: var(--amber); }
.ip-qa-item.advanced { border-left-color: var(--coral); }

.ip-qa-question {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
}

.ip-qa-answer {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.ip-qa-item:hover .ip-qa-answer { max-height: 400px; opacity: 1; margin-top: 8px; }

.ip-qa-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-right: 10px;
  vertical-align: middle;
}
.ip-qa-badge.basic { background: #E8F4EC; color: var(--excel-green-deep); }
.ip-qa-badge.intermediate { background: #FDF1DC; color: #8a6414; }
.ip-qa-badge.advanced { background: #FBE6E2; color: #a13a2a; }
