/* ============================================================
   Peterson's Graduate Blog — Stylesheet
   Brand guide: Nunito Sans, Peterson's Orange #F85A3D
   ============================================================ */

/* ----------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
  --orange:       #F85A3D;
  --orange-dark:  #D43A27;
  --blue-primary: #4687AD;
  --blue-dark:    #29527A;
  --teal:         #4C96A1;
  --yellow:       #FEC752;
  --gray-light:   #B5BDC2;
  --bg-pale:      #ECEFF4;
  --text-main:    #494C4E;
  --white:        #ffffff;
}

/* ----------------------------------------------------------
   2. RESET & BASE (scoped — does not affect theme header/footer)
   ---------------------------------------------------------- */
.petersons-custom-blog-post,
.petersons-custom-blog-post * {
  box-sizing: border-box;
}

body.petersons-custom-blog-post-active {
  font-family: 'Nunito Sans', sans-serif;
  background: #f7f9fb;
  color: var(--text-main);
}

.petersons-custom-blog-post {
  line-height: 1.75;
}

/* ----------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------- */
.petersons-custom-blog-post .container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.petersons-custom-blog-post.article-wrap,
.article-wrap.petersons-custom-blog-post {
  padding: 3rem 0 4rem;
}

/* ----------------------------------------------------------
   4. HERO
   ---------------------------------------------------------- */
.petersons-custom-blog-post .hero {
  background: var(--orange);
  padding: 3.5rem 2.5rem 3rem;
  border-radius: 16px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.petersons-custom-blog-post .hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.petersons-custom-blog-post .hero::before {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(212, 58, 39, 0.35);
}

.petersons-custom-blog-post .hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.petersons-custom-blog-post .hero h1 {
  font-size: 2.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.petersons-custom-blog-post .hero .subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 580px;
  position: relative;
  z-index: 1;
}

.petersons-custom-blog-post .hero-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.75rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.petersons-custom-blog-post .hero-meta .dot {
  opacity: 0.5;
}

.petersons-custom-blog-post .hero-search-btn {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s;
  margin-top: 1.25rem;
  position: relative;
  z-index: 1;
}

.petersons-custom-blog-post .hero-search-btn:hover {
  background: var(--bg-pale);
  color: var(--orange-dark);
  border-color: transparent;
}

/* ----------------------------------------------------------
   5. BODY TYPOGRAPHY
   ---------------------------------------------------------- */
.petersons-custom-blog-post h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 2.5rem 0 0.75rem;
  line-height: 1.25;
}

.petersons-custom-blog-post h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.4rem;
}

.petersons-custom-blog-post p {
  margin-bottom: 1.1rem;
  font-size: 1rem;
  color: var(--text-main);
}

.petersons-custom-blog-post a {
  color: var(--blue-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(70, 135, 173, 0.35);
}

.petersons-custom-blog-post a:hover {
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.petersons-custom-blog-post hr.div {
  border: none;
  border-top: 2px solid var(--bg-pale);
  margin: 2.5rem 0;
}

/* ----------------------------------------------------------
   6. CALLOUT
   ---------------------------------------------------------- */
.petersons-custom-blog-post .callout {
  background: var(--bg-pale);
  border-left: 4px solid var(--orange);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0;
}

.petersons-custom-blog-post .callout p {
  margin: 0;
  font-size: 0.95rem;
}

/* ----------------------------------------------------------
   7. STAT CARDS
   ---------------------------------------------------------- */
.petersons-custom-blog-post .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.petersons-custom-blog-post .stat-card {
  background: var(--white);
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  border-top: 3px solid var(--orange);
}

.petersons-custom-blog-post .stat-card .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.petersons-custom-blog-post .stat-card .lbl {
  font-size: 0.78rem;
  color: var(--blue-primary);
  font-weight: 700;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ----------------------------------------------------------
   8. CHART / HEATMAP BOX
   ---------------------------------------------------------- */
.petersons-custom-blog-post .chart-box {
  background: var(--white);
  border: 1px solid #e0e4e8;
  border-radius: 14px;
  padding: 1.75rem;
  margin: 1.75rem 0;
  overflow: visible;
}

.petersons-custom-blog-post .chart-box-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 3px;
}

.petersons-custom-blog-post .chart-box-sub {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 1.25rem;
}

/* ----------------------------------------------------------
   9. TABS
   ---------------------------------------------------------- */
.petersons-custom-blog-post .tab-row {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.petersons-custom-blog-post .tab-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid #ddd;
  background: var(--white);
  color: var(--text-main);
  font-family: 'Nunito Sans', sans-serif;
  transition: all 0.15s;
}

.petersons-custom-blog-post .tab-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.petersons-custom-blog-post .tab-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ----------------------------------------------------------
   10. HEATMAP
   ---------------------------------------------------------- */
.petersons-custom-blog-post .hm-view {
  display: none;
  overflow: visible;
}

.petersons-custom-blog-post .hm-view.visible {
  display: block;
}

.petersons-custom-blog-post .hm-header-row {
  display: flex;
  gap: 3px;
  margin-left: 115px;
  margin-bottom: 5px;
}

.petersons-custom-blog-post .hm-yr-lbl {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-align: center;
}

.petersons-custom-blog-post .hm-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 3px;
}

.petersons-custom-blog-post .hm-token {
  min-width: 110px;
  font-size: 12px;
  color: var(--text-main);
  text-align: right;
  padding-right: 8px;
  font-weight: 600;
  flex-shrink: 0;
}

.petersons-custom-blog-post .hm-cell {
  flex: 1;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  cursor: default;
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative;
}

.petersons-custom-blog-post .hm-cell:hover {
  transform: scale(1.12);
  z-index: 5;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.petersons-custom-blog-post .hm-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-dark);
  color: #fff;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  display: none;
  z-index: 10;
}

