/* General Reset and Body Styling */
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #3a3a3a; 
    color: #f0f0f0; 
}

                /* Header and Navigation (Keep existing styles or adapt) */
.header {
    background-color: #2c2c2c; 
    padding: 10px 20px;
    margin-bottom: 30px; 
}

.navigation {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    background-color: #55aaff;
    color: white;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    text-align: center;
}


.main-content-new {
    max-width: 900px; 
    margin: 0 auto 30px auto; 
    padding: 0 15px; /
}

.content-section {
    background-color: #474747; 
    border: 2px solid #e0ac69; 
    padding: 20px;
    margin-bottom: 30px; 
    position: relative; 
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
    color: #f5f5f5;
}

.section-header h2 {
    margin-bottom: 5px;
    font-size: 1.8em;
    color: #e0ac69; 
}

.section-header p {
    font-size: 0.9em;
    color: #cccccc;
}


.overlap-group {
    display: flex;
    align-items: center; 
    position: relative;
    min-height: 280px; 
}

.image-placeholder,
.orange-block {
    box-sizing: border-box;
}

.image-placeholder {
    flex-basis: 50%; 
    height: 200px;   
    position: relative;
}

.image-placeholder img {
    width: 75%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.orange-block {
    flex-basis: 45%; 
    height: 260px;   
    background-color: #ff9900;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9em;
}

                        /* --- Overlap Styling --- */

/* Section 1: Image Left, Orange Block Right (Orange overlaps image) */
.section-image-left .overlap-group {
    justify-content: flex-start;
    display: flex;
    align-items: center;
}
.section-image-left .image-placeholder {
    
    
    z-index: 2;
}

.section-image-left .orange-block {
    margin-left: -18%; 
    z-index: 1; 
}

/* Section 2: Orange Block Left, Image Right (Image overlaps orange block) */
.section-image-right .overlap-group {
    justify-content: flex-end;
}
.section-image-right .image-placeholder {
    
    margin-left: -5%;
    z-index: 2; /* Ensure image is on top */
}

.section-image-right .orange-block {
    z-index: 1; 
}

/* ... (rest of the CSS including footer and media queries) ... */

/* Footer (Keep existing styles or adapt) */
.footer {
    background-color: #2c2c2c;
    padding: 20px;
    text-align: center;
}



                        /* --- Responsive Adjustments --- */

/* Tablet View (max-width: 768px) */
@media (max-width: 768px) {
    .overlap-group {
        flex-direction: column; 
        align-items: stretch;   
        min-height: auto;       
    }

    .image-placeholder,
    .orange-block {
        flex-basis: auto; 
        width: 100%;      
        margin-left: 0 !important;  /* Reset desktop overlap margins */
        margin-right: 0 !important;
        margin-top: 0;   
        z-index: auto;    /* Reset z-index, no complex stacking needed here */
    }

    .overlap-group {
        align-items: center;
    }

    .image-placeholder {
        height: 220px; 
        order: 1;      
        width: 105%;
        padding-left: 85px;
    }

    .orange-block {
        width: 63%; 
        height: 200px;
        order: 2;      
        margin-top: 8px; 
    }
    
}


