/* =================================================================
   ARTICLES HUB PAGE — page-specific styles (ah- prefix)
   File: css/articles-hub.css
   Used only on learn-astrology.html. Shares ownstyle.css as base
   and reuses .cp-articles-section / .cp-divider from the homepage.
   ================================================================= */

/* ── INTRO / SEO CONTENT BLOCK ── */
.ah-intro-section {
  background: #f7f4ff;
  padding: 46px 20px 40px;
  text-align: center;
}
.ah-intro-container {
  max-width: 820px;
  margin: 0 auto;
}
.ah-intro-badge {
  display: inline-block;
  background: #ede4ff;
  color: #7c3aed;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.ah-intro-heading {
  font-size: 2.15rem;
  font-weight: 800;
  color: #2e1065;
  line-height: 1.25;
  margin-bottom: 18px;
}
.ah-intro-heading span { color: #7c3aed; }
.ah-intro-text {
  font-size: 1.02rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 14px;
  text-align: left;
  padding-left: 10px;
  padding-right: 10px;
}
.ah-intro-text:last-child { margin-bottom: 0; }
.ah-intro-text-italic {
  font-style: italic;
  color: #065f46;
}

/* ── CLASSES CTA BLOCK ── */
.ah-classes-section {
  background: #ffffff;
  padding: 44px 20px 48px;
  text-align: center;
}
.ah-classes-container {
  max-width: 720px;
  margin: 0 auto;
}
.ah-classes-heading {
  font-size: 1.9rem;
  font-weight: 800;
  color: #2e1065;
  margin-bottom: 10px;
  line-height: 1.25;
}
.ah-classes-heading span { color: #7c3aed; }
.ah-classes-text {
  font-size: 1rem;
  color: #55536e;
  line-height: 1.4;
  margin-bottom: 28px;
  text-align: left;
  padding-left: 10px;
  padding-right: 10px;
}

/* Two class buttons — flex wrapper for side-by-side layout. The
   only override below is min-width, applied purely to make
   "Pre-recorded Videos" match "One-on-One Zoom Class" in width.
   No padding, border, radius, font, or color changes — everything
   else stays the plain homepage .cp-articles-more a button. */
.ah-classes-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.ah-classes-buttons a {
  min-width: 304px;
}

/* Featured Articles block on this page only — 10% narrower than the
   homepage version, via a page-scoped class so .cp-articles-container
   itself (used on the homepage) is untouched. Uses percentage padding
   instead of max-width, so the shrink is visible on mobile too, not
   just on wide desktop screens. */
/* Featured Articles pill row — same pill button style as the Tamil
   sections below, forced to one row on wider screens since there
   are only 4 items; wraps naturally on mobile. */
.ah-featured-pill-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (min-width: 900px) {
  .ah-featured-pill-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── TAMIL ARTICLE GROUPS ── */
.ah-tamil-section {
  background: #ffffff;
  padding: 44px 20px;
}
.ah-tamil-section-alt { background: #f7f4ff; }

.ah-tamil-container {
  max-width: 1020px;
  margin: 0 auto;
  padding-left: 2%;
  padding-right: 2%;
}
.ah-tamil-heading {
  font-size: 1.7rem;
  font-weight: 800;
  color: #2e1065;
  margin-bottom: 8px;
  line-height: 1.25;
}
.ah-tamil-heading span { color: #7c3aed; }
.ah-tamil-intro {
  font-size: 0.95rem;
  color: #55536e;
  margin-bottom: 24px;
  max-width: 680px;
  line-height: 1.55;
}

.ah-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.ah-article-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e9e2fb;
  border-left: 5px solid #7c3aed;
  border-radius: 10px;
  padding: 16px 16px 16px 18px;
  color: #2e1065;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-left-color 0.22s ease;
}

/* Solid, always-visible circular arrow chip — signals "clickable"
   even before the person hovers, unlike a plain text link. */
.ah-article-pill .ah-pill-arrow {
  margin-left: auto;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d0079, #7c3aed);
  color: #ffffff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, background 0.22s ease;
}

.ah-article-pill:hover {
  border-left-color: #c8940c;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(91, 33, 182, 0.24);
}
.ah-article-pill:hover .ah-pill-arrow {
  transform: translateX(4px);
  background: linear-gradient(135deg, #c8940c, #e6b93a);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .ah-intro-heading { font-size: 1.5rem; }
  .ah-classes-heading { font-size: 1.4rem; }
  .ah-tamil-heading { font-size: 1.3rem; }
  .ah-intro-section,
  .ah-classes-section,
  .ah-tamil-section { padding: 32px 16px; }
  .ah-classes-buttons { flex-direction: column; gap: 14px; }
}
