

/* Shifting Cards Section Layout */
.shifting-cards-section {
    display: flex;
    align-items: start;
    gap: 60px;

    margin: auto;
}

.shifting-cards-navigation {
    flex-basis: 40%;
}

.shifting-cards-display {
    flex-basis: 60%;
    position: relative;
    display: grid;
    place-items: center;
}

/* Text Styling */
.shifting-cards-title {
    font-family: var(--e-global-typography-5a16ef0-font-family), Sans-serif;
    font-size: var(--e-global-typography-5a16ef0-font-size);
    font-weight: var(--e-global-typography-5a16ef0-font-weight);
    line-height: var(--e-global-typography-5a16ef0-line-height);
    text-align: center;
    color: var(--e-global-color-primary);
    margin-bottom:20px;
}


/* List and Item Styling */
.shifting-cards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shifting-cards-item {
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
    padding: 20px; /* Vertical padding */
}

/* Remove the bottom border from the very last item */
.shifting-cards-list li:last-child {
    border-bottom: none;
}

.shifting-cards-item .text {
    font-family: 'poppins';
    font-size: 24px;
    font-weight: 400;
    position: relative;
    padding-left: 30px;
}

.shifting-cards-item .text::after {
    content: "";
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #A8AFED;
    border-radius: 50%;
}

.shifting-cards-item.active .text::after {
   background-color: #A83689;
}

.shifting-cards-item .description p,
.shifting-cards-item .description ul li
{
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
     color: var(--e-global-color-primary);
}
.shifting-cards-item .description ul {
list-style:disc;
}
.shifting-cards-item  .phrase {
    color: var(--e-global-color-primary);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

.shifting-cards-item .indicator-line {
    width: 4px;
    height: 25px;
background-color: #C0C0CB99;
    margin-right: 10px;
    transition: background-color 0.3s ease-in-out;
}


.headText {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shifting-cards-item.active .indicator-line {
    background-color: #6F37DB;
}

/* Image Styling */
.shifting-cards-image {
    width: 100%; 
     height: auto;
      position: relative;
    border-radius: 10px;
      z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      grid-area: 1 / 1; 
        max-width: 100%;
    /* This transition creates the smooth fade effect */
  transition: transform 0.3s ease-in-out, opacity 0.15s ease-in-out;
}

li.shifting-cards-item.active {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0px 0px 10px 0px #DDDFEB;
    padding: 20px;
}
@media (min-width: 990px) {

}
.purple-fade-background {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%) scale(1.1);
}


.accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

/* Give the text element flexible width to push the icon to the right */
.shifting-cards-item .text {
    flex-grow: 1; 
}

/* 2. Accordion Icon (Chevron) */
.accordion-icon {
    flex-shrink: 0; /* Prevents the icon from shrinking */
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.4s ease; /* Smooth rotation */
    transform: rotate(0deg);
    display:none;
}

/* Rotate the icon when the item is active */
.shifting-cards-item.active .accordion-icon {
    transform: rotate(180deg);
}


/* 3. Accordion Content Area */
.accordion-content {
    max-height: 0; /* This is the key to the accordion being closed */
    overflow: hidden;
    transition: max-height 0.4s ease-out; /* Animation for opening/closing */
}

/* Inner container for padding, so content doesn't get clipped during animation */
.accordion-content-inner {
    padding-top: 15px; /* Space between the title and the content */
}

/* 4. Styling for the new text inside the accordion */
.accordion-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.accordion-description {
    font-size: 18px;
    color: var(--e-global-color-primary);
    line-height: 1.5;
    margin-bottom: 10px;
    letter-spacing: 0.06em;
}

.learn-more-link {
    color: #2B7AED !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: color 0.3s ease;
}

.learn-more-link:hover {
    color: #FFFFFF;
}

/* --- End of new CSS --- */

@media only screen and (max-width: 600px) {
    section.intelligence h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
.shifting-cards-section {
    flex-direction: column;
}
.shifting-cards-title {
    font-size: 28px !important;
}
.shifting-cards-title br {
    display: none;
}
section.intelligence h3 {
    margin-bottom: unset;
}
.shifting-cards-title {
    font-size: 28px !important;
    margin-bottom: 12px !important;
}

.shifting-cards-subtitle {
    font-size: 20px;
    margin-bottom: 25px;
}

.shifting-cards-item .text {
    font-size: 18px;
    line-height: 1.5;
}

.shifting-cards-item .indicator-line {
    height: 50px;
}

.shifting-cards-image {
    width: 100%;
}

.shifting-cards-section {
    gap: 30px;
}
}

.shifting-cards-video {
    width: 90%; 
    height: auto;
    position: relative;
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    grid-area: 1 / 1; 
    max-width: 100%;
}

/* Helper class to hide the inactive media element */
.media-hidden {
    display: none !important;
}

/* --- Modify this existing rule --- */
.shifting-cards-display {
    flex-basis: 50%;
    position: relative;
    display: grid;
    place-items: center;
    /* NEW: Add transition here to apply fade to the whole container */
    transition: opacity 0.3s ease-in-out; 
}