/*
Theme Name: Your Brand - CNC Industrial
Theme URI: https://yourbrand.com
Author: Your Brand
Description: Clean, secure, SEO-ready WordPress theme for CNC machining & manufacturing business. Homepage built from configurable sections (show/hide/edit) plus a custom HTML block. Based on an Astra-style blue/white industrial design.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yourbrand
Tags: manufacturing, business, one-column, custom-logo, custom-menu, translation-ready
*/


/* ============================================================
   Your Brand — Homepage prototype
   Visual style modeled after a clean B2B industrial WordPress
   site (Astra-based): white background, navy headings,
   bright blue CTAs, Poppins typography.
   BREAKPOINTS: tablet 921px, mobile 544px
   ============================================================ */
:root{
  --navy:#092c47;
  --blue:#0e6aed;
  --steel:#22445f;
  --gray:#4b4b4b;
  --light:#F5F5F5;
  --pale:#F2F5F7;
  --white:#ffffff;
  --radius:3px;
  --shadow:0 6px 24px rgba(9,44,71,.08);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:'Poppins',Arial,Helvetica,sans-serif;
  font-size:16px;line-height:1.6;color:var(--steel);
  background:var(--white);-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:var(--blue);transition:color .2s;}
a:hover{color:var(--navy);}
.container{max-width:1200px;margin:0 auto;padding:0 24px;}

/* ---------- Top bar ---------- */
.topbar{
  background:var(--white);border-bottom:1px solid #e5e9ee;
  font-size:13px;color:var(--gray);
}
.topbar .container{display:flex;justify-content:space-between;align-items:center;min-height:30px;flex-wrap:wrap;}
.topbar a{color:var(--steel);}
.topbar a:hover{color:var(--blue);}
.topbar .contact span{margin-right:18px;}
.topbar .social{display:flex;gap:12px;}
.topbar .social svg{width:15px;height:15px;fill:currentColor;}

/* ---------- Header ---------- */
.header{position:sticky;top:0;z-index:100;background:var(--white);box-shadow:0 1px 0 rgba(9,44,71,.06);}
.header .container{display:flex;align-items:center;justify-content:space-between;min-height:70px;}
.logo{display:flex;align-items:center;gap:10px;}
.logo-badge{
  width:42px;height:42px;border-radius:var(--radius);
  background:linear-gradient(135deg,var(--blue),var(--navy));
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:13px;
}
.logo-name{font-size:19px;font-weight:700;color:var(--navy);line-height:1.1;}
.logo-name small{display:block;font-size:11px;font-weight:400;color:var(--gray);letter-spacing:1px;text-transform:uppercase;}

.nav{display:flex;align-items:center;gap:28px;}
.nav-menu{display:flex;list-style:none;gap:6px;}
.nav-menu a{
  display:inline-block;padding:10px 12px;font-size:15px;font-weight:500;color:#000;border-radius:var(--radius);
}
.nav-menu a:hover,.nav-menu .current a{color:var(--blue);}
.has-dropdown{position:relative;}
.has-dropdown>a::after{content:"";display:inline-block;margin-left:6px;border:4px solid transparent;border-top-color:currentColor;vertical-align:middle;}
.dropdown{
  position:absolute;top:100%;left:0;min-width:240px;background:#fff;border:1px solid #e5e9ee;
  box-shadow:0 12px 30px rgba(9,44,71,.12);border-radius:var(--radius);padding:10px 0;
  opacity:0;visibility:hidden;transform:translateY(8px);transition:.2s;z-index:50;
}
.has-dropdown:hover .dropdown{opacity:1;visibility:visible;transform:translateY(0);}
.dropdown a{display:block;padding:9px 18px;font-size:14px;font-weight:400;color:var(--steel);}
.dropdown a:hover{color:var(--blue);background:var(--pale);}

