:root{
  --max: 1100px;
  --pad: 18px;
  --radius: 14px;

  /* Brand */
  --brand: #4da3d9;       /* accent blue */
  --brand-dark: #1f2933;  /* deep slate */
  --brand-muted: #6b7280; /* muted gray */

  /* UI */
  --border: #e6e6e6;
  --text: #111;
  --muted: #666;
  --bg: #fff;
  --card: #fafafa;

  /* Header/Footer background */
  --chrome: #C4C5BA;
}

/* =========================
   Base
========================= */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.muted{ color: var(--muted); }
.sr-only{ position:absolute; left:-9999px; }

a {
  color: var(--text);
  text-decoration: none;	
}

/* =========================
   Layout
========================= */
.content-wrap{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  padding: 28px 0;
}
@media (max-width: 900px){
  .content-wrap{ grid-template-columns: 1fr; }
}

/* =========================
   Header / Navigation
========================= */
.site-header{
  background: var(--chrome);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height: 64px;
  gap: 16px;
}

/* Brand */
.brand{ display:flex; align-items:center; }
.brand img{ max-height: 42px; width:auto; }

.site-title{
  text-decoration:none;
  color: var(--brand-dark);
  line-height: 1;
  letter-spacing: 0.01em;
  font-size: 1.45rem;
  font-weight: 600;
}

/* Menu */
.menu{
  list-style:none;
  display:flex;
  gap: 14px;
  margin:0;
  padding:0;
}
.menu a{
  text-decoration:none;
  color: var(--brand-dark);
  font-weight: 500;
  padding: 10px 10px;
  border-radius: 10px;
}
.menu a:hover{
  color: var(--brand);
  background: transparent;
}

/* Mobile toggle */
.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  padding:10px 12px;
  border-radius: 12px;
}

/* Dropdowns */
.site-nav .menu,
.site-nav .menu ul{
  list-style:none;
  margin:0;
  padding:0;
}
.site-nav .menu{ gap: 20px; }
.site-nav .menu li{ position: relative; }
.site-nav .menu li > ul{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  z-index: 100;
}
.site-nav .menu li:hover > ul{ display: flex; }
.site-nav .menu li > ul li a{
  display:block;
  padding: 10px 16px;
  white-space: nowrap;
}
.site-nav .menu li.menu-item-has-children > a::after{
  content: " ▾";
  font-size: 0.75em;
}

/* Mobile nav behavior */
@media (max-width: 900px){
  .nav-toggle{ display:inline-flex; }
  .site-nav{ display:none; }
  .site-nav.is-open{ display:block; }
  .menu{ flex-direction:column; padding: 10px 0; }
  .site-title{ font-size: 1.5rem; }

  /* disable hover dropdown, use JS toggle class */
  .site-nav .menu li > ul{
    display:none;
    position: static;
    box-shadow:none;
    border:0;
    padding: 0 0 0 14px;
  }
  .site-nav .menu li.submenu-open > ul{ display:block; }
}

/* =========================
   Cards (generic)
========================= */
.card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  overflow:hidden;
  margin: 0 0 18px;
}
.card-body{ padding: 16px; }
.card-text{ color: var(--muted); }

/* =========================
   Homepage Post Teasers
========================= */
.post-teaser{ margin: 0 0 18px; }

.post-teaser-title{
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}
.post-teaser-title a{
  color: var(--brand-dark) !important;
  text-decoration: none;
}
.post-teaser-title a:hover{ color: var(--brand); }

.post-teaser-header .meta{
  font-size: 0.9rem;
  color: var(--brand-muted);
}

