/*
Theme Name: sweeps
Template: twentysixteen
*/

@import url("../twentysixteen/style.css");

/* ============================================================
   1) Base / Site Shell
============================================================ */
body{
  background: #C5E8FA url(img/bgpat.png) repeat-x;
  font: 100% Georgia, "Times New Roman", Arial, Helvetica, sans-serif;
}

.site{
  background: #C5E8FA url(img/bgpat.png) repeat-x;
}

/* Always give topbar a visible separation line */
.cb-topbar{
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Slightly stronger on single posts */
body.single-post .cb-topbar{
  background: rgba(255,255,255,0.78);
}


.site-inner{
  background:#fff;
  max-width:1280px;
}

/* small spacing below header */
.site-content{
  padding-top:18px;
}

/* We are using our own topbar + drawer, so hide Twenty Sixteen header menu UI */
.menu-toggle,
.site-header-menu{
  display:none !important;
}

/* ============================================================
   2) Hero + Topbar
============================================================ */
:root{ --cb-topbar-h:108px; }
@media (max-width:700px){ :root{ --cb-topbar-h:104px; } }

.cb-header{ padding:0 !important; }

/* Hero background (home + category + hub + bsmart when enabled in header.php) */
.cb-hero--home{
  /* min-height:340px;*/
  background-size:cover;
  background-repeat:no-repeat;
  background-position:92% 100%;
  position:relative;
}

/* Readability gradient over hero image */
.cb-hero--home::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.85) 0%,
    rgba(255,255,255,0.64) 42%,
    rgba(255,255,255,0.5) 72%,
    rgba(255,255,255,0.35) 88%
  );
  pointer-events:none;
  z-index:1;
}

/* Plain header area for non-hero pages */
.cb-hero--plain{
  height:120px;
  background:transparent;
  box-shadow:none;
  margin:18px auto 0 auto;
}

/* Topbar */
.cb-topbar{
  position:absolute;
  top:0; left:0; right:0;
  height:var(--cb-topbar-h);
  z-index:3;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;

  background: rgba(255,255,255,0.48);
}

.cb-topbar__left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.cb-logo img{ display:block; }

.cb-brand{ min-width:0; }

.cb-brand__name a{
  text-decoration:none;
  box-shadow:none;
  font-weight:800;
  font-size:38px;
  color:#2d7cc5;
  line-height:1;
}

.cb-brand__tagline{
  margin-top:6px;
  font-size:14px;
  color:#5d5d5d;
}

/* Hamburger button */
.cb-menu-btn{
  width:54px;
  height:54px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.cb-menu-icon{
  width:22px;
  height:2px;
  background:#2e2e2e;
  border-radius:2px;
  position:relative;
  display:block;
}

.cb-menu-icon::before,
.cb-menu-icon::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background:#2e2e2e;
  border-radius:2px;
}
.cb-menu-icon::before{ top:-7px; }
.cb-menu-icon::after{ top:7px; }

/* Hero text */
.cb-hero__content{
  position:relative;
  z-index:2;
  padding: calc(var(--cb-topbar-h) + 20px) 26px 26px 26px;
  max-width:1200px;
}

/* IMPORTANT: cap H1 on large desktops */
.cb-hero__title{
  margin:30px 0 20px 0;
  color:#23313b;
  letter-spacing:-0.02em;
  max-width:75%;
  font-size: clamp(34px, 3.0vw, 48px); /* max = 48px */
  line-height:1.05;
}

.cb-hero__subtitleWrap{ margin-top:8px; max-width:62%; }

.cb-hero__subtitle{
  display:inline-block;
  margin:0;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,0.92);
  border:1px solid rgba(0,0,0,0.06);
  color:#2e2e2e;
  font-size:16px;
  line-height:1.35;
}

