/*
=============================================================
  PforPhD Blog Post — Global CSS for WordPress
  Version: 1.0
  Use: Paste this in WP Dashboard → Appearance → Customize
       → Additional CSS  (OR)  Site Editor → Styles → CSS
  
  Yeh CSS automatically har blog post pe apply hogi.
  Kisi post mein alag se CSS likhne ki zaroorat NAHI.
=============================================================
*/

/* ── Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* ── CSS Variables (Colors — ek jagah se sab control karo) ── */
:root {
  --phd-ink:       #1a1a2e;
  --phd-muted:     #4a4a6a;
  --phd-accent:    #c8973a;   /* Gold color */
  --phd-accent2:   #2a5f8f;   /* Blue color */
  --phd-bg:        #faf9f6;
  --phd-card:      #ffffff;
  --phd-border:    #e8e4dc;
  --phd-highlight: #fff8ec;
}

/* ================================================================
   BODY & BASE TYPOGRAPHY
   ================================================================ */
.single-post body,
.single-post,
.single-scholarship body,
.single-scholarship {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--phd-bg);
  color: var(--phd-ink);
  line-height: 1.8;
  font-size: 18px;
}

/* ================================================================
   ARTICLE CONTENT — Main writing area
   ================================================================ */
.sh-post-content {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
  color: #2e2e45;
}

/* H2 — Section headings */
.sh-post-content h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 28px !important;
  color: var(--phd-ink) !important;
  margin: 52px 0 24px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--phd-accent) !important; /* Premium gold line */
  display: block !important;
}

/* H3 — Sub-headings */
.sh-post-content h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 21px !important;
  color: var(--phd-accent2) !important;
  margin: 36px 0 12px !important;
  font-weight: 700 !important;
}

/* Paragraphs */
.sh-post-content p {
  margin-bottom: 20px !important;
  color: #2e2e45 !important;
}

/* Bold text */
.sh-post-content strong {
  color: var(--phd-ink) !important;
}

