/* =============================================
   THE DAILY SPARK — Magazine Edition
   Navy & Gold Premium Theme
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0f1923;
  --navy2:   #1a2a3a;
  --gold:    #d4a853;
  --gold2:   #f0c96e;
  --white:   #ffffff;
  --off:     #f8f7f4;
  --border:  #e5e1d8;
  --text:    #2a2a2a;
  --mid:     #666666;
  --light:   #999999;
  --head:    'Playfair Display', Georgia, serif;
  --body:    'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5 { font-family: var(--head); line-height: 1.25; color: var(--navy); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hide ads until AdSense approved */
.ad-slot { display: none !important; }

/* ============ TOP BAR ============ */
.top-bar {
  background: var(--navy);
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.4px;
  padding: 7px 0;
  text-align: center;
}
.top-bar a { color: var(--gold); font-weight: 500; }
.top-bar a:hover { text-decoration: underline; }

/* ============ HEADER ============ */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.logo {
  font-family: var(--head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}
.logo em { color: var(--gold); font-style: normal; }

/* ============ NAVIGATION ============ */
.main-nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.main-nav > li > a:hover,
.main-nav > li.active > a { background: #f0ede6; color: var(--navy); }
.arrow { font-size: 9px; display: inline-block; transition: transform 0.2s; }
.main-nav > li.open .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 20px;
  width: 700px;
  z-index: 9999;
}
.main-nav > li.open .dropdown { display: block; }
.dropdown-header {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--light); margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.dropdown-grid a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  transition: all 0.12s;
}
.dropdown-grid a:hover { background: #f8f4ec; color: var(--navy); }
.dropdown-grid a .dicon { font-size: 15px; flex-shrink: 0; }

/* Header right */
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-nav-sub {
  background: var(--gold);
  color: var(--navy);
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 13px; font-weight: 700;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-nav-sub:hover { background: var(--gold2); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--navy); line-height: 1; }

/* ============ HERO SECTION ============ */
.hero { background: var(--navy); padding: 56px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center; }
.hero-img-wrap { border-radius: 14px; overflow: hidden; height: 400px; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-label {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 2.4rem; line-height: 1.2;
  color: var(--white); margin-bottom: 16px;
}
.hero h1 a { color: var(--white); }
.hero h1 a:hover { color: var(--gold); }
.hero-excerpt { color: #b0bec5; font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }
.hero-meta { color: #607080; font-size: 13px; margin-bottom: 24px; }
.hero-meta span { margin-right: 12px; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  padding: 13px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  transition: all 0.2s;
}
.btn-hero:hover { background: var(--gold2); transform: translateY(-1px); }

/* ============ CATEGORY PILL STRIP ============ */
.cat-strip { border-bottom: 1px solid var(--border); background: var(--white); overflow-x: auto; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-inner { display: flex; gap: 4px; padding: 12px 0; white-space: nowrap; }
.cpill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  color: var(--mid); background: var(--off);
  border: 1.5px solid transparent;
  transition: all 0.15s; white-space: nowrap;
  flex-shrink: 0;
}
.cpill:hover { border-color: var(--gold); color: var(--navy); background: #fdf8ee; }

/* ============ MAIN LAYOUT ============ */
.main-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 56px; padding: 52px 0 80px; align-items: start; }

/* ============ SECTION TITLES ============ */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.sec-head::before {
  content: '';
  display: inline-block;
  width: 4px; height: 20px;
  background: var(--gold);
  border-radius: 2px;
  margin-right: 10px;
}
.sec-title { font-size: 1.15rem; color: var(--navy); display: flex; align-items: center; }
.sec-link { font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; }
.sec-link:hover { text-decoration: underline; }

/* ============ POST CARDS ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }

.card-img {
  width: 100%; height: 200px;
  overflow: hidden; flex-shrink: 0;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card:hover .card-img img { transform: scale(1.05); }

.card-img-lg { height: 240px; }

.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold); margin-bottom: 8px;
  display: block;
}
.card-title { font-size: 1rem; line-height: 1.4; color: var(--navy); margin-bottom: 8px; }
.card-title a:hover { color: var(--gold); }
.card-title-lg { font-size: 1.15rem; }
.card-excerpt { font-size: 13px; color: var(--mid); line-height: 1.6; margin-bottom: 12px; flex: 1; }
.card-meta { font-size: 11px; color: var(--light); margin-top: auto; }

/* Horizontal list card */
.hcard {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.hcard:last-child { border-bottom: none; }
.hcard-img { width: 90px; height: 70px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.hcard-img img { width: 100%; height: 100%; object-fit: cover; }
.hcard-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); display: block; margin-bottom: 4px; }
.hcard-title { font-size: 13px; font-family: var(--head); color: var(--navy); line-height: 1.4; }
.hcard-title a:hover { color: var(--gold); }
.hcard-meta { font-size: 11px; color: var(--light); margin-top: 4px; }

/* ============ SIDEBAR ============ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.widget-head {
  background: var(--navy); color: var(--gold);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 10px 18px;
}
.widget-body { padding: 18px; }

/* Newsletter */
.w-newsletter { background: var(--navy); border-color: var(--navy); }
.w-newsletter .widget-body { padding: 24px; }
.w-newsletter h3 { font-family: var(--head); font-size: 1.2rem; color: var(--white); margin-bottom: 8px; }
.w-newsletter p { font-size: 13px; color: #7a8fa0; margin-bottom: 16px; line-height: 1.6; }
.w-newsletter input {
  width: 100%; padding: 11px 14px;
  border-radius: 7px; border: 1px solid #2a3a4a;
  font-size: 14px; background: #162030;
  color: var(--white); font-family: var(--body);
  margin-bottom: 10px;
}
.w-newsletter input::placeholder { color: #456; }
.w-newsletter button {
  width: 100%; background: var(--gold); color: var(--navy);
  border: none; padding: 12px; border-radius: 7px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: var(--body);
  transition: background 0.15s;
}
.w-newsletter button:hover { background: var(--gold2); }
.w-newsletter .note { font-size: 11px; color: #456; margin-top: 8px; }

/* Popular posts widget */
.pop-list { list-style: none; }
.pop-list li { border-bottom: 1px solid var(--border); }
.pop-list li:last-child { border-bottom: none; }
.pop-list a { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; }
.pop-list a:hover .pop-title { color: var(--gold); }
.pop-num { font-family: var(--head); font-size: 1.5rem; color: var(--border); font-weight: 700; flex-shrink: 0; line-height: 1; min-width: 28px; }
.pop-info { flex: 1; }
.pop-tag { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); display: block; margin-bottom: 2px; }
.pop-title { font-size: 12px; font-family: var(--head); color: var(--navy); line-height: 1.4; transition: color 0.15s; }

/* Categories widget */
.cat-widget-list { list-style: none; }
.cat-widget-list li { border-bottom: 1px solid var(--border); }
.cat-widget-list li:last-child { border-bottom: none; }
.cat-widget-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; font-size: 13px; color: var(--text);
  transition: color 0.15s;
}
.cat-widget-list a:hover { color: var(--gold); }
.cat-badge {
  background: var(--off); color: var(--light);
  font-size: 10px; padding: 2px 8px; border-radius: 10px;
}

/* ============ FEATURED CATEGORIES GRID ============ */
.feat-cats { padding: 56px 0; background: var(--off); }
.cats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 28px; }
.cat-tile {
  position: relative; border-radius: 12px; overflow: hidden;
  height: 160px; cursor: pointer;
  background: var(--navy2);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: all 0.35s; }
.cat-tile:hover img { opacity: 0.5; transform: scale(1.06); }
.cat-tile-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,20,30,0.9) 0%, transparent 100%);
  padding: 20px 14px 12px;
  color: var(--white); font-size: 13px; font-weight: 600;
  font-family: var(--head);
}
.cat-tile-label span { font-size: 16px; display: block; margin-bottom: 2px; }

/* ============ AFFILIATE SECTION ============ */
.aff-section { padding: 56px 0; background: var(--white); border-top: 1px solid var(--border); }
.aff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 28px; }
.aff-card {
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 24px; text-align: center;
  transition: all 0.2s; background: var(--off);
}
.aff-card:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.07); transform: translateY(-2px); }
.aff-icon { font-size: 32px; margin-bottom: 10px; }
.aff-card h4 { font-size: 0.9rem; margin-bottom: 8px; color: var(--navy); }
.aff-card p { font-size: 12px; color: var(--mid); margin-bottom: 16px; line-height: 1.5; }
.btn-aff {
  display: inline-block; background: var(--navy); color: var(--white);
  padding: 8px 18px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  transition: background 0.15s;
}
.btn-aff:hover { background: var(--gold); color: var(--navy); }

