/* How to Begin Section Styles */
.how-to-begin-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
  backdrop-filter: blur(4px);
}

.how-to-begin-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  margin: 0 0 20px 0;
  color: #ffcf6e;
  font-weight: 600;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.steps-list li:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(6px);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  color: white;
  flex-shrink: 0;
}

.step-text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.program-sections {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.program-sections section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 16px 18px;
  transition: all 0.3s ease;
}

.program-sections section:hover {
  background: rgba(255, 255, 255, 0.05);
}

.program-sections section h3 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffcf6e;
  border-left: 3px solid #ffcf6e;
  padding-left: 12px;
}

/* News Headline Styles - Also used for Rebus */
.news-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 0;
  margin-bottom: 6px;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-tag {
  display: inline-block;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Rebus specific tag colors */
.news-tag[data-tag="VERSE-REBUS"], .news-tag[data-tag="🎯 VERSE-REBUS"] {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.news-tag[data-tag="PLACE-REBUS"], .news-tag[data-tag="📍 PLACE-REBUS"] {
  background: linear-gradient(135deg, #10b981, #047857);
}

.news-tag[data-tag="PERSON-REBUS"], .news-tag[data-tag="👤 PERSON-REBUS"] {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.news-headline {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #fff;
  line-height: 1.4;
}

.news-details {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0;
}

/* Rebus specific styling */
.rebus-item {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  margin: 8px 0;
}

.rebus-emoji {
  font-size: 1.2rem;
  display: inline-block;
  margin: 0 2px;
}

.rebus-arrow {
  color: #ffcf6e;
  font-weight: bold;
  margin: 0 8px;
}

.rebus-answer {
  color: #a855f7;
  font-weight: 600;
}

/* Q&A Styles */
.qa-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  margin-bottom: 6px;
}

.qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.qa-question {
  background: rgba(99, 102, 241, 0.12);
  border-left: 3px solid #6366f1;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.5;
}

.qa-question:before {
  content: "❓";
  font-size: 0.85rem;
  margin-right: 6px;
}

.qa-answer {
  padding: 10px 14px;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  font-size: 0.85rem;
  position: relative;
}

.qa-answer:before {
  content: "💬";
  position: absolute;
  left: 4px;
  top: 10px;
  font-size: 0.85rem;
}

/* Training List Styles */
.training-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.training-list li {
  padding: 8px 0;
  padding-left: 26px;
  position: relative;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.training-list li:before {
  content: "🎙️";
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 0.8rem;
}

/* Content Card */
.content-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px 26px;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.content-card:hover {
  border-color: rgba(255, 207, 110, 0.2);
  background: rgba(0, 0, 0, 0.25);
}

.content-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffcf6e;
  letter-spacing: -0.3px;
}

.single-column {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Skeleton Loading */
.skeleton-detail-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 24px;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-detail-line {
  height: 16px;
  margin: 12px 0;
  border-radius: 8px;
}

.skeleton-detail-line.short {
  width: 60%;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Strong tag styling */
strong, b {
  color: #ffcf6e;
  font-weight: 700;
}

.qa-answer strong, .qa-answer b {
  color: #a855f7;
}

.news-details strong, .news-details b {
  color: #fbbf24;
}

/* Rebus details specific styling */
.news-details {
  font-size: 0.9rem;
  line-height: 1.8;
}

.news-details strong {
  color: #fbbf24;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .content-card { padding: 16px 18px; }
  .single-column { padding: 0 12px; }
  .news-details { font-size: 0.8rem; }
}

/* ==========================================================
   Program Detail Hero Responsiveness (very important)
   - Fix long titles on small devices
   - Ensure readable font sizes under 480px
   ========================================================== */
#programDetailTitle {
  font-size: clamp(1.35rem, 3.6vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

#programDetailLead {
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  line-height: 1.6;
  margin-top: 0.25rem;
  margin-bottom: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Phones */
@media (max-width: 480px) {
  #programDetailTitle {
    font-size: clamp(1.15rem, 5.2vw, 1.55rem);
    letter-spacing: -0.2px;
  }

  #programDetailLead {
    font-size: 0.86rem;
    line-height: 1.55;
    margin-top: 0.1rem;
  }

  /* Make the hero controls breathe on small screens */
  .page-hero .container {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
  }

  .page-hero .btn {
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }

  #programShareBtn {
    width: 100%;
    max-width: 320px;
  }
}

/* Extra small phones */
@media (max-width: 360px) {
  #programDetailTitle {
    font-size: 1.15rem;
  }

  #programDetailLead {
    font-size: 0.82rem;
  }
}

/* Emoji size adjustment */
.news-details strong, .news-details b {
  font-size: inherit;
}
