:root { --primary: #004a99; --secondary: #333; --accent: #00a8e8; --bg-light: #ffffff; --bg-grey: #f4f7f9; --text-dark: #2c3e50; --text-light: #546e7a; --white: #ffffff; --black: #000000; --border-color: #eeeeee; --shadow: rgba(0,0,0,0.05); --card-bg: var(--white); }
body.dark-theme { --bg-light: #0a0a0a; --bg-grey: #121212; --card-bg: #1a1a1a; --text-dark: #ffffff; --text-light: #a0a0a0; --primary: #ffffff; --accent: #f0f0f0; --border-color: #262626; --shadow: rgba(0,0,0,0.8); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
}
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); line-height: 1.7; background-color: var(--bg-light); transition: background 0.3s ease, color 0.3s ease; scroll-behavior: smooth; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--primary); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.grey-bg { background-color: var(--bg-grey); }
.top-nav { background: var(--bg-light); border-bottom: 2px solid var(--border-color); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: bold; display: flex; align-items: center; }
.logo .logo-part1 { color: var(--text-dark); }
.logo .logo-part2 { color: var(--primary); margin-left: 5px; }
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 25px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: color 0.3s; }
.nav-links a.active, .nav-links a:hover { color: var(--primary); }
.theme-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-dark); display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.theme-btn:hover { transform: rotate(15deg); color: var(--primary); }
.btn-main { background: var(--primary); color: var(--bg-light); padding: 12px 25px; text-decoration: none; border-radius: 4px; display: inline-block; font-weight: bold; border: 2px solid var(--primary); transition: 0.3s; cursor: pointer; }
body.dark-theme .btn-main { background: var(--white); color: #000; border-color: var(--white); }
.hero-minimal { padding: 100px 0 60px; text-align: center; }
.badge { background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }
.hero-minimal h1 { font-size: 3.5rem; color: var(--text-dark); margin: 20px 0; }
.highlight { color: var(--primary); position: relative; }
.filter-wrapper { display: flex; justify-content: center; margin-bottom: 10px; }
.toggle-pill { background: var(--border-color); padding: 5px; border-radius: 50px; display: flex; }
.pill-btn { border: none; padding: 10px 25px; border-radius: 50px; cursor: pointer; background: transparent; font-weight: 600; color: var(--text-light); transition: 0.3s; }
.pill-btn.active { background: var(--card-bg); color: var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.career-stack { max-width: 800px; margin: 0 auto; }
.career-item { background: var(--card-bg); padding: 25px 35px; border-radius: 15px; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-color); transition: 0.3s; gap: 10px; }
.career-item:hover { border-color: var(--primary); transform: scale(1.02); background: var(--bg-light); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.career-info h3 { font-size: 1.2rem; margin-bottom: 5px; }
.career-info span { color: var(--text-light); font-size: 0.9rem; }
/* Updated Arrow Button - Rounded with Glowing Pulse */
.arrow-btn { 
    text-decoration: none; 
    color: white; /* Changed to white for better contrast on orange background */
    background: #ff4d00;
    padding: 10px 20px;
    border-radius: 30px; /* Makes it a pill-shaped box */
    font-weight: bold; 
    white-space: nowrap;
    margin-top: 5px; 
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; 
    transition: all 0.3s ease;
    /* Glowing pulse animation */
    animation: glow-pulse-orange 2s infinite;
}

.arrow-btn:hover {
    background: #e64600; /* Slightly darker on hover */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 5px 15px rgba(255, 77, 0, 0.4);
}

/* Glowing Pulse Animation for the Apply Button */
@keyframes glow-pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 77, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 0, 0);
    }
}
.form-container-modern { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; background: var(--card-bg); padding: 10px; border-radius: 30px; box-shadow: 0 20px 40px var(--shadow); }
.modern-inputs input, .modern-inputs select { padding: 15px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--bg-grey); color: var(--text-dark); }
.modern-hero { background: radial-gradient(circle at top right, var(--bg-grey), var(--bg-light)); padding: 120px 0 80px; }
.text-gradient { background: linear-gradient(90deg, #004a99, #00a8e8); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sub-tag { color: var(--primary); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }
.hero-stats { display: flex; gap: 40px; margin-top: 30px; }
.stat strong { font-size: 1.5rem; display: block; color: var(--primary); }
.stat span { font-size: 0.9rem; color: var(--text-light); }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.role-icon { width: 50px; height: 50px; background: var(--bg-grey); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; }
.form-card-glass { display: grid; grid-template-columns: 350px 1fr; background: var(--card-bg); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.form-sidebar { background: var(--primary); color: white; padding: 50px; }
.form-sidebar h3 { color: white; margin-bottom: 15px; }
.perks-list { margin-top: 30px; }
.perk { margin-bottom: 15px; font-size: 0.95rem; display: flex; align-items: center; gap: 12px; opacity: 0.9; }
.perk i { font-size: 0.8rem; background: rgba(255, 255, 255, 0.1); padding: 6px; border-radius: 50%; }
.main-form { padding: 50px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.custom-file-label { border: 2px dashed var(--border-color); padding: 30px; display: flex; flex-direction: column; align-items: center; border-radius: 12px; cursor: pointer; transition: 0.3s; }
.custom-file-label:hover { background: var(--bg-grey); border-color: var(--primary); }
.btn-primary-modern { background: var(--primary); color: white; padding: 15px 30px; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; width: 100%; }
body.dark-theme .form-card-glass { border: 1px solid var(--border-color); }
body.dark-theme .form-sidebar { background: #111111; border-right: 1px solid var(--border-color); }
body.dark-theme .form-sidebar h3 { color: var(--primary); }
body.dark-theme .perk i { color: var(--primary); background: rgba(0, 74, 153, 0.2); }
body.dark-theme .custom-file-label { background: #121212; border: 2px dashed #333; }
body.dark-theme .custom-file-label:hover { border-color: var(--primary); background: #1a1a1a; }
body.dark-theme .main-form input, body.dark-theme .main-form select { background: #0f0f0f; border-color: #333; color: #ffffff; }
@media (max-width: 900px) { .form-card-glass { grid-template-columns: 1fr; } .hero-stats { justify-content: center; } .filter-header { flex-direction: column; gap: 20px; } }
@media (max-width: 768px) { .nav-links li { margin-left: 15px; } .form-container-modern { grid-template-columns: 1fr; padding: 30px; } .hero-minimal h1 { font-size: 2.5rem; } }
.benefit-card {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: 0.3s;
}
.benefit-card:hover { transform: translateY(-10px); }
.benefit-card i { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.main-footer { 
    background: var(--bg-grey); 
    padding: 40px 0 0; 
    border-top: 1px solid var(--border-color); 
    margin-top: 30px; 
}

/* Brand Section: Top Aligned Left */
.footer-brand { 
    margin-bottom: 30px; 
    text-align: left; 
}

.footer-brand p { 
    color: var(--text-light); 
    font-size: 0.95rem; 
    margin-top: 5px; 
    max-width: 400px; 
}

/* Grid Layout: 1fr (Links), 1fr (Connect), 2fr (Map) */
.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr 2fr; 
    gap: 30px; 
    padding-bottom: 40px; 
    align-items: start; 
}

.footer-links h4, 
.footer-social h4 { 
    color: var(--text-dark); 
    margin-bottom: 20px; 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* Links with Icons */
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { 
    text-decoration: none; 
    color: var(--text-light); 
    transition: all 0.3s ease; 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.footer-links a i { 
    font-size: 0.85rem; 
    color: var(--primary); 
    width: 18px; 
    text-align: center; 
    opacity: 0.8; 
}

.footer-links a:hover { 
    color: var(--primary); 
    transform: translateX(5px); 
}

/* Social Icons (Premium Dark Look) */
.social-icons { display: flex; gap: 12px; }
.social-icons a { 
    width: 42px; 
    height: 42px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    color: var(--text-dark); 
    background: transparent; 
    transition: all 0.3s ease; 
    font-size: 1.1rem; 
}

.social-icons a:hover { 
    transform: translateY(-5px); 
    color: var(--white); 
    border-color: transparent; 
}

.icon-whatsapp:hover { background: #25D366; box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3); }
.icon-email:hover { background: #EA4335; box-shadow: 0 8px 15px rgba(234, 67, 53, 0.3); }
.icon-linkedin:hover { background: #0077B5; box-shadow: 0 8px 15px rgba(0, 119, 181, 0.3); }

/* Map Section */
.footer-map iframe { 
    border-radius: 15px; 
    filter: grayscale(1); 
    opacity: 0.8; 
    transition: 0.4s ease; 
}

.footer-map iframe:hover { 
    filter: grayscale(0); 
    opacity: 1; 
}

/* Bottom Bar */
.footer-bottom { 
    background: var(--bg-light); 
    padding: 25px 0; 
    text-align: center; 
    border-top: 1px solid var(--border-color); 
}

.footer-bottom p { 
    color: var(--text-light); 
    font-size: 0.85rem; 
    opacity: 0.8; 
}

/* Responsive Logic */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-map { grid-column: span 2; }
}

@media (max-width: 768px) { 
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; } 
    .footer-brand { text-align: center; }
    .footer-brand p { margin: 5px auto; }
    .footer-links a { justify-content: center; }
    .social-icons { justify-content: center; }
    .footer-map { grid-column: span 1; }
}

/* Dark Theme Polish */
body.dark-theme .footer-bottom { background: #050505; }
body.dark-theme .social-icons a { background: rgba(255, 255, 255, 0.05); }
body.dark-theme .footer-map iframe { filter: grayscale(1) invert(90%) contrast(90%); }
.main-form{padding:40px}
.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:10px}
.form-group{margin-bottom:20px}
.form-group label{display:block;margin-bottom:8px;font-weight:600;font-size:0.9rem;color:var(--text-dark)}
.main-form input,.main-form select{width:100%;padding:14px 16px;border:1px solid var(--border-color);border-radius:10px;background:var(--bg-light);color:var(--text-dark);font-family:inherit;font-size:0.95rem;transition:all 0.3s ease;outline:none;appearance:none}
.main-form input:focus,.main-form select:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(0,74,153,0.1);background:var(--white)}
.main-form select{background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 15px center;background-size:15px;padding-right:40px;cursor:pointer}
body.dark-theme .main-form input,body.dark-theme .main-form select{background:#121212;border-color:#333}
body.dark-theme .main-form input:focus,body.dark-theme .main-form select:focus{background:#1a1a1a;box-shadow:0 0 0 4px rgba(255,255,255,0.05)}
@media (max-width:600px){.input-grid{grid-template-columns:1fr;gap:0}}

/* JD Button with Pulse */
.pulse-jd-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: pulse-blue 2s infinite;
}

.pulse-jd-btn:hover {
    background: var(--primary);
    color: white;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(184, 77, 61, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 74, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 74, 153, 0); }
}

/* Metadata Spacing (The Production • On-site line) */
.meta-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 8px 0;
}

.meta-tags span:nth-child(even) {
    color: var(--primary);
    font-weight: bold;
}
/* Expandable JD Container */
.jd-content {
    max-height: 0;
    overflow: hidden;
    /* Transition all properties together for a single smooth motion */
    transition: max-height 0.5s ease-in-out, 
                margin-top 0.5s ease-in-out, 
                opacity 0.3s ease-in-out,
                border 0.5s ease-in-out;
    background: rgba(255, 77, 0, 0.05);
    border-radius: 12px;
    margin-top: 0; /* Starts at 0 */
    border: 1px solid transparent; /* Keeps border space reserved to prevent jumping */
    opacity: 0;
}

.jd-content.active {
    max-height: 1000px; 
    margin-top: 15px; /* Slides down with height */
    border: 1px solid rgba(255, 77, 0, 0.2);
    opacity: 1;
}

/* Inner Content Styling */
.jd-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jd-inner p {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.jd-inner strong {
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
}

/* Dark Theme Adjustments */
body.dark-theme .jd-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .jd-inner p {
    color: #ccc;
}

body.dark-theme .jd-inner strong {
    color: #ff4d00; /* Softer blue for dark background */
}

body.dark-theme .pulse-jd-btn {
    border-color: #ff4d00;
    color: #ff4d00;
}

/* --- VARIABLES & CORE --- */
:root { 
    --primary: #004a99; --secondary: #333; --accent: #00a8e8; --bg-light: #ffffff; 
    --bg-grey: #f4f7f9; --text-dark: #2c3e50; --text-light: #546e7a; --white: #ffffff; 
    --black: #000000; --border-color: #eeeeee; --shadow: rgba(0,0,0,0.05); --card-bg: var(--white); 
}

body.dark-theme { 
    --bg-light: #0a0a0a; --bg-grey: #121212; --card-bg: #1a1a1a; --text-dark: #ffffff; 
    --text-light: #a0a0a0; --primary: #ffffff; --accent: #f0f0f0; --border-color: #262626; 
    --shadow: rgba(0,0,0,0.8); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text-dark); line-height: 1.7; background-color: var(--bg-light); transition: background 0.3s ease; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.grey-bg { background-color: var(--bg-grey); }

/* --- LOGO LOGIC (MOBILE SHORTENING) --- */
.logo-short { display: none; } /* Hidden by default on Desktop */

@media (max-width: 480px) {
    .logo-full { display: none; }
    .logo-short { display: flex; align-items: center; }
}

.logo { font-size: 1.8rem; font-weight: bold; display: flex; align-items: center; }
.logo .logo-part1 { color: var(--text-dark); }
.logo .logo-part2 { color: var(--primary); margin-left: 5px; }

/* --- NAVIGATION --- */
.top-nav { background: var(--bg-light); border-bottom: 2px solid var(--border-color); padding: 15px 0; position: sticky; top: 0; z-index: 100; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }
.nav-links a.active { color: var(--primary); }

/* --- JOB CARDS --- */
.career-stack { max-width: 800px; margin: 0 auto; }
.career-item { 
    background: var(--card-bg); padding: 25px; border-radius: 15px; margin-bottom: 20px; 
    display: flex; justify-content: space-between; align-items: center; 
    border: 1px solid var(--border-color); transition: 0.3s; gap: 15px; 
}
.career-item:hover { border-color: var(--primary); transform: translateY(-3px); }

/* Apply Button (Arrow) */
.arrow-btn { 
    text-decoration: none; color: white; background: #ff4d00; padding: 10px 22px; 
    border-radius: 30px; font-weight: bold; white-space: nowrap; 
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; 
    animation: glow-pulse-orange 2s infinite; 
}

/* --- JD EXPANDABLE --- */
.jd-content { 
    max-height: 0; overflow: hidden; opacity: 0; transition: all 0.4s ease; 
    background: rgba(0, 74, 153, 0.03); border-radius: 12px; 
}
.jd-content.active { max-height: 1000px; opacity: 1; margin-top: 15px; border: 1px solid var(--border-color); }
.jd-inner { padding: 20px; }

/* --- FORM LAYOUT --- */
.form-card-glass { 
    display: grid; grid-template-columns: 350px 1fr; 
    background: var(--card-bg); border-radius: 24px; overflow: hidden; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); 
}
.form-sidebar { background: var(--primary); color: white; padding: 40px; }
.main-form { padding: 40px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* --- FOOTER --- */
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 30px; padding-bottom: 40px; }

/* =============================================
   MOBILE-FRIENDLY RESPONSIVE OVERRIDES
   ============================================= */

@media (max-width: 992px) {
    .form-card-glass { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-map { grid-column: span 2; }
}

@media (max-width: 768px) {
    .section { padding: 40px 0; }
    
    /* Nav Adjustments */
    .logo { font-size: 1.4rem; }
    .nav-links li { margin-left: 10px; }

    /* Stack Job Cards vertically */
    .career-item { flex-direction: column; align-items: flex-start; text-align: left; }
    .arrow-btn { width: 100%; justify-content: center; margin-top: 10px; }
    
    /* Stats & Benefits */
    .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
    .benefits-grid { grid-template-columns: 1fr !important; }

    /* Form spacing */
    .input-grid { grid-template-columns: 1fr; gap: 0; }
    .main-form { padding: 25px; }
    .form-sidebar { padding: 30px; text-align: center; }
    .perk { justify-content: center; }

    /* Footer adjustments */
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links a { justify-content: center; }
    .social-icons { justify-content: center; }
    .footer-map { grid-column: span 1; }
}

@media (max-width: 480px) {
    .hero-minimal h1 { font-size: 2.2rem; }
    .pill-btn { padding: 10px 15px; font-size: 0.85rem; }
    .career-info h3 { font-size: 1.1rem; }
    .meta-tags { flex-wrap: wrap; gap: 5px; }
}

/* --- ANIMATIONS --- */
@keyframes glow-pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(255, 77, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 0, 0); }
}