/* webnexs blog custom css — deployed via git */

/* Reset & Scroll overflow prevention */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Fixed Header on Scroll */
header.wp-block-template-part {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

header.wp-block-template-part .wp-block-group {
  background-color: #ffffff !important;
}

/* Header Logo (Always visible across all screen sizes) */
.header-logo-wrap,
header a[rel="home"] {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

header a[rel="home"] img,
header .custom-logo,
.wp-block-site-logo img {
  width: 140px !important;
  height: 25px !important;
  max-width: 140px !important;
  min-width: 100px !important;
  display: block !important;
  object-fit: contain !important;
}

@media screen and (max-width: 480px) {
  header.wp-block-template-part .alignwide {
    padding: 12px 16px !important;
  }

  header a[rel="home"] img,
  header .custom-logo,
  .wp-block-site-logo img {
    width: 115px !important;
    height: 20px !important;
    min-width: 95px !important;
  }

  .header-cta-wrap a,
  header a[href*="contact"] {
    padding: 7px 14px !important;
    font-size: 12px !important;
  }
}

body.admin-bar header.wp-block-template-part {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar header.wp-block-template-part {
    top: 46px !important;
  }
}

/* Offset top margin for fixed header */
.wp-site-blocks > main,
main#wp--skip-link--target {
  margin-top: 82px !important;
}

/* Global media sizing safeguard */
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* Hero Section & Heading */
.webnexs-home-hero {
  text-align: center !important;
  padding: 48px 20px 36px 20px !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.hero-eyebrow {
  color: #0d5ef8 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 14px !important;
  display: block !important;
}

.main-heading {
  font-size: clamp(30px, 4vw, 52px) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.5px !important;
}

.main-heading a,
.main-heading .hero-link {
  color: #0f172a !important;
  text-decoration: underline !important;
  text-decoration-color: #0f172a !important;
  text-underline-offset: 4px !important;
  transition: color 0.15s ease, text-decoration-color 0.15s ease !important;
}

.main-heading a:hover,
.main-heading .hero-link:hover {
  color: #0d5ef8 !important;
  text-decoration-color: #0d5ef8 !important;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 18px) !important;
  line-height: 1.6 !important;
  color: #64748b !important;
  max-width: 680px !important;
  margin: 18px auto 0 auto !important;
  font-weight: 400 !important;
}

/* Main Layout Container */
.main-layout-group {
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding: 0 20px 48px 20px !important;
  box-sizing: border-box !important;
}

/* Posts Grid */
.custom-posts-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 1024px) {
  .custom-posts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media screen and (max-width: 640px) {
  .custom-posts-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Post Card */
.custom-post {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.custom-post:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
}

/* Card Featured Image */
.post-featured-image {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background-color: #f8fafc !important;
}

.post-featured-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.post-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease !important;
  border: none !important;
}

.custom-post:hover .post-featured-image img {
  transform: scale(1.03) !important;
}

/* Card Content */
.post-card-content {
  padding: 20px 22px 24px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  box-sizing: border-box !important;
}

/* Card Meta */
.post-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
  background: transparent !important;
  padding: 0 !important;
}

.post-meta .post-category a {
  color: #0d5ef8 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  font-size: 13px !important;
}

.post-meta .post-category a:hover {
  text-decoration: underline !important;
}

.post-meta .meta-dot {
  color: #94a3b8 !important;
  font-size: 10px !important;
}

.post-meta .post-date {
  color: #64748b !important;
  font-weight: 400 !important;
  font-size: 13px !important;
}

/* Card Title */
.post-title {
  font-size: 19px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 0 !important;
}

.post-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.post-title a:hover {
  color: #0d5ef8 !important;
  text-decoration: none !important;
}

/* Card Excerpt */
.post-excerpt {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 0 16px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.post-excerpt p {
  margin: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

/* Card Read More */
.read-more-wrapper {
  margin-top: auto !important;
  padding-top: 10px !important;
}

.custom-read-more {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ff5c35 !important;
  text-decoration: none !important;
  transition: gap 0.2s ease !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.custom-read-more:hover {
  gap: 10px !important;
  color: #e04a25 !important;
  text-decoration: none !important;
}

.custom-read-more .arrow {
  font-size: 15px !important;
  transition: transform 0.2s ease !important;
}

.custom-read-more:hover .arrow {
  transform: translateX(3px) !important;
}

/* Pagination */
.custom-pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 48px 0 24px 0 !important;
}

.custom-pagination .page-numbers {
  min-width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  transition: all 0.15s ease !important;
}

.custom-pagination .page-numbers:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.custom-pagination .page-numbers.current {
  background: #0d5ef8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   Footer Styles (Live Site Match)
   ========================================================================== */

/* CTA Section (1 Row 2 Columns) */
.footer-cta-main {
  background-color: #efe7e1 !important;
  width: 100% !important;
  padding: 40px 45px 0 45px !important;
  box-sizing: border-box !important;
  display: block !important;
}

.footer-cta-main .wp-block-columns {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  gap: 40px !important;
}

.footer-cta-main .wp-block-column {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
  background-color: transparent !important;
}

.footer-cta-main .wp-block-column:first-child {
  flex: 1 1 50% !important;
  max-width: 580px !important;
}

.footer-cta-main .wp-block-column:last-child {
  flex: 1 1 50% !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
}

.footer-cta-main .footer-text {
  font-size: clamp(28px, 4vw, 48px) !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 0 24px 0 !important;
  text-align: left !important;
}

.footer-cta-button {
  margin-top: 10px !important;
}

.footer-cta-button .wp-block-button__link {
  background-color: #0d5ef8 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 6px 18px rgba(13, 94, 248, 0.35) !important;
  text-decoration: none !important;
  display: inline-block !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

.footer-cta-button .wp-block-button__link:hover {
  background-color: #0546c7 !important;
  box-shadow: 0 8px 22px rgba(13, 94, 248, 0.45) !important;
  color: #ffffff !important;
}

.footer-cta-img {
  margin: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.footer-cta-img img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

@media screen and (max-width: 768px) {
  .footer-cta-main {
    padding: 30px 20px 0 20px !important;
  }
  .footer-cta-main .wp-block-columns {
    flex-direction: column !important;
    text-align: center !important;
  }
  .footer-cta-main .footer-text {
    text-align: center !important;
  }
  .footer-cta-img {
    justify-content: center !important;
  }
}

/* 5-Column Navigation Section */
.footer-links-sec {
  background-color: #161934 !important;
  color: #ffffff !important;
  padding: 3.5rem 45px 1rem 45px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.footer-links-sec .wp-block-columns {
  display: flex !important;
  justify-content: space-between !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  gap: 30px !important;
}

.footer-links-sec .footer-logo,
.footer-links-sec figure.footer-logo,
.footer-links-sec .footer-logo.wp-block-image {
  margin: 0 0 16px 0 !important;
  margin-left: 0 !important;
  text-align: left !important;
  display: block !important;
}

.footer-links-sec .footer-logo img,
.footer-links-sec figure.footer-logo img,
.footer-links-sec .footer-logo.wp-block-image img {
  height: 32px !important;
  width: auto !important;
  display: block !important;
  margin: 0 0 16px 0 !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  border-radius: 0 !important;
}

.footer-links-sec .site-desc {
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: #c5cad9 !important;
  margin: 0 !important;
  font-weight: 400 !important;
}

.footer-links-sec ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links-sec .li-head {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 14px !important;
  list-style: none !important;
}

.footer-links-sec .li-para {
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
  color: #c5cad9 !important;
  list-style: none !important;
}

.footer-links-sec .li-para a {
  color: #c5cad9 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.footer-links-sec .li-para a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* Social Icons in Column 5 */
.footer-social-icons {
  margin-top: 14px !important;
}

.footer-social-icons ul,
.footer-social-icons li {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.footer-social-icons a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.footer-social-icons a:hover {
  transform: translateY(-2px) !important;
  opacity: 0.85 !important;
}

.footer-social-icons img {
  width: 27px !important;
  height: 27px !important;
  display: block !important;
}

@media screen and (max-width: 991px) {
  .footer-links-sec {
    padding: 2.5rem 20px 1rem 20px !important;
  }
  .footer-links-sec .wp-block-columns {
    flex-wrap: wrap !important;
    gap: 24px !important;
  }
  .footer-links-sec .wp-block-column:first-child {
    flex: 0 0 100% !important;
    margin-bottom: 12px !important;
  }
  .footer-links-sec .wp-block-column:not(:first-child) {
    flex: 0 0 calc(50% - 12px) !important;
  }
}

@media screen and (max-width: 600px) {
  .footer-links-sec .wp-block-column:not(:first-child) {
    flex: 0 0 100% !important;
  }
}

/* Copyright Row */
.footer-copyrights {
  background-color: #161934 !important;
  padding: 16px 45px 24px 45px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.footer-copyrights .copyright-container {
  max-width: 1220px !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.footer-copyrights .copyright-text {
  font-size: 14px !important;
  color: #a0aec0 !important;
  margin: 0 !important;
}

.footer-copyrights .copyright-text a {
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.footer-copyrights .copyright-text a:hover {
  text-decoration: underline !important;
}

.footer-copyrights .privacy {
  font-size: 14px !important;
  margin: 0 !important;
}

.footer-copyrights .privacy a {
  color: #a0aec0 !important;
  text-decoration: none !important;
}

.footer-copyrights .privacy a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

@media screen and (max-width: 768px) {
  .footer-copyrights {
    padding: 16px 20px 24px 20px !important;
  }
  .footer-copyrights .copyright-container {
    justify-content: center !important;
    text-align: center !important;
  }
}


/* ==========================================================================
   Category Archive Page Styling
   ========================================================================== */
body.archive main#wp--skip-link--target {
  margin-top: 80px !important;
  padding: 40px 20px 80px 20px !important;
}

body.archive .webnexs-home-hero {
  text-align: center !important;
  margin-bottom: 48px !important;
}

body.archive h1.main-heading {
  font-size: clamp(32px, 4.5vw, 56px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.5px !important;
}


body.archive .category-custom-block-query ul.wp-block-post-template,
body.archive ul.wp-block-post-template.columns-3,
body.archive .category-custom-block-query ul[class*="wp-container-core-post-template-is-layout"] {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 1220px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.archive ul.wp-block-post-template > li.wp-block-post {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.archive .category-custom-block-query ul.wp-block-post-template_unused {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 1220px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 1024px) {
  body.archive .category-custom-block-query ul.wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media screen and (max-width: 640px) {
  body.archive .category-custom-block-query ul.wp-block-post-template {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

body.archive .category-custom-block-query li.wp-block-post {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

body.archive .category-custom-block-query li.wp-block-post:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
}

body.archive .category-featured-image {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background-color: #f1f5f9 !important;
  aspect-ratio: 16 / 9 !important;
  width: 100% !important;
}

body.archive .category-featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

body.archive .category-custom-post {
  padding: 20px 24px 24px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

body.archive .category-custom-post .post-category a {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #0d5ef8 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  text-decoration: none !important;
  margin-bottom: 8px !important;
}

body.archive .category-custom-post .post-date {
  font-size: 13px !important;
  color: #64748b !important;
  margin-bottom: 12px !important;
}

body.archive .category-post-title a {
  font-size: 19px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  transition: color 0.15s ease !important;
}

body.archive .category-post-title a:hover {
  color: #0d5ef8 !important;
}

body.archive .wp-block-post-excerpt {
  margin: 12px 0 18px 0 !important;
}

body.archive .wp-block-post-excerpt p {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}


/* ==========================================================================
   Global Content Spacing & Alignment (Matches Home Page Container: 1220px)
   ========================================================================== */

/* Main container alignment for Single, Archive, Page, Search, 404 */
body.single .wp-site-blocks > main,
body.single main#wp--skip-link--target,
body.archive .wp-site-blocks > main,
body.archive main#wp--skip-link--target,
body.page .wp-site-blocks > main,
body.page main#wp--skip-link--target,
body.search .wp-site-blocks > main,
body.search main#wp--skip-link--target,
body.error404 .wp-site-blocks > main,
body.error404 main#wp--skip-link--target {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  padding-bottom: 48px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Ensure single post columns are constrained inside 1220px container */
body.single .wp-block-columns.are-vertically-aligned-top {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.single .wp-block-column.custom-single-post-block {
  padding-left: 0 !important;
  box-sizing: border-box !important;
}

body.single .sidebar {
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Category archive container alignment */
body.archive .category-custom-block-query,
body.archive .category-custom-block-query ul.wp-block-post-template {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Card titles: clean sans-serif across home and archives */
body.blog li.custom-post h2.post-title,
body.blog li.custom-post h2.post-title a,
body.archive li.custom-post h2.post-title,
body.archive li.custom-post h2.post-title a,
li.custom-post h2.post-title,
li.custom-post h2.post-title a {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}



/* ==========================================================================
   Header Container Constraint: 1220px Centered (Matches Home Page & Content)
   ========================================================================== */
header.wp-block-template-part .alignwide,
header.wp-block-template-part > div > div,
header.wp-block-template-part .wp-block-group.alignwide,
header.wp-block-template-part > .wp-block-group > .wp-block-group,
.navbar-align .blog-header,
.navbar-align .alignwide {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
