/* ==========================================================================
   Mobile-First Responsive Enhancements for Oxigen CSP Provider
   ========================================================================== */

/* Prevent horizontal overflow without breaking position: sticky */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

/* Ensure sticky top navigation functions reliably across all viewports */
#header.header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1030 !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0 !important;
  transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.scrolled #header.header,
#header.header.scrolled {
  padding: 8px 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  background-color: #ffffff !important;
}

#header .header-container {
  transition: all 0.3s ease;
}

/* Ensure body has bottom padding on mobile for floating action bar */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 68px; /* Accommodate sticky bottom action bar */
  }
  #header.header {
    padding: 8px 0 !important;
  }
}

/* Fluid responsive typography */
h1, .h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
  line-height: 1.25 !important;
}

h2, .h2 {
  font-size: clamp(1.4rem, 4vw, 2rem) !important;
  line-height: 1.3 !important;
}

h3, .h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  line-height: 1.35 !important;
}

p, li {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.6;
}

/* Touch-target optimization (WCAG minimum 44px) */
a, button, .btn, .nav-link, input, select, textarea {
  touch-action: manipulation;
}

/* Mobile-Friendly Form Controls */
.form-control-mobile,
.form-control,
.form-select {
  min-height: 48px;
  font-size: 16px !important; /* Critical: Prevents iOS auto-zoom on input focus */
  border-radius: 8px;
}

.btn-submit {
  min-height: 48px;
  background-color: #03228f;
  color: #ffffff;
  border-radius: 8px;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Top Contact & Trust Bar Styles
   ========================================================================== */
.top-contact-bar {
  background: #081630 !important;
  color: #f1f5f9;
  font-size: 0.8125rem;
  padding: 6px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1035;
}

.top-bar-trust {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #f8fafc;
  letter-spacing: 0.2px;
  font-size: 0.8125rem;
}

.top-bar-trust i {
  font-size: 0.95rem;
}

.top-bar-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

.top-bar-hours {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.775rem;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.85) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.top-bar-link:hover {
  color: #ffffff !important;
}

.top-bar-link i {
  font-size: 0.85rem;
  color: #38bdf8;
}

.top-bar-phone {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.top-bar-phone:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
}

.top-bar-phone .pulse-indicator {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@media (max-width: 575.98px) {
  .top-contact-bar {
    padding: 5px 0 !important;
    font-size: 0.75rem;
  }
  .top-bar-trust span {
    font-size: 0.72rem;
  }
  .top-bar-phone {
    padding: 2px 8px;
    font-size: 0.75rem;
  }
}

/* Header CTA Button - Pixel-Perfect Centered */
.header-cta-btn,
.header .header-cta-btn,
.header .header-social-links .header-cta-btn,
.header .header-action-wrap .header-cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  background: linear-gradient(135deg, #0d6efd 0%, #03228f 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  line-height: 1 !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.25) !important;
  transition: all 0.25s ease !important;
  white-space: nowrap !important;
  border: none !important;
  vertical-align: middle !important;
}

.header-cta-btn:hover,
.header .header-cta-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35) !important;
  color: #ffffff !important;
}

.header-cta-btn span {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

.header-cta-btn .cta-arrow,
.header-cta-btn svg,
.header-cta-btn i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  transition: transform 0.2s ease !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-cta-btn:hover .cta-arrow,
.header-cta-btn:hover svg,
.header-cta-btn:hover i {
  transform: translateX(3px) !important;
}

@media (min-width: 1200px) {
  .navmenu ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navmenu a, .navmenu a:focus {
    color: #1e293b !important;
    font-size: 0.925rem;
    font-weight: 500;
    padding: 7px 12px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none !important;
  }

  .navmenu a:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.06) !important;
  }

  .navmenu a.active {
    color: #03228f !important;
    font-weight: 600;
    background-color: rgba(3, 34, 143, 0.08) !important;
  }
}

/* Header & Mobile Navigation */
.header .header-container {
  padding: 8px 16px;
  transition: all 0.3s ease;
}

@media (max-width: 1199.98px) {
  .header .header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6px 12px !important;
    margin: 0 auto !important;
  }

  .header .logo {
    order: 1 !important;
    margin-right: auto !important;
    flex-shrink: 0;
  }

  .header .logo img {
    max-height: 32px;
    width: auto;
  }

  .header .header-social-links {
    order: 2 !important;
    margin-right: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0;
  }

  .header .header-social-links .header-cta-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  .header .navmenu {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    color: #0f2943 !important;
    border-radius: 6px !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  /* Prevent icon font pseudo-element from displaying next to SVG */
  .mobile-nav-toggle::before,
  .mobile-nav-toggle::after {
    display: none !important;
    content: none !important;
  }

  .mobile-nav-toggle svg {
    width: 26px !important;
    height: 26px !important;
    stroke: #0f2943 !important;
    display: block !important;
  }

  /* Enhanced mobile nav drawer */
  .navmenu ul {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(320px, 85vw) !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 20px !important;
    background-color: #ffffff !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10000 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-active .navmenu ul {
    transform: translateX(0) !important;
  }

  .mobile-nav-active .mobile-nav-toggle {
    visibility: hidden !important;
  }

  .navmenu a, .navmenu a:focus {
    padding: 10px 14px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #0f2943 !important;
    border-radius: 8px;
    min-height: 42px;
    display: flex;
    align-items: center;
    text-decoration: none !important;
  }

  .navmenu a:hover, .navmenu a.active {
    background-color: rgba(3, 34, 143, 0.08) !important;
    color: #03228f !important;
  }

  /* Backdrop overlay */
  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-nav-active .mobile-nav-backdrop {
    display: block !important;
    opacity: 1 !important;
  }

  .mobile-nav-close-btn {
    background: #f1f5f9;
    border: none;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-nav-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
  }
}

