/* ============================================
   xTechHub Minimal — Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --orange:      #D4621A;
  --navy:        #1B2F6E;
  --black:       #111111;
  --gray-dark:   #444444;
  --gray:        #888888;
  --gray-light:  #CCCCCC;
  --gray-pale:   #F5F5F5;
  --white:       #FFFFFF;
  --border:      #E8E8E8;

  --serif:  'Playfair Display', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;

  --max-w: 1160px;
  --ease:  0.2s ease;
}

/* ---- Full-Width Reset (prevents WordPress boxed layout) ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
}

body,
body.home,
body.blog,
body.custom-background,
body.wp-custom-background {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white) !important;
  background-color: var(--white) !important;
  background-image: none !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0 !important;
  padding: 0 !important;
}

/* All WP wrappers — full width */
#page {
  padding-top: 68px;
}
#page, .site, #content, #primary, #main, main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  background: transparent !important;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ---- Container ---- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

.header-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo img {
  height: 80px;
  width: auto;
}

.logo-text {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo-text em {
  font-style: normal;
  color: var(--orange);
}

/* Nav — centered, matches xTechHub main site */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  transition: color var(--ease);
  white-space: nowrap;
}

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

/* Active / current page — orange like main site */
.header-nav .current-menu-item > a,
.header-nav .current_page_item > a,
.header-nav a.active {
  color: var(--orange);
  font-weight: 600;
}

/* Dropdown arrow for menu items with children */
.header-nav .menu-item-has-children > a::after {
  content: ' \25BE';
  font-size: 0.7em;
  opacity: 0.7;
}

/* Right: Login + Sign Up */
/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 0.3rem;
}

/* ============================================
   TOPIC PILL NAV
   ============================================ */
.topic-nav {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.topic-nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.topic-nav-wrap::-webkit-scrollbar { display: none; }

.topic-nav a {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-dark);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--ease);
}

.topic-nav a:hover { color: var(--orange); border-color: var(--orange); }
.topic-nav a.active {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

/* ============================================
   FEATURED POST
   ============================================ */
.featured-section {
  width: 100%;
  padding: 3.5rem 2rem 0;
}

.featured-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.featured-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--orange);
  opacity: 0.4;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  min-height: 440px;
}

.featured-image {
  overflow: hidden;
  background: var(--gray-pale);
  position: relative;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-card:hover .featured-image img { transform: scale(1.03); }

.featured-no-image {
  width: 100%;
  height: 100%;
  min-height: 440px;
  background: linear-gradient(145deg, var(--navy) 0%, #0D1A40 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-no-image svg {
  opacity: 0.08;
  width: 80px;
  height: 80px;
  fill: #fff;
}

.featured-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.featured-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.featured-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
}

.featured-title a:hover { color: var(--orange); transition: color var(--ease); }

.featured-excerpt {
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.75;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.featured-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.featured-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.featured-author { font-size: 0.85rem; font-weight: 600; color: var(--black); }
.featured-dot    { color: var(--gray-light); font-size: 0.8rem; }
.featured-date   { font-size: 0.82rem; color: var(--gray); }
.featured-read   { font-size: 0.82rem; color: var(--gray); }

.featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: 0.25rem;
  transition: gap var(--ease);
}
.featured-link:hover { gap: 0.7rem; }
.featured-link svg { transition: transform var(--ease); }
.featured-link:hover svg { transform: translateX(3px); }

/* Divider */
.section-divider {
  width: 100%;
  max-width: var(--max-w);
  margin: 3rem auto 0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-divider-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   POST GRID
   ============================================ */
.posts-section {
  width: 100%;
  padding: 2.5rem 2rem 4rem;
}

.posts-grid-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Post Card */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  border-color: var(--gray-light);
}

.post-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-pale);
  position: relative;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.04); }

.no-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-pale) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.no-img svg { width: 40px; height: 40px; fill: var(--gray-light); }

.post-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.card-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--black);
}
.card-title a:hover { color: var(--orange); }

.card-excerpt {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.65;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.card-author-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.card-author-name { font-size: 0.78rem; font-weight: 600; color: var(--gray-dark); }
.card-date        { font-size: 0.75rem; color: var(--gray); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gray-dark);
  transition: all var(--ease);
}
.pagination-wrap .page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.pagination-wrap .page-numbers.current {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ============================================
   SINGLE POST
   ============================================ */
.post-hero {
  width: 100%;
  padding: 4rem 2rem 0;
}

.post-hero-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.post-hero-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
  display: inline-block;
}

.post-hero-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-hero-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.post-hero-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.post-hero-avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.post-hero-author-name { font-size: 0.88rem; font-weight: 600; color: var(--black); }
.post-hero-author-role { font-size: 0.75rem; color: var(--gray); }

.meta-sep { width: 1px; height: 16px; background: var(--border); }
.meta-item { font-size: 0.82rem; color: var(--gray); }

/* Featured image */
.post-feat-image {
  max-width: 860px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

.post-feat-image img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* Article content */
.post-content-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
}

.entry-content > * + * { margin-top: 1.4rem; }

.entry-content h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--black);
  line-height: 1.3;
  margin-top: 2.5rem;
}
.entry-content h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--black);
  margin-top: 2rem;
}

.entry-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #BF5718; }

.entry-content ul { margin-left: 1.5rem; list-style: disc; }
.entry-content ol { margin-left: 1.5rem; list-style: decimal; }
.entry-content li { margin-bottom: 0.4rem; }

