/* Global styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Jost', sans-serif;
}

.header {
    background-image: url("https://prium.github.io/freya/v2.1.0/assets/img/about_header.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    height: 60vh;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.navbar {
    position: sticky;
    width: 80%;
    z-index: 10;
    background: transparent;
    opacity: 0.9;
    padding: 20px 30px;
    margin: 1.25rem auto;
    background-color: #fbfcfe;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border-radius: 1.375rem;
}
.fixed-top{
    position: fixed;
}

.navbar-brand {
    font-weight: 400;
    font-size: 18px;
    color: white !important; /* Force white color */
    background-color: black !important; /* Force black background */
    padding: 5px 15px;
    border-radius: 50px;
    text-transform: uppercase;
    text-decoration: none;
}

.navbar .nav-link {
    color: gray;
    margin-right: 15px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    padding: 8px 0;
    letter-spacing: 1px;
}


.navbar .nav-link:hover {
    color: #f95a25;
    text-decoration: none;
}

.social-links {
    display: flex;
    justify-content: center;
    
    /* margin-top: 10px; */
}

.social-links a {
    color: #333;
    margin-left: 15px;
    font-size: 14px;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    top: 40%;
    z-index: 1000;
}

.hero h2 {
    font-size: 4rem;
    font-weight: 400;
}

.hero p {
    font-size: 1.25rem;
    margin-top: 120px;
    position: absolute;
    text-transform: uppercase;
    word-spacing: 5px;
    letter-spacing: 10px;
    color: #ccc;
}

/* Main Section */
.main1 {
    text-align: center;
    margin: 50px auto;
    max-width: 1000px;
}

.main1 .h3{
    margin: 20px auto;
    font-size: 3rem;
    line-height: 1.6;
    letter-spacing: 1px;
}
.main1 .p {
    margin: 20px 100px;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.People {
    position: relative;
    background-image: url("https://prium.github.io/freya/v2.1.0/assets/img/about_team.jpg");
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

/* Black overlay effect on the topmost image */
.People::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Adjust opacity to control the darkness */
    z-index: 1;
}

.text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.text h1 {
    font-size: 5rem;
    font-weight: 200;
}

.text p {
    font-size: 2rem;
    text-transform: uppercase;
    color: #ccc;
    font-weight: 200;
    letter-spacing: 2px;
}

/* Associates Section */
.associates-section {
    padding: 60px 0;
    text-align: center;
}

.associates-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.associates-section p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

.associate-cards {
    display: flex;
    justify-content: center; /* Centers the cards */
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 10%;
}

.associate {
    flex-basis: 250px; /* Ensures cards have a fixed width */
    flex-grow: 1;
    max-width: 250px;
    text-align: center;
}

.associate img {
    width: 100%;
    border-radius: 10px;
}

.associate h4 {
    margin: 15px 0 5px;
    font-size: 1.25rem;
}

.associate p {
    font-size: 1rem;
    color: #666;
}


/* Partners & Staff Section */
.partners-staff-section {
    text-align: center;
    padding: 40px 0;
}

.partners-staff-section h2 {
    font-size: 3rem;
    margin-bottom: 60px;
    font-weight: 200;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
    gap: 30px;
    justify-items:center; /* Centers items in their grid cells */
}
.partner {
    max-width: 250px;
    text-align: center;
}

.partner h4 {
    font-size: 1.25rem;
}

.partner p {
    font-size: 1rem;
    color: #666;
}


h2.section-title {
    text-align: center;
    font-size: 3rem;
    margin: 50px 0;
    letter-spacing: 1px;
    font-weight: 200;
    padding-bottom : 50px;
    border-bottom: 1px solid #ccc;

}

.job-section {
    width: 90%;
    margin: 0 auto;
    padding: 40px 0;
}

/* Job Listing styles */
.job-listing {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.job-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
}

.job-title {
    font-size: 1.5rem;
    font-weight: bold;
    flex-basis: 30%;
}

.job-description {
    flex-basis: 60%;
}

.eligibility h4 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.eligibility ul {
    list-style: none;
    padding-left: 0;
}

.eligibility ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.eligibility ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000;
}

/* Job Application Section */
.job-application {
    display: flex;
    max-width: 1000px;
    margin: 50px auto;
    padding: 40px 0;
    justify-content: space-between;
    align-items: flex-start;
}

.apply-title {
    width: 30%;
    font-weight: bold;
    font-size: 1.5rem;
    padding-right: 40px;
}

.apply-form {
    width: 70%;
}

.job-application form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.job-application label {
    font-weight: bold;
}

.job-application input,
.job-application select,
.job-application textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.name-fields {
    display: flex;
    gap: 20px;
}

button {
    padding: 15px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: #333;
}

.footer {
    background-color: lightgrey;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Social Media Section */
.social-media {
    /* margin-bottom: 10px; */
}

.social-icon {
    color: black;
    margin: 0 15px;
    font-size: 20px;
    transition: color 0.3s ease;
}

/* .social-icon:hover {
    color: #f39c12;
} */
 

.footer-black {
    background-color: black;
    color: #fff;
    padding: 50px 0;
    text-align: center;
    align-items: center;
}

.footer-black-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-black h5 {
    color: lightgrey;
    letter-spacing: 2px;
    font-weight: 400;
    font-size: medium;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        width: 100%;
        padding: 10px;
        margin: 0;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }


    /* Main Section */
    .main1 .h3,
    .main1 .p {
        width: 90%;
    }

    /* Associates Grid */
    .associate-cards {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    /* Partners Grid */
    .partners-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }

    .job-item {
        flex-direction: column;
    }

    .job-title {
        margin-bottom: 15px;
    }

    .job-description {
        flex-basis: 100%;
    }

    /* Job Application */
    .job-application {
        flex-direction: column;
    }

    .apply-title,
    .apply-form {
        width: 100%;
        text-align: center;
    }
}