/* ============================================================
   SaqiVFX — modern theme (Inter, light background, charcoal
   sticky header, red accent #e74c3c, rounded cards)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #e74c3c;
  --red-dark: #c93a2b;
  --ink: #141519;
  --ink-2: #1d1e24;
  --text: #2e3238;
  --muted: #7a828e;
  --line: #e7eaee;
  --bg: #f5f6f8;
  --card: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.05), 0 6px 18px rgba(16,24,40,0.06);
  --shadow-lg: 0 2px 4px rgba(16,24,40,0.06), 0 20px 44px rgba(16,24,40,0.14);
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  font-family: "Inter", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
}

a { color: var(--text); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: "Inter", sans-serif; color: var(--ink); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header (dark charcoal, sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(180deg, #1a1b20, #121317);
  box-shadow: 0 10px 30px rgba(10,10,15,0.28);
}
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0 2px;
}
.site-logo { line-height: 1; }
.site-logo a { display: inline-block; }
.site-tagline {
  margin-left: auto;
  color: #aeb4c0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-align: right;
}

/* ---------- Nav ---------- */
.nav-wrap { position: relative; }
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 0 12px;
}
.main-nav > a, .main-nav .dropbtn {
  color: #e8eaee;
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 10px 14px;
  display: inline-block;
  border-radius: 10px;
  transition: background 0.18s ease, color 0.18s ease;
}
.main-nav > a:hover, .main-nav .dropbtn:hover { background: var(--red); color: #fff; }
.main-nav .dropdown { position: relative; }
.main-nav .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 6px); left: 0;
  background: #ffffff;
  min-width: 240px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 1001;
}
.main-nav .dropdown-content a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  text-transform: none;
  font-weight: 500;
  border-radius: 8px;
}
.main-nav .dropdown-content a:hover { background: #fdf0ee; color: var(--red); }
.main-nav .dropdown:hover .dropdown-content { display: block; }
.nav-search { margin-left: auto; display: flex; align-items: center; }
.nav-search-toggle {
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 17px; padding: 10px 13px;
  border-radius: 10px; font-family: "Inter", sans-serif;
}
.nav-search-toggle:hover { background: rgba(255,255,255,0.1); }
.nav-search-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(440px, 92vw);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px;
  z-index: 1002;
}
.nav-search-box.open { display: block; }
.nav-search-box form { display: flex; gap: 8px; }
.nav-search-box input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px; font-family: "Inter", sans-serif;
  color: var(--ink);
}
.nav-search-box input:focus { outline: 2px solid rgba(231,76,60,0.35); border-color: var(--red); }
.hamburger {
  display: none;
  background: none; border: none; color: #fff;
  font-size: 22px; padding: 10px 6px; cursor: pointer;
}