/* Links */
.sh-post-content a {
  color: var(--phd-accent2) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
.sh-post-content a:hover {
  color: var(--phd-accent) !important;
}

/* ================================================================
   INTRO BOX — Post ke shuru mein italic highlight box
   Class: intro-box
   Usage: <div class="intro-box">Aapka intro text...</div>
   ================================================================ */
.intro-box {
  background: var(--phd-highlight);
  border-left: 4px solid var(--phd-accent);
  padding: 22px 26px;
  border-radius: 4px;
  margin-bottom: 36px;
  font-size: 17px;
  color: var(--phd-muted);
  font-style: italic;
}

/* ================================================================
   SCHOLARSHIP CARD — Har scholarship ke liye
   Class: scholarship-card
   Usage: <div class="scholarship-card">...</div>
   ================================================================ */
.scholarship-card {
  background: var(--phd-card);
  border: 1px solid var(--phd-border);
  border-radius: 10px;
  padding: 28px 30px;
  margin: 40px 0 32px;
  position: relative;
  transition: box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.scholarship-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

/* Card Number Badge — Top left golden number */
.card-number {
  position: absolute;
  top: -15px;
  left: 24px;
  background: var(--phd-accent);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 6px var(--phd-card); /* Creates the cutout effect on the border */
}

/* Country Tag */
.card-country {
  display: inline-block;
  background: #f0f4f8;
  color: var(--phd-accent2);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Scholarship Card H3 override */
.scholarship-card h3 {
  margin: 0 0 16px !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--phd-ink) !important;
  font-family: 'Playfair Display', serif !important;
  border: none !important;
  padding-bottom: 0 !important;
}

/* Badge Row */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.badge {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-green  { background: #e6f6ec; color: #1e874b; }
.badge-blue   { background: #eef4fb; color: #2a5f8f; }
.badge-orange { background: #fdf3e8; color: #b97b31; }

/* What It Covers Box */
.card-covers {
  background: #f8f9ff;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 15px;
  color: var(--phd-muted);
  line-height: 1.7;
}
.card-covers strong {
  display: block;
  color: var(--phd-ink);
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Tip inside card */
.card-tip {
  margin-top: 12px;
  font-size: 15px;
  color: var(--phd-muted);
  border-top: 1px dashed var(--phd-border);
  padding-top: 12px;
}
.card-tip::before { content: "💡 "; }

/* ================================================================
   TIP / PRO TIP BOX — Blue info box
   Class: tip-box
   Usage: <div class="tip-box"><h4>Pro Tip</h4><p>Text</p></div>
   ================================================================ */
.tip-box {
  background: #eef6ff;
  border: 1px solid #c5daf5;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 32px 0;
}
.tip-box h4 {
  color: var(--phd-accent2);
  font-size: 16px;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
.tip-box p {
  font-size: 16px;
  color: #2a3a5a;
  margin: 0 !important;
}

/* ================================================================
   BLOCKQUOTE — Italic quote with gold left border
   Usage: <blockquote>Your quote here</blockquote>
   ================================================================ */
.single-post .entry-content blockquote,
.single-post .post-content blockquote,
.single-scholarship .entry-content blockquote,
.single-scholarship .post-content blockquote {
  border-left: 3px solid var(--phd-accent);
  margin: 32px 0;
  padding: 18px 24px;
  background: var(--phd-highlight);
  font-style: italic;
  font-size: 18px;
  color: var(--phd-muted);
  border-radius: 0 6px 6px 0;
}

/* ================================================================
   BULLET LISTS / CHECKLISTS — Automatically styled like reference
   ================================================================ */
.checklist,
.sh-post-content ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 24px 0 32px !important;
}
.checklist li,
.sh-post-content ul li {
  padding: 18px 0 18px 36px !important;
  position: relative;
  font-size: 17px !important;
  color: var(--phd-ink) !important;
  border-bottom: 1px solid var(--phd-border) !important;
  line-height: 1.7 !important;
}
.checklist li:last-child,
.sh-post-content ul li:last-child { 
  border-bottom: none !important; 
}
.checklist li::before,
.sh-post-content ul li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 18px; /* Aligns with the padding-top */
  color: var(--phd-accent);
  font-weight: 700;
  font-size: 18px;
}

/* ================================================================
   COMPARISON TABLE — Scholarship comparison
   Class: table-wrap (wrapper div)
   Usage: <div class="table-wrap"><table>...</table></div>
   ================================================================ */
.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table-wrap thead tr {
  background: var(--phd-ink);
  color: #fff;
}
.table-wrap th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.table-wrap td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--phd-border);
  color: #2e2e45;
}
.table-wrap tr:nth-child(even) td {
  background: #f8f8f4;
}

/* ================================================================
   AUTHOR BOX — Post ke end mein author section
   Class: author-box
   ================================================================ */
.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--phd-card);
  border: 1px solid var(--phd-border);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 52px 0 0;
}
.author-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--phd-accent), var(--phd-accent2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
.author-info p {
  font-size: 14px;
  color: var(--phd-muted);
  margin: 0 !important;
}
.author-info strong {
  font-size: 16px;
  display: block;
  color: var(--phd-ink);
}

/* ================================================================
   CATEGORY TAG — Hero area mein "PhD SCHOLARSHIPS" tag
   Class: category-tag
   ================================================================ */
.category-tag {
  display: inline-block;
  background: rgba(200,151,58,0.25);
  color: var(--phd-accent);
  border: 1px solid rgba(200,151,58,0.5);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* ================================================================
   MOBILE RESPONSIVE
   ================================================================ */
@media (max-width: 820px) {
  .single-post .entry-content h2,
  .single-post .post-content h2,
  .single-scholarship .entry-content h2,
  .single-scholarship .post-content h2 {
    font-size: 22px;
    margin: 36px 0 12px;
  }

  .single-post .entry-content h3,
  .single-post .post-content h3,
  .single-scholarship .entry-content h3,
  .single-scholarship .post-content h3 {
    font-size: 18px;
  }

  .single-post body,
  .single-post,
  .single-scholarship body,
  .single-scholarship {
    font-size: 16px;
  }

  .scholarship-card {
    padding: 20px 18px;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .table-wrap {
    font-size: 13px;
  }
}

/* ================================================================
   TABLE OF CONTENTS (TOC) — Premium Sidebar Design
   ================================================================ */
#sh-toc-container {
    background: #fff;
    border: 1px solid var(--phd-border) !important;
    border-radius: 12px;
    padding: 25px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
}

.sh-toc-header {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--phd-ink);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--phd-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sh-toc-nav {
    display: flex;
    flex-direction: column;
}

.sh-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--phd-muted);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
    line-height: 1.4;
    font-family: 'Source Serif 4', serif;
}

.sh-toc-link:last-child {
    border-bottom: none;
}

.sh-toc-link:hover {
    color: var(--phd-accent2);
    transform: translateX(4px);
}

/* Numbering for H2 */
.sh-toc-link .toc-num {
    color: var(--phd-accent);
    font-weight: 700;
    font-size: 14px;
    min-width: 20px;
}

/* Sub-item Icon for H3 */
.sh-toc-link.toc-h3 {
    padding-left: 20px;
    font-size: 14px;
    display: none; /* Hidden by default */
}

.sh-toc-group.active .toc-h3 {
    display: flex; /* Shown when active */
}

.sh-toc-link.toc-h2 {
    cursor: pointer;
}

.sh-toc-h2-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
}

.sh-toc-h2-wrapper .toc-h2 {
    border-bottom: none;
    flex-grow: 1;
    padding-right: 15px;
}

.sh-toc-toggle-btn {
    cursor: pointer;
    padding: 10px;
    color: var(--phd-muted);
    opacity: 0.5;
    font-size: 11px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.sh-toc-toggle-btn:hover {
    color: var(--phd-accent2);
    opacity: 1;
}

.sh-toc-group.active .sh-toc-toggle-btn {
    transform: rotate(180deg);
}

.sh-toc-group.no-subs .sh-toc-toggle-btn {
    display: none;
}