.header-actions{display:flex;align-items:center;gap:14px;}
.icon-btn{background:none;border:none;cursor:pointer;color:var(--navy);display:flex;align-items:center;}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;}
.search-wrap{position:relative;}
.search-input{
  position:absolute;right:0;top:50%;transform:translateY(-50%) scaleX(0);transform-origin:right;
  width:235px;padding:8px 12px;border:1px solid #d8dee6;border-radius:var(--radius);
  font-family:inherit;font-size:14px;transition:transform .25s;opacity:0;
}
.search-wrap.open .search-input{transform:translateY(-50%) scaleX(1);opacity:1;}
.search-wrap.open .search-input:focus{outline:2px solid var(--blue);}
.cta-btn{
  display:inline-block;background:var(--blue);color:#fff;font-weight:600;font-size:14px;
  padding:12px 26px;border-radius:var(--radius);border:2px solid var(--blue);transition:.2s;
}
.cta-btn:hover{background:var(--navy);border-color:var(--navy);color:#fff;}
.cta-btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55);}
.cta-btn.ghost:hover{background:#fff;color:var(--navy);border-color:#fff;}

.hamburger{display:none;background:none;border:1.5px solid var(--navy);border-radius:var(--radius);padding:8px 9px;cursor:pointer;}
.hamburger svg{width:20px;height:20px;stroke:var(--navy);}

/* ---------- Hero ---------- */
.hero{
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(14,106,237,.35), transparent 60%),
    linear-gradient(160deg,#0b3350 0%, var(--navy) 55%, #071f33 100%);
  color:#fff;position:relative;overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:56px 56px;
}
.hero .container{position:relative;padding-top:96px;padding-bottom:110px;z-index:1;}
.hero-tag{
  display:inline-block;background:rgba(14,106,237,.18);border:1px solid rgba(14,106,237,.5);
  color:#9ec4ff;font-size:13px;font-weight:500;letter-spacing:1px;padding:7px 16px;border-radius:30px;margin-bottom:22px;
}
.hero h1{font-size:48px;font-weight:700;line-height:1.25;max-width:760px;color:#fff;}
.hero h1 span{color:#4d9bff;}
.hero p.sub{font-size:18px;font-weight:300;color:#c9d7e4;max-width:640px;margin:22px 0 34px;}
.hero-ctas{display:flex;gap:16px;flex-wrap:wrap;}
.hero-badges{display:flex;gap:36px;margin-top:58px;flex-wrap:wrap;}
.hero-badge{display:flex;align-items:center;gap:12px;font-size:14px;color:#dbe7f2;}
.hero-badge svg{width:26px;height:26px;stroke:#4d9bff;fill:none;stroke-width:1.6;flex-shrink:0;}
.hero-badge b{display:block;font-size:16px;color:#fff;font-weight:600;line-height:1.2;}

/* ---------- Section shell ---------- */
.section{padding:80px 0;}
.section.pale{background:var(--pale);}
.section-head{max-width:720px;margin:0 auto 48px;text-align:center;}
.section-head .eyebrow{font-size:13px;font-weight:600;letter-spacing:2px;color:var(--blue);text-transform:uppercase;margin-bottom:10px;}
.section-head h2{font-size:38px;font-weight:700;line-height:1.3;color:var(--navy);}
.section-head p{color:var(--gray);margin-top:14px;font-size:16px;font-weight:300;}

/* ---------- Advantages ---------- */
.adv-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.card{
  background:#fff;border:1px solid #eef1f5;border-radius:8px;padding:30px 24px;
  box-shadow:var(--shadow);transition:transform .25s,box-shadow .25s;
}
.card:hover{transform:translateY(-6px);box-shadow:0 14px 34px rgba(9,44,71,.14);}
.card .ico{
  width:56px;height:56px;border-radius:8px;background:rgba(14,106,237,.1);
  display:flex;align-items:center;justify-content:center;margin-bottom:18px;
}
.card .ico svg{width:28px;height:28px;stroke:var(--blue);fill:none;stroke-width:1.6;}
.card h3{font-size:18px;font-weight:600;color:var(--navy);margin-bottom:10px;}
.card p{font-size:14px;color:var(--gray);font-weight:300;}

/* ---------- Services ---------- */
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.svc-card{
  background:#fff;border-radius:8px;overflow:hidden;border:1px solid #eef1f5;
  box-shadow:var(--shadow);transition:transform .25s;display:flex;flex-direction:column;
}
.svc-card:hover{transform:translateY(-6px);}
.img-ph{
  aspect-ratio:16/9;background:linear-gradient(135deg,#e9eef3,#dde4ec);
  display:flex;align-items:center;justify-content:center;color:#8ba0b4;
  font-size:13px;letter-spacing:.5px;position:relative;overflow:hidden;border-bottom:3px solid var(--blue);
}
.img-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.img-ph svg{width:40px;height:40px;stroke:#a9bccd;fill:none;stroke-width:1.3;margin-bottom:6px;}
.svc-body{padding:24px;display:flex;flex-direction:column;flex:1;}
.svc-body h3{font-size:18px;font-weight:600;color:var(--navy);margin-bottom:10px;}
.svc-body p{font-size:14px;color:var(--gray);font-weight:300;flex:1;}
.svc-body a.link{display:inline-flex;align-items:center;gap:6px;margin-top:16px;font-size:14px;font-weight:600;}
.svc-body a.link svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;}

/* ---------- Split (text + image) ---------- */
.split{display:grid;grid-template-columns:1.05fr 1fr;gap:60px;align-items:center;}
.split.rev .split-txt{order:2;}
.split-txt h2{font-size:34px;font-weight:700;line-height:1.3;color:var(--navy);margin-bottom:18px;}
.split-txt .eyebrow{font-size:13px;font-weight:600;letter-spacing:2px;color:var(--blue);text-transform:uppercase;margin-bottom:10px;}
.split-txt p{font-size:15px;font-weight:300;color:var(--gray);margin-bottom:16px;}
.check-list{list-style:none;margin:18px 0 26px;}
.check-list li{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px;font-size:15px;color:var(--steel);}
.check-list svg{width:20px;height:20px;stroke:var(--blue);fill:none;stroke-width:2;flex-shrink:0;margin-top:2px;}
.split-img{position:relative;}
.split-img .img-ph{aspect-ratio:4/3;border-radius:8px;border-bottom:4px solid var(--blue);box-shadow:var(--shadow);}
.float-num{
  position:absolute;right:-14px;bottom:-18px;background:var(--navy);color:#fff;border-radius:8px;
  padding:16px 20px;text-align:center;box-shadow:0 12px 30px rgba(9,44,71,.3);
}
.float-num b{display:block;font-size:26px;color:#4d9bff;line-height:1.1;}
.float-num span{font-size:12px;color:#c9d7e4;}

/* ---------- Process steps ---------- */
.steps{display:grid;grid-template-columns:repeat(5,1fr);gap:0;counter-reset:step;}
.step{position:relative;text-align:center;padding:0 14px;}
.step::before{
  counter-increment:step;content:counter(step,decimal-leading-zero);
  width:58px;height:58px;margin:0 auto 16px;border-radius:50%;background:var(--navy);color:#4d9bff;
  display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:600;position:relative;z-index:1;
}
.step::after{
  content:"";position:absolute;top:29px;left:calc(50% + 42px);right:calc(-50% + 42px);
  border-top:2px dashed #b9c9d8;z-index:0;
}
.step:last-child::after{display:none;}
.step h3{font-size:16px;font-weight:600;color:var(--navy);margin-bottom:6px;}
.step p{font-size:13px;color:var(--gray);font-weight:300;}

/* ---------- Materials ---------- */
.mat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.mat-card{
  background:#fff;border:1px solid #eef1f5;border-radius:8px;padding:26px 22px;text-align:center;transition:.25s;
}
.mat-card:hover{border-color:var(--blue);box-shadow:var(--shadow);transform:translateY(-4px);}
.mat-card .ico{width:52px;height:52px;margin:0 auto 14px;border-radius:50%;background:var(--pale);display:flex;align-items:center;justify-content:center;}
.mat-card .ico svg{width:26px;height:26px;stroke:var(--blue);fill:none;stroke-width:1.6;}
.mat-card h3{font-size:16px;font-weight:600;color:var(--navy);}
.mat-card p{font-size:13px;color:var(--gray);font-weight:300;margin-top:6px;}

/* ---------- Quality (single column, centered) ---------- */
.quality{display:grid;grid-template-columns:1fr;gap:16px;max-width:960px;margin:0 auto;}
.qual-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;background:#fff;border:1px solid #eef1f5;border-top:4px solid var(--blue);border-radius:8px;padding:30px 32px;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s;}
.qual-item:hover{transform:translateY(-4px);box-shadow:0 10px 28px rgba(9,44,71,.12);}
.qual-item .num{font-size:28px;font-weight:700;color:var(--blue);line-height:1.2;margin-bottom:4px;}
.qual-item h3{font-size:16px;font-weight:600;color:var(--navy);margin-bottom:4px;}
.qual-item p{font-size:13.5px;color:var(--gray);font-weight:300;max-width:640px;}

/* ---------- Cycle stats ---------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.stat{background:var(--navy);border-radius:8px;padding:34px 22px;text-align:center;color:#fff;}
.stat b{display:block;font-size:34px;font-weight:700;color:#4d9bff;line-height:1.1;}
.stat span{font-size:13px;color:#c9d7e4;display:block;margin-top:8px;}

/* ---------- Small batch (image-free cards) ---------- */
.batch-wrap{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.batch-card{border-radius:8px;box-shadow:var(--shadow);border:1px solid #eef1f5;border-top:4px solid var(--blue);background:#fff;transition:transform .25s,box-shadow .25s;}
.batch-card:hover{transform:translateY(-6px);box-shadow:0 14px 34px rgba(9,44,71,.14);}
.batch-body{padding:30px 28px;}
.qty{display:block;font-size:30px;font-weight:700;color:var(--blue);line-height:1.1;margin-bottom:14px;}
.qty small{display:block;font-size:12.5px;font-weight:500;color:var(--gray);letter-spacing:1px;text-transform:uppercase;margin-top:6px;}
.batch-body h3{font-size:17px;font-weight:600;color:var(--navy);margin-bottom:8px;}
.batch-body p{font-size:13.5px;color:var(--gray);font-weight:300;}

/* ---------- About ---------- */
.about-badges{display:flex;gap:20px;margin-top:26px;flex-wrap:wrap;}
.ab-badge{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:500;color:var(--navy);}
.ab-badge svg{width:30px;height:30px;stroke:var(--blue);fill:none;stroke-width:1.5;}

/* ---------- CTA band ---------- */
.cta-band{background:linear-gradient(135deg,var(--blue),#0b4fae);color:#fff;text-align:center;padding:64px 0;}
.cta-band h2{font-size:32px;font-weight:700;color:#fff;margin-bottom:12px;}
.cta-band p{font-weight:300;color:#dbe7f2;margin-bottom:28px;}
.cta-band .cta-btn{background:#fff;color:var(--navy);border-color:#fff;}
.cta-band .cta-btn:hover{background:var(--navy);color:#fff;border-color:var(--navy);}

/* ---------- Footer ---------- */
.footer{background:var(--navy) url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 60 0 0' stroke='%23ffffff' stroke-opacity='0.04' fill='none'/%3E%3C/svg%3E");color:#c9d7e4;}
.footer-top{padding:64px 0 40px;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;}
.footer h4{color:#fff;font-size:16px;font-weight:600;margin-bottom:18px;}
.footer p{font-size:14px;font-weight:300;line-height:1.7;}
.footer ul{list-style:none;}
.footer ul li{margin-bottom:10px;}
.footer ul a{color:#c9d7e4;font-size:14px;font-weight:300;}
.footer ul a:hover{color:#fff;}
.footer-contact li{display:flex;gap:10px;font-size:14px;font-weight:300;}
.footer-contact svg{width:17px;height:17px;stroke:#4d9bff;fill:none;stroke-width:1.6;flex-shrink:0;margin-top:3px;}
.footer-social{display:flex;gap:12px;margin-top:18px;}
.footer-social a{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;}
.footer-social svg{width:16px;height:16px;fill:#c9d7e4;}
.footer-social a:hover{background:var(--blue);}
.footer-social a:hover svg{fill:#fff;}
.footer-bottom{border-top:1px solid #1d4363;padding:20px 0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;font-size:13px;font-weight:300;color:#8fa7bb;}

/* ---------- Back to top ---------- */
.to-top{
  position:fixed;right:24px;bottom:24px;width:44px;height:44px;border-radius:var(--radius);
  background:var(--blue);color:#fff;border:none;cursor:pointer;font-size:20px;line-height:1;
  opacity:0;visibility:hidden;transition:.25s;z-index:90;box-shadow:0 8px 20px rgba(14,106,237,.4);
}
.to-top.show{opacity:1;visibility:visible;}
.to-top:hover{background:var(--navy);}

/* ---------- Responsive ---------- */
@media (max-width:921px){
  .nav-menu{display:none;}
  .hamburger{display:block;}
  .nav.open .nav-menu{
    display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:#fff;
    box-shadow:0 12px 30px rgba(9,44,71,.12);padding:14px 24px;border-top:1px solid #eef1f5;
  }
  .nav.open .has-dropdown .dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:none;padding-left:16px;}
  .adv-grid{grid-template-columns:repeat(2,1fr);}
  .svc-grid{grid-template-columns:repeat(2,1fr);}
  .split{grid-template-columns:1fr;gap:36px;}
  .split.rev .split-txt{order:0;}
  .steps{grid-template-columns:repeat(3,1fr);gap:28px 0;}
  .step::after{display:none;}
  .mat-grid{grid-template-columns:repeat(3,1fr);}
  .stats{grid-template-columns:repeat(2,1fr);}
  .batch-wrap{grid-template-columns:repeat(2,1fr);}
  .quality{grid-template-columns:1fr;}
  .footer-top{grid-template-columns:1fr 1fr;}
  .hero h1{font-size:38px;}
  .section-head h2{font-size:32px;}
  .split-txt h2{font-size:28px;}
}
@media (max-width:544px){
  .topbar .contact span:last-child{display:none;}
  .header-actions .search-wrap{display:none;}
  .hero .container{padding-top:64px;padding-bottom:76px;}
  .hero h1{font-size:30px;}
  .hero p.sub{font-size:16px;}
  .hero-badges{gap:20px;}
  .section{padding:56px 0;}
  .adv-grid,.svc-grid,.mat-grid,.stats,.batch-wrap{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr;}
  .footer-top{grid-template-columns:1fr;gap:30px;}
  .footer-bottom{justify-content:center;text-align:center;}
  .search-input{width:180px;}
}

/* ============================================================
   WordPress content & misc
   ============================================================ */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);}
.content-wrap{max-width:860px;}
.entry-title{font-size:34px;font-weight:700;color:var(--navy);line-height:1.3;margin-bottom:10px;}
.entry-meta{font-size:13px;color:var(--gray);margin-bottom:22px;}
.entry-thumb{margin-bottom:24px;border-radius:8px;overflow:hidden;}
.entry-thumb img{width:100%;height:auto;object-fit:cover;}
.entry-content{font-size:16px;line-height:1.75;color:var(--steel);}
.entry-content h2,.entry-content h3,.entry-content h4{color:var(--navy);margin:1.4em 0 .6em;font-weight:600;}
.entry-content h2{font-size:28px;}
.entry-content h3{font-size:22px;}
.entry-content img{max-width:100%;height:auto;border-radius:6px;}
.entry-content a{text-decoration:underline;}
.entry-content ul,.entry-content ol{margin:0 0 1.2em 1.4em;}
.entry-content blockquote{border-left:4px solid var(--blue);padding:6px 18px;color:var(--gray);margin:1.2em 0;background:var(--pale);}
.entry-content table{width:100%;border-collapse:collapse;margin:1.2em 0;}
.entry-content th,.entry-content td{border:1px solid #e5e9ee;padding:8px 12px;text-align:left;}
.entry-content th{background:var(--pale);color:var(--navy);}
.page-links{margin:24px 0;}
.blog-card{background:#fff;border:1px solid #eef1f5;border-radius:8px;padding:28px 30px;box-shadow:var(--shadow);margin-bottom:22px;}
.blog-title{font-size:22px;font-weight:600;color:var(--navy);}
.blog-title a{color:var(--navy);}
.blog-title a:hover{color:var(--blue);}
.blog-meta{font-size:13px;color:var(--gray);margin:6px 0 10px;}
.blog-excerpt{color:var(--steel);font-weight:300;margin-bottom:10px;}
.pagination{margin:30px 0 10px;text-align:center;}
.pagination .nav-links{display:inline-flex;gap:8px;flex-wrap:wrap;justify-content:center;}
.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid #e5e9ee;border-radius:var(--radius);color:var(--steel);background:#fff;}
.pagination .page-numbers.current{background:var(--blue);border-color:var(--blue);color:#fff;}
.pagination a.page-numbers:hover{border-color:var(--blue);color:var(--blue);}
.comments-area{margin-top:44px;border-top:1px solid #eef1f5;padding-top:28px;}
.comments-title{font-size:20px;color:var(--navy);margin-bottom:16px;}
.comment-list{list-style:none;margin:0 0 24px;}
.comment-list li.comment{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #eef1f5;}
.comment-list .comment-author b{color:var(--navy);}
.comment-list .comment-metadata{font-size:12.5px;color:var(--gray);}
.comment-form label{display:block;font-weight:500;color:var(--navy);margin:10px 0 4px;}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;max-width:560px;padding:10px 12px;border:1px solid #d8dee6;border-radius:var(--radius);font-family:inherit;font-size:15px;}
.comment-form .submit{background:var(--blue);color:#fff;border:none;border-radius:var(--radius);padding:12px 28px;font-size:14px;font-weight:600;cursor:pointer;font-family:inherit;}
.comment-form .submit:hover{background:var(--navy);}
.search-form{display:flex;gap:8px;margin:20px 0;}
.search-form .search-field{flex:1;max-width:420px;padding:10px 14px;border:1px solid #d8dee6;border-radius:var(--radius);font-family:inherit;font-size:15px;}
.search-form .search-submit{background:var(--blue);color:#fff;border:none;border-radius:var(--radius);padding:10px 22px;font-weight:600;cursor:pointer;font-family:inherit;}
.search-form .search-submit:hover{background:var(--navy);}
.custom-block{background:#fff;}
.custom-block iframe{max-width:100%;}
.aligncenter{display:block;margin-left:auto;margin-right:auto;}
.alignleft{float:left;margin-right:1em;}
.alignright{float:right;margin-left:1em;}
.wp-caption-text{font-size:13px;color:var(--gray);text-align:center;padding:6px 0;}
.bypostauthor{position:relative;}

@media (max-width:544px){
  .entry-title{font-size:26px;}
}

/* ---------- Custom code block ---------- */
.custom-block-title{font-size:28px;font-weight:700;color:var(--navy);text-align:center;margin:0 0 24px;}
.custom-block h3,.custom-block h4{color:var(--navy);font-weight:600;margin:1.2em 0 .5em;}

/* ---------- Mobile refinements ---------- */
@media (max-width:921px){
  .hero h1{font-size:34px;}
  .section-head h2{font-size:28px;}
  .split-txt h2{font-size:26px;}
}
@media (max-width:544px){
  .header .cta-btn{display:none;}
  .hero .container{padding-top:56px;padding-bottom:64px;}
  .hero h1{font-size:28px;line-height:1.3;}
  .hero p.sub{font-size:15px;}
  .hero-ctas .cta-btn{width:100%;text-align:center;}
  .hero-badges{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px;margin-top:40px;}
  .hero-badge{font-size:12.5px;}
  .hero-badge b{font-size:14px;}
  .float-num{right:8px;bottom:-16px;padding:12px 14px;}
  .float-num b{font-size:20px;}
  .float-num span{font-size:11px;}
  .steps .step{padding:10px 6px;}
  .steps .step::before{margin-bottom:12px;}
  .section-head h2{font-size:24px;}
  .split-txt h2{font-size:22px;}
  .entry-title{font-size:24px;}
  .entry-content table{display:block;overflow-x:auto;white-space:nowrap;}
  .footer-top{gap:26px;}
  .footer-bottom{flex-direction:column;gap:6px;text-align:center;}
  .custom-block-title{font-size:24px;}
}

/* Hero with custom background image */
.hero.has-bg{background-size:cover;background-position:center;}
.hero.has-bg::before{background:linear-gradient(160deg,rgba(9,44,71,.88),rgba(9,44,71,.6));}

/* ---------- Sticky header enhancements ---------- */
/* Offset anchor jumps so the fixed header never covers section titles. */
html{scroll-padding-top:86px;}
/* Fallback for browsers without sticky support. */
@supports not (position:sticky){
  .header{position:fixed;top:0;left:0;right:0;}
  body{padding-top:70px;}
}
.header.scrolled{box-shadow:0 4px 18px rgba(9,44,71,.14);}

/* ---------- Archive grid (image + text) ---------- */
.archive-grid{display:grid;gap:26px;}
.archive-grid.cols-1{grid-template-columns:1fr;}
.archive-grid.cols-2{grid-template-columns:repeat(2,1fr);}
.archive-grid.cols-3{grid-template-columns:repeat(3,1fr);}
.archive-grid.cols-4{grid-template-columns:repeat(4,1fr);}
.archive-card{background:#fff;border:1px solid #eef1f5;border-radius:8px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .25s,box-shadow .25s;}
.archive-card:hover{transform:translateY(-6px);box-shadow:0 14px 34px rgba(9,44,71,.14);}
.archive-thumb{display:block;aspect-ratio:16/10;overflow:hidden;border-bottom:3px solid var(--blue);position:relative;}
.archive-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.archive-body{padding:20px 22px;display:flex;flex-direction:column;flex:1;}
.archive-body h3{font-size:17px;font-weight:600;color:var(--navy);margin-bottom:4px;}
.archive-body h3 a{color:var(--navy);}
.archive-body h3 a:hover{color:var(--blue);}
.archive-meta{font-size:12.5px;color:var(--gray);margin-bottom:8px;}
.archive-body p{font-size:13.5px;color:var(--gray);font-weight:300;flex:1;margin-bottom:12px;}
.archive-body .link{margin-top:auto;font-size:14px;font-weight:600;}
@media (max-width:921px){
  .archive-grid{grid-template-columns:repeat(2,1fr)!important;}
}
@media (max-width:544px){
  .archive-grid{grid-template-columns:1fr!important;}
}

/* ---------- Post navigation ---------- */
.post-nav{display:flex;justify-content:space-between;gap:16px;margin-top:36px;padding-top:20px;border-top:1px solid #eef1f5;font-size:14px;font-weight:500;}
.post-nav a{color:var(--navy);}
.post-nav a:hover{color:var(--blue);}
.post-nav-next{text-align:right;}

/* ---------- Page banner (hero-style header for Pages) ---------- */
.page-hero{position:relative;background-size:cover;background-position:center;border-radius:8px;overflow:hidden;padding:84px 24px;margin-bottom:30px;text-align:center;}
.page-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(9,44,71,.88),rgba(9,44,71,.6));}
.page-hero-inner{position:relative;z-index:1;max-width:800px;margin:0 auto;}
.page-hero .entry-title{color:#fff;font-size:32px;font-weight:700;line-height:1.3;margin-bottom:0;}
@media (max-width:544px){
  .page-hero{padding:56px 18px;}
  .page-hero .entry-title{font-size:24px;}
}
