/* ==========================================
   Section1 CSS
   ========================================== */
#strategies-and-insights .section1 {
  padding-top: 70px;
  padding-bottom: 70px;
}

#strategies-and-insights .section1 :is(h1,.ap-legacy-h1) {
  text-shadow: 0px 4px 30px rgba(0, 224, 255, 0.5);
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  background: var(--neonblue-gradient, linear-gradient(90deg, #3cdcff 0%, #0057ff 100%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 40px;
}

#strategies-and-insights .section1 p {
  text-align: justify;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  padding-bottom: 30px;
}

@media screen and (max-width: 820px) {
  #strategies-and-insights .section1 {
    padding-bottom: 40px;
  }
  #strategies-and-insights .section1 :is(h1,.ap-legacy-h1) {
    padding-top: 40px;
  }
}

@media screen and (max-width: 414px) {
  #strategies-and-insights .section1 {
    padding-bottom: 40px;
  }
  #strategies-and-insights .section1 :is(h1,.ap-legacy-h1) {
    padding-top: 40px;
  }
}

/* ==========================================
   Section2 — fixed viewport, no body scroll
   ========================================== */
#strategies-and-insights .section2 {
  min-height: calc(100vh - 100px); /* adjust 100px to match your header height */
  overflow: visible;
  margin-bottom: 0;
  position: relative;
}

#strategies-and-insights .section2 img.section2Bg {
  position: absolute;
  z-index: -1;
  top: 0;
  width: 100%;
}

#strategies-and-insights .container {
  display: flex;
}

/* ── Layout wrapper ── */
#strategies-and-insights .layout-wrapper {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 100px);
  align-items: flex-start;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(61, 220, 255, 0.05), inset 0 0 60px rgba(0, 0, 0, 0.2);
}

/* ── LEFT SIDEBAR — main categories ── */
#strategies-and-insights .sidebar-col {
  flex-shrink: 0;
  width: 200px;
  position: sticky;
  top: 100px; /* match your header height */
  height: calc(100vh - 100px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

#strategies-and-insights .sidebar-col::-webkit-scrollbar {
  display: none;
}

#strategies-and-insights .category_container2 {
  display: flex;
  flex-direction: column;
}

#strategies-and-insights .category_button {
  border: unset;
  background-color: transparent;
  color: #ffffff;
  padding: 12px 20px 12px 30px !important;
  text-align: left !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  width: 100%;
  margin-bottom: 10px;
  border-left: 3px solid transparent;
  transition: color 0.3s ease, background-color 0.3s ease, padding-left 0.3s ease !important;
}

#strategies-and-insights .category_button:hover:not(.active) {
  color: #3cdcff !important;
  background-color: rgba(61, 220, 255, 0.06) !important;
  padding-left: 36px !important;
  border-left: 3px solid rgba(61, 220, 255, 0.4) !important;
  border-radius: 0 !important;
}

#strategies-and-insights .category_button.active {
  background-color: #3cdcff !important;
  border-radius: 6px !important;
  color: #000000 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 14px rgba(61, 220, 255, 0.5) !important;
}

/* ── SUBCATEGORIES TAB BUTTONS (With Outward Growing Animated Line) ── */
#strategies-and-insights .category_button2 {
  position: relative !important;
  border: unset;
  margin: 0px 15px;
  background-color: transparent;
  color: #ffffff;
  padding: 8px 18px !important;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  border-radius: 6px !important;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease !important;
}

/* Base structural hidden state for the underline pseudo-element */
#strategies-and-insights .category_button2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #3cdcff; /* Your theme neon blue */
  transition: width 0.3s ease-in-out;
}

#strategies-and-insights .category_button2:hover:not(.active) {
  color: #3cdcff !important;
  background-color: rgba(61, 220, 255, 0.08) !important;
}

/* Active style configuration from JavaScript engine */
#strategies-and-insights .category_button2.active {
  font-weight: 700 !important;
  color: #3cdcff !important;
}

/* Animate the absolute line width outward on hover or active class assignments */
#strategies-and-insights .category_button2:hover::after,
#strategies-and-insights .category_button2.active::after {
  width: 80%; /* Spans across 80% of button container footprint */
}

/* ── RIGHT PANEL ── */
#strategies-and-insights .content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Subcategory tab bar container setup */
#strategies-and-insights .scroll_container {
  flex-shrink: 0;

  top: 100px; /* match your header height */
  z-index: 100;
  margin-bottom: 0;

}

#strategies-and-insights .category_container {
  display: flex;
  padding-bottom: 20px;
  padding-left: 40px;
  padding-right: 40px;
}

/* Scrollable content area mapping */
#strategies-and-insights .infoDetails {
  display: none;
  flex: 1;
  overflow: visible;
}

#strategies-and-insights .infoDetails::-webkit-scrollbar {
  width: 5px;
}

#strategies-and-insights .infoDetails::-webkit-scrollbar-track {
  background: #111;
}

#strategies-and-insights .infoDetails::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3cdcff, #0057ff) !important;
  border-radius: 10px;
}

#strategies-and-insights .infoDetails.active {
  display: flex;
  flex-direction: column;
}

#strategies-and-insights .infoDetailsInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

/* Subcategory sections panels */
#strategies-and-insights .subcategory-section {
  width: 100%;
  padding: 15px 50px;
  scroll-margin-top: 160px; /* 100px header + ~60px sticky subcategory bar */
}

