:root{--bg:#1f232b;--fg:#f6f7fb;--muted:#c5c9d3;--brand:#ff0000;--header-offset:96px}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--fg);font-family:'Montserrat', Inter, system-ui, Arial, sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
.container{width:min(1100px,92%);margin-inline:auto}
.flex{display:flex;gap:1rem}
.between{justify-content:space-between;align-items:center}
.site-header{position:fixed;top:0;left:0;right:0;background:#000000;border-bottom:1px solid #141414;padding:1.4rem 0;z-index:1000}
.site-header .container{position:relative}
@media (min-width:901px){
  .site-header .container{padding-left:120px}
}
.brand{color:var(--fg);text-decoration:none;font-weight:800;font-family:'Cinzel','Playfair Display','Poppins','Montserrat',Inter,system-ui,Arial,sans-serif;letter-spacing:.02em}
.nav a{color:var(--fg);text-decoration:none;margin-left:1rem}
/* Global link styles (exclude button-like anchors) */
a:not(.cta):not(.slab):not(.ad-box):not(.side-item){
  color:inherit;
  text-decoration:none;
  background-image:linear-gradient(var(--brand),var(--brand));
  background-size:0 2px;
  background-repeat:no-repeat;
  background-position:0 100%;
  transition:background-size .2s ease,color .15s ease;
}
a:not(.cta):not(.slab):not(.ad-box):not(.side-item):hover,
a:not(.cta):not(.slab):not(.ad-box):not(.side-item):focus-visible{
  background-size:100% 2px;
}
a:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(255,0,0,.25);border-radius:.15rem}
/* Prominent title link */
.link-title{color:var(--fg);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.link-title:hover{color:#cfd2db}
.menu{position:relative}
.menu .menu-items{position:absolute;top:calc(100% + 6px);left:0;background:#111;border:1px solid #1f1f1f;border-radius:.5rem;display:none;flex-direction:column;min-width:180px;padding:.5rem}
.menu:hover .menu-items{display:flex}
.menu .menu-items a{padding:.5rem;border-radius:.4rem}
.menu .menu-items a:hover{background:#1a1a1a}
.cta{display:inline-block;background:#2563eb;color:#fff;padding:.6rem 1rem;border-radius:.5rem;text-decoration:none;border:1px solid #1e40af}
.cta:hover{background:#1d4ed8;border-color:#1e3a8a}
/* Header primary action */
.site-header .cta{background:#1e3a8a;color:#ffffff;border:1px solid #162b66}
.site-header .cta:hover{background:#2545a3;border-color:#1b377f}
.hero{padding:3rem 0 1rem}
main.container{padding-top:var(--header-offset)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;padding:2rem 0}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.grid{grid-template-columns:repeat(3,1fr)}}
/* Mobile brand centering and sizing */
@media (max-width:900px){
  .site-header .container{justify-content:center}
  .brand{display:block;margin:0 auto;font-size:clamp(1.25rem,5.2vw,1.6rem);text-align:center;line-height:1.1;transform:translateX(55px)}
  .brand .brand-line{display:block}
}
/* Mobile: extra header padding */
@media (max-width:900px){
  .site-header{padding:1.6rem 0}
  main.container{padding-top:calc(var(--header-offset) + 8px)}
}

/* Mobile hamburger + drawer */
/* Show hamburger on desktop too */
.mnav-toggle{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:40px;height:36px;border:0;background:transparent;display:inline-flex;flex-direction:column;justify-content:center;gap:5px;cursor:pointer;z-index:2001}
.mnav-toggle span{display:block;width:22px;height:3px;background:#eaeaea;border-radius:3px;transition:transform .25s ease, opacity .2s ease}
.mnav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.mnav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.mnav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
@media (min-width:901px){
  .mnav-toggle{left:-28px}
}
@media (max-width:900px){
  .mnav-toggle{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:40px;height:36px;border:0;background:transparent;display:inline-flex;flex-direction:column;justify-content:center;gap:5px;cursor:pointer;z-index:2001}
  .mnav-toggle span{display:block;width:22px;height:3px;background:#eaeaea;border-radius:3px;transition:transform .25s ease, opacity .2s ease}
  .mnav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
  .mnav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  .mnav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
}
.mnav-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(3px);z-index:2000}
.mnav-overlay[hidden]{display:none}
.mnav-drawer{position:absolute;left:0;top:0;height:100%;width:min(320px,78%);background:linear-gradient(180deg,#0f1117,#0b0d13);border-right:1px solid #1c1f29;box-shadow:12px 0 30px rgba(0,0,0,.4);padding:1rem;transform:translateX(-100%);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
.mnav-overlay:not([hidden]) .mnav-drawer{transform:translateX(0)}
.mnav-header{display:flex;align-items:center;justify-content:space-between;padding:.25rem 0 .75rem;border-bottom:1px solid #1a1e28;margin-bottom:.5rem}
.mnav-title{font-weight:800;letter-spacing:.02em}
.mnav-close{width:44px;height:44px;border:1px solid #2a3040;border-radius:.6rem;background:#1a1f2b;color:#f3f5fa;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:22px;line-height:1}
.mnav-close:hover{background:#202633}
.mnav-links{display:flex;flex-direction:column;padding-top:.25rem}
.mobile-link{display:block;padding:.9rem 0;border-bottom:1px solid #1a1e28;color:#f3f5fa;text-decoration:none;font-weight:700;transition:background .2s ease, color .2s ease}
.mobile-link:last-child{border-bottom:0}
.mobile-link:hover{background:#12151d;color:#ffffff}
.no-scroll{overflow:hidden}

/* Focus styles */
:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.card{background:#262c36;border:1px solid #343b46;border-radius:.8rem;overflow:hidden}
.card img{width:100%;display:block}
.img-wrap{position:relative}
.card .img-wrap{overflow:hidden;background:#0e0e0e}
.card .img-wrap img{width:100%;height:auto;object-fit:contain}
.img-overlay{position:absolute;top:8px;left:8px;width:72px;height:auto;border-radius:.4rem;box-shadow:0 4px 12px rgba(0,0,0,.4);border:1px solid #00000066}
.card .card-body{padding:.75rem 1rem}
.card h3{margin:0 0 .25rem}
.card p{margin:0 0 .75rem;color:var(--muted)}
.meta-row{display:flex;gap:.5rem;align-items:center}
.badge{background:#1a1a1a;border:1px solid #262626;border-radius:999px;padding:.2rem .6rem;color:var(--muted);font-size:.8rem}
.cta-slab{display:block;text-decoration:none}
.slab{display:flex;align-items:center;justify-content:center;height:44px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#fff}
.slab-top{background:#1e3a8a;border-bottom:2px solid #162b66}
.slab-bottom{background:#2563eb;border-bottom:1px solid #1e40af}
.cta-slab:hover .slab-top{filter:brightness(1.08)}
.cta-slab:hover .slab-bottom{filter:brightness(1.08)}
.form{display:grid;gap:1rem;max-width:560px}
.form input,.form textarea,.form select{width:100%;padding:.7rem;border-radius:.5rem;border:1px solid #2a2a2a;background:#0f0f0f;color:var(--fg)}
.error{color:#ff6b6b;margin:.5rem 0}
.site-footer{border-top:1px solid #2d3340;padding:2.4rem 0;margin-top:2.4rem;color:#e8ecf5;background:
  linear-gradient(180deg,#2b2f38 0%,#242832 100%),
  radial-gradient(120% 80% at 100% 0%, rgba(124, 124, 255, .06) 0%, transparent 60%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}

.filters{display:grid;gap:.5rem;margin:1rem 0}
.chips{display:flex;flex-wrap:wrap;gap:.5rem}
.chip{display:inline-block;padding:.4rem .7rem;border:1px solid #222;border-radius:999px;color:var(--fg);text-decoration:none;background:#101010}
.chip.active{background:var(--brand);border-color:var(--brand);color:#fff}

.pagination{display:flex;gap:.5rem;align-items:center;justify-content:center;margin:1.5rem 0}
.pagination .page{padding:.45rem .7rem;border:1px solid #222;border-radius:.45rem;text-decoration:none;color:var(--fg);background:#101010}
.pagination .page.active{background:var(--brand);border-color:var(--brand);color:#fff}
.pagination .page.disabled{opacity:.5;pointer-events:none}

.detail-head{margin:1.5rem 0}
.detail-media img{width:auto;max-width:100%;max-height:300px;border-radius:.8rem;border:1px solid #343b46}
.detail-media .img-wrap{position:relative;overflow:hidden;background:#0e0e0e;display:flex;justify-content:center}
.detail-media .img-wrap img{width:auto;height:auto;object-fit:contain}
.detail-media .img-overlay{position:absolute;top:12px;left:12px;width:96px;height:auto;border-radius:.5rem;box-shadow:0 6px 16px rgba(0,0,0,.45);border:1px solid #00000066}
.detail-gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:.6rem;margin-top:.6rem}
@media (max-width:900px){.detail-gallery{grid-template-columns:repeat(4,1fr)}}
@media (max-width:720px){.detail-gallery{grid-template-columns:repeat(3,1fr)}}
@media (max-width:520px){.detail-gallery{grid-template-columns:repeat(2,1fr)}}
.detail-gallery img{width:100%;height:120px;object-fit:cover;border-radius:.4rem;border:1px solid #343b46;background:#0e0e0e}

/* Top banner */
.top-banner{background:#0f0f0f;border-bottom:1px solid #1c1c1c}
.top-banner-gradient{height:140px;background:linear-gradient(90deg,#ff2d55 0%,#d633ff 45%,#6c5ce7 100%)}
.top-banner-content{padding:2rem 0 2.25rem}
.hero-title{font-size:clamp(2rem, 4vw, 3rem);font-weight:800;letter-spacing:.02em;margin:0}
.hero-sub{color:var(--muted);margin:.5rem 0 1rem}
.top-banner-spot{padding:.5rem 0 0}
.ad-box{display:block;border:1px solid #2a2a2a;border-radius:.9rem;overflow:hidden;text-align:center;max-width:760px;margin:0 auto;box-shadow:0 10px 30px rgba(0,0,0,.35);color:#fff;text-decoration:none}
.ad-slab{display:flex;align-items:center;justify-content:center;height:56px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.ad-slab-top{background:#2c3e50}
.ad-slab-bottom{background:#3b1e28}
.ad-box:hover .ad-slab-top{filter:brightness(1.05)}
.ad-box:hover .ad-slab-bottom{filter:brightness(1.05)}

@media (max-width:600px){
  .top-banner-gradient{height:110px}
  .top-banner-content{padding:1.25rem 0 1.5rem}
}

/* Page-level hero */
.page-hero{margin-top:.5rem;position:relative;overflow:hidden;border:1px solid #2a2f3a;border-radius:1rem;background:
  radial-gradient(120% 80% at 100% 0%, rgba(124,124,255,.10) 0%, transparent 60%),
  radial-gradient(120% 80% at 0% 100%, rgba(255,126,154,.10) 0%, transparent 60%),
  linear-gradient(180deg,#222734 0%,#1a1f2b 100%);
  box-shadow:0 14px 40px rgba(0,0,0,.35)}
.page-hero .hero-bar{height:16px;background:linear-gradient(90deg,#ff2d55 0%,#d633ff 45%,#6c5ce7 100%);border-radius:0 0 .6rem .6rem}
.page-hero .hero-inner{padding:2.2rem 0 1.6rem;text-align:center}
.page-hero .hero-inner h1{margin:0;font-size:clamp(1.8rem,3.6vw,2.6rem);font-weight:800;letter-spacing:.02em}
.page-hero .hero-inner .muted{margin:.35rem 0 1rem}
.page-hero .hero-inner .hero-accent{font-weight:900;letter-spacing:.02em;color:var(--fg);margin:.1rem 0 1rem}
.page-hero .hero-ad{margin-top:.5rem}
.hero-divider{height:1px;background:#1c1c1c;margin:1rem 0 0}
/* Notice box */
.notice-box{background:#ff0000;border:1px solid #990000;border-radius:.75rem;padding:.9rem 1.05rem;margin:.7rem 0;color:#ffffff}
.notice-box strong{color:#ffffff}

/* Mobile: hero/notice flush to header */
@media (max-width:560px){
  .page-hero{margin-top:-6px;border-radius:.75rem}
  .page-hero .hero-bar{height:12px}
  .page-hero .hero-inner{padding:1.1rem 0 .9rem}
  .hero{padding:.75rem 0 .55rem}
  .notice-box{margin:.2rem 0}
  .hero-divider{margin:.5rem 0 0}
}

/* Mobile: pull cards upward */
@media (max-width:560px){
  .grid{padding:.5rem 0}
  .blog-layout{margin:.5rem 0 1rem}
}

/* New professional ad card */
.ad-card{display:block;position:relative;overflow:hidden;border:1px solid #262626;border-radius:1rem;background:linear-gradient(135deg,#1b1b1b 0%,#0f0f0f 40%), radial-gradient(120% 100% at 0% 0%, #7b68ee33 0%, transparent 60%);background-blend-mode:overlay;box-shadow:0 12px 36px rgba(0,0,0,.35);text-decoration:none;color:#fff}
.ad-card-inner{padding:1.25rem 1.4rem}
.ad-meta{margin-bottom:.4rem}
.ad-kicker{display:inline-block;background:#2c3e50;color:#fff;border:1px solid #33485a;border-radius:.5rem;padding:.25rem .6rem;font-weight:800;letter-spacing:.06em}
.ad-title-strong{font-size:clamp(1.4rem,3.2vw,1.9rem);font-weight:900;letter-spacing:.04em}
.ad-phone-strong{margin-top:.2rem;font-weight:700;color:#d6d6d6}
.ad-card::after{content:"";position:absolute;inset:-20%;background:radial-gradient(60% 40% at 80% 0%, #6c5ce733 0%, transparent 60%);pointer-events:none}
.ad-card:hover{border-color:#3a3a3a;box-shadow:0 14px 40px rgba(0,0,0,.45)}

/* Two-column pro ad */
.ad-pro{display:block;text-decoration:none;color:#fff;border:1px solid #7a84ff;border-radius:1rem;background:
  linear-gradient(135deg,#5865f2 0%,#7c6df0 50%,#a39bff 100%);
  box-shadow:0 12px 34px rgba(120,110,255,.32), 0 6px 18px rgba(0,0,0,.28)}
.ad-pro-inner{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem;padding:1.2rem 1.35rem}
.ad-pro-left .ad-kicker{display:inline-block;background:#d7deff;border:1px solid #bfc9ff;color:#20232a;border-radius:.5rem;padding:.28rem .65rem;font-weight:900;letter-spacing:.08em}
.ad-pro-left .ad-title-strong{font-size:clamp(1.5rem,3.2vw,2.1rem);font-weight:1000;letter-spacing:.02em;margin-top:.3rem}
.ad-pro-left .ad-sub{color:#f7f7fb;margin-top:.2rem;opacity:.95}
.ad-pro-right .phone-chip{display:inline-block;background:#ff7e9a;border:1px solid #ff91a9;border-radius:.8rem;padding:.6rem 1rem;font-weight:900;letter-spacing:.05em;color:#2b0d14;box-shadow:0 6px 18px rgba(255,126,154,.35)}
.ad-pro:hover{border-color:#98a0ff;filter:saturate(106%)}
.ad-pro:hover .phone-chip{filter:brightness(1.1)}
@media (max-width:560px){
  .ad-pro-inner{grid-template-columns:1fr;gap:.6rem}
  .ad-pro-right{justify-self:start}
}

/* Blog layout */
.blog-layout{display:grid;grid-template-columns:2fr 1fr;gap:1.25rem;align-items:start;margin:1rem 0 2rem}
@media (max-width:900px){.blog-layout{grid-template-columns:1fr}}
.post-row{background:#262c36;border:1px solid #343b46;border-radius:.75rem;margin-bottom:1rem;overflow:hidden}
.post-head{display:flex;justify-content:space-between;align-items:center;padding:.9rem 1rem;border-bottom:1px solid #343b46}
.post-head h2{margin:0;font-size:1.2rem}
.post-head h2 a{color:var(--fg);text-decoration:none}
.post-head h2 a:hover{text-decoration:underline}
.post-badge{background:#2b3240;color:#f6f7fb;border:1px solid #3a4252;border-radius:999px;font-weight:800;padding:.2rem .6rem}
.post-body{display:grid;grid-template-columns:140px 1fr;gap:1rem;padding:1rem}
@media (max-width:560px){.post-body{grid-template-columns:1fr}}
.post-body .thumb img{width:100%;height:auto;border-radius:.5rem;border:1px solid #343b46}
.post-excerpt .more{color:#ff7e9a;text-decoration:none}
.post-excerpt .more:hover{text-decoration:underline}
/* Read more button */
.post-excerpt .more.btn{display:inline-block;background:#2563eb;color:#fff;border:1px solid #1e40af;border-radius:.45rem;padding:.45rem .8rem;text-decoration:none;font-weight:600}
.post-excerpt .more.btn::after{content:'\203A'; /* › */ display:inline-block;margin-left:.35rem;transition:transform .2s ease}
.post-excerpt .more.btn:hover{background:#1d4ed8;border-color:#1e3a8a;text-decoration:none}
.post-excerpt .more.btn:hover::after{transform:translateX(2px)}

/* Keyword bar (under hero) */
.keyword-bar{
  position:relative;
  background:linear-gradient(135deg,#6f1a17 0%, #8f221e 40%, #b32a25 100%);
  border:1px solid #6e1b19;
  color:#fff;
  border-radius:.75rem;
  margin:12px 0 18px 0;
  box-shadow:0 10px 28px rgba(179,42,37,.28), inset 0 1px 0 rgba(255,255,255,.07);
  overflow:hidden;
}
.keyword-bar::before,
.keyword-bar::after{
  content:"";
  position:absolute;top:0;bottom:0;width:28px;pointer-events:none;
}
.keyword-bar::before{left:0;background:linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0));}
.keyword-bar::after{right:0;background:linear-gradient(-90deg, rgba(0,0,0,.25), rgba(0,0,0,0));}
.keyword-nav{
  display:flex;gap:1rem;align-items:center;padding:10px 14px;overflow:auto;white-space:nowrap;
  scrollbar-width:thin;scrollbar-color:#d8d8d8 transparent;
}
.keyword-nav::-webkit-scrollbar{height:8px}
.keyword-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:999px}
.keyword-nav::-webkit-scrollbar-track{background:transparent}
.kb-link{
  display:inline-block;color:#ffecec;text-decoration:none;opacity:.95;font-weight:600;letter-spacing:.01em;
  padding:.35rem .1rem;border-radius:.35rem;transition:opacity .15s ease,color .15s ease, background .15s ease;
}
.kb-link:hover{opacity:1;color:#ffffff}
.kb-link:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.3)}
.kb-chip{
  display:inline-block;background:linear-gradient(180deg,#ffffff,#f2f2f2);
  color:#1f232b;padding:.4rem .7rem;border-radius:.55rem;text-decoration:none;font-weight:800;letter-spacing:.02em;
  border:1px solid #e5e7eb;box-shadow:0 2px 0 rgba(0,0,0,.06), 0 8px 20px rgba(0,0,0,.12);
  transition:transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.kb-chip:hover{transform:translateY(-1px);filter:brightness(1.02);box-shadow:0 3px 0 rgba(0,0,0,.06), 0 10px 24px rgba(0,0,0,.16)}
.kb-chip:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.3), 0 2px 0 rgba(0,0,0,.06)}
.kb-chip.active{background:linear-gradient(180deg,#ffffff,#f7f7f7)}
@media (max-width:560px){
  .keyword-nav{gap:.85rem;padding:8px 10px}
  .kb-chip{padding:.36rem .62rem}
}

/* Sidebar */
.blog-sidebar .widget{background:#262c36;border:1px solid #343b46;border-radius:.75rem;overflow:hidden}
.widget-tabs{display:flex;border-bottom:1px solid #343b46}
.widget-tabs button{flex:1;background:transparent;border:0;color:var(--fg);padding:.6rem .5rem;cursor:pointer}
.widget-tabs button.active{background:#2b3240;border-bottom:2px solid #ff0000}
.widget-body{padding:.75rem}
.hidden{display:none}
.side-item{display:grid;grid-template-columns:48px 1fr;gap:.6rem;align-items:center;padding:.4rem;border-radius:.5rem;color:var(--fg);text-decoration:none}
.side-item:hover{background:#2b3240}
.side-item img{width:48px;height:48px;object-fit:cover;border-radius:.35rem;border:1px solid #343b46}
.side-item .title{font-weight:700}
.tags{display:flex;flex-wrap:wrap;gap:.4rem}
.tag{background:#2b3240;border:1px solid #3a4252;border-radius:.5rem;padding:.25rem .5rem}

/* Footer layout */
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;column-gap:1.5rem;row-gap:1rem;align-items:start}
@media (max-width:720px){.footer-grid{grid-template-columns:1fr}}
.footer-brand{font-weight:800;color:#ffffff}
.footer-brand .muted{display:block;margin-top:.2rem}
.footer-nav{display:flex;flex-wrap:wrap;gap:.6rem 1rem}
.footer-nav a{color:#e6e9f2;text-decoration:none;background-image:linear-gradient(var(--brand),var(--brand));background-size:0 2px;background-repeat:no-repeat;background-position:0 100%;transition:background-size .2s ease,color .15s ease;font-weight:600;letter-spacing:.02em}
.footer-nav a:hover{color:#ffffff;background-size:100% 2px}

@media (prefers-reduced-motion: reduce){
  a:not(.cta):not(.slab):not(.ad-box):not(.side-item),
  .footer-nav a{transition:none}
}
.footer-copy{justify-self:end;color:#c5c9d3}
@media (max-width:720px){.footer-copy{justify-self:start;margin-top:.6rem}}

/* Subtle column separators on desktop */
.footer-grid > *:not(:first-child){border-left:1px solid rgba(255,255,255,.06);padding-left:1rem}
@media (max-width:900px){.footer-grid > *:not(:first-child){border-left:0;padding-left:0}}
@media (max-width:720px){.footer-copy{justify-self:start;margin-top:.6rem}}
