/* =====================================================
   DEALSSPRINT — DESIGN SYSTEM
   Apple elegance × Wirecutter content × Linear UI
===================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  --bg: #071a2f;
  --bg-soft: #0d2745;
  --card: rgba(255, 255, 255, 0.06);
  --card-2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(56, 199, 194, 0.5);

  --blue: #1d6fe8;
  --blue-soft: rgba(29, 111, 232, 0.15);
  --accent: #38c7c2;
  --gold: #e8c36a;

  --text: #ffffff;
  --muted: #aab8c8;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: 'Inter', sans-serif;

  --radius: 26px;
  --radius-sm: 14px;
  --shadow-glow: 0 16px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow-hover: 0 20px 45px rgba(0, 0, 0, 0.25);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 10%, rgba(56, 199, 194, 0.22), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(29, 111, 232, 0.25), transparent 35%),
    linear-gradient(135deg, #071a2f 0%, #0d2745 45%, #050f1d 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.045em; }

::selection { background: var(--blue); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--card-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }


/* Also, update your variables so they are correct */
:root {
    /* ... keep your other variables as they are ... */
    --font-body: 'Inter', sans-serif;
    --font-head: 'Inter', sans-serif;
}

/* ---------- 3. LAYOUT / UTILITIES ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 70px 0; }
section.container { padding: 70px 24px; }

.mt-2 { margin-top: 40px; }
.mt-3 { margin-top: 70px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 4. HEADER / NAVIGATION ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(5, 8, 22, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.header.scrolled {
  background: rgba(5, 8, 22, 0.85);
  box-shadow: 0 10px 30px -15px rgba(59, 130, 246, 0.25), 0 1px 0 var(--border-hover);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.35s var(--ease);
}

.header.scrolled .nav-container { padding: 12px 24px; }

.logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}
.logo-blue { color: var(--blue); }
.logo-white { color: var(--text); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav a {
  position: relative;
  padding: 8px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav a:hover, .nav a.active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.10);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), width 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 14px;
  width: 150px;
  
  /* THE FINAL FIX: */
  margin: 0 !important; 
  /* 0 top/bottom, 8px right (to separate from button), 16px left (to move it off the wall) */
  padding: 0 8px 0 16px !important; 
  height: 32px; 
}
.search-box input::placeholder { color: var(--muted); }

.search-box button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease);
}
.search-box button:hover { background: var(--blue); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav, .search-box { display: none; }
  .nav-toggle { display: flex; }

  /* This forces the menu to sit below the header entirely */
  .nav.mobile-open {
    display: flex !important;
    position: absolute;
    top: 100%; /* Sits right at the bottom of your header */
    left: 0;
    right: 0;
    margin-top: 15px; /* Adds physical breathing room */
    background: rgba(5, 8, 22, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 15px;
    flex-direction: column;
    z-index: 999;
  }

  /* This fixes the search box behavior when it opens */
  .search-box.mobile-open {
    display: flex !important;
    position: absolute;
    top: 100%; 
    left: 12px;
    right: 12px;
    margin-top: 10px; /* Pushes search box down from the menu if they overlap */
    width: auto;
    z-index: 1000;
  }
}
/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero h1 {
  position: relative;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  background: linear-gradient(90deg, #ffffff, #9dece8, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 780px;
  margin: 0 auto 20px;
}

.hero p {
  position: relative;
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-search, .search-box-lg {
  position: relative;
  display: flex;
  align-items: center; /* Snaps them perfectly to the horizontal middle */
  max-width: 560px;
  margin: 0 auto;
  
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px; /* Uniform outer spacing */
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero-search:focus-within { 
  border-color: var(--border-hover); 
  box-shadow: 0 0 0 6px var(--blue-soft); 
}

.hero-search input {
  flex: 1;
  margin: 0 !important; /* The !important tag forces it to override Section 13 */
  
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  padding: 12px 20px;
}

.hero-search input::placeholder { color: var(--muted); }

.hero-search button {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 28px; /* FIX: Matches the 12px vertical padding of the input! */
  border-radius: 999px;
  transition: filter 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-search button:hover { 
  filter: brightness(1.1); 
  transform: translateY(-1px); 
}

.hero-tags {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-tags a {
  padding: 7px 16px;
  font-size: 13.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}
.hero-tags a:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--blue-soft);
  transform: translateY(-2px);
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }

.btn-secondary {
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #1a1200;
  box-shadow: 0 8px 24px -8px rgba(251, 191, 36, 0.5);
}
.btn-secondary:hover { transform: translateY(-2px); filter: brightness(1.06); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--border-hover); background: var(--blue-soft); }

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { filter: brightness(1.1); }

/* button ripple */
.btn::after {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1);
}
.btn:active::after {
  opacity: 1;
  animation: ripple 0.5s var(--ease);
}
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(40); opacity: 0; }
}

