/* Responsive fix for Exploration Division page tables and content */
@media (max-width: 900px) {
  .item-page table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
  }
  .item-page table tbody,
  .item-page table tr {
    display: block;
    width: 100%;
  }
  .item-page table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
    padding: 10px 0;
    text-align: left !important;
    word-break: break-word;
  }
  .item-page img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
  }
  .item-page h2,
  .item-page h3,
  .item-page h4 {
    font-size: 1.2em;
    word-break: break-word;
  }
  .item-page p {
    font-size: 1em;
    line-height: 1.5;
    word-break: break-word;
  }
  .item-page .align-content {
    padding: 0 5px;
  }
  .container {
    padding: 0 5px !important;
  }
}

/* Custom marker-arrow icon styling - OVERRIDE ALL CONSTRAINTS */
img.marker-arrow {
  width: 3px !important;
  height: 5px !important;
  max-width: 3px !important;
  min-width: 3px !important;
  display: inline !important;
  margin: 0 2px !important;
  padding: 0 !important;
  vertical-align: middle !important;
  border: none !important;
  line-height: 1 !important;
}

/* Ensure marker images don't get resized by parent constraints */
.item-page img.marker-arrow {
  width: 3px !important;
  height: 5px !important;
  max-width: 3px !important;
  min-width: 3px !important;
  display: inline !important;
  margin: 0 2px !important;
}
/* To-Top Button Consistency: Ensure .sp-totop matches index.php/about.html */
.sp-totop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #f97316);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  border: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

#sp-go-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#sp-go-to-top.visible {
  opacity: 1;
  visibility: visible;
}
/* --- Custom: Reduce top padding and increase content width/spacing for feature and tab sections --- */
#sp-feature-wrapper {
  padding-top: 30px !important;
  padding-bottom: 60px !important;
}
#sp-tab-wrapper {
  padding-top: 30px !important;
  padding-bottom: 60px !important;
}
#sp-feature-wrapper .container,
#sp-tab-wrapper .container {
  max-width: 1200px !important;
  width: 95% !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#sp-feature-wrapper .features-grid {
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
}
#sp-tab-wrapper .about-featured-grid {
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  margin: 40px 0;
}
@media (max-width: 900px) {
  #sp-feature-wrapper .container,
  #sp-tab-wrapper .container {
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  #sp-feature-wrapper .features-grid,
  #sp-tab-wrapper .about-featured-grid {
    grid-template-columns: 1fr;
    gap: 32px 0;
  }
}

/* --- CRITICAL: Force mobile menu to show if nav or ul has open/active --- */
@media (max-width: 900px) {
  #sp-main-menu {
    display: none !important;
  }

  #sp-search {
    display: none !important;
  }

  #sp-main-menu.open {
    display: block !important;
    position: fixed !important;
    top: 0;
    left: 0;
    /* width: 100vw !important; */
    background: #fff !important;
    /* z-index: 20000 !important; */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18) !important;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 1rem !important;
    margin: 0 !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    transition: top 0.2s ease-in-out;

    /* new style start */
    height: 100%;
    width: 70%;
    /* background: #003f4f;  */
    flex-direction: column;
    padding: 2rem;
    /* transition: right 0.3s ease-in-out;  */
    z-index: 9999; /* force it above slider and other content */
  }
  #sp-main-menu > ul.sp-menu {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .menu-toggle {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    border-radius: 4px !important;
    margin-left: 4px !important;
  }
  .menu-toggle span {
    height: 3px !important;
    width: 18px !important;
    margin: 3px 0 !important;
  }
}
/* Mobile header and menu styles for max-width: 600px */
@media (max-width: 600px) {
  #sp-header-wrapper .container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 8px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    gap: 16px !important;
  }
  #sp-logo {
    flex: 0 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .logo-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .sp-menu {
    flex-direction: column !important;
    gap: 0 !important;
    background: #fff !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    width: 100vw !important;
    min-width: 0 !important;
    position: static !important;
    display: flex !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .menu-toggle {
    display: flex !important;
    align-self: flex-end !important;
    margin: 0 0 8px 0 !important;
    width: 32px !important;
    height: 32px !important;
    z-index: 101 !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb !important;
  }
  .menu-toggle span {
    background: #1e3a8a !important;
    height: 4px !important;
    width: 24px !important;
    margin: 5px 0 !important;
    border-radius: 2px !important;
    display: block !important;
  }
  #sp-main-menu {
    width: 100vw !important;
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #sp-search {
    width: 100% !important;
    margin: 8px 0 0 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 2 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .search-form {
    width: 100% !important;
    max-width: 120px !important;
    margin: 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .search-input {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .search-btn {
    font-size: 0.8rem !important;
    padding: 0.3rem 0.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
/* ABSOLUTE OVERRIDE: Always show mobile menu and toggle on all screens */
@media (max-width: 500px) {
  #sp-menu-wrapper .container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
  }
  #sp-search {
    display: none !important;
  }
  #sp-menu-wrapper .container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 2px 1vw !important;
    min-height: unset !important;
  }
  .menu-toggle {
    display: flex !important;
    align-self: flex-end !important;
    margin: 0 0 6px 0 !important;
    width: 28px !important;
    height: 28px !important;
    z-index: 101 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #sp-main-menu {
    width: 100vw !important;
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  nav#sp-main-menu.open,
  nav#sp-main-menu.active {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 80vw !important;
    max-width: 340px !important;
    background: #fff !important;
    z-index: 20000 !important;
    box-shadow: none !important;
    border-top-right-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
    margin: 0 !important;
    overflow-y: auto !important;
    transition: left 0.2s;
    flex-direction: column;
    padding: 0 0 1.2rem 0 !important;
    pointer-events: auto !important;
  }
  nav#sp-main-menu.open ul.sp-menu,
  nav#sp-main-menu.active ul.sp-menu {
    background: #fff !important;
    pointer-events: auto !important;
    padding: 0.5rem 0.5rem 0.5rem 0.7rem !important;
  }
  nav#sp-main-menu.open ul.sp-menu li,
  nav#sp-main-menu.active ul.sp-menu li {
    pointer-events: auto !important;
    border-bottom: 1px solid #e5e7eb !important;
    margin-bottom: 2px !important;
  }
  nav#sp-main-menu.open ul.sp-menu li:last-child,
  nav#sp-main-menu.active ul.sp-menu li:last-child {
    border-bottom: none !important;
  }
  nav#sp-main-menu.open ul.sp-menu li a,
  nav#sp-main-menu.active ul.sp-menu li a {
    color: #1e3a8a !important;
    background: #fff !important;
    pointer-events: auto !important;
    z-index: 20001 !important;
    font-size: 1.08rem !important;
    font-weight: 500 !important;
    padding: 1.1rem 1.2rem !important;
    border-radius: 8px !important;
    transition:
      background 0.18s,
      color 0.18s;
    display: block;
  }
  nav#sp-main-menu.open ul.sp-menu li a:hover,
  nav#sp-main-menu.active ul.sp-menu li a:hover {
    background: #f3f4f6 !important;
    color: #0e223a !important;
  }
  nav#sp-main-menu.open ul.sp-menu,
  nav#sp-main-menu.active ul.sp-menu {
    background: #fff !important;
    pointer-events: auto !important;
  }
  nav#sp-main-menu.open ul.sp-menu li,
  nav#sp-main-menu.active ul.sp-menu li {
    pointer-events: auto !important;
  }
  nav#sp-main-menu.open ul.sp-menu li a,
  nav#sp-main-menu.active ul.sp-menu li a {
    color: #1e3a8a !important;
    background: #fff !important;
    pointer-events: auto !important;
    z-index: 20001 !important;
  }
  .sp-menu.open {
    display: flex !important;
  }
  #sp-search {
    width: 100% !important;
    margin: 6px 0 0 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 2 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .search-form {
    width: 100% !important;
    max-width: 100px !important;
    margin: 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .search-input {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .search-btn {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
/* FINAL FIX: Always show mobile menu on all screens */
@media (max-width: 900px) {
  #sp-menu-wrapper .container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 8px !important;
    min-height: unset !important;
  }
  .menu-toggle {
    display: flex !important;
    align-self: flex-end !important;
    margin: 0 0 8px 0 !important;
    z-index: 101;
  }
  #sp-main-menu {
    width: 100%;
    position: relative;
    display: block !important;
  }
  .sp-menu {
    flex-direction: column !important;
    gap: 0 !important;
    background: #fff !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    #sp-main-menu {
      width: 100vw !important;
      position: static !important;
      display: block !important;
      min-width: 0 !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
    .sp-menu.open {
      display: flex !important;
    }
    #sp-search {
      width: 100%;
      margin: 8px 0 0 0 !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      order: 2;
    }
    .search-form {
      width: 100%;
      max-width: 320px;
      margin: 0 auto;
    }
  }
  @media (max-width: 600px) {
    .sp-menu {
      flex-direction: column !important;
      gap: 0 !important;
      background: #fff !important;
      border-radius: 0 0 8px 8px !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
      width: 100vw !important;
      min-width: 0 !important;
      position: static !important;
      display: flex !important;
      max-height: 90vh !important;
      overflow-y: auto !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
    #sp-search {
      display: none !important;
    }
  }
  .menu-toggle {
    display: flex !important;
    align-self: flex-end !important;
    margin: 0 0 8px 0 !important;
    width: 32px !important;
    height: 32px !important;
    z-index: 101;
  }
  #sp-main-menu {
    width: 100vw !important;
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
  }
  .sp-menu {
    flex-direction: column !important;
    gap: 0 !important;
    background: #fff !important;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    width: 100vw !important;
    left: 0 !important;
    top: 36px !important;
    min-width: 0 !important;
    position: fixed !important;
    z-index: 9999 !important;
    display: none;
    max-height: 90vh;
    overflow-y: auto;
  }
  .sp-menu.open {
    display: flex !important;
  }
  #sp-search {
    width: 100%;
    margin: 8px 0 0 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 2;
  }
  .search-form {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
  }
  .search-input {
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
  }
  .search-btn {
    font-size: 0.95rem;
    padding: 0.4rem 0.7rem;
  }
}
@media (max-width: 350px) {
  .search-form {
    max-width: 120px;
  }
  .search-input,
  .search-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }
  .sp-menu {
    top: 32px !important;
  }
}
/* ====================================================================
   PETRODRILL GLOBAL - TEMPLATE.CSS RESTRUCTURED
   
   ORGANIZATION:
   1. CSS Variables & Foundation
   2. General Reset & Utilities
   3. Typography & Base Elements
   4. Form Elements & Inputs
   5. Buttons & Interactive Elements
   6. Layout Components (Header, Menu, Footer)
   7. Modern Redesigned Components
   8. Page-Specific Styles (About Page)
   9. Responsive Media Queries
   ==================================================================== */

