/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ===== VARIABLES — Dark Navy + White ===== */
:root {
  --primary:       #0b1120;
  --primary-light: #131e30;
  --primary-mid:   #1a2740;
  --accent:        #0b1120;
  --accent-light:  #ffffff;
  --accent-dark:   #0b1120;
  --accent-glow:   rgba(255,255,255,0.08);
  --bg:            #ffffff;
  --bg2:           #f5f6f8;
  --card:          #ffffff;
  --text:          #0b1120;
  --text-muted:    #4a5568;
  --text-light:    #8896a8;
  --border:        #e2e6ec;
  --shadow-sm:     0 1px 3px rgba(11,17,32,0.06);
  --shadow:        0 4px 16px rgba(11,17,32,0.08);
  --shadow-lg:     0 16px 48px rgba(11,17,32,0.12);
  --shadow-xl:     0 24px 64px rgba(11,17,32,0.16);
  --radius-xs:     6px;
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     24px;
  --font:          'Outfit', sans-serif;
  --transition:    all 0.22s cubic-bezier(0.4,0,0.2,1);
  --navy:          #0b1120;
  --navy-light:    #131e30;
  --navy-mid:      #1a2740;
  --white:         #ffffff;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 60px; display: flex; align-items: center; padding: 0 2.5rem;
  background: #0b1120;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.5); }

/* Three-column: logo | links (center) | spacer */
.nav-inner {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* Logo — left */
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 0.88rem; color: #fff;
  letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; justify-self: start;
}
.nav-logo .logo-img {
  width: 26px; height: 26px; object-fit: contain;
  transition: transform 0.3s ease;
}
.nav-logo:hover .logo-img { transform: scale(1.1); }
.nav-logo .logo-accent { color: rgba(255,255,255,0.55); }

/* Links — center */
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; justify-self: center;
}
.nav-links a {
  padding: 0.4rem 1rem;
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  position: relative; display: block;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 700; }
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2.5px; background: #fff; border-radius: 2px;
}