/* ============ POST PAGE ============ */
.post-banner { background: var(--navy); padding: 52px 0 0; }
.post-banner-inner { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.post-label {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 2px; padding: 5px 12px; border-radius: 20px; margin-bottom: 16px;
}
.post-banner h1 { font-size: 2.3rem; line-height: 1.25; color: var(--white); margin-bottom: 16px; }
.post-banner .post-sub { font-size: 1.05rem; color: #8090a0; margin-bottom: 20px; line-height: 1.7; }
.post-banner .pmeta { font-size: 13px; color: #4a6070; padding-bottom: 36px; display: flex; gap: 16px; align-items: center; }
.pmeta-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.post-feat-img { max-width: 900px; margin: 0 auto; height: 420px; border-radius: 0 0 16px 16px; overflow: hidden; }
.post-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.post-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 56px; max-width: 1200px; margin: 52px auto; padding: 0 24px; align-items: start; }
.post-body { max-width: 700px; min-height: 600px; }
.post-body p { margin-bottom: 1.6rem; font-size: 1.05rem; color: #333; line-height: 1.9; }
.post-body h2 { font-size: 1.65rem; margin: 2.4rem 0 1rem; color: var(--navy); border-left: 4px solid var(--gold); padding-left: 16px; }
.post-body h3 { font-size: 1.25rem; margin: 1.8rem 0 0.75rem; color: var(--navy); }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.6rem; }
.post-body li { margin-bottom: 0.6rem; font-size: 1.05rem; color: #333; line-height: 1.7; }
.post-body blockquote {
  border-left: 4px solid var(--gold); padding: 20px 28px;
  background: #fdf8ef; margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--mid); font-size: 1.05rem;
  font-family: var(--head);
}
.aff-box {
  background: #fdf8ef; border: 1.5px solid #e8d0a0;
  border-radius: 12px; padding: 24px; margin: 2rem 0;
}
.aff-box-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 10px; display: block; }
.aff-box p { margin-bottom: 12px; font-weight: 500; font-size: 1rem !important; }
.aff-box a { display: inline-block; background: var(--navy); color: var(--white); padding: 9px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; transition: background 0.15s; }
.aff-box a:hover { background: var(--gold); color: var(--navy); }

/* ============ CATEGORY PAGE ============ */
.cat-banner { background: var(--navy); padding: 56px 0; text-align: center; }
.cat-banner h1 { font-size: 2.8rem; color: var(--white); margin-bottom: 10px; }
.cat-banner p { color: #7a8fa0; font-size: 1rem; }
.cat-banner .cat-badge-lg { display: inline-block; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 20px; margin-top: 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 52px 0 80px; }

/* ============ STATIC PAGES ============ */
.page-banner { background: var(--navy); padding: 64px 0; text-align: center; }
.page-banner h1 { font-size: 2.6rem; color: var(--white); margin-bottom: 12px; }
.page-banner p { color: #7a8fa0; max-width: 540px; margin: 0 auto; }
.page-body { max-width: 760px; margin: 52px auto; padding: 0 24px 80px; }
.page-body p { margin-bottom: 1.5rem; font-size: 1.05rem; color: #333; line-height: 1.85; }
.page-body h2 { font-size: 1.4rem; margin: 2rem 0 1rem; color: var(--navy); }
.contact-card { background: var(--off); border: 1px solid var(--border); border-radius: 16px; padding: 40px; margin-top: 32px; }
.fg { margin-bottom: 20px; }
.fg label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.fg input, .fg textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: var(--body);
  color: var(--text); background: var(--white);
  transition: border-color 0.15s;
}
.fg input:focus, .fg textarea:focus { outline: none; border-color: var(--gold); }
.fg textarea { height: 150px; resize: vertical; }
.btn-send { background: var(--navy); color: var(--white); border: none; padding: 13px 36px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--body); transition: background 0.15s; }
.btn-send:hover { background: var(--gold); color: var(--navy); }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: #607080; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: var(--white); display: block; margin-bottom: 12px; font-size: 1.4rem; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 220px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #607080; transition: all 0.15s; }
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-col h5 { font-family: var(--body); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: #607080; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #3a5060; }
.footer-bottom a { color: #456070; }
.footer-bottom a:hover { color: var(--gold); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .main-wrap { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
  .aff-grid { grid-template-columns: 1fr 1fr; }
  .dropdown { width: 500px; }
  .dropdown-grid { grid-template-columns: repeat(4, 1fr); }
  .post-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-right .btn-nav-sub { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 0;
    overflow-y: auto; z-index: 9998; gap: 0;
    border-top: 1px solid var(--border);
  }
  .main-nav.open > li > a { padding: 16px 24px; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 15px; }
  .dropdown { position: static; transform: none; box-shadow: none; border: none; border-radius: 0; border-top: 1px solid var(--border); width: 100%; padding: 12px 24px; display: none; }
  .main-nav.open > li.open .dropdown { display: block; }
  .dropdown-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .sidebar { grid-template-columns: 1fr; }
  .aff-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .aff-grid { grid-template-columns: 1fr; }
  .dropdown-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.6rem; }
  .post-banner h1 { font-size: 1.7rem; }
}