/* ====================================================================
   1. CSS VARIABLES & FOUNDATION
   ==================================================================== */

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --secondary: #2d5aa8;
  --accent: #10b981;
  --dark: #1f2937;
  --gray-light: #f3f4f6;
  --gray-medium: #d1d5db;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* ============================ */
/* Responsive Navbar - Mobile UX */
/* ============================ */

/* Mobile ONLY: show hamburger, collapse menu on screens <= 980px */
@media (max-width: 980px) {
  #sp-menu-wrapper .container {
    padding: 0 20px !important;
    gap: 12px;
  }

  /* SHOW the menu toggle button - visible on mobile at ALL widths */
  .menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 38px !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    padding: 6px !important;
    position: relative !important;
    z-index: 12000 !important;
    margin: 0 !important;
  }

  button#menuToggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 38px !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    padding: 6px !important;
    position: relative !important;
    z-index: 12000 !important;
    margin: 0 !important;
  }

  #sp-menu-wrapper .container > .menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 38px !important;
    background: transparent !important;
    border: 0 !important;
    cursor: pointer !important;
    padding: 6px !important;
    position: relative !important;
    z-index: 12000 !important;
    margin: 0 !important;
  }

  .menu-toggle span,
  button#menuToggle span,
  #sp-menu-wrapper .container > .menu-toggle span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background: var(--dark) !important;
    margin: 3px 0 !important;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease !important;
  }

  /* collapsed menu (hidden by default) */
  nav#sp-main-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: none !important;
    z-index: 9999;
  }

  /* state when open: either nav has .open or a parent has .menu-open */
  nav#sp-main-menu.open,
  .menu-open nav#sp-main-menu,
  #menuToggle[aria-expanded="true"] ~ nav#sp-main-menu {
    display: block !important;
  }

  /* vertical menu list */
  nav#sp-main-menu ul.sp-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    padding: 8px 0;
    margin: 0;
  }
  nav#sp-main-menu ul.sp-menu li {
    display: block !important;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  nav#sp-main-menu ul.sp-menu li a {
    display: block !important;
    padding: 10px 20px !important;
    color: var(--dark) !important;
    text-align: left;
  }

  /* move search under menu for small screens */
  #sp-search {
    order: 3;
    width: 100%;
    margin-top: 8px;
  }
  #sp-menu-wrapper .container {
    flex-wrap: wrap;
    align-items: center;
  }
}

/* Extra-tight overrides for very small screens (phones ~<=420px) - extends 980px rule */
@media (max-width: 420px) {
  /* ensure toggle is nicely sized and left-aligned */
  #sp-menu-wrapper .container > .menu-toggle,
  button#menuToggle.menu-toggle,
  .menu-toggle {
    order: 1 !important;
    position: relative !important;
    left: 0 !important;
    margin: 0 !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    padding: 6px !important;
    z-index: 15000 !important;
    cursor: pointer !important;
  }

  /* compact search on the right */
  #sp-search {
    order: 2 !important;
    flex: 0 0 auto !important;
  }
  #sp-search .search-input {
    width: 120px !important;
  }

  /* nav dropdown anchored for phones: use fixed to avoid parent clipping */
  nav#sp-main-menu {
    position: fixed !important;
    top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    display: none !important;
    z-index: 14999 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--white) !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: 80vh !important;
    overflow: auto !important;
    transition:
      transform 220ms ease,
      opacity 200ms ease !important;
    transform-origin: top center !important;
  }

  /* show when toggled on via classes or document-level flag */
  nav#sp-main-menu.open,
  nav#sp-main-menu.active,
  html.menu-open nav#sp-main-menu,
  body.menu-open nav#sp-main-menu,
  #menuToggle.active ~ nav#sp-main-menu,
  #menuToggle[aria-expanded="true"] ~ nav#sp-main-menu {
    display: block !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
  }

  nav#sp-main-menu ul.sp-menu {
    display: block !important;
  }
  nav#sp-main-menu ul.sp-menu li {
    display: block !important;
  }
  nav#sp-main-menu ul.sp-menu li a {
    padding: 10px 16px !important;
    font-size: 16px !important;
  }

  /* prevent body scroll when menu open */
  html.menu-open,
  body.menu-open {
    overflow: hidden !important;
    height: 100% !important;
  }
}

/* Desktop: ensure horizontal layout and hide hamburger COMPLETELY */
@media (min-width: 981px) {
  .menu-toggle,
  button.menu-toggle,
  button#menuToggle,
  button#menuToggle.menu-toggle,
  #sp-menu-wrapper button,
  #sp-menu-wrapper .menu-toggle,
  #sp-menu-wrapper #menuToggle,
  #sp-menu-wrapper .container > .menu-toggle,
  #sp-menu-wrapper .container > #menuToggle,
  #sp-menu-wrapper .container button,
  .container > .menu-toggle,
  .container > #menuToggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  nav#sp-main-menu {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
  }
  nav#sp-main-menu ul.sp-menu {
    display: flex !important;
    gap: 32px !important;
    align-items: center;
    padding: 0;
  }
  nav#sp-main-menu ul.sp-menu li {
    display: list-item !important;
    border: 0 !important;
  }
  nav#sp-main-menu ul.sp-menu li a {
    padding: 10px 6px !important;
  }
}

/* Strong fallback selectors to override conflicting rules */
#sp-menu-wrapper #sp-main-menu ul.sp-menu {
  display: flex !important;
}

/* small accessibility focus state */
.menu-toggle:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====================================================================
   2. GENERAL RESET & UTILITIES
   ==================================================================== */

.clearfix {
  zoom: 1;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
  line-height: 0;
}

.clearfix:after {
  clear: both;
}

.hide-text {
  font: 0/0 a;
  color: transparent;
  text-shadow: none;
  background-color: transparent;
  border: 0;
}

