@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ================================================================
   icseboard.org — E-E-A-T + typography, aligned to salesforcetutorial.com
   Loaded AFTER icseboard-custom.css so these rules win the cascade.
   Mirrors the SalesforceTutorial design tokens (Inter, navy/blue,
   8px spacing) and styles the pipeline-injected icse- blocks
   (author byline, About-the-Author card, E-E-A-T callouts).
   ================================================================ */

:root {
  --sft-navy: #032D60;
  --sft-blue: #0176D3;
  --sft-blue-600: #014486;
  --sft-sky: #00A1E0;
  --sft-cyan-50: #EAF5FE;
  --sft-ink: #181818;
  --sft-text: #2E2E2E;
  --sft-muted: #5C5C5C;
  --sft-border: #E5E5E5;
  --sft-border-strong: #C9CFD5;
  --sft-surface-alt: #F8FAFC;
  --sft-r-sm: 6px;
  --sft-r-md: 12px;
  --sft-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ── Typography (match salesforcetutorial.com) ─────────────────── */
body,
.entry-content,
article {
  font-family: var(--sft-font-sans);
  color: var(--sft-text);
}

.entry-content {
  font-size: 1rem;
  line-height: 1.65;
}

.entry-content p { margin: 0 0 1rem; }

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
  font-family: var(--sft-font-sans);
  color: var(--sft-navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 2rem 0 1rem;
}
.entry-content h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.entry-content h3 { font-size: 1.375rem; }
.entry-content h4 { font-size: 1.125rem; }

.entry-content a { color: var(--sft-blue); }
.entry-content a:hover,
.entry-content a:focus { color: var(--sft-blue-600); }

.entry-content ul,
.entry-content ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.entry-content li { margin: 0 0 0.35rem; }

.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--sft-border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.entry-content thead th { background: var(--sft-cyan-50); color: var(--sft-navy); }

/* ── Unify the article card: title flows into byline + content (one card, like SF) ── */
article.card > .card-header,
article.card > .card-header.bg-white {
  border-bottom: 0 !important;   /* remove the line between the H1 and the byline */
  padding-bottom: 0;
}
article.card > .entry-content.card-body { border-top: 0 !important; padding-top: 1rem; }

/* ── Byline: Written by / Published on / Updated on (mirrors .sft-article-trust) ── */
.icse-author-byline { margin: 0 0 1.5rem; }
.icse-author-byline p,
.icse-author-byline__line {
  margin: 0;
  padding-bottom: 1rem;              /* --sft-s-4 */
  color: var(--sft-muted);
  font-size: 0.875rem;              /* --sft-fs-small */
  line-height: 1.5;
  border-bottom: 1px dotted var(--sft-border-strong);
}
.icse-author-byline a,
.icse-author-byline__author { color: var(--sft-blue); font-weight: 500; text-decoration: none; }
.icse-author-byline a:hover,
.icse-author-byline__author:hover { text-decoration: underline; }
.icse-author-byline__sep { color: var(--sft-border-strong); }   /* light '/' like salesforce */

/* ── About-the-Author card (mirrors .sft-author-box) ───────────── */
.icse-author-about {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--sft-border);
  border-radius: var(--sft-r-md);
  background: var(--sft-surface-alt);
}
.icse-author-about__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sft-muted);
}
.icse-author-about__name { margin: 0; font-size: 1.125rem; font-weight: 600; }
.icse-author-about__name a { color: var(--sft-navy); text-decoration: none; }
.icse-author-about__name a:hover { color: var(--sft-blue); text-decoration: underline; }
.icse-author-about__divider { margin: 1rem 0 0; border: 0; border-top: 1px dotted var(--sft-border-strong); }
.icse-author-about__body { padding-top: 1.25rem; overflow: hidden; }
.icse-author-about__role { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--sft-muted); }
.icse-author-about__avatar {
  float: left; width: 64px; height: 64px; border-radius: 50%;
  margin: 0 1rem 0.5rem 0; object-fit: cover;
}
.icse-author-about__bio { margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.6; color: var(--sft-text); }
.icse-author-about__links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 0;
}
.icse-author-about__social,
.icse-author-about__profile {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500; color: var(--sft-blue); text-decoration: none;
}
.icse-author-about__social + .icse-author-about__profile::before {
  content: ""; display: inline-block; width: 1px; height: 1em;
  margin-right: 1.25rem; background: var(--sft-border-strong); vertical-align: middle;
}
.icse-author-about__social:hover,
.icse-author-about__profile:hover { text-decoration: underline; }

