/* our story  */

/* ourstory-value-section */

.story-description-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    width: 100%;
    margin: auto;
    padding:0;
    flex-wrap: wrap;
}
.ourstory-text {
    flex: 0 0 50%;
}

.ourstory-text h2 {
    font-family: "Bai Jamjuree", Sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #58468C;
}

.story-desc p{
    color: #716c80;
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 16px;
    line-height: 28px;
    font-style: normal;
    font-weight: 300;
    margin-right: 10%;
}

.highlight-text {
    color: #58468c !important;
    margin: 0;
    font-style: normal;
    font-weight: 300 !important;
    text-transform: capitalize;
    font-size: 22px !important;
}

.ourstory-image {
    position: relative;
    flex: 0 0 30%;
}

.ourstory-image img {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.ourstory-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #103358;
    opacity: 0.4; /* Adjust for effect strength */
    border-radius: 10px;
    z-index: 2;
    pointer-events: none;
}
.ourstory-image img {
    position: relative;
    z-index: 1;
}

/* Responsive Breakpoints */
@media (max-width: 1370px) {
    .ourstory-text h2 {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {

    .ourstory-text, .ourstory-image {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .ourstory-text h2 {
        font-size: 28px;
    }
    .story-desc {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ourstory-text h2 {
        font-size: 24px;
    }
    .story-desc {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .ourstory-text h2 {
        font-size: 20px;
    }
    .story-desc {
        font-size: 14px;
    }
}

/* our story value  */

.ourstory-value-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 80%;
    margin: auto;
    gap: 30px;
    padding: 40px;
    border-radius: 10px;
    background-color: #f4f4f4;
}
.ourstory-description-section {
    padding: 20px;
}

.ourstory-value-wrapper .value-left {
    flex: 0 0 30%;
    height: auto;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.ourstory-value-wrapper .value-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    position: relative;
    z-index: 1;
    filter: grayscale(0.6) brightness(1.25) contrast(1.3);
}

.ourstory-value-wrapper .video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #103358;
    opacity: 0.6;
    border-radius: 10px;
    z-index: 2;
    pointer-events: none;
}

.ourstory-value-wrapper .value-right {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.ourstory-value-wrapper .value-right h2 {
    font-family: "Bai Jamjuree", Sans-serif;
    font-size: 40px;
    font-weight: 400;
    color: #58468C;
    margin: 0;
}

.ourstory-value-wrapper .value-desc {
    color: #716c80;
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 16px;
    line-height: 28px;
    font-weight: 300;
    margin: 0;
}

.ourstory-value-wrapper .value-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ourstory-value-wrapper .value-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.card-icon img {
    width: 40px;
    height: auto;
    margin-bottom: 10px;
}

.ourstory-value-wrapper .value-card h4 {
    font-family: "Bai Jamjuree", Sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #000;
    margin: 0 0 15px 0;
}

.ourstory-value-wrapper .value-card p {
    color: #716c80;
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 16px;
    font-weight: 300;
    margin: 0;

}


.ourstory-value-wrapper .driving-impact-grid {
    flex: 0 0 100%;
    width: 100%;
}

.ourstory-value-wrapper .driving-impact-grid h2,
.ourstory-value-wrapper .driving-impact-grid p {
    text-align: center;
}

.ourstory-value-wrapper .driving-impact-grid .blue-btn {
    background-color: #103358 !important;
    padding: 5px 12px !important;
    margin-top: 15px; /* Removed stray !important */
}

/* ================= Responsive Breakpoints ================= */

@media (max-width: 1370px) {
    .ourstory-value-wrapper .value-right h2 {
        font-size: 32px;
    }
}

@media (max-width: 1024px) {
    .ourstory-value-wrapper {
        flex-wrap: wrap; /* Only enable wrap on small screens */
    }
    .ourstory-value-wrapper .value-left,
    .ourstory-value-wrapper .value-right {
        flex: 0 0 100%;
    }

    .ourstory-value-wrapper .value-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ourstory-value-wrapper {
        padding: 25px;
        gap: 20px;
        width:100% !important;
    }

    .ourstory-value-wrapper .value-cards-grid {
        grid-template-columns: 1fr;
    }

    .ourstory-value-wrapper .value-right h2 {
        font-size: 26px;
        text-align: center;
    }

    .ourstory-value-wrapper .value-desc {
        font-size: 15px;
        line-height: 26px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ourstory-value-wrapper .value-right h2 {
        font-size: 22px;
    }

    .ourstory-value-wrapper .value-card h4 {
        font-size: 16px;
    }

    .ourstory-value-wrapper .value-card p {
        font-size: 13px;
    }

    .ourstory-value-wrapper driving-impact-grid .driving-impact-grid .blue-btn {
        padding: 6px 14px;
        font-size: 14px;
    }
}

@media (min-width: 1371px) and (max-width: 1500px) {
    .ourstory-value-wrapper {
        align-items: stretch; /* Ensure both children stretch */
        padding-top: 3%;
        padding-bottom: 2%;
    }

    .ourstory-value-wrapper .value-left.video-overlay {
        padding-top: 2%;
        padding-bottom: 2%;
        height: auto;               /* Reset any fixed height */
        display: flex;              /* Allow internal flex alignment */
        align-items: stretch;       /* Stretch video to match */
    }

    .ourstory-value-wrapper .value-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        flex-grow: 1;              /* Stretch to fill vertical space */
    }
    .ourstory-value-wrapper .value-card p .value-card h4 {
        line-height: 1.5;
    }
}