.input-block-level {
  display: block;
  width: 100%;
  min-height: 30px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.center {
  text-align: center;
}

.center th,
.center tr,
.center td {
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.gap {
  display: none !important;
}

img.pull-left,
.pull-left > img {
  margin-right: 15px;
}

img.pull-right,
.pull-right > img {
  margin-left: 15px;
}

.media .pull-left > img {
  margin-right: 5px;
}

.media .pull-right > img {
  margin-left: 5px;
}

.rtl img.pull-left,
.rtl .pull-left > img {
  margin-left: 15px;
}

.rtl img.pull-right,
.rtl .pull-right > img {
  margin-right: 15px;
}

.row-fluid {
  margin: 0 !important;
  width: 100% !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.row-fluid > div[class*="span"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.row-fluid > div[class*="span"]:last-child {
  margin-right: 0 !important;
}

.container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 40px !important;
}

.body-innerwrapper {
  overflow-x: hidden;
  background: #fff;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Chrome Frame Alert */
.chromeframe {
  text-align: center !important;
}

/* ====================================================================
   3. TYPOGRAPHY & BASE ELEMENTS
   ==================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
}

h1,
h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
  line-height: 30px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333333;
}

.page-header {
  padding-bottom: 10px;
  margin: 0 0 20px;
}

.page-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 30px;
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 15px;
}

a {
  -webkit-transition:
    color 400ms,
    background-color 400ms,
    border-color 400ms,
    border-radius 400ms;
  -moz-transition:
    color 400ms,
    background-color 400ms,
    border-color 400ms,
    border-radius 400ms;
  -o-transition:
    color 400ms,
    background-color 400ms,
    border-color 400ms,
    border-radius 400ms;
  transition:
    color 400ms,
    background-color 400ms,
    border-color 400ms,
    border-radius 400ms;
  text-decoration: none;
}

a:hover,
a:active,
a:focus {
  outline: 0;
  text-decoration: none;
}

/* ====================================================================
   4. FORM ELEMENTS & INPUTS
   ==================================================================== */

input[type="submit"],
input[type="button"],
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
  font-weight: 300;
  min-height: 30px;
  box-shadow: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  border: 1px solid #f2f2f2;
  color: #b2b2b2;
}

input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="button"]:hover,
input[type="button"]:focus,
textarea:hover,
textarea:focus,
input[type="text"]:hover,
input[type="text"]:focus,
input[type="password"]:hover,
input[type="password"]:focus,
input[type="datetime"]:hover,
input[type="datetime"]:focus,
input[type="datetime-local"]:hover,
input[type="datetime-local"]:focus,
input[type="date"]:hover,
input[type="date"]:focus,
input[type="month"]:hover,
input[type="month"]:focus,
input[type="time"]:hover,
input[type="time"]:focus,
input[type="week"]:hover,
input[type="week"]:focus,
input[type="number"]:hover,
input[type="number"]:focus,
input[type="email"]:hover,
input[type="email"]:focus,
input[type="url"]:hover,
input[type="url"]:focus,
input[type="search"]:hover,
input[type="search"]:focus,
input[type="tel"]:hover,
input[type="tel"]:focus,
input[type="color"]:hover,
input[type="color"]:focus,
.uneditable-input:hover,
.uneditable-input:focus {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

input.input-block-level {
  min-height: 35px;
}

label.invalid {
  color: #c83025;
}

/* ====================================================================
   5. BUTTONS & INTERACTIVE ELEMENTS
   ==================================================================== */

.btn,
button,
input[type="submit"],
button[type="submit"] {
  background-image: none;
  border: 0;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  text-shadow: none;
  display: inline-block;
  zoom: 1;
  padding: 4px 14px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  color: #333;
  border: 1px solid #bbb;
  margin-left: 0.3em;
}

.btn:hover,
.btn:active,
.btn.active,
.btn.disabled,
.btn[disabled] {
  color: #333;
  background-color: #e6e6e6;
}

.btn:active,
.btn.active {
  background-color: #cccccc \9;
}

.btn:first-child {
  margin-left: 0;
}

.btn:hover {
  color: #333;
  text-decoration: none;
  background-color: #e6e6e6;
  background-position: 0 -15px;
  -webkit-transition: background-position 0.1s linear;
  -moz-transition: background-position 0.1s linear;
  -o-transition: background-position 0.1s linear;
  transition: background-position 0.1s linear;
}

.btn:focus {
  outline: thin dotted #333;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

.btn.active,
.btn:active {
  background-color: #d9d9d9 \9;
  background-image: none;
  outline: 0;
  -webkit-box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.05);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn.disabled,
.btn[disabled] {
  cursor: default;
  background-color: #e6e6e6;
  background-image: none;
  opacity: 0.65;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.btn-large {
  padding: 9px 14px;
  font-size: 16px;
  line-height: normal;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
}

.btn-small {
  padding: 3px 9px;
  font-size: 12px;
  line-height: 18px;
}

.btn-mini {
  padding: 2px 6px;
  font-size: 11px;
  line-height: 16px;
}

.btn-block {
  display: block;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.btn-block + .btn-block {
  margin-top: 5px;
}

.btn.btn-inverse {
  background: #333;
  color: #fff;
}

.btn-primary {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #006dcc;
  border-color: #0044cc #0044cc #002a80;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary.disabled,
.btn-primary[disabled] {
  color: #fff;
  background-color: #0044cc;
  background-color: #003bb3;
}

.btn-warning {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #faa732;
}

.btn-warning:hover,
.btn-warning:active,
.btn-warning.active,
.btn-warning.disabled,
.btn-warning[disabled] {
  color: #fff;
  background-color: #f89406;
  background-color: #df8505;
}

.btn-danger {
  background: #ea5e50;
}

.btn-danger:hover {
  background: #e53422;
}

.btn-success {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #5bb75b;
}

.btn-success:hover,
.btn-success:active,
.btn-success.active,
.btn-success.disabled,
.btn-success[disabled] {
  color: #fff;
  background-color: #51a351;
  background-color: #499249;
}

.btn-info {
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  background-color: #49afcd;
}

.btn-info:hover,
.btn-info:active,
.btn-info.active,
.btn-info.disabled,
.btn-info[disabled] {
  color: #fff;
  background-color: #2f96b4;
  background-color: #2a85a0;
}

.btn-link,
.btn-link:active {
  background-color: transparent;
  background-image: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.btn-link {
  border-color: transparent;
  cursor: pointer;
  color: #08c;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
}

.btn-link:hover {
  color: #005580;
  text-decoration: underline;
  background-color: transparent;
}

button.btn,
input[type="submit"].btn {
  padding-top: 3px;
  padding-bottom: 3px;
}

button.btn::-moz-focus-inner,
input[type="submit"].btn::-moz-focus-inner {
  padding: 0;
  border: 0;
}

button:not(.btn),
input[type="submit"]:not(.btn),
button[type="submit"]:not(.btn) {
  padding: 4px 14px;
}

.readmore,
a.readmore,
a.btn-more {
  padding: 10px 15px;
  font-weight: 400;
  color: #fff !important;
  -webkit-transition: 400ms;
  -moz-transition: 400ms;
  -o-transition: 400ms;
  transition: 400ms;
}

/* ====================================================================
   6. PAGINATION & SEARCH
   ==================================================================== */

ul.pagenav {
  list-style: none;
  padding: 0;
  clear: both;
  margin-top: 10px;
  margin-left: 0;
  overflow: hidden;
}

ul.pagenav .pagenav-prev {
  float: left;
}

ul.pagenav .pagenav-next {
  float: right;
}

.pagination ul {
  box-shadow: none;
}

.pagination ul > li > a,
.pagination ul > li > span {
  font-size: 16px;
  background-color: transparent;
  border: none;
  margin-right: 5px;
  border: 1px solid #f2f2f2;
}

.pagination ul li a {
  padding: 8px 15px;
  color: #999999;
}

.pagination ul li a:hover,
.pagination ul li a.active {
  color: #fff !important;
  border: 1px solid transparent;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
}

.pagination ul li.pagination-active a {
  color: #fff;
  border: 1px solid transparent;
}

.pagination ul > li:last-child > a,
.pagination ul > li:last-child > span,
.pagination ul > li:first-child > a,
.pagination ul > li:first-child > span {
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
}

.search .phrases-box {
  display: inline-block;
}

.search .phrases-box label {
  display: inline-block;
  margin-right: 10px;
}

.search .only label {
  display: inline-block;
  margin-right: 10px;
}

.search .ordering-box {
  float: right;
}

.search .form-limit {
  margin: -50px 0 30px;
  text-align: right;
}

.search dl.search-results {
  display: block;
}

.search dl.search-results dt,
.search dl.search-results dd {
  display: block;
}

.search dl.search-results .result-created {
  margin-bottom: 20px;
}

.search button.btn {
  height: 40px;
  min-height: 40px;
  -webkit-border-radius: 0px !important;
  -moz-border-radius: 0px !important;
  border-radius: 0px !important;
}

/* ====================================================================
   7. LAYOUT COMPONENTS - HEADER, MENU, FOOTER
   ==================================================================== */

/* Header Styling */
#sp-header-wrapper {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  ) !important;
  padding: 16px 0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  position: relative;
}

#sp-header-wrapper .container {
  display: flex !important;
  justify-content: space-between;
  width: 100%;
  max-width: 100% !important;
}

#sp-logo {
  position: relative;
  z-index: 10;
}

/* #sp-logo .logo {
    width: 80px;
    height: 60px;
    background-image: url(../../images/presets/preset3/logo.png) !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
} */

#sp-logo .logo-wrapper {
  text-decoration: none;
  display: flex;
}

#sp-top-info {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icons {
  list-style: none !important;
  display: flex;
  gap: 10px;
  margin: 0;
  align-items: center;
}

.social-icons li {
  list-style: none !important;
}

.social-icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
}

.social-icons li a:hover {
  background: var(--secondary) !important;
  transform: translateY(-4px) scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.sp-main-menu-toggler {
  display: none !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  padding: 10px 14px !important;
  cursor: pointer;
  transition: var(--transition) !important;
  border-radius: 6px !important;
  position: relative !important;
  z-index: 10;
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.sp-main-menu-toggler:hover,
.sp-main-menu-toggler:focus {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.05);
}

.sp-main-menu-toggler:active {
  background: rgba(255, 255, 255, 0.4) !important;
}

.sp-main-menu-toggler i {
  display: block;
}

/* Menu Styling */
#sp-menu-wrapper {
  background: var(--white) !important;
  border-bottom: 1px solid var(--gray-light) !important;
  padding: 0 !important;
  width: 100%;
  margin: 0 !important;
  position: relative;
  box-shadow: none;
}
/* --- FINAL OVERRIDE: Ensure mobile menu toggle works --- */
@media (max-width: 900px) {
  #sp-main-menu {
    display: none !important;
  }
  #sp-main-menu.open {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background: #fff;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #eee;
    padding-bottom: 1rem;
  }
}

