/* all areas don't have any padding or margins */
*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
}

/* Header class is the background image at the top of each page, including the home page */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.6),rgba(4,9,30,0.6)),url(images/SGSlocation.jpg);
    background-position: center 10%;
    background-size: cover;
    position: relative; 
}

/* Nav class is the navigation bar - this section controls the style of the links */
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

/* This is the logo across from the navigation bar */
nav img {
    width: 195px; /* This controls the size of the logo, it also moves the nav links down (larger logo) and up (smaller logo) */
}

/* Position of the navigation bar links */
.nav-links{
    flex: 1; /* Gives the instruction to occupy all of the space */
    text-align: right;
}

/* Position & style of the navigation bar links */
.nav-links ul li{
    list-style: none; /* no bullet point */ 
    display: inline-block; /* horizontally placed */
    padding: 8px 12px;
    position: relative;
 }

/* Effect of the underline under the nav link text */
.nav-links ul li::after{
    content: ' ' ; 
    width: 0%; /* The size is reduced to nothing so it does not show */
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

/* Effect of the underline under the nav link text */
.nav-links ul li:hover::after{
    width: 100%; /* The size is normal to show the underline after the mouse hover */
}

/* Style of the navigation bar links */
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px; /* The size of the navigation link text */
}

/* Adds an underline while on the current page */
.nav-links a.current {
    text-decoration: underline;
}

/* Homepage "Main Website Title text" style for the divider box */
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 30%; /* 50% is the center of the text-box div, higher number goes down the page */
    left: 50%; /* Center of the text-box div */
    transform: translate(-50%,-50%); /* Center of the text-box div */
    text-align: center; /* Center of the text-box div */
}

/* Homepage main "welcome text" style for header 1 (large) text */
.text-box h1{
    font-size: 62px;
}

/* Homepage text for the sub-title */
.text-box h5{
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 20px; /* Space Between the sub-header and the motto text */
    margin-top: 10px;
}

/* Homepage main "welcome text" style for motto text */
.text-box p{
    margin: 5px 0 40px; /* 1st # (on the left) = space down from top, 2nd = space from left and right  & 3rd = space from the bottom */
    font-size: 22px; /* size of the motto text */
    color: #fff; /* white with no alpha channel - the 4th letter of the hex code */
}

/* Learn More - call to action button */
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 15px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

/* To have the button box background change on hover */
.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 1s;
}
    
nav .fa{
    display: none;
}
    
