/*Color Palette */
:root {
    --primary-color: #FF6600; /* ORANGE */
    --secondary-color: #607A75; /* GRAY */
    --text-color: #333; /* Dark Gray */
    --link-color: #4D9FB2; /* Dodger Blue */
    --hover-color: #819C71; /* Darker Green on hover */
    --impact-color: #3ABFBA; /* 10 yr impact blue */
}

/* Global Styles */

/* Screen reader utility class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

header {
    background-color: white;
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    z-index: 1000;
    backdrop-filter: blur(10px);
    top: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}


/* Navigation */
nav {
    display: flex;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline;
}

/* End Header and Navigation Section*/


body {
    margin: 0;
    padding: 0;
}

/* Search for Job Listings at Education At Work */

.job-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
    width: 40%;
    display: block;
    margin: 0 auto;
}

.video-container {
    display: flex;
    gap: 40px; /* space between video and form */
    align-items: flex-start;
    justify-content: center;
    margin-top: 30px; /* Add some space above the video container */
}

/* Careers Section */
#careers h2 {
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    
}

#careers {
    padding: 40px;
    background-color: var(--primary-color);
    color: white;
}

#careers p {
    padding-bottom: 25px;
    text-align: center;
}

#careers a {
    padding-bottom: 15px;
}

/* Video Section */

#video {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
}

#video p {
    padding-bottom: 25px;
}

#video iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border-radius: 8px;
}

#video h3, #apply h3 {
    color: white;
    font-size: 1.2em;
    margin-bottom: 15px;
}

form {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px; 
    max-width: 400px;
    min-width: 250px;
    margin: 0 auto;      
    flex: 1;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

legend {
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

button[type="submit"] {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

/* Professional Staff Section */
#pro-staff {
    background-color: var(--secondary-color);
    padding: 20px;
    color: white;
    
}

#pro-staff h2 {
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

#pro-staff p {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.5;
    color: white;
}
/* jQuery UI Accordion Customization */
#accordion {
    max-width: 800px;
    margin: 30px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#accordion .ui-accordion-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Adds company color gradient to the accordion tabs */
    border: none;
    color: white;
    font-weight: bold;
    padding: 15px 20px;
    font-size: 1.1em;
}

#accordion .ui-accordion-header:hover {
    background: linear-gradient(135deg, var(--hover-color), var(--primary-color));
}

#accordion .ui-accordion-header.ui-state-active {
    background: linear-gradient(135deg, var(--text-color), var(--secondary-color));
}

#accordion .ui-accordion-content {
    background: white;
    border: none;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

#accordion .ui-accordion-content img {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

#accordion .ui-accordion-content p {
    flex: 1;
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-color);
} 

/* End Accordion Section */

/* Partners Section */

#partners {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;   
}

#partners h2 {
    text-align: center;
    font-size: 2em;
    color: white;
}

#partners p {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.5;
    color: white;
    padding-bottom: 20px;
}

/* Fix Partner Logo Width */
#partners img {
    max-width: 20%;
}

/* Partner Carousel Styles */
.partner-carousel {
    display: flex;
    overflow: hidden;
}


/* Impact Section */

#impact {
    padding: 20px;
    background-color: white;
    color: black;
}

#impact h2 {
    text-align: center;
    font-size: 2em;
    color: var(--text-color);
}

#impact p {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.5;
    color: var(--text-color);
    padding-bottom: 20px;
}

#impact img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Map Section Styles */
#map {
    padding: 20px;
    background-color: var(--secondary-color);
    color: white;
}

#map h2 {
    text-align: center;
    font-size: 2em;
    color: white;
}

#map p {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.5;
    color: white;
    padding-bottom: 20px;
}

#map-container {
    margin: 20px 0;
    max-width: 800px;
    margin: 20px auto;
}

#google-map {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#googlemap_input {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* Footer section */
footer {
    background-color: var(--primary-color);
    color: white;
    padding-bottom: 10px;
}

footer h2 {
    text-align: center;
    font-size: 1.5em;
    color: white;
    padding: 20px;
}
footer p {
    text-align: center;
    padding: 2px;
    font-size: 1em;
}


span {
    color: var(--link-color);
    font-weight: bold;
}

/* Adjust Viewport for Video, and Accordion, Should be Friendily in Mobile View */
@media screen and (max-width: 768px) {
    .video-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    #video {
        width: 100%;
        min-width: auto;
    }
    
    #video iframe {
        width: 100%;
        height: 250px;
    }
    
    form {
        width: 100%;
        max-width: 100%;
    }

    .job-btn {
        width: 30%;
    }

    #accordion .ui-accordion-content img {
        width: 450px;
        height: 550px;
        max-width: 90%;
    }

    #accordion .ui-accordion-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    #impact img {
        height: 400px;
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
}

/* Adjusting Window Size for Regular Browser Viewing */
@media screen and (min-width: 769px){
    #video {
        width: 50%;              
        max-width: 560px;        
        margin: 0 auto;
    }

    #video p {
        padding-bottom: 25px;
    }
    
    #video iframe {
        width: 100%;             
        height: 315px;           
        max-width: 100%;         
    }

    .job-btn {
        width: 15%;
    }

    #careers {
        padding-left: 20px;
        padding: 20px;
        border-radius: 8px;
    }

    #accordion .ui-accordion-content img {
        width: 750px;
        height: 1000px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    #impact img {
    height: 600px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    }
}   
/* For extra large screen size */
@media screen and (min-width: 1200px){
    #video {
        width: 60%;              
        max-width: 800px;        
        margin: 0 auto;
    }

    #video iframe {
        width: 100%;             
        height: 450px;           
        max-width: 100%;         
    }

    .job-btn {
        width: 20%;
    }

    #accordion .ui-accordion-content img {
        width: 900px;
        height: 1200px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    #impact img {
        height: 800px;
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
}