/* Public site custom styles (loaded after Bootstrap) */
body {
  background-color: #f8f9fa;
}
main {
  min-height: 70vh;
}
.post-thumb {
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}
.navbar-brand {
  font-size: 1.4rem;
}
/* ==========================================
           CREDIT4SURE HEADER - COMPLETE FIXED CSS
        ========================================== */
.c4s-header {
  width: 100%;
  min-height: 50px;
  background: #ffffff !important;
  border-bottom: 1px solid #e9eaee;
  position: sticky;
  top: 0;
  z-index: 1050;
  font-family: "Poppins", sans-serif;
}
.c4s-header *,
.c4s-header *::before,
.c4s-header *::after {
  box-sizing: border-box;
}
.c4s-header-inner {
  width: 100%;
  max-width: 1450px;
  min-height: 50px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
/* ==========================================
           LOGO
        ========================================== */
.c4s-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  flex: 0 0 145px;
  padding: 0;
  margin: 0;
  text-decoration: none !important;
}
.c4s-header-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 145px;
  object-fit: contain;
}
/* ==========================================
           NAVIGATION
        ========================================== */
.c4s-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 14px;
}
.c4s-header-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.c4s-header-menu li {
  padding: 0;
  margin: 0;
  list-style: none;
  white-space: nowrap;
}
.c4s-header-menu li a {
  display: inline-flex;
  align-items: center;
  padding: 7px 0;
  color: #101010 !important;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.c4s-header-menu li a:hover {
  color: #1bb7a5 !important;
}
/* ==========================================
           HEADER BUTTONS - LEFT ALIGNMENT FIX
        ========================================== */
