/*
Theme Name: HAD Tema 2025
Description: Hrvatsko arhivističko društvo - moderna tema
Version: 2.4
*/

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

:root {
  --red:       #c0392b;
  --red-dark:  #96281b;
  --red-dim:   rgba(192,57,43,0.08);
  --white:     #ffffff;
  --off:       #f8f7f6;
  --ink:       #1c1c1c;
  --muted:     #6b6b6b;
  --border:    #e4e0db;
  --shadow:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --r:         6px;
  --font-ui:   'Outfit', sans-serif;
  --font-body: 'Lora', Georgia, serif;
  --max:       1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--off); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .18s; }
a:hover { color: var(--red-dark); }
h1,h2,h3,h4,h5 { font-family: var(--font-ui); font-weight: 700; line-height: 1.2; color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* PROGRESS BAR */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(to right, var(--red-dark), var(--red)); z-index: 9999; width: 0%; transition: width .1s; pointer-events: none; }

/* TOPBAR */
#topbar { background: var(--red-dark); color: rgba(255,255,255,.8); font-family: var(--font-ui); font-size: .75rem; font-weight: 500; letter-spacing: .02em; padding: 7px 24px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
#topbar .left { display: flex; align-items: center; flex-wrap: wrap; }
#topbar a { color: rgba(255,255,255,.8); display: inline-flex; align-items: center; gap: 5px; }
#topbar a:hover { color: #fff; }
#topbar .right a { background: rgba(255,255,255,.15); padding: 4px 12px; border-radius: 20px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .7rem; transition: background .2s; }
#topbar .right a:hover { background: rgba(255,255,255,.28); color: #fff; }
.ti { display: inline-flex; align-items: center; gap: 5px; margin-right: 14px; }
.topbar-social { display: flex; align-items: center; gap: 6px; padding-right: 14px; margin-right: 10px; border-right: 1px solid rgba(255,255,255,.2); }
.topbar-social a { width: 26px; height: 26px; border-radius: 5px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); transition: background .2s; }
.topbar-social a:hover { background: rgba(255,255,255,.28); color: #fff; }
.topbar-sep { color: rgba(255,255,255,.2); margin: 0 8px 0 0; }

/* HEADER */
#masthead { background: var(--white); border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.masthead-inner { display: flex; align-items: center; padding: 10px 24px; gap: 16px; }
.site-branding { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-branding img { height: 52px; width: auto; }
.brand-text-header { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; margin-left: 14px; }
.brand-text-header .brand-name { font-family: var(--font-ui); font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; line-height: 1; }
.brand-text-header .brand-sub { font-family: var(--font-ui); font-size: .65rem; font-weight: 500; color: var(--muted); letter-spacing: .07em; white-space: nowrap; }
.brand-text-header .brand-sub strong { color: var(--red); font-weight: 700; }

/* NAV */
#primary-nav ul { list-style: none; display: flex; gap: 2px; align-items: center; }
#primary-nav > ul > li { position: relative; }
#primary-nav > ul > li > a { display: block; font-family: var(--font-ui); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); padding: 7px 12px; border-radius: var(--r); transition: background .18s, color .18s; white-space: nowrap; }
#primary-nav > ul > li > a { position: relative; }
#primary-nav > ul > li > a::before { content:''; position:absolute; left:12px; right:12px; bottom:-2px; height:3px; border-radius:2px; background:linear-gradient(90deg,#c0392b,#d4a44a); transform:scaleX(0); transform-origin:left center; transition:transform .28s cubic-bezier(.16,1,.3,1); }
#primary-nav > ul > li > a:hover { color: var(--red); }
#primary-nav > ul > li > a:hover::before { transform:scaleX(1); }
#primary-nav > ul > li.current-menu-item > a, #primary-nav > ul > li.current-menu-ancestor > a { color: var(--red); background:linear-gradient(180deg,transparent,rgba(212,164,74,.1)); }
#primary-nav > ul > li.current-menu-item > a::before, #primary-nav > ul > li.current-menu-ancestor > a::before { transform:scaleX(1); background:linear-gradient(90deg,#d4a44a,#c0392b); }
#primary-nav ul ul { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--white); border-top: 3px solid var(--red); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-lg); min-width: 230px; z-index: 300; flex-direction: column; padding: 6px 0; }
#primary-nav ul ul li a { display: block; font-family: var(--font-ui); font-size: .8rem; font-weight: 500; color: var(--ink); padding: 9px 18px; transition: background .15s, color .15s; white-space: nowrap; }
#primary-nav ul ul li a:hover { background: var(--red-dim); color: var(--red); }
#primary-nav ul li:hover > ul { display: flex; }
#primary-nav ul ul ul { top: -9px; left: 100%; border-top: 3px solid var(--red); }
.nav-toggle { display: none; background: var(--red); border: none; color: #fff; width: 40px; height: 40px; border-radius: var(--r); cursor: pointer; font-size: 1.3rem; align-items: center; justify-content: center; }

/* MISC */
#page-body { padding: 0; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }

/* BREADCRUMBS */
#breadcrumbs { background: var(--white); border-bottom: 1px solid var(--border); padding: 9px 24px; font-family: var(--font-ui); font-size: .74rem; color: var(--muted); }
#breadcrumbs a { color: var(--red); }
#breadcrumbs .sep { margin: 0 6px; opacity: .4; }

/* 3 KOLONE NEWS */
.news-3col-wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; align-items: start; background: var(--off); }
.news-slider-col { padding: 22px 20px 22px 24px; border-right: 1px solid var(--border); }
.news-list-col { padding: 22px 20px; border-right: 1px solid var(--border); }
.news-list-col:last-child { padding-right: 24px; border-right: none; }

/* COL HEADERS */
.col-head-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.col-head-title { font-family: var(--font-ui); font-size: .88rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.col-head-more { font-family: var(--font-ui); font-size: .7rem; font-weight: 600; color: var(--muted); transition: color .18s; }
.col-head-more:hover { color: var(--red); }

/* VELIKI SLIDER — horizontalna kartica */
.big-slider-wrap { background: var(--white); border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.big-slider-link { display: block; text-decoration: none; }
.big-slider-card { display: flex; align-items: stretch; }
.big-slider-img {
  width: 220px;
  min-height: 220px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2c1810, #8B1A1A);
  position: relative;
  overflow: hidden;
}
.big-slider-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sl-flag { position: absolute; top: 10px; left: 10px; font-size: 16px; z-index: 1; }
.big-slider-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.sl-cat { display: inline-block; background: var(--red-dim); color: var(--red-dark); font-family: var(--font-ui); font-size: .62rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.sl-title { font-family: var(--font-ui); font-size: .95rem; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 8px; }
.big-slider-link:hover .sl-title { color: var(--red); }
.sl-date { font-family: var(--font-ui); font-size: .7rem; font-weight: 600; color: var(--red); }
.sl-dots { display: flex; gap: 6px; margin-top: 14px; }
.sl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; transition: background .3s, transform .3s; }
.sl-dot.active { background: var(--red); transform: scale(1.3); }

/* NEWS LIST ITEMS */
.news-list-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 0.5px solid var(--border); text-decoration: none; transition: background .15s; }
.news-list-item:last-of-type { border-bottom: none; }
.news-list-item:hover .news-list-title { color: var(--red); }
.news-list-thumb { width: 52px; height: 40px; border-radius: 4px; flex-shrink: 0; background: linear-gradient(135deg, var(--red-dark), var(--red)); background-size: cover; background-position: center; }
.news-list-title { font-family: var(--font-ui); font-size: .8rem; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-list-date { font-family: var(--font-ui); font-size: .65rem; color: var(--muted); margin-top: 3px; }
.col-more-btn { margin-top: 12px; }
.btn-more { display: inline-block; padding: 6px 16px; background: var(--red); color: #fff; font-family: var(--font-ui); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 20px; transition: background .18s; }
.btn-more:hover { background: var(--red-dark); color: #fff; }
.no-posts { color: var(--muted); font-family: var(--font-ui); font-size: .85rem; font-style: italic; padding: 20px 0; }

/* QUICKLINKS */
.quicklinks-section { background: #1a1a1a; padding: 32px 0; }
.quicklinks-inner { padding: 0 24px; }
.quicklinks-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.ql-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; background: #2a2a2a; border: 1px solid #333; border-radius: var(--r); text-decoration: none !important; transition: transform .22s, box-shadow .22s, border-color .22s; }
.ql-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(192,57,43,.2); border-color: var(--red); }
.ql-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.ql-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1) opacity(0.75); transition: filter .2s; }
.ql-item:hover .ql-icon img { filter: brightness(0) invert(1) opacity(1); }
.ql-label { font-family: var(--font-ui); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #888; text-align: center; line-height: 1.3; }
.ql-item:hover .ql-label { color: #fff; }

/* HERO SLIDER */
#hero-slider { position: relative; height: 480px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.15) 100%); z-index: 1; }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 60px; z-index: 2; }
.hero-inner { max-width: 580px; }
.hero-badge { display: inline-block; background: rgba(192,57,43,.8); color: #fff; font-family: var(--font-ui); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: 20px; border: 1px solid rgba(255,255,255,.2); margin-bottom: 18px; }
.hero-title { font-family: var(--font-ui); font-size: 2.8rem; font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 14px; letter-spacing: -.02em; }
.hero-title em { color: #e85c4a; font-style: normal; }
.hero-desc { font-family: var(--font-ui); font-size: .88rem; color: rgba(255,255,255,.7); line-height: 1.75; max-width: 440px; }
.hero-stats { display: flex; gap: 28px; margin-top: 24px; }
.hero-stat { border-left: 2px solid var(--red); padding-left: 12px; }
.stat-num { font-family: var(--font-ui); font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-lbl { font-family: var(--font-ui); font-size: .65rem; color: rgba(255,255,255,.5); margin-top: 3px; letter-spacing: .04em; text-transform: uppercase; }
.hero-dots { position: absolute; bottom: 22px; left: 60px; z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.3); border: none; cursor: pointer; padding: 0; transition: background .3s, transform .3s; }
.hero-dot.active { background: var(--red); transform: scale(1.35); }

/* SINGLE */
.post-header { background: var(--white); border-left: 4px solid var(--red); border-radius: 0 var(--r) var(--r) 0; padding: 22px 26px; margin-bottom: 28px; }
.post-header h1 { font-size: 1.55rem; color: var(--red-dark); margin-bottom: 10px; }
.post-meta { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--font-ui); font-size: .74rem; color: var(--muted); }
.post-meta span { display: flex; align-items: center; gap: 4px; }
.entry-content { font-size: .97rem; line-height: 1.85; }
.entry-content h2 { font-size: 1.25rem; margin: 1.8rem 0 .8rem; padding-bottom: 8px; border-bottom: 2px solid var(--red); color: var(--red-dark); }
.entry-content h3 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
.entry-content p { margin-bottom: 1.1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.6rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: 5px; }
.entry-content blockquote { border-left: 4px solid var(--red); background: var(--red-dim); padding: 14px 20px; margin: 1.4rem 0; border-radius: 0 var(--r) var(--r) 0; font-style: italic; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; font-family: var(--font-ui); font-size: .88rem; }
.entry-content th { background: var(--red); color: #fff; padding: 10px 14px; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.entry-content td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.entry-content tr:hover td { background: var(--red-dim); }

/* ARCHIVE */
.archive-list { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.archive-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--r); display: flex; gap: 16px; padding: 16px; transition: box-shadow .2s; }
.archive-item:hover { box-shadow: var(--shadow); }
.archive-item-thumb { width: 110px; height: 80px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: var(--border); }
.archive-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-item-date { font-family: var(--font-ui); font-size: .7rem; font-weight: 700; color: var(--red); letter-spacing: .04em; margin-bottom: 4px; }
.archive-item-title { font-family: var(--font-ui); font-weight: 700; font-size: .92rem; margin-bottom: 5px; line-height: 1.3; }
.archive-item-title a { color: var(--ink); }
.archive-item-title a:hover { color: var(--red); }
.archive-item-excerpt { font-family: var(--font-ui); font-size: .78rem; color: var(--muted); }

/* PAGINATION */
.had-pages { display: flex; gap: 5px; justify-content: center; margin-top: 28px; flex-wrap: wrap; padding-bottom: 28px; }
.had-pages a, .had-pages span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--r); font-family: var(--font-ui); font-size: .82rem; font-weight: 600; color: var(--muted); transition: all .18s; }
.had-pages a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.had-pages .current { background: var(--red); border-color: var(--red); color: #fff; }

/* FOOTER */
#colophon { background: #111; color: rgba(255,255,255,.65); margin-top: 0; }
.footer-top { padding: 44px 24px 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand-name { font-family: var(--font-ui); font-size: 1rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-brand-name::before { content: ''; display: inline-block; width: 4px; height: 22px; background: var(--red); border-radius: 2px; }
.footer-brand p { font-size: .82rem; line-height: 1.7; margin-bottom: 14px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { font-family: var(--font-ui); font-size: .8rem; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 7px; }
.footer-contact a:hover { color: #fff; }
.footer-col h4 { font-family: var(--font-ui); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul a { font-family: var(--font-ui); font-size: .8rem; color: rgba(255,255,255,.55); transition: color .18s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 24px; font-family: var(--font-ui); font-size: .72rem; color: rgba(255,255,255,.3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: #fff; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fsoc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px; font-family: var(--font-ui); font-size: .72rem; font-weight: 600; color: #fff; text-decoration: none; transition: opacity .2s; }
.fsoc-btn:hover { opacity: .8; color: #fff; }
.fsoc-fb { background: #1877F2; }
.fsoc-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.fsoc-li { background: #0A66C2; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; font-family: var(--font-ui); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: var(--r); border: 2px solid transparent; cursor: pointer; transition: all .18s; text-decoration: none !important; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.page-title-bar { background: var(--white); border-left: 4px solid var(--red); border-radius: 0 var(--r) var(--r) 0; padding: 18px 22px; margin-bottom: 24px; }
.page-title-bar h1 { font-size: 1.45rem; color: var(--red-dark); }

/* SECTION HEAD */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--red); }
.section-head h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); display: flex; align-items: center; gap: 8px; }
.section-head a { font-family: var(--font-ui); font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; transition: color .18s; }
.section-head a:hover { color: var(--red); }

/* SIDEBAR */
#sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--white); border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; }
.widget-title { background: var(--red); color: var(--white); font-family: var(--font-ui); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 9px 16px; }
.widget-body { padding: 14px 16px; }
.had-search { display: flex; }
.had-search input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-right: none; border-radius: var(--r) 0 0 var(--r); font-family: var(--font-ui); font-size: .85rem; outline: none; background: var(--off); }
.had-search input:focus { border-color: var(--red); background: var(--white); }
.had-search button { padding: 9px 14px; background: var(--red); color: #fff; border: none; border-radius: 0 var(--r) var(--r) 0; cursor: pointer; font-size: .9rem; transition: background .18s; }
.had-search button:hover { background: var(--red-dark); }
.partner-logos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.partner-logos a { opacity: .65; transition: opacity .2s; }
.partner-logos a:hover { opacity: 1; }
.partner-logos img { height: 28px; width: auto; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .news-3col-wrap { grid-template-columns: 1fr 1fr; }
  .news-slider-col { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--border); }
  .quicklinks-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 760px) {
  .news-3col-wrap { grid-template-columns: 1fr; }
  .news-slider-col, .news-list-col { border-right: none; border-bottom: 1px solid var(--border); padding: 18px 16px; }
  .big-slider-card { flex-direction: column; }
  .big-slider-img { width: 100%; min-height: 200px; }
  .quicklinks-grid { grid-template-columns: repeat(3, 1fr); }
  #hero-slider { height: 320px; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 1.8rem; }
  .hero-stats { gap: 16px; }
  .hero-dots { left: 24px; }
  .brand-text-header { display: none; }
  .topbar-social { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { padding: 24px 16px; }
}
@media (max-width: 640px) {
  #primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-top: 3px solid var(--red); box-shadow: var(--shadow-lg); padding: 10px 0; }
  #primary-nav.open { display: block; }
  #primary-nav > ul { flex-direction: column; gap: 0; }
  #primary-nav > ul > li > a { border-radius: 0; padding: 11px 20px; }
  #primary-nav ul ul { position: static; box-shadow: none; border: none; border-left: 3px solid var(--red); margin-left: 20px; display: none; }
  #primary-nav ul li.open > ul { display: flex; }
  .nav-toggle { display: inline-flex; }
  .masthead-inner { padding: 10px 16px; }
}
@media (max-width: 480px) {
  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
  #hero-slider { height: 260px; }
  .hero-title { font-size: 1.4rem; }
  .hero-desc { display: none; }
  .hero-stats { gap: 12px; }
  .stat-num { font-size: 1.2rem; }
}
