/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #FFFFFF;
    margin: 0 auto 0 auto; /* Reset default body margin */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    max-width: 1320px;
}

h1 {
    font-size: 24pt;
    font-weight: 600;
    text-decoration: underline;
    line-height: 1.2em;
}
h2 {
    font-size: 18pt;
    font-weight: 500;
    line-height: 1.2em;
}
p {
    font-size: 14pt;
    font-weight: 300;
    line-height: 1.2em;
}
.semibold {
    font-weight: 600;
}

.container {
    position: relative;
    border-radius: 15px;
    margin-bottom: 10px;
    padding: 15px;
    box-sizing: border-box; /* Include padding in width calculation */
}


/* Header Section */
#header {
    background-color: #0F2E80;
    max-width: 100%;
    width: 1320px;
    height: auto;
    margin: 20px 0px 10px 0px;
    color: #FFFFFF;
    display: inline-flex;
    /* flex-wrap: wrap; */
    /* float: left; */
    text-align: left;
}
#header #agentPic {
    object-fit: scale-down; 
    width: 132px;
    height: 132px; 
    vertical-align: top;
    margin: 15px;
}
#header.container {
    /* flex-wrap: wrap; */
    /* flex: 1 1 auto; */
    /* max-width: 1150px; */
}
#header.container:nth-child(2) {
    /* flex-basis: 100%; */
}
#header h1 {
     margin: 5px 0px 0px 20px; 
}
#header h2 {
     margin: 0px 0px 5px 20px; 
}
#header p#desktop {
    margin: 0px 0px 0px 20px; 
}
#header p#smallerScreens {
    display: none;
    /* flex-wrap: wrap; */
    /* flex: 100%; */
    /* color: lightskyblue; */
}

#banner {
    background-color: #F0944D;
    font-size: 14pt;
    font-weight: 700;
    color: #FFFFFF;
    max-width: 100%;
    width: 1320px;
    text-align: center;
    text-shadow: 0px 2px darkorange;
}
#banner #littleD {
    display: none;
}
#banner #microD {
    display: none;
}

/* Row for containers 1, 2, 3, & 4 */
#containersRow {
    max-width: 100%;
    width: 1320px;
    height: auto;
    position: relative;
    margin: 0 auto 0 auto;
    /* display: inline-flex; */
    float: left;
    /* position: relative; */
}


/* Container 1 Section */
#container1 {
    background-color: #A4D9BB;
    background-image: url("../agent_images/YoungCouple.png");
    background-repeat: no-repeat;
    background-position: 0px 30px;
    max-width: 100%;
    width: 655px;
    height: auto;
    /* position: absolute; */
    margin-right: auto;
    margin-bottom: 10px;
    color: #0F2E80;
    float: left;
    text-align: right;
}
#container1 .content {
     padding-right: 15px;
     float: right;
}
#container1 h1 {
    font-weight: 700;
    margin: 0px 0px 0px 0px;
}
#container1 h2 {
    font-weight: 700;
    margin: 0px 0px 5px 0px;
}
#container1 p {
    max-width: 400px;
    float: right;
    margin: 0 0 10px 0;
}


/* Container 2 Section */
#container2 {
    background-color: #E6DA6A;
    background-image: url("../agent_images/OlderCouple.png");
    background-repeat: no-repeat;
    background-position: 250px 65px;
    max-width: 100%;
    width: 655px;
    height: auto;
    /* position: absolute; */
    /* margin-left: auto; */
    margin-bottom: 10px;
    color: #0F2E80;
    float: right;
    text-align: left;
}
#container2 .content {
    padding-left: 15px;
    float: left;
}
#container2 h1 {
    font-weight: 700;
     margin: 0px 0px 0px 0px;
}
#container2 h2 {
    font-weight: 700;
     margin: 0px 0px 5px 0px;
}
#container2 p {
    max-width: 360px;
    float: left;
    margin: 0 0 10px 0;
}

