/* Basic page styles for dynamic pages */
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; }
.container h1 { margin-bottom: 20px; }
.btn { padding: .5rem 1rem; border: none; border-radius: .25rem; }
/* .page-section { padding: 60px 0; } */
.page-section .btn { box-shadow: none; }
@media (max-width: 768px) {
  .page-section { padding: 0 0; }

  /* Responsive hero adjustments */
  .page-hero .hero-row { flex-direction: column-reverse; }
  .page-hero .hero-title { font-size: 1.6rem; }
  .page-hero .hero-image { max-width: 100%; }
  .page-hero .hero-image img { max-width: 90%; }
  .hero-content { text-align: center; }
}

/* Hero styles */
/* Hero layout */
.page-hero { background-color: #f6f4ff; position:relative; }
.page-hero .hero-row { display:flex; gap:30px; align-items:center; flex-wrap:wrap; }
.page-hero .hero-content { flex:1; min-width:260px; }
.page-hero .hero-title { font-size:3rem; font-weight:800; margin-bottom:1rem; line-height:1.02; color:#0b1227; }
.page-hero .hero-text { color:#404654; font-size:1rem; margin-bottom:1rem; max-width:640px; }
.page-hero .hero-image { flex:1; min-width:220px; max-width:540px; display:flex; justify-content:center; }
.page-hero .hero-image img { width:100%; height:auto; border-radius:12px; box-shadow: 0 18px 40px rgba(13,30,60,0.08); }

/* Backgrounded hero (image) overlay and contrast */
.page-hero.has-bg { color: #fff; min-height: 420px; }
.page-hero.has-bg::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.2));
  z-index: 1;
}
.page-hero.has-bg .hero-row,
.page-hero.has-bg .hero-content,
.page-hero.has-bg .hero-image { position: relative; z-index: 2; }
.page-hero.has-bg .hero-title { color: #fff; text-shadow: 0 8px 30px rgba(0,0,0,0.45); }
.page-hero.has-bg .hero-text { color: rgba(255,255,255,0.9); }

/* hide inline image when background is used */
.page-hero.has-bg .hero-image { display: none; }

/* allow hero images a max width so text doesn't overflow */
.page-hero .hero-image img { max-width: 520px; border-radius:12px; }

/* make carousel items use full-bleed background */
.carousel .carousel-item .page-hero { padding: 80px 0; }
.carousel .carousel-inner { overflow: visible; }

/* Inline images used in content layouts */
.hero-inline-image { border-radius:12px; box-shadow:0 8px 20px rgba(0,0,0,0.08); }

/* CTA button */
:root { --brand:#5b56ff; --muted:#6b7280; }
.btn-cta { background: var(--brand); color: #fff; padding: .75rem 1.25rem; border-radius: .6rem; display:inline-block; box-shadow: 0 12px 30px rgba(91,86,255,0.12); border: none; font-weight:600 }
.btn-cta:hover { opacity: .98; transform: translateY(-1px); }

/* Admin preview */
#sections_preview { background: linear-gradient(180deg,#fff,#fbfbff); min-height:220px; border-radius:6px; }
.section-item { cursor: grab; }
.section-item:active { cursor: grabbing; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-section { padding: 0 0; }
  .page-hero .hero-row { flex-direction: column-reverse; }
  .page-hero .hero-title { font-size: 1.6rem; }
  .page-hero .hero-image { max-width: 100%; }
  .page-hero .hero-image img { max-width: 90%; }
  .hero-content { text-align: center; }
}

/* Navbar: make hover and active link color blue */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
  color: var(--brand-color, #0d6efd) !important;
}

/* Brand sizing and logo adjustments on small/medium screens so the toggler stays visible */
@media (max-width: 767.98px) {
  .site-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-navbar .navbar-brand {
    margin-right: 0;
    flex-shrink: 1;
    min-width: 0;
  }
  .site-navbar .navbar-toggler {
    flex-shrink: 0;
  }
  .site-navbar .navbar-brand .site-name {
    font-size: 14px !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Ensure span tags inside the brand also shrink if nested differently */
  .site-navbar .navbar-brand span,
  .site-navbar .navbar-brand strong {
    font-size: 14px !important;
    line-height: 1.2;
  }
  .site-navbar .navbar-brand img {
    height: 44px;
  }

  /* Stack nav items below the brand row, keep toggler on the first line */
  .site-navbar .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    margin-top: 8px;
  }
  .site-navbar .navbar-nav {
    width: 100%;
    align-items: flex-start;
    gap: 6px;
  }
  .site-navbar .nav-link {
    padding-left: 0;
  }

  /* Ensure the collapsed menu and dropdowns render over content on mobile */
  .site-navbar {
    overflow: visible;
  }
  .site-navbar .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin: 0 -0.75rem;
    padding: 0.25rem 0.75rem 0.75rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }
  .site-navbar .dropdown-menu {
    position: static;
    float: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding-left: 0;
  }
  .site-navbar .dropdown-menu .dropdown-item {
    padding-left: 0.5rem;
  }
}

/* Keep the front header pinned on all screens */
body.has-sticky-navbar {
  padding-top: var(--site-navbar-height, 86px);
}

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1045;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(6px);
}

/* Override vendor rule that uses CSS variable for active navbar link */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: var(--brand-color, #0d6efd) !important;
}

/* Ensure dropdown menus (user menu) appear above other elements and are visible when open */
.user-menu .dropdown-menu,
.dropdown-menu {
  z-index: 2000; /* ensure visible above most elements */
}

/* Extra specificity for visible state */
.dropdown-menu.show {
  z-index: 2000 !important;
}


