/**
 * ISPAB public frontend — modern layer on top of Landrick / Bootstrap.
 * Scoped to body.ispab-site so other areas are unaffected.
 */

body.ispab-site {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #0f172a;
  background: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

/* Do not shrink all .containers — Landrick #topnav uses floats; a narrow container breaks the menu row. */
body.ispab-site .section > .container,
body.ispab-site footer.footer .container,
body.ispab-site .ispab-hero > .container {
  max-width: 1140px;
}

/* --- Header (keep theme float model; only polish) --- */
body.ispab-site #topnav.ispab-header,
body.ispab-site header#topnav {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

body.ispab-site #topnav > .container {
  max-width: 1320px;
}

/* Desktop: replace fragile float row (logo + wide nav + CTAs) with flex so the menu does not wrap under the logo */
@media (min-width: 992px) {
  body.ispab-site #topnav > .container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  body.ispab-site #topnav > .container .logo {
    float: none !important;
    order: 1;
    flex: 0 0 auto;
    margin-right: 0.5rem;
  }

  body.ispab-site #topnav > .container #navigation {
    float: none !important;
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    justify-content: center;
  }

  body.ispab-site #topnav > .container .buy-button {
    float: none !important;
    order: 3;
    margin-left: auto;
    flex: 0 0 auto;
  }

  body.ispab-site #topnav > .container .menu-extras {
    float: none !important;
    order: 4;
    flex: 0 0 auto;
    padding-left: 0.25rem !important;
  }

  body.ispab-site #topnav #navigation .navigation-menu {
    flex-wrap: nowrap;
    justify-content: center;
  }
}

body.ispab-site #topnav .logo img {
  max-height: 44px;
  width: auto;
  height: auto;
}

body.ispab-site #topnav .buy-button {
  display: inline-block;
  vertical-align: middle;
}

body.ispab-site #topnav .buy-button > li {
  vertical-align: middle;
}

body.ispab-site #topnav .buy-button .btn {
  vertical-align: middle;
  white-space: nowrap;
}

body.ispab-site #topnav .menu-extras {
  vertical-align: middle;
}

body.ispab-site #navigation .navigation-menu > li > a {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: #334155 !important;
  padding: 0.55rem 0.6rem !important;
}

@media (min-width: 1200px) {
  body.ispab-site #navigation .navigation-menu > li > a {
    padding: 0.6rem 0.75rem !important;
    font-size: 0.9rem;
  }
}

body.ispab-site #navigation .navigation-menu > li:hover > a {
  color: #0369a1 !important;
}

body.ispab-site #navigation .submenu a {
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem !important;
}

body.ispab-site .buy-button .btn-primary {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  box-shadow: 0 2px 8px rgba(3, 105, 161, 0.25);
}

body.ispab-site .buy-button .btn-outline-primary {
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 991px) {
  body.ispab-site #navigation {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  body.ispab-site #navigation .navigation-menu > li > a {
    padding: 0.75rem 1rem !important;
  }
}

/* --- Sections & typography --- */
body.ispab-site .section-title .title {
  font-weight: 700;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: #0f172a;
  letter-spacing: -0.02em;
}

body.ispab-site .section-title .title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #0369a1, #22d3ee);
}

body.ispab-site .ispab-section .section-title .title::after {
  margin-left: auto;
  margin-right: auto;
}

body.ispab-site .para-desc {
  max-width: 42rem;
}

/* --- Surfaces (cards, tables) --- */
body.ispab-site .ispab-surface {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

body.ispab-site .ispab-surface table {
  margin-bottom: 0;
}

body.ispab-site .ispab-surface thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.ispab-site .ispab-surface tbody tr:hover {
  background: #f8fafc;
}

body.ispab-site .ispab-surface .forum-title {
  font-weight: 600;
}

/* --- Blog / news cards --- */
body.ispab-site .card.blog {
  border-radius: 14px !important;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.ispab-site .card.blog:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1) !important;
}

body.ispab-site .card.blog .card-img-top {
  object-fit: cover;
  max-height: 200px;
}

body.ispab-site .card.blog .author {
  background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%) !important;
}

body.ispab-site .btn-primary {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #0369a1, #0284c7) !important;
  border: none !important;
}

body.ispab-site .btn-primary:hover {
  filter: brightness(1.05);
}

/* --- Hero --- */
body.ispab-site .ispab-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0;
  background: linear-gradient(160deg, #f8fafc 0%, #e0f2fe 45%, #f1f5f9 100%);
  overflow: hidden;
}

body.ispab-site .ispab-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 90% 10%, rgba(56, 189, 248, 0.18), transparent 55%);
  pointer-events: none;
}

body.ispab-site .ispab-hero .ispab-hero-title {
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.03em;
}

body.ispab-site .ispab-hero .ispab-hero-lead {
  font-size: 1.05rem;
  color: #475569;
  max-width: 36rem;
}

body.ispab-site .ispab-hero .ispab-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0f172a;
}

body.ispab-site .ispab-hero .ispab-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Footer --- */
body.ispab-site footer.footer.bg-light {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
  color: #cbd5e1;
  border-top: none;
}

body.ispab-site footer.footer.bg-light .footer-head,
body.ispab-site footer.footer.bg-light h3,
body.ispab-site footer.footer.bg-light h5 {
  color: #f1f5f9 !important;
}

body.ispab-site footer.footer.bg-light a.text-muted {
  color: #94a3b8 !important;
}

body.ispab-site footer.footer.bg-light a.text-muted:hover {
  color: #38bdf8 !important;
}

body.ispab-site footer.footer.bg-light .logo-footer img {
  filter: brightness(0) invert(1);
  width: 180px !important;
  max-width: 70%;
  height: auto !important;
}

body.ispab-site footer.footer-bar {
  background: #020617 !important;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
}

body.ispab-site footer.footer-bar p {
  color: #94a3b8 !important;
}

@media (max-width: 575px) {
  body.ispab-site footer.footer.bg-light img[alt="SSL Commerz"] {
    max-height: 180px !important;
    width: auto !important;
  }
}

/* --- Gallery filter chips --- */
body.ispab-site .filters-group .categories-name {
  border-radius: 999px !important;
  padding: 0.35rem 0.9rem !important;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #cbd5e1 !important;
  margin: 0.2rem;
}

body.ispab-site .filters-group .categories-name.active {
  background: #0369a1 !important;
  color: #fff !important;
  border-color: #0369a1 !important;
}

/* --- Preloader --- */
body.ispab-site #preloader {
  background: #f8fafc;
}
