/* ===== LOCAL FONT HOSTING: Alegreya ===== */
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/uploads/Fonts/alegreya-v39-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/wp-content/uploads/Fonts/alegreya-v39-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/wp-content/uploads/Fonts/alegreya-v39-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/wp-content/uploads/Fonts/alegreya-v39-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Alegreya';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/wp-content/uploads/Fonts/alegreya-v39-latin-800.woff2') format('woff2');
}

/* ===== GLOBAL FONT FIX ===== */
body, p, li, td, span, div, input, textarea, select, button, a {
  font-family: 'Alegreya', sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.elementor-widget-heading .elementor-heading-title,
.entry-title, .page-title, .site-title {
  font-family: 'Alegreya', sans-serif !important;
}
.elementor-widget-text-editor,
.elementor-widget-text-editor *,
.elementor-widget-text-editor p {
  font-family: 'Alegreya', sans-serif !important;
}

/* ===== BODY FONT SIZE BUMP ===== */
body, p, li,
.elementor-widget-text-editor,
.elementor-widget-text-editor p {
  font-size: 18px !important;
  line-height: 1.75 !important;
}
@media (max-width: 768px) {
  body, p, li,
  .elementor-widget-text-editor,
  .elementor-widget-text-editor p {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }
}

/* ===== HIDE SITE TITLE TEXT ===== */
.ast-site-title, .site-title,
.ast-header-logo-wrap .site-title,
.site-branding .site-title,
.ast-site-identity .site-title,
header .site-title {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* ===== HERO H1 SIZE ===== */
.elementor-location-header ~ * .elementor-heading-title,
section.elementor-section:first-of-type .elementor-heading-title,
.elementor-widget-heading h1.elementor-heading-title {
  font-size: 56px !important;
  line-height: 1.15 !important;
}
@media (max-width: 1024px) {
  .elementor-widget-heading h1.elementor-heading-title {
    font-size: 44px !important;
  }
}
@media (max-width: 768px) {
  .elementor-widget-heading h1.elementor-heading-title {
    font-size: 32px !important;
  }
}

/* ===== HIDE ABOVE HEADER ===== */
.ast-above-header-wrap, .ast-above-header,
.ast-above-header-bar,
body .ast-above-header-wrap,
body .ast-above-header {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ast-below-header-wrap, .ast-below-header {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* ===== REMOVE WHITE HEADER BAR ===== */
body #masthead, body .site-header,
body .ast-primary-header-bar,
body .main-header-bar, body .main-header-bar-wrap,
body header#masthead, #masthead, .site-header,
.ast-primary-header-bar, .main-header-bar,
.main-header-bar-wrap {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
.ast-primary-header-bar .ast-builder-grid-row > .ast-grid-section:empty,
.site-primary-header-wrap .ast-grid-section:first-child:not(:has(*)),
.ast-header-break-point-setup,
.ast-builder-grid-row .ast-grid-section:empty {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ast-transparent-header .main-header-bar,
.ast-transparent-header .ast-primary-header-bar {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ast-transparent-header-wrap {
  height: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== FLOATING PILL ===== */
.ast-primary-header-bar .ast-container,
.site-primary-header-wrap.ast-builder-grid-row-container {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08) !important;
  border: 1px solid rgba(220,220,220,0.8) !important;
  padding: 0 20px !important;
  margin: 10px auto !important;
  max-width: 1500px !important;
  min-height: unset !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  overflow: visible !important;
  flex-wrap: nowrap !important;
}
.ast-primary-header-bar .ast-container::before,
.site-primary-header-wrap.ast-builder-grid-row-container::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50px !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(255,255,255,0.95) !important;
  z-index: -1 !important;
  pointer-events: none !important;
}
#masthead {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  padding: 0 20px !important;
  overflow: visible !important;
}
.site-header, .main-header-bar,
.main-header-bar-wrap, .ast-primary-header-bar {
  overflow: visible !important;
}

/* ===== ASTRA HEADER GRID FLEX FIX ===== */
.site-primary-header-wrap.ast-builder-grid-row-container .ast-builder-grid-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0 !important;
  height: 64px !important;
}
.site-primary-header-wrap.ast-builder-grid-row-container .ast-builder-grid-row > .ast-grid-section {
  padding: 0 !important;
  margin: 0 !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
}
.site-primary-header-wrap.ast-builder-grid-row-container .ast-builder-grid-row > .ast-grid-section:first-child {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 80px !important;
}
.site-primary-header-wrap.ast-builder-grid-row-container .ast-builder-grid-row > .ast-grid-section:not(:first-child):not(:last-child) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: visible !important;
}
.site-primary-header-wrap.ast-builder-grid-row-container .ast-builder-grid-row > .ast-grid-section:last-child {
  flex: 0 0 auto !important;
  width: auto !important;
}

/* ===== MEGA MENU PILL INTEGRATION ===== */
#mega-menu-wrap-primary {
  background: transparent !important;
  position: static !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  width: 100% !important;
}
#mega-menu-wrap-primary #mega-menu-primary {
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 64px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item {
  display: flex !important;
  align-items: center !important;
  height: 64px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
  color: #0f2447 !important;
  font-family: 'Alegreya', sans-serif !important;
  font-weight: 600 !important;
  font-size: 20px !important;
  background: transparent !important;
  padding: 0 10px !important;
  line-height: 64px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: none !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link > span.mega-title {
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: visible !important;
  display: inline !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover {
  color: #C9A84C !important;
  background: transparent !important;
}

/* ===== MEGA MENU DROPDOWN ===== */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu {
  position: fixed !important;
  top: 90px !important;
  left: 50% !important;
  right: auto !important;
  width: max-content !important;
  min-width: 420px !important;
  max-width: 92vw !important;
  box-sizing: border-box !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  z-index: 99999 !important;
  background: #ffffff !important;
  border-top: 3px solid #0047AB !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.1) !important;
  padding: 36px 48px !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

/* ===== MEGA MENU COLUMN HEADERS ===== */
#mega-menu-wrap-primary .mega-sub-menu .widget-title,
#mega-menu-wrap-primary .mega-sub-menu .widgettitle {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #0f2447 !important;
  margin-bottom: 20px !important;
  padding: 16px 20px 16px 48px !important;
  border: none !important;
  border-left: none !important;
  font-family: 'Alegreya', sans-serif !important;
  display: block !important;
  background-color: #f0f4f8 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 26 26'%3E%3Crect x='2' y='9' width='14' height='14' rx='3' fill='%23dde8f8' stroke='%230047AB' stroke-width='2'/%3E%3Crect x='10' y='3' width='14' height='14' rx='3' fill='%23f0f4f8' stroke='%230047AB' stroke-width='2'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 14px center !important;
  background-size: 22px 22px !important;
  border-radius: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}
#mega-menu-wrap-primary .mega-sub-menu .widget-title::before,
#mega-menu-wrap-primary .mega-sub-menu .widgettitle::before,
#mega-menu-wrap-primary .mega-sub-menu .widget-title::after,
#mega-menu-wrap-primary .mega-sub-menu .widgettitle::after {
  display: none !important;
  content: none !important;
}
#mega-menu-wrap-primary .mega-sub-menu .widget,
#mega-menu-wrap-primary .mega-sub-menu .mega-menu-widget-area,
#mega-menu-wrap-primary .mega-sub-menu .textwidget,
#mega-menu-wrap-primary .mega-sub-menu .mega-menu-column > div,
#mega-menu-wrap-primary .mega-sub-menu .mega-menu-column > section {
  border: none !important;
  border-left: none !important;
}

/* ===== MEGA MENU COLUMNS ===== */
#mega-menu-wrap-primary .mega-sub-menu .mega-menu-column {
  padding: 0 28px !important;
  border-right: 1px solid #eef0f4 !important;
  min-width: 320px !important;
}
#mega-menu-wrap-primary .mega-sub-menu .mega-menu-column:first-child {
  padding-left: 0 !important;
}
#mega-menu-wrap-primary .mega-sub-menu .mega-menu-column:last-child {
  padding-right: 0 !important;
  border-right: none !important;
}

