/* ========================================
   Career Hero Section Styles
   ======================================== */
.career-hero {
    background-color: #f5f5f5;
    padding: 2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.career-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Career Title */
.career-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-family: Arial, sans-serif;
}

/* Career Subtitle additions */
.career-title+.career-subtitle {
    margin-top: 0.5rem;
}

.career-subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .career-hero {
        padding: 1.5rem 1rem;
    }

    .career-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .career-hero {
        padding: 1rem 0.75rem;
    }

    .career-title {
        font-size: 1.5rem;
    }
}

/* ========================================
   Why Join Us Section Styles
   ======================================== */
.why-join-us {
    padding: 4rem 1rem;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.career-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background-color: #eef8fc;
    /* Light blue tint matching the image reference */
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1f1f8;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    /* Dark blue/black matching the image */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: #fff;
}

.benefit-icon {
    stroke: #fff;
    width: 32px;
    height: 32px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ========================================
   Life at BLR Tools Section Styles
   ======================================== */
.life-at-blr {
    padding: 4rem 1rem;
    background-color: #f9f9f9;
}

.life-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    /* Fixed height rows for uniformity */
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image covers area without distortion */
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img-placeholder {
    transform: scale(1.05);
    background-color: #ccc;
}

/* Responsive Design for Benefits & Gallery */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .life-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        /* Smaller rows for tablet */
    }

    /* Reset spans for tablet to be simpler */
    .gallery-item {
        grid-column: span 1;
        grid-row: span 1;
    }

    .item-1,
    .item-6 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .item-5,
    .item-9 {
        grid-column: span 2;
    }

    .team-grid {
        gap: 2rem;
    }
}

/* Desktop Grid - Unique Frame */
@media (min-width: 992px) {
    .life-gallery {
        grid-template-columns: repeat(4, 1fr);
        /* 4 Columns */
        grid-auto-rows: 200px;
        grid-auto-flow: dense;
        /* Fill gaps */
    }

    /* Large Feature Items */
    .item-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .item-6 {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Wide Items */
    .item-5 {
        grid-column: span 4;
        grid-row: span 3;
    }

    /* Tall Items */
    .item-3 {
        grid-row: span 2;
    }

    /* Standard 1x1 items are default */
}

/* ========================================
   Meet the Team Section Styles
   ======================================== */
.meet-the-team {
    padding: 4rem 1rem;
    background-color: #fff;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.team-img-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0f0f0;
}

.team-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e7ff;
    /* Soft indigo tint */
    color: #4f46e5;
    /* Indigo */
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-family: Arial, sans-serif;
}

.team-role {
    font-size: 0.95rem;
    color: #0066cc;
    /* Brand Blue */
    font-weight: 600;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}


/* Responsive Design for Benefits & Gallery */


@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-join-us,
    .life-at-blr,
    .meet-the-team,
    .open-positions {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .life-gallery {
        gap: 1rem;
    }

    .item-3 {
        display: none;
    }

    /* Horizontal Scroll for Team Section */
    .team-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1.5rem;
        gap: 1rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .team-card {
        flex: 0 0 auto;
        width: 85vw;
        max-width: 300px;
        scroll-snap-align: center;
    }
}

/* ========================================
   Open Positions Section Styles
   ======================================== */
.open-positions {
    padding: 4rem 1rem;
    background-color: #fff;
}

.intro-text {
    text-align: center;
    max-width: 900px;
    margin: 1rem auto 3rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.job-card {
    border: 1px solid #87CEEB;
    /* Sky blue border */
    border-radius: 15px;
    padding: 2.5rem;
    background-color: #f9fcfe;
    /* Very light blue tint */
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.job-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.quote-icon {
    font-size: 4rem;
    font-family: serif;
    color: #007bff;
    /* Blue quote color */
    line-height: 0.5;
    opacity: 0.8;
}

.job-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    text-align: center;
    flex-grow: 1;
    margin: 0 1rem;
    padding-top: 0.5rem;
}

.job-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.job-meta {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.job-meta li {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #333;
    display: flex;
    align-items: center;
}

.job-meta li::before {
    content: "➜";
    color: #28a745;
    /* Green arrow */
    margin-right: 10px;
    font-weight: bold;
}

.job-details h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.detail-list li::before {
    content: "➜";
    color: #28a745;
    /* Green arrow */
    position: absolute;
    left: 0;
    font-size: 0.9rem;
    top: 2px;
}

/* ========================================
   Resume Contact Section Styles
   ======================================== */
.resume-section {
    padding: 0 1rem 4rem;
    /* Bottom padding to separate from footer */
    background-color: #fff;
}

.resume-box {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #8ae4ff;
    /* Light yellow background */
    border: 1px solid #1abced;
    /* Gold border */
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #333;
}

.resume-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.resume-contact-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.resume-contact-info span {
    display: block;
}

.resume-email {
    color: #007bff;
    text-decoration: none;
}

.resume-email:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .resume-box {
        padding: 1.5rem;
    }
}

/* ========================================
   Job Card Styles (Desktop Default)
   ======================================== */
.job-card {
    cursor: default;
    transition: all 0.3s ease;
}

.job-details-content {
    max-height: none;
    /* Always visible on desktop */
    opacity: 1;
    overflow: visible;
}

.toggle-icon {
    display: none;
    /* Hide icon on desktop */
}

.job-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.job-title {
    pointer-events: none;
}

/* ========================================
   Mobile Accordion Styles
   ======================================== */
@media (max-width: 768px) {
    .job-card {
        cursor: pointer;
        padding: 0rem 1rem;
    }

    .job-card.active {
        border-color: #007bff;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .toggle-icon {
        display: inline-block;
        font-size: 1.5rem;
        color: #007bff;
        transition: transform 0.3s ease;
        margin-left: 0.5rem;
    }

    .job-card.active .toggle-icon {
        transform: rotate(180deg);
    }

    .job-details-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        opacity: 0;
    }

    .job-card.active .job-details-content {
        max-height: 1000px;
        opacity: 1;
        transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
    }
}

@media (max-width: 768px) {
    .job-title {
        font-size: 1.5rem;
    }

    .quote-icon {
        display: none;
    }
}