/* ====================================
   Careers Page Styles
   ==================================== */

:root {
    /* Core Brand Colors */
    --color-primary-blue: #0A355B;
    --color-primary-teal: #137374;
    --color-teal-light: #78C6C4;
    --color-accent-green: #98D29B;
    --color-accent-yellow: #FDBF49; 
    --color-yellow-light: #FED992; 
    --color-accent-coral: #E88773;
    --color-coral-light: #FAE7E3;
    
    /* Text Colors */
    --color-dark-text: #032137;
    --color-gray-text: #434343;
    --color-light-gray: #828282;
    --color-white: #ffffff;
    
    /* Backgrounds */
    --bg-teal-20: rgba(120, 198, 196, 0.2);
    --bg-green-20: rgba(152, 210, 155, 0.2);
    --bg-yellow-20: rgba(254, 217, 146, 0.2);
    --bg-coral-20: rgba(232, 135, 115, 0.2);
    
    /* Fonts */
    --font-heading: 'Figtree', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Nunito', sans-serif; /* Fallback */
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-dark-text);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 100px;
    position: relative;
    z-index: 1; /* Above decorative elements */
}

/* ====================================
   Header (Standard)
   ==================================== */
.header-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 100px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.header-menu.hidden { transform: translateY(-100%); opacity: 0; }
.header-menu.visible { transform: translateY(0); opacity: 1; }

.logo {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 30px;
    color: var(--color-primary-blue);
    display: inline-flex;
    gap: 6px;
}

.logo img {
    height: 120px !important;
    width: auto;
}

/* Logo Animation */
.logo-rn {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background-color: transparent;
    color: var(--color-primary-blue);
    transition: background-color 0.3s ease, color 0.3s ease;
    animation: rnHighlight 2s ease-in-out infinite;
}

.logo-analytics {
    display: inline-block;
    padding: 2px 0;
    color: var(--color-primary-blue);
    transition: opacity 0.3s ease;
    animation: analyticsHighlight 2s ease-in-out infinite;
}

@keyframes rnHighlight {
    0%, 100% {
        background-color: transparent;
        color: var(--color-primary-blue);
    }
    25%, 50% {
        background-color: var(--color-primary-blue);
        color: #fff;
    }
}

@keyframes analyticsHighlight {
    0%, 50% {
        opacity: 0.6;
    }
    75%, 100% {
        opacity: 1;
    }
}

.nav-links { display: flex; gap: 40px; }

.mobile-nav-only {
    display: none !important;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-primary-blue);
    transition: color 0.3s;
}
.nav-links a.active, .nav-links a:hover { color: var(--color-primary-teal); }

/* ====================================
   Hero Section
   ==================================== */
.careers-hero {
    padding-top: clamp(180px, 20vh, 220px); /* Made fluid and increased */
    padding-bottom: 50px; /* Reduced from 80px */
    text-align: center;
    position: relative;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 60px; /* Reduced from 70px */
    line-height: 1.2;
    color: var(--color-dark-text);
    max-width: 1016px;
    margin: 0 auto 20px; /* Reduced margin */
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 24px; /* Reduced from 30px */
    line-height: 1.4;
    color: var(--color-gray-text);
    max-width: 881px;
    margin: 0 auto;
}

/* ====================================
   Current Opportunities
   ==================================== */
.section-opportunities {
    margin-bottom: 60px; /* Reduced from 100px */
    position: relative;
}

.opp-container {
    border: 1px solid var(--color-yellow-light);
    border-radius: 40px;
    background: var(--color-white);
    padding: 40px; /* Reduced from 60px */
    min-height: auto; 
    /* text-align: center; - Keep text centered from headers */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px; /* Reduced from 45px */
    line-height: 1.3;
    color: var(--color-dark-text);
    text-align: center;
    margin-bottom: 20px; /* Reduced from 40px */
}