/* Scroll-to-top button clearance above mobile bottom action bar */
@media (max-width: 767.98px) {
  .scroll-top.active {
    bottom: 72px !important;
    right: 16px !important;
  }
}

/* Responsive tables for blog content & data tables on mobile */
@media (max-width: 767.98px) {
  .content table, .service-details table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
  }
}

/* Swiper slider mobile touch improvements */
.swiper {
  width: 100%;
  padding-bottom: 30px;
}

.swiper-slide {
  height: auto !important;
}

.testimonial-item {
  height: 100%;
}

/* Media embeds & pictures */
img, picture, svg, iframe, video {
  max-width: 100%;
  height: auto;
}

/* Hero Section responsiveness - Maintain complete 2.7:1 banner without cropping */
#hero picture {
  display: block;
  width: 100%;
}

#hero picture img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  aspect-ratio: 465 / 172;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  #hero picture img {
    aspect-ratio: 1296 / 480;
    object-fit: contain;
  }
}

/* Mobile Bottom Quick-Action Bar - Modern High-Converting Floating CTA Dock */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto;
  min-height: 58px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 14px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  z-index: 9990;
}

.mobile-action-bar .action-btn {
  flex: 1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.mobile-action-bar .action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Call Us: Soft Blue Touch Pill */
.mobile-action-bar .action-btn.call-btn {
  background: #f0f7ff;
  color: #0d6efd;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.08);
}

.mobile-action-bar .action-btn.call-btn:active {
  background: #dbeafe;
  transform: scale(0.97);
}

/* Register Now: Vibrant Crimson Gradient Pill */
.mobile-action-bar .action-btn.apply-btn {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  border: 1.5px solid transparent;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.35);
}

.mobile-action-bar .action-btn.apply-btn:active {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.2);
}

/* Scroll Top Button Removed */
.scroll-top,
#scroll-top {
  display: none !important;
}

/* ==========================================================================
   Core Web Vitals (CWV) & Performance Optimizations
   ========================================================================== */

/* Eliminate Cumulative Layout Shift (CLS) on responsive image containers */
.portfolio-image,
.portfolio-image img {
  aspect-ratio: 416 / 260;
  object-fit: cover;
  width: 100%;
}

.about-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Boost rendering speed: defer offscreen layout & paint calculation */
.faq.section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}


/* ==========================================================================
   Modern CSP Registration Section Styles
   ========================================================================== */
.csp-apply-section {
  background: linear-gradient(180deg, #f8fafc 0%, #edf4fc 100%) !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 30px 0 !important;
}

.csp-lead-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.csp-lead-card-header {
  background: linear-gradient(135deg, #0d6efd 0%, #03228f 100%) !important;
  padding: 1rem 1.25rem;
  text-align: center;
  color: #ffffff;
}

.eligibility-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.eligibility-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  border-color: #bae0fd;
}

.eligibility-card .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.step-card .step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0d6efd;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stats-strip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 1rem;
}

/* ==========================================================================
   Minimal Inner Page Hero Header Styles
   ========================================================================== */
.page-hero {
  background: #f8fafc;
  color: #0f172a;
  padding: 16px 0 14px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}

.page-hero .breadcrumb {
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
}

.page-hero .breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.page-hero .breadcrumb-item a:hover {
  color: #0d6efd;
  text-decoration: underline;
}

.page-hero .breadcrumb-item.active {
  color: #0f172a;
  font-weight: 600;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: #94a3b8;
  content: "/";
  font-size: 0.8rem;
  line-height: 1;
  padding: 0 0.35rem;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 50px;
  letter-spacing: 0.2px;
}

.page-hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.2px;
}

@media (min-width: 768px) {
  .page-hero {
    padding: 18px 0 16px;
  }
  .page-hero-title {
    font-size: 1.65rem;
  }
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
}

.page-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Space Utilization & Knowledge Hub Header
   ========================================================================== */
.section-title {
  padding-bottom: 28px !important;
  margin-bottom: 12px !important;
}

.section-title p,
.section-lead-text {
  max-width: 1040px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: #475569 !important;
  padding: 0 10px 10px !important;
  margin-bottom: 0 !important;
}

