/* ============================================================
   DEJTINGSIDA.COM – Main Stylesheet
   Design: Modern/Minimal | Midnight Blue #00478F + Baby Blue #CBEBF5
   ============================================================ */

/* --- Variables --- */
:root {
  --primary:      #00478F;
  --primary-dark: #003A73;
  --accent:       #CBEBF5;
  --accent-dark:  #a8d8f0;
  --white:        #FFFFFF;
  --surface:      #F4F9FD;
  --text:         #1A1A2E;
  --text-secondary: #4A5568;
  --border:       #E2EBF4;
  --shadow:       0 2px 12px rgba(0, 71, 143, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 71, 143, 0.14);
  --radius:       12px;
  --radius-sm:    8px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:    1200px;
  --transition:   0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: underline; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.35rem; }
p { margin-bottom: 1.25rem; }
table { border-collapse: collapse; width: 100%; }
button { font-family: var(--font); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.625rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.1rem; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  flex-shrink: 0;
}
.site-logo img { height: 42px; width: auto; }
.site-logo-text {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.site-logo-text span { color: var(--accent); }

/* Nav */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  display: block;
  text-decoration: none !important;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================================
   HERO – Homepage
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #003878 0%, var(--primary) 40%, #0066CC 100%);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(203,235,245,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.88rem 3.9375rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.14rem;
  transition: all var(--transition);
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  border: 2px solid transparent;
  line-height: 1.4;
}
.btn-primary {
  background: #16a34a;
  color: var(--white);
  border-color: #16a34a;
}
/* Centered CTA inside article content */
.article-content p:has(.btn-primary),
.article-content p:has(.btn) {
  text-align: center;
  margin: 1.5rem 0;
}
.article-content .btn-primary,
.article-content .btn {
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: 1.5rem auto;
}
.btn-primary:hover {
  background: #15803d;
  border-color: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}
/* Affiliate CTA – prominent full-width */
.btn-affiliate {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--white) !important;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all var(--transition);
  text-decoration: none !important;
  margin: 1.75rem 0;
  border: 2px solid var(--primary);
}
.btn-affiliate:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 71, 143, 0.32);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }
.section-title {
  text-align: center;
  color: var(--primary);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.75rem;
  font-size: 1rem;
}

/* ============================================================
   FEATURED CARD (monthly pick)
   ============================================================ */
.featured-card {
  background: linear-gradient(135deg, var(--primary) 0%, #0060B8 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-hover);
}
.featured-card-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  flex-shrink: 0;
}
.featured-card-logo-placeholder {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.featured-content { width: 100%; }
.featured-content h2 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.featured-content p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ============================================================
   POST CARDS GRID
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
/* When the entire card is an <a> tag */
a.post-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.post-card:hover {
  text-decoration: none;
}
a.post-card:hover h3 {
  color: var(--primary);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-dark);
}
.post-card-img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}
.post-card-img-placeholder {
  width: 100%;
  height: 185px;
  background: linear-gradient(135deg, var(--accent) 0%, #9ed5ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.post-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.post-card-title {
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  line-height: 1.45;
  flex: 1;
}
.post-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.post-card-title a:hover { color: var(--primary); }
.post-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  line-height: 1.45;
  flex: 1;
  text-align: center;
}
.post-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}
.post-card h3 a:hover { color: var(--primary); }
.post-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex: 1;
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* ============================================================
   STAR RATING
   ============================================================ */
.star-rating {
  display: flex;
  gap: 1px;
}
.star-rating .star { color: #F5A623; font-size: 1.1rem; line-height: 1; }
.star-rating .star.empty { color: #D1D5DB; }
.rating-score {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.rating-label { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.25rem; }

/* ============================================================
   SINGLE POST LAYOUT
   ============================================================ */
.post-header {
  background: linear-gradient(135deg, #003878 0%, var(--primary) 50%, #0060B8 100%);
  padding: 3rem 0 2.25rem;
  color: var(--white);
}
.post-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}
.breadcrumb {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,0.4); margin: 0 0.2rem; }
.breadcrumb-current { color: rgba(255,255,255,0.6); }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  margin-top: 0.75rem;
}
.post-meta a { color: rgba(255,255,255,0.88); }
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 3rem;
  padding: 2.75rem 0 4rem;
  align-items: start;
}
.post-content { min-width: 0; }

/* Cover Image */
.cover-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.75rem;
}
.cover-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-sidebar {
  position: sticky;
  top: 86px;
}