/* ===== MEGA MENU ROW ===== */
#mega-menu-wrap-primary .mega-sub-menu .mega-menu-row {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
#mega-menu-wrap-primary .mega-sub-menu .mega-menu-row + .mega-menu-row {
  margin-top: 32px !important;
  padding-top: 32px !important;
  border-top: 1px solid #eef0f4 !important;
}
.mega-sub-menu .mega-menu-column,
.mega-sub-menu .mega-menu-row ul {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* ===== MEGA MENU LINK LISTS ===== */
.rafa-mm-col ul,
.mm-col ul, .mm-col2 ul, .mm-col3 ul,
.mm-col4 ul, .mm-col5 ul, .mm-col6 ul, .mm-col7 ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ===== MEGA MENU LINKS ===== */
.rafa-mm-col a,
.mm-col a, .mm-col2 a, .mm-col3 a,
.mm-col4 a, .mm-col5 a, .mm-col6 a, .mm-col7 a {
  display: block !important;
  color: #3d4a5c !important;
  text-decoration: none !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  padding: 19px 0 !important;
  border-radius: 0 !important;
  transition: color 0.2s ease, padding-left 0.2s ease !important;
  line-height: 1.5 !important;
  font-family: 'Alegreya', sans-serif !important;
  background: transparent !important;
  white-space: nowrap !important;
}
.rafa-mm-col a:hover,
.mm-col a:hover, .mm-col2 a:hover, .mm-col3 a:hover,
.mm-col4 a:hover, .mm-col5 a:hover, .mm-col6 a:hover, .mm-col7 a:hover {
  color: #0047AB !important;
  padding-left: 8px !important;
  background: transparent !important;
}
.rafa-mm-col a::before,
.mm-col a::before, .mm-col2 a::before, .mm-col3 a::before,
.mm-col4 a::before, .mm-col5 a::before, .mm-col6 a::before, .mm-col7 a::before {
  display: none !important;
}

/* ===== SOCIAL SIDEBAR ===== */
#rafa-social-sidebar {
  z-index: 10000 !important;
}