#sp-menu-wrapper .container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px !important;
  max-width: 100% !important;
  margin: 0 !important;
  gap: 30px;
  min-height: 60px;
}

#sp-main-menu {
  display: block;
  flex: 1;
}

#sp-main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Ensure top-level menu renders horizontally even if CMS classes differ */
#sp-main-menu ul.sp-menu,
#sp-main-menu > ul,
#sp-main-menu ul {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}

#sp-main-menu ul.sp-menu > li,
#sp-main-menu > ul > li,
#sp-main-menu ul.level-0 > li {
  display: inline-block;
  margin: 0;
  padding: 0;
  position: relative;
}

#sp-main-menu ul.sp-menu > li > a,
#sp-main-menu ul.level-0 > li > a {
  display: block;
  padding: 15px 12px;
  color: #666666;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
}

#sp-main-menu ul.level-0 > li {
  display: inline-block;
  margin: 0 30px 0 0;
  padding: 0;
  position: relative;
  -webkit-transition: all 200ms;
  -moz-transition: all 200ms;
  -o-transition: all 200ms;
  transition: all 200ms;
}

#sp-main-menu ul.level-0 > li > a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  display: block;
  margin: 0;
  padding: 15px 10px;
  color: #666666;
  position: relative;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

#sp-main-menu ul.level-0 > li:first-child > a {
  padding-left: 0;
}

#sp-main-menu ul.level-0 > li > a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 0.3s ease;
}

#sp-main-menu ul.level-0 > li:hover > a::before,
#sp-main-menu ul.level-0 > li.active > a::before {
  width: 100%;
}

#sp-main-menu ul.level-0 > li:hover > a,
#sp-main-menu ul.level-0 > li.active > a {
  position: relative;
  color: var(--primary);
}

#sp-main-menu ul.level-0 > li.parent > a:after {
  content: "\f107";
  font-family: FontAwesome;
  position: absolute;
  right: 0;
  margin-right: -8px;
  top: 50%;
  margin-top: -10px;
  z-index: 3;
}

#sp-main-menu li ul.level-1 {
  border-top: 1px solid #f5f5f5;
  background: var(--gray-light);
  border-radius: 0 0 8px 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

#sp-main-menu li:hover ul.level-1 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#sp-main-menu li li:not(.sp-menu-group) {
  display: block;
  position: relative;
  text-transform: capitalize;
  -webkit-transition: all 200ms;
  -moz-transition: all 200ms;
  -o-transition: all 200ms;
  transition: all 200ms;
}

#sp-main-menu li li:not(.sp-menu-group) > a {
  display: block;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: normal;
  text-decoration: none;
  padding: 10px;
  color: #999999;
}

#sp-main-menu li li:not(.sp-menu-group) > a:hover {
  color: #fff;
}

/* Search Styling */
#sp-search {
  flex-shrink: 0;
  min-width: 280px;
}

#sp-search .search,
#sp-search .search-wrapper {
  margin: 0;
  padding: 0;
}

#sp-search .search form,
#sp-search .search-form {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

#sp-search .search-wrapper {
  display: flex;
  align-items: center;
  background: var(--gray-light);
  border: 2px solid var(--gray-medium);
  border-radius: 6px;
  padding: 0 12px;
  height: 40px;
  transition: var(--transition);
}

#sp-search .search-wrapper:focus-within {
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

#sp-search .search-input,
#sp-search .search #mod-search-searchword {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--dark);
  font-size: 14px;
  padding: 8px 0;
  margin: 0;
  outline: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#sp-search .search-input::placeholder,
#sp-search .search #mod-search-searchword::placeholder {
  color: var(--gray-medium);
}

#sp-search .search-btn,
#sp-search .search .btn-top-search {
  background: var(--secondary);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  margin: 0;
  margin-left: 8px;
  position: static;
  text-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sp-search .search-btn:hover,
#sp-search .search .btn-top-search:hover {
  background: #ff8c42;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  margin: 0;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  #sp-main-menu {
    display: block !important;
  }

  /* Hide old mobile menu markup */
  .hidden-desktop {
    display: none !important;
  }
  .sp-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  #sp-main-menu {
    #sp-main-menu {
      display: none !important;
    }
    #sp-main-menu.open {
      display: block !important;
      position: absolute !important;
      top: 100%;
      left: 0;
      width: 100vw !important;
      min-width: 0 !important;
      max-width: 100vw !important;
      background: #fff !important;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      z-index: 1000;
      visibility: visible !important;
      height: auto !important;
      margin: 0 !important;
      padding: 0.5rem 0 !important;
      overflow: visible !important;
    }
    #sp-main-menu.open .sp-menu {
      display: flex !important;
      flex-direction: column !important;
    }
    #sp-main-menu.open .sp-menu > li {
      width: 100%;
      text-align: left;
      padding: 0.5rem 1rem !important;
      margin: 0 !important;
    }
  }
  #sp-main-menu.active {
    display: block;
  }
  #sp-main-menu ul.sp-menu {
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  #sp-main-menu ul.sp-menu > li {
    border-bottom: 1px solid #f0f0f0;
  }
  #sp-main-menu ul.sp-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--primary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  #sp-main-menu ul.sp-menu > li > a:hover,
  #sp-main-menu ul.sp-menu > li.active > a {
    background-color: var(--gray-light);
    color: var(--secondary) !important;
    border-left: 4px solid var(--secondary);
    padding-left: 16px;
  }

  /* Ensure desktop-style active underline for sp-menu top-level items */
  #sp-main-menu ul.sp-menu > li > a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transition: width 0.3s ease;
  }

  #sp-main-menu ul.sp-menu > li:hover > a::before,
  #sp-main-menu ul.sp-menu > li.active > a::before {
    width: 100%;
  }

  /* Hide old mobile menu markup */
  .hidden-desktop {
    display: none !important;
  }
  .sp-mobile-menu {
    display: none !important;
  }
}

#sp-menu-wrapper.menu-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999999;
  background: #fff;
  -webkit-animation: fadeInDown 400ms;
  animation: fadeInDown 400ms;
}

#sp-menu-wrapper.menu-fixed-out {
  -webkit-animation: fadeOutUp 400ms;
  animation: fadeOutUp 400ms;
}

/* Footer Styling */
#sp-bottom-wrapper {
  background: linear-gradient(135deg, var(--dark) 0%, #263549 100%);
  color: white;
  padding: 60px 40px !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Unified footer styling - now using modern footer-container structure */

#sp-footer-wrapper {
  background: var(--dark, #0b1220);
  color: #ffffff;
  font-size: 13px;
  line-height: 30px;
  text-align: center;
  padding: 50px 60px 40px;
}

#sp-footer-wrapper .designed-by {
  display: inline-block;
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.75);
}

#sp-footer-wrapper ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#sp-footer-wrapper ul li {
  display: inline-block;
  margin-right: 25px;
}

#sp-footer-wrapper ul li a {
  color: #ffffff;
  opacity: 0.9;
  text-decoration: none;
}

#sp-footer-wrapper ul li a:hover {
  color: var(--secondary);
  opacity: 1;
}

#sp-footer-wrapper ul li:last-child {
  margin-right: 0;
}

/* Footer Container & Content Layout */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-column {
  position: relative;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: var(--transition);
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-column:hover h3::after {
  opacity: 1;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-column ul li:last-child {
  margin-bottom: 0;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding-left: 12px;
}

.footer-column ul li a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--secondary);
  padding-left: 16px;
}

.footer-column ul li a:hover::before {
  opacity: 1;
}

/* Newsletter Column */
.newsletter-column h3 {
  margin-bottom: 15px;
}

.newsletter-column p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.newsletter-form input {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.newsletter-form button {
  background: linear-gradient(135deg, var(--secondary), #ff8c42);
  border: none;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Breadcrumb */
#sp-breadcrumb-wrapper {
  padding: 15px 0;
}

#sp-breadcrumb-wrapper #sp-breadcrumb {
  min-height: 0;
  padding-top: 5px;
}

#sp-breadcrumb-wrapper #sp-breadcrumb ul.breadcrumb {
  padding: 0;
  margin: 0;
  background-color: transparent;
}

#sp-breadcrumb-wrapper #sp-breadcrumb ul.breadcrumb li {
  text-shadow: none;
  color: #fff !important;
}

#sp-breadcrumb-wrapper #sp-breadcrumb ul.breadcrumb li a.pathway {
  color: #fff;
}

