/* FolioPool modern palette and balanced blog advertising rails. */
html { accent-color: var(--fp-primary); }
body {
  color: var(--fp-text);
  background: var(--fp-canvas);
}
h1, h2, h3, h4, h5, h6, strong { color: var(--fp-ink); }
a { color: var(--fp-primary-dark); }
a:hover { color: var(--fp-primary-hover); }
::selection { background: var(--fp-primary-tint); color: var(--fp-ink); }

/* Bootstrap and common FolioPool controls. */
.btn-primary,
.bg-primary,
.button-primary,
input[type="submit"],
button[type="submit"],
.apply-now-btn,
.single-file-download-button,
.filedohoa-search-button,
.search-submit,
.quatrang .page-numbers.current,
.main-header .main-header-inner .account a.register {
  background-color: var(--fp-primary) !important;
  border-color: var(--fp-primary) !important;
  color: var(--fp-on-primary) !important;
}
.btn-primary:hover,
.button-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.apply-now-btn:hover,
.single-file-download-button:hover,
.filedohoa-search-button:hover,
.search-submit:hover {
  background-color: var(--fp-primary-hover) !important;
  border-color: var(--fp-primary-hover) !important;
  color: var(--fp-on-primary) !important;
}
.text-primary { color: var(--fp-primary-dark) !important; }
.border-primary { border-color: var(--fp-primary) !important; }
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  border-color: var(--fp-primary) !important;
  box-shadow: 0 0 0 3px rgba(var(--fp-primary-rgb), .22) !important;
  outline: none;
}

/* Header, navigation and footer. */
.top-header {
  background: var(--fp-canvas) !important;
  border-bottom: 1px solid var(--fp-border);
}
.top-header a { color: var(--fp-text) !important; }
.top-header a:hover { color: var(--fp-primary-dark) !important; }
.main-header,
header { background: var(--fp-surface); }
.main-header .menu-main li.current-menu-item > a,
.main-header .menu-main li:hover > a,
.main-header .menu-main a:hover,
.main-header .account a,
.main-header .main-header-inner .account a {
  color: var(--fp-primary-dark) !important;
}
.main-header .menu-main li.current-menu-item > a::after,
.main-header .menu-main .current-menu-item > a::after {
  background: var(--fp-primary) !important;
}
footer {
  background: var(--fp-dark) !important;
  color: #f8fafc;
}
footer .copyright { background: #0b1220 !important; }
footer a:hover,
footer .copyright a { color: var(--fp-primary) !important; }
footer .footer-social a { color: var(--fp-primary-dark) !important; }

/* Soft surfaces and active states. */
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active,
.badge.bg-primary,
.status.blue,
.item-copy,
.explore-menu-trigger,
.explore-trigger {
  background: var(--fp-primary) !important;
  color: var(--fp-on-primary) !important;
  border-color: var(--fp-primary) !important;
}
.filter-widget a.active,
.filedohoa-sidebar a.active,
.woocommerce-MyAccount-navigation li.is-active {
  background: var(--fp-primary-soft) !important;
  color: var(--fp-primary-dark) !important;
  border-color: var(--fp-primary-tint) !important;
}
.card, .widget, .single-page, .filter-widget {
  border-color: var(--fp-border);
}

/* Three-column blog detail: equal advertising rails, centred content. */
.single-post .child-page > .container {
  max-width: 1540px !important;
  padding-left: 24px;
  padding-right: 24px;
}
.single-post .inner-page-single-post {
  max-width: 100% !important;
  margin: 0 auto;
}
.fp-blog-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 860px) minmax(210px, 250px);
  justify-content: center;
  align-items: start;
  gap: clamp(24px, 2.25vw, 40px);
  width: 100%;
}
.fp-blog-main {
  min-width: 0;
  width: 100%;
  justify-self: center;
}
.fp-blog-main .single-page,
.fp-blog-main .related-post {
  width: 100%;
}
.fp-blog-rail {
  width: 100%;
  min-width: 0;
  position: sticky;
  top: 104px;
}