/* Responsive hero tweaks */
@media (max-width:900px){
  .cb-hero--home{ min-height:240px; background-position:center bottom; }
  .cb-brand__name a{ font-size:28px; }

  .cb-hero__content{ padding: calc(var(--cb-topbar-h) + 16px) 18px 18px 18px; }

  .cb-hero__title{
    max-width:100%;
    text-align:center;
    font-size: clamp(28px, 7vw, 40px);
  }

  .cb-hero__subtitleWrap{ max-width:100%; text-align:center; }
  .cb-hero__subtitle{ border-radius:16px; }
}

/* ============================================================
   3) Drawer + Overlay
============================================================ */
.cb-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.28);
  z-index:9998;
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease;
}

.cb-drawer{
  position:fixed;
  top:0;
  right:0;
  width:min(360px, 92vw);
  height:100vh;
  z-index:9999;

  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: -20px 0 50px rgba(0,0,0,0.25);

  transform: translateX(110%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);

  padding:14px 18px 24px;
  overflow-y:auto;
}

.cb-drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 0 12px 0;
  border-bottom:1px solid rgba(0,0,0,0.08);
  margin-bottom:10px;
}

.cb-drawer__title{ font-size:16px; letter-spacing:.02em; }

.cb-drawer__close{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.95);
  cursor:pointer;
}

body.cb-drawer-open .cb-drawer{ transform: translateX(0); }
body.cb-drawer-open .cb-overlay{ opacity:1; pointer-events:auto; }
body.cb-drawer-open{ overflow:hidden; }

.cb-drawer__menu,
.cb-drawer .menu,
.cb-drawer .menu ul{
  list-style:none;
  margin:12px 0 0 0;
  padding:0;
}

.cb-drawer__menu li,
.cb-drawer .menu li{
  margin:0;
  padding:0;
  border-bottom:1px solid rgba(0,0,0,0.06);
}

.cb-drawer__menu a,
.cb-drawer .menu a{
  display:block;
  padding:14px 8px;
  text-decoration:none;
  box-shadow:none;
  color:#1f2a33;
  font-weight:700;
}

/* ============================================================
   4) Homepage / Shared “Card” UI
   (This is the part that makes hub row + latest look like your design)
============================================================ */

/* Section head */
.cb-section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin: 8px 0 10px 0;
}
.cb-more-link{ font-weight:600; text-decoration:none; }

/* Hub cards row */
.cb-hub-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
  margin: 8px 0 22px 0;
}
@media (max-width:720px){
  .cb-hub-row{ grid-template-columns: 1fr; }
}

.cb-hub-card{
  display:block;
  border-radius:18px;
  overflow:hidden;
  background:#eef6ff;
  box-shadow: 0 14px 40px rgba(0,0,0,0.10);
  text-decoration:none;
  box-shadow:none; /* prevent twentysixteen link shadow */
}

.cb-hub-card-inner{
  padding:18px;
  min-height:118px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  background: rgba(255,255,255,0.72);
  text-align:center;
  align-items:center;
}

.cb-hub-card h2{
  margin:0 0 6px 0;
  font-size:28px;
  color:#1f2a33;
}

.cb-hub-card p{
  margin:0;
  color:#2d3a45;
  line-height:1.35;
}

/* IMPORTANT: use ROOT-RELATIVE URLs so dev/live won’t break */
.cb-hub-money{
  background: url(/wp-content/uploads/2026/01/Win-Money.png) center/cover no-repeat;
}
.cb-hub-travel{
  background: url(/wp-content/uploads/2026/01/Win-Travel.png) center/cover no-repeat;
}

/* Main “Latest” card container */
.cb-latest{
  background:#fff;
  border-radius:18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  padding:16px 18px;
  margin: 0 0 22px 0;
}

/* Classic post rows (homepage style) */
.cb-postrow{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:22px;
  align-items:start;
  padding:18px 0;
  border-top:1px solid rgba(0,0,0,0.06);
}
.cb-postrow:first-of-type{ border-top:0; padding-top:10px; }

.cb-datebadge{
  background:#2f2f2f;
  border-radius:10px;
  padding:18px 16px;
  min-height:70px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}
.cb-datebadge__text{
  color:#ffe800;
  font-weight:800;
  font-size:18px;
  display:block;
}

