:root {
    --ms-dark: #1a1a1a;
    --ms-dark-lighter: #252525;
    --ms-footer-bg: #0a0a0a;
    --ms-orange: #F37123;
    --ms-orange-hover: #ec9137;
    --ms-text: #ffffff;
    --ms-text-muted: #888;
}

body {
    background: #1a1a1a;
    color: var(--ms-text);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hero area: header + hero section with same bg */
.ms-join-hero-wrap {
    position: relative;
    min-height: 60vh;
    background-image: url('../../images/new_design/join_us/join-us-bg.jpg');
    background-size: cover;
    background-position: center;
}
.ms-join-hero-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* Header bar - dark semi-transparent */
.ms-join-header {
    position: relative;
    z-index: 2;
    padding: 1.25rem 0;
}
.ms-join-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.ms-join-logo {
    display: inline-block;
}
.ms-join-logo img {
    height: 40px;
    width: auto;
    display: block;
}
.ms-join-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.ms-join-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}
.ms-join-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}
.ms-join-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}
.ms-join-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}
.ms-join-hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}
.ms-join-hamburger[aria-expanded="true"] .fa-bars { display: none; }
.ms-join-hamburger .fa-times { display: none; }
.ms-join-hamburger[aria-expanded="true"] .fa-times { display: inline-block; }

.ms-join-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    min-width: 180px;
    background: var(--ms-dark-lighter);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 20;
}
.ms-join-mobile-menu.show {
    display: block;
}
.ms-join-mobile-menu a {
    display: block;
    padding: 0.6rem 1rem;
    color: white;
    text-decoration: none;
}
.ms-join-mobile-menu a:hover,
.ms-join-mobile-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ms-orange);
}

/* Hero tagline */
.ms-join-hero-content {
    position: relative;
    z-index: 2;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}
.ms-join-hero-content h1 {
    font-size: clamp(1.65rem, 5vw, 2.25rem);
    font-weight: 700;
    color: white;
    margin: 0;
    max-width: 800px;
    line-height: 1.3;
}

/* Culture section */
.ms-culture-content-wrap {
    background: #f5f5f5;
}
.ms-culture {
    padding: 3rem 0;
}
.ms-culture h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 1.25rem;
}
.ms-culture-scroller {
    margin-top: 2rem;
}
.ms-culture-swiper, .ms-culture-swiper-right {
    padding-bottom: 1rem;
}
.ms-culture-swiper .swiper-slide, .ms-culture-swiper-right .swiper-slide {
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
}
.ms-culture-swiper img, .ms-culture-swiper-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.swiper-wrapper {
    transition-timing-function: linear !important;
}

@media (max-width: 767px) {
    .ms-culture-swiper .swiper-slide {
        height: 180px;
    }
}

/* Join Our Team section */
.ms-join-content-wrap {
    background: #ffffff;
}
.ms-join-content {
    padding: 3rem 0;
}
.ms-join-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 1.25rem;
}
.ms-join-content .lead {
    font-size: 1rem;
    color: #555;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
/* Job cards */
.ms-job-cards {
    margin-bottom: 2rem;
}
.ms-job-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}
.ms-job-card .ms-job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
}
.ms-job-card .ms-job-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.25rem;
}
.ms-job-card .ms-apply-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ms-orange);
    color: white !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}
.ms-job-card .ms-apply-btn:hover {
    background: var(--ms-orange-hover);
    color: white !important;
}

/* See all positions button */
.ms-see-all-wrap {
    text-align: center;
    margin-bottom: 3rem;
}
.ms-see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ms-orange);
    color: white !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}
.ms-see-all-btn:hover {
    background: var(--ms-orange-hover);
    color: white !important;
}


/* Footer - full width
*/
.ms-footer {
    --ms-footer-icon: clamp(48px, 4vw, 80px);
    background: #0a0a0a;
    padding: clamp(2rem, 3vw, 4rem) 0;
    width: 100%;
}
.ms-footer-inner {
    max-width: 100%;
}
.ms-footer-follow {
    text-align: center;
    margin-bottom: 2rem;
}
.ms-footer-follow .ms-follow-text {
    font-size: clamp(1rem, 1.2vw, 1.8rem);
    color: #4F5260;
    margin-bottom: 1rem;
}
.ms-footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}
.ms-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ms-footer-icon);
    height: var(--ms-footer-icon);
    overflow: hidden;
    border-radius: 50%;
    transition: opacity 0.2s ease;
    transition: transform 0.2s ease;
}
.ms-footer-social a:hover {
    opacity: 0.85;
    transform: translateY(1px);
}
/* Zoom into SVG center to crop glow; scale with viewport */
.ms-footer-social img {
    width: calc(var(--ms-footer-icon) * 2.4);
    height: calc(var(--ms-footer-icon) * 2.4);
    object-fit: contain;
    object-position: center;
}
.ms-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}
.ms-contact-line {
    font-size: clamp(1rem, 1vw, 1.3rem);
    margin-bottom: 0.35rem;
}
.ms-contact-line a {
    color: var(--ms-text);
    text-decoration: none;
}
.ms-contact-line a:hover {
    color: var(--ms-orange);
    text-decoration: underline;
}
.ms-contact-line .ms-label {
    color: var(--ms-orange);
}
.ms-contact-line .sep {
    color: var(--ms-text-muted);
    margin: 0 0.5rem;
}
.ms-legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
.ms-legal-links li {
    margin-bottom: 0.35rem;
}
.ms-legal-links a {
    color: var(--ms-text);
    text-decoration: none;
    font-size: clamp(1rem, 1vw, 1.3rem);
}
.ms-legal-links a:hover {
    color: var(--ms-orange);
}

@media (max-width: 767px) {
    .ms-logo-wrap img {
        max-height: 160px;
    }
    .ms-game-icon {
        width: 100px;
        height: 100px;
    }
    .ms-stats .ms-stats-row {
        gap: 1rem;
    }
    .ms-stat-sep {
        height: 50px;
        margin: 0.5rem 0;
    }
    .ms-stat-item {
        min-width: 120px;
    }
    .ms-cta-band .container {
        flex-direction: column;
        text-align: center;
    }
    .ms-cta-text {
        text-align: center;
    }
    .ms-footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }
    .ms-footer-bottom > div {
        text-align: center;
    }
    .ms-contact-line {
        text-align: center;
        word-break: break-word;
        margin-bottom: 0.5rem;
    }
    .ms-contact-line:last-child {
        margin-bottom: 0;
    }
    .ms-legal-links {
        text-align: center;
        padding-left: 0;
    }
    .ms-legal-links li {
        margin-bottom: 0.5rem;
    }
    .ms-legal-links li:last-child {
        margin-bottom: 0;
    }
}