/* Optional category accents */
.category-ai .post-teaser-title a{ color:#2563eb; }
.category-data .post-teaser-title a{ color:#0f766e; }
.category-web .post-teaser-title a{ color:#7c3aed; }

/* Lede card: image + excerpt side-by-side */
.card--lede{ padding: 16px; }
.card-lede{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items:start;
}
.card-media{ display:block; }
.card-img{
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display:block;
}

/* Prevent double padding since the card has padding already */
.card--lede .card-body{ padding: 0; }
.card--lede .card-text{
  margin: 0;
  line-height: 1.65;
}

/* No-image posts: full width text */
.card--lede.no-media .card-lede{ display:block; }

/* Mobile */
@media (max-width: 900px){
  .card-lede{ grid-template-columns: 1fr; }
}


/* =========================
   Hero Slider
========================= */

/* Wrapper background/frame */
.hero-section{
  background: #f5f6f3;
  padding: 22px;
  border-radius: var(--radius);
  margin: 18px 0 22px;
}

/* Slider card */
.hero-slider{
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  margin: 0; /* wrapper controls spacing */
}

.hero-track{
  display: flex;
  transition: transform 400ms ease;
  will-change: transform;
}

.hero-slide{
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding: 18px;
  align-items: center;
}

.hero-media a{ display:block; }

/* Make images consistent and “designed” */
.hero-img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  height: auto; /* safe fallback */
}

.hero-img--placeholder{
  aspect-ratio: 16 / 9;
  background: #e9eef5;
  border-radius: 12px;
}

.hero-title{
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}
.hero-title a{ color: inherit; text-decoration: none; }
.hero-title a:hover{ color: var(--brand); }

.hero-excerpt{ margin: 0 0 12px; color: var(--muted); }
.hero-cta{ display: inline-block; text-decoration: none; font-weight: 600; color: var(--brand); }

/* Nav buttons */
.hero-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 5;
}
.hero-prev{ left: 12px; }
.hero-next{ right: 12px; }

/* Dots */
.hero-dots{
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px 0 14px;
  border-top: 1px solid var(--border);
  background: transparent; /* blend with wrapper */
}
.hero-dots button{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: #cfd8e3;
  cursor: pointer;
}
.hero-dots button.is-active{ background: var(--brand); }

@media (max-width: 900px){
  .hero-slide{ grid-template-columns: 1fr; padding: 14px; }
  .hero-nav{ display: none; }
}


/* =========================
   Sidebar
========================= */
.sidebar .widget{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  background: #FFF;
}

.sidebar .widget,
#secondary .widget,
.widget-area .widget {
  background: #F0EFEB;
}


/* =========================
   Single Post
========================= */
.prose h1{ margin-top: 0; }

/* Float image with text wrapping (used by content-single.php) */
.post-body.post-body--float{
  display: block;       /* IMPORTANT: overrides any grid layout */
  margin-top: 18px;
}

.post-body.post-body--float .post-body-media{
  margin: 0 0 14px 0;
}

.post-body.post-body--float .post-body-media.is-left{
  float: left;
  width: min(420px, 45%);
  margin: 0 22px 14px 0;
}

.post-body.post-body--float .post-body-media.is-right{
  float: right;
  width: min(420px, 45%);
  margin: 0 0 14px 22px;
}

.post-body.post-body--float .post-body-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Clear float */
.post-body.post-body--float::after{
  content:"";
  display:block;
  clear:both;
}

/* Mobile stacks */
@media (max-width: 900px){
  .post-body.post-body--float .post-body-media.is-left,
  .post-body.post-body--float .post-body-media.is-right{
    float: none;
    width: 100%;
    margin: 0 0 14px 0;
  }
}

/* =========================
   Footer
========================= */
.site-footer{
  padding: 22px 0;
  background: var(--chrome);
  border-top: none;
}
.site-footer a{
  color: var(--brand-dark);
  text-decoration:none;
}
.site-footer a:hover{ color: var(--brand); }

.site-footer .muted{ color: #6E5034; }

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 28px 0;
}
.footer-menu{
  display:flex;
  gap:18px;
  flex-wrap: wrap;
}

@media (max-width: 900px){
  .footer-inner{
    justify-content:center;
    text-align:center;
  }
  .footer-inner p{
    width:100%;
    text-align:center;
  }
}

/* =========================
   Elementor compatibility
========================= */
.elementor .card{ max-width:none; }
.elementor{ width:100%; }

/* Wider container for Elementor pages WITH sidebar */
.elementor-with-sidebar.container{ max-width: 1280px; }
.elementor-with-sidebar.content-wrap{ grid-template-columns: minmax(0, 1fr) 300px; }
.elementor-with-sidebar .main-content{ min-width: 0; }
.elementor-with-sidebar .elementor-section.elementor-section-boxed > .elementor-container{
  max-width: 100% !important;
}

/* =========================
   Dynamic list shortcode
========================= */
.pro-list{ margin:0; padding-left: 18px; }
.pro-list-item{ margin: 6px 0; }
.pro-list-date{ font-size: 0.92em; }

/* =========================
   Mobile overflow fix (global)
   Put this at the END of main.css
========================= */

/* 1) Never allow the page to be wider than the viewport */
html, body{
  max-width: 100%;
  overflow-x: hidden;
}

/* 2) Grid children are allowed to shrink (prevents overflow in CSS grid) */
.content-wrap > *,
.hero-slide > *,
.card-lede > *{
  min-width: 0;
}

/* 3) Media/embeds must never exceed container width */
img, svg, video, canvas{
  max-width: 100%;
  height: auto;
}
iframe, embed, object{
  max-width: 100%;
}

/* 4) Text that can be insanely long (URLs, code, headings) must wrap */
*{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 5) Code blocks & preformatted text should scroll instead of stretching layout */
pre, code, kbd, samp{
  max-width: 100%;
}
pre{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 6) Tables often cause horizontal overflow on mobile */
table{
  max-width: 100%;
}
.prose table{
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px){
  .content-wrap{
    padding-left: var(--pad);
    padding-right: var(--pad);
  }
}

/* 7) Slightly tighten hero wrapper padding on phones */
@media (max-width: 600px){
  .hero-section{
    padding: 12px;
  }
}



/* HERO: padding + inner grid can cause overflow on small screens */
@media (max-width: 600px){
  :root{
    --pad: 14px; /* slightly tighter on small phones */
  }

  .hero-section{
    padding: 14px; /* was 22px */
  }

  .hero-slide{
    padding: 14px; /* already 14px at <=900, but enforce for very small */
  }
  
}


/* =========================
   pro_list typography fix
========================= */
/*
.pro-list-title {
  line-height: inherit;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 12px;
}
*/

.pro-list a{
  color: var(--text);          /* same as body text */
  text-decoration: none;       /* remove underline */
  font-weight: 400;            /* normal body weight */
}

.pro-list a:hover{
  color: var(--brand);         /* subtle interaction */
  text-decoration: underline;  /* optional */
}

.pro-list a{
  color: var(--muted);
}

.pro-list a:hover{
  color: var(--brand-dark);
}

.pro-list{
  font-size: inherit;
  line-height: inherit;
}

.pro-list a{
  color: var(--text);
  text-decoration: none;
  font-family: inherit;
  line-height: inherit;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.55;
}

.pro-list a:hover{
  color: var(--brand);
}

/*
 *
 *Style WPForms
 *
 */
/* =========================
   Contact Form 7 – Theme Integration
========================= */
wpcf7, .wpcf7-form {
    width: 100% !important;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea,
.wpcf7 select {
    box-sizing: border-box; /* Ensures padding/border are included in the width calculation */
    width: 100% !important;
    max-width: 100% !important; /* Fixes potential issues with fixed max-widths */
    padding: 10px; /* Adjust padding as needed */
}

/*
 *
 *Style breadcrumbs
 *
 */
/* =========================
   breadcrumbs– Theme Integration
========================= */
/* Breadcrumbs (strong reset) */
.breadcrumbs { 
  margin: 10px 0 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

.breadcrumbs ol,
.breadcrumbs ul{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumbs li{
  margin: 0 !important;
  padding: 0 !important;
}

/* Separator via CSS instead of extra list items */
.breadcrumbs-item:not(.is-current)::after{
  content: "→";
  margin-left: 6px;
  color: var(--brand-muted);
}

.breadcrumbs-link{
  color: var(--brand-dark);
  text-decoration: none;
}

.breadcrumbs-link:hover{
  color: var(--brand);
  text-decoration: underline;
}

.breadcrumbs-current{
  color: var(--muted);
}

/* Breadcrumbs */
.pro-breadcrumbs{
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

.pro-breadcrumbs ol{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pro-breadcrumbs li{
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.pro-breadcrumbs li + li::before{
  content: "›";
  margin: 0 8px;
  color: #9aa0a6;
}

.pro-breadcrumbs a{
  color: inherit;
  text-decoration: none;
}

.pro-breadcrumbs a:hover{
  color: var(--brand);
  text-decoration: underline;
}

/* =========================
   Breadcrumbs
========================= */
nav.breadcrumbs {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

nav.breadcrumbs ol.breadcrumbs-list {
  list-style: none;          /* 🔑 removes 1. 2. 3. */
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav.breadcrumbs li.breadcrumbs-item {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

nav.breadcrumbs li.breadcrumbs-item + li.breadcrumbs-item::before {
  content: "›";
  margin: 0 8px;
  color: #9aa0a6;
}

nav.breadcrumbs a.breadcrumbs-link {
  color: inherit;
  text-decoration: none;
}

nav.breadcrumbs a.breadcrumbs-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

nav.breadcrumbs .is-current {
  font-weight: 500;
  color: var(--text);
}

/*
 *
 * Code Snippet style
 *
 */

.pro-snippet-pre{
  overflow:auto;
  padding:16px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
}
.pro-snippet-wrap pre[class*="language-"]{
  margin:0;
}

.snippet-card{
  background: var(--card, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 18px;
  margin: 0 0 18px;
}

.snippet-card__title{
  margin: 0 0 8px;
  line-height: 1.15;
}

.snippet-card__title a{
  color: var(--text);
  text-decoration: none;
}

.snippet-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.snippet-badge{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  font-size: 13px;
}

.snippet-dot{ opacity: .6; }

.snippet-card__terms{
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.snippet-term{
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.snippet-term:hover{
  border-bottom-color: currentColor;
}

.snippet-card__code{
  margin-top: 14px;
}

.snippet-pre{
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

.snippet-card__footer{
  margin-top: 12px;
}

.snippet-card__more{
  text-decoration: none;
  font-weight: 600;
}
