:root {
    --primary: #182848;
    --secondary: #4b6cb7;
    --accent: #3a7bd5;
    --light: #f5f7fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    margin-bottom: 40px;
}


.header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.return-home {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.return-home:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .return-home {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}


.company-logo {
    max-height: 120px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.company-description {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.company-description h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Horizontal Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.job-category {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.job-category h2 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.job-card {
    display: block;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent);
}

.job-card:hover {
    background-color: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.job-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

.view-details {
    color: var(--secondary);
    font-weight: 600;
}

/* Job Detail Page Styles */
.job-detail {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.job-header {
    margin-bottom: 25px;
}

.job-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 10px;
}

.job-description {
    margin-bottom: 30px;
    line-height: 1.7;
}

.section-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 25px 0 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light);
}

.requirements-list {
    padding-left: 20px;
    margin-bottom: 30px;
}

.requirements-list li {
    margin-bottom: 10px;
}

.apply-btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

footer {
    text-align: center;
    padding: 30px 0;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 50px;
    border-top: 1px solid #eee;
}

/* Mobile View Adjustments */
@media (max-width: 900px) {
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 40px; /* Increased gap between categories */
    }
    
    .job-category {
        margin-bottom: 0; /* Remove default margin */
    }
    
    .job-card {
        margin-bottom: 20px; /* Increased space between cards */
    }
}

@media (max-width: 768px) {
    header {
        padding: 40px 0 30px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .company-logo {
        max-height: 100px;
    }
    
    .job-title {
        font-size: 1.5rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    /* Additional mobile spacing */
    .company-description {
        margin-bottom: 30px;
        padding: 20px;
    }
    
    .job-category {
        padding: 20px;
    }
    
    .job-card {
        padding: 15px;
        margin-bottom: 15px;
    }
}

