/* =========================================================
   Complete Business Start-up v2 — Custom Styles
   Brand palette:
     --cbs-dark:    #012C43  (navy — header/footer)
     --cbs-primary: #107896  (teal-blue — links, buttons)
     --cbs-warm:    #FFF5E4  (cream — hero/aside bg)
     --cbs-text:    #373D3F  (body copy)
     --cbs-amber:   #93603C  (accent hover)
   ========================================================= */

:root {
  --cbs-dark:    #012C43;
  --cbs-primary: #107896;
  --cbs-warm:    #FFF5E4;
  --cbs-text:    #373D3F;
  --cbs-amber:   #93603C;
}

/* ---- Base ---- */
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--cbs-text);
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', sans-serif;
  color: var(--cbs-dark);
}

a {
  color: var(--cbs-primary);
  text-decoration: none;
}
a:hover {
  color: var(--cbs-amber);
  text-decoration: underline;
}

/* ---- Navbar ---- */
.bg-cbs-dark {
  background-color: var(--cbs-dark) !important;
}

/* Logo badge — sits the light-background logo on a clean white pill so it
   reads clearly against the dark navy navbar instead of a floating white box */
.navbar-brand {
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
  font-weight: 600;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
}

.btn-cbs-accent {
  background-color: var(--cbs-primary);
  color: #fff;
  border: none;
}
.btn-cbs-accent:hover {
  background-color: var(--cbs-amber);
  color: #fff;
}

/* ---- Hero ---- */
.cbs-hero {
  background: linear-gradient(135deg, var(--cbs-dark) 0%, #0a4a6e 100%);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}
.cbs-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  color: #fff;
}
.cbs-hero p.lead {
  color: rgba(255,255,255,.85);
}

/* ---- Section cards ---- */
.cbs-section-card {
  border: 1px solid #e0e9f0;
  border-radius: 6px;
  padding: 1.2rem 1.3rem;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.cbs-section-card:hover {
  box-shadow: 0 4px 16px rgba(1,44,67,.12);
  transform: translateY(-2px);
}
.cbs-section-card .card-icon {
  font-size: 1.8rem;
  color: var(--cbs-primary);
  margin-bottom: .5rem;
}
.cbs-section-card h5 {
  font-family: 'Oswald', sans-serif;
  color: var(--cbs-dark);
  font-size: 1.05rem;
  margin-bottom: .4rem;
}
.cbs-section-card p {
  font-size: .88rem;
  color: #555;
  margin-bottom: .5rem;
}
.cbs-section-card a.stretched-link {
  color: var(--cbs-primary);
  font-size: .88rem;
  font-weight: 600;
}

/* ---- Warm strip ---- */
.cbs-warm-strip {
  background: var(--cbs-warm);
  border-top: 3px solid var(--cbs-primary);
  padding: 2rem 0;
}

/* ---- Legacy-page shim ----
   Skins the surviving .html pages (which still use the old
   /includes/header.php + column_left.php + footer.php structure) with the
   v2 navbar/footer/styling. Hides the empty left column, makes the content
   column full-width, and applies v2 typography to the legacy markup. */
.cbs-legacy { padding-top: 1rem; }
.cbs-legacy .col-lg-3 { display: none; }
.cbs-legacy .col-lg-9 { flex: 0 0 100%; max-width: 100%; }
.cbs-legacy .col-lg-12 { padding-left: 0; padding-right: 0; }
.cbs-legacy h1.pagetitle,
.cbs-legacy h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.9rem;
  color: var(--cbs-dark);
  border-bottom: 3px solid var(--cbs-primary);
  padding-bottom: .4rem;
  margin-bottom: 1.2rem;
}
.cbs-legacy h2 {
  font-family: 'Oswald', sans-serif;
  color: var(--cbs-dark);
  font-size: 1.3rem;
  margin-top: 1.8rem;
}
.cbs-legacy h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--cbs-dark);
  font-size: 1.1rem;
  margin-top: 1.4rem;
}
.cbs-legacy p,
.cbs-legacy li,
.cbs-legacy div.text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--cbs-text);
}
.cbs-legacy a { color: var(--cbs-primary); }
.cbs-legacy a:hover { color: var(--cbs-amber); }
/* The old pages used <font>, <table bgcolor>, and inline styles for layout.
   These rules tame the worst of them so content reads cleanly. */
.cbs-legacy font { font: inherit !important; color: inherit !important; }
.cbs-legacy table { max-width: 100%; }
.cbs-legacy img { max-width: 100%; height: auto; }

/* ---- Article pages ---- */
.cbs-article-body h2 {
  font-size: 1.3rem;
  margin-top: 1.8rem;
  color: var(--cbs-dark);
}
.cbs-article-body h3 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
  color: var(--cbs-dark);
}
.cbs-article-body p,
.cbs-article-body ul,
.cbs-article-body li {
  font-size: 15px;
  line-height: 1.75;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: .82rem;
  background: transparent;
  padding: .5rem 0 0;
}
.breadcrumb-item a {
  color: var(--cbs-primary);
}
.breadcrumb-item.active {
  color: #777;
}

/* ---- Sidebar / aside ---- */
.cbs-sidebar .card {
  border: 1px solid #dde8ef;
  border-radius: 6px;
}
.cbs-sidebar .card-header {
  background: var(--cbs-dark);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .55rem .9rem;
}
.cbs-sidebar .list-group-item a {
  color: var(--cbs-text);
  font-size: .88rem;
  display: block;
  padding: .1rem 0;
  text-decoration: none;
}
.cbs-sidebar .list-group-item a:hover {
  color: var(--cbs-primary);
}

/* ---- Ad block ---- */
.cbs-ad {
  background: #f8f9fa;
  border: 1px dashed #ccc;
  padding: .5rem;
  text-align: center;
  margin: 1.2rem 0;
}

/* ---- Page title ---- */
.cbs-page-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.9rem;
  color: var(--cbs-dark);
  border-bottom: 3px solid var(--cbs-primary);
  padding-bottom: .4rem;
  margin-bottom: 1.2rem;
}

/* ---- Last updated badge ---- */
.cbs-last-updated {
  font-size: .78rem;
  color: #888;
  margin-bottom: 1rem;
  display: block;
}
.cbs-last-updated i { margin-right: .25rem; }

/* ---- FAQ accordion ---- */
.accordion-button:not(.collapsed) {
  color: var(--cbs-primary);
  background: transparent;
}
.accordion-button:focus {
  box-shadow: none;
}

/* ---- Topic cluster hub cards ---- */
.cbs-hub-card {
  border: 1px solid #dde8ef;
  border-radius: 6px;
  padding: 1.2rem;
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.cbs-hub-card:hover {
  box-shadow: 0 4px 16px rgba(1,44,67,.1);
  transform: translateY(-2px);
}
.cbs-hub-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  color: var(--cbs-dark);
  margin-bottom: .4rem;
}
.cbs-hub-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: .87rem;
}
.cbs-hub-card ul li { margin-bottom: .2rem; }
.cbs-hub-card ul a { color: var(--cbs-primary); text-decoration: none; }
.cbs-hub-card ul a:hover { color: var(--cbs-amber); text-decoration: underline; }

/* ---- Footer ---- */
.cbs-footer {
  background-color: var(--cbs-dark);
}
.cbs-footer-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  display: block;
  margin-bottom: .25rem;
}
.cbs-footer-link:hover {
  color: #fff;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 767px) {
  .cbs-hero h1 { font-size: 1.7rem; }
}
