@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── WordPress / Astra overrides ─────────────────────── */
html{scroll-behavior:smooth}
.ast-primary-header-bar,.ast-main-header-bar-wrap,#masthead,.entry-title,
.ast-above-header-bar,.ast-above-header,.ast-below-header-section,
.ast-breadcrumbs-wrapper,.ast-page-header-section,.ast-page-title-wrap,
.page-header,.entry-header,.post-thumbnail,.wp-post-image,
.ast-featured-image-wrap,.ast-article-post-thumbnail,.ast-post-thumbnail,
.ast-site-identity-wrap,.ast-site-identity{display:none!important}
.entry-content,#primary,.ast-article-single,.site-main,.ast-container,#content,#main,#page,#wrapper{
  max-width:100%!important;width:100%!important;padding:0!important;margin:0!important}

/* ── Reset (scoped) ──────────────────────────────────── */
#sg *,#sg *::before,#sg *::after{box-sizing:border-box;margin:0;padding:0}

/* ── Theme variables ─────────────────────────────────── */
#sg{--bg:hsl(30,4%,22%);--fg:hsl(0,0%,100%);--accent:hsl(220,13%,80%);--accent-fg:hsl(215,25%,31%);--primary:hsl(215,25%,31%);--muted:hsl(220,13%,75%);--card:hsl(30,4%,19%);--card-bg:hsl(215,25%,28%);--border:hsl(215,25%,35%);--header-bg:rgba(58,55,48,.97);--shadow:0 4px 20px rgba(0,0,0,.35);--radius:.5rem}
#sg[data-theme="light"]{--bg:hsl(0,0%,97%);--fg:hsl(215,25%,18%);--accent:hsl(215,45%,40%);--accent-fg:hsl(0,0%,100%);--primary:hsl(215,35%,92%);--muted:hsl(215,15%,45%);--card:hsl(0,0%,94%);--card-bg:hsl(215,30%,88%);--border:hsl(215,20%,80%);--header-bg:rgba(250,250,252,.97);--shadow:0 4px 20px rgba(0,0,0,.10)}

/* ── Base ────────────────────────────────────────────── */
#sg{background:var(--bg);color:var(--fg);font-family:'Inter',sans-serif;font-weight:300;line-height:1.6;transition:background .3s,color .3s;width:100%;overflow-x:clip}
#sg a{color:inherit;text-decoration:none}
#sg img{max-width:100%}
#sg h1,#sg h2,#sg h3,#sg h4,#sg h5,#sg h6{font-family:'Oswald',sans-serif;text-transform:uppercase;letter-spacing:.05em;font-weight:600;line-height:1.2}
#sg .container{max-width:1280px;margin:0 auto!important;padding:0 1.5rem!important;width:100%!important;box-sizing:border-box!important}

/* ── Buttons ─────────────────────────────────────────── */
#sg .btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.75rem 2rem;border-radius:var(--radius);font-family:'Inter',sans-serif;font-size:.95rem;font-weight:500;cursor:pointer;border:2px solid transparent;transition:all .2s;text-decoration:none;white-space:nowrap}
#sg .btn-accent{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
#sg .btn-accent:hover{opacity:.85}
#sg .btn-full{width:100%}

/* ── Top Banner ──────────────────────────────────────── */
#sg .top-banner{background:var(--accent);color:var(--accent-fg);padding:.5rem 1rem;text-align:center;font-size:.85rem;font-weight:500;display:flex;align-items:center;justify-content:center;gap:.5rem}

