/* ============================================================
   Easybiz Premium UI Override — Polosys Design System
   Matches Index.aspx aesthetic. Does NOT remove any content.
   Import AFTER existing CSS to safely override legacy styles.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables (Polosys DNA) --- */
:root {
  --eb-navy: #000c26;
  --eb-blue: #00609b;
  --eb-accent: #00d2ff;
  --eb-white: #ffffff;
  --eb-light: #f8fafc;
  --eb-muted: #64748b;
  --eb-border: #e2e8f0;
  --eb-font: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

/* --- Global Reset for This Page --- */
body.bgs {
  margin: 0;
  padding: 0;
  font-family: var(--eb-font) !important;
  background-color: #ffffff;
  color: var(--eb-navy);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   NAVIGATION (cb-header) — Matches Index.aspx main-header exactly
   ============================================================ */

/* Old legacy headers are now HIDDEN — replaced by the modern .main-header injected above them */
.cb-header.header1,
.cb-header.header2,
header.cb-header {
  display: none !important;
}

/* Fallback: The legacy cb-header uses two headers (scroll-up / sticky). Now hidden. */
.cb-header.header1,
.cb-header.header2,
header.cb-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: rgba(0, 12, 38, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35) !important;
  padding: 0 !important;
  transition: all 0.4s ease !important;
}

/* Wrapper becomes the header-container equivalent */
.cb-header .wrapper {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Logo */
.cb-header .lgm {
  display: flex !important;
  align-items: center !important;
  margin-right: 40px !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}

.cb-header .mlogo {
  height: 40px !important;
  width: auto !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.92 !important;
  display: block !important;
}

/* Nav list */
.cb-header .dx_menu {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 4px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}

/* Top-level nav items */
.cb-header .dx_menu>li {
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cb-header .dx_menu>li>a {
  font-family: var(--eb-font) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 22px 14px !important;
  display: block !important;
  transition: color 0.3s ease, opacity 0.3s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.cb-header .dx_menu>li>a:hover {
  color: white !important;
  opacity: 0.8 !important;
}

/* Dropdown panel — matches Index .dropdown-menu */
.cb-header .dx_menu li ul {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  background: var(--eb-navy) !important;
  min-width: 250px !important;
  padding: 10px 0 !important;
  display: none !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
  border-top: 3px solid var(--eb-blue) !important;
  border-radius: 0 0 8px 8px !important;
  z-index: 2000 !important;
  list-style: none !important;
  margin: 0 !important;
}

.cb-header .dx_menu li:hover>ul {
  display: block !important;
}

/* Dropdown items */
.cb-header .dx_menu li ul li {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.cb-header .dx_menu li ul li a {
  font-family: var(--eb-font) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 11px 25px !important;
  display: block !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  line-height: 1.3 !important;
}

.cb-header .dx_menu li ul li a:hover {
  background: var(--eb-blue) !important;
  color: white !important;
  padding-left: 30px !important;
}

.cb-header .dx_menu li ul li:last-child a {
  border-bottom: none !important;
}

/* SMALLTitle inside dropdowns */
.SMALLTitle {
  text-transform: initial !important;
  font-size: 11px !important;
  color: #FFF7B1 !important;
  font-weight: 400 !important;
  display: block !important;
  margin-top: 2px !important;
  opacity: 0.8 !important;
}

/* PDF Brochure icon in nav */
.cb-header .dx_menu>li>a.fa-file-pdf-o {
  font-size: 17px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 22px 14px !important;
}

/* Right-align the brochure dropdown */
.cb-header .dx_menu li:last-child ul {
  left: auto !important;
  right: 0 !important;
}


/* ============================================================
   HERO BANNER (.inr_banner) — Precise Match with YBooks
   ============================================================ */
.inr_banner {
  background: linear-gradient(135deg, #004877 0%, #006eb5 100%) !important;
  padding: 30px 0 40px !important;
  margin-top: 0 !important;
  min-height: auto !important;
  position: relative !important;
  overflow: hidden !important;
  color: white !important;
}

.inr_banner::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -10% !important;
  width: 120% !important;
  height: 120% !important;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%) !important;
  z-index: 1 !important;
}

.inr_banner>* {
  position: relative;
  z-index: 5 !important;
}

.inr_banner .sky,
.inr_banner .zn,
.clouds_two,
.clouds_one {
  display: none !important;
}

.inr_banner .black_hed {
  font-size: 5rem !important;
  font-weight: 900 !important;
  color: white !important;
  letter-spacing: -2px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1 !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.inr_banner .hed_sml {
  font-size: 1.5rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 400 !important;
  max-width: 700px !important;
  margin: 10px auto 30px !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}

/* Yellow Button Matching YBooks */
.blue_btn,
a.blue_btn {
  display: inline-block !important;
  background: #fbc02d !important;
  color: #1a1a1a !important;
  padding: 16px 48px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  letter-spacing: 0.5px !important;
  margin-top: 20px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 10px 20px rgba(251, 192, 45, 0.3) !important;
  border: none !important;
}

.blue_btn:hover,
a.blue_btn:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 30px rgba(251, 192, 45, 0.4) !important;
  background: #fff !important;
  color: #004877 !important;
}

/* ============================================================
   FEATURES SECTION (.inr_wrapper) — Premium Card Grid
   ============================================================ */
#abt.inr_wrapper,
.inr_wrapper {
  background: #f8fafc !important;
  padding: 100px 0 !important;
}

.inr_wrapper>.wrapper {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

.inr_wrapper .inr_full {
  width: 100% !important;
}

.inr_wrapper .matter.animatedParent {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 30px !important;
  max-width: 1200px !important;
  margin: 50px auto 0 !important;
}

.box_th {
  background: white !important;
  padding: 30px !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.4s ease !important;
  border: 1px solid rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  min-height: 250px !important;
  justify-content: flex-start !important;
  flex: 0 1 360px !important;
}

.box_th::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--eb-blue), var(--eb-accent));
  border-radius: 0 0 4px 4px;
  transition: height 0.4s ease;
}

.box_th:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 30px 60px rgba(0, 96, 155, 0.12) !important;
  border-color: rgba(0, 96, 155, 0.2) !important;
}

.box_th:hover::before {
  height: 100%;
}

.box_th_icon {
  width: 64px !important;
  height: 64px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(0, 96, 155, 0.08), rgba(0, 210, 255, 0.06)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
  border: 1px solid rgba(0, 96, 155, 0.1) !important;
}

.box_th_icon img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
  display: block !important;
  float: none !important;
}