#sp-breadcrumb-wrapper #sp-breadcrumb ul.breadcrumb li span.divider {
  color: #fff !important;
}

#sp-breadcrumb-wrapper #sp-go-to-top {
  min-height: 10px;
}

#sp-breadcrumb-wrapper #sp-go-to-top a.sp-totop {
  color: #fff;
}

#sp-breadcrumb-wrapper #sp-go-to-top a.sp-totop small {
  display: none;
}

#sp-breadcrumb-wrapper #sp-go-to-top a.sp-totop i {
  font-size: 18px;
  color: #fff;
  padding: 5px 8px;
  border: 1px solid #fff;
  float: right;
}

/* Floating To-Top Button */
#sp-go-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#sp-go-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.sp-totop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #f97316);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  border: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.sp-totop:hover {
  background: linear-gradient(135deg, #f97316, var(--secondary));
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.6);
}

.sp-totop:active {
  transform: translateY(-4px) scale(1.05);
}

.sp-totop small {
  display: none;
}

.sp-totop i {
  font-size: 24px;
}

/* csutom styles for service page start*/

.service-division {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 40px;
  gap: 20px;
  justify-content: space-between;
}

.service-division .image {
  background-size: cover;
  width: 100%;
  height: 200px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid #fff;
}

.service-division .image1 {
  background-image: url(../../../images//hse.jpg);
}
.service-division .image2 {
  background-image: url(../../../images/safety.jpg);
}
.service-division .image3 {
  background-image: url(../../../images/imgb5.jpg);
}


.safety-services {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 40px;
  gap: 20px;
  justify-content: space-between;
}

.safety-services .image {
  background-size: cover;
  width: 100%;
  height: 200px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid #fff;
}

.safety-services .image1 {
  background-image: url(../../../images/hse_innov_220.jpg);
}
.safety-services .image2 {
  background-image: url(../../../images/tp2.jpg);
}
.safety-services .image3 {
  background-image: url(../../../images/safetyequipment2.jpg);
}

.equipment-supplies {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-top: 40px;
  gap: 20px;
  justify-content: space-between;
}

.equipment-supplies .image {
  background-size: cover;
  width: 100%;
  height: 200px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid #fff;
}

.equipment-supplies .image1 {
  background-image: url(../../../images/eqipment.jpg);
}
.equipment-supplies .image2 {
  background-image: url(../../../images/Generator1.jpg);
}
.equipment-supplies .image3 {
  background-image: url(../../../images/natural-gas-well-pump-art-bc05753fe3be4122.jpg);
}
.equipment-supplies .image4 {
  background-image: url(../../../images/CobeyHighSpeedReciprocatingCompressorPackageModel-2.jpg);
}


.service-partners {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-top: 40px;
  gap: 20px;
  justify-content: space-between;
}

.service-partners .image {
  background-size: cover;
  width: 100%;
  height: 200px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid #fff;
}

.service-partners .image1 {
  background-image: url(../../../images/barge_rig.jpg);
}
.service-partners .image2 {
  background-image: url(../../../images/bargerig.jpg);
}
.service-partners .image3 {
  background-image: url(../../../images/images1.jpg);
}
.service-partners .image4 {
  background-image: url(../../../images/landrig.jpg);
}

.services-process-grid{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.services-process-grid .service-step{
  display: flex;
  align-items: center;
  gap: 20px;
}

.services-process-grid .service-step .text{
  width: 50%;
}

.services-process-grid .service-step .text h4{
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.services-process-grid .service-step .text p{
  font-size: 1.25rem;
  color: #555;
  line-height: 1.2;
}

.services-process-grid .service-step .image{
  width: 50%;
  display: flex;
  border: 2px solid #eee;
}

.services-process-grid .service-step .image >img{
  width: 100%;
}

.services-process-grid .service-step .image >img{
  width: 50%;
}

/* service style end */

/* ====================================================================
   8. MODERN COMPONENTS - SLIDER, FEATURES, TAB, CTA, TESTIMONIALS
   ==================================================================== */

/* ========== CAROUSEL SLIDER ========== */
#sp-slider-wrapper {
  width: 100%;
  /* height: 600px !important; */
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  width: 700%;
  height: 100%;
  transition: transform 0.8s ease-out;
  will-change: transform;
}

.slider-slide {
  flex: 0 0 calc(100% / 7);
  width: calc(100% / 7);
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  margin: 0;
}

.slider-slide.slide-1 {
  background-image:
    linear-gradient(135deg, rgba(4, 36, 122, 0.7), rgba(45, 90, 168, 0.7)),
    url("https://www.michels.us/wp-content/uploads/2022/09/Direct-Pipe-solution-2400x1350-1.webp");
}

.slider-slide.slide-2 {
  background-image:
    linear-gradient(135deg, rgba(4, 36, 122, 0.7), rgba(45, 90, 168, 0.7)),
    url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?w=1200&h=600&fit=crop");
}

.slider-slide.slide-3 {
  background-image:
    linear-gradient(135deg, rgba(4, 36, 122, 0.7), rgba(45, 90, 168, 0.7)),
    url("https://www.johnhenryrockdrill.com/wp-content/uploads/2023/04/JH16-316-btn-1.jpg");
}

.slider-slide.slide-4 {
  background-image:
    linear-gradient(135deg, rgba(4, 36, 122, 0.7), rgba(45, 90, 168, 0.7)),
    url("https://images.unsplash.com/photo-1560707303-4e980ce876ad?w=1200&h=600&fit=crop");
}

.slider-slide.slide-5 {
  background-image:
    linear-gradient(135deg, rgba(4, 36, 122, 0.7), rgba(45, 90, 168, 0.7)),
    url("https://www.linedpipesystems.com/wp-content/uploads/2025/09/heavy-duty-construction-machines-carrying-placing-gas-pipe-into-ground-1200x801.jpg");
}

.slider-slide.slide-6 {
  background-image:
    linear-gradient(135deg, rgba(4, 36, 122, 0.7), rgba(45, 90, 168, 0.7)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1200&h=600&fit=crop");
}

.slider-slide.slide-7 {
  background-image:
    linear-gradient(135deg, rgba(4, 36, 122, 0.7), rgba(45, 90, 168, 0.7)),
    url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?w=1200&h=600&fit=crop");
}

.slide-content {
  max-width: 900px;
  text-align: center;
  z-index: 2;
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: white;
  letter-spacing: -2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-text {
  font-size: 1.3rem;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  letter-spacing: 0.3px;
}

.slide-btn {
  display: inline-block;
  padding: 16px 45px;
  background: linear-gradient(135deg, var(--secondary), #f97316);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: none;
  border: none;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.slide-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
}

.slider-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#sp-slider-wrapper:hover .slider-controls {
  opacity: 1;
  pointer-events: auto;
}

.slider-btn-prev,
.slider-btn-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.slider-btn-prev:hover,
.slider-btn-next:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.slider-dots {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

#sp-slider-wrapper:hover .slider-dots {
  opacity: 1;
  pointer-events: auto;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.slider-dot.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

.slider-dot:hover {
  background: rgba(245, 158, 11, 0.8);
}

/* Features Section */
#sp-feature-wrapper {
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%) !important;
  padding: 0 60px 100px 60px !important;
  width: 100% !important;
  margin: 0 !important;
}

#sp-feature-wrapper .container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
}

#sp-feature-wrapper .module-title {
  color: #1a2332;
  margin-bottom: 48px;
  text-align: left;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 20px;
}

#sp-feature-wrapper .module-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #2d5aa8, #10b981);
  border-radius: 3px;
}

#sp-feature-wrapper .row-fluid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  align-items: stretch;
  justify-content: space-between;
}

#sp-feature-wrapper .row-fluid > div[class*="span"] {
  flex: 0 1 23%;
  min-width: 220px;
  max-width: 23%;
  box-sizing: border-box;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 30px 25px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.card-top {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), #f97316);
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.3;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.sp-feature {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  border: none;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sp-feature:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: transparent;
  background: white;
}

.sp-feature i {
  font-size: 60px;
  color: var(--primary-light);
  margin-bottom: 18px;
  display: block;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.sp-feature:hover i {
  font-size: 70px;
  color: var(--secondary);
  transform: scale(1.1);
}

.sp-feature h3 {
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sp-feature p {
  color: #374151;
  line-height: 1.9;
  font-size: 15px;
  font-weight: 400;
}

/* Module Styles */
.module {
  margin-top: 40px;
}

.module:first-child {
  margin-top: 0;
}

.module h2.module-title {
  font-size: 18px;
  line-height: 18px;
  font-weight: 400;
  margin: 0 0 20px 0;
  text-align: left;
  text-transform: uppercase;
}

.module h2.module-title .module-subtitle {
  display: block;
  font-size: 24px;
  line-height: 30px;
  margin: 10px 0 30px;
}

.module.title1 h2.module-title {
  background: #f9bf3b;
}

.module.title2 h2.module-title {
  background: #2fb5e6;
  color: #fff;
}

.module.title3 h2.module-title {
  background: #26c281;
  color: #fff;
}

.module.title4 h2.module-title {
  background: #e55045;
  color: #fff;
}

.module.well {
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  border: 0;
  padding: 50px;
}

/* CTA Section */
#sp-call-to-action-wrapper {
  background: linear-gradient(135deg, #1e3a8a 0%, #2d5aa8 50%, #1e3a8a 100%);
  padding: 80px 40px !important;
  margin: 0 !important;
  width: 100% !important;
  color: white;
  position: relative;
  overflow: hidden;
}

#sp-call-to-action-wrapper::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 158, 11, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

#sp-call-to-action-wrapper::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(16, 185, 129, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.cta-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.5px;
  margin: 0;
  color: white;
}

.cta-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.3px;
  max-width: 600px;
}