/* ---------- 7. CARDS (glass) ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-hover);
}

/* ---------- 8. FEATURED ARTICLE ---------- */
.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.featured-article:hover { border-color: var(--border-hover); box-shadow: var(--shadow-glow-hover); }

.featured-article img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.featured-article:hover img { transform: scale(1.04); }

.featured-article > div {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.featured-article h2 { font-size: 26px; line-height: 1.25; }
.featured-article p { color: var(--muted); }
.featured-article .btn { align-self: flex-start; }

/* ---------- 9. MAGAZINE / TRENDING CARDS ---------- */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trending-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.trending-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-hover);
}

.trending-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.trending-card:hover img { transform: scale(1.08); }

.trending-card .content { padding: 22px; }
.trending-card h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
  line-height: 1.35;
}
.trending-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 10. CATEGORIES ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.category-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px 16px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.category-box:hover {
  background: var(--blue-soft);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  color: var(--accent);
}



/* ---------- 11. PRODUCT CARDS ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow-hover);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.product-card h3 { font-size: 16px; margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }

.product-price {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #1a1200;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.stars { color: var(--gold); font-size: 13px; margin-bottom: 8px; }

/* ---------- 12. NEWSLETTER ---------- */
.newsletter {
  position: relative;
  text-align: center;
  padding: 60px 30px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(15, 23, 42, 0.4));
  border: 1px solid var(--border-hover);
  overflow: hidden;
}
.newsletter h2 { font-size: 28px; margin-bottom: 12px; }
.newsletter p { color: var(--muted); margin-bottom: 28px; }

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  outline: none;
}
.newsletter button {
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  color: #fff;
  font-weight: 600;
  transition: transform 0.25s var(--ease);
}
.newsletter button:hover { transform: translateY(-2px); }

