/* =========================================================
   EXAMATICS BLOG — GLOBAL STYLESHEET
   ========================================================= */

/* ── Variables ── */
:root {
  --primary:      #f5a623;
  --primary-dark: #d4891b;
  --secondary:    #616161;
  --text:         #2b2b2b;
  --text-muted:   #777;
  --bg-page:      #f5f5f0;
  --bg-card:      #ffffff4a;
  --border:       #e0e0e0;
  --radius:       10px;
  --shadow:       0 2px 12px rgba(0,0,0,.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,.14);
  --max-width:    1200px;
  --header-h:     64px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-page);
  background-image: url("/assets/images/bg_texture4.jpeg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text); }

/* =========================================================
   HEADER TOOLBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand / logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  align-items: center;
justify-content: flex-start;
}

.site-logo {
  width: 48px;
  height: 48px;
  background-image: url('/assets/images/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  background-clip: content-box;
  background-size: 96px 96px;
  box-sizing: none;
}

.logo-text {
  font-size:clamp(1.5rem, 1.6vw, 3rem);;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;

}

.logo-part-1 { color: var(--primary); }
.logo-part-2 { color: var(--secondary); }

/* Header nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--secondary);
}

.header-nav a:hover { color: var(--primary); }

.contact-link {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600 !important;
  transition: background .2s;
}

.contact-link:hover { background: var(--primary-dark) !important; }

/* =========================================================
   HERO / BANNER
   ========================================================= */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 60%, #1a1a1a 100%);
  background-image: url('/assets/images/hero_banner.png');
  color: #fff;
  padding: 80px 24px 72px;
  text-align: center;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
}
.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-tagline {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 32px;
  border-radius: 30px;
  transition: background .2s, transform .15s;
}

.hero-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: #fff;
}

/* =========================================================
   PAGE WRAP & LAYOUT GRID
   ========================================================= */
.page-wrap {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 24px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--secondary); }
.breadcrumb a:hover { color: var(--primary); }
.bc-sep { color: var(--border); }
.bc-current { color: var(--text); font-weight: 500; }

/* ── Content + right-rail grid ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; }
}

/* ── Main content pane ── */
.content-pane {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
}

.content-pane h1 { font-size: 2rem; margin-bottom: 12px; }
.content-pane h2 { font-size: 1.5rem; margin: 28px 0 12px; }
.content-pane h3 { font-size: 1.2rem; margin: 20px 0 8px; }

.content-pane p  { margin-bottom: 16px; color: var(--text); }
.content-pane ul,
.content-pane ol { padding-left: 24px; margin-bottom: 16px; }
.content-pane li { margin-bottom: 6px; }

/* =========================================================
   TABLES — Consistent Blog Style
   ========================================================= */
.content-pane table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-pane th, .content-pane td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.content-pane th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-pane tr:last-child td {
  border-bottom: none;
}

.content-pane tbody tr:hover {
  background: #fffbe7;
  transition: background 0.2s;
}

.content-pane table {
  font-size: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   CONVERSATIONAL SUMMARY
   ========================================================= */
.conv-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
  border-top: 3px solid var(--primary);
}

.conv-summary__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.conv-summary__icon {
  display: flex;
  align-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.conv-summary__title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text);
  margin: 0;
}

.conv-summary__body {
  padding: 12px 16px 6px;
}

.conv-summary__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conv-summary__list li {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}

.conv-summary__list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: .75rem;
  top: 1px;
}

.conv-summary__read-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: var(--text-muted);
  padding: 8px 16px 12px;
}

/* =========================================================
   RIGHT RAIL — RECENT ARTICLES
   ========================================================= */
.right-rail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.rail-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.rail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .15s;
  text-decoration: none;
}

.rail-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.rail-thumb {
  width: 64px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.rail-thumb--placeholder {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.rail-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rail-card-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail-card-date {
  font-size: .75rem;
  color: var(--text-muted);
}

/* =========================================================
   FEATURED ARTICLES — BOTTOM CARD GRID
   ========================================================= */
.featured-section {
  margin-top: 56px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* ── Post card ── */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .2s;
}

.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.banner-section {  
 background-color: #1e1e1e;
}

.post-card__image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.post-card__image--placeholder {
  height: 190px;
  background: linear-gradient(135deg, #f5a623 0%, #d4891b 50%, #3a3a3a 100%);
}

.post-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
  background: rgba(245,166,35,.12);
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
}

.post-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover { color: var(--primary); }

.post-card__excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  margin-top: 4px;
}

.post-card__date { color: var(--text-muted); }

.post-card__read-more {
  color: var(--primary-dark);
  font-weight: 600;
}

.post-card__read-more:hover { color: var(--primary); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: 72px;
  background: #1a1a1a;
  color: #aaa;
  padding: 28px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: .85rem; }

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: .85rem;
  color: #aaa;
}

.footer-nav a:hover { color: var(--primary); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .header-nav { gap: 14px; }
  .content-pane { padding: 24px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}


.summary-quotes {
 display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    line-height: 1.55;
    border-radius: 6px;
    position: relative;
    font-style: italic;
    margin-bottom: 16px;
}

.summary-quotes > div:first-child,
.summary-quotes > div:last-child {
  font-size: 2.25rem;
  line-height: 1;
  color: #f4c542; /* yellow quotes */
  font-weight: 600;
  margin-top: -0.25rem;
}

.summary-quotes .conv-summary__body {
  flex: 1;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.summary-quotes:hover {
  background: #f5f2f2;
  transition: background 0.25s ease;
}
.explore-all{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.explore-all a {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 30px;
  transition: background .2s, transform .15s;
}

.explore-all a:hover {
  color: #fff;
  transform: translateY(-2px);
}