/* Fix logo */
.site-logo img, .custom-logo, .ast-logo-img,
.site-branding img, .ast-site-logo img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Footer full blue */
#colophon, .site-footer, footer,
.footer-widget-area, .ast-small-footer,
.ast-footer-widget-area, .elementor-location-footer {
  background-color: #0047AB !important;
}
#colophon *, .site-footer *, footer *,
.elementor-location-footer * {
  background-color: transparent !important;
  box-shadow: none !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: #ffffff !important;
}
#colophon a:hover, .site-footer a:hover,
footer a:hover, .elementor-location-footer a:hover {
  color: #C9A84C !important;
}

/* Bullet classes */
.blue-check { color: #0047AB !important; font-size: 20px; font-weight: bold; }
.gold-check { color: #C9A84C !important; font-size: 20px; font-weight: bold; }

/* Accordions */
.elementor-accordion-item, .elementor-toggle-item {
  background-color: #f5f5f5 !important;
  border-radius: 8px !important;
  margin-bottom: 8px !important;
  border: 1px solid #e0e0e0 !important;
  overflow: hidden !important;
}
.elementor-tab-title, .elementor-toggle-title {
  background-color: #f5f5f5 !important;
  padding: 16px 20px !important;
  font-weight: 500 !important;
  color: #0f2447 !important;
}
.elementor-tab-content, .elementor-toggle-content {
  background-color: #ffffff !important;
  padding: 16px 20px !important;
  color: #444444 !important;
}
.e-n-accordion-item {
  background-color: #f5f5f5 !important;
  border-radius: 8px !important;
  margin-bottom: 8px !important;
  overflow: hidden !important;
}
.e-n-accordion-item-title {
  background-color: #f5f5f5 !important;
  padding: 16px 20px !important;
  color: #0f2447 !important;
}
.e-n-accordion-item[open] .e-n-accordion-item-title {
  background-color: #eeeeee !important;
  color: #0047AB !important;
}
.e-n-accordion-item > div {
  background-color: #ffffff !important;
  padding: 16px 20px !important;
}
.e-n-accordion-item-title,
.e-n-accordion-item-title *,
.e-n-accordion-item summary,
.e-n-accordion-item summary * {
  font-size: 20px !important;
  font-weight: 600 !important;
}

/* Grid overflow */
.included-grid, .included-grid-mgmt,
.included-grid-budget, .included-grid-cashflow,
.included-grid-kpi, .included-grid-bpa,
.included-grid-pl {
  overflow: visible !important;
  height: auto !important;
}
.elementor-widget-html {
  overflow: visible !important;
  height: auto !important;
}
.elementor-widget-container {
  overflow: visible !important;
}

/* Remove Sign up / Log in */
.ast-header-account-container,
.ast-account-container {
  display: none !important;
}

/* Hide Astra back to top */
.ast-scroll-top, #ast-scroll-top,
.ast-back-to-top-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Protect SVG fills */
.rafa-bullets svg circle { fill: revert !important; }
.rafa-bullets svg path {
  stroke: #ffffff !important;
  fill: none !important;
}
.wpforms-submit {
  background-color: #0047AB !important;
  color: #ffffff !important;
  border: none !important;
}

/* ===== BLOG PAGE ===== */
.blog .site-content, .archive .site-content {
  background: #f8f9fa;
  padding: 60px 0;
}
.blog .content-area, .archive .content-area {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  float: none;
}
.blog .ast-article-post, .archive .ast-article-post {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0 !important;
  border-bottom: 4px solid #0047AB;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.blog .ast-article-post:hover, .archive .ast-article-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,71,171,0.15);
}
.blog .ast-article-post .post-thumb img,
.archive .ast-article-post .post-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s ease;
}
.blog .ast-article-post:hover .post-thumb img,
.archive .ast-article-post:hover .post-thumb img {
  transform: scale(1.05);
}
.blog .ast-article-post .post-thumb,
.archive .ast-article-post .post-thumb {
  overflow: hidden;
}
.blog .ast-article-post .entry-content-wrap,
.archive .ast-article-post .entry-content-wrap {
  padding: 24px 28px 28px;
}
.blog .ast-article-post .entry-meta,
.archive .ast-article-post .entry-meta {
  margin-bottom: 10px;
}
.blog .ast-article-post .entry-meta a,
.archive .ast-article-post .entry-meta a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #C9A84C !important;
  text-decoration: none;
}
.blog .ast-article-post .posted-on,
.archive .ast-article-post .posted-on {
  font-size: 13px;
  color: #888888;
}
.blog .ast-article-post .entry-title,
.archive .ast-article-post .entry-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f2447;
  line-height: 1.4;
  margin-bottom: 12px;
}
.blog .ast-article-post .entry-title a,
.archive .ast-article-post .entry-title a {
  color: #0f2447 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog .ast-article-post .entry-title a:hover,
.archive .ast-article-post .entry-title a:hover {
  color: #0047AB !important;
}
.blog .ast-article-post .entry-content p,
.archive .ast-article-post .entry-content p {
  font-size: 15px;
  color: #555555;
  line-height: 1.7;
  margin-bottom: 20px;
}
.blog .ast-article-post .read-more,
.archive .ast-article-post .read-more,
.blog .ast-article-post .more-link,
.archive .ast-article-post .more-link {
  display: inline-block;
  background: #0047AB;
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.3s ease;
}
.blog .ast-article-post .read-more:hover,
.archive .ast-article-post .read-more:hover,
.blog .ast-article-post .more-link:hover,
.archive .ast-article-post .more-link:hover {
  background: #0039a0;
}
.blog .ast-row, .archive .ast-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}
.blog .ast-row > *, .archive .ast-row > * {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.blog .ast-col-md-9, .archive .ast-col-md-9,
.blog #primary, .archive #primary {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}
.blog #secondary, .archive #secondary {
  display: none !important;
}
.blog .pagination, .archive .pagination {
  text-align: center;
  margin-top: 60px;
}
.blog .pagination .page-numbers,
.archive .pagination .page-numbers {
  display: inline-block;
  padding: 10px 16px;
  margin: 0 4px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0047AB;
  text-decoration: none;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  transition: all 0.2s ease;
}
.blog .pagination .page-numbers.current,
.archive .pagination .page-numbers.current,
.blog .pagination .page-numbers:hover,
.archive .pagination .page-numbers:hover {
  background: #0047AB;
  color: #ffffff;
  border-color: #0047AB;
}

