﻿/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.6;
    color: #000;
    margin-top: 100px;
}

/* Atlas Feature Section Styles (First Section) */
.atlas-feature-container {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    height: 400px; /* Fixed height container */
    box-sizing: border-box; /* Added to fix sizing issues */
}

.atlas-feature-text-wrapper {
    flex: 1;
    background-color: #0e64c8;
    padding: 40px;
    position: relative;
    border-radius: 0 0 0 50px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box; /* Added to fix sizing issues */
    text-align: left; /* Changed to left align text */
}

.atlas-feature-heading {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.atlas-feature-heading-black {
    color: black;
}

.atlas-feature-heading-white {
    color: white;
}

.atlas-feature-paragraph {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: black;
}

.atlas-feature-image-wrapper {
    flex: 1;
    position: relative;
    height: 100%;
    padding: 0;
    box-sizing: border-box; /* Added to fix sizing issues */
}

.atlas-feature-image {
    width: 100%;
    height: 400px; /* Set fixed height to match container exactly */
    border: 3px solid #0e64c8;
    object-fit: cover;
    object-position: center;
    box-sizing: border-box; /* Accounts for border in height/width calc */
    display: block; /* Prevents unwanted spacing */
}

/* Atlas Sustainability Section Styles (Second Section) */
.atlas-sustainability-container {
    max-width: 1200px;
    margin: 60px auto;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    padding: 0 20px;
}

.atlas-sustainability-heading {
    background-color: black;
    color: white;
    padding: 25px 40px;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
    font-size: 28px;
    margin-bottom: -25px; /* Makes the heading overlap the content box */
}

.atlas-sustainability-content {
    background-color: #0e64c8;
    color: white;
    padding: 50px 40px 40px;
    border-radius: 0 30px 30px 0;
    position: relative;
    z-index: 1;
    text-align: left;
    margin-right: 40px; /* This makes the right side "a little bit inward" */
}

.atlas-sustainability-paragraph {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.atlas-sustainability-subheading {
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
}

/* Atlas Partnership Section Styles (Third Section) */
.atlas-partnership-container {
    max-width: 1200px;
    margin: 60px auto;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    padding: 0 20px;
}

.atlas-partnership-content {
    background-color: white;
    color: black;
    padding: 50px 40px 40px;
    border-radius: 0 30px 30px 0;
    position: relative;
    z-index: 1;
    text-align: left;
    margin-right: 40px;
    overflow: hidden; /* Ensures float containment */
}

.atlas-partnership-paragraph {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

/* List styles */
.atlas-partnership-list {
    margin-bottom: 25px;
    padding-left: 25px;
    text-align: left;
}

    .atlas-partnership-list li {
        margin-bottom: 12px;
        line-height: 1.5;
    }

/* Image float styles */
.atlas-partnership-image-wrapper {
    float: right;
    width: 40%;
    margin: 0 0 20px 30px;
}

.atlas-partnership-float-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.atlas-partnership-subheading {
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #000;
    clear: left; /* Ensures proper wrapping */
}

.atlas-text-highlight {
    font-weight: 700;
}

/* Mobile Portrait */
@media (max-width: 768px) and (orientation: portrait) {
    /* First Section Responsive */
    .atlas-feature-container {
        flex-direction: column;
        margin: 20px auto;
        height: auto;
    }

    .atlas-feature-text-wrapper {
        border-radius: 0 30px 0 0;
        padding: 30px 20px;
        height: auto;
    }

    .atlas-feature-heading {
        font-size: 26px;
    }

    .atlas-feature-paragraph {
        font-size: 14px;
    }

    .atlas-feature-image-wrapper {
        height: 300px;
    }

    .atlas-feature-image {
        height: 300px; /* Match wrapper height */
    }

    /* Second Section Responsive */
    .atlas-sustainability-heading {
        font-size: 22px;
        max-width: 90%;
        padding: 20px;
    }

    .atlas-sustainability-content {
        padding: 40px 25px 30px;
        margin-right: 20px;
    }

    .atlas-sustainability-paragraph {
        font-size: 14px;
    }

    .atlas-sustainability-subheading {
        font-size: 18px;
    }

    /* Third Section Responsive */
    .atlas-partnership-content {
        padding: 40px 25px 30px;
        margin-right: 20px;
    }

    .atlas-partnership-paragraph {
        font-size: 14px;
    }

    .atlas-partnership-list li {
        font-size: 14px;
    }

    .atlas-partnership-subheading {
        font-size: 18px;
    }

    .atlas-partnership-image-wrapper {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
}

/* Mobile Landscape */
@media (max-width: 846px) and (orientation: landscape) {
    /* First Section Responsive */
    .atlas-feature-container {
        flex-direction: column;
        margin: 20px auto;
        height: auto;
    }

    .atlas-feature-text-wrapper {
        padding: 30px 20px;
        height: auto;
    }

    .atlas-feature-heading {
        font-size: 24px;
    }

    .atlas-feature-image-wrapper {
        height: 300px;
    }

    .atlas-feature-image {
        height: 300px; /* Match wrapper height */
    }

    /* Second Section Responsive */
    .atlas-sustainability-heading {
        font-size: 20px;
        padding: 15px 25px;
    }

    .atlas-sustainability-content {
        padding: 35px 25px 25px;
    }

    /* Third Section Responsive */
    .atlas-partnership-content {
        padding: 35px 25px 25px;
    }

    .atlas-partnership-image-wrapper {
        width: 50%;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* First Section Responsive */
    .atlas-feature-container {
        flex-direction: column;
        height: auto;
    }

    .atlas-feature-text-wrapper {
        padding: 35px 25px;
        height: auto;
    }

    .atlas-feature-heading {
        font-size: 28px;
    }

    .atlas-feature-image-wrapper {
        height: 400px;
    }

    .atlas-feature-image {
        height: 400px; /* Match wrapper height */
    }

    /* Second Section Responsive */
    .atlas-sustainability-heading {
        font-size: 24px;
    }

    .atlas-sustainability-content {
        padding: 45px 30px 35px;
        margin-right: 30px;
    }

    /* Third Section Responsive */
    .atlas-partnership-content {
        padding: 45px 30px 35px;
        margin-right: 30px;
    }
}

/* Tablet Landscape */
@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    /* First Section Responsive */
    .atlas-feature-container {
        max-width: 90%;
    }

    .atlas-feature-text-wrapper {
        padding: 35px;
    }

    .atlas-feature-heading {
        font-size: 30px;
    }

    /* Second Section Responsive */
    .atlas-sustainability-container {
        max-width: 90%;
    }

    /* Third Section Responsive */
    .atlas-partnership-container {
        max-width: 90%;
    }
}