.cta-button-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  min-width: 160px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cta-btn-primary {
  background: linear-gradient(135deg, #2d5aa8, #1e3a8a);
  color: white;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.cta-btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.5);
}

.cta-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-4px);
}

.cta-accent {
  flex: 0 1 400px;
  height: 300px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.15);
}

/* Testimonials & Clients Section */
#sp-testimonial-wrapper {
  padding: 80px 40px !important;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%) !important;
  width: 100% !important;
  margin: 0 !important;
}

.clients-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.clients-header {
  text-align: center;
  margin-bottom: 60px;
}

.clients-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.clients-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 35px;
}

.client-logo-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-decoration: none;
}

.client-logo-card img {
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.client-logo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-light);
  background: white;
}

.client-logo-card:hover img {
  filter: brightness(1.1) drop-shadow(0 4px 8px rgba(30, 58, 138, 0.15));
}

.sp-clients ul {
  list-style: none !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 35px;
  margin: 0;
  padding: 0;
}

.sp-clients li {
  list-style: none !important;
  background: var(--gray-light);
  padding: 40px 30px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.sp-clients li:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-light);
  background: white;
}

.sp-clients img {
  max-width: 90%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
}

#sp-main-body {
  padding: 0 0 20px;
}

#sp-subheader-wrapper #subheader .custom {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

#sp-subheader-wrapper #subheader .subheader-text-wrapper {
  color: #fff;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.75);
  width: 100%;
  height: 100%;
}

#sp-subheader-wrapper #subheader .subheader-text-wrapper h3 {
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  font-weight: bold;
  font-size: 45px;
  letter-spacing: 0;
}

#sp-subheader-wrapper #subheader .subheader-text-wrapper p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 20px;
}

#subheader {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

#sp-content-top-wrapper {
  margin-bottom: 50px;
}

/* ====================================================================
   9. ABOUT SECTION STYLING
   ==================================================================== */

/* About Featured Grid Layout */
.about-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin: 80px 0;
}

.about-featured-grid > article {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about-section {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.about-section:hover {
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Section Header */
.section-header {
  margin-bottom: 35px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.title-underline {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary-light));
  border-radius: 2px;
  margin: 0;
}

/* About Content */
.about-content {
  color: var(--text-dark);
  line-height: 1.9;
}

.about-intro {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 20px 0;
  line-height: 1.8;
}

.about-text {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0 0 18px 0;
  line-height: 1.85;
}

.about-text:last-of-type {
  margin-bottom: 35px;
}

/* About Images Grid */
.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 35px 0;
}

.about-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
}

.about-img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

/* About Footer - Credentials */
.about-footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 35px 0;
  padding: 25px 0;
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
}

.credential-img {
  width: 100%;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  opacity: 0.85;
  transition: var(--transition);
}

.credential-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* About Link */
.about-link {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff !important;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  position: relative;
  overflow: hidden;
}

.about-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.about-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.about-link:hover::before {
  left: 100%;
}

/* Featured Section (Right side) */
.featured-section {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.featured-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.featured-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.featured-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  margin-bottom: 15px;
}

.featured-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px 0;
}

.featured-text {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0 0 15px 0;
  line-height: 1.7;
}

.featured-logos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.featured-logos img {
  max-height: 50px;
  max-width: 100px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--transition);
}

.featured-logos img:hover {
  opacity: 1;
}

.training-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 15px;
}

.featured-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 10px;
}

.featured-link:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

/* ====================================================================
   9a. PAGE-SPECIFIC STYLES - ABOUT PAGE
   ==================================================================== */

#sp-page-banner {
  background: linear-gradient(135deg, var(--primary), var(--dark)) no-repeat
    center;
  background-size: cover;
  padding: 120px 40px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.page-banner-section {
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(45, 90, 168, 0.9)),
    url("https://images.unsplash.com/photo-1497435334941-0db13b956f1c?w=1200&h=600&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.page-banner-section > .container {
  position: relative;
  z-index: 2;
}

#sp-main-body-wrapper {
  padding: 100px 0;
}

#sp-main-body-wrapper .container {
  padding: 0 40px !important;
}

.about-content-main #main-body {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

.page-banner-about {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.banner-content {
  color: white;
  z-index: 2;
  animation: slideInUp 0.8s ease-out;
  text-align: center;
  padding: 80px 0;
}

.banner-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.1;
  letter-spacing: -2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: white;
}

.banner-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.about-main-content {
  flex: 1;
  margin-right: 30px;
}

.about-sidebar {
  flex: 0 0 300px;
}

.about-content-main {
  line-height: 1.8;
  color: #555;
}

.about-section-intro {
  background: linear-gradient(
    135deg,
    rgba(63, 81, 181, 0.05),
    rgba(233, 30, 99, 0.05)
  );
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  border-left: 4px solid var(--primary);
}

.intro-text {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin: 0;
}

.content-section {
  margin-bottom: 50px;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--secondary);
  display: inline-block;
}

.section-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-top: 15px;
}

.training-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.training-list li {
  padding: 10px 0;
  padding-left: 30px;
  color: #555;
  line-height: 1.6;
  position: relative;
}

.training-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
}

#sp-right .module {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.accordion {
  border: none;
}

.accordion-group {
  border: none;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 0;
}

.accordion-group:last-child {
  border-bottom: none;
}