.entry-content blockquote {
  border-left: 3px solid var(--orange);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy);
  background: #FAFAFA;
  border-radius: 0 6px 6px 0;
}
.entry-content blockquote p { margin: 0; }

.entry-content code {
  background: #F4F4F4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.entry-content pre {
  background: #1A1A1A;
  color: #E5E5E5;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
}
.entry-content pre code { background: none; color: inherit; }

.entry-content img { border-radius: 8px; margin: 1.5rem 0; }

/* Post Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-dark);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  transition: all var(--ease);
}
.post-tag:hover { border-color: var(--orange); color: var(--orange); }

/* Author Box */
.author-box {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--gray-pale);
}

.author-box-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-written-by {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.author-box-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.author-box-name a { color: var(--navy); }
.author-box-name a:hover { color: var(--orange); }

.author-box-bio {
  font-size: 0.88rem;
  color: var(--gray-dark);
  line-height: 1.65;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.comments-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2rem;
}

.comment-list { display: flex; flex-direction: column; gap: 1.5rem; }

.comment {
  display: flex;
  gap: 1rem;
}

.comment-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-ava-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-pale);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-dark);
  flex-shrink: 0;
}

.comment-bubble {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.comment-name { font-size: 0.88rem; font-weight: 700; color: var(--black); }
.comment-date { font-size: 0.78rem; color: var(--gray); }

.comment-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray-dark);
}

.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  margin-top: 0.5rem;
  cursor: pointer;
}

.children {
  margin-top: 1.2rem;
  margin-left: 3rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Comment form */
.comment-form-section { margin-top: 2.5rem; }

.comment-form-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
}

.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cf-field { display: flex; flex-direction: column; gap: 0.35rem; }

.cf-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-dark);
}
.cf-field label .req { color: var(--orange); }

.cf-field input,
.cf-field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--ease);
}
.cf-field input:focus,
.cf-field textarea:focus { border-color: var(--orange); }

.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-full { grid-column: 1 / -1; }

.cf-submit { margin-top: 1rem; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.btn-submit:hover { background: var(--orange); transform: translateY(-1px); }

/* ============================================
   ARCHIVE HEADER
   ============================================ */
.archive-header {
  width: 100%;
  padding: 3rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
}

.archive-header-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.archive-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.archive-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
}

.archive-desc { font-size: 0.95rem; color: var(--gray); margin-top: 0.5rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  width: 100%;
  background: #1E1E1E;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 2rem 0;
  margin-top: 2rem;
}

.footer-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Brand column */
.footer-brand-col {}

.footer-logo {
  margin-bottom: 1.2rem;
}
.footer-logo img { height: 80px; }

/* White text logo fallback — matches the xtechhub site logo style */
.footer-logo-text {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  max-width: 300px;
  margin-bottom: 1.5rem;
}

/* "Follow Us" label */
.footer-follow-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

/* Orange circular social icons — matches xTechHub main site */
.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.fsocial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: background var(--ease), transform var(--ease);
}
.fsocial:hover {
  background: #BF5718;
  transform: translateY(-2px);
}

/* Footer column headings */
.footer-col-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin-bottom: 1.2rem;
  letter-spacing: 0;
  text-transform: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li a,
.footer-links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
  font-weight: 400;
}
.footer-links li a:hover,
.footer-links a:hover { color: var(--orange); }

/* "See more" underline style */
.footer-links li:last-child a,
.footer-links a.see-more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gray);
}
.empty-state h2 { font-family: var(--serif); color: var(--black); margin-bottom: 0.5rem; font-size: 1.5rem; }

/* 404 */
.four-oh-four {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}
.fof-num {
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.12;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.fof-content { position: relative; }
.fof-title { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--black); margin-bottom: 0.75rem; }
.fof-desc { color: var(--gray); margin-bottom: 2rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.btn-primary:hover { background: #BF5718; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  border: 1px solid var(--border);
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  transition: all var(--ease);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* Reading progress bar */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: var(--orange);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .featured-card { grid-template-columns: 1fr; min-height: auto; }
  .featured-image { height: 280px; }
  .featured-no-image { min-height: 280px; }
  .featured-body { padding: 2rem; }
  .posts-grid-wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-wrap { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .header-nav  { display: none; }
  .header-right .header-login { display: none; }
  .header-right .header-signup { display: none; }
  .mobile-toggle { display: block; }
	
	

  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--white);
    z-index: 199;
    padding: 2rem;
    gap: 0;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .header-nav.open ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .header-nav.open a {
    font-size: 1.05rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    display: block;
    color: var(--navy);
  }
  /* Show Login + Sign Up in mobile menu */
  .header-nav.open::after {
    content: '';
    display: block;
    margin-top: 1.5rem;
  }

  .posts-grid-wrap { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .cf-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .post-hero { padding: 2.5rem 1.25rem 0; }
  .post-content-wrap { padding: 0 1.25rem 3rem; }
  .featured-section { padding: 2.5rem 1.25rem 0; }
  .posts-section { padding: 2rem 1.25rem 3rem; }
  .wrap { padding: 0 1.25rem; }
  .fsocial { width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .featured-body { padding: 1.5rem; }
  .featured-title { font-size: 1.4rem; }
  .header-wrap { padding: 0 1.25rem; }
  .search-bar { padding: 0.75rem 1.25rem; }
}
