/* Scoped Variables for Market Pathways Page */
.njii-market-pathways-wrapper {
    --brand-red: #D22630;
    --brand-navy: #071D49;
    --brand-grey: #F2F2F2; /* Light grey for backgrounds */
    --brand-gold: #C79403;
    --font-primary: 'Lato', sans-serif; /* Assumed standard X Theme font */
}

/* Button Resets to match PDF styling */
.njii-market-pathways-wrapper.btn-primary {
    background-color: var(--brand-red);
    color: white;
    padding: 1rem 2rem;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px; /* Standard X Theme radius */
    transition: background-color 0.3s ease;
}

.njii-market-pathways-wrapper.btn-primary:hover {
    background-color: var(--brand-navy);
}

/* =========================================
   NJII Market Pathways - Design System
   ========================================= */

/* 1. HERO SECTION - THE CUT */
.njii-hero-cut {
    position: relative;
    overflow: hidden;
    padding-top: 120px!important;
    padding-bottom: 120px!important;
    background-color: #000; /* Fallback */
}

/* Create the cut on the background layer */
.njii-hero-cut.x-bg-layer-lower-image {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    height: 115%!important; /* Oversize to prevent gap at bottom */
}

/* Mobile Reset for Hero */
@media (max-width: 767px) {
   .njii-hero-cut.x-bg-layer-lower-image {
        -webkit-clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
}

/* 2. HOW IT WORKS - RED DIAMONDS */
.njii-step-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    margin: 60px 0;
}

.njii-step-col {
    flex: 1;
    min-width: 220px;
    text-align: center;
    position: relative;
    padding: 0 15px;
}

/* Diamond Shape */
.njii-diamond-icon {
    width: 60px;
    height: 60px;
    background-color: #D22030;
    margin: 0 auto 30px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(210, 32, 48, 0.25);
    border: 3px solid #fff;
    z-index: 2;
    position: relative;
}

/* Counter-rotate content */
.njii-diamond-icon i,
.njii-diamond-icon span {
    transform: rotate(-45deg);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

/* Connector Line */
.njii-step-col::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: #E5E5E5;
    z-index: 1;
}

.njii-step-col:last-child::after {
    display: none;
}

/* Mobile Stack for Steps */
@media (max-width: 767px) {
   .njii-step-col {
        flex: 100%;
        margin-bottom: 40px;
    }
   .njii-step-col::after {
        width: 2px;
        height: 100%;
        top: 60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* 3. BENEFITS - CARD SYSTEM */
.njii-benefit-card {
    background-color: #fff;
    border-radius: 6px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border-top: 5px solid #D22030;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.njii-benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.njii-benefit-card h3 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* 4. GET INVOLVED - DARK RED SECTION */
.njii-cta-section {
    background-color: #8A1520!important;
    color: #ffffff;
}

.njii-cta-section h2,
.njii-cta-section h3,
.njii-cta-section p {
    color: #ffffff!important;
}

.njii-btn-white {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff!important;
    padding: 12px 24px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.njii-btn-white:hover {
    background-color: #fff;
    color: #8A1520!important;
}

/* 5. FAQs */
.x-accordion-body {
  display: none;
}
.x-accordion-group{
    background: var(--Base-White, #FFF);
    border-radius: 8px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}
.x-accordion-heading .x-accordion-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 2rem;
  font-size: 18px;
  font-weight: bold;
  background-color: transparent;
  cursor: pointer;
}
.x-accordion-heading .x-accordion-toggle:hover{
    background-color: transparent;
}
.carbon--chevron-down {
    margin-top: 4px;
    line-height: 1;
    transition: all 0.3s ease;
}
.active .carbon--chevron-down {
    transform: rotate(-180deg);
}
.carbon--chevron-down::after {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: -0.125em;
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23C20000' d='M16 22L6 12l1.4-1.4l8.6 8.6l8.6-8.6L26 12z'/%3E%3C/svg%3E");
}
.x-accordion-inner{
   padding: 1.5rem 2rem; 
}

.faq-toggle-more {
    margin-top: 2rem;
    width: 100%;
    max-width: 256px;
    padding: 0.75em 1em;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 180%;
    letter-spacing: -0.36px;
    color: var(--Brand-500, #C20000);
    border-radius: 6px;
    border: 1px solid var(--Brand-500, #C20000);
    background: var(--Neutral-alt-20, #F9FAFA);
    text-shadow: none;
    transition: all 0.3s ease;
}
.faq-toggle-more:hover{
    color: #fff;
    background: var(--Brand-500, #C20000);
}