body {
    background: #f7f7f7;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('./img/example_bkg_6.webp') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Performance optimizations */
    will-change: transform;
    contain: layout style paint;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3em;
    margin: 0 0 20px;
}

.hero p {
    font-size: 1.5em;
}

.btn-cta {
    background: #009dff;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.btn-cta:hover {
    background: #0084ff;
}

/* Overview Section */
.overview {
    padding: 50px;
    background: #f7f7f7;
}

.overview h2 {
    text-align: center;
    margin-bottom: 20px;
}

.overview-cards {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    border-radius: 15px;
    /* Performance optimizations */
    will-change: transform;
    backface-visibility: hidden;
}

.card:hover {
    transform: scale(1.05);
}

/* Job Opportunities Section */
.opportunities {
    position: relative;
    padding: 50px 50px 100px 50px;
    background: #0b477c;
    clip-path: polygon(0px 0px, 99.91% 3.31vw, 100% 100%, 0px 100%);
}

.opportunities h2 {
    position: relative; /* Ensure content is above the pseudo-element */
    z-index: 2;
    padding: 50px;
    color: white;
}


.job-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.job-card {
    background: #fff;
    padding: 60px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.75);
    text-align: center;
    border-radius: 15px;
}

.job-card p {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.job-card h3 {
    text-align: left;
}

.job-card h4 {
    text-align: left;
    margin-bottom: 5px;
    color: #009dff;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    margin-right: 5px; /* Space between icon and text */
    font-size: 20px;
    vertical-align: middle; /* Align with text */
}

.apply-btn {
    background: #009dff;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

.apply-btn:hover {
    background: #0084ff;
}

.opportunities h2 {
    padding: 50px;
    color: white;
}

.careercontainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 3em;
}

.careercontainer p {
    line-height: 2em;
}

.careerbox1 {
    grid-column: auto;
}

.careerbox2 {
    grid-column: auto;
}

/* Container for the image */
.image-container {
    width: 80%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
}

/* Applying clip-path for triangle effect */
.image-container img {
    width: 100%;
    height: auto;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    transition: clip-path 0.5s ease-in-out;
}

/* Learn More Link Styling */
.learn-more-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    color: #00ccff;
    transition: color 0.3s ease;
    margin-top: 15px;
    cursor: pointer;
    position: relative;
    z-index: 3;
    background-color: transparent;
    border: none;
}

.learn-more-link:hover {
    color: #00aaff;
}

.learn-more-link .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.learn-more-link:hover .arrow {
    transform: translateX(5px);
}

/* Responsive Design for Job Listings */
@media (max-width: 1200px) {
    .job-listings {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .job-listings {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .job-card {
        padding: 40px 20px;
    }
    
    .opportunities {
        padding: 30px 10px;
    }
}