/* ── Header ──────────────────────────────────────────── */
#sg .sg-hdr{position:sticky;top:0;z-index:999;background:var(--header-bg);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);transition:background .3s,border-color .3s;display:block!important}
#sg .header-inner{display:flex;align-items:center;justify-content:space-between;height:80px;gap:1.5rem}
#sg .logo-wrap{display:flex;align-items:center;gap:.75rem;flex-shrink:0}
#sg .logo-wrap img{height:48px;width:auto}
#sg .logo-name{font-family:'Oswald',sans-serif;font-size:1.2rem;font-weight:700;color:var(--accent);letter-spacing:.08em}
#sg .main-nav{display:flex;align-items:center;gap:2rem}
#sg .main-nav a{font-size:.9rem;font-weight:500;color:var(--muted);transition:color .2s}
#sg .main-nav a:hover,#sg .main-nav a.sg-nav-active{color:var(--fg)}
#sg .header-right{display:flex;align-items:center;gap:.75rem;flex-shrink:0}
#sg .header-right .btn{height:38px;padding:0 1.25rem;font-size:.85rem}
#sg .lang-dropdown{position:relative}
#sg .lang-btn{display:flex;align-items:center;gap:.4rem;background:transparent;border:1px solid var(--border);color:var(--muted);border-radius:var(--radius);padding:0 .85rem;height:38px;font-family:'Inter',sans-serif;font-size:.82rem;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap}
#sg .lang-btn:hover{border-color:var(--accent);color:var(--fg)}
#sg .lang-btn svg{width:15px;height:15px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#sg .lang-btn .chevron{width:12px;height:12px;transition:transform .2s}
#sg .lang-dropdown.open .chevron{transform:rotate(180deg)}
#sg .lang-menu{display:none;position:absolute;top:calc(100% + 6px);right:0;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;min-width:140px;z-index:100}
#sg .lang-dropdown.open .lang-menu{display:block}
#sg .lang-menu button{display:block;width:100%;text-align:left;padding:.6rem 1rem;background:none;border:none;font-family:'Inter',sans-serif;font-size:.85rem;color:var(--muted);cursor:pointer;transition:all .15s}
#sg .lang-menu button:hover{background:var(--primary);color:var(--fg)}
#sg .lang-menu button.active{color:var(--accent);font-weight:600}
#sg .theme-toggle{width:38px;height:38px;border-radius:var(--radius);border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0}
#sg .theme-toggle:hover{border-color:var(--accent);color:var(--fg)}
#sg .theme-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#sg .icon-sun{display:none}
#sg .icon-moon{display:block}
#sg[data-theme="light"] .icon-sun{display:block}
#sg[data-theme="light"] .icon-moon{display:none}
#sg .hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:.5rem;background:none;border:none}
#sg .hamburger span{display:block;width:24px;height:2px;background:var(--fg);transition:all .3s}
#sg .mobile-menu{display:none;flex-direction:column;gap:.25rem;padding:1.5rem;border-top:1px solid var(--border);background:var(--header-bg)}
#sg .mobile-menu.open{display:flex}
#sg .mobile-menu a{padding:.6rem 0;font-size:.9rem;font-weight:500;color:var(--muted)}
#sg .mobile-menu a:hover{color:var(--fg)}
#sg .mobile-menu-controls{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;border-top:1px solid var(--border)}
#sg .mobile-menu-ctas{display:flex;flex-direction:column;gap:.75rem;margin-top:.5rem;padding-top:1rem;border-top:1px solid var(--border)}
@media(max-width:1023px){#sg .main-nav,#sg .header-right{display:none}#sg .hamburger{display:flex}}

/* ── Sections ────────────────────────────────────────── */
#sg .section{padding:6rem 0}
#sg .section-alt{background:var(--card)}
#sg .section-title{text-align:center;margin-bottom:4rem}
#sg .section-title h2{font-size:clamp(1.8rem,4vw,2.6rem);margin-bottom:1rem}
#sg .section-title p{color:var(--muted);max-width:600px;margin:0 auto;font-size:1.05rem}

/* ── Multi-page ──────────────────────────────────────── */
#sg .sg-page{display:none}
#sg .sg-page.active{display:block}

/* ── Blog listing hero ───────────────────────────────── */
#sg .blog-hero{padding:4rem 1.5rem 2.5rem;text-align:center}
#sg .blog-hero h2{font-size:clamp(1.6rem,3.5vw,2.2rem);margin-bottom:.75rem;color:var(--fg)}
#sg .blog-hero p{color:var(--muted);font-size:1rem;max-width:560px;margin:0 auto}
#sg .blog-container{padding-bottom:5rem}

/* ── Blog listing grid ───────────────────────────────── */
#sg .blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.75rem}

/* Base card — column layout for regular cards */
#sg .blog-card{background:var(--card-bg);border:1px solid var(--border);border-radius:1.25rem;overflow:hidden;transition:border-color .3s,box-shadow .3s;cursor:pointer;display:flex;flex-direction:column}
#sg .blog-card:hover{border-color:var(--accent);box-shadow:var(--shadow)}
#sg .blog-card-img{width:100%;aspect-ratio:16/9;overflow:hidden;flex-shrink:0}
#sg .blog-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
#sg .blog-card:hover .blog-card-img img{transform:scale(1.04)}
#sg .blog-card-body{padding:1.5rem;display:flex;flex-direction:column;flex:1}
#sg .blog-card-tag{font-size:.72rem;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.6rem}
#sg .blog-card-title{font-size:1.05rem;font-weight:700;line-height:1.4;margin-bottom:.75rem;color:var(--fg)}
#sg .blog-card-excerpt{font-size:.87rem;color:var(--muted);line-height:1.65;flex:1;margin-bottom:1rem}
#sg .blog-card-meta{font-size:.78rem;color:var(--muted);display:flex;align-items:center;gap:.5rem}
#sg .blog-card-meta svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}

/* Featured card — full-width horizontal layout, AFTER base rules to win specificity */
#sg .blog-card.blog-card-featured{grid-column:1 / -1;flex-direction:row;align-items:stretch;max-height:340px}
#sg .blog-card.blog-card-featured .blog-card-img{width:44%;aspect-ratio:unset;height:auto;min-height:100%}
#sg .blog-card.blog-card-featured .blog-card-img img{width:100%;height:100%;object-fit:cover}
#sg .blog-card.blog-card-featured .blog-card-body{flex:1;padding:2.25rem 2.5rem;justify-content:center;min-width:0}
#sg .blog-card.blog-card-featured .blog-card-title{font-size:1.35rem;line-height:1.3;margin-bottom:1rem}
#sg .blog-card.blog-card-featured .blog-card-excerpt{-webkit-line-clamp:3;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;font-size:.93rem}

/* ── Blog Post Page ─────────────────────────────────── */
#sg .blog-post-hero{position:relative;width:100%;height:380px;overflow:hidden}
#sg .blog-post-hero img{width:100%;height:100%;object-fit:cover;display:block}
#sg .blog-post-hero-overlay{position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.15),rgba(0,0,0,.55))}
#sg .blog-post-container{max-width:780px;padding-top:2.5rem;padding-bottom:4rem}
#sg .blog-nav-btns{display:flex;align-items:center;gap:.75rem}
#sg .blog-back-btn{display:inline-flex;align-items:center;gap:.4rem;background:none;border:1px solid var(--border);color:var(--muted);font-size:.85rem;padding:.45rem .9rem;border-radius:999px;cursor:pointer;transition:border-color .2s,color .2s}
#sg .blog-back-btn:hover{border-color:var(--accent);color:var(--accent)}
#sg .blog-post-tag{font-size:.72rem;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.08em;margin-bottom:.75rem}
#sg .blog-post-title{font-size:2rem;font-weight:800;line-height:1.25;color:var(--fg);margin-bottom:.75rem}
#sg .blog-post-meta{font-size:.82rem;color:var(--muted);margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border)}
#sg .blog-post-body p{margin-bottom:1.1rem;font-size:.96rem;color:var(--muted);line-height:1.8}
#sg .blog-post-body h2{font-size:1.1rem;font-weight:700;margin:2rem 0 .6rem;color:var(--fg)}
#sg .blog-post-body h3{font-size:.98rem;font-weight:700;margin:1.5rem 0 .5rem;color:var(--fg)}
#sg .blog-post-body ul{margin:0 0 1.1rem 1.5rem;font-size:.96rem;color:var(--muted);line-height:1.8}
#sg .blog-post-body li{margin-bottom:.45rem}
#sg .blog-post-summary{background:var(--card-bg);border-left:3px solid var(--accent);padding:1.1rem 1.4rem;border-radius:0 .75rem .75rem 0;margin:2rem 0;font-size:.9rem;color:var(--muted);line-height:1.7}

/* ── Toast ───────────────────────────────────────────── */
#sg-toast{position:fixed;top:-100px;left:50%;transform:translateX(-50%);background:#22c55e;color:#fff;padding:1rem 2rem;border-radius:999px;font-family:'Inter',sans-serif;font-size:.95rem;font-weight:500;box-shadow:0 8px 32px rgba(0,0,0,.25);z-index:99999;transition:top .4s cubic-bezier(.4,0,.2,1);white-space:nowrap;pointer-events:none}
#sg-toast.show{top:90px}

/* ── Footer ──────────────────────────────────────────── */
#sg .sg-ftr{background:var(--card);border-top:1px solid var(--border);padding:5rem 0 0}
#sg .footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:3rem;padding-bottom:4rem}
#sg .footer-brand span{font-family:'Oswald',sans-serif;font-size:1.5rem;font-weight:700;color:var(--accent);letter-spacing:.08em}
#sg .footer-brand p{margin-top:1rem;font-size:.875rem;color:var(--muted);line-height:1.7}
#sg .footer-col h4{font-size:.8rem;font-weight:600;letter-spacing:.1em;margin-bottom:1rem}
#sg .footer-col ul{list-style:none}
#sg .footer-col ul li{margin-bottom:.75rem}
#sg .footer-col ul li a{font-size:.875rem;color:var(--muted);transition:color .2s}
#sg .footer-col ul li a:hover{color:var(--accent)}
#sg .social-links{display:flex;gap:1rem;margin-top:.5rem}
#sg .social-links a{width:40px;height:40px;background:rgba(128,148,180,.18);border-radius:.5rem;display:flex;align-items:center;justify-content:center;transition:all .2s}
#sg .social-links a:hover{background:var(--accent);color:var(--accent-fg)}
#sg .social-links a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#sg .footer-bottom{border-top:1px solid var(--border);padding:1.75rem 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}
#sg-legal-strip{background:#0a0a0a;border-top:1px solid rgba(255,255,255,.06);padding:.65rem 2rem;text-align:center}
#sg-legal-strip p{font-size:.72rem;color:rgba(255,255,255,.35);margin:0;line-height:1.5}
#sg .footer-bottom p{font-size:.8rem;color:var(--muted)}
#sg .footer-bottom-links{display:flex;gap:1.5rem}
#sg .footer-bottom-links a{font-size:.8rem;color:var(--muted);transition:color .2s}
#sg .footer-bottom-links a:hover{color:var(--accent)}

/* ── Cookie consent ──────────────────────────────────── */
#sg-cookie{display:flex;position:fixed;bottom:1.5rem;right:1.5rem;z-index:99998;background:var(--bg);border:1px solid var(--border);border-radius:1rem;padding:1.25rem 1.75rem;box-shadow:0 8px 40px rgba(0,0,0,.35);max-width:420px;width:calc(100% - 2rem);align-items:center;gap:1.25rem;flex-wrap:wrap;transform:translateY(140%);transition:transform .45s cubic-bezier(.34,1.56,.64,1)}
#sg-cookie.show{transform:translateY(0)}
#sg-cookie p{flex:1;font-size:.875rem;color:var(--muted);line-height:1.6;min-width:180px;margin:0}
#sg-cookie .cookie-icon{flex-shrink:0;width:22px;height:22px;color:var(--accent)}

/* ── Legal Modal ─────────────────────────────────────── */
@keyframes sgModalIn{from{opacity:0;transform:translateY(20px) scale(.97)}to{opacity:1;transform:none}}
#sg-pp-overlay,#sg-tos-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.65);backdrop-filter:blur(5px);z-index:10002;align-items:flex-start;justify-content:center;padding:2rem;overflow-y:auto}
#sg-pp-overlay.open,#sg-tos-overlay.open{display:flex}
#sg .legal-modal{background:var(--bg);border:1px solid var(--border);border-radius:1.25rem;padding:2.5rem 2.5rem 2rem;width:100%;max-width:700px;margin:auto;position:relative;animation:sgModalIn .25s ease}
#sg .legal-modal h2{font-size:1.6rem;margin-bottom:.35rem}
#sg .legal-modal .legal-date{font-size:.82rem;color:var(--muted);margin-bottom:2rem}
#sg .legal-modal h3{font-size:.95rem;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.07em;margin:1.5rem 0 .5rem}
#sg .legal-modal p,#sg .legal-modal li{font-size:.875rem;color:var(--muted);line-height:1.75;margin-bottom:.5rem}
#sg .legal-modal ul{list-style:disc;padding-left:1.25rem;margin-bottom:.5rem}
#sg .legal-modal-close{position:absolute;top:1rem;right:1rem;background:none;border:none;color:var(--muted);cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:.5rem;transition:all .2s}
#sg .legal-modal-close:hover{background:var(--primary);color:var(--fg)}

/* ── Responsive ──────────────────────────────────────── */
@media(max-width:767px){
  #sg .blog-grid{grid-template-columns:1fr}
  #sg .blog-card.blog-card-featured{flex-direction:column;max-height:none}
  #sg .blog-card.blog-card-featured .blog-card-img{width:100%;height:210px;min-height:unset}
  #sg .blog-card.blog-card-featured .blog-card-body{padding:1.5rem}
  #sg .blog-card.blog-card-featured .blog-card-title{font-size:1.1rem}
  #sg .footer-grid{grid-template-columns:1fr}
  #sg .footer-bottom{flex-direction:column;text-align:center}
  #sg .section{padding:4rem 0}
  #sg .blog-post-hero{height:220px}
  #sg .blog-post-title{font-size:1.4rem}
  #sg .blog-hero{padding:2.5rem 1.5rem 1.5rem}
}
@media(min-width:768px) and (max-width:1023px){
  #sg .blog-grid{grid-template-columns:repeat(2,1fr)}
  #sg .blog-card.blog-card-featured{grid-column:1 / -1;max-height:290px}
  #sg .footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
}