.accordion-heading a {
  background: white;
  color: var(--primary);
  font-weight: 600;
  padding: 18px 20px;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.accordion-heading a:hover,
.accordion-heading a.active {
  background: #f8f9fb;
  border-left-color: var(--secondary);
  color: var(--secondary);
}

.accordion-heading .number {
  margin-right: 12px;
  color: var(--secondary);
  font-size: 1.2rem;
}

.accordion-inner {
  padding: 20px;
  color: #666;
  line-height: 1.7;
  background: #fafafa;
}

/* ====================================================================
   10. RESPONSIVE MEDIA QUERIES
   ==================================================================== */

/* Feature Grid Responsive */
@media (max-width: 1200px) {
  #sp-feature-wrapper .row-fluid > div[class*="span"] {
    flex: 0 1 31%;
    max-width: 31%;
  }

  #sp-feature-wrapper .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .responsive #sp-main-menu ul.level-0 > li {
    margin-right: 10px;
  }

  .responsive #sp-main-menu ul.level-0 > li > a {
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  #sp-slider-wrapper {
    height: 500px;
  }

  .slider-slide {
    height: 500px;
    padding: 50px 30px;
  }

  .slide-title {
    font-size: 3rem;
    margin-bottom: 15px;
  }
  .slide-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.5;
  }
  .slide-btn {
    padding: 14px 35px;
    font-size: 0.9rem;
  }
  .slider-controls {
    bottom: 25px;
    gap: 8px;
  }
  .slider-btn-prev,
  .slider-btn-next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .slider-dots {
    bottom: 75px;
    gap: 6px;
  }
  .slider-dot {
    width: 10px;
    height: 10px;
  }
  .slider-dot.active {
    width: 25px;
  }

  #sp-feature-wrapper,
  #sp-tab-wrapper,
  #sp-call-to-action-wrapper,
  #sp-testimonial-wrapper,
  #sp-bottom-wrapper {
    padding: 12px 20px !important;
  }

  /* Responsive footer for old Joomla structure (768px) */
  #sp-bottom-wrapper #bottom {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }

  #sp-bottom-wrapper #bottom #sp-bottom3 {
    grid-column: 1 / -1 !important;
  }

  #sp-bottom-wrapper #bottom #sp-bottom4 {
    grid-column: 1 / -1 !important;
  }

  #sp-feature-wrapper .row-fluid > div[class*="span"] {
    flex: 0 1 48%;
    max-width: 48%;
  }

  #sp-feature-wrapper .module-title {
    font-size: 1.8rem;
  }

  .cta-container {
    flex-direction: column;
    gap: 30px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  .cta-button-group {
    gap: 12px;
  }

  .cta-accent {
    width: 100%;
    height: 200px;
  }

  #sp-page-banner {
    padding: 80px 20px;
    margin-bottom: 40px;
  }

  .page-banner-about {
    min-height: 250px;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-subtitle {
    font-size: 1rem;
  }

  .about-main-content {
    margin-right: 0;
    margin-bottom: 40px;
  }

  .about-sidebar {
    flex: 1;
  }

  .section-heading {
    font-size: 1.1rem;
  }

  .section-text {
    font-size: 0.95rem;
  }

  .about-section-intro {
    padding: 20px;
  }

  .intro-text {
    font-size: 1rem;
  }

  #main-body {
    display: flex;
    flex-wrap: wrap;
  }

  .about-main-content {
    flex: 1 1 100%;
  }

  .about-sidebar {
    flex: 1 1 100%;
  }

  .about-featured-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-section {
    padding: 30px 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .title-underline {
    width: 50px;
  }

  .about-text {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .about-images {
    grid-template-columns: 1fr;
    gap: 15px;
    height: auto;
  }

  .about-images img {
    height: 200px;
  }

  .about-footer {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .featured-section {
    padding: 30px 20px;
  }

  .featured-card {
    padding: 20px 15px;
  }

  .featured-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .featured-logos {
    gap: 10px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }

  .footer-column ul li a {
    font-size: 0.9rem;
    padding-left: 8px;
  }

  .footer-column ul li a::before {
    font-size: 0.8rem;
  }

  .newsletter-column p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .newsletter-form input {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .newsletter-form button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  #sp-header-wrapper {
    padding: 10px 0 !important;
  }

  #sp-header-wrapper .container {
    padding: 0 15px;
    gap: 10px;
  }

  #sp-top-info {
    gap: 8px;
  }

  .sp-main-menu-toggler {
    padding: 8px 12px !important;
    font-size: 16px !important;
  }

  #sp-logo .logo {
    width: 60px;
    height: 45px;
  }

  .social-icons {
    gap: 6px;
  }

  .social-icons li a {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  #sp-slider-wrapper {
    height: 350px;
  }

  .slider-slide {
    height: 350px;
    padding: 30px 15px;
  }

  .slide-content {
    max-width: 100%;
  }
  .slide-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
  }
  .slide-text {
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .slide-btn {
    padding: 12px 28px;
    font-size: 0.8rem;
  }
  .slider-controls {
    bottom: 2px;
    gap: 8px;
  }
  .slider-btn-prev,
  .slider-btn-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .slider-dots {
    bottom: 2px;
    gap: 6px;
  }
  .slider-dot {
    width: 8px;
    height: 8px;
  }
  .slider-dot.active {
    width: 20px;
  }

  #sp-feature-wrapper .row-fluid > div[class*="span"] {
    flex: 0 1 100%;
    max-width: 100%;
  }

  #sp-feature-wrapper .row-fluid {
    justify-content: center;
  }

  #sp-feature-wrapper .features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #sp-feature-wrapper .feature-card {
    padding: 20px 18px;
  }

  .about-section {
    padding: 20px 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .title-underline {
    width: 40px;
  }

  .about-intro {
    font-size: 1rem;
  }

  .about-text {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .about-images {
    gap: 10px;
  }

  .about-images img {
    height: 150px;
  }

  .about-link {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .featured-section {
    padding: 20px 15px;
  }

  .featured-card {
    padding: 15px 12px;
  }

  .featured-card h4 {
    font-size: 0.9rem;
  }

  .featured-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .featured-logos {
    gap: 10px;
  }

  #sp-feature-wrapper .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  #sp-feature-wrapper .feature-card h3 {
    font-size: 16px;
  }

  #sp-page-banner {
    padding: 60px 15px;
    margin-bottom: 30px;
  }

  .page-banner-about {
    min-height: 200px;
  }

  .banner-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .banner-subtitle {
    font-size: 0.9rem;
  }

  .about-featured-grid {
    gap: 30px;
  }

  .about-images {
    grid-template-columns: 1fr;
  }

  .about-footer {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-column h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .footer-column ul li a {
    font-size: 0.85rem;
    padding-left: 8px;
  }

  .footer-column ul li a::before {
    font-size: 0.8rem;
  }

  .newsletter-column p {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .newsletter-form input {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .newsletter-form button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* ====================================================================
   11. PAGE-SPECIFIC STYLES - EXPLORATION PAGE
   (All pages now use unified global styles - no page-specific overrides)
   ==================================================================== */
/* All pages now use unified global styles for consistent appearance */

/* Utility RTL Support */
.rtl #sp-main-menu {
  float: right;
}

.rtl #sp-main-menu li li:not(.sp-menu-group).parent > a:after {
  right: inherit;
  left: 10px;
}

.rtl #sp-search .search .btn-top-search {
  left: 10px;
}

.rtl .sp-submenu {
  right: 0;
}

.ltr .sp-submenu {
  left: 0;
}

.rtl img.pull-left,
.rtl .pull-left > img {
  margin-right: 0;
  float: right;
}

.rtl img.pull-right,
.rtl .pull-right > img {
  margin-left: 0;
  float: left;
}

.rtl #sp-footer-wrapper .helix-framework {
  float: right;
  margin-left: 15px;
}

.rtl #sp-footer-wrapper #sp-footer2 {
  text-align: left;
}

.ltr #sp-footer-wrapper .helix-framework {
  float: left;
  margin-right: 15px;
}

.ltr #sp-footer-wrapper #sp-footer2 {
  text-align: right;
}

/* ====================================================================
   ULTIMATE DESKTOP HIDE: Force toggle hidden on desktop (>980px)
   Applies maximum specificity and !important to all properties
   ==================================================================== */
@media (min-width: 981px) {
  html body #sp-menu-wrapper .container button#menuToggle,
  html body #sp-menu-wrapper .container button.menu-toggle,
  html body #sp-menu-wrapper .container > .menu-toggle,
  html body button#menuToggle,
  html body .menu-toggle {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    z-index: -9999 !important;
  }
}

/* FINAL OVERRIDE: Ensure mobile hamburger is visible and on top */
@media (max-width: 980px) {
  /* High-specificity selector with !important to override any conflicting rules */
  #sp-menu-wrapper .container > .menu-toggle,
  #sp-header-wrapper #sp-menu-wrapper .container > .menu-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 38px !important;
    padding: 6px !important;
    background: transparent !important;
    border: 0 !important;
    z-index: 12000 !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* make sure button spans are visible */
  #sp-menu-wrapper .container > .menu-toggle span {
    background: var(--dark) !important;
    opacity: 1 !important;
  }
}

/* Accessibility hint: ensure focus is visible */
.menu-toggle:focus {
  outline: 3px solid var(--primary-light) !important;
  outline-offset: 2px !important;
}

/* FINAL: Force visible, positioned and styled hamburger for small screens */
@media (max-width: 980px) {
  /* very high-specificity selectors */
  #sp-menu-wrapper .container > #menuToggle,
  #sp-menu-wrapper .container > button.menu-toggle,
  button#menuToggle.menu-toggle {
    display: inline-flex !important;
    position: relative !important;
    z-index: 14000 !important;
    width: 48px !important;
    height: 44px !important;
    padding: 6px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 6px !important;
    box-shadow: var(--shadow-sm) !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* ensure spans (bars) are visible */
  #sp-menu-wrapper .container > #menuToggle span,
  #sp-menu-wrapper .container > button.menu-toggle span,
  button#menuToggle.menu-toggle span {
    display: block !important;
    width: 22px !important;
    height: 2px !important;
    background: var(--dark) !important;
    margin: 3px 0 !important;
    border-radius: 1px !important;
  }

  /* ensure menu is reachable when toggled open */
  nav#sp-main-menu.open,
  nav#sp-main-menu.active {
    display: block !important;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--white) !important;
    z-index: 13999 !important;
    box-shadow: var(--shadow) !important;
  }
}

/* Mobile header layout: align toggle left, search right, menu drops below */
@media (max-width: 980px) {
  /* container layout */
  #sp-menu-wrapper {
    background: var(--white);
    padding: 6px 12px !important;
  }
  #sp-menu-wrapper .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 6px 12px !important;
    position: relative !important;
  }

  /* toggle at left */
  button#menuToggle.menu-toggle,
  #sp-menu-wrapper .container > .menu-toggle {
    order: 1 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  /* search align right and compact */
  #sp-search {
    order: 2 !important;
    flex: 0 0 auto !important;
  }
  #sp-search .search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #sp-search .search-input {
    width: 150px !important;
    max-width: calc(100vw - 160px) !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    border: 1px solid var(--gray-medium) !important;
    background: #fff !important;
  }
  #sp-search .search-btn {
    padding: 8px 10px !important;
    border-radius: 6px !important;
    background: var(--secondary) !important;
    color: #fff !important;
    border: none !important;
  }

  /* hide nav in header flow until opened; show as full-width dropdown when open */
  nav#sp-main-menu {
    order: 3 !important;
    width: 100% !important;
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 13999 !important;
  }
  nav#sp-main-menu.open,
  nav#sp-main-menu.active {
    display: block !important;
    background: var(--white) !important;
    box-shadow: var(--shadow) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  nav#sp-main-menu ul.sp-menu {
    flex-direction: column !important;
    padding: 8px 0 !important;
  }
  nav#sp-main-menu ul.sp-menu li {
    border-bottom: 1px solid var(--gray-light) !important;
  }
  nav#sp-main-menu ul.sp-menu li a {
    padding: 12px 16px !important;
    display: block !important;
  }

  /* tighten header spacing */
  #sp-menu-wrapper {
    box-shadow: none !important;
  }
}