/* Container 3 Section */
#container3 {
    background-color: #C3C9D9;
    background-image: url("../agent_images/Businessman.png");
    background-repeat: no-repeat;
    background-position: 0px 28px;
    max-width: 100%;
    width: 655px;
    height: auto;
    /* position: absolute; */
    margin-right: auto;
    margin-bottom: 10px;
    color: #0F2E80;
    float: left;
    text-align: right;
}
#container3 .content {
     padding-right: 15px;
     float: right;
}
#container3 h1 {
    font-weight: 700;
    margin: 0px 0px 0px 0px;
}
#container3 h2 {
    font-weight: 700;
    margin: 0px 0px 5px 0px;
}
#container3 p {
    max-width: 380px;
    float: right;
    margin: 0 0 10px 0;
}


/* Container 4 Section */
#container4 {
    background-color: #E6C4E6;
    background-image: url("../agent_images/HoldingHands.png");
    background-repeat: no-repeat;
    background-position: 350px 0px;
    max-width: 100%;
    width: 655px;
    height: auto;
    /* position: absolute; */
    /* margin-left: auto; */
    margin-bottom: 10px;
    color: #0F2E80;
    float: right;
    text-align: left;
}
#container4 .content {
    padding-left: 15px;
    float: left;
}
#container4 h1 {
    font-weight: 700;
     margin: 0px 0px 0px 0px;
}
#container4 h2 {
    font-weight: 700;
     margin: 0px 0px 5px 0px;
}
#container4 p {
    max-width: 360px;
    float: left;
    margin: 0 0 10px 0;
}

/* Enroll Button Style */
.enroll-button {
    border: 2px solid #0F2E80;
    background-color: #FFFFFF;
    color: #0F2E80;
    font-size: 18pt;
    font-weight: 600; /* Semibold */
    padding: 6px 15px;
    margin-top: 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.5s, color 0.5s; /* Smooth transition for hover effect */
}
.enroll-button:hover {
    background-color: #0F2E80;
    color: #FFFFFF;
}


/* Footer Section */
#footer {
    background-color: #91B9EB;
    width: 1320px;
    height: 150px;
    border-radius: 15px;
    color: #0F2E80;
    padding: 10px 20px 20px 20px;
    box-sizing: border-box;
    text-align: left;
    font-size: 14pt;
    position:  relative;
}
#footer p {
    font-size: 12pt;
    font-weight: 400;
    margin: 0 0 5px 0;
}
#footer .italic {
    font-style: italic;
}
#footer .semibold-italic {
    font-weight: 600;
    font-style: italic;
}
#footer #upper p {
    top: 15px;
    position: absolute;
}
#footer a:link, #footer a:visited {
    color: #0F2E80;
    font-weight: 400;
    transition: 0.25s;
}
#footer a:hover {
    font-weight: 600;
}
#footer img {
    width: 850px;
    height: 84px;
    max-width: 100%;
    height: auto;
}
#footer .imagemap {
    position: absolute;
    margin: 5px 0px 0px 400px;
}
#footer .imagemap img {
    display: block;
}
#footer .imagemap .area {
    display: block;
    position: absolute;
    transition: box-shadow 0.15s ease-in-out;
}
#footer .imagemap .area:hover {
    box-shadow: 0px 0px 1vw rgba(15,46,128,1);
}
#footer #lower {
    font-size: 10pt;
    bottom: 10px;
    position: absolute;
}


/* Text Below Footer */
.footer-text-below {
    color: #8797C0;
    font-size: 10pt;
    font-weight: normal;
    margin-top: 10px;
    text-align: center;
}


/* Responsive Design (Refine HTML element layout rules for tablet/mobile) */
@media (max-width: 1320px) { /* Breakpoint for smaller desktop/laptop resolutions */
    #header, #footer {
        /* max-width: 100%; */
        width: 655px;
    }
    #banner {
        width: 655px;
        font-size: 12pt;
    }
    #containersRow {
        max-width: 100%;
        width: 655px;
    }

    #banner #halfD {
        display: none;
    }
    #banner #littleD {
        display: inline;
    }

    #footer img {
        width: 625px !important;
        max-width: 100%;
        height: auto;
    }
    #footer .imagemap {
        position: absolute;
        margin: 75px 0px 0px 0px;
    }

    #footer {
        height:  220px;
    }
    .footer-text-below {
        font-size: 8pt;
        max-width: 655px;
    }
}