/* Review Info Box */
.review-box {
  background: var(--accent);
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.75rem 0;
}
.review-box-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--accent-dark);
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}
.review-item label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.review-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* Article Content */
.article-content h2 {
  color: var(--primary);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.article-content h3 {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
/* Responsive table wrapper — allows horizontal scrolling on mobile */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.article-content table {
  width: 100%;
  min-width: 480px; /* prevents columns from squishing; scroll kicks in below this width */
  border-collapse: collapse;
  margin: 0; /* outer spacing handled by .table-responsive wrapper */
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: none; /* shadow handled by .table-responsive wrapper */
}
.article-content table th {
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.article-content table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.article-content table tr:nth-child(even) td { background: var(--surface); }
.article-content table tr:last-child td { border-bottom: none; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content img {
  border-radius: var(--radius-sm);
  margin: 1.5rem auto;
  max-width: 100%;
}
.article-content a:not(.btn):not(.btn-affiliate),
.post-content a:not(.btn):not(.btn-affiliate),
.section a:not(h2 a):not(h3 a):not(.btn):not(.btn-affiliate) {
  color: #FF8C42;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-bottom: none;
  transition: color var(--transition);
}
.article-content a:not(.btn):not(.btn-affiliate):hover,
.post-content a:not(.btn):not(.btn-affiliate):hover,
.section a:not(h2 a):not(h3 a):not(.btn):not(.btn-affiliate):hover {
  color: #e07030;
  text-decoration: underline;
}
.article-content ul li::marker { color: var(--primary); }
.article-content ol li::marker { color: var(--primary); font-weight: 700; }

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc-box {
  background: #f0f8ff;
  border: 1px solid #CBEBF5;
  border-left: 4px solid #00478F;
  border-radius: 6px;
  padding: 1rem 1.5rem 1.25rem;
  margin: 1.5rem 0 2rem;
  display: block;
}
.toc-title {
  font-weight: 700;
  color: #00478F;
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.toc-title::-webkit-details-marker { display: none; }
.toc-title::before {
  content: "+ ";
  font-weight: 700;
}
details[open] .toc-title::before {
  content: "- ";
}
.toc-box #TableOfContents ul {
  margin: 0.75rem 0 0 0;
  padding: 0 0 0 1.25rem;
  list-style: decimal;
}
.toc-box #TableOfContents li {
  margin: 0.4rem 0;
  font-size: 0.95rem;
}
.toc-box #TableOfContents a,
.toc-box #TableOfContents a:hover {
  color: #00478F !important;
  text-decoration: none !important;
  font-weight: 500;
}
.toc-box #TableOfContents a:hover {
  text-decoration: underline !important;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
.sidebar-widget-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--accent);
}
.sidebar-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-link-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.sidebar-link-list li:last-child { border-bottom: none; }
.sidebar-link-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sidebar-link-list a::before {
  content: '›';
  color: var(--primary);
  font-weight: 700;
}
.sidebar-link-list a:hover { color: var(--primary); }

/* Rating widget */
.sidebar-rating-center {
  text-align: center;
  padding: 0.5rem 0 0.75rem;
}
.sidebar-rating-center .star-rating {
  justify-content: center;
  font-size: 1.4rem;
  margin: 0.5rem 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { margin: 2rem 0; }
.faq-section h2 {
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--accent-dark); }
.faq-item.open { border-color: var(--primary); }
.faq-question {
  padding: 1rem 1.25rem;
  background: var(--white);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  line-height: 1.5;
}
.faq-question:hover { background: var(--surface); }
.faq-toggle {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.25s ease;
  line-height: 1;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 0.6rem 1.25rem 1.2rem;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================
   TAGS
   ============================================================ */
.post-tags {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.tags-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none !important;
}
.tag:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
  padding: 3.5rem 0;
  background: var(--surface);
  margin-top: 0;
}

/* ============================================================
   TOP LIST / RANKING
   ============================================================ */
.top-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.top-list-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
  transition: all 0.22s ease;
}
.top-list-item:hover {
  border-color: var(--primary);
  transform: translateX(3px);
  box-shadow: var(--shadow-hover);
}
.top-list-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 2.25rem;
  text-align: center;
  flex-shrink: 0;
}
.rank-gold   { color: #F5A623; }
.rank-silver { color: #9CA3AF; }
.rank-bronze { color: #B45309; }
.top-list-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 4px;
  background: var(--white);
}
.top-list-info { flex: 1; min-width: 0; }
.top-list-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.top-list-info p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }
.top-list-cta { flex-shrink: 0; }

/* ============================================================
   PAGE HERO (list/category pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #003878 0%, var(--primary) 50%, #0060B8 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.85); margin: 0; font-size: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #003878 0%, #002D5F 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 0;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  display: block;
}
.footer-logo span { color: var(--accent); }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin: 0;
}
.footer-heading {
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}
.pagination a {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
}
.pagination a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.pagination .active,
.pagination span.current {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.accent-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .post-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #002D5F;
    padding: 0.75rem 1rem 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 199;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: block;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
  }
  .nav-toggle { display: flex; }
  .featured-card { flex-direction: column; text-align: center; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .review-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .top-list-item { flex-wrap: wrap; }
  .top-list-cta { width: 100%; }
  .top-list-cta .btn { display: block; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .post-header { padding: 2rem 0 1.75rem; }
  .hero h1 { font-size: 1.75rem; }
  .posts-grid { grid-template-columns: 1fr; }
}
