
:root {
    --primary: #0756a5;
    --primary-dark: #063c78;
    --accent: #00a3e0;
    --dark: #142438;
    --text: #536273;
    --light: #f4f7fb;
    --white: #ffffff;
    --border: #e3e9f0;
    --shadow: 0 12px 35px rgba(15, 42, 72, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    width: 100%;
    min-width: 280px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

/* =========================
   HEADER & NAVIGATION
========================= */

.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 82px;
    gap: 20px;
}

.logo {
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
}

.navigation {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 35px);
}

.navigation a {
    font-size: 14px;
    font-weight: 600;
    transition: .3s;
}

.navigation a:hover {
    color: var(--accent);
}

.nav-button {
    background: var(--primary);
    color: white;
    padding: 11px 22px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 27px;
    cursor: pointer;
}

/* =========================
   BUTTONS
========================= */

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 27px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    max-width: 100%;
    text-align: center;
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(7,86,165,.2);
}

/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 570px;
    min-height: clamp(430px, 65vh, 650px);
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    background:
        linear-gradient(90deg, rgba(4,30,65,.95), rgba(4,40,80,.65)),
        url('../assets/images/careers-bg.jpg') center/cover no-repeat,
        var(--primary-dark);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(4,30,65,.25),
        transparent
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 65px;
    padding-bottom: 65px;
    animation: fadeUp .9s ease;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(34px, 6vw, 65px);
    line-height: 1.15;
    max-width: 700px;
    margin-bottom: 25px;
    letter-spacing: -2px;
    overflow-wrap: break-word;
}

.hero h1 span {
    color: #39b9ed;
}

.hero p {
    color: #e1eaf5;
    max-width: 580px;
    margin-bottom: 35px;
    font-size: clamp(14px, 1.5vw, 16px);
}

/* =========================
   INTRO SECTION
========================= */