.petersons-custom-blog-post .hm-cell:hover .hm-tooltip {
  display: block;
}

.petersons-custom-blog-post .hm-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 11px;
  color: #888;
}

.petersons-custom-blog-post .hm-legend-bar {
  width: 160px;
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(to right, #ECEFF4, #F85A3D);
}

/* ----------------------------------------------------------
   11. INSIGHT CARDS
   ---------------------------------------------------------- */
.petersons-custom-blog-post .insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.petersons-custom-blog-post .insight-card {
  background: var(--white);
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  padding: 1.1rem;
  border-top: 3px solid var(--blue-primary);
}

.petersons-custom-blog-post .insight-card h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.petersons-custom-blog-post .insight-card p {
  font-size: 0.83rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.55;
}

/* ----------------------------------------------------------
   12. EXAM CARDS
   ---------------------------------------------------------- */
.petersons-custom-blog-post .exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin: 1.25rem 0;
}

.petersons-custom-blog-post .exam-card {
  background: var(--bg-pale);
  border-radius: 10px;
  padding: 1rem 0.9rem;
  text-align: center;
}

.petersons-custom-blog-post .exam-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 7px;
  letter-spacing: 0.5px;
}

.petersons-custom-blog-post .exam-card p {
  font-size: 0.79rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.45;
}

/* ----------------------------------------------------------
   13. TIMELINE
   ---------------------------------------------------------- */
.petersons-custom-blog-post .timeline {
  border-left: 3px solid var(--orange);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.petersons-custom-blog-post .timeline-item {
  margin-bottom: 1.25rem;
  position: relative;
}

.petersons-custom-blog-post .timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--white);
}

.petersons-custom-blog-post .timeline-item .tl-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.petersons-custom-blog-post .timeline-item p {
  margin: 0;
  font-size: 0.93rem;
}

/* ----------------------------------------------------------
   14. CTA BOX
   ---------------------------------------------------------- */
.petersons-custom-blog-post .cta-box {
  background: var(--blue-dark);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.petersons-custom-blog-post .cta-box::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(70, 135, 173, 0.25);
}

.petersons-custom-blog-post .cta-box h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.petersons-custom-blog-post .cta-box p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.petersons-custom-blog-post .cta-box a.lk {
  color: var(--yellow);
  border-color: rgba(254, 199, 82, 0.4);
}

.petersons-custom-blog-post .cta-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 11px 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  transition: background 0.2s;
  position: relative;
  z-index: 1;
}

.petersons-custom-blog-post .cta-btn:hover {
  background: var(--orange-dark);
  color: #fff;
  border-color: transparent;
}

/* ----------------------------------------------------------
   15. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .petersons-custom-blog-post .hero h1         { font-size: 1.55rem; }
  .petersons-custom-blog-post .hero            { padding: 2rem 1.25rem; }
  .petersons-custom-blog-post .hm-token        { min-width: 80px; font-size: 10px; }
  .petersons-custom-blog-post .hm-yr-lbl       { font-size: 9.5px; }
  .petersons-custom-blog-post .hm-header-row   { margin-left: 85px; }
  .petersons-custom-blog-post .hm-cell         { font-size: 9.5px; height: 30px; }
}
