/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-blue: #0056b3;       
    --primary-magenta: #c2185b;    
    --gradient-main: linear-gradient(135deg, var(--primary-blue), var(--primary-magenta));
    --header-gradient: linear-gradient(90deg, #051937 0%, var(--primary-blue) 40%, var(--primary-magenta) 100%);
    --primary-dark: #0C0D0E;
    --text-grey: #4a4a4a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --hot-color: #ff4757;
    --hot-gradient: linear-gradient(45deg, #ff4757, #ffa502);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--primary-dark); line-height: 1.6; background-color: var(--light-bg); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- HEADER --- */
header {
    background: var(--header-gradient);
    color: var(--white);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img { max-height: 55px; width: auto; display: block; }
nav ul { display: flex; gap: 30px; }
nav a { font-weight: 500; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
nav a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: white; }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(5, 25, 55, 0.8), rgba(194, 24, 91, 0.6)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&q=80');
    background-size: cover; background-position: center; height: 50vh;
    display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); padding: 0 20px;
}
.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; font-weight: 700; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto; opacity: 0.95; }

/* --- CONTENT CONTAINER --- */
.container { max-width: 1100px; margin: 0 auto; padding: 4rem 20px; }
.intro { text-align: center; margin-bottom: 3rem; }
.intro h2 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--primary-dark); position: relative; display: inline-block; }
.intro h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary-magenta); margin: 10px auto 0; border-radius: 2px; }
.intro p { color: var(--text-grey); max-width: 700px; margin: 0 auto; }

/* --- LANDSCAPE JOB CARDS --- */
.jobs-section { margin-bottom: 5rem; }
.jobs-grid { 
    display: flex; 
    flex-direction: column; /* Stack the landscape cards vertically */
    gap: 1.5rem; 
}
.job-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    border-left: 6px solid var(--primary-magenta);
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: flex; /* This makes the left and right sides sit horizontally */
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
}
.job-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
}

/* Left side of the card (Title and Meta) */
.job-card-left {
    flex: 0 0 320px; /* Fixed width so all titles line up neatly */
}
.job-card h3 { 
    color: var(--primary-blue); 
    margin-bottom: 0.8rem; 
    font-size: 1.4rem;
    line-height: 1.3;
}
.job-card .meta { 
    font-size: 0.85rem; 
    color: #666; 
    margin-bottom: 1.5rem; 
    display: flex; 
    flex-wrap: wrap;
    gap: 10px; 
}
.job-card .meta span { 
    background: #f0f4f8; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-weight: 500;
}

.btn-apply-sm {
    display: inline-block;
    background: var(--gradient-main);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-apply-sm:hover { opacity: 0.9; transform: scale(1.02); }

/* Right side of the card (Description) */
.job-card-right {
    flex: 1; /* Takes up the remaining space */
}
.job-description {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.8;
}

/* 3-Line Truncation for long descriptions */
.job-description.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    cursor: pointer;
    padding: 0;
}
.btn-read-more:hover { text-decoration: underline; color: var(--primary-magenta); }

/* Hot Job Badge Styling */
.job-card.highlight { 
    border-left: 6px solid var(--hot-color); 
    background: #fffcfc;
}
.badge-hot {
    position: absolute; top: -12px; left: 20px; background: var(--hot-gradient); color: white;
    padding: 4px 15px; font-size: 0.75rem; font-weight: 700; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4); animation: pulse 2s infinite; z-index: 10;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255, 71, 87, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(255, 71, 87, 0.4); }
}

/* --- APPLICATION FORM --- */
.form-wrapper { background: var(--white); border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); overflow: hidden; border: 1px solid #eee; scroll-margin-top: 100px; }
.form-header { background: var(--gradient-main); color: var(--white); padding: 2.5rem; text-align: center; }
.form-header h3 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.form-header p { opacity: 0.9; }
.form-body { padding: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--primary-dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; background: #fdfdfd; transition: 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
    border-color: var(--primary-magenta); outline: none; box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.1);
}
.file-upload-wrapper {
    position: relative; border: 2px dashed var(--primary-blue); background: rgba(0, 86, 179, 0.02);
    padding: 25px; text-align: center; border-radius: 8px; cursor: pointer; transition: 0.3s;
}
.file-upload-wrapper:hover { background: rgba(0, 86, 179, 0.05); }
.file-upload-wrapper input[type="file"] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-label-text { color: var(--primary-blue); font-weight: 600; }
.file-name-display { margin-top: 10px; font-size: 0.85rem; color: var(--primary-magenta); font-weight: bold; }
.btn-submit {
    background: var(--gradient-main); color: var(--white); border: none; padding: 16px 30px;
    font-size: 1.1rem; font-weight: 600; border-radius: 8px; cursor: pointer; width: 100%; transition: opacity 0.3s; margin-top: 1rem;
}
.btn-submit:hover { opacity: 0.9; }

/* --- FOOTER --- */
footer { text-align: center; padding: 2rem; background: var(--primary-dark); color: #888; font-size: 0.9rem; margin-top: 3rem; }

/* --- RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; padding: 1rem; }
    nav ul { gap: 15px; font-size: 0.8rem; }
    .hero h1 { font-size: 2.2rem; }
    
    /* On mobile screens, collapse the landscape view back into a vertical stack so it fits the screen */
    .job-card { flex-direction: column; gap: 1.5rem; padding: 1.5rem; }
    .job-card-left { flex: auto; width: 100%; }
    .badge-hot { left: 10px; }

    .form-body { padding: 1.5rem; }
}