

.breadBox {
    margin: 0 auto;
    width: 85%;
    display: flex;
    flex-direction: column;
    height: auto;
}

.breadBox .breadContainer {
    background-color: red;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 65vh;
    margin-top: 1rem;
}

.breadBox .breadContainer .bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.breadBox .breadContainer .bg video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.breadBox .breadContainer .bg img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.breadBox .breadContainer .bg .breadBoxOverlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.breadBox .breadContainer .bg .breadBoxOverlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.breadBox .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5rem;
    margin-top: -5rem;
    z-index: 10;
    position: relative;
}

.breadBox .breadContent {
    width: 55%;
}

.breadBox .breadContent .title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark-dark);
    border-radius: 5px;
    margin-bottom: 2rem;
    z-index: 4;
    position: relative;
    line-height: 1.1;
}

.breadBox .breadContent .title .subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: absolute;
    top: -18px;
    left: -25px;
    background: var(--card-bg);
    padding: 2px 8px;
    border-radius: 2px;
}

.breadBox .breadDesc {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    width: 90%;
}

.breadBox .breadDesc strong {
    font-weight: 700;
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 2px;
    color: var(--primary-color);
}

.breadBox .breadDesc span {
    font-weight: 500;
    color: var(--primary-color-low);
}

.breadBox .breadImages {
    width: 45%;
    position: relative;
}

.breadBox .breadImages .imageGroup {
    position: relative;
    width: 100%;
    height: 500px;
}

.breadBox .breadImages img {
    position: absolute;
    border-radius: 5px;
    object-fit: cover;
}

.breadBox .breadImages img:nth-child(1) {
    width: 350px;
    height: 250px;
    top: 1rem;
    left: 0;
    z-index: 2;
}

.breadBox .breadImages img:nth-child(2) {
    width: 300px;
    height: 200px;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.breadBox .breadContentNoVideo {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 60%;
}

.breadBox .breadContentNoVideo h1 {
    color: var(--text-light);
    font-size: 3rem;
    width: 50%;
}

.breadBox .breadContentNoVideo h1 .subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: absolute;
    top: -30px;
    left: -15px;
    background: var(--card-bg);
    padding: 2px 8px;
    border-radius: 2px;
}

.breadBox .breadContentNoVideo .breadDesc {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    width: 90%;
}

.breadBox .breadContentNoVideo .breadDesc span {
    font-weight: 700;
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 2px;
    color: var(--primary-color);
}

/* Responsive Design for BreadBox */
@media (max-width: 1400px) {
    .breadBox {
        width: 90%;
    }
    
    .breadBox .breadContainer {
        height: 60vh;
    }
    
    .breadBox .container {
        gap: 3rem;
        margin-top: -4rem;
    }
    
    .breadBox .breadContent .title {
        font-size: 3rem;
    }
}

