/* ==========================================================================
   Article Template Styles
   Loaded after style.css
   ========================================================================== */

/* ==========================================================================
   Compact Article Hero
   Allows longer article titles/descriptions without cutting off text
   ========================================================================== */

.hero.article-hero {
  height: auto;
  min-height: 260px;
  padding: 70px 20px 60px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(2, 80, 135, 0.42)),
    url('images/frank-bright-magician.png');
  background-size: cover;
  background-position: center 35%;
  border-top: 4px solid var(--primary-blue);
  border-bottom: 4px solid var(--primary-blue);
}

.hero.article-hero .hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero.article-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  margin-bottom: 14px;
  color: var(--hero-text);
  text-shadow: 0 6px 18px rgba(0,0,0,0.55);

  /* Overrides global h1 animation from style.css */
  opacity: 1;
  transform: none;
  animation: none;
}

.hero.article-hero .article-description {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.45;
  color: var(--hero-text);
  text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

/* Mobile */
@media (max-width: 768px) {
  .hero.article-hero {
    min-height: 220px;
    padding: 55px 18px 50px;
  }

  .hero.article-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
    line-height: 1;
  }

  .hero.article-hero .article-description {
    font-size: 1rem;
    line-height: 1.4;
  }
}

.article-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 10px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

.article-description {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--hero-text);
  text-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

/* Article body */
.article-section {
  background: var(--bg-main);
}

.article-wrapper {
  max-width: 850px;
  margin: 0 auto;
}

.article-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 30px;
  text-align: center;
}

.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 45px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--primary-blue);
  margin-top: 1.5em;
}

.article-content h2:first-child,
.article-content h3:first-child {
  margin-top: 0;
}

.article-content p {
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.article-content a {
  color: var(--primary-blue);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text-primary);
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.6rem;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-blue);
  padding-left: 20px;
  margin: 30px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-home-link {
  text-align: center;
  margin-top: 35px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero.article-hero {
    height: 210px;
    min-height: 210px;
  }

  .article-description {
    font-size: 1rem;
  }

  .article-content {
    padding: 28px 22px;
  }
}

.article-content .article-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 0.95;
  color: var(--primary-blue);
  text-align: center;
  margin: 0 0 28px;

  /* Kill homepage h1 animation */
  opacity: 1;
  transform: none;
  animation: none;

  /* Keep it readable in the article card */
  text-shadow: none;
}

.article-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.article-content h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* ==========================================================================
   Articles Hub
   Used on articles.html
   ========================================================================== */

.article-list-grid {
  margin-top: 35px;
}

.article-list-card {
  text-align: left;
}

.article-list-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  margin-top: 0;
  margin-bottom: 14px;
}

.article-list-card h2 a {
  color: var(--primary-blue);
}

.article-list-card p {
  margin-bottom: 22px;
}

.article-list-card .btn {
  margin-top: auto;
}

@media (max-width: 768px) {
  .article-list-card {
    text-align: center;
  }
}