* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* HERO SECTION */
#hero-section {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

#hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6c3483 0%, #9966cc 100%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1200&h=400&fit=crop') center/cover;
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-description {
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.6;
}

/* STATS SECTION */
#stats-section {
    padding: 60px 20px;
    background-color: #f8f9fa;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #6c3483;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

#job-container {
    width: 100%;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: center;
    gap: 25px;
    min-height: 70vh;
    background-color: #f4f6f8;
}

.job-card {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-right: 5px solid #2bb0a6;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.job-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.job-card .job-company {
    font-size: 14px;
    color: #2bb0a6;
    font-weight: 600;
    margin-bottom: 12px;
}

.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.job-card .meta-item {
    font-size: 12px;
    background-color: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    color: #666;
}

.job-card .salary {
    font-weight: 600;
    color: #27ae60;
    background-color: #e8f5f0;
}

.job-card .job-type {
    font-weight: 600;
    color: #2bb0a6;
    background-color: #e8f5f0;
}

.job-card .job-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.job-card .job-info {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}

#button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin: 30px 0;
    padding: 0 20px;
    background-color: #f4f6f8;
}

#all_jobs,
#add_job {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: 2px solid #2bb0a6;
    background-color: #ffffff;
    color: #1f7f7a;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

#all_jobs:hover,
#add_job:hover {
    background-color: #2bb0a6;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(43, 176, 166, 0.3);
}

#all_jobs:active,
#add_job:active {
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #333;
    margin: 0;
}

.close-btn {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2bb0a6;
    box-shadow: 0 0 5px rgba(43, 176, 166, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #2bb0a6;
    color: white;
}

.btn-primary:hover {
    background-color: #239b92;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Tablet Styles */
@media (max-width: 1024px) {
    #job-container {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        padding: 25px;
        gap: 20px;
    }
    
    #button-group {
        padding: 0 15px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    #job-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        padding: 20px;
        gap: 15px;
    }
    
    .job-card {
        padding: 20px;
    }
    
    .job-card h3 {
        font-size: 16px;
    }
    
    .job-card .job-company {
        font-size: 13px;
    }
    
    .job-card .job-meta {
        gap: 8px;
    }
    
    .job-card .meta-item {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    #button-group {
        flex-direction: column;
        padding: 0 15px;
        gap: 10px;
    }
    
    #all_jobs,
    #add_job {
        width: 100%;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    #job-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 12px;
    }
    
    .job-card {
        padding: 15px;
    }
    
    .job-card h3 {
        font-size: 15px;
    }
    
    .job-card .job-company {
        font-size: 12px;
    }
    
    .job-card .job-description {
        font-size: 12px;
    }
    
    .job-card .meta-item {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    #button-group {
        padding: 0 10px;
        gap: 8px;
        margin: 20px 0;
    }
    
    #all_jobs,
    #add_job {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .modal-content {
        width: 98%;
        padding: 15px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}