.cb-posttitle{
  margin:0 0 10px 0;
  font-size:28px;
  line-height:1.1;
}
.cb-posttitle a{ text-decoration:none; box-shadow:none; }

.cb-postcontent{
  font-size:17px;
  line-height:1.55;
}
.cb-postcontent p{ margin:0 0 12px 0; }
.cb-postcontent a{ font-weight:700; }

@media (max-width:900px){
  .cb-postrow{ grid-template-columns: 1fr; }
}

/* ============================================================
   5) Guides Tiles (the 3 small tiles)
============================================================ */
.cb-guides--tiles h2{ margin: 6px 0 12px 0; }

.cb-guide-tiles{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
@media (max-width:900px){
  .cb-guide-tiles{ grid-template-columns: 1fr; }
}

.cb-guide-tile{
  display:block;
  text-decoration:none;
  box-shadow:none;

  background:#f3f6ff;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.06);
  overflow:hidden;
}

.cb-guide-tile__img{
  height:86px;
  background-size:cover;
  background-position:center;
  background-color:#e9eef6;
}

@media (max-width:900px){
  .cb-guide-tile__img{ height:120px; }
}

.cb-guide-tile__body{ padding:10px 12px 12px; }

.cb-guide-tile__body h3{
  margin:0 0 6px 0;
  font-size:18px;
  line-height:1.15;
  color:#1f2a33;
  font-weight:800;
}

.cb-guide-tile__body p{
  margin:0 0 10px 0;
  font-size:14px;
  line-height:1.35;
  color:#2d3a45;
}

.cb-guide-tile__cta{
  font-size:14px;
  font-weight:700;
  color:#2b74c7;
}

.cb-guide-tile:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  transition: transform .15s ease, box-shadow .15s ease;
}

/* ============================================================
   6) Sidebar “card” boxes
============================================================ */
.cb-sidebox{
  background:#fff;
  border-radius:18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  padding:14px 16px;
  margin: 0 0 18px 0;
}
.cb-sidebox h3{ margin:0 0 10px 0; }
.cb-sidebox ul{ margin:0; padding:0; list-style:none; }
.cb-sidebox li{ margin:0 0 8px 0; }
.cb-sidebox a{ text-decoration:none; font-weight:600; box-shadow:none; }

/* ============================================================
   7) Category archive “classic” loop
============================================================ */
.cb-classic-post{
  padding:18px 0;
  border-top:1px solid rgba(0,0,0,0.06);
}
.cb-classic-post:first-child{ border-top:0; padding-top:6px; }

.cb-classic-grid{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:18px;
  align-items:start;
}

.cb-date-badge{
  background:#2a2a2a;
  border-radius:10px;
  overflow:hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

.cb-date-badge__inner{
  padding:16px 16px;
  color:#ffe800;
  font-weight:800;
  font-size:18px;
}

.cb-classic-title{
  margin:0 0 10px 0;
  font-size:28px;
  line-height:1.1;
}
.cb-classic-title a{
  text-decoration:none;
  box-shadow:none;
  color:#2b74c7;
  color:#4284b7;
  font-weight:800;
}

.cb-classic-content{
  color:#1e1e1e;
  line-height:1.65;
}

@media (max-width:900px){
  .cb-classic-grid{ grid-template-columns: 1fr; }
  .cb-date-badge{ width:100%; }
}

/* ============================================================
   8) Hub “2-col grid wrapper” (category + some templates)
   Use ONLY when markup wraps content in .hub-content-area
============================================================ */
.hub-content-area{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap:22px;
  align-items:start;
}

/* neutralize twentysixteen floats INSIDE hub grid only */
.hub-content-area #secondary,
.hub-content-area .sidebar,
.hub-content-area .site-main{
  float:none !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  min-width:0;
}

@media (max-width:980px){
  .hub-content-area{ grid-template-columns: 1fr; }
}

/* ============================================================
   9) Pagination
============================================================ */
.cb-pager{ padding:14px 6px 0 6px; }

.cb-pager .page-numbers{
  display:inline-block;
  margin:0 6px 6px 0;
  padding:8px 12px;
  border-radius:12px;
  background: rgba(66,132,183,0.08);
  text-decoration:none;
  box-shadow:none;
  font-weight:700;
}

.cb-pager .page-numbers.current{
  background: rgba(66,132,183,0.20);
}

/* ============================================================
   10) Homepage: 1-column layout + sidebar boxed below fold
============================================================ */
@media screen and (min-width:56.875em){
  body.home .content-area,
  body.home #primary{
    float:none !important;
    width:auto !important;
    margin:0 !important;
  }

  body.home #secondary{
    float:none !important;
    width:auto !important;
    margin-left:0 !important;
    clear:both !important;
  }
}