@media (max-width: 665px) { /* Breakpoint for most tablet resolutions */
    #header, #footer {
        /* max-width: 100%; */
        width: 455px;
    }
    #header {
        height: 330px;
    }
    #header #agentPic {
        width: 116px;
        height: 116px;
        margin:  5px;
    }
    #header p#desktop {
        display: none;
    }
    #header p#smallerScreens {
        display: inline-block;
        position: absolute;
        left: 20px;
        bottom: 10px;
        padding-right: 10px;
        /* display: flow; */
        /* flex-wrap: wrap; */
    }
    #banner {
        width: 455px;
        font-size: 10pt;
    }
    #containersRow {
        max-width: 100%;
        width: 455px;
    }
    #container1 .content {
        padding-right: 0px;
    }
    #container1 {
        background-size: 50% 80%;
        background-position: 0px 140px;
    }
    #container1 p {
        max-width: 280px;
    }
    #container2 .content {
        padding-left: 0px;
    }
    #container2 {
        background-size: 70% 70%;
        background-position: 180px 140px
    }
    #container2 p {
        max-width: 260px;
    }
    #container3 .content {
        padding-right: 0px;
    }
    #container3 {
        background-size: 55% 80%;
        background-position: -30px 130px;
    }
    #container3 p {
        max-width: 280px;
    }
    #container4 .content {
        padding-left: 0px;
    }
    #container4 {
        background-size: 50% 100%;
        background-position: 265px 0px;
    }
    #container4 p {
        max-width: 280px;
    }
    .enroll-button {
        font-size: 18px;
    }
    #footer img {
         width: 435px !important; 
        max-width: 100%;
        height: auto;
    }
    #footer .imagemap {
        position: absolute;
        margin: 70px 0px 0px -10px;
    }
    #footer {
        height:  210px;
    }
    p {
        font-size: 12pt;
        font-weight: 300;
        line-height: 1.2em;
    }
    .footer-text-below {
        font-size: 8pt;
        max-width: 455px;
    }
}

@media (max-width: 455px) { /* Breakpoint for many smartphone resolutions */
    #header, #footer {
        /* max-width: 100%; */
        width: 375px;
    }
    #header #agentPic {
        width: 99px;
        height: 99px;
    }
    #banner {
        width: 375px;
        font-size: 12pt;
    }
    #banner #bigD  {
        display: none;
    }
    #banner #microD {
        display: inline;
    }
    #containersRow {
        max-width: 100%;
        width: 375px;
    }
    #container1 {
        background-size: 52% 65%;
        background-position: 0px 190px;
    }
    #container1 p {
        max-width: 220px;
    }
    #container2 {
        background-size: 75% 60%;
        background-position: 165px 185px
    }
    #container2 p {
        max-width: 245px;
    }
    #container3 {
        background-size: 60% 75%;
        background-position: -40px 145px;
    }
    #container3 p {
        max-width: 260px;
    }
    #container4 {
        background-size: 50% 100%;
        background-position: 225px 0px;
    }
    #container4 p {
        max-width: 260px;
    }
    .enroll-button {
        font-size: 14pt;
    }
    #footer img {
         width: 360px !important; 
        max-width: 100%;
        height: auto;
    }
    #footer .imagemap {
        position: absolute;
        margin: 70px 0px 0px -10px;
    }
    #footer {
        height:  220px;
    }
    h1 {
        font-size: 18pt;
        font-weight: 600;
        line-height: 1.2em;
    }
    h2 {
        font-size: 14pt;
        font-weight: 500;
        line-height: 1.2em;
    }
    p {
        font-size: 12pt;
        font-weight: 300;
        line-height: 1.2em;
    }
    .footer-text-below {
        font-size: 8pt;
        max-width: 375px;
    }
}