/* Responsive mobile menu for a device with a width of <= 700 pixels */
@media (max-width: 700px){
    /* This is the logo across from the navigation bar */
    nav img {
        width: 61px; /* This controls the size of the logo */
    }

    /* Homepage "welcome text" style for the divider box */
    .text-box{
    top: 35%; /* 50% is the center of the text-box div, higher number goes down the page */
    }

    .text-box h1{
        font-size: 21px;
        margin-bottom: 10px;
    }

    /* Homepage text for the sub-title */
    .text-box h5{
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 188px;
    }

    /* Motto text style on the homepage */
    .text-box p{
    margin: 10px 0 10px; /* 1st # (on the left) = space down from top, 2nd = space from left and right  & 3rd = space from the bottom */
    font-size: 13px; /* size of the motto text */
    color: #fff; /* white with no alpha channel - the 4th letter of the hex code */
    }

    /* Learn More - call to action button */
    .hero-btn{
    padding: 12px 34px;
    font-size: 10px;
    }
    
    /* Position & style of the navigation bar links */
    .nav-links ul li{
        display: block;
    }

    .nav-links{
        position: absolute;
        background: #f44336;
        height: 100vh; /* complete height */
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    
    .nav-links ul{
        padding: 30px;
    }
    
}/* End of @media styles*/


/*----- About Our Group ----- */
.about{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
    
h1{
    font-size: 36px;
    font-weight: 600;
}
    
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.about img{
    width: 75%;
}

/*----- Group Sections ------*/
.programs{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
    
h1{
    font-size: 36px;
    font-weight: 600;
}
    
p{
    color: #777;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}
    
.row{
    margin-top: 2%; /*The space between the text and the three images*/
    display: flex;
    justify-content: space-between;
}
    
.programs-col{
    flex-basis: 31%;
    background: #fff3f3;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}
    
h3{
    text-align: center;
    font-weight: 600;
    margin: 10px 0;
}
    
.programs-col:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
    
@media(max-width: 700px){
    .row{
        flex-direction: column;
    }
}
    
/*----- Projects Section ----- */
.projects{
    width: 80%; /* To add some space to the left and right side (adding margins) */
    margin: auto;
    text-align: center;
    padding-top: 50px;
}

.projects-col{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.projects-col img{
    width: 100%;
    display: block; /* Makes Corners Round? */
}

.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
    
.layer:hover{
    background: rgba(226,0,0,0.7);
}
    
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
    
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}

/*----- S.A.S.P. -----*/
.sasp{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}

.sasp-col{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}

.sasp-col img{
    width: 100%;
    border-radius: 10px;
}

.sasp-col p{
    padding: 0;
}

.sasp-col h3{
    margin-top: 16px;
    margin-bottom: 15px;
    text-align: left;
}

/*----- Call To Action Section -----*/
.cta{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(assets/navy-seals.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}

.cta h1{
    color: #fff;
    margin-top: 150px;
    margin-bottom: 35px;
    padding: 0;
}

@media(max-width: 700px){
    .cta h1{
        font-size: 22px;
    }
}

/*----- Footer -----*/
.footer{
    width: 100%;
    text-align: center;
    padding-top: 55px;
 }

 .footer p{
    width: 98%;
    text-align: center;
 }

 p.copyright{
    text-align: center;
 }
 
 .footer h2{
    margin-bottom: 15px;
    margin-top: 20px;
    font-weight: 600;
 }

 /*-- Navigation links for the bottom of the page --*/
.bottom-nav {
    text-align: center;
    padding-top: 50px; /* Add padding above the navigation links */
    padding-bottom: 20px; /* Add padding below the navigation links */
}

/* Navigation links for the bottom of the page */
.bottom-nav {
    text-align: center;
    padding-bottom: 35px; /* Adds padding to the bottom of the navigation links */
}

.bottom-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto; /* Center the list horizontally */
}

.bottom-nav ul li {
    display: inline;
    margin-right: 20px;
}

.bottom-nav ul li:last-child {
    margin-right: 0; /* Remove margin from the last item */
}

.bottom-nav ul li a {
    color: black;
    text-decoration: none;
    font-weight: bold;
}

.bottom-nav ul li a:hover {
    text-decoration: underline;
}

/* Adds an underline while on the current page */
.bottom-nav a.current {
    text-decoration: underline;
  }

/*----- Socials -----*/
.socials .fa{
    color: #f44336;
    margin: 0 13px;
    cursor: pointer;
    padding: 18px 0;
}

/*----- Phoenix Program Page -----*/
.sub-header{
    height:50vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.5),rgba(4,9,30,0.5)),url(assets/banner-blackHawk.jpg);
    background-position: center 25%; /* centers the image horizontally (between the margins), percent of the image is shown vertically */
    background-size: cover;
    text-align: center;
    color: #fff;
}

.sub-header h1 { /* To move the position of the h1 text */
    position: absolute;
    top: 21%; /* Adjust this value to move the text down */
    left: 50%;
    transform: translateX(-50%);
}

/*Adds white space above the background banner image 
.sub-header{
    margin-top: 100px; 
}
*/

/* Controls the style of the section container (image and text columns sections) */
.phoenix-program{
    width: 80%;
    margin: auto;
    padding-top: 50px; /* Space between the top of the section and the section before it */
    padding-bottom: 55px; /*Space between the end of the section and the next section*/
}

.phoenix-program-col{
    flex-basis: 48%; /*48% for two columns*/
    padding: 30px 2px;
}

.phoenix-program-col img{
    width: 90%;
}

.phoenix-program-col h1{
    padding-top: 35px;
    padding-bottom: 35px;
}

.phoenix-program-col p{
    padding-top: 15px 0;
    Padding-bottom: 30px; /* Space between the text and the button*/
}

.red-btn{
    border: 1px solid #f44336;
    background: transparent;
    color: #f44336;
}

.red-btn:hover{
    color: #fff;
}

/* ----- Recruiting Page Styles ----- */
.recruiting {
    max-width: 1067px; /* Adjust the value as desired */
    margin: 0 auto; /* Center the article horizontally */
    padding: 20px; /* Add padding for readability */
    background-color: white;
}
.recruiting-container {
    position: relative;
    text-align: center; /* Center-align the heading text */
    background-color: white;
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
}
.icon-left,
.icon-right {
    position: absolute;
    top: 50%; /* Vertically center the icons */
    transform: translateY(-50%); /* Adjust vertical alignment */
    width: 50px; /* Adjust the size of the phoeonix icons */
    height: auto; /* Maintain aspect ratio */
}

/* Style for the heading text of the recruiting page */
.recruiting-page-heading {
    background-color: white;
    color: #013220;
    padding: 20px;
    font-size: 44px;
    font-family: 'Times New Roman', sans-serif;
    font-weight: bold;
    position: relative;
}
/* Adds the line after the heading 1 title */
.recruiting-page-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 5px;
    background-color: #013220;
}

/*----- Style for recruiting page text -----*/
.recruiting p {
    background-color: white;
    color: #013220;
    text-align: center;
    padding: 10px;
    margin: 0;
    font-family: 'Times New Roman', sans-serif;
    font-size: 20px;
}

.phoenix-program-members {
    padding-top: 25px;
}

.phoenix-program-members h1 {
    text-align: center;
}

.phoenix-program-members p {
    text-align: center;
}

.pp-row {
    display: flex;
    align-items: center;
}

.phoenix-program-members-col {
    flex: 1;
    text-align: center;
}

.phoenix-program-members-col h3 {
    flex: 1;
    text-align: left;
}

.phoenix-program-img-col {
    flex: 1; /*sets the flexible length on items with the class, it will shrink & grow with the window size*/
}



/* ----- Team Member Section ----- */
.team-section {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 55px;
    padding-left: 30px;
    padding-right: 30px;
    background-color: #f9f9f9; /* Light background color for distinction */
}

.team-section h1 {
    margin-bottom: 10px; /* Space below the title */
    font-size: 36px; /* Size of the title text */
    font-weight: bold;
}

.team-section p.subtitle {
    margin-bottom: 30px; /* Space below the subtitle */
    font-size: 18px; /* Size of the subtitle text */
    color: #555; /* Subtle color for the subtitle */
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px; /* Space between team members */
}

.team-member {
    flex: 1 1 calc(25% - 20px); /* Adjusts for 4 columns */
    max-width: calc(25% - 20px);
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 450px; /* Standardizes height for all images */
    object-fit: cover; /* Ensures images are cropped to fit the rectangle */
    border-radius: 10px; /*Rounded corners */
}

.team-member h3 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 600;
}

.team-member p {
    margin-top: 5px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-member {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .team-member {
        flex: 1 1 100%;
        max-width: 100%;
    }
}