.intro-section {
    padding: clamp(55px, 8vw, 90px) 0;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-content h2,
.section-heading h2,
.flyer-heading h2,
.admin-heading h2,
.contact-content h2 {
    font-size: clamp(25px, 3.5vw, 34px);
    line-height: 1.3;
    letter-spacing: -1px;
}

.intro-content p {
    color: var(--text);
    font-size: 15px;
}

/* =========================
   VACANCIES
========================= */

.vacancies-section {
    padding: clamp(55px, 8vw, 90px) 0;
    background: var(--light);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-heading p,
.flyer-heading p,
.admin-heading p {
    color: var(--text);
    margin-top: 8px;
}

.search-area {
    margin-bottom: 35px;
}

.search-area input {
    width: 100%;
    max-width: 500px;
    padding: 15px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    background: white;
}

.search-area input:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.job-card {
    min-width: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: clamp(18px, 3vw, 27px);
    transition: .3s;
    box-shadow: 0 4px 15px rgba(0,0,0,.02);
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.job-category {
    display: inline-block;
    background: #eaf5ff;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 18px;
}

.job-card h3 {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.4;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.job-meta {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.job-description {
    color: var(--text);
    font-size: 13px;
    margin: 18px 0;
}

.job-deadline {
    font-size: 12px;
    color: #bd6817;
    font-weight: 700;
    margin-bottom: 20px;
}

.job-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.job-actions a {
    font-size: 12px;
    padding: 10px 13px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
}

.apply-link {
    background: var(--primary);
    color: white;
}

.flyer-link {
    background: #edf2f7;
    color: var(--dark);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text);
}

/* =========================
   FLYER SECTION
========================= */

.flyers-section {
    padding: clamp(55px, 8vw, 90px) 0;
}

.flyer-heading {
    text-align: center;
    margin-bottom: 45px;
}

.flyers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.flyer-card {
    min-width: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .3s;
}

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

.flyer-preview {
    width: 100%;
    height: clamp(190px, 25vw, 280px);
    background: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.flyer-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdf-preview {
    font-size: 50px;
    color: #d64040;
}

.flyer-info {
    padding: 20px;
}

.flyer-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.flyer-info a {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    margin: 3px 0;
}

/* =========================
   ADMIN SECTION
========================= */

.admin-section {
    padding: clamp(55px, 8vw, 90px) 0;
    background: var(--light);
}

.admin-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
}

.admin-tag {
    background: #dceeff;
    color: var(--primary);
    padding: 7px 15px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 4px;
}

.upload-form {
    width: 100%;
    max-width: 850px;
    background: white;
    padding: clamp(20px, 4vw, 35px);
    border-radius: 9px;
    box-shadow: var(--shadow);
}

.form-group {
    min-width: 0;
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 5px;
    outline: none;
    background: white;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group select {
    min-height: 48px;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.file-upload {
    border: 2px dashed #b8cce0;
    border-radius: 8px;
    padding: clamp(20px, 5vw, 35px);
    text-align: center;
    position: relative;
    background: #f9fbfd;
    overflow: hidden;
}

.file-upload input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    display: block;
    font-size: 30px;
    color: var(--primary);
}

.upload-message strong,
.upload-message small {
    display: block;
}

.upload-message small {
    color: var(--text);
    font-size: 12px;
    margin-top: 5px;
}

.file-name {
    color: var(--primary);
    font-size: 13px;
    margin-top: 10px;
    overflow-wrap: anywhere;
}

.submit-button {
    width: 100%;
}

.form-notice {
    margin-top: 15px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-list {
    margin-top: 50px;
    max-width: 850px;
}

.admin-list h3 {
    margin-bottom: 20px;
}

.admin-job {
    background: white;
    padding: 17px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-width: 0;
}

.admin-job > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.delete-button {
    flex-shrink: 0;
    border: none;
    background: #fff0f0;
    color: #cf3030;
    padding: 10px 13px;
    border-radius: 4px;
    cursor: pointer;
}

/* =========================
   CONTACT SECTION
========================= */

.contact-section {
    padding: clamp(50px, 7vw, 75px) 0;
}

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-content p {
    color: var(--text);
    margin-top: 12px;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #10253d;
    color: white;
    padding: 35px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.footer-logo {
    color: white;
}

.footer-content p {
    color: #bac8d8;
    font-size: 12px;
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   TABLETS
   651px - 1024px
========================= */

@media (max-width: 1024px) {

    .jobs-grid,
    .flyers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .navigation {
        gap: 18px;
    }

    .nav-wrapper {
        gap: 12px;
    }

    .intro-content {
        gap: 35px;
    }
}

/* =========================
   SMALL TABLETS / LARGE PHONES
   481px - 768px
========================= */

@media (max-width: 768px) {

    .nav-wrapper {
        min-height: 72px;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 5%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        box-shadow: var(--shadow);
    }

    .navigation.active {
        display: flex;
    }

    .navigation a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-button {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero {
        min-height: 480px;
    }

    .hero h1 {
        max-width: 580px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .contact-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   MOBILE PHONES
   280px - 480px
========================= */

@media (max-width: 480px) {

    .container {
        width: calc(100% - 30px);
    }

    .nav-wrapper {
        min-height: 65px;
    }

    .logo {
        font-size: 20px;
    }

    .navigation {
        padding: 15px;
    }

    .hero {
        min-height: 460px;
        background-position: 60% center;
    }

    .hero-content {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .eyebrow,
    .section-label {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .hero h1 {
        font-size: clamp(32px, 9vw, 42px);
        letter-spacing: -1.5px;
        margin-bottom: 18px;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 25px;
    }

    .primary-button {
        width: 100%;
        padding: 14px 16px;
        font-size: 13px;
    }

    .intro-section,
    .vacancies-section,
    .flyers-section,
    .admin-section {
        padding: 55px 0;
    }

    .intro-content h2,
    .section-heading h2,
    .flyer-heading h2,
    .admin-heading h2,
    .contact-content h2 {
        font-size: 26px;
    }

    .intro-content p {
        font-size: 14px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .section-heading p,
    .flyer-heading p,
    .admin-heading p {
        font-size: 13px;
    }

    .search-area {
        margin-bottom: 25px;
    }

    .search-area input {
        max-width: none;
        font-size: 14px;
        padding: 14px;
    }

    .jobs-grid,
    .flyers-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .job-card {
        padding: 22px;
    }

    .job-card h3 {
        font-size: 19px;
    }

    .job-actions a {
        flex: 1 1 auto;
        padding: 11px 10px;
    }

    .flyer-heading {
        margin-bottom: 30px;
    }

    .flyer-preview {
        height: 260px;
    }

    .flyer-info {
        padding: 18px;
    }

    .admin-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 25px;
    }

    .upload-form {
        padding: 18px;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .file-upload {
        padding: 24px 12px;
    }

    .upload-message strong {
        font-size: 13px;
    }

    .upload-message small {
        font-size: 11px;
    }

    .admin-job {
        padding: 15px;
        align-items: flex-start;
        flex-direction: column;
    }

    .delete-button {
        width: 100%;
    }

    .contact-section {
        padding: 55px 0;
    }

    .contact-content {
        gap: 22px;
    }

    .footer {
        padding: 30px 0;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-content p {
        font-size: 11px;
    }
}

/* =========================
   VERY SMALL PHONES
   280px - 360px
========================= */

@media (max-width: 360px) {

    .container {
        width: calc(100% - 24px);
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero {
        min-height: 420px;
    }

    .job-card {
        padding: 17px;
    }

    .job-actions {
        flex-direction: column;
    }

    .job-actions a {
        width: 100%;
    }

    .upload-form {
        padding: 14px;
    }

    .admin-heading h2 {
        font-size: 24px;
    }
}

/* =========================
   LANDSCAPE MOBILE
========================= */

@media (max-height: 500px) and (max-width: 900px) {

    .hero {
        min-height: 400px;
    }

    .hero-content {
        padding-top: 35px;
        padding-bottom: 35px;
    }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.flyers-section {
    padding: 70px 20px;
    text-align: center;
}

.flyer-center {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 35px auto 0;
}

.flyer-card {
    width: 100%;
    max-width: 550px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.flyer-preview {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f7fb;
}

.flyer-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 750px;
    object-fit: contain;
}

.flyer-info {
    padding: 20px;
    text-align: center;
}

.flyer-info h3 {
    margin-bottom: 15px;
}

.flyer-info a {
    color: #0077b6;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 600px) {
    .flyers-section {
        padding: 40px 12px;
    }

    .flyer-card {
        max-width: 100%;
    }

    .flyer-info {
        padding: 15px 10px;
    }
}