/* =========================================================
   CAREER PORTAL - MAIN STYLESHEET
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: #062f3b;

    background: #ffffff;

    line-height: 1.5;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.topbar {
    width: 100%;

    min-height: 64px;

    background: #003642;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 35px;

    position: relative;

    z-index: 1000;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    color: #ffffff;

    font-size: 23px;

    font-weight: 700;

    letter-spacing: 4px;

    text-decoration: none;

    white-space: nowrap;
}

.brand:hover {
    color: #ffffff;

    text-decoration: none;
}


/* =========================================================
   TOP RIGHT NAVIGATION
   ========================================================= */

.top-navigation {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 28px;

    height: 64px;
}


/* =========================================================
   TOP NAVIGATION LINKS
   ========================================================= */

.top-link {
    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    white-space: nowrap;

    transition: opacity 0.2s ease;
}

.top-link:hover {
    color: #ffffff;

    opacity: 0.75;

    text-decoration: none;
}


/* =========================================================
   EMPLOYEE LOGIN
   ========================================================= */

.employee-login {
    border-left: 1px solid rgba(255, 255, 255, 0.35);

    padding-left: 28px;
}


/* =========================================================
   LANGUAGE DROPDOWN
   ========================================================= */

.language-dropdown {
    position: relative;

    height: 100%;

    display: flex;

    align-items: center;
}


/* Language button */

.language-button {
    background: transparent;

    color: #ffffff;

    border: none;

    outline: none;

    padding: 10px 0;

    margin: 0;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;
}

.language-button:hover {
    color: #ffffff;

    opacity: 0.75;
}


/* Language dropdown box */

.language-menu {
    position: absolute;

    top: 64px;

    right: 0;

    width: 240px;

    max-height: 500px;

    overflow-y: auto;

    background: #003642;

    border: 1px solid rgba(255, 255, 255, 0.20);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

    display: none;

    z-index: 9999;
}


/* Show language dropdown */

.language-dropdown:hover .language-menu {
    display: block;
}


/* Language options */

.language-menu a {
    display: block;

    color: #ffffff;

    text-decoration: none;

    padding: 12px 16px;

    font-size: 13px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.language-menu a:last-child {
    border-bottom: none;
}

.language-menu a:hover {
    background: #07515e;

    color: #ffffff;
}


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

.hero {
    min-height: 470px;

    background:
        linear-gradient(
            90deg,
            rgba(0, 54, 66, 0.92),
            rgba(0, 54, 66, 0.25)
        ),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80")
        center center / cover no-repeat;

    display: flex;

    align-items: flex-end;

    position: relative;
}


/* Hero content */

.hero-content {
    width: 100%;

    max-width: 1150px;

    margin: 0 auto;

    padding: 70px 28px;

    color: #ffffff;
}


/* Hero heading */

.hero h1 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: 46px;

    font-weight: 700;

    line-height: 1.15;
}


/* Hero paragraph */

.hero p {
    max-width: 650px;

    margin: 0;

    font-size: 18px;

    line-height: 1.6;

    color: #ffffff;
}


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

.cta {
    display: inline-block;

    background: #007d86;

    color: #ffffff;

    padding: 13px 24px;

    margin-top: 20px;

    margin-right: 8px;

    text-decoration: none;

    font-weight: 700;

    border: none;

    cursor: pointer;

    transition: background 0.2s ease;
}

.cta:hover {
    background: #005f67;

    color: #ffffff;

    text-decoration: none;
}


/* General buttons */

button,
.btn {
    background: #003642;

    color: #ffffff;

    border: 0;

    padding: 12px 22px;

    cursor: pointer;

    text-decoration: none;

    display: inline-block;

    margin-top: 18px;

    font-weight: 700;

    transition: background 0.2s ease;
}

button:hover,
.btn:hover {
    background: #07515e;

    color: #ffffff;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {
    max-width: 1000px;

    margin: 45px auto;

    padding: 0 25px;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: #ffffff;

    border: 1px solid #d7e0e2;

    padding: 28px;

    margin-bottom: 24px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3 {
    color: #003642;

    line-height: 1.25;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 20px;
}


/* =========================================================
   FORM PAGE
   ========================================================= */

.form-wrap {
    max-width: 650px;

    margin: 55px auto;
}


/* Labels */

label {
    display: block;

    font-weight: 700;

    margin: 14px 0 7px;
}


/* Inputs */

input,
select,
textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #999999;

    background: #ffffff;

    color: #062f3b;

    font-size: 15px;

    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #003642;

    box-shadow: 0 0 0 2px rgba(0, 54, 66, 0.10);
}

textarea {
    min-height: 110px;

    resize: vertical;
}


/* =========================================================
   MESSAGES
   ========================================================= */

.error {
    background: #ffe7e7;

    color: #9b0000;

    padding: 12px;

    margin: 15px 0;

    border-left: 4px solid #b52121;
}


.success {
    background: #e4f7ee;

    color: #126b46;

    padding: 12px;

    margin: 15px 0;

    border-left: 4px solid #17834e;
}


