/* style/careers.css */
/* Base styles for the careers page */
.page-careers {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Explicitly white background */
}

/* Hero Section */
.page-careers__hero-section {
    background-color: #f8f8f8;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 60px;
    position: relative;
}

.page-careers__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 16px;
}

.page-careers__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #1e1765; /* Darker text for hero content */
}

.page-careers__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #017439; /* Brand primary color for title */
}

.page-careers__hero-description {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 30px;
    color: #333333;
}

.page-careers__hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.page-careers__btn-primary,
.page-careers__btn-secondary,
.page-careers__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-careers__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-careers__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-careers__btn-secondary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-careers__btn-secondary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-careers__btn-link {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
    padding: 10px 20px;
}

.page-careers__btn-link:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-careers__btn-apply-now {
    margin-top: 30px;
    width: fit-content;
}

.page-careers__hero-image {
    flex: 1 1 40%;
    text-align: center;
    min-width: 300px;
}

.page-careers__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Intro Section (Why Join Us) */
.page-careers__intro-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-careers__intro-container,
.page-careers__openings-container,
.page-careers__apply-container,
.page-careers__faq-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-careers__intro-title,
.page-careers__openings-title,
.page-careers__apply-title,
.page-careers__faq-title {
    font-size: 2.2rem; /* 35.2px */
    text-align: center;
    margin-bottom: 20px;
    color: #017439;
    font-weight: 700;
}

.page-careers__intro-description,
.page-careers__openings-description {
    font-size: 1.125rem; /* 18px */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555555;
}

.page-careers__intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-careers__icon-box {
    text-align: center;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-careers__icon-box-media {
    width: 180px; /* Specific width */
    height: 180px; /* Specific height to make it circular */
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #017439;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-careers__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the circular area */
    border-radius: 50%; /* Make sure the image inside is also circular */
    display: block;
}

.page-careers__icon-box-title {
    font-size: 1.5rem; /* 24px */
    margin-bottom: 15px;
    color: #017439;
    font-weight: 600;
}

.page-careers__icon-box-text {
    font-size: 1rem; /* 16px */
    color: #666666;
}

/* Openings Section */
.page-careers__openings-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.page-careers__job-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-careers__job-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-careers__job-card:hover {
    transform: translateY(-5px);
}

.page-careers__job-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-careers__job-card-title {
    font-size: 1.375rem; /* 22px */
    margin: 20px 20px 10px;
    color: #017439;
    font-weight: 600;
}

.page-careers__job-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.page-careers__job-card-title a:hover {
    color: #005a2e;
}

.page-careers__job-card-meta {
    font-size: 0.9rem; /* 14.4px */
    color: #888888;
    margin: 0 20px 15px;
}

.page-careers__job-card-text {
    font-size: 1rem; /* 16px */
    color: #666666;
    margin: 0 20px 20px;
    flex-grow: 1; /* Allows text to take available space */
}

.page-careers__job-card .page-careers__btn-link {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start */
}

/* Apply Section */
.page-careers__apply-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-careers__apply-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-careers__apply-step {
    text-align: center;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f9f9f9;
}

.page-careers__apply-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 1.8rem; /* 28.8px */
    font-weight: 700;
    margin-bottom: 20px;
}

.page-careers__apply-step-title {
    font-size: 1.375rem; /* 22px */
    margin-bottom: 15px;
    color: #017439;
    font-weight: 600;
}

.page-careers__apply-step-text {
    font-size: 1rem; /* 16px */
    color: #666666;
}

.page-careers__btn-apply-now {
    display: block;
    margin: 40px auto 0;
    width: fit-content;
}

/* FAQ Section */
.page-careers__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-careers__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-careers__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-careers__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: #333333;
    cursor: pointer;
    background-color: #FFFFFF;
    list-style: none; /* Hide default marker */
    transition: background-color 0.3s ease;
}

.page-careers__faq-question::-webkit-details-marker {
    display: none;
}

