/*
 * F9.uk — Brand override for WHMCS Antler template
 * Visual alignment with f9.uk static site
 * Complete portal styling
 */

/* ================================================================
   0. TEMPLATE DNA REMOVAL
   Kill all Antler demo/settings UI remnants
   ================================================================ */
.btn-settings,
.btn-demos,
.offcanvas[id="offcanvasRight"],
.offcanvas-backdrop,
#container_layout { display: none !important; }

/* Body borders — Antler frame mode gimmick */
.body-borders,
.body-borders .top-border,
.body-borders .right-border,
.body-borders .bottom-border,
.body-borders .left-border { display: none !important; height: 0 !important; width: 0 !important; }

/* Hide old info bar */
.infonews { display: none !important; }

/* Hide offcanvas sidebar toggle */
.tech-box { display: none !important; }

/* ================================================================
   1. PAGE WIDTH — match f9.uk (~1200px)
   ================================================================ */
.box-container.limit-width,
[data-layout="boxed"] .box-container.limit-width,
[data-layout="wideboxed"] .box-container.limit-width {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ================================================================
   2. COLOUR PALETTE
   ================================================================ */
.sec-bg4 { background-color: #f4f6fa !important; }
.c-yellow { color: #f0b800 !important; }
.active2  { color: #1a3066 !important; }

/* ================================================================
   3. BUTTONS — F9 amber
   ================================================================ */
.btn-default-yellow-fill                    { background-color: #f0b800 !important; color: #1a3066 !important; border: none !important; border-color: #f0b800 !important; }
.btn-default-yellow-fill:hover              { background-color: #d9a500 !important; color: #1a3066 !important; border: none !important; }
.btn-default-fill:hover                     { background-color: #f0b800 !important; color: #1a3066 !important; }

/* ================================================================
   4. DESKTOP NAVIGATION
   ================================================================ */

/* Nav row: flex alignment */
.nav-menu .navigation {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
}
.nav-menu .navigation .main-menu {
  display: flex !important;
  align-items: center !important;
  flex: 1;
}

/* Desktop nav — always white, flush to top */
.menu-wrap:not(.mobile) {
  background-color: #ffffff !important;
  box-shadow: 0 2px 12px 0 rgba(26,48,102,0.09) !important;
  border-bottom: 1px solid rgba(26,48,102,0.07) !important;
  top: 0 !important;
  padding: 8px 0 !important;
}
.menu-wrap.fixed {
  background-color: #ffffff !important;
  box-shadow: 0 2px 18px 0 rgba(26,48,102,0.13) !important;
  top: 0 !important;
}

/* Nav links: navy, bold */
.nav-menu .main-menu a,
.menu-wrap .nav-menu .main-menu a,
.menu-wrap.fixed .nav-menu .main-menu a {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a3066 !important;
  letter-spacing: -0.1px;
  margin-right: 24px;
}

/* Kill Bootstrap navbar highlight boxes */
.main-menu.nav li,
.main-menu.nav li a,
.main-menu.navbar-nav li a,
.main-menu.navbar-nav > li > a,
.main-menu .nav-link,
.menu-wrap .navbar-nav > li > a,
.menu-wrap .nav > li > a,
.menu-wrap .nav > li > a:hover,
.menu-wrap .nav > li > a:focus {
  background-color: transparent !important;
  background-image: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Hover underline stroke: F9 amber */
.nav-menu .main-menu a.v-stroke:before        { background: #f0b800 !important; }
.menu-wrap.fixed .nav-menu .main-menu a.v-stroke:before { background: #f0b800 !important; }

/* Logo sizing */
.menu-wrap .logo-menu  { max-height: 44px; width: auto; }

/* Header link colour */
.header .navbar-nav > li > a { color: #1a3066 !important; }

/* CLIENT AREA / LOGOUT button */
.btn.question {
  background-color: #f0b800 !important;
  color: #1a3066 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  letter-spacing: 0.3px !important;
  box-shadow: none !important;
}
.btn.question:hover {
  background-color: #d9a500 !important;
  color: #1a3066 !important;
  transform: none !important;
}

/* ================================================================
   5. WHMCS UTILITY ICONS (notifications, cart)
   ================================================================ */
.f9-nav-utils {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  position: relative;
}
.f9-nav-utils .iconews,
.f9-util-icon {
  display: inline-flex !important;
  align-items: center !important;
  color: #1a3066 !important;
  font-size: 17px;
  line-height: 1;
  padding: 0 4px !important;
  position: relative;
  background: none !important;
}
.f9-nav-utils .iconews:hover,
.f9-util-icon:hover { color: #f0b800 !important; }

.f9-nav-utils .notify-container,
.f9-nav-utils .user-login { position: relative !important; display: inline-flex !important; align-items: center !important; }
.f9-nav-utils .dropdown-menu { top: 100% !important; position: absolute !important; }

/* Notification dropdown */
.header .dropdown .notification { border-radius: 10px; box-shadow: 0 8px 32px rgba(26,48,102,0.14); }
.header .dropdown .notification .notify-header { background-color: #1a3066 !important; }

/* Language selector */
.toplang { position: static !important; display: inline-flex !important; align-items: center !important; width: auto !important; }

/* ================================================================
   6. DROPDOWN MENUS
   ================================================================ */
.nav-menu .main-menu > .menu-item > .sub-menu {
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(26,48,102,0.14) !important;
  border: 1px solid rgba(26,48,102,0.07);
}
.nav-menu .main-menu .menu-item .menu-large .service-list .service .media-body a:hover { color: #1a3066 !important; }
.nav-menu .main-menu > .menu-item > .sub-menu > .menu-item a { color: #1a3066 !important; }
.nav-menu .main-menu > .menu-item > .sub-menu > .menu-item a:hover { color: #f0b800 !important; }

/* ================================================================
   7. MOBILE NAVIGATION
   ================================================================ */
.menu-wrap.mobile {
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(26,48,102,0.12) !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}
.menu-wrap.mobile .dropdown-item         { color: #1a3066 !important; }
.menu-wrap.mobile .dropdown-item:hover   { background-color: rgba(240,184,0,0.10) !important; color: #1a3066 !important; }
.menu-wrap.mobile .mergecolor            { color: #1a3066 !important; }

/* Mobile hamburger: navy lines */
#nav-toggle span,
#nav-toggle span:before,
#nav-toggle span:after             { background: #1a3066 !important; }
.active #nav-toggle span:before,
.active #nav-toggle span:after     { background: #f0b800 !important; }
.menu-wrap.mobile .menu-toggle .icon { background-color: #1a3066 !important; }

/* ================================================================
   8. SVG LOGO — force correct colours
   ================================================================ */
.menu-wrap a svg text,
.navbar-brand svg text {
  fill: #1a3066 !important;
}
.loginpage svg text,
.login-page-header svg text,
body[data-background="dark"] svg text {
  fill: #ffffff !important;
}
.menu-wrap a svg rect[fill="#f0b800"],
.navbar-brand svg rect[fill="#f0b800"] {
  fill: #f0b800 !important;
}

/* ================================================================
   9. PAGE BANNER (client area inner pages)
   ================================================================ */
.top-header.overlay { padding-top: 160px !important; padding-bottom: 56px !important; }
.top-header.overlay .heading {
  font-size: clamp(24px,4vw,40px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px !important;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
}
.top-header.overlay .subheading { color: rgba(255,255,255,0.82) !important; font-size: 16px !important; }
@media (max-width: 767px) {
  .top-header.overlay { padding-top: 120px !important; padding-bottom: 36px !important; }
}

/* ================================================================
   10. DATA-BACKGROUND OVERRIDES
   ================================================================ */
[data-background="light"] .box-container .menu-wrap.fixed       { background: #ffffff !important; }
[data-background="light"] .box-container .sec-bg3.infonews      { background-color: #1a3066 !important; }
[data-background="light"] .box-container .infonews .c-yellow    { color: #f0b800 !important; }
[data-background="dark"]  .box-container .sec-bg3.infonews      { background-color: #1a3066 !important; }

/* ================================================================
   11. PORTAL HERO (logged-out homepage)
   ================================================================ */
.f9-portal-hero {
  padding: 140px 0 60px !important;
  background: #f8f9fc;
  overflow: visible !important;
  position: relative;
  z-index: 2;
  width: 100%;
}
.f9-portal-hero .f9-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ee5586;
  margin: 0 0 14px;
}
.f9-portal-hero h1 {
  font-size: clamp(28px, 4.5vw, 46px) !important;
  font-weight: 800 !important;
  color: #1a3066 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.8px;
  margin: 0 0 18px !important;
  background: none !important;
  -webkit-text-fill-color: #1a3066 !important;
  text-transform: none !important;
}
.f9-portal-hero .f9-hero-sub {
  font-size: 16px;
  color: #4a5d70;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 480px;
}
.f9-portal-hero .f9-hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.f9-portal-hero .f9-cta-primary {
  padding: 13px 26px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.f9-portal-hero .f9-cta-secondary {
  font-size: 14px;
  font-weight: 600;
  color: #1a3066;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(26,48,102,0.25);
  padding-bottom: 2px;
  transition: border-color 0.15s, color 0.15s;
}
.f9-portal-hero .f9-cta-secondary:hover {
  color: #0f1f44;
  border-color: #1a3066;
}

/* Domain checker box */
.f9-domain-box {
  background: #fff;
  border: 1.5px solid rgba(26,48,102,0.13);
  border-radius: 14px;
  padding: 24px 24px 20px;
  box-shadow: 0 6px 32px rgba(26,48,102,0.09);
}
.f9-domain-box .f9-domain-label {
  font-size: 14px;
  font-weight: 700;
  color: #1a3066;
  margin: 0 0 4px;
}
.f9-domain-box .f9-domain-hint {
  font-size: 12px;
  color: #7a90aa;
  margin: 0 0 14px;
}
.f9-domain-row {
  display: flex;
  align-items: stretch;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(26,48,102,0.14);
}
.f9-domain-row input {
  flex: 1 1 0;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none;
  font-size: 15px;
  padding: 14px 14px;
  background: #fff;
}
.f9-domain-row .f9-tld {
  display: flex;
  align-items: center;
  background: #e4e9f2;
  padding: 0 12px;
  font-weight: 700;
  font-size: 13px;
  color: #2a4070;
  flex-shrink: 0;
  white-space: nowrap;
  border-left: 1px solid rgba(26,48,102,0.08);
}
.f9-domain-row button {
  flex-shrink: 0;
  border-radius: 0 !important;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* Service card (hero right) */
.f9-service-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 10px 48px rgba(26,48,102,0.13);
  border: 1px solid rgba(26,48,102,0.08);
}
.f9-service-card .f9-card-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #7a90aa;
  margin-bottom: 20px;
}
.f9-service-row {
  display: flex;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #eef0f5;
}
.f9-service-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.f9-service-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef1f8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.f9-service-icon i { color: #1a3066; font-size: 14px; }
.f9-service-label { margin-left: 14px; }
.f9-service-label strong { display: block; font-size: 13px; font-weight: 700; color: #1a3066; line-height: 1.2; }
.f9-service-label span { font-size: 11px; color: #7a90aa; margin-top: 2px; display: block; }

/* ================================================================
   12. QUICK ACTIONS (homepage)
   ================================================================ */
.f9-quick-actions {
  padding: 56px 0 40px;
  background: #fff;
}
.f9-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: #f8f9fc;
  border: 1.5px solid rgba(26,48,102,0.08);
  border-radius: 14px;
  padding: 28px 16px 22px;
  height: 100%;
  transition: all 0.2s;
}
.f9-action-card:hover {
  border-color: #f0b800;
  box-shadow: 0 6px 24px rgba(240,184,0,0.14);
  transform: translateY(-2px);
  text-decoration: none;
}
.f9-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #1a3066;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.f9-action-icon i { color: #f0b800; font-size: 18px; }
.f9-action-card strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a3066;
  margin-bottom: 4px;
}
.f9-action-card span {
  font-size: 11px;
  color: #7a90aa;
  line-height: 1.3;
}

/* ================================================================
   13. TRUST STRIP
   ================================================================ */
.f9-trust-strip {
  border-top: 1px solid rgba(26,48,102,0.08);
  border-bottom: 1px solid rgba(26,48,102,0.08);
  background: #f8f9fc;
  padding: 6px 0;
}
.f9-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
}
.f9-trust-item i { font-size: 17px; color: #ee5586; flex-shrink: 0; }
.f9-trust-text strong { font-size: 13px; font-weight: 700; color: #1a3066; display: block; line-height: 1.3; }
.f9-trust-text span { font-size: 12px; color: #6a7f96; }
.f9-trust-divider {
  width: 1px;
  height: 34px;
  background: rgba(26,48,102,0.1);
  align-self: center;
  flex-shrink: 0;
}

/* ================================================================
   14. HELP / REASSURANCE BLOCK
   ================================================================ */
.f9-help-block {
  padding: 56px 0 64px;
  background: #fff;
}

/* ================================================================
   15. SECTION TYPOGRAPHY (sitewide)
   ================================================================ */
.section-heading {
  font-size: clamp(22px, 3.5vw, 32px) !important;
  font-weight: 800 !important;
  color: #1a3066 !important;
  letter-spacing: -0.3px;
  line-height: 1.2 !important;
}
.section-subheading {
  font-size: 16px !important;
  color: #4a5d70 !important;
  line-height: 1.65 !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   16. SERVICE SECTION CARDS (sitewide polish)
   ================================================================ */
.service-section {
  transition: box-shadow 0.2s;
  border-radius: 12px;
}
.service-section:hover {
  box-shadow: 0 4px 20px rgba(26,48,102,0.10);
}
.service-section .title {
  font-weight: 700 !important;
  color: #1a3066;
}
.service-section .subtitle {
  font-size: 14px;
  line-height: 1.6;
}

/* ================================================================
   17. CLIENT AREA HOME — polish
   ================================================================ */
.container-clientarea {
  border-radius: 14px;
  overflow: hidden;
}
.overview-services .service-section {
  border: 1px solid rgba(26,48,102,0.06);
}
.overview-services .service-section:hover {
  border-color: rgba(240,184,0,0.3);
}

/* Account overview yellow section */
.bg-yellow {
  background: linear-gradient(135deg, #f0b800 0%, #e6a800 100%) !important;
}
.bg-yellow .section-heading {
  color: #1a3066 !important;
}

/* ================================================================
   18. FORMS (sitewide)
   ================================================================ */
.form-control:focus {
  border-color: #f0b800 !important;
  box-shadow: 0 0 0 3px rgba(240,184,0,0.15) !important;
}
.loginpage .form-control,
.loginpage .field {
  border-radius: 8px !important;
  padding: 12px 16px !important;
}

/* ================================================================
   19. FOOTER — polish
   ================================================================ */
#footer {
  background: #1a3066 !important;
}
#footer .heading {
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
}
#footer .footer-menu a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 14px;
  transition: color 0.15s;
}
#footer .footer-menu a:hover {
  color: #f0b800 !important;
}
#footer .copyright {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
#footer .soc-icons a i {
  color: rgba(255,255,255,0.6) !important;
  transition: color 0.15s;
}
#footer .soc-icons a:hover i {
  color: #f0b800 !important;
}
#footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}
#footer .footer-bottom .menu-item {
  color: rgba(255,255,255,0.45) !important;
  font-size: 13px;
}
#footer .payment-list i {
  color: rgba(255,255,255,0.5);
  font-size: 22px;
}
#footer .payment-list p {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

/* Remove newsletter section styling (section removed from template) */
#footer .subcribe.news { display: none !important; }

/* ================================================================
   20. RESPONSIVE
   ================================================================ */
@media (max-width: 575px) {
  .f9-portal-hero { padding: 120px 0 36px !important; }
  .f9-portal-hero h1 { font-size: 26px !important; }
  .f9-portal-hero .f9-hero-sub { font-size: 15px; margin-bottom: 20px; }
  .f9-domain-row .f9-tld { padding: 0 8px; font-size: 12px; }
  .f9-domain-row button { padding: 12px 12px; font-size: 13px; }
  .f9-domain-row input { font-size: 14px; padding: 12px 10px; }
  .f9-trust-item { padding: 10px 12px; }
  .f9-trust-divider { display: none; }
  .f9-quick-actions { padding: 36px 0 24px; }
  .f9-action-card { padding: 20px 12px 16px; }
  .f9-action-icon { width: 40px; height: 40px; }
  .f9-help-block { padding: 36px 0 44px; }
}
@media (max-width: 767px) {
  .f9-trust-divider { display: none; }
  .f9-trust-strip .f9-trust-item { padding: 10px 12px; }
}

/* ================================================================
   21. BADGE CLEANUP (sitewide)
   ================================================================ */
.plans.badge.feat.bg-pink {
  font-size: 10px !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-weight: 700 !important;
}

/* ================================================================
   22. SLIDER CONTAINER OVERRIDE
   Break free from Antler's carousel wrapper which constrains
   height, clips overflow, and forces fixed dimensions
   ================================================================ */
.main-container.slider {
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
}
.silder-container {
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
}
.carousel.header-main-slider {
  min-height: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
.carousel.header-main-slider .carousel-inner {
  overflow: visible !important;
  height: auto !important;
}
.carousel.header-main-slider .carousel-inner > .item,
.carousel.header-main-slider .carousel-inner > .carousel-item {
  height: auto !important;
  min-height: auto !important;
}
/* Hide carousel controls (no more slides) */
.carousel.header-main-slider .carousel-control-prev,
.carousel.header-main-slider .carousel-control-next,
.carousel.header-main-slider .carousel-indicators {
  display: none !important;
}
/* Kill any background video containers */
.main-container.slider .video-container,
.main-container.slider video,
.silder-container .video-container { display: none !important; }

/* Make the portal hero render correctly even inside
   the old slider wrapper div from header.tpl */
.main-container.slider .f9-portal-hero,
.silder-container .f9-portal-hero {
  position: relative;
  z-index: 2;
  overflow: visible !important;
}

/* ================================================================
   23. ANNOUNCEMENT CARDS (homepage)
   ================================================================ */
.homepage .service-section {
  border: 1px solid rgba(26,48,102,0.06);
  border-radius: 12px;
}

/* ================================================================
   24. KNOWLEDGEBASE & SUPPORT PAGES
   ================================================================ */
.kb-search-background {
  background: transparent !important;
}
.kb-search-background .form-control {
  border-radius: 8px !important;
}

/* ================================================================
   25. GLOBAL PAGE PADDING FOR FIXED NAV (Store/Cart pages)
   ================================================================ */
#main-body {
  padding-top: 130px !important;
}
.homepage #main-body {
  padding-top: 40px !important;
}

/* Shopping Cart Headers */
.header-lined {
  color: #1a3066 !important;
  border-color: #f0b800 !important;
}
.header-lined h1 {
  color: #1a3066 !important;
}
.cart-body h1, .cart-body h2 {
  color: #1a3066 !important;
}
