:root {
    --primary: #7f9196;
    --primary-dark: #647378;
    --secondary: #6c757d;
    --light: #f4f3f3;
    --white: #ffffff;
    --dark: #212529;
    --text-muted: #6c757d;
    --radius: 12px;
    --shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(45deg, #7f9196, #647378);
}

body {
    background-color: var(--white);
    color: var(--dark);
    scroll-behavior: smooth;
    margin-top: 60px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--dark);
}

.section-padding {
    padding: 100px 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?q=80&w=2084&auto=format&fit=crop') no-repeat center/cover;
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(10, 25, 47, 0.4), rgba(23, 58, 94, 0.6));
}

.hero .content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
    animation: fadeDown 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeUp 1s 0.3s ease-out backwards;
}

.hero-btn {
    border-radius: 50px;
    padding: 6px 15px;
    font-weight: 500;
    justify-content: center;
    background: var(--primary);
    border: 2px solid var(--primary);
    color: var(--white);
    transition: all 0.3s ease;
    animation: fadeUp 1s 0.6s ease-out backwards;
    box-shadow: 0 4px 15px rgba(127, 145, 150, 0.3);
}

.hero-btn:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-3px);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    margin-top: -30px;
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: var(--gradient-primary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
}

.why-join {
    background: var(--light);
}

.why-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    height: 100%;
    text-align: center;
    border: 1px solid #e9ecef;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.why-card .icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-image: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.why-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(127, 145, 150, 0.3);
}

.why-card h5 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.accordion-header h2 {
    margin-bottom: 0;
}

.accordion-button {
    padding: 1.25rem 1.75rem;
    font-weight: 600;
    color: var(--dark);
    background: var(--white);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-button:not(.collapsed) * {
    color: var(--white) !important;
}

.accordion-button:not(.collapsed) .job-meta {
    color: rgba(255, 255, 255, 0.85) !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 .25rem rgba(127, 145, 150, 0.25);
}

.accordion-button::after {
    content: none;
}

.job-title-wrapper h5 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.job-meta {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.accordion-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease-in-out;
    color: var(--primary);
}

.accordion-body {
    background: var(--white);
    padding: 1.5rem 2rem;
}

.apply-now-btn {
    margin-top: 1.5rem;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.apply-now-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.apply-section {
    background-color: var(--light);
}

.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #e9ecef;
}

.form-control {
    min-height: 55px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding-left: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(127, 145, 150, 0.15);
}

.form-floating>label {
    padding: 1rem;
    color: var(--text-muted);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.file-upload-wrapper {
    position: relative;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(127, 145, 150, 0.15);
}

.file-upload-label {
    cursor: pointer;
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.file-upload-label:hover {
    background: var(--primary-dark);
}

.file-upload-filename {
    margin-left: 1rem;
    font-style: italic;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload-input {
    display: none;
}

.submit-btn {
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    background-image: var(--gradient-primary);
    border: none;
    color: var(--white);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(127, 145, 150, 0.35);
}

.centered-title {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.centered-title h1 {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    position: relative;
    padding: 10px 0;
}

.centered-title h1::before,
.centered-title h1::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #fa7e7e;
}

.centered-title h1::before {
    top: 0;
    left: 0;
}

.centered-title h1::after {
    bottom: 0;
    right: 0;
}


.back-to-top {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 54px;
    height: 54px;

    clip-path: circle(100% at 100% 100%);

    background: #7f9196;
    color: #fff;
    border: 0;

    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1050;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .2s ease;
    box-shadow: 0 10px 24px rgba(79, 70, 229, .35);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #7f9196;
}

.back-to-top:focus-visible {
    outline: 2px solid #ffffffcc;
    outline-offset: 2px;
}

.back-to-top i {
    display: inline-block;
    transform: translate(6px, 6px);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}