/* =========================================================
   GLOBAL
   ========================================================= */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f4f7fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    /* lock height */
    background: #ffffff;
    display: flex;
    align-items: center;
    /* 🔑 vertical alignment */
    justify-content: space-between;
    padding: 0 10%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    /* 🔑 */
}

.logo img {
    height: 44px;
    /* 🔑 SAME on all pages */
    width: auto;
    display: block;
}


header nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

header nav a:hover,
header nav a.active {
    color: #3498db;
}

/* =========================
   NAV BASE (REQUIRED)
   ========================= */

.nav-menu {
    display: flex;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}


/* =========================================================
   HERO SECTION (VIDEO)
   ========================================================= */

.career-hero {
    position: relative;
    height: 100vh;
    min-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.career-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.career-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 10, 30, 0.85),
            rgba(5, 10, 30, 0.9));
    z-index: 1;
}

.career-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.career-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.career-hero p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #e5e7eb;
    margin-bottom: 35px;
}

.btn-primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 14px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* =========================================================
   CAREER ROLES SECTION
   ========================================================= */

.career-roles {
    padding: 80px 20px;
    text-align: center;
}

.career-roles h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.career-roles .subtitle {
    color: #6b7280;
    margin-bottom: 50px;
}

/* =========================================================
   ROLE CARDS (SERVICE-STYLE)
   ========================================================= */

.roles-grid {
    max-width: 1200px;
    margin: 0 auto 70px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.role-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    /* faint border */
    border-top: 5px solid #3498db;
    /* accent line */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.role-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #1f2937;
}

.role-card p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Button pinned to bottom */
.role-card .apply-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 12px 22px;
    border-radius: 8px;
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-card .apply-btn:hover {
    background: #3498db;
    color: #ffffff;
}

/* =========================================================
   APPLICATION FORM
   ========================================================= */

.container {
    width: 100%;
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Hidden by default */
.application-form-container {
    display: none;
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* Visible when active */
.application-form-container.active {
    display: block;
    animation: fadeUp 0.5s ease forwards;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    margin-bottom: 8px;
    color: #1f2937;
}

.form-header p {
    color: #6b7280;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
}

input,
select {
    width: 100%;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

button[type="submit"]:hover {
    background: #2980b9;
}

/* ======================================================
   FOOTER (GLOBAL – USED ON ALL PAGES)
   ====================================================== */

footer {
    background: #0f172a;
    padding: 50px 80px 20px;
    color: #e2e8f0;
}

/* Footer layout */
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

/* Footer logo block */
.footer-logo h2 {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo h2 span {
    display: inline-block;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    border-radius: 8px;
    text-align: center;
    line-height: 35px;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
}

.footer-logo p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Social icons */
.social-icons a {
    display: inline-block;
    margin-right: 10px;
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #605656;
    color: aqua;
}

/* Footer headings */
footer h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Footer lists */
footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

footer ul li a:hover {
    color: aqua;
}

/* Contact info */
.contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.contact-info p span {
    margin-right: 10px;
    color: #7d7f81;
    font-size: 16px;
}

/* Email link */
#ml {
    text-decoration: none;
    color: white;
}

#ml:hover {
    color: rgb(207, 46, 196);
}

/* Footer bottom bar */
.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding-top: 15px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #94a3b8;
}

.footer-bottom span {
    color: #64748b;
}

/* ======================================================
   FOOTER RESPONSIVE
   ====================================================== */

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .career-hero h1 {
        font-size: 2.6rem;
    }
}

@media (max-width: 600px) {
    .roles-grid {
        grid-template-columns: 1fr;
    }

    .career-hero {
        height: 80vh;
    }

    .career-hero h1 {
        font-size: 2.2rem;
    }
}

/* =========================
   MOBILE NAV (WORKING)
   ========================= */

.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile */
@media (max-width: 992px) {

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        display: block;
        /* 🔴 THIS WAS MISSING */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }

    .nav-menu.show {
        max-height: 500px;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 15px 20px;
        gap: 0;
    }

    .nav-menu ul li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #f1f1f1;
    }

    .nav-menu ul li a {
        display: block;
        width: 100%;
    }
}