@media (max-width: 1199px) {
    .breadBox .container {
        flex-direction: column;
        gap: 2rem;
        margin-top: -3rem;
    }
    
    .breadBox .breadContent {
        width: 80%;
        text-align: center;
    }
    
    .breadBox .breadContent .title {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }
    
    .breadBox .breadContent .title .subtitle {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .breadBox .breadDesc {
        width: 100%;
    }
    
    .breadBox .breadImages {
        width: 70%;
    }
    
    .breadBox .breadImages .imageGroup {
        height: 400px;
    }
}

@media (max-width: 991px) {
    .breadBox {
        width: 95%;
    }
    
    .breadBox .breadContainer {
        height: 50vh;
        border-radius: 8px;
    }
    
    .breadBox .container {
        margin-top: -2rem;
    }
    
    .breadBox .breadContent {
        width: 90%;
    }
    
    .breadBox .breadContent .title {
        font-size: 2.4rem;
    }
    
    .breadBox .breadImages {
        width: 80%;
    }
    
    .breadBox .breadImages .imageGroup {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .breadBox {
        width: 95%;
        margin: 2rem auto 0 auto; /* Add top margin for mobile */
    }
    
    .breadBox .breadContainer {
        height: 40vh;
        border-radius: 6px;
        margin-top: 0.5rem;
    }
    
    .breadBox .container {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: -1rem;
        align-items: center;
    }
    
    .breadBox .breadContent {
        width: 100%;
        text-align: center;
        order: 2;
    }
    
    .breadBox .breadContent .title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        position: relative;
        padding-top: 2rem;
    }
    
    .breadBox .breadContent .title .subtitle {
        font-size: 1rem;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
    }
    
    .breadBox .breadDesc {
        font-size: 1rem;
        width: 100%;
    }
    
    /* Fixed breadImages mobile layout */
    .breadBox .breadImages {
        width: 100%;
        order: 1;
        padding: 0 1rem;
    }
    
    .breadBox .breadImages .imageGroup {
        height: 280px;
        margin: 0 auto;
        max-width: 350px;
        position: relative;
        overflow: hidden;
    }
    
    .breadBox .breadImages img:nth-child(1) {
        width: 200px;
        height: 140px;
        top: 10px;
        left: 10px;
        z-index: 2;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .breadBox .breadImages img:nth-child(2) {
        width: 160px;
        height: 120px;
        bottom: 10px;
        right: 10px;
        z-index: 1;
        border-radius: 8px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Content overlay adjustments for mobile */
    .breadBox .breadContentNoVideo {
        position: static;
        width: 100%;
        padding: 2rem;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 0 0 6px 6px;
        text-align: center;
    }
    
    .breadBox .breadContentNoVideo h1 {
        font-size: 2rem;
        width: 100%;
        line-height: 1.2;
    }
    
    .breadBox .breadContentNoVideo h1 .subtitle {
        font-size: 1rem;
        position: static;
        display: block;
        margin-bottom: 0.5rem;
        background: none;
        padding: 0;
    }
    
    .breadBox .breadContentNoVideo .breadDesc {
        width: 100%;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .breadBox .breadContainer {
        height: 35vh;
        border-radius: 5px;
    }
    
    .breadBox .breadContent .title {
        font-size: 1.8rem;
    }
    
    .breadBox .breadContent .title .subtitle {
        font-size: 0.9rem;
        top: -10px;
    }
    
    .breadBox .breadDesc {
        font-size: 0.95rem;
    }
    
    /* Small mobile breadImages optimization */
    .breadBox .breadImages {
        padding: 0 0.5rem;
    }
    
    .breadBox .breadImages .imageGroup {
        height: 250px;
        max-width: 320px;
    }
    
    .breadBox .breadImages img:nth-child(1) {
        width: 180px;
        height: 130px;
        top: 15px;
        left: 15px;
    }
    
    .breadBox .breadImages img:nth-child(2) {
        width: 140px;
        height: 105px;
        bottom: 15px;
        right: 15px;
    }
    
    .breadBox .breadContentNoVideo {
        padding: 1.5rem;
    }
    
    .breadBox .breadContentNoVideo h1 {
        font-size: 1.8rem;
    }
    
    .breadBox .breadContentNoVideo .breadDesc {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .breadBox .breadContainer {
        height: 30vh;
    }
    
    .breadBox .breadContent .title {
        font-size: 1.6rem;
    }
    
    .breadBox .breadContent .title .subtitle {
        font-size: 0.8rem;
        top: -8px;
    }
    
    .breadBox .breadDesc {
        font-size: 0.9rem;
    }
    
    /* Extra small mobile breadImages */
    .breadBox .breadImages {
        padding: 0 0.25rem;
    }
    
    .breadBox .breadImages .imageGroup {
        height: 220px;
        max-width: 280px;
    }
    
    .breadBox .breadImages img:nth-child(1) {
        width: 160px;
        height: 115px;
        top: 20px;
        left: 20px;
    }
    
    .breadBox .breadImages img:nth-child(2) {
        width: 120px;
        height: 90px;
        bottom: 20px;
        right: 20px;
    }
    
    .breadBox .breadContentNoVideo h1 {
        font-size: 1.6rem;
    }
    
    .breadBox .breadContentNoVideo .breadDesc {
        font-size: 0.9rem;
    }
}

/* Ultra small mobile optimization */
@media (max-width: 350px) {
    .breadBox .breadImages .imageGroup {
        height: 200px;
        max-width: 250px;
    }
    
    .breadBox .breadImages img:nth-child(1) {
        width: 140px;
        height: 100px;
        top: 25px;
        left: 25px;
    }
    
    .breadBox .breadImages img:nth-child(2) {
        width: 100px;
        height: 75px;
        bottom: 25px;
        right: 25px;
    }
    
    .breadBox .breadContent .title {
        font-size: 1.4rem;
    }
    
    .breadBox .breadContent .title .subtitle {
        font-size: 0.75rem;
    }
    
    .breadBox .breadDesc {
        font-size: 0.85rem;
    }
}