/* Right spacer (keeps links centered) */
.nav-cta-wrap { justify-self: end; display: flex; align-items: center; }
.btn-nav-cta { display: none; } /* hidden — no CTA button in this style */

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: none;
  padding: 6px; cursor: pointer; flex-direction: column;
  gap: 5px; z-index: 1001;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.7); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--primary);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(99,102,241,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(99,102,241,0.08) 0%, transparent 60%);
}
.hero-noise {
  position: absolute; inset: 0; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 8rem 2rem 6rem;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7); padding: 5px 14px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow span { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800;
  color: #fff; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.4rem;
}
.hero h1 .line2 { color: rgba(255,255,255,0.65); }
.hero-desc { font-size: 1.05rem; color: #9ca3af; line-height: 1.8; margin-bottom: 2.5rem; max-width: 460px; font-weight: 400; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; align-items: center; gap: 2rem; }
.hero-stat .num { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.hero-stat .lbl { font-size: 0.75rem; color: #6b7280; font-weight: 500; margin-top: 3px; }

/* Hero right — feature cards */
.hero-right { display: flex; flex-direction: column; gap: 0.75rem; }
.hero-feat {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}
.hero-feat:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); transform: translateX(4px); }
.hero-feat-icon { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.fi-indigo { background: rgba(255,255,255,0.1); }
.fi-violet { background: rgba(255,255,255,0.08); }
.fi-emerald { background: rgba(255,255,255,0.1); }
.fi-amber { background: rgba(255,255,255,0.08); }
.hero-feat-title { font-weight: 600; color: #f9fafb; font-size: 0.9rem; }
.hero-feat-sub { font-size: 0.78rem; color: #6b7280; margin-top: 1px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 0.65rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; border: none; transition: var(--transition); cursor: pointer; font-family: var(--font); letter-spacing: 0.01em; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,17,32,0.3); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.btn-outline-dark { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--navy); color: var(--navy); background: var(--bg2); }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }

/* ===== SECTION ===== */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 2.5rem; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.section-title { font-size: 2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-bottom: 0.5rem; line-height: 1.2; }
.section-subtitle { color: var(--text-muted); font-size: 0.95rem; max-width: 480px; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(99,102,241,0.2); }
.card-thumb { height: 180px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; position: relative; overflow: hidden; }
.card-thumb-gradient { background: linear-gradient(135deg, #111827 0%, #1f2937 100%); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.7rem; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tag-indigo { background: #eef2ff; color: #4338ca; }
.tag-amber { background: #fffbeb; color: #92400e; }
.tag-green { background: #ecfdf5; color: #065f46; }
.tag-blue { background: #eff6ff; color: #1d4ed8; }
.tag-purple { background: #faf5ff; color: #6b21a8; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; line-height: 1.4; letter-spacing: -0.01em; }
.card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.card-footer { padding: 0.9rem 1.25rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-meta { font-size: 0.78rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }

/* ===== PAGE HERO ===== */
.page-hero { background: var(--primary); padding: 7rem 2rem 4rem; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(99,102,241,0.15) 0%, transparent 70%); }
.page-hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 { font-size: 2.6rem; font-weight: 800; color: #fff; margin-bottom: 0.8rem; letter-spacing: -0.03em; }
.page-hero p { color: #9ca3af; font-size: 1rem; }

/* ===== SEARCH & FILTERS ===== */
.search-filter-bar { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.search-wrap { position: relative; margin-bottom: 1rem; }
.search-wrap input { width: 100%; padding: 0.7rem 1rem 0.7rem 2.8rem; border: 1.5px solid var(--border); border-radius: 50px; font-size: 0.9rem; font-family: var(--font); outline: none; transition: var(--transition); background: var(--bg); color: var(--text); }
.search-wrap input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-glow); }
.search-wrap .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.9rem; }
.filter-row { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.filter-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 0.2rem; }
.filter-chip { padding: 0.3rem 0.9rem; border-radius: 50px; border: 1.5px solid var(--border); background: #fff; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: var(--transition); font-family: var(--font); }
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== NOTES LAYOUT ===== */
.notes-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
.notes-sidebar { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.1rem; position: sticky; top: 82px; box-shadow: var(--shadow-sm); }
.sidebar-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.7rem; padding: 0 0.3rem; }
.sidebar-item { padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-muted); cursor: pointer; transition: var(--transition); font-weight: 500; }
.sidebar-item:hover { background: var(--bg2); color: var(--text); }
.sidebar-item.active { background: var(--accent); color: #fff; font-weight: 600; }

/* ===== BLOG POST ===== */
.post-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.post-cover { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.post-header { margin-bottom: 2rem; }
.post-header h1 { font-size: 2.2rem; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; }
.post-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--text-muted); font-size: 0.85rem; }
.post-meta span { display: flex; align-items: center; gap: 5px; }
.post-content { font-size: 1.02rem; line-height: 1.85; color: #374151; }
.post-content h2 { font-size: 1.5rem; color: var(--text); margin: 2.5rem 0 1rem; font-weight: 700; letter-spacing: -0.02em; }
.post-content h3 { font-size: 1.15rem; color: var(--text); margin: 2rem 0 0.8rem; font-weight: 700; }
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 0.8rem 0 1.2rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote { border-left: 3px solid var(--accent); padding: 1rem 1.5rem; background: #fafafa; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; font-style: italic; color: var(--text-muted); }
.post-content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.post-content pre { background: #0f172a; color: #e2e8f0; padding: 1.5rem; border-radius: var(--radius-sm); overflow-x: auto; margin: 1.5rem 0; font-size: 0.88rem; }
.post-sidebar { position: sticky; top: 82px; }
.post-sidebar-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.4rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.post-sidebar-card h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 1rem; }

/* ===== MEDIA ===== */
.media-player { background: #000; border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.media-player video { width: 100%; display: block; }
.audio-player { background: linear-gradient(135deg, var(--primary), #1f2937); border-radius: var(--radius); padding: 2rem; text-align: center; }
.audio-player .audio-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.audio-player .audio-title { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.audio-player audio { width: 100%; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 2000; overflow-y: auto; backdrop-filter: blur(6px); padding: 2rem; }
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal { background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 900px; overflow: hidden; box-shadow: var(--shadow-xl); animation: modalIn 0.28s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { background: var(--primary); color: #fff; padding: 1.4rem 1.75rem; display: flex; align-items: center; justify-content: space-between; }
.modal-header h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.modal-close { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 30px; height: 30px; border-radius: 7px; font-size: 0.9rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,0.2); }
.modal-body { padding: 1.75rem; }
.modal-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.modal-meta span { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.pdf-viewer { width: 100%; height: 600px; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary); color: #6b7280; padding: 4rem 2rem 2rem; }
.site-footer .footer-inner { max-width: 1200px; margin: 0 auto; }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }

.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; color: #f9fafb; margin-bottom: 0.75rem; }
.footer-logo img { width: 30px; height: 30px; border-radius: 7px; }
.footer-tagline { font-size: 0.84rem; color: #6b7280; line-height: 1.6; max-width: 220px; margin-bottom: 1.2rem; }

.footer-socials { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-social-link {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; transition: all 0.2s;
}
.footer-social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-social-link svg { width: 16px; height: 16px; }

.footer-contacts { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact-item { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: #6b7280; }
.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; color: #4b5563; }
.footer-contact-item a { color: var(--accent-light); }
.footer-contact-item a:hover { text-decoration: underline; }

.footer-col h4 { color: #d1d5db; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { font-size: 0.84rem; color: #6b7280; transition: color 0.2s; display: inline-flex; align-items: center; gap: 7px; }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-col ul li a svg { width: 14px; height: 14px; flex-shrink: 0; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: #4b5563; }
.footer-built { color: #374151; }

@media (max-width: 1024px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-footer .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-tagline { max-width: 100%; } }

/* ===== LOADING & EMPTY ===== */
.loading-state { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4rem; color: var(--text-muted); font-size: 0.9rem; }
.spinner { width: 24px; height: 24px; border: 2.5px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-right { display: none; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 1.25rem; }
  /* Switch from 3-col to 2-col: logo | toggle */
  .nav-inner { grid-template-columns: 1fr auto; }

  /* Nav links become fullscreen overlay */
  .nav-links {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: #0d1117;
    padding: 5rem 1.5rem 2rem; gap: 0.2rem;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease; z-index: 999;
    justify-self: unset; list-style: none;
  }
  .nav-links.open { opacity: 1; pointer-events: all; transform: translateY(0); }
  .nav-links a { font-size: 1.05rem; padding: 0.75rem 1rem; color: rgba(255,255,255,0.6); }
  .nav-links a:hover, .nav-links a.active { color: #fff; }
  .nav-links a.active::after { display: none; }

  /* Show hamburger, keep wrapper visible */
  .nav-toggle { display: flex; }
  .nav-cta-wrap { justify-self: end; }
  .btn-nav-cta { display: none; }

  /* Content */
  .hero-inner { padding: 6rem 1.25rem 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 3rem 1.25rem; }
  .notes-layout { grid-template-columns: 1fr; }
  .notes-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero { padding: 6rem 1.25rem 3rem; }
  .post-cover { height: 280px; }
}

/* ===== ADDITIONAL RESPONSIVE ===== */
@media (max-width: 480px) {
  /* Navbar */
  .nav-logo { font-size: 0.78rem; }
  .nav-logo .logo-img { width: 22px; height: 22px; }

  /* Hero */
  .hero h1 { font-size: 1.9rem; }
  .hero-inner { padding: 5rem 1rem 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Page hero */
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero { padding: 5rem 1rem 2.5rem; }

  /* Cards grid: single column */
  .cards-grid { grid-template-columns: 1fr; }

  /* Section */
  .section { padding: 2.5rem 1rem; }
  .section-title { font-size: 1.6rem; }

  /* Search filter bar */
  .search-filter-bar { padding: 1rem; }
  .filter-row { gap: 0.3rem; }
  .filter-chip { font-size: 0.75rem; padding: 0.25rem 0.7rem; }

  /* Notes layout sidebar */
  .notes-sidebar { padding: 0.75rem; }
  .sidebar-item { font-size: 0.8rem; padding: 0.4rem 0.6rem; }

  /* Modal */
  .modal-overlay { padding: 0.75rem; }
  .modal-body { padding: 1.25rem; }
  .modal-header { padding: 1rem 1.25rem; }
  .modal-header h2 { font-size: 0.95rem; }

  /* Post cover */
  .post-cover { height: 220px; border-radius: var(--radius-sm); }

  /* Post header */
  .post-header h1 { font-size: 1.6rem; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Close mobile nav when clicking outside (handled via JS in each page) */