.muted {
    color: #60757b;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


/* =========================================================
   INTERVIEW TIMELINE
   ========================================================= */

.timeline {
    position: relative;

    margin: 30px 0;
}


/* Individual stage */

.stage {
    display: grid;

    grid-template-columns: 34px 1fr;

    gap: 14px;

    margin: 0 0 22px;

    position: relative;
}


/* Vertical line */

.stage:not(:last-child)::after {
    content: "";

    position: absolute;

    left: 11px;

    top: 28px;

    width: 2px;

    height: calc(100% + 0px);

    background: #d7e0e2;

    z-index: 0;
}


/* Timeline dot */

.dot {
    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: #b7c5c8;

    margin-top: 2px;

    position: relative;

    z-index: 1;
}


/* Passed */

.dot.pass {
    background: #17834e;
}


/* Active */

.dot.active {
    background: #007d86;
}


/* Failed */

.dot.fail {
    background: #b52121;
}


/* Stage card */

.stage-card {
    border: 1px solid #d6e0e2;

    padding: 18px;

    background: #ffffff;
}


/* Status */

.status {
    font-weight: 700;
}

.status.pass {
    color: #17834e;
}

.status.active {
    color: #007d86;
}

.status.fail {
    color: #b52121;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrap {
    overflow-x: auto;
}


table {
    width: 100%;

    border-collapse: collapse;
}


th,
td {
    padding: 12px;

    border-bottom: 1px solid #d8e1e3;

    text-align: left;

    vertical-align: middle;
}


th {
    background: #edf3f4;

    color: #003642;

    font-weight: 700;
}


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

.footer {
    margin-top: 80px;

    background: #003642;

    color: #ffffff;

    padding: 25px;

    display: flex;

    gap: 12px;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    font-size: 13px;
}


.footer a {
    color: #ffffff;

    text-decoration: none;
}


.footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   ADMIN NAVIGATION
   ========================================================= */

.admin-nav {
    background: #eaf1f2;

    padding: 14px 24px;

    color: #003642;
}


.admin-nav a {
    text-decoration: none;

    color: #003642;

    font-weight: 600;
}


/* =========================================================
   LANGUAGE SECTION ON HOMEPAGE
   ========================================================= */

.lang {
    position: relative;

    display: inline-block;
}


/* Old language button support */

.lang button {
    margin: 0;

    background: #003642;

    color: #ffffff;

    border: 1px solid #ffffff;

    padding: 8px 12px;
}


/* Old language menu support */

.lang-menu {
    display: none;

    position: absolute;

    right: 0;

    top: 43px;

    background: #003642;

    min-width: 230px;

    z-index: 20;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


.lang-menu a {
    display: block;

    padding: 10px 14px;

    color: #ffffff;

    text-decoration: none;
}


.lang-menu a:hover {
    background: #07505e;
}


.lang:hover .lang-menu {
    display: block;
}


/* =========================================================
   SCROLLBAR FOR LANGUAGE MENU
   ========================================================= */

.language-menu::-webkit-scrollbar {
    width: 7px;
}

.language-menu::-webkit-scrollbar-track {
    background: #002a33;
}

.language-menu::-webkit-scrollbar-thumb {
    background: #0b6673;

    border-radius: 10px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .topbar {
        padding: 0 20px;
    }

    .top-navigation {
        gap: 18px;
    }

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

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .topbar {
        min-height: 64px;

        padding: 12px 15px;

        flex-wrap: wrap;

        gap: 12px;
    }


    .brand {
        font-size: 17px;

        letter-spacing: 3px;
    }


    .top-navigation {
        width: 100%;

        height: auto;

        display: flex;

        justify-content: flex-end;

        gap: 14px;

        flex-wrap: wrap;
    }


    .top-link,
    .language-button {
        font-size: 12px;
    }


    .employee-login {
        padding-left: 14px;
    }


    .language-menu {
        top: 35px;

        right: 0;

        width: 220px;
    }


    .hero {
        min-height: 420px;
    }


    .hero-content {
        padding: 45px 20px;
    }


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


    .hero p {
        font-size: 16px;
    }


    .profile-grid {
        grid-template-columns: 1fr;
    }


    .container {
        margin: 30px auto;

        padding: 0 18px;
    }


    .card {
        padding: 20px;
    }


    h1 {
        font-size: 29px;
    }


    h2 {
        font-size: 23px;
    }


    h3 {
        font-size: 18px;
    }

}


/* =========================================================
   VERY SMALL MOBILE SCREENS
   ========================================================= */

@media (max-width: 450px) {

    .topbar {
        align-items: flex-start;
    }


    .brand {
        width: 100%;
    }


    .top-navigation {
        justify-content: flex-start;

        gap: 12px;
    }


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


    .cta {
        width: 100%;

        text-align: center;

        margin-right: 0;
    }


    .footer {
        text-align: center;

        flex-direction: column;

        gap: 8px;
    }

}