/* Single Blog Post */
.single .site-content {
  background: #f8f9fa;
  padding: 60px 0;
}
.single .content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}
.single .entry-header {
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  padding: 40px 48px 32px;
}
.single .entry-title {
  font-size: 36px;
  font-weight: 800;
  color: #0f2447;
  line-height: 1.3;
  margin-bottom: 16px;
}
.single .entry-meta {
  font-size: 14px;
  color: #888888;
  margin-bottom: 0;
}
.single .entry-meta a {
  color: #C9A84C !important;
  font-weight: 700;
}
.single .post-thumbnail {
  border-radius: 0;
  overflow: hidden;
  margin: 0;
}
.single .post-thumbnail img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.single .entry-content {
  background: #ffffff;
  padding: 40px 48px;
  border-radius: 0 0 16px 16px;
  font-size: 17px;
  color: #444444;
  line-height: 1.9;
}
.single .entry-content h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0f2447;
  margin: 36px 0 16px;
}
.single .entry-content h3 {
  font-size: 21px;
  font-weight: 700;
  color: #0047AB;
  margin: 28px 0 12px;
}
.single .entry-content a {
  color: #0047AB;
  text-decoration: underline;
}
.single .comments-area, .single #comments,
.single .comment-respond, .comments-area, #comments {
  display: none !important;
}