.box_th_hed {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--eb-navy) !important;
  margin-bottom: 12px !important;
  font-family: var(--eb-font) !important;
  line-height: 1.3 !important;
  float: none !important;
  clear: both !important;
}

.box_th_matter {
  font-size: 14px !important;
  color: var(--eb-muted) !important;
  line-height: 1.75 !important;
  font-family: var(--eb-font) !important;
  float: none !important;
  clear: both !important;
}

/* ============================================================
   KEY FEATURES LIST (.blue_wrapper) — Lightened Slate Section
   ============================================================ */
.blue_wrapper {
  background: #f1f5f9 !important;
  padding: 80px 0 !important;
  color: #1e293b !important;
  position: relative !important;
  overflow: hidden !important;
}

.blue_wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 50%, rgba(0, 210, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.blue_wrapper>.wrapper {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
  position: relative;
  z-index: 1;
}

.white_hed {
  font-size: 3rem !important;
  font-weight: 800 !important;
  color: #004877 !important;
  text-align: center !important;
  margin-bottom: 60px !important;
  font-family: var(--eb-font) !important;
  letter-spacing: -1px !important;
}

.blue_wrapper .matter {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
}

.box_ths {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 20px !important;
  padding: 30px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03) !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.box_ths ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.box_ths ul li {
  color: #475569 !important;
  font-size: 14px !important;
  font-family: var(--eb-font) !important;
  padding: 10px 0 10px 30px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  float: none !important;
  background: transparent !important;
}

.box_ths ul li:last-child {
  border-bottom: none !important;
}

.box_ths ul li::before {
  content: '\f058' !important;
  font-family: 'FontAwesome' !important;
  position: absolute !important;
  left: 0 !important;
  color: var(--eb-blue) !important;
  font-size: 14px !important;
}

.box_ths ul li:hover {
  color: var(--eb-blue) !important;
  padding-left: 36px !important;
}

/* ============================================================
   FOOTER (.footer) — Matches Index.aspx footer exactly
   Uses legacy Easybiz classes: .ftr_box, .ftr_lrg_box, .ftr_hed, .ftr_link
   ============================================================ */
.footer {
  background: #000a1f !important;
  padding: 60px 0 30px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: white !important;
  font-family: var(--eb-font) !important;
}

/* Make the footer wrapper a CSS Grid like the Index footer-grid */
.footer>.wrapper {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 40px !important;
  align-items: start !important;
}

.ftr_box,
.ftr_lrg_box {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Column heading — matches .footer-column h4 */
.ftr_hed {
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: var(--eb-blue) !important;
  font-weight: 700 !important;
  font-family: var(--eb-font) !important;
  margin-bottom: 20px !important;
  display: block !important;
}

/* Footer links — matches .footer-links li a */
.ftr_link,
.footer .ftr_box>a,
.footer .ftr_lrg_box a {
  display: block !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px !important;
  font-family: var(--eb-font) !important;
  text-decoration: none !important;
  margin-bottom: 10px !important;
  transition: all 0.3s ease !important;
  padding: 0 !important;
  background: transparent !important;
}

.ftr_link:hover,
.footer .ftr_box>a:hover,
.footer .ftr_lrg_box a:hover {
  color: white !important;
  padding-left: 5px !important;
}

/* Brand column description — matches .brand-desc */
.ftr_lrg_box .matter {
  font-size: 14px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  line-height: 1.7 !important;
  font-family: var(--eb-font) !important;
  max-width: 320px !important;
  margin-bottom: 20px !important;
}

/* Order the brand column first (it's last in HTML) */
.ftr_lrg_box {
  order: -1 !important;
}

/* Social icons row — matches .footer-socials */
.social_box {
  display: flex !important;
  gap: 12px !important;
  margin-top: 20px !important;
  flex-wrap: wrap !important;
}

.social_box a {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.social_box a:hover {
  background: var(--eb-blue) !important;
  border-color: var(--eb-blue) !important;
  transform: translateY(-3px) !important;
}

.social_box a img {
  width: 18px !important;
  height: 18px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.7 !important;
  display: block !important;
}

.social_box a:hover img {
  opacity: 1 !important;
}

/* Remove legacy clearfix that would break grid */
.footer .clr {
  display: none !important;
}

/* Footer bottom — copyright style (if you ever add it) */
.footer-bottom-bar {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 20px;
}


/* ============================================================
   MODERN FOOTER (.eb-modern-footer) — Identical to Index.aspx footer
   ============================================================ */
.eb-modern-footer {
  background: #000a1f;
  padding: 60px 0 30px;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--eb-font);
}

.eb-modern-footer .section-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.eb-modern-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.eb-modern-footer .footer-logo {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.eb-modern-footer .brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  max-width: 300px;
}

.eb-modern-footer .footer-socials {
  display: flex;
  gap: 12px;
}

.eb-modern-footer .footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eb-modern-footer .footer-socials a:hover {
  background: var(--eb-blue);
  transform: translateY(-3px);
}

.eb-modern-footer .footer-column h4 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--eb-blue);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.eb-modern-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eb-modern-footer .footer-links li {
  margin-bottom: 10px;
}

.eb-modern-footer .footer-links li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.eb-modern-footer .footer-links li a:hover {
  color: white;
  padding-left: 5px;
}

.eb-modern-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.eb-modern-footer .country-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   CLEARFIX & UTILITIES
   ============================================================ */
.clr {
  clear: both;
}

/* ============================================================
   RESPONSIVE — Full Multi-Device Support
   ============================================================ */
@media (max-width: 1200px) {
  .inr_wrapper .matter.animatedParent {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .blue_wrapper .matter {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer>.wrapper {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 1024px) {

  .cb-header .wrapper,
  .inr_wrapper>.wrapper,
  .blue_wrapper>.wrapper,
  .footer>.wrapper {
    padding: 0 20px !important;
  }

  .inr_banner {
    padding: 100px 20px 60px !important;
  }
}

@media (max-width: 768px) {
  .inr_banner {
    min-height: auto !important;
    padding: 100px 20px 60px !important;
  }

  .inr_banner .black_hed {
    font-size: 2.5rem !important;
    letter-spacing: -1.5px !important;
  }

  .inr_wrapper .matter.animatedParent {
    grid-template-columns: 1fr !important;
  }

  .blue_wrapper .matter {
    grid-template-columns: 1fr !important;
  }

  .footer>.wrapper {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
  }

  .box_th {
    padding: 25px 20px !important;
  }
}

@media (max-width: 480px) {
  .inr_banner .black_hed {
    font-size: 2rem !important;
    letter-spacing: -1px !important;
  }

  .white_hed {
    font-size: 1.6rem !important;
  }

  .footer>.wrapper {
    grid-template-columns: 1fr !important;
  }

  .blue_btn,
  a.blue_btn {
    padding: 14px 32px !important;
    font-size: 14px !important;
  }
}