/* Native animated advertising slider. */
.fp-blog-ad,
.fp-ad-slider,
.fp-ad-slider__track {
  width: 100%;
}
.fp-ad-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--fp-dark);
  box-shadow: 0 18px 50px rgba(23, 32, 51, .16);
  isolation: isolate;
}
.fp-ad-slider__track {
  position: absolute;
  inset: 0;
}
.fp-ad-slide {
  --fp-ad-bg: var(--fp-primary);
  --fp-ad-color: #fff;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 28px 24px 54px;
  color: var(--fp-ad-color);
  background:
    linear-gradient(180deg, rgba(10, 16, 28, .02) 10%, rgba(10, 16, 28, .72) 100%),
    var(--fp-ad-image, none) center/cover no-repeat,
    var(--fp-ad-bg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px) scale(1.015);
  transition: opacity .65s ease, transform .8s cubic-bezier(.2,.7,.2,1), visibility .65s;
  overflow: hidden;
}
.fp-ad-slide::before {
  content: "";
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.32), transparent 25%), radial-gradient(circle at 80% 68%, rgba(255,255,255,.18), transparent 28%);
  opacity: .9;
  pointer-events: none;
}
.fp-ad-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 2;
}
.fp-ad-slide--zoom.is-active { animation: fpAdZoom 7s ease-in-out both; }
.fp-ad-slide--slide.is-active .fp-ad-slide__content { animation: fpAdContentSlide .7s cubic-bezier(.2,.75,.2,1) both; }
.fp-ad-slide--float.is-active .fp-ad-slide__orb { animation: fpAdFloat 5.5s ease-in-out infinite alternate; }
.fp-ad-slide__orb {
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.fp-ad-slide__orb--one { width: 150px; height: 150px; top: -40px; right: -55px; }
.fp-ad-slide__orb--two { width: 92px; height: 92px; left: -25px; top: 38%; animation-delay: -.8s !important; }
.fp-ad-slide__content {
  position: relative;
  z-index: 3;
  width: 100%;
}
.fp-ad-slide__eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fp-ad-slide h2 {
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.035em;
}
.fp-ad-slide p {
  margin: 0 0 22px;
  color: inherit;
  font-size: 14px;
  line-height: 1.65;
  opacity: .9;
}
.fp-ad-slide__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  color: #172033 !important;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.fp-ad-slide__cta:hover { transform: translateY(-2px); background: #fff; }
.fp-ad-slider__dots {
  position: absolute;
  z-index: 6;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 7px;
}
.fp-ad-slider__dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  box-shadow: none !important;
  transition: width .25s ease, background .25s ease;
}
.fp-ad-slider__dot.is-active { width: 38px; background: #fff; }

@keyframes fpAdZoom { from { background-size: auto 100%; } to { background-size: auto 108%; } }
@keyframes fpAdFloat { from { transform: translate3d(0,0,0); } to { transform: translate3d(12px,18px,0); } }
@keyframes fpAdContentSlide { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1199px) {
  .fp-blog-layout { grid-template-columns: minmax(0, 860px); }
  .fp-blog-rail { display: none; }
}
@media (max-width: 767px) {
  .single-post .child-page > .container { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-ad-slide,
  .fp-ad-slide__content,
  .fp-ad-slide__orb { animation: none !important; transition-duration: .01ms !important; }
}


/* FolioPool 2.3.19 — reusable animated banner placements. */
a.fp-ad-slide { text-decoration: none !important; }
.fp-ad-slider--blog { min-height: 580px; }
.fp-ad-slider--wide,
.fp-ad-slider--sidebar {
  min-height: 0;
  aspect-ratio: var(--fp-ad-aspect);
}
.fp-ad-slider--wide {
  width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 32, 51, .12);
}
.fp-ad-slider--sidebar {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(23, 32, 51, .14);
}
.fp-ad-slider--wide .fp-ad-slide {
  padding: clamp(22px, 3vw, 42px) clamp(24px, 4vw, 56px) 50px;
}
.fp-ad-slider--sidebar .fp-ad-slide {
  padding: 24px 22px 52px;
}
.fp-ad-slider--wide .fp-ad-slide__content { max-width: 72%; }
.fp-ad-slider--sidebar .fp-ad-slide__content { max-width: 100%; }
.fp-ad-slide__title {
  display: block;
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(24px, 2vw, 38px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.035em;
}
.fp-ad-slide__description {
  display: block;
  margin: 0 0 22px;
  color: inherit;
  font-size: 14px;
  line-height: 1.65;
  opacity: .9;
}
.fp-ad-slider--sidebar .fp-ad-slide__title { font-size: clamp(23px, 2vw, 31px); }
.fp-ad-slider--sidebar .fp-ad-slide__description { font-size: 14px; }
.fp-ad-slide.is-image-only {
  background: var(--fp-ad-image, none) center/cover no-repeat, var(--fp-ad-bg);
}
.fp-ad-slide.is-image-only::before {
  background: radial-gradient(circle at 18% 18%, rgba(255,255,255,.22), transparent 22%), radial-gradient(circle at 82% 72%, rgba(255,255,255,.14), transparent 25%);
  opacity: .55;
}
.fp-ad-slide.is-image-only .fp-ad-slide__orb { opacity: .45; }
.banner-home { margin: 28px 0; }
.banner-home .container { width: 100%; }
.sidebar .fp-ad-slider--sidebar + .fp-ad-slider--sidebar { margin-top: 16px; }

@media (max-width: 991px) {
  .fp-ad-slider--wide { max-height: none; }
  .fp-ad-slider--wide .fp-ad-slide__content { max-width: 88%; }
}
@media (max-width: 575px) {
  .fp-ad-slider--wide { min-height: 180px; aspect-ratio: auto; }
  .fp-ad-slider--wide .fp-ad-slide { padding: 20px 18px 44px; }
  .fp-ad-slider--wide .fp-ad-slide__content { max-width: 100%; }
}


/* FolioPool 2.3.20 — visible carousel controls for all public advertising placements. */
.fp-ad-slider__nav {
  position: absolute;
  z-index: 7;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}
.fp-ad-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: rgba(17,24,39,.42);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17,24,39,.16) !important;
  backdrop-filter: blur(8px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.fp-ad-slider__arrow:hover,
.fp-ad-slider__arrow:focus-visible {
  transform: translateY(-2px);
  background: rgba(17,24,39,.72);
  border-color: rgba(255,255,255,.82);
  color: #fff;
}
.fp-ad-slider--sidebar .fp-ad-slider__nav {
  top: 14px;
  right: 14px;
}
.fp-ad-slider--sidebar .fp-ad-slider__arrow {
  width: 34px;
  height: 34px;
}
.fp-ad-slider--wide .fp-ad-slider__dots,
.fp-ad-slider--sidebar .fp-ad-slider__dots {
  pointer-events: auto;
}
.fp-ad-slider--wide .fp-ad-slide,
.fp-ad-slider--sidebar .fp-ad-slide {
  will-change: opacity, transform;
}
@media (max-width: 575px) {
  .fp-ad-slider__nav { top: 12px; right: 12px; }
  .fp-ad-slider__arrow { width: 34px; height: 34px; }
}


/* FolioPool 2.3.22 — category archives use the same balanced ad rails as articles. */
body.category .fp-blog-archive-page > .container {
  max-width: 1540px !important;
  padding-left: 24px;
  padding-right: 24px;
}
.fp-blog-layout--archive .fp-blog-main {
  max-width: 860px;
}
.fp-blog-layout--archive .category-page {
  width: 100%;
  min-width: 0;
}
.fp-blog-layout--archive .title-category {
  margin: 0 0 24px;
  color: var(--fp-heading);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}
.fp-blog-layout--archive .list-posts {
  display: grid;
  gap: 0;
}
@media (max-width: 1199px) {
  body.category .fp-blog-archive-page > .container {
    max-width: 920px !important;
  }
}
@media (max-width: 767px) {
  body.category .fp-blog-archive-page > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
