body{
    height: auto;
    min-height: 100vh;
    
}
.bac{
    background-image: url("../imgs/banner5.jpg");
    background-size:100%;
    width: 100%;
    height: 400px;
    position: absolute;
    top: 0%;
    z-index: -5;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
.items{
    padding-top: 120px;
    transition: 1s;
}
.items.active{
    transition: 2s;
    transform: translateY(500px);
}
.sectionbox .header{
    display: flex;
    height: 380px;
    justify-content: center;
    
}

/* Default desktop layout */
.sectionbox .box {
    display: flex;
    align-items: center;
    border-left: 3px solid #f8d269;
    margin-bottom: 10px;
    
}

.sectionbox .box.right { /* Reverse order for right boxes on desktop */
    border-left: none;
    border-right: 3px solid #f8d269;
}

.sectionbox .box .content {
    width: 57%;
    padding-bottom: 10px;
    
}

.sectionbox .box .image-box {
    width: 42%;
    padding: 0;
    padding-left: 20px;
}

.sectionbox .box img {
    margin: auto;
    display: flex;
    width: 450px;
    height: 270px;
}

@media screen and (max-width: 1568px) {
    
}

@media screen and (max-width: 768px) {
    .sectionbox .header{
        height: 280px;
    }
    .bac{
        background-size: 120%;
    }
    .sectionbox .header .items .title{
        font-size: 2.3rem;

    }
    .sectionbox .header .items h2{
        font-size: 1rem;

    }
    /* Stack all boxes vertically on mobile */
    .sectionbox .box {
        flex-direction: column;
        border-left: 3px solid #f8d269;
        border-right: none;
    }
    
    /* Reverse the order for right boxes on mobile */
    .sectionbox .box.right {
        flex-direction: column-reverse;
        border-left: 3px solid #f8d269;
        border-right: none;
    }
    
    /* Make content and image full width on mobile */
    .sectionbox .box .content,
    .sectionbox .box .image-box {
        width: 100%;
        display: block;
    }
    .sectionbox .box .content{
        padding-left: 10px;
    }
    .sectionbox .box img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .sectionbox .header{
        height: 260px;
    }
    .bac{
        background-size: 190%;
    }
    .sectionbox .header .items .title{
        font-size: 1.7rem;
    }
    .sectionbox .header .items h2{
        font-size: 1rem;
    }
}

.sectionbox .header .items{
    position: fixed;
    z-index: -5;

}
.sectionbox .header .title{
    text-align: center;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 600;
    font-size: 3rem;
    color: #ececff;
}
.sectionbox .container .title{
    text-align: left;
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size:2rem;
    padding: 10px;
    
}
.sectionbox .header .items h2{
    text-align: center;
    font-family: "Manrope", sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 18px;
    padding-top: 6px;
    padding-bottom: 60px;

}
.sectionbox .line{
    width: 150px;
    height: 2px;
    margin: auto;
    background-color: #cacaca;
}
.sectionbox .container{
    
    border-left: 4px solid #011018;
    background-color: #070c14;
    padding: 20px;
    padding-left: 10px;
    padding-top: 50px;
    
}
.sectionbox .container .line{
    width: 120px;
    height: 2px;
    margin: 0;
    margin-left: 4px;
    margin-bottom: 20px;
    background-color: #cacaca;
}
.sectionbox .container .box .title{
    text-align: left;
    font-family: "Fredoka", sans-serif;
    font-weight: 400;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 10px;
}
.sectionbox .container .box p{
    font-size: 1rem;
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    width: 100%;
    line-height: 1.7;
    color: #E0E1DD;
    margin-bottom: 1.5rem;
    font-weight: 300;
    padding: 12px;
}



.read-more-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.read-more-container.collapsed {
    max-height: 120px; /* Approximately 4 lines of text */
    background: linear-gradient(to bottom, transparent, #00000046);
}

.read-more-container.expanded {
    max-height: 1000px; /* Sufficient height for expanded content */
}

.read-more-container.collapsed .text-blur {
    position: relative;
}

.read-more-container.collapsed .text-blur::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    
    pointer-events: none;
}

.read-more-btn {
    display: none;
    background: #f8d269;
    color: #070c14;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: "Lato", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 7px;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #e6c258;
}

/* Show read more button only on mobile */
@media screen and (max-width: 768px) {
    .read-more-btn {
        display: inline-block;
    }
}