/* ========================================
   Pages Shared Styles — news.html & qa.html
   ======================================== */

/* ─── Page Hero ─── */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2240 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '🍁';
  position: absolute;
  font-size: 10rem;
  opacity: 0.03;
  top: 40%;
  left: 10%;
  transform: rotate(-15deg);
}

.page-hero::after {
  content: '🍁';
  position: absolute;
  font-size: 8rem;
  opacity: 0.03;
  top: 20%;
  right: 8%;
  transform: rotate(12deg);
}

.page-hero .section-tag {
  margin-bottom: 16px;
  display: inline-block;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── Page CTA Section ─── */
.page-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2240 100%);
  text-align: center;
}

.page-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #ffffff;
  margin-bottom: 12px;
}

.page-cta p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* ─── Active Nav Link ─── */
.nav-links a.active {
  color: var(--color-white) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ================================================
   NEWS PAGE
   ================================================ */

.news-section {
  padding: 80px 0 40px;
  background: var(--color-bg-light);
}

.news-article {
  background: #ffffff;
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 48px;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.06);
  border: 1px solid rgba(10, 22, 40, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(10, 22, 40, 0.1);
}

.news-article-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.news-tag {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--color-accent), #e6304a);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 1px;
}

.news-date {
  font-size: 0.85rem;
  color: rgba(10, 22, 40, 0.45);
}

.news-article h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--color-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}

.news-lead {
  font-size: 1.05rem;
  color: rgba(10, 22, 40, 0.7);
  line-height: 1.8;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  margin-bottom: 28px;
}

.news-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin: 28px 0 12px;
  padding-left: 0;
}

.news-body p {
  font-size: 0.98rem;
  color: rgba(10, 22, 40, 0.72);
  line-height: 1.85;
  margin-bottom: 16px;
}

.news-body ul,
.news-body ol {
  margin: 12px 0 20px 20px;
  color: rgba(10, 22, 40, 0.72);
  line-height: 1.85;
}

.news-body li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* News Highlight Grid */
.news-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0 28px;
}

.news-highlight-item {
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.03), rgba(200, 168, 78, 0.06));
  padding: 24px;
  border-radius: 12px;
  border-left: 3px solid var(--color-gold);
}

.news-highlight-item strong {
  font-size: 1rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 8px;
}

.news-highlight-item p {
  font-size: 0.9rem;
  color: rgba(10, 22, 40, 0.65);
  line-height: 1.7;
  margin: 0;
}

/* News Steps */
.news-steps {
  counter-reset: step-counter;
  list-style: none;
  margin: 16px 0 24px 0;
  padding: 0;
}

.news-steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 16px 16px 16px 56px;
  background: rgba(10, 22, 40, 0.02);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.news-steps li:hover {
  background: rgba(200, 168, 78, 0.06);
}

.news-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-accent), #e6304a);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* News Table */
.news-table-wrapper {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.06);
}

.news-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.news-table th {
  background: var(--color-primary);
  color: #ffffff;
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.news-table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
  color: rgba(10, 22, 40, 0.72);
}

.news-table tbody tr:hover {
  background: rgba(200, 168, 78, 0.04);
}

/* News Divider */
.news-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 0 0 48px;
  opacity: 0.4;
}

/* ================================================
   Q&A PAGE
   ================================================ */

.qa-section {
  padding: 80px 0 40px;
  background: var(--color-bg-light);
}

.qa-category {
  margin-bottom: 48px;
}

.qa-category-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(200, 168, 78, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.qa-cat-icon {
  font-size: 1.6rem;
}

/* Q&A Item */
.qa-item {
  background: #ffffff;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(10, 22, 40, 0.04);
  border: 1px solid rgba(10, 22, 40, 0.06);
  transition: box-shadow 0.3s ease;
}

.qa-item:hover {
  box-shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
}

.qa-question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}

.qa-question:hover {
  background: rgba(200, 168, 78, 0.04);
}

.q-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-accent), #e6304a);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-heading);
}

.q-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.5;
}

.q-arrow {
  font-size: 1.5rem;
  color: rgba(10, 22, 40, 0.3);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.qa-item.open .q-arrow {
  transform: rotate(90deg);
  color: var(--color-accent);
}

/* Q&A Answer */
.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}

.qa-item.open .qa-answer {
  max-height: 600px;
  padding: 0 24px 24px;
}

.qa-answer p {
  font-size: 0.95rem;
  color: rgba(10, 22, 40, 0.7);
  line-height: 1.85;
  margin-bottom: 12px;
}

.qa-answer p:last-child {
  margin-bottom: 0;
}

.qa-answer ul,
.qa-answer ol {
  margin: 8px 0 16px 20px;
  color: rgba(10, 22, 40, 0.7);
}

.qa-answer li {
  margin-bottom: 8px;
  font-size: 0.93rem;
  line-height: 1.7;
}

/* Answer Animation Bar */
.qa-item.open .qa-question {
  border-bottom: 1px solid rgba(200, 168, 78, 0.15);
}

.qa-item.open .qa-question .q-icon {
  background: linear-gradient(135deg, var(--color-gold), #d4b85a);
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
  .page-hero {
    padding: 130px 0 60px;
  }

  .page-hero-title {
    font-size: 2rem;
  }

  .news-article {
    padding: 28px 20px;
    margin-bottom: 28px;
  }

  .news-article h2 {
    font-size: 1.25rem;
  }

  .news-highlight-grid {
    grid-template-columns: 1fr;
  }

  .qa-question {
    padding: 16px 18px;
    gap: 10px;
  }

  .q-text {
    font-size: 0.92rem;
  }

  .q-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .qa-answer {
    padding: 0 18px;
  }

  .qa-item.open .qa-answer {
    padding: 0 18px 20px;
  }

  .news-steps li {
    padding-left: 48px;
  }
}

@media (max-width: 480px) {
  .page-hero-title {
    font-size: 1.6rem;
  }

  .news-article {
    padding: 20px 16px;
  }

  .qa-category-title {
    font-size: 1.2rem;
  }
}
