/* ================= GLOBAL RESET & BODY ================= */
body {
    font: 12px Verdana, Arial, Helvetica, sans-serif;
    color: #D5AE66;
    background-color: #001344;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ================= WRAPPER ================= */
#wrapper {
    width: 90%;
    max-width: 1080px;
    margin: 20px auto 30px;
    position: relative;
    padding: 1% 5% 3%;
    border: 1px solid #9EB7FF;
    box-sizing: border-box;
    background-color: #395b9b; 
    background-image: linear-gradient(-45deg, #395b9b, #002366 50%, #395b9b);
    background-repeat: no-repeat;
}

/* ================= NAVTOP ================= */
#navtop {
    position: relative;
    top: 5px;
    margin: 0px auto;
    width: 100%;
    max-width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    border: 1px solid #9291D4;
    text-align: center;
    background-image: url(../images/grad/h5_bleugrandeur3.jpg);
    background-repeat: repeat;
    background-position: center;
    min-height: 40px;
}

/* ================= BOTTOM CONTAINER (Fixed) ================= */
.bottom-nav-container2 {
    display: block !important;
    position: relative;
    margin: 30px auto 5px auto;
    width: 100%;
    max-width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    border: 1px solid #9291D4 !important;
    text-align: center;
    background-color: #395b9b;
    background-image: url(../images/grad/h5_bleugrandeur3.jpg) !important;
    background-repeat: repeat;
    background-position: center;
    
}

.bottom-nav-container2 a.link1 {
    display: inline-block;
    margin: 2px 2% !important; /* Force vertical spacing */
    white-space: nowrap; /* Prevent words breaking awkwardly */
    }
    
.top-nav .link1 {margin: -2% 5% 1%;}
    

.nav-divider {
    border: none;
    height: 1px;
    background-color: #9291D4;
    opacity: 0.6;
    margin: 2% auto 1%;
    width: 80%;
    box-shadow: none;
}
/* ================= CONTENT LAYOUT (Float Method) ================= */
/* This replaces the flex-box method for better text flow around images */
.content-section {
    margin-bottom: 14px;
    overflow: hidden; /* Clears floats */
    padding: 10px 0 0;
}

.float-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 15px;
    max-width: 40%; /* Ensures image doesn't dominate */
    height: auto;
    border: 1px #5E7CB1 solid;
    padding: 5px;
    background-color: #091849;
    box-sizing: border-box;
}

.text-block {
    /* No specific width needed, flows around float */
    line-height: 1.6;
}

/* ================= TYPOGRAPHY ================= */
.headline {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #83A7FC;
    background-image: url(../images/grad/h5_bleugrandeur3.jpg);
    background-repeat: repeat;
    background-position: center;
    padding: 5px 5px 5px 30px;
    margin: 10px auto 20px;
    border: 1px solid #B09C40;
    box-sizing: border-box;
    text-align: left; /* Corrected alignment */
    text-shadow:1px 1px 1px #000;
    
}

.header {
    font-size: 13pt;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: #E09774;
    margin-bottom: 10px;
    display: block;
    text-shadow: 1px 1px 1px #000;
}

.quote-highlight {
    color: #CDB870;
    font-weight: bold;
    font-style: italic;
    margin: 15px 0;
    display: block;
    text-shadow:1px 1px 1px #000;
}

/* ================= LINKS ================= */
#navtop a.link1 {margin: 2px 10%; } 


a.link1 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 11px;
    text-decoration: none;
    color: #62A0D7 !important;
    display: inline-block;
    text-shadow:1px 1px 1px #000;
}
a.link1:hover {
    color: #E7C76C !important;
    text-decoration: underline;
}

a.link2:link {color: #84B4D0; text-decoration: none;}
a.link2:hover {color: #E2728E; text-decoration: underline;}

#navtop,
#bottom-nav-container2 {
	color: #62A0D7 !important; }
	

.text-block  {
    color: #83C7EE !important;
    text-decoration: none;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

	body {padding: 10px; }
    #wrapper { width: 98%; padding: 1%; }
    #navtop, #bottom-nav-container2 { 
    	max-width: 100%; 
    	padding: 5px; }
    #navtop a.link1 {margin: 1% 2%; }
    
     .bottom-nav-container2 a.link1 { margin: 1% 2px;}
    
    /* On mobile, kill the float and stack them */
    .float-left {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 100%;
        text-align: center;
    }
    
    .headline {
        font-size: 20px;
        padding: 8px;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
    }
    .content-section {
    margin-bottom: 0px;
    }
    .text-block {
    padding: 5%; }
}

/* ========== cell phones etc ============= */

@media (max-width: 500px){

.bottom-nav-container2 {
    display: block !important;
    position: relative;
    margin: 15px auto 5px;
    width: 100%;
    max-width: 490px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #9291D4 !important;
    text-align: center;
    background-color: #395b9b;
    background-image: url(../images/grad/h5_bleugrandeur3.jpg) !important;
    background-repeat: repeat;
    background-position: center;
    
}

.bottom-nav-container2 a.link1 {
    display: inline-block;
    margin: 2px 2% !important; /* Force vertical spacing */
    white-space: nowrap; /* Prevent words breaking awkwardly */
    }


}