/* ---------- 13. FORMS (contact / submit) ---------- */
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="search"],
form input[type="url"],
form textarea,
form select {
  width: 100%;
  padding: 13px 18px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
form input:focus, form textarea:focus, form select:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
form input::placeholder, form textarea::placeholder { color: var(--muted); }
form textarea { resize: vertical; min-height: 120px; }

/* ---------- 14. ARTICLE TYPOGRAPHY (injected content) ---------- */
.article-content { color: #d6dee8; font-size: 16.5px; }
.article-content h2 { font-size: 24px; margin: 34px 0 14px; color: var(--text); }
.article-content h3 { font-size: 19px; margin: 26px 0 12px; color: var(--text); }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 22px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.article-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 12px 20px;
  margin: 20px 0;
  color: var(--muted);
  font-style: italic;
  background: rgba(59, 130, 246, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content strong { color: var(--text); }

h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.container > section > p { color: var(--muted); }

/* ---------- 15. FOOTER ---------- */
footer {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-grid h3 { font-size: 16px; margin-bottom: 16px; }
.footer-grid p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-grid a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color 0.25s var(--ease);
}
.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- 16. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-article img { min-height: 220px; }
  .trending-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav, .search-box { display: none; }
  .nav-toggle { display: flex; }

  .nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 8, 22, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 4px;
  }
  .nav.mobile-open a { width: 100%; padding: 12px 16px; }

  .search-box.mobile-open {
    display: flex;
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    width: auto;
  }

  .trending-grid, .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  section { padding: 50px 0; }
  section.container { padding: 50px 24px; }
  .hero { padding: 80px 0 60px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}


.category-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:25px;
margin:50px 0;
}

.category-card{
background: var(--card);
border: 1px solid var(--border);
padding:30px;
border-radius: var(--radius);
box-shadow: var(--shadow-glow);
transition:all 0.3s var(--ease);
text-decoration:none;
color: var(--text);
}

.category-card:hover{
transform:translateY(-6px);
border-color: var(--border-hover);
background: var(--card-2);
}

.category-card h2{
margin-bottom:10px;
color: var(--text);
}

.category-link{
display:inline-block;
margin-top:20px;
font-weight:600;
color: var(--accent);
}

.article-image{
    width:100%;
    max-width:500px;
    display:block;
    margin:25px auto;
    border-radius:15px;
    transition:0.3s ease;
}

.article-image:hover{
    transform:scale(1.03);
}
@media (max-width: 760px) {
  /* Hide the desktop nav items */
  .nav, .search-box { display: none; }
  .nav-toggle { display: flex; }

  /* Style for the activated elements */
  .nav.mobile-open, .search-box.mobile-open {
    display: flex !important;
    position: fixed !important; /* Changed from absolute to fixed */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(5, 8, 22, 0.98);
    padding: 20px;
  }

  /* Force the Search Bar to the top of the viewport */
  .search-box.mobile-open {
    top: 60px; /* Position it just below your fixed header */
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Force the Nav to start below the search bar */
  .nav.mobile-open {
    top: 130px; /* 60px header + 70px search bar height */
    flex-direction: column;
    gap: 15px;
  }
}
/* Container */
.article-layout {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: start;
}

/* Unified Sticky Class for BOTH sidebars */
.sidebar-sticky {
    position: sticky;
    top: 100px; /* Adjust this to be slightly more than your header height */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* MOBILE FIX: Stack everything into one column */
@media (max-width: 1200px) {
    .article-layout {
        display: block; /* Removes grid, elements stack naturally */
    }

    .sidebar-sticky {
        display: none !important;
    }

    .article-body {
        width: 100%;
    }
}
/* This targets only the links inside your TOC card */
#toc-list a {
    color: #FFF;        /* Change this to your preferred text color */
    text-decoration: none; /* Keeps it clean */
    font-weight: 500;      /* Makes it easier to read */
    transition: color 0.3s ease;
}

/* This adds a nice effect when you hover over the links */
#toc-list a:hover {
    color: #FFF;        /* Changes to a highlight color on hover */
    text-decoration: underline;
}

/* This centers your page content and gives it "breathing room" */
.page-wrapper {
    max-width: 800px;         /* Keeps text from being too long/wide */
    margin: 40px auto;        /* Centers the container horizontally */
    padding: 0 20px;          /* Prevents text from hitting the screen edges on mobile */
    display: flex;
    flex-direction: column;
    gap: 30px;                /* Consistent spacing between paragraphs/headers */
}

/* If you still have boxes, remove the 'weird' borders */
.content-box {
    padding: 0;
    border: none;
    background: transparent;
}

/* Container: Still centered, but with tighter control */
.page-container {
    max-width: 700px;
    margin: 40px auto; /* Reduced from 60px */
    padding: 0 20px;
}

/* Sections: This is the fix for the "too far apart" feel */
section {
    margin-bottom: 40px; /* Tightened from 50px+ */
}

/* Headers: Tighter connection to the paragraph below */
h2 { 
    font-size: 1.6rem; 
    margin-top: 0px; 
    margin-bottom: 16px; 
}

/* Paragraphs: Tighter flow */
p { 
    margin-bottom: 10px; 
    line-height: 1.7; 
}
/* Lists */
ul {
    margin-bottom: 16px;
    padding-left: 20px;
}
/* Create a specific class for the page sections */
.portfolio-section {
    margin-bottom: 0 !important;
    padding-bottom: 0px !important; /* This creates a solid 50px of breathing room */
    border-bottom: 0 !important;
}

/* Optional: Add a very faint line if you want to visually separate them */
.portfolio-divider {
    border-top: 1px solid #eee;
    margin: 20px 0 50px 0;
}

/* ===========================
   LEGAL PAGES
=========================== */

.legal-page{
    max-width:900px;
    margin:60px auto;
    padding:0 20px;
}

.legal-card{
    background: transparent;
    padding:50px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.legal-card h1{
    font-size:42px;
    margin-bottom:10px;
}

.legal-card h2{
    margin-top:40px;
    margin-bottom:15px;
    font-size:28px;
}

.legal-card p{
    line-height:1.9;
    font-size:17px;
    color:#555;
    margin-bottom:20px;
}

.legal-card ul{
    margin:20px 0 20px 25px;
}

.legal-card li{
    margin-bottom:10px;
    line-height:1.8;
}

.last-updated{
    color:#888;
    margin-bottom:30px;
}

