/* General Section Styling */
.career1 {
    width: 100%;
    margin: 0 auto;
    background-color: #f8f9fa; /* Subtle background */
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #333;
}

/* Header Styling */
.career-header1 {
    background-image: url('../Assets/pexels-pixabay-358220.jpg');
    background-size: cover;
    background-position: center;
    height: 150px; /* Smaller height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.career-header1 h3 {
    font-size: 2rem; /* Smaller font size */
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin: 0;
    z-index: 2;
    position: relative;
}

.career-header1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay for readability */
    z-index: 1;
}

/* Spacing and Alignment for Brief Section */
.positionsBrief {
    text-align: center;
    margin: 20px 20px; /* Adjust spacing for smaller screens */
    line-height: 1.5;
}

.positionsBrief h4 {
    font-size: 1.5rem; /* Scale down heading size */
    color: #007bff;
    margin-bottom: 15px;
}

.positionsBrief p {
    font-size: 0.95rem; /* Smaller font size */
    color: #555;
    margin: 10px 0;
    text-align: justify; /* Maintain clean alignment */
}

/* Accordion Styling */
.position {
    margin: 20px auto; /* Adjust margin for smaller screens */
    padding-left: 20px;
    padding-right: 20px;
}

.accordion {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: white;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 10px 15px; /* Compact padding */
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #e6e6e6;
}

.accordion-header span {
    flex: 1;
    text-align: center;
}

.accordion-body {
    display: none; /* Hidden by default */
    padding: 15px;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

.accordion-body p {
    margin: 10px 0;
}

.apply-btn {
    display: block;
    margin: 15px auto;
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem; /* Smaller button size */
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #0056b3;
}

/* Enhancements for Larger Screens */
@media (min-width: 768px) {
    .career-header1 {
        height: 200px; /* Increase height for larger screens */
    }

    .career-header1 h3 {
        font-size: 2.5rem; /* Larger header size */
    }

    .positionsBrief {
        max-width: 700px; /* Restrict width */
        margin: 30px auto;
    }

    .positionsBrief h4 {
        font-size: 1.8rem; /* Larger heading size */
    }

    .positionsBrief p {
        font-size: 1rem; /* Scale up text */
    }

    .accordion-header {
        font-size: 1.1rem; /* Increase font size for readability */
        padding: 15px 20px;
    }

    .accordion-body {
        padding: 20px;
    }

    .apply-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

@media (min-width: 1024px) {
    .positionsBrief {
        max-width: 800px;
    }

    .accordion {
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Add shadow for professional look */
    }
}