body.home #secondary{ margin-top:22px; }

@media (min-width:900px){
  body.home #secondary.sidebar.widget-area{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:18px;
    align-items:start;
  }
  body.home #secondary .cb-sidebox{ margin:0; }
}

@media (max-width:899px){
  body.home #secondary.sidebar.widget-area{ display:block; }
}

/* ============================================================
   11) Hub pages (page-hub.php): 1 column + sidebar boxed below fold
============================================================ */
.page-template-page-hub .hub-content-area{ grid-template-columns: 1fr; }

@media screen and (min-width:56.875em){
  .page-template-page-hub .content-area,
  .page-template-page-hub #primary{
    float:none !important;
    width:auto !important;
    margin:0 !important;
  }

  .page-template-page-hub #secondary{
    float:none !important;
    width:auto !important;
    margin-left:0 !important;
    clear:both !important;
  }
}

.page-template-page-hub #secondary{ margin-top:22px; }

@media (min-width:900px){
  .page-template-page-hub #secondary.sidebar.widget-area{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:18px;
    align-items:start;
  }
  .page-template-page-hub #secondary .cb-sidebox{ margin:0; }
}

@media (max-width:899px){
  .page-template-page-hub #secondary.sidebar.widget-area{ display:block; }
}

/* ============================================================
   12) Single posts: polish + date pill (for your “wrong chat” edits)
============================================================ */
body.single-post .entry-content{
  font-size:18px;
  line-height:1.75;
}

/* ============================================================
   SINGLE POSTS: visual separation between topbar and content
============================================================ */

/* Give the single post header area a subtle "band" below the top bar */
body.single-post .cb-hero--plain{
  height: 110px;                 /* keeps spacing consistent */
  background: #f4f7fb;           /* subtle separation band */
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin: 0 auto 0 auto;         /* remove extra gap so it feels intentional */
}

/* Give the default page header area a subtle "band" below the top bar */
body.page-template-default .cb-hero--plain{
  height: 110px;                 /* keeps spacing consistent */
  background: #f4f7fb;           /* subtle separation band */
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin: 0 auto 0 auto;         /* remove extra gap so it feels intentional */
}


/* If your topbar is absolute inside the hero area, this helps it read as a layer */
body.single-post .cb-topbar{
  background: rgba(255,255,255,0.70);  /* slightly less transparent on singles */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Mobile: make the date badge full-width on single posts */
@media (max-width: 720px){
  body.single-post .cb-post-date{
    display:block;
    width:100%;
    text-align:left;
    font-size:16px;

    background:#2a2a2a;
    color:#ffe800;
    opacity:1;

    border:0;
    border-radius:12px;
    padding:12px 14px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
  }
}

/* Post date styled like your black/yellow badges (but compact) */
.cb-post-meta{ margin: 0 0 14px; }
.cb-post-date{
  display:inline-block;
  background:#2f2f2f;
  color:#ffe800;
  font-weight:800;
  font-size:14px;
  padding:8px 12px;
  border-radius:12px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Sidebar widgets on single posts: match your card look */
body.single-post .widget{
  background:#fff;
  border-radius:18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  padding:14px 16px;
}
body.single-post .widget + .widget{ margin-top:18px; }

/* ============================================================
   13) Footer
============================================================ */
.site-main{ margin-bottom:3em !important; }
.site-footer{ border-top: medium double #ddd; padding-top:20px; }