/* Blog Hero */
.blog-hero {
  background: linear-gradient(135deg, #0047AB 0%, #0f2447 100%);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.blog-hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid #C9A84C;
  border-radius: 20px;
  padding: 6px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #C9A84C !important;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.blog-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 20px;
  line-height: 1.2;
}
.blog-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.7;
  margin-bottom: 32px;
}
.blog-hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.blog-hero-cats span {
  background: rgba(201,168,76,0.15) !important;
  border: 1px solid #C9A84C !important;
  color: #C9A84C !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .blog .ast-row, .archive .ast-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .blog-hero { padding: 60px 20px; }
  .blog-hero h1 { font-size: 28px; }
  .blog-hero p { font-size: 16px; }
}
@media (max-width: 600px) {
  .blog .ast-row, .archive .ast-row {
    grid-template-columns: 1fr !important;
  }
  .blog .content-area, .archive .content-area { padding: 0 20px; }
  .single .entry-header, .single .entry-content { padding: 28px 24px; }
  .single .entry-title { font-size: 26px; }
}

/* Footer rows */
.ast-footer-below-section-active .ast-footer-below-section {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.ast-footer-row-active .ast-footer-row {
  min-height: 0 !important;
  height: auto !important;
}
.site-footer .ast-builder-grid-row:empty,
.site-footer .ast-footer-row:empty {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide Astra page title */
.ast-page-title-wrap,
.entry-header.ast-no-thumbnail,
.ast-single-post-title,
.page .entry-header,
.single .entry-header,
h1.entry-title,
.ast-archive-title {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero background */
.elementor-element.elementor-element-3c4bd21 {
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
@media (max-width: 1024px) {
  .elementor-element.elementor-element-3c4bd21 {
    background-position: 72% center !important;
    background-size: cover !important;
    min-height: 600px !important;
  }
}
@media (max-width: 767px) {
  .elementor-element.elementor-element-3c4bd21 {
    background-position: 78% center !important;
    background-size: cover !important;
    min-height: 650px !important;
  }
}
@media (max-width: 480px) {
  .elementor-element.elementor-element-3c4bd21 {
    background-position: 80% center !important;
    background-size: cover !important;
    min-height: 600px !important;
  }
}

/* ===== MOBILE MENU — FULL REDESIGN ===== */

/* Panel base */
#ast-mobile-popup,
.ast-mobile-popup-drawer,
#ast-mobile-popup .ast-mobile-popup-content,
.ast-mobile-popup-drawer .ast-mobile-popup-content,
#ast-mobile-popup .ast-mobile-popup-inner-wrap,
.ast-mobile-popup-drawer .ast-mobile-popup-inner-wrap,
#ast-mobile-popup .ast-mobile-popup-inner,
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color-scheme: light !important;
  padding: 0 !important;
}

/* Close button */
#ast-mobile-popup .menu-toggle-close,
.ast-mobile-popup-drawer .menu-toggle-close {
  width: 40px !important;
  height: 40px !important;
  background: #f0f4f8 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  margin: 16px 16px 0 auto !important;
}
#ast-mobile-popup .menu-toggle-close svg,
.ast-mobile-popup-drawer .menu-toggle-close svg {
  fill: #0f2447 !important;
  color: #0f2447 !important;
  stroke: #0f2447 !important;
  width: 18px !important;
  height: 18px !important;
}

/* Top-level menu items */
#ast-mobile-popup .menu-item > a,
#ast-mobile-popup .menu-item > .menu-link,
.ast-mobile-popup-drawer .menu-item > a,
.ast-mobile-popup-drawer .menu-item > .menu-link {
  color: #0f2447 !important;
  background-color: #ffffff !important;
  font-family: 'Alegreya', sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  padding: 18px 22px !important;
  border-bottom: 1px solid #eaecef !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease !important;
  letter-spacing: 0.2px !important;
}
#ast-mobile-popup .menu-item > a:hover,
.ast-mobile-popup-drawer .menu-item > a:hover {
  color: #0047AB !important;
  background-color: #f0f4ff !important;
  padding-left: 30px !important;
}
#ast-mobile-popup .menu-item.current-menu-item > a,
.ast-mobile-popup-drawer .menu-item.current-menu-item > a {
  color: #0047AB !important;
  background-color: #f0f4ff !important;
  border-left: 4px solid #C9A84C !important;
}

/* Sub-menu items */
#ast-mobile-popup .sub-menu .menu-item > a,
#ast-mobile-popup .sub-menu .menu-item > .menu-link,
.ast-mobile-popup-drawer .sub-menu .menu-item > a,
.ast-mobile-popup-drawer .sub-menu .menu-item > .menu-link {
  color: #3d4a5c !important;
  background-color: #f8f9fa !important;
  font-family: 'Alegreya', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 13px 22px 13px 36px !important;
  border-bottom: 1px solid #eaecef !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: color 0.2s ease, background-color 0.2s ease, padding-left 0.2s ease !important;
}
#ast-mobile-popup .sub-menu .menu-item > a:hover,
.ast-mobile-popup-drawer .sub-menu .menu-item > a:hover {
  color: #0047AB !important;
  background-color: #eef3ff !important;
  padding-left: 44px !important;
}

/* Gold dot bullet on sub-items */
#ast-mobile-popup .sub-menu .menu-item > a::before,
.ast-mobile-popup-drawer .sub-menu .menu-item > a::before {
  content: '' !important;
  width: 6px !important;
  height: 6px !important;
  min-width: 6px !important;
  background: #C9A84C !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* Gold toggle arrow */
#ast-mobile-popup .ast-menu-toggle,
.ast-mobile-popup-drawer .ast-menu-toggle {
  background: transparent !important;
  border-left: 1px solid #eaecef !important;
  color: #C9A84C !important;
  width: 54px !important;
  min-width: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}
#ast-mobile-popup .ast-menu-toggle svg,
.ast-mobile-popup-drawer .ast-menu-toggle svg {
  fill: #C9A84C !important;
  stroke: #C9A84C !important;
  color: #C9A84C !important;
  width: 16px !important;
  height: 16px !important;
}

/* ===== MOBILE LOGO BAR (injected by WPCode JS snippet) ===== */
#rafa-mob-logo {
  background: #0f2447 !important;
  padding: 20px 24px !important;
  border-bottom: 3px solid #C9A84C !important;
  display: flex !important;
  align-items: center !important;
  min-height: 76px !important;
  box-sizing: border-box !important;
}
#rafa-mob-logo a {
  display: block !important;
  line-height: 0 !important;
  border-bottom: none !important;
  background: transparent !important;
  padding: 0 !important;
  pointer-events: auto !important;
}
#rafa-mob-logo img {
  height: 42px !important;
  width: auto !important;
  max-width: 150px !important;
  display: block !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

/* ===== SECTION HEADERS IN MOBILE MENU (CSS class: rafa-mh) ===== */
#ast-mobile-popup .menu-item.rafa-mh > a,
.ast-mobile-popup-drawer .menu-item.rafa-mh > a {
  background: #eef3ff !important;
  color: #0047AB !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  padding: 9px 22px 9px 36px !important;
  border-bottom: 1px solid #dde6f8 !important;
  border-left: 3px solid #0047AB !important;
  pointer-events: none !important;
  cursor: default !important;
  font-family: 'Alegreya', sans-serif !important;
  gap: 0 !important;
}
#ast-mobile-popup .menu-item.rafa-mh > a::before,
.ast-mobile-popup-drawer .menu-item.rafa-mh > a::before {
  display: none !important;
}
#ast-mobile-popup .menu-item.rafa-mh .ast-menu-toggle,
.ast-mobile-popup-drawer .menu-item.rafa-mh .ast-menu-toggle {
  display: none !important;
}

/* ===== BOOK A MEETING GOLD PILL (CSS class: rafa-book-cta) ===== */
#ast-mobile-popup .menu-item.rafa-book-cta > a,
.ast-mobile-popup-drawer .menu-item.rafa-book-cta > a {
  margin: 20px 20px 28px 20px !important;
  background: #C9A84C !important;
  color: #0f2447 !important;
  border-radius: 50px !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  border-bottom: none !important;
  padding: 16px 24px !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 16px rgba(201,168,76,0.35) !important;
  width: calc(100% - 40px) !important;
  box-sizing: border-box !important;
  text-align: center !important;
  border-left: none !important;
}
#ast-mobile-popup .menu-item.rafa-book-cta > a:hover,
.ast-mobile-popup-drawer .menu-item.rafa-book-cta > a:hover {
  background: #b8943e !important;
  color: #ffffff !important;
  padding-left: 24px !important;
}

/* ===== HIDE SOCIAL SIDEBAR AND WHATSAPP WHEN MOBILE MENU OPEN ===== */
body.ast-mobile-popup-active #rafa-social-sidebar,
body.ast-mobile-popup-active #rafa-floating-ctas,
body.ast-offcanvas-menu-open #rafa-social-sidebar,
body.ast-offcanvas-menu-open #rafa-floating-ctas,
body.ast-mobile-popup-open #rafa-social-sidebar,
body.ast-mobile-popup-open #rafa-floating-ctas {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease !important;
}