.c4s-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-shrink: 0;
  gap: 12px;
  margin: 0 !important;
}
/* DOWNLOAD BUTTON */
.c4s-header-download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 102px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 50px;
  background: #f7f8fb !important;
  color: #111111 !important;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-align: center !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.c4s-header-download:hover {
  background: #edf0f5 !important;
  color: #111111 !important;
}
/* LOGIN BUTTON */
.c4s-header-login {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 66px;
  height: 36px;
  padding: 0 15px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(105deg, #2cc997 0%, #1cbbad 50%, #008acb 100%) !important;
  color: #ffffff !important;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-align: center !important;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.c4s-header-login:hover {
  color: #ffffff !important;
  opacity: 0.9;
}

.c4s-header-login.is-hidden {
  display: none !important;
}

.c4s-header-dashboard {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 120px;
  height: 36px;
  padding: 0 15px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(105deg, #2cc997 0%, #1cbbad 50%, #008acb 100%) !important;
  color: #ffffff !important;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-align: center !important;
  white-space: nowrap;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.c4s-header-dashboard.is-visible {
  display: inline-flex !important;
}

.c4s-header-dashboard:hover {
  color: #ffffff !important;
  opacity: 0.9;
}
/* ==========================================
           MOBILE MENU BUTTON
        ========================================== */
.c4s-header-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}
.c4s-header-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #111111;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.c4s-header-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.c4s-header-toggle.active span:nth-child(2) {
  opacity: 0;
}
.c4s-header-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* ==========================================
           LAPTOP RESPONSIVE
        ========================================== */
@media (min-width: 1251px) and (max-width: 1650px) {
  .c4s-header-inner {
    max-width: 1320px;
    padding: 0 18px;
    gap: 14px;
  }
  .c4s-header-logo {
    width: 138px;
    flex-basis: 138px;
  }
  .c4s-header-logo img {
    max-width: 138px;
  }
  .c4s-header-menu {
    gap: 15px;
  }
  .c4s-header-menu li a {
    font-size: 12.5px;
  }
  .c4s-header-actions {
    gap: 9px;
    margin: 0 !important;
  }
  .c4s-header-download {
    min-width: 96px;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }
  .c4s-header-login {
    min-width: 64px;
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .c4s-header-dashboard {
    min-width: 110px;
    height: 34px;
    padding: 0 13px;
    font-size: 11.5px;
  }
}
/* ==========================================
           TABLET + MOBILE
        ========================================== */
@media (max-width: 1250px) {
  .c4s-header {
    min-height: 68px;
  }
  .c4s-header-inner {
    min-height: 68px;
    padding: 0 24px;
    flex-wrap: wrap;
    gap: 0;
  }
  .c4s-header-logo {
    width: 145px;
    flex-basis: 145px;
  }
  .c4s-header-logo img {
    max-width: 145px;
  }
  .c4s-header-toggle {
    display: flex;
    margin-left: auto;
  }
  /* MOBILE NAVIGATION */
  .c4s-header-nav {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 20px;
    border-top: 1px solid #eeeeee;
    background: #ffffff;
  }
  .c4s-header-nav.open {
    display: flex;
  }
  .c4s-header-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    margin: 0 0 15px;
  }
  .c4s-header-menu li {
    width: 100%;
  }
  .c4s-header-menu li a {
    display: flex;
    width: 100%;
    padding: 12px 5px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
  }
  /* MOBILE BUTTONS */
  .c4s-header-actions {
    width: 100%;
    justify-content: flex-start !important;
    gap: 12px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .c4s-header-download {
    min-width: 120px;
    height: 42px;
    font-size: 14px;
  }
  .c4s-header-login {
    min-width: 85px;
    height: 42px;
    font-size: 14px;
  }
}
/* ==========================================
           SMALL MOBILE
        ========================================== */
@media (max-width: 575px) {
  .c4s-header {
    min-height: 62px;
  }
  .c4s-header-inner {
    min-height: 62px;
    padding: 0 16px;
  }
  .c4s-header-logo {
    width: 135px;
    flex-basis: 135px;
  }
  .c4s-header-logo img {
    max-width: 135px;
  }
  .c4s-header-toggle {
    width: 38px;
    height: 38px;
  }
  .c4s-header-menu li a {
    font-size: 13px;
    padding: 11px 4px;
  }
}
/* Footer */
/* ====================================
   CREDIT4SURE FOOTER
==================================== */
.c4s-footer {
  width: 100%;
  background-color: #080706;
  color: #ffffff;
  padding: 45px 0 48px;
  font-family: "Poppins", sans-serif;
  overflow: hidden;
}
.c4s-footer-container {
  max-width: 1450px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
/* ====================================
   FOOTER COLUMNS
==================================== */
.c4s-footer-col {
  min-width: 0;
}
.c4s-footer h5 {
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 18px !important;
  white-space: nowrap;
}
.c4s-footer p {
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  margin-top: 0;
}
.c4s-footer-col a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.c4s-footer-col a:hover {
  color: #32cabb;
}
/* ====================================
   LEGAL + QUICK LINKS
==================================== */
.c4s-footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}
.c4s-footer-links li {
  margin: 0;
  padding: 0;
}
.c4s-footer-links li a {
  display: inline-block;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s ease;
}
.c4s-footer-links li a:hover {
  color: #32cabb;
}
/* ====================================
   LOGO + SOCIAL SECTION
==================================== */
.c4s-footer-social-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.c4s-footer-logo {
  display: block;
  width: 185px;
  max-width: 100%;
  text-decoration: none;
}
.c4s-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* Follow Us */
.c4s-footer .c4s-follow-title {
  margin: 18px 0 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
/* ====================================
   SOCIAL ICONS
==================================== */
.c4s-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;
  width: 100%;
}
.c4s-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.c4s-social-icon img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.c4s-social-icon:hover {
  transform: translateY(-3px);
}
/* X icon placed below social icons */
.c4s-x-icon {
  flex-basis: 100%;
  margin-top: 6px;
}
.c4s-x-icon img {
  width: 20px;
  height: 20px;
}
/* ====================================
   MEDIUM DESKTOP
==================================== */
@media (min-width: 992px) and (max-width: 1300px) {
  .c4s-footer-container {
    max-width: 1200px;
  }
  .c4s-footer .row {
    --bs-gutter-x: 1.2rem;
  }
  .c4s-footer h5 {
    font-size: 17px;
    white-space: normal;
  }
  .c4s-footer p {
    font-size: 12px;
  }
  .c4s-footer-links li a {
    font-size: 12px;
  }
  .c4s-footer-logo {
    width: 145px;
  }
  .c4s-social-icons {
    gap: 9px;
  }
}
/* ====================================
   TABLET
==================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
  .c4s-footer {
    padding: 40px 0;
  }
  .c4s-footer-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .c4s-footer .row {
    --bs-gutter-x: 1rem;
  }
  .c4s-footer h5 {
    font-size: 15px;
    white-space: normal;
  }
  .c4s-footer p {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .c4s-footer-links li a {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .c4s-footer-logo {
    width: 120px;
  }
  .c4s-footer .c4s-follow-title {
    font-size: 12px;
  }
  .c4s-social-icons {
    gap: 8px;
  }
  .c4s-social-icon,
  .c4s-social-icon img {
    width: 26px;
    height: 26px;
  }
  .c4s-x-icon {
    flex-basis: 100%;
  }
}
/* ====================================
   MOBILE
==================================== */
@media (max-width: 767.98px) {
  .c4s-footer {
    padding: 35px 0 40px;
  }
  .c4s-footer-container {
    padding-left: 22px;
    padding-right: 22px;
  }
  .c4s-footer h5 {
    font-size: 19px;
    margin-bottom: 12px !important;
  }
  .c4s-footer p {
    font-size: 14px;
    line-height: 1.65;
  }
  .c4s-footer-links li a {
    font-size: 14px;
    line-height: 1.65;
  }
  .c4s-footer .row {
    --bs-gutter-y: 2rem;
  }
  .c4s-footer-social-col {
    align-items: flex-start;
    text-align: left;
  }
  .c4s-footer-logo {
    width: 175px;
  }
  .c4s-footer .c4s-follow-title {
    margin-top: 18px;
    text-align: left;
    font-size: 16px;
  }
  .c4s-social-icons {
    justify-content: flex-start;
    width: auto;
    max-width: 240px;
    gap: 13px;
  }
  .c4s-x-icon {
    flex-basis: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }
}
/* Credit4Sure mobile / tablet slide-out menu, based on the supplied screenshot.
   Include this file AFTER your existing style.css and any header.css. */
/* Elements used only in the drawer; keep desktop header as it is. */
.c4s-header .c4s-mobile-drawer-top,
.c4s-header .c4s-menu-backdrop {
  display: none;
}
@media (max-width: 1250px) {
  body.c4s-drawer-open {
    overflow: hidden !important;
  }
  .c4s-header:has(.c4s-header-nav.open) {
    z-index: 2500 !important;
  }
  .c4s-header,
  .c4s-header .c4s-header-inner {
    overflow: visible !important;
  }
  /* Entire viewport darkens behind the drawer. */
  .c4s-header .c4s-menu-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 1090 !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(57, 34, 24, 0.88) !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.23s ease,
      visibility 0.23s ease;
  }
  .c4s-header .c4s-menu-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  /* Mint-to-blue full-height menu on top of the backdrop. */
  .c4s-header .c4s-header-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 1100 !important;
    width: min(510px, calc(100vw - 24px)) !important;
    max-width: none !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 17px 15px 26px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background: linear-gradient(105deg, #a6f2db 0%, #bceaf8 100%) !important;
    box-shadow: -12px 0 24px rgba(0, 0, 0, 0.1);
    border: none !important;
    border-radius: 0 !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateX(103%) !important;
    transition:
      transform 0.28s ease,
      opacity 0.24s ease,
      visibility 0.28s ease;
  }
  .c4s-header .c4s-header-nav.open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }
  .c4s-header .c4s-mobile-drawer-top {
    display: flex !important;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 68px;
  }
  .c4s-header .c4s-mobile-drawer-logo {
    display: inline-block;
    flex: 0 0 auto;
    width: 160px;
    max-width: calc(100% - 50px);
    line-height: 1;
  }
  .c4s-header .c4s-mobile-drawer-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }
  .c4s-header .c4s-mobile-drawer-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font:
      300 38px/1 Arial,
      sans-serif;
    cursor: pointer;
    flex: 0 0 38px;
  }
  /* Vertical links in the same order as the example. */
  .c4s-header .c4s-header-menu {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    list-style: none !important;
    overflow: visible !important;
  }
  .c4s-header .c4s-header-menu > li {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
  .c4s-header .c4s-header-menu > li.c4s-menu-contact {
    order: 5;
  }
  .c4s-header .c4s-header-menu > li.c4s-menu-loan {
    order: 6;
  }
  .c4s-header .c4s-header-menu > li:last-child {
    order: 7;
  }
  .c4s-header .c4s-header-menu > li > a {
    display: block !important;
    width: 100% !important;
    padding: 17px 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #24647f !important;
    -webkit-text-fill-color: #24647f !important;
    text-decoration: none !important;
    text-transform: none !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .c4s-header .c4s-header-menu > li > a:hover,
  .c4s-header .c4s-header-menu > li > a:focus-visible {
    color: #046c87 !important;
    -webkit-text-fill-color: #046c87 !important;
  }
  .c4s-header .c4s-header-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 13px 0 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  /* Screenshot only has Login inside the mobile menu. */
  .c4s-header .c4s-header-actions .c4s-header-download {
    display: none !important;
  }
  .c4s-header .c4s-header-actions .c4s-header-login {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 74px !important;
    min-width: 74px !important;
    max-width: 74px !important;
    height: 38px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 100px !important;
    background: linear-gradient(100deg, #37d39f, #0088cd) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    font:
      500 12px/1 "Poppins",
      sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer;
  }

  .c4s-header .c4s-header-actions .c4s-header-login.is-hidden {
    display: none !important;
  }

  .c4s-header .c4s-header-actions .c4s-header-dashboard.is-visible {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 118px !important;
    max-width: none !important;
    height: 38px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 100px !important;
    background: linear-gradient(100deg, #37d39f, #0088cd) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font: 500 12px/1 "Poppins", sans-serif !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }
  /* Keep the customer login Bootstrap popup above both drawer and backdrop. */
  .c4s-login-modal {
    z-index: 3000 !important;
  }
}
@media (max-width: 480px) {
  .c4s-header .c4s-header-nav {
    padding: 17px 15px 26px !important;
  }
  .c4s-header .c4s-header-menu > li > a {
    padding: 16px 0 !important;
    font-size: 17px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .c4s-header .c4s-menu-backdrop,
  .c4s-header .c4s-header-nav {
    transition: none !important;
  }
}
/* ===================================
   CREDIT4SURE BLOG CARD DESIGN
=================================== */
.c4s-blog-card {
  width: 100%;
  max-width: 340px;
  min-height: 452px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e0e7ef;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.12);
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.c4s-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.15);
}
/* ===================================
   BLOG IMAGE
=================================== */
.c4s-blog-image-link {
  display: block;
  width: 100%;
  flex-shrink: 0;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
}
.c4s-blog-image {
  display: block;
  width: 100%;
  height: 162px;
  object-fit: cover;
  object-position: center;
  border-radius: 15px 15px 0 0;
  transition: transform 0.3s ease;
}
.c4s-blog-card:hover .c4s-blog-image {
  transform: scale(1.025);
}
/* ===================================
   BLOG CARD BODY
=================================== */
.c4s-blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  padding: 21px 8px 7px;
  text-align: center;
}
/* ===================================
   BLOG TITLE
=================================== */
.c4s-blog-card-title {
  width: 100%;
  margin: 0 0 15px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  color: #172033;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.c4s-blog-card-title a {
  color: #172033;
  text-decoration: none;
}
.c4s-blog-card-title a:hover {
  color: #078ec7;
}
/* ===================================
   BLOG DESCRIPTION
=================================== */
.c4s-blog-card-description {
  width: 100%;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.68;
  color: #617084;
  text-align: center;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  overflow: hidden;
}
/* ===================================
   READ MORE BUTTON
=================================== */
.c4s-blog-card-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding-top: 22px;
}
.c4s-blog-readmore {
  min-width: 125px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 20px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #35d6a0 0%, #20bcae 45%, #087ec6 100%);
  color: #ffffff !important;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.c4s-blog-readmore span {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}
.c4s-blog-readmore:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(14, 153, 185, 0.23);
}
/* ===================================
   BLOG GRID LAYOUT
=================================== */
.c4s-blog-grid {
  width: 100%;
  max-width: 1030px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: start;
  align-items: stretch;
  column-gap: 24px;
  row-gap: 25px;
  margin: 0 auto;
  padding: 0 12px;
}
/* ===================================
   SECTION HEADING
=================================== */
.c4s-blog-section {
  width: 100%;
  background: #ffffff;
  padding: 25px 0 65px;
}
.c4s-blog-heading {
  margin: 0 0 7px;
  font-family: "Poppins", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: #172033;
  text-align: center;
}
.c4s-blog-subtitle {
  margin: 0 0 43px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #66758b;
  text-align: center;
}
/* ===================================
   TABLET RESPONSIVE
=================================== */
@media (max-width: 767.98px) {
  .c4s-blog-section {
    padding: 28px 0 45px;
  }
  .c4s-blog-heading {
    font-size: 25px;
    line-height: 1.35;
    padding: 0 15px;
  }
  .c4s-blog-subtitle {
    font-size: 12px;
    padding: 0 18px;
    margin-bottom: 30px;
  }
  .c4s-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 0 15px;
  }
  .c4s-blog-card {
    max-width: none;
    min-height: 430px;
    padding: 10px;
  }
  .c4s-blog-image {
    height: 150px;
  }
  .c4s-blog-card-body {
    padding: 15px 5px 6px;
  }
  .c4s-blog-card-title {
    font-size: 13px;
  }
  .c4s-blog-card-description {
    font-size: 11px;
  }
}
/* ===================================
   MOBILE RESPONSIVE
=================================== */
@media (max-width: 575.98px) {
  .c4s-blog-heading {
    font-size: 23px;
  }
  .c4s-blog-subtitle {
    font-size: 11px;
    margin-bottom: 25px;
  }
  .c4s-blog-grid {
    grid-template-columns: minmax(0, 340px);
    justify-content: center;
    gap: 22px;
    padding: 0 15px;
  }
  .c4s-blog-card {
    width: 100%;
    max-width: 340px;
    min-height: 430px;
    padding: 13px;
    border-radius: 18px;
  }
  .c4s-blog-image {
    height: 165px;
  }
  .c4s-blog-card-body {
    padding: 17px 8px 7px;
  }
  .c4s-blog-card-title {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .c4s-blog-card-description {
    font-size: 12px;
    line-height: 1.65;
  }
  .c4s-blog-card-footer {
    padding-top: 20px;
  }
}
/* ==========================================
   CREDIT4SURE BLOG CARD ALIGNMENT FIX
========================================== */
/* BLOG GRID */
.c4s-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}
/* BLOG CARD */
.c4s-blog-grid .c4s-blog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  background: #ffffff;
  border: 1px solid #e3eaf1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 22px rgba(20, 45, 75, 0.07);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.c4s-blog-grid .c4s-blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20, 45, 75, 0.1);
}
/* BLOG IMAGE LINK */
.c4s-blog-grid .c4s-blog-image-link {
  display: block;
  width: 100%;
  height: 195px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f2f8f8;
}
/* BLOG IMAGE */
.c4s-blog-grid .c4s-blog-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform 0.3s ease;
}
.c4s-blog-grid .c4s-blog-card:hover .c4s-blog-image {
  transform: scale(1.03);
}
/* BLOG CARD BODY */
.c4s-blog-grid .c4s-blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 20px;
  text-align: left;
}
/* BLOG TITLE */
.c4s-blog-grid .c4s-blog-card-title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #14213d;
  text-align: left;
}
.c4s-blog-grid .c4s-blog-card-title a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.c4s-blog-grid .c4s-blog-card-title a:hover {
  color: #159f9d;
}
/* BLOG DESCRIPTION */
.c4s-blog-grid .c4s-blog-card-description {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: #64748b;
  text-align: left;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
/* BLOG FOOTER */
.c4s-blog-grid .c4s-blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: auto;
  padding-top: 15px;
}
/* READ MORE BUTTON */
.c4s-blog-grid .c4s-blog-readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 19px;
  background: linear-gradient(110deg, #20b99c, #0897c5);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.c4s-blog-grid .c4s-blog-readmore:hover {
  background: linear-gradient(110deg, #159d86, #087eac);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}
/* ==========================================
   TABLET
========================================== */
@media (max-width: 991px) {
  .c4s-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .c4s-blog-grid .c4s-blog-image-link {
    height: 170px;
  }
  .c4s-blog-grid .c4s-blog-card-body {
    padding: 16px;
  }
  .c4s-blog-grid .c4s-blog-card-title {
    font-size: 15px;
  }
}
/* ==========================================
   MOBILE
========================================== */
@media (max-width: 767px) {
  .c4s-blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .c4s-blog-grid .c4s-blog-card {
    width: 100%;
    max-width: 100%;
  }
  .c4s-blog-grid .c4s-blog-image-link {
    height: 210px;
  }
  .c4s-blog-grid .c4s-blog-card-body {
    padding: 18px;
  }
  .c4s-blog-grid .c4s-blog-card-title {
    font-size: 16px;
  }
  .c4s-blog-grid .c4s-blog-card-description {
    font-size: 13px;
  }
}
/* ==========================================
   SMALL MOBILE
========================================== */
@media (max-width: 375px) {
  .c4s-blog-grid .c4s-blog-image-link {
    height: 180px;
  }
  .c4s-blog-grid .c4s-blog-card-body {
    padding: 15px;
  }
}
/* ==========================================
   REDUCED MOTION
========================================== */
@media (prefers-reduced-motion: reduce) {
  .c4s-blog-grid .c4s-blog-card,
  .c4s-blog-grid .c4s-blog-image,
  .c4s-blog-grid .c4s-blog-readmore {
    transition: none;
  }
  .c4s-blog-grid .c4s-blog-card:hover,
  .c4s-blog-grid .c4s-blog-readmore:hover {
    transform: none;
  }
}

/* ==========================================================
   CREDIT4SURE HEADER — FINAL 100% DESKTOP MATCH
   CSS ONLY: no internal <style> is required in header.php.
   The layout/buttons stay the same; only the logo is smaller.
========================================================== */

.c4s-header {
  min-height: 78px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #eceff2 !important;
}

.c4s-header .c4s-header-inner {
  width: 100% !important;
  max-width: 1790px !important;
  min-height: 0px !important;
  margin: 0 auto !important;
  padding: 0 0px !important;
  gap: 28px !important;
}

/* Smaller logo at normal 100% browser zoom. */
.c4s-header .c4s-header-logo {
  width: 190px !important;
  max-width: 190px !important;
  flex: 0 0 190px !important;
  margin: 0 !important;
}

.c4s-header .c4s-header-logo img {
  display: block !important;
  width: 190px !important;
  max-width: 190px !important;
  height: auto !important;
  object-fit: contain !important;
}

.c4s-header .c4s-header-nav {
  gap: 22px !important;
}

.c4s-header .c4s-header-menu {
  gap: 25px !important;
  margin: 0 !important;
}

.c4s-header .c4s-header-menu > li > a {
  padding: 8px 0 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: #0d0d0d !important;
  white-space: nowrap !important;
}

.c4s-header .c4s-header-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 14px !important;
}

.c4s-header .c4s-header-download {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 150px !important;
  height: 48px !important;
  padding: 0 24px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f7f8fb !important;
  color: #111111 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* Login and Go to Dashboard have the exact same visual treatment. */
.c4s-header .c4s-header-login,
.c4s-header .c4s-header-dashboard {
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 101px !important;
  height: 48px !important;
  padding: 0 23px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(105deg, #2cc997 0%, #1cbbad 50%, #008acb 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.c4s-header .c4s-header-dashboard {
  min-width: 155px !important;
}

.c4s-header .c4s-header-login[hidden],
.c4s-header .c4s-header-dashboard[hidden] {
  display: none !important;
}

/* Mid-size desktop/laptop. */
@media (min-width: 1251px) and (max-width: 1500px) {
  .c4s-header .c4s-header-inner {
    padding: 0 24px !important;
    gap: 20px !important;
  }

  .c4s-header .c4s-header-logo {
    width: 165px !important;
    max-width: 165px !important;
    flex-basis: 165px !important;
  }

  .c4s-header .c4s-header-logo img {
    width: 165px !important;
    max-width: 165px !important;
  }

  .c4s-header .c4s-header-menu {
    gap: 18px !important;
  }

  .c4s-header .c4s-header-menu > li > a {
    font-size: 14px !important;
  }

  .c4s-header .c4s-header-download {
    min-width: 120px !important;
    height: 42px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  .c4s-header .c4s-header-login,
  .c4s-header .c4s-header-dashboard {
    height: 42px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  .c4s-header .c4s-header-login {
    min-width: 84px !important;
  }

  .c4s-header .c4s-header-dashboard {
    min-width: 138px !important;
  }
}

/* Existing drawer/mobile behaviour stays unchanged, only logo sizing is tightened. */
@media (max-width: 1250px) {
  .c4s-header {
    min-height: 68px !important;
  }

  .c4s-header .c4s-header-inner {
    min-height: 68px !important;
    padding: 0 22px !important;
  }

  .c4s-header .c4s-header-logo {
    width: 154px !important;
    max-width: 154px !important;
    flex-basis: 154px !important;
  }

  .c4s-header .c4s-header-logo img {
    width: 154px !important;
    max-width: 154px !important;
  }

  .c4s-header .c4s-header-actions {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100% !important;
    padding: 13px 0 0 !important;
    gap: 0 !important;
  }

  .c4s-header .c4s-header-download {
    display: none !important;
  }

  .c4s-header .c4s-header-login,
  .c4s-header .c4s-header-dashboard {
    height: 42px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
  }

  .c4s-header .c4s-header-login {
    min-width: 86px !important;
  }

  .c4s-header .c4s-header-dashboard {
    min-width: 142px !important;
  }
}

@media (max-width: 380px) {
  .c4s-header .c4s-header-logo {
    width: 142px !important;
    max-width: 142px !important;
    flex-basis: 142px !important;
  }

  .c4s-header .c4s-header-logo img {
    width: 142px !important;
    max-width: 142px !important;
  }
}