.page-careers__faq-question:hover {
    background-color: #f0f0f0;
}

.page-careers__faq-item[open] .page-careers__faq-question {
    background-color: #f0f0f0;
    color: #017439;
}

.page-careers__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-careers__faq-toggle {
    font-size: 1.5rem; /* 24px */
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-careers__faq-item[open] .page-careers__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: #C30808; /* Red for 'x' */
}

.page-careers__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem; /* 16px */
    color: #555555;
    line-height: 1.7;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-careers__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-careers__hero-content {
        order: 2; /* Content after image on smaller screens */
        text-align: center;
    }

    .page-careers__hero-image {
        order: 1; /* Image first on smaller screens */
    }

    .page-careers__hero-cta-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Global for mobile */
    .page-careers {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-careers__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-careers__hero-container {
        padding: 20px 15px;
        gap: 20px;
    }

    .page-careers__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Smaller on mobile */
        margin-bottom: 15px;
    }

    .page-careers__hero-description {
        font-size: 1rem; /* 16px */
        margin-bottom: 20px;
    }

    .page-careers__hero-cta-group {
        flex-direction: column; /* Buttons stack vertically */
        gap: 10px;
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to button group */
    }

    /* Buttons mobile adaptation */
    .page-careers__btn-primary,
    .page-careers__btn-secondary,
    .page-careers__btn-link,
    .page-careers a[class*="button"],
    .page-careers a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Intro Section */
    .page-careers__intro-section,
    .page-careers__openings-section,
    .page-careers__apply-section,
    .page-careers__faq-section {
        padding: 40px 0;
    }

    .page-careers__intro-container,
    .page-careers__openings-container,
    .page-careers__apply-container,
    .page-careers__faq-container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-careers__intro-title,
    .page-careers__openings-title,
    .page-careers__apply-title,
    .page-careers__faq-title {
        font-size: 1.8rem; /* Smaller titles on mobile */
        margin-bottom: 15px;
    }

    .page-careers__intro-description,
    .page-careers__openings-description {
        font-size: 1rem; /* 16px */
        margin-bottom: 30px;
    }

    .page-careers__intro-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    /* Circular images in Module 1 */
    .page-careers__icon-box-media {
        width: 150px; /* Maintain circularity, smaller size */
        height: 150px;
        border-width: 3px;
    }

    .page-careers__icon-box-title {
        font-size: 1.3rem; /* 20.8px */
    }

    /* Openings Section */
    .page-careers__job-list {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-careers__job-card img {
         /* Adjust height for mobile */
    }

    .page-careers__job-card-title {
        font-size: 1.2rem; /* 19.2px */
        margin: 15px 15px 8px;
    }

    .page-careers__job-card-meta,
    .page-careers__job-card-text {
        margin: 0 15px 15px;
    }

    .page-careers__job-card .page-careers__btn-link {
        margin: 0 15px 15px;
        padding: 8px 15px;
    }

    /* Apply Section */
    .page-careers__apply-steps {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-careers__apply-step {
        padding: 20px;
    }

    .page-careers__apply-step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5rem; /* 24px */
        margin-bottom: 15px;
    }

    .page-careers__apply-step-title {
        font-size: 1.2rem; /* 19.2px */
    }

    .page-careers__btn-apply-now {
        margin-top: 30px;
        width: 100% !important;
    }

    /* FAQ Section */
    .page-careers__faq-list {
        margin-top: 30px;
    }

    .page-careers__faq-question {
        padding: 15px 20px;
        font-size: 1rem; /* 16px */
    }

    .page-careers__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95rem; /* 15.2px */
    }

    /* Universal image responsive for mobile */
    .page-careers img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* Ensure all content containers are responsive */
    .page-careers__hero-section,
    .page-careers__intro-section,
    .page-careers__openings-section,
    .page-careers__apply-section,
    .page-careers__faq-section,
    .page-careers__icon-box,
    .page-careers__job-card,
    .page-careers__apply-step,
    .page-careers__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}