/* General Styles */
:root {
    --primary-color: #B70F11;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    padding-top: 80px !important;
    margin-top: 0 !important;
}

html {
    scroll-padding-top: 80px;
}

/* Header Styles */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.navbar {
    background: white !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
}

.navbar-light {
    background: white !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.site-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: url('../images/hero.jpeg') center center/cover no-repeat;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 0;
    position: relative;
    margin: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
}

.hero-title {
    color: #2c3e50;
}

.hero-subtitle {
    color: #4a5568;
}

.hero-section .row {
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.hero-section .col-lg-5 {
    flex: 1;
    max-width: 100%;
}

/* New Search Container Design */
.search-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    color: #6c757d;
    font-size: 16px;
    z-index: 2;
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    height: 52px;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    background: #ffffff;
}

.find-jobs-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a0d0f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 52px;
    min-width: 140px;
    white-space: nowrap;
}

.find-jobs-button:hover {
    background: linear-gradient(135deg, #9a0d0f 0%, #7a0a0c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 15, 17, 0.3);
}

.search-checkboxes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-checkboxes label:hover {
    color: var(--primary-color);
}

.search-checkboxes input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Job Categories */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: inherit;
    text-decoration: none;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #9a0d0f 100%);
    color: white;
}

.category-card h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Job Cards */
.job-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.job-card .company-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.job-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.job-card h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-card h5 a:hover {
    color: var(--primary-color);
}

.job-card .company-name {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.job-card .job-meta i {
    margin-right: 0.3rem;
}

.job-card .job-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.job-card .job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.job-card .salary {
    color: var(--success-color);
    font-weight: 600;
}

.job-card .posted-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.badge-featured {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Feature Boxes */
.feature-box {
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon .text-primary {
    color: var(--primary-color) !important;
}

/* Footer */
.footer {
    background: #212529;
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .find-jobs-button {
        width: 100%;
    }
    
    .search-checkboxes {
        gap: 1rem;
        justify-content: flex-start;
    }
    
    .search-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .container {
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    .hero-section .row {
        flex-direction: column;
    }
    
    .hero-section .col-lg-6 {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    
    .search-container {
        max-width: 100%;
    }
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