/* Subcategory heading configurations */
#strategies-and-insights .subcategory-heading {
  color: white !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 0 8px 14px !important;
  border-left: 3px solid #3cdcff;
  background: linear-gradient(90deg, rgba(61, 220, 255, 0.08) 0%, transparent 60%);
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px !important;
  margin-top: 6px !important;
}

/* scroll_container2 script visibility properties */
#strategies-and-insights .scroll_container2.active {
  display: block;
}

#strategies-and-insights .scroll_container2 {
  display: none;
}

/* ── Content Box Listing & Grid Components ── */
#strategies-and-insights .box-content {
  position: relative;
  width: 100%;
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, padding-left 0.3s ease;
  overflow: hidden;
}

#strategies-and-insights .box-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #3cdcff, #0057ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#strategies-and-insights a:hover .box-content::before {
  opacity: 1;
}

#strategies-and-insights a:hover .box-content {
  background: linear-gradient(90deg, rgba(61, 220, 255, 0.07) 0%, transparent 70%) !important;
  padding-left: 8px;
}

#strategies-and-insights .box-content h4 {
  padding: 18px 48px 18px 20px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  color: var(--colour-neon-blue, #6deeff) !important;
  transition: color 0.3s ease, letter-spacing 0.3s ease !important;
}

#strategies-and-insights a:hover .box-content h4 {
  color: #ffffff !important;
  letter-spacing: 0.3px;
}

/* Arrow indicator icons layout styling inside content objects */
#strategies-and-insights .box-content h4::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  color: #3cdcff;
  font-size: 18px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#strategies-and-insights a:hover .box-content h4::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

#strategies-and-insights a {
  text-decoration: none;
}

#strategies-and-insights .box {
  display: flex;
  justify-content: center;
  width: 100%;
  color: #ffffff;
}

#strategies-and-insights .box_cover {
  position: absolute;
  top: 0;
  z-index: -1;
  left: 0;
  width: 100%;
  height: 100%;
}

#strategies-and-insights .icon.arrow {
  transition: color 0.5s ease, background 0.5s ease;
  background: #fff;
  color: #fff;
  transform: translate(-1rem, 3.5rem);
  left: 1.5rem;
  width: 2.5rem;
  height: 0.225rem;
}

#strategies-and-insights .icon.arrow::before {
  transition: border-color 0.5s ease, border-right 0.5s ease;
  position: absolute;
  content: "";
  top: -0.5rem;
  right: 0;
  width: 1.2rem;
  height: 1.2rem;
  border-top: 0.25rem solid #fff;
  border-right: 0.25rem solid #fff;
  transform: rotate(45deg);
  border-color: #fff;
}

#strategies-and-insights .collapse_container2 {
  margin-bottom: 40px;
}

/* ==========================================
   UPDATED RESPONSIVE / MEDIA SCREEN LAYOUTS
   ========================================== */
@media screen and (max-width: 992px) {
  #strategies-and-insights .category_container {
    display: flex !important;
    flex-direction: row !important;
    width: max-content !important;
    gap: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  #strategies-and-insights .box-content h4 {
    padding: 18px 48px 18px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    color: var(--colour-neon-blue, #6deeff) !important;
    transition: color 0.3s ease, letter-spacing 0.3s ease !important;
}

  #strategies-and-insights .scroll_container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    display: block !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  
  #strategies-and-insights .scroll_container::-webkit-scrollbar {
    display: none !important;
  }

  #strategies-and-insights .category_button {
    white-space: nowrap !important;
    min-width: auto !important;
    padding: 8px 16px !important;
    margin: 0 !important;
  }
}

@media screen and (max-width: 820px) {
  #strategies-and-insights .category_button {
    padding: 10px 16px !important;
    border-left: none !important;
  }
  #strategies-and-insights .subcategory-heading {
    padding: 6px 10px !important;
    letter-spacing: 0.8px;
  }
}

@media screen and (max-width: 767px) {
  #strategies-and-insights .section2,
  #strategies-and-insights .container,
  #strategies-and-insights .layout-wrapper {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  #strategies-and-insights .layout-wrapper {
    border: none !important;
  }

  #strategies-and-insights .sidebar-col {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 10px !important;
    display: block !important;
    position: static;
  }

  #strategies-and-insights .scroll_container2,
  #strategies-and-insights .scroll_container2.active {
 
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-right: none !important;
    border-bottom: 1px solid #666666 !important;
    padding-bottom: 15px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    z-index: 999;
  }
  
  #strategies-and-insights .scroll_container2::-webkit-scrollbar {
    display: none !important;
  }

  #strategies-and-insights .full_width_container2 {
    overflow: visible !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #strategies-and-insights .category_container2 {
    display: flex !important;
    flex-direction: row !important;
    width: max-content !important;
    gap: 10px !important;
  }

  #strategies-and-insights .category_button2 {
    white-space: nowrap !important;
    min-width: auto !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    text-align: center !important;
  }

  #strategies-and-insights .category_button2.active {
    padding: 8px 16px !important;
  }

  #strategies-and-insights .content-col {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  #strategies-and-insights .infoDetails,
  #strategies-and-insights .infoDetails.active {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    flex: none !important;
  }

  #strategies-and-insights .subcategory-section {
    padding: 20px 15px !important; 
  }

  #strategies-and-insights .scroll_container {

    top: 170px !important; /* smaller header on mobile */
  }

  #strategies-and-insights .subcategory-section {
    scroll-margin-top: 110px !important; /* 60px mobile header + 50px subcategory bar */
  }

}

@media screen and (max-width: 576px) {
  #strategies-and-insights .category_container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}