.story-success-story-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Always display 3 items */
    gap: 20px;
}

@media (max-width: 980px) {
    .story-success-story-grid-container {
        display: flex !important;
        flex-direction: column  !important;
    }
}

.story-success-story-card {
    padding: 10px;
    text-align: left;
    background-color: none;
}

.story-thumbnail {
    position: relative;
    cursor: pointer;
}

.story-thumbnail img {
    height: 387px;
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.story-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../images/play-button.png');
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}


/* Tags Styles */
.story-technologies {
    display: flex;
    gap: 17px;
    margin-top: 23px;
    flex-wrap: wrap;

}

.story-tech-tag {
    display: inline-block;
    color: #B2B0B5;
    font-size: 16px;
    font-weight: 600;
    padding: 9.7px 25px;
    border: 1px solid #C9C9C9;
    border-radius: 28px;
    font-size: 16px;
    gap: 10px;
}

/* Popup Styles */
.story-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.story-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* This ensures the popup is centered */
    width: 80%;
    height: 60%; /* Adjust the height to 60% */
    max-width: 960px;
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}


.story-title {
    margin-top: 30px;
    line-height: 36px;
    font-size: 28px;
    font-weight: 500;
    color: #fff;
}

.story-load-more {
    display: block;
    margin: 20px auto; 
    padding: 10px 20px;
    background-color: #0074aa00;
    color: #ffffff;
    border: 1px solid #ffffff; 
    border-radius:  4px; 
    font-size: 14px;
    line-height: 26px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.story-load-more:hover {
    background-color: #ffffff !important;  
    border-color: #005a87 !important;
    color: #1c1a1f !important; 
}

.story-load-more::after {
    line-height: inherit;
    font-size: inherit !important;
    margin-left: .3em;
    left: auto;
    display: inline-block;
    margin-left: 12px;
    opacity: 1;
    width: 10px; 
    height: 10px;
    background-image: url('../../../themes/divi-child/assets/images/arrow-angle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    content: ''; 
}

.story-load-more:hover::after {
    filter: invert(1); 
}

@media (max-width: 980px) {
    .story-title {
        font-size: 20px;
        line-height: 30px;
    }
    .story-tech-tag {
        font-size: 14px;;
        line-height: 26px;
    }
}