.opportunities-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px; /* Reduced from 30px */
    line-height: 1.5;
    color: var(--color-gray-text);
    text-align: center;
    max-width: 875px;
    margin-bottom: 20px; /* Reduced */
}


/* ====================================
   Talent Pool Section
   ==================================== */
.section-talent-pool {
    margin-bottom: 80px; /* Reduced from 150px */
}

/* Using same section title style */
.talent-header-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px; /* Reduced from 45px */
    color: var(--color-dark-text);
    text-align: center;
    margin-bottom: 10px; /* Reduced from 20px */
}

.talent-sub-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px; /* Reduced from 30px */
    line-height: 1.5;
    color: var(--color-gray-text);
    text-align: center;
    max-width: 875px;
    margin: 0 auto 40px; /* Reduced layout margin */
}

.talent-form-container {
    background: var(--bg-teal-20);
    border: 1px solid var(--color-teal-light);
    border-radius: 40px;
    padding: 40px; /* Reduced from 80px 60px */
}

.talent-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 30px; /* Reduced from 60px */
    margin-bottom: 30px; /* Reduced from 60px */
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced from 15px */
}

.form-group.full-width {
    width: 100%;
    margin-bottom: 30px; /* Reduced from 60px */
}

.form-group label {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 16px; /* Reduced from 18px */
    color: var(--color-primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    height: 50px; /* Reduced from 77px */
    border: 1px solid var(--color-teal-light);
    border-radius: 20px;
    padding: 0 20px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-gray-text);
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--color-primary-teal);
    background: #fff;
}

textarea.form-input {
    height: 120px; /* Reduced from 194px */
    padding-top: 15px;
    resize: none;
}

/* File Upload Area */
.file-upload-area {
    width: 100%;
    height: 150px; /* Reduced from 231px */
    background: #F8F8F8; /* Figma #f8f8f8 */
    border: 1px dashed var(--color-teal-light);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.file-upload-area:hover {
    background: #fff;
}

.upload-text-main {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 25px;
    color: var(--color-light-gray);
}

.upload-text-sub {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    color: var(--color-light-gray);
}

/* Submit Button */
.submit-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px; /* Reduced from 20px */
}

.submit-btn {
    width: 250px; /* Reduced from 367px */
    height: 60px; /* Reduced from 87px */
    background: var(--color-primary-teal);
    border-radius: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px; /* Reduced from 30px */
    color: var(--color-white);
}

.submit-arrow {
    width: auto;
    height: auto;
    font-size: 20px;
    color: #fff;
}


/* ====================================
   Decorative Elements
   ==================================== */
.decorative-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 1;
}

/* Yellow line */
.deco-line-yellow {
    position: absolute;
    left: 10%; /* Fluid */
    top: 40vh; /* Responsive */
    width: 83px;
    height: 12px;
    background: var(--color-accent-yellow);
    border-radius: 6px;
}