/* ── E-E-A-T callout blocks ────────────────────────────────────── */
.icse-toc {
  background: var(--sft-surface-alt);
  border: 1px solid var(--sft-border);
  border-radius: var(--sft-r-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.icse-toc strong, .icse-toc > *:first-child { color: var(--sft-navy); }
.icse-toc ul, .icse-toc ol { margin: 0.5rem 0 0; }

.icse-concept-snapshot,
.icse-examiners-mindset,
.icse-common-mistakes,
.icse-worked-example {
  border: 1px solid var(--sft-border);
  border-left: 4px solid var(--sft-blue);
  border-radius: var(--sft-r-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: #fff;
}
.icse-concept-snapshot { border-left-color: var(--sft-sky); background: var(--sft-cyan-50); }
.icse-examiners-mindset { border-left-color: #2E844A; background: #F3FAF5; }
.icse-common-mistakes  { border-left-color: #BA0517; background: #FDF3F3; }
.icse-worked-example   { border-left-color: var(--sft-blue); }
.icse-concept-snapshot > :first-child,
.icse-examiners-mindset > :first-child,
.icse-common-mistakes > :first-child,
.icse-worked-example > :first-child { margin-top: 0; }

/* ── Downloads / PDF resources table ───────────────────────────── */
.icse-downloads { margin-top: 2rem; }
.icse-downloads-table { width: 100%; border-collapse: collapse; }
.icse-downloads-table td { border: 1px solid var(--sft-border); padding: 0.75rem 1rem; }
.icse-downloads-table a {
  color: var(--sft-blue); font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.icse-downloads-table a:hover { text-decoration: underline; }

/* ── Latest Articles rail (right sidebar, mirrors salesforcetutorial.com) ──────── */
.icse-widget.icse-latest-articles-widget {
  background: #fff;
  border: 1px solid var(--sft-border);
  border-radius: var(--sft-r-md);
  padding: 1.25rem;
}
.icse-widget__title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--sft-navy);
  font-family: var(--sft-font-sans);
}
.icse-latest-articles { list-style: none; margin: 0; padding: 0; }
.icse-latest-articles__item { padding: 0.85rem 0; border-bottom: 1px solid var(--sft-border); }
.icse-latest-articles__item:first-child { padding-top: 0; }
.icse-latest-articles__item:last-child { border-bottom: 0; padding-bottom: 0; }
.icse-latest-articles__link { display: flex; gap: 0.75rem; align-items: flex-start; text-decoration: none; }
.icse-latest-articles__thumb,
.icse-latest-articles__placeholder { flex: 0 0 72px; }
.icse-latest-articles__image,
.icse-latest-articles__thumb img {
  width: 72px; height: 54px; object-fit: cover; border-radius: var(--sft-r-sm); display: block;
}
.icse-latest-articles__placeholder {
  width: 72px; height: 54px; border-radius: var(--sft-r-sm); background: var(--sft-cyan-50);
}
.icse-latest-articles__body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.icse-latest-articles__title {
  font-size: 0.9rem; font-weight: 600; line-height: 1.35;
  color: var(--sft-navy); font-family: var(--sft-font-sans);
}
.icse-latest-articles__link:hover .icse-latest-articles__title { color: var(--sft-blue); }
.icse-latest-articles__meta { font-size: 0.8rem; color: var(--sft-muted); }

/* FAQ accordion polish */
.icse-faq-item { border-bottom: 1px solid var(--sft-border); padding: 0.25rem 0; }
.icse-faq-item summary,
.icse-faq-q { cursor: pointer; font-weight: 600; color: var(--sft-navy); padding: 0.6rem 0; }

/* ============================================================================
   HOMEPAGE — salesforcetutorial.com-aligned, mobile-first
   Restyles the front-page.php hp-* sections (hero, class/resource/subject cards,
   popular list). Loaded after icseboard-custom.css, so these win the cascade.
   ============================================================================ */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hp-hero {
  background: linear-gradient(160deg, var(--sft-navy) 0%, #052B5C 60%, var(--sft-blue-600) 100%);
  color: #fff;
}
.hp-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hp-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 0.8125rem; font-weight: 500; padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.hp-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sft-sky); box-shadow: 0 0 0 3px rgba(0,161,224,0.25); }
.hp-hero-headline {
  font-family: var(--sft-font-sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12;
  margin: 0.25rem 0; font-size: clamp(1.9rem, 1.4rem + 2.5vw, 3rem);
}
.hp-headline-accent { color: var(--sft-sky); }
.hp-hero-sub { max-width: 640px; margin: 0; color: rgba(255,255,255,0.82); font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.125rem); line-height: 1.55; }

/* Search bar */
.hp-search-form { width: 100%; max-width: 620px; margin: 0.5rem auto 0; box-shadow: var(--sft-shadow-md, 0 4px 12px rgba(16,24,40,0.18)); border-radius: var(--sft-r-md); }
.hp-search-input { border: 0; font-size: 1rem; }
.hp-search-input:focus { box-shadow: none; }
.hp-search-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600;
  background: var(--sft-sky); border-color: var(--sft-sky); color: #04263f;
}
.hp-search-btn:hover { background: #0090c9; border-color: #0090c9; color: #04263f; }

/* Hero stat cards — equal height, professional translucent panels */
.hp-stats-row { max-width: 600px; margin-inline: auto; }
.hp-stat-card {
  height: 100%;                       /* all four match the tallest → equal size */
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.09) !important;
  border-radius: var(--sft-r-md) !important;
}
.hp-stat-card .card-body {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 86px; gap: 0.15rem;
}
.hp-stat-value { font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: #fff; }
.hp-stat-label {
  color: rgba(255,255,255,0.72) !important; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3;
}

/* ── Content width: full-bleed section backgrounds, centered readable content ── */
.hp-hero > .container,
.hp-section > .container { max-width: 1200px; }

/* ── Sections ──────────────────────────────────────────────────────────────── */
.hp-section { padding: 2.5rem 0; }
.hp-section-alt { background: var(--sft-surface-alt); }
.hp-section-title { font-family: var(--sft-font-sans); font-weight: 700; color: var(--sft-navy); letter-spacing: -0.015em; }
.hp-section-header { margin-bottom: 1.5rem; }
.hp-section-link { color: var(--sft-blue) !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hp-section-link:hover { color: var(--sft-blue-600) !important; text-decoration: underline; }
/* Section subtitle — same size/weight as content body (.entry-content) for consistency */
.hp-section-subtitle { color: var(--sft-muted); font-size: 1rem; font-weight: 400; line-height: 1.65; max-width: 760px; }

/* ── Cards: shared lift + clean surface ────────────────────────────────────── */
.hp-class-card, .hp-resource-card, .hp-subject-card {
  border: 1px solid var(--sft-border) !important;
  border-radius: var(--sft-r-md) !important;
  background: #fff; box-shadow: var(--sft-shadow-sm, 0 1px 2px rgba(16,24,40,0.06)) !important;
  transition: transform 180ms cubic-bezier(0.4,0,0.2,1), box-shadow 180ms cubic-bezier(0.4,0,0.2,1), border-color 180ms;
}
.hp-hover-lift:hover { transform: translateY(-3px); box-shadow: var(--sft-shadow-lg, 0 12px 32px rgba(16,24,40,0.12)) !important; border-color: var(--sft-border-strong) !important; }

/* Class cards */
.hp-class-card { position: relative; overflow: hidden; }
.hp-class-popular { background: var(--sft-sky); color: #04263f; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; }
.hp-class-num { color: var(--card-color, var(--sft-blue)); font-weight: 800; line-height: 1; }
.hp-class-name { color: var(--sft-navy); font-weight: 600; }
.hp-class-subjects { color: var(--sft-muted) !important; }
.hp-class-arrow { color: var(--card-color, var(--sft-blue)); font-weight: 700; font-size: 1.1rem; }

/* Resource cards — Bootstrap image-card (colored banner → title → text → button) */
.hp-resource-card { overflow: hidden; }
.hp-resource-imgtop {
  height: 96px; display: grid; place-items: center;
  background: var(--sft-cyan-50); border-bottom: 1px solid var(--sft-border);
}
.hp-resource-imgtop .hp-resource-icon { font-size: 2.25rem; line-height: 1; }
.hp-resource-card .card-body { padding: 1.25rem; }
.hp-resource-title { color: var(--sft-navy); font-weight: 700; }
.hp-resource-desc { font-size: 0.9rem; line-height: 1.55; }
.hp-resource-btn { background: var(--sft-blue); border-color: var(--sft-blue); color: #fff; font-weight: 600; padding: 0.4rem 1.1rem; }
.hp-resource-card:hover .hp-resource-btn { background: var(--sft-blue-600); border-color: var(--sft-blue-600); color: #fff; }
/* per-resource accent banners */
.hp-resource-syllabus .hp-resource-imgtop { background: #EAF5FE; }
.hp-resource-books .hp-resource-imgtop    { background: #F3FAF5; }
.hp-resource-papers .hp-resource-imgtop   { background: #FFF7ED; }
.hp-resource-sample .hp-resource-imgtop   { background: #FDF2F8; }

/* Subject cards */
.hp-subject-card { border-left: 4px solid var(--subj, var(--sft-blue)) !important; }
.hp-subj-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--subj, var(--sft-blue)); }
.hp-subj-name { color: var(--sft-navy); }
.hp-subj-meta { color: var(--sft-muted) !important; }

/* Popular Solutions + Latest Updates — matching professional cards, equal height */
.hp-popular-list,
.hp-updates-list {
  border: 1px solid var(--sft-border); border-radius: var(--sft-r-md);
  background: #fff; overflow: hidden; height: 100%;
  box-shadow: var(--sft-shadow-sm, 0 1px 2px rgba(16,24,40,0.06));
}
.hp-popular-item,
.hp-update-item {
  border: 0; border-bottom: 1px solid var(--sft-border); padding: 0.9rem 1.1rem;
  transition: background 150ms var(--sft-ease, ease);
}
.hp-popular-item:last-child,
.hp-update-item:last-child { border-bottom: 0; }
.hp-popular-item:hover,
.hp-update-item:hover { background: var(--sft-cyan-50); }
.hp-pop-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--sft-r-sm); font-size: 0.95rem; font-weight: 700; }
.hp-pop-body strong,
.hp-update-body strong { color: var(--sft-navy); font-weight: 600; }
.hp-pop-arrow,
.hp-update-arrow { color: var(--sft-muted) !important; }
/* keep the two columns visually balanced */
.hp-popular-list > .hp-popular-item,
.hp-updates-list > .hp-update-item { min-height: 64px; align-items: center; }

/* ── Footer aligned to the homepage content width (was full-width container-fluid) ── */
.site-footer > .container-fluid { max-width: 1200px; margin-inline: auto; }

/* ── Mobile-first spacing bumps for larger screens ─────────────────────────── */
@media (min-width: 768px) {
  .hp-section { padding: 3.5rem 0; }
  .hp-hero { padding: 1rem 0; }
}