/* ====================================================================
       Page-specific: Careers (moved from index-pages/careers.html)
       Scoped under body.menu-careers to avoid global overrides
       ==================================================================== */

body.menu-careers .container {
  padding: 0 100px !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
}

body.menu-careers .item-page h3 {
  color: var(--primary);
  font-size: 1.35rem;
  margin: 32px 0 16px 0;
  font-weight: 700;
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 10px;
  display: inline-block;
}

body.menu-careers .item-page h4 {
  color: var(--primary);
  font-size: 1.15rem;
  margin: 16px 0 12px 0;
  font-weight: 700;
}

/* Foxcontact / careers form styles */
body.menu-careers .foxcontainer {
  background: #f9fafb;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin: 30px 0;
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.08);
}
body.menu-careers .foxcontainer h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 15px;
  display: inline-block;
}
body.menu-careers .fox_form.foxform-stacked {
  display: flex;
  flex-direction: column;
}
body.menu-careers .control-group {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

body.menu-careers #mid_265-customhtml0 {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(155, 89, 182, 0.05) 100%
  );
  border-left: 4px solid var(--primary-light);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}
body.menu-careers #mid_265-customhtml0 .controls div {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
}
body.menu-careers #mid_265-customhtml0 b {
  color: var(--primary);
  font-weight: 700;
}

body.menu-careers .control-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
}
body.menu-careers .required {
  color: #dc2626;
  margin-left: 2px;
  font-weight: 700;
}

body.menu-careers .controls input[type="text"],
body.menu-careers .controls input[type="email"],
body.menu-careers .controls input[type="number"],
body.menu-careers .controls select,
body.menu-careers .controls textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: "Raleway", sans-serif;
  font-size: 0.95rem;
  color: #374151;
  background: #ffffff;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

body.menu-careers .controls input:focus,
body.menu-careers .controls select:focus,
body.menu-careers .controls textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  outline: none;
}

body.menu-careers .qq-uploader {
  background: linear-gradient(135deg, #f0f9ff 0%, #f3e8ff 100%);
  border: 2px dashed var(--primary-light);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
body.menu-careers .qq-upload-button {
  background: var(--primary-light) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
body.menu-careers .qq-upload-button:hover {
  background: var(--primary) !important;
  transform: translateY(-1px) !important;
}
body.menu-careers .qq-upload-list {
  list-style: none;
  margin-top: 12px;
  padding: 0;
}
body.menu-careers .qq-upload-list li {
  background: #fff;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
  color: #333;
}

@media (max-width: 600px) {
  body.menu-careers .item-page h3 {
    font-size: 1.2rem;
  }
  body.menu-careers .item-page h4 {
    font-size: 1rem;
  }
  body.menu-careers .item-page ul,
  body.menu-careers .item-page ol {
    margin: 16px 0 16px 18px;
  }

  body.menu-careers .container {
    padding: 0 24px !important;
  }
}

/* --- Modern Responsive Navbar Styles (FORCE OVERRIDE) --- */
#sp-menu-wrapper .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  padding: 0.5rem 2rem !important;
  position: relative !important;
  z-index: 1000 !important;
  flex-wrap: wrap !important;
}
#sp-logo .logo-wrapper {
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  color: #222 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
}
#sp-main-menu {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
  background: none !important;
  position: static !important;
  width: auto !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.sp-menu {
  display: flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.sp-menu li {
  margin: 0 !important;
}
.sp-menu a {
  color: #222 !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  padding: 0.18rem 0.38rem !important;
  border-radius: 4px !important;
  transition:
    background 0.2s,
    color 0.2s !important;
  display: block !important;
}
.sp-menu a:hover,
.sp-menu a.active {
  background: #f2f2f2 !important;
  color: #0070c0 !important;
}
.menu-toggle {
  display: none !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  width: 40px !important;
  height: 40px !important;
  cursor: pointer !important;
  z-index: 1100 !important;
  background: transparent !important;
  border: none !important;
  /* margin-left: 1rem !important; */
}
.menu-toggle span {
  display: block !important;
  width: 26px !important;
  height: 3px !important;
  margin: 4px 0 !important;
  background: #222 !important;
  border-radius: 2px !important;
  transition: 0.3s !important;
}
@media (max-width: 991px) {
  #sp-menu-wrapper .container {
    padding: 0.5rem 1rem !important;
  }
  .sp-menu {
    gap: 1rem !important;
  }
  #sp-logo .logo-wrapper {
    font-size: 1.3rem !important;
  }
  .sp-menu a {
    font-size: 1rem !important;
    padding: 0.5rem 0.7rem !important;
  }
}
@media (max-width: 768px) {
  #sp-menu-wrapper .container {
    flex-wrap: wrap !important;
    padding: 0.5rem 0.7rem !important;
  }
  .menu-toggle {
    display: flex !important;
  }
  #sp-main-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background: #fff !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 0.5rem 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  }
  #sp-main-menu.open {
    max-height: 500px !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  .sp-menu {
    flex-direction: column !important;
    width: 100% !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  }
  .sp-menu a {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    font-size: 0.98rem !important;
  }
}
@media (max-width: 480px) {
  #sp-menu-wrapper .container {
    padding: 0.3rem 0.3rem !important;
  }
  #sp-logo .logo-wrapper {
    font-size: 1rem !important;
  }
  .sp-menu a {
    font-size: 0.92rem !important;
    padding: 0.8rem 1rem !important;
  }
}
/* Hide menu when not open on mobile */
@media (max-width: 768px) {
  #sp-main-menu {
    display: flex !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  #sp-main-menu.open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
/* Utility for reducing content size if needed */
#sp-menu-wrapper .container * {
  box-sizing: border-box !important;
}

/* ====================================================================
   CUSTOM PRODUCT IMAGE CLASS
   `.product-thumb` - used on product images in `product.html`
   ==================================================================== */
.product-thumb {
  display: block !important;
  max-width: 200px !important;
  width: 100% !important;
  height: 160px !important;
  object-fit: contain !important;
  background: linear-gradient(180deg, #fbfdff 0%, #eef6ff 100%) !important;
  padding: 10px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.09) !important;
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.36s !important;
  margin: 0 auto !important;
}
.product-thumb:hover {
  transform: translateY(-6px) scale(1.06) !important;
  box-shadow: 0 18px 38px rgba(30, 58, 138, 0.16) !important;
}

/* spacing for captions when images are inline-wrapped */
.product-thumb + p,
.product-thumb ~ p {
  margin-top: 12px !important;
}

@media (max-width: 768px) {
  .product-thumb {
    max-width: 140px !important;
    height: 140px !important;
    padding: 8px !important;
  }
}

/* Background-based product thumbnail (resistant to image overrides) */
.product-thumb-bg {
  display: block !important;
  width: 220px !important;
  max-width: 100% !important;
  height: 160px !important;
  margin: 0 auto !important;
  border-radius: 12px !important;
  background-color: #fbfdff !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.1) !important;
  padding: 12px !important; /* visual padding around image */
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease !important;
}
.product-thumb-bg:hover {
  transform: translateY(-6px) scale(1.04) !important;
  box-shadow: 0 20px 44px rgba(30, 58, 138, 0.16) !important;
}
@media (max-width: 768px) {
  .product-thumb-bg {
    width: 160px !important;
    height: 140px !important;
    padding: 8px !important;
  }
}

/* ====================================================================
   Product grid & thumbnail layout for `.item-page` tables
   Ensures consistent thumbnail sizing, spacing and hover behavior
   ==================================================================== */
.item-page table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}
.item-page table td {
  vertical-align: top !important;
  padding: 18px 12px !important;
  text-align: center !important;
}
.item-page table td img,
.item-page table td .product-thumb-bg {
  display: block !important;
  width: 220px !important;
  max-width: 100% !important;
  height: 160px !important;
  object-fit: contain !important;
  margin: 0 auto 10px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #fbfdff 0%, #eef6ff 100%) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.1) !important;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease !important;
}
.item-page table td img:hover,
.item-page table td .product-thumb-bg:hover {
  transform: translateY(-6px) scale(1.03) !important;
  box-shadow: 0 20px 44px rgba(30, 58, 138, 0.16) !important;
}

@media (max-width: 1024px) {
  .item-page table td img,
  .item-page table td .product-thumb-bg {
    width: 180px !important;
    height: 150px !important;
    padding: 8px !important;
  }
}

@media (max-width: 768px) {
  .item-page table {
    table-layout: auto !important;
  }
  .item-page table td {
    display: block !important;
    width: 100% !important;
    padding: 12px 0 !important;
  }
  .item-page table td img,
  .item-page table td .product-thumb-bg {
    width: 160px !important;
    height: 140px !important;
    margin: 0 auto 12px !important;
  }
}