/* Coral dots/line group top */
.deco-group-top {
    position: absolute;
    left: 20%; 
    top: 15vh; /* Responsive */
    width: 50px;
    height: 50px;
    background-image: url('../assets/icons/Group 17.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Green star */
.deco-star-green {
    position: absolute;
    right: 20%; 
    left: auto; 
    top: 15%;
    width: 50px;
    height: 50px;
    background-image: url('../assets/icons/Star 27.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Group bottom */
.deco-group-bottom {
    position: absolute;
    left: 20%;
    bottom: 19%; /* Responsive */
    width: 50px;
    height: 50px;
    background-image: url('../assets/icons/Star 7 teal.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* ====================================
   Footer (Standard)
   ==================================== */
.footer {
    background-color: var(--color-primary-blue);
    padding: 30px 50px 20px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.footer-logo-section { flex-shrink: 0; }
.footer-logo { width: 100px; height: auto; }

.footer-links-container {
    display: flex;
    gap: 25px;
    flex: 1;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 90px;
}

.footer-header {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-white);
    transition: opacity 0.3s;
}
.footer-header:hover { opacity: 0.8; }

.footer-detail { display: flex; flex-direction: column; }
.contact-label { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--color-white); line-height: 1.4; margin: 0; }
.contact-value { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--color-white); line-height: 1.4; margin: 0;     text-decoration: none;
}
a.contact-value:hover {
    text-decoration: underline;
}

.linkedin-link { display: inline-block; }
.linkedin-link img { width: 20px; height: 20px; }

.copyright {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--color-white);
    text-align: right;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .container { padding: 0 50px; }
    .hero-title { font-size: 50px; line-height: 1.2; }
    .form-row { flex-direction: column; gap: 30px; margin-bottom: 30px; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}
.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary-blue);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }


@media (max-width: 768px) {
    .header-menu {
        padding: 20px;
    }
    
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
        box-shadow: none;
        padding-top: 60px;
        gap: 30px;
        z-index: 999;
    }
    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
    }

    .nav-links.active .mobile-nav-only {
        display: block !important;
    }
    
    .mobile-nav-logo {
        width: 60px;
        height: auto;
    }

    .nav-links.active .mobile-nav-btn {
        background-color: var(--color-primary-teal) !important;
        color: #fff !important;
        width: 250px !important;
        height: 60px !important;
        font-size: 20px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
        border-radius: 25px;
    }

    .nav-links a {
        font-size: 24px;
    }

    .hero-title { font-size: 26px; line-height: 1.3; }
    .container { padding: 0 20px; }
    .opp-container, .talent-form-container { padding: 40px 20px; }
    
    /* Remove opacity from decorative elements so they show full color */
    .decorative-container { opacity: 1; }
    
    /* Fix fixed-width elements */
    .opp-placeholder-image,
    .opp-text-content,
    .opp-divider,
    .input-wrapper,
    .form-group,
    .submit-btn {
        width: 100% !important;
        max-width: 100%;
    }
    
    .opp-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .why-title,
    .roles-title,
    .talent-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .opp-title,
    .role-title {
        font-size: 20px;
        line-height: 1.4;
    }
    
    .opp-text,
    .role-desc {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .hero-section {
        padding: 100px 20px 60px;
    }
    
    .footer {
        padding: 40px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .footer-column {
        width: auto;
        align-items: flex-start;
        text-align: left;
    }

    /* Alignments for 2-column grid */
    .footer-column:nth-child(odd) {
        align-items: flex-start;
        text-align: left;
    }

    .footer-column:nth-child(even) {
        align-items: flex-end;
        text-align: right;
    }
}

/* ====================================
   Mobile Strict Implementation (max-width: 480px)
   ==================================== */
@media (max-width: 480px) {
    
    /* 1. Header & Hero */
    .careers-hero {
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .header-menu { padding: 10px 20px; }
    .logo img {
        height: 50px !important;
    }

    .hero-title {
        font-family: 'Figtree', sans-serif;
        font-weight: 700;
        font-size: 40px !important;
        line-height: 50px !important;
        color: #032137;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-family: 'Nunito', sans-serif;
        font-weight: 400;
        font-size: 20px !important;
        line-height: 30px !important;
        color: #434343;
        padding: 0 10px;
    }

    /* 2. Opportunities Section */
    .section-opportunities-text {
        margin-bottom: 40px !important;
    }

    .section-title {
        font-family: 'Figtree', sans-serif;
        font-weight: 700;
        font-size: 25px !important;
        line-height: 35px !important;
        color: #032137;
    }

    .opportunities-text {
        font-family: 'Nunito', sans-serif;
        font-weight: 500;
        font-size: 15px !important;
        line-height: 25px !important;
        color: #434343;
        padding: 0 10px;
    }

    /* 3. Talent Pool Form */
    .section-talent-pool {
        margin-bottom: 60px;
    }

    .talent-form-container {
        padding: 30px 20px !important;
    }

    .talent-header-text {
        font-family: 'Figtree', sans-serif;
        font-weight: 700;
        font-size: 25px !important;
        line-height: 35px !important;
        color: #032137;
    }

    .talent-sub-text {
        font-family: 'Nunito', sans-serif;
        font-weight: 500;
        font-size: 15px !important;
        line-height: 25px !important;
        color: #434343;
        margin-bottom: 30px !important;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-group.full-width {
        margin-bottom: 20px;
    }

    .form-group label {
        font-family: 'Nunito', sans-serif;
        font-weight: 800 !important;
        font-size: 15px !important;
        line-height: 35px !important;
        color: #0A355B;
        text-transform: uppercase;
        margin-bottom: 5px;
    }

    .form-input {
        font-family: 'Nunito', sans-serif;
        font-weight: 400 !important;
        font-size: 15px !important;
        color: #434343;
        height: 50px;
        line-height: normal; /* Reset line-height to allow text vertical centering if needed or normal input behavior */
    }
    
    textarea.form-input {
        height: 120px;
        padding: 15px;
    }

    /* File Upload Specifics */
    .upload-text-main {
        font-family: 'Nunito', sans-serif;
        font-weight: 400 !important;
        font-size: 15px !important;
        line-height: 35px !important;
        color: #434343;
    }
    
    .upload-text-sub {
        font-family: 'Nunito', sans-serif;
        font-weight: 400 !important;
        font-size: 15px !important;
        line-height: 20px !important;
        color: #434343;
    }

    /* Submit Button */
    .submit-btn-wrapper {
        margin-top: 10px;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        height: auto;
        min-height: 55px; /* Based on line-height */
    }

    .submit-btn span {
        font-family: 'Figtree', sans-serif;
        font-weight: 700 !important;
        font-size: 30px !important;
        line-height: 55px !important;
        color: white;
    }

    .arrow-icon {
        width: 24px;
        height: 24px;
        margin-left: 10px;
    }

    /* 4. Footer Mobile Typography overrides */
    .footer { padding: 20px !important; }
    .footer-logo-section { display: none !important; }
    
    .footer-content, .footer-links-container { 
        display: flex !important; /* Override grid from tablet media query */
        flex-direction: column !important; 
        align-items: center !important; 
        text-align: center !important; 
        gap: 20px !important;
    }
    
    .footer-column {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        min-width: unset !important;
    }
    
    .footer-column:nth-child(odd), .footer-column:nth-child(even) {
        align-items: center !important;
        text-align: center !important;
    }

    .footer-detail {
        align-items: center !important;
    }

    .footer-header {
        font-family: 'Nunito', sans-serif;
        font-weight: 700 !important;
        font-size: 18px !important;
        color: white !important;
        display: block;
        margin-bottom: 5px;
    }
    
    .contact-label {
        font-family: 'Nunito', sans-serif;
        font-weight: 700 !important;
        font-size: 18px !important;
        color: white !important;
        margin: 0;
    }
    
    .contact-value {
        font-family: 'Nunito', sans-serif;
        font-weight: 400 !important;
        font-size: 18px !important;
        color: white !important;
    }

    .copyright {
        font-family: 'Nunito', sans-serif;
        font-weight: 400 !important;
        font-size: 14px !important;
        color: white !important;
        text-align: center !important;
    }

    /* Yellow line */
    .deco-line-yellow {
        position: absolute;
        left: 10%;
        top: 400px;
        width: 80px;
        height: 8px;
    }

    /* Coral dots/line group top */
    .deco-group-top {
        position: relative;
        left: 10%;
        top: 100px;
        width: 40px;
        height: 40px;
    }

    /* Green star */
    .deco-star-green {
        position: absolute;
        right: 15%;
        top: 9%;
        width: 40px;
        height: 40px;
    }

    /* Group bottom */
    .deco-group-bottom {
        display: none;
    }

    .decorative-container { opacity: 1; }

}