/* ---------- Hero (homepage) ---------- */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(118deg, #141519 0%, #251016 52%, #5c1d13 100%);
  color: #ffffff;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 58px;
  text-align: center;
}
.hero-title {
  color: #ffffff;
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
}
.hero-title::after {
  content: "";
  display: block;
  width: 64px; height: 5px;
  background: var(--red);
  border-radius: 3px;
  margin: 16px auto 0;
}
.hero-tagline {
  font-size: 18.5px;
  font-weight: 500;
  color: #ecd9d5;
  margin: 16px auto 26px;
}
.hero-search {
  display: flex;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto;
  background: #ffffff;
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.hero-search input {
  flex: 1; min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 18px;
  font-size: 15px; font-family: "Inter", sans-serif;
  color: var(--ink);
  border-radius: 999px;
}
.hero-search input:focus { outline: none; }
.hero-search .search-btn { border-radius: 999px; padding: 12px 26px; }

/* ---------- Layout ---------- */
.content-wrap {
  display: flex;
  gap: 36px;
  padding: 34px 0 12px;
}
.main-col { flex: 1 1 auto; min-width: 0; }
.main-col > h2 { font-weight: 800; letter-spacing: -0.3px; }
.sidebar { flex: 0 0 300px; width: 300px; }

/* ---------- Post grid & cards ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.post-card {
  background: var(--card);
  border: 1px solid rgba(16,24,40,0.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
}
.cat-label {
  display: inline-flex;
  align-self: flex-start;
  background: var(--red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 14px 0 10px;
}
.cat-label a { color: #ffffff; }
.cat-label a:hover { color: #ffffff; }
.post-card h3, .post-card h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}
.post-card h3 a, .post-card h2 a { color: var(--ink); }
.post-card h3 a:hover, .post-card h2 a:hover { color: var(--red); }
.meta { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--red); }
.excerpt {
  font-size: 14.5px;
  color: #565d66;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.read-more {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 19px;
  border-radius: 999px;
  transition: background 0.18s ease;
}
.read-more:hover { background: var(--ink); color: #fff !important; }
.no-results {
  grid-column: 1 / -1;
  padding: 26px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex; gap: 8px; justify-content: center;
  margin: 38px 0 8px;
}
.pagination a, .pagination span {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 17px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Sidebar ---------- */
.widget {
  background: var(--card);
  border: 1px solid rgba(16,24,40,0.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 24px;
}
.widget-title {
  font-size: 15px; font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.widget-title::before {
  content: "";
  width: 4px; height: 18px;
  background: var(--red);
  border-radius: 2px;
  flex: 0 0 4px;
}
.widget ul { list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid #f0f2f4; font-size: 14px; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a:hover { color: var(--red); }
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; min-width: 0;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px; font-family: "Inter", sans-serif;
  color: var(--ink);
}
.search-form input:focus { outline: 2px solid rgba(231,76,60,0.35); border-color: var(--red); }
.search-btn {
  background: var(--red); color: #fff; border: none;
  padding: 10px 17px; font-weight: 600; font-size: 13.5px;
  border-radius: 10px; cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.18s ease;
}
.search-btn:hover { background: var(--ink); }
.recent-posts li { display: flex; gap: 11px; align-items: flex-start; }
.recent-posts img { width: 64px; height: 44px; object-fit: cover; flex: 0 0 64px; border-radius: 8px; }
.recent-posts .rp-title { font-size: 13.5px; line-height: 1.35; font-weight: 600; }
.recent-posts .rp-date { font-size: 11.5px; color: var(--muted); }

/* ---------- Single post ---------- */
.single-post {
  background: var(--card);
  border: 1px solid rgba(16,24,40,0.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px 34px;
}
.single-post .cat-label { margin: 0 0 14px; }
.single-post h1 {
  font-size: 34px; line-height: 1.2;
  font-weight: 800; letter-spacing: -0.5px;
  color: var(--ink); margin: 0 0 10px;
}
.single-post .featured {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 14px; margin: 18px 0 22px;
}
.post-body { font-size: 17px; line-height: 1.75; color: #33383f; }
.post-body h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.3px; margin: 28px 0 10px; color: var(--ink); }
.post-body h4 { font-size: 18.5px; font-weight: 700; margin: 20px 0 8px; color: var(--ink); }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px 22px; }
.post-body li { margin-bottom: 7px; }
.post-body strong { color: var(--ink); }
.download-btn {
  display: inline-block;
  background: linear-gradient(90deg, #e84393, #d63031);
  color: #fff !important;
  padding: 13px 46px;
  border-radius: 999px;
  font-weight: 700; font-size: 16px;
  font-family: "Inter", sans-serif;
  margin: 12px 0 20px;
}
.download-wrap { text-align: center; }
.download-btn:hover { opacity: 0.9; color: #fff !important; }

/* share buttons */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.share-btn {
  color: #fff !important; font-size: 12.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  transition: opacity 0.18s ease;
}
.share-btn.fb { background: #3b5998; }
.share-btn.x { background: #000000; }
.share-btn.pin { background: #bd081c; }
.share-btn.in { background: #0077b5; }
.share-btn:hover { opacity: 0.85; }

/* related posts */
.related { margin-top: 36px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-grid > div {
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-grid > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.related-grid img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.related-grid h4 { font-size: 14.5px; line-height: 1.35; padding: 10px 14px 14px; }
.related-grid h4 a { color: var(--ink); }
.related-grid h4 a:hover { color: var(--red); }

/* author box */
.author-box {
  display: flex; gap: 16px;
  background: #f8f9fa;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px; margin-top: 30px; align-items: flex-start;
}
.author-box .avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--red); color: #fff; flex: 0 0 68px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Inter", sans-serif; font-weight: 800; font-size: 28px;
}
.author-box h4 { font-size: 16px; margin-bottom: 4px; }
.author-box p { font-size: 13.5px; color: #555c64; }
.author-box a { color: var(--red); font-size: 13px; font-weight: 600; }

/* comment / contact form */
.reply-form { margin-top: 30px; }
.reply-form label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; color: var(--ink); }
.reply-form input, .reply-form textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: #ffffff;
}
.reply-form input:focus, .reply-form textarea:focus { outline: 2px solid rgba(231,76,60,0.35); border-color: var(--red); }
.reply-form .submit-btn {
  background: var(--red); color: #fff; border: none; cursor: pointer;
  padding: 12px 24px; font-weight: 600; font-size: 13.5px;
  border-radius: 999px; margin-top: 16px; width: auto;
  font-family: "Inter", sans-serif;
  transition: background 0.18s ease;
}
.reply-form .submit-btn:hover { background: var(--ink); }
.form-note { font-size: 12.5px; color: var(--muted); }

/* static pages */
.main-col:has(> .page-title) {
  background: var(--card);
  border: 1px solid rgba(16,24,40,0.04);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px 34px;
}
.page-body { font-size: 16px; line-height: 1.7; color: #33383f; }
.page-body h3 { font-size: 20px; font-weight: 800; margin: 20px 0 8px; color: var(--ink); }
.page-body p { margin-bottom: 13px; }
.page-body ul { margin: 0 0 13px 22px; }
.page-title { font-size: 30px; font-weight: 800; letter-spacing: -0.4px; color: var(--ink); margin-bottom: 14px; }

/* ---------- Footer (dark charcoal, 3 columns) ---------- */
.site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 48px;
  background: #121317;
  color: #c7ccd4;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 24px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-logo { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; color: #ffffff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.65; color: #9aa1ac; max-width: 350px; }
.footer-title { color: #ffffff; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; font-size: 14px; }
.footer-col ul li a { color: #c7ccd4; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  margin-top: 38px;
  padding: 18px 0;
  font-size: 13px;
  color: #8b919b;
  text-align: center;
}

/* ---------- Ad slots (placeholders — replaced by real AdSense units after approval) ---------- */
.ad-slot {
  background: #eef0f3;
  border: 1px dashed #c9ced6;
  border-radius: 12px;
  color: #999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  font-family: "Inter", sans-serif;
}
.ad-slot .ad-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.ad-slot .ad-size { font-size: 12px; }
.ad-leaderboard { height: 90px; margin: 22px 0 0; }
.ad-rectangle { height: 250px; }
.ad-incontent { height: 120px; margin: 22px 0; }
.ad-widget { padding: 12px; }
@media (max-width: 900px) {
  .ad-leaderboard { height: 60px; margin: 16px 0 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .posts-grid { gap: 20px; }
  .content-wrap { gap: 26px; }
}
@media (max-width: 900px) {
  .content-wrap { flex-direction: column; padding: 24px 0 8px; }
  .sidebar { flex: 1 1 auto; width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .single-post { padding: 24px 20px 26px; }
  .main-col:has(> .page-title) { padding: 24px 20px 26px; }
  .single-post h1 { font-size: 27px; }
  .post-body { font-size: 16px; }
  .site-tagline { display: none; }
  .hero-inner { padding: 40px 20px 44px; }
  .hero-title { font-size: 34px; }
  .hero-tagline { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .header-top { padding: 12px 0 0; }
  .posts-grid { grid-template-columns: 1fr; }
  .hamburger { display: block; }
  .main-nav { display: none; flex-direction: column; align-items: stretch; padding: 4px 0 12px; }
  .main-nav.open { display: flex; }
  .main-nav > a, .main-nav .dropbtn { display: block; border-top: 1px solid rgba(255,255,255,0.07); border-radius: 0; }
  .main-nav .dropdown-content { position: static; box-shadow: none; border-radius: 0; }
  .nav-search { margin-left: 0; }
  .nav-search-box { position: static; width: 100%; margin-top: 8px; box-shadow: var(--shadow-sm); }
  .hero-search { flex-direction: column; border-radius: 20px; padding: 8px; }
  .hero-search input { padding: 12px 14px; }
  .hero-search .search-btn { border-radius: 12px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-inner { padding-top: 36px; }
}

/* SaqiVFX logo image (added 15 Nov) — white chip so the logo reads on the dark header */
.site-logo-img {
  height: 46px; width: auto; display: block;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px 12px;
}
@media (max-width: 600px) { .site-logo-img { height: 38px; } }
