/* Modern, Professional Styles */
:root {
    --primary: #0066cc;
    --secondary: #e6f2ff;
    --accent: #ff6b00;
    --dark: #333;
    --light: #f8f9fa;
    --success: #28a745;
    --danger: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header with Image Overlay - Image in HTML */
header {
    color: white;
    padding: 20px 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    min-height: 200px;
}

.header-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 50, 100, 0.8), rgba(0, 50, 100, 0.8));
    z-index: 2;
}

.header-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
}

.header-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
}

/* Left side - Logo and Navigation */
.logo-nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

/* Navigation - Positioned below logo on left */
.main-nav {
    width: auto;
}

.nav-links {
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 25px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--accent);
}

/* Quick Links for Other Job Categories - Positioned on right side */
.quick-job-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: 60px;
}

.quick-job-link {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.quick-job-link i {
    margin-right: 5px;
    font-size: 0.8rem;
}

.quick-job-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Mobile Menu Icons - Hidden by default on desktop */
nav .fa-bars,
nav .fa-times {
    display: none;
}

.nav-close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
    display: none;
}

/* Mobile Navigation Styles */
.nav-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.nav-header .fa-times {
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.mobile-logo i {
    margin-right: 8px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-nav-container {
        align-items: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .nav-close {
        display: block !important;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .quick-job-links {
        justify-content: center;
        width: 100%;
        margin-top: 20px;
    }
    
    nav .fa-bars,
    nav .fa-times {
        display: block;
        color: white;
        font-size: 22px;
        cursor: pointer;
        z-index: 1001;
        position: fixed;
        top: 20px;
        left: 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary);
        transition: left 0.3s ease;
        z-index: 1000;
        padding-top: 60px;
    }
    
    .nav-links.active {
        left: 0;
    }

    .nav-close {
        display: block !important;
    }
    
    .nav-links ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
        margin-top: 50px;
    }
    
    .nav-links ul li {
        margin: 15px 0;
    }
    
    .nav-links ul li a {
        color: white;
        font-size: 1rem;
        display: block;
        padding: 10px 0;
    }
    
    .nav-links ul li a.active {
        color: #ffcc00;
    }
    
    .fa-times {
        position: absolute;
        top: 20px;
        right: 20px;
        color: white !important;
        left: auto !important;
    }
}

@media (max-width: 480px) {
    .quick-job-links {
        gap: 10px;
    }
    
    .quick-job-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    nav ul {
        gap: 15px;
    }
}

/* Main Content */
main {
    padding: 40px 0;
    background: white;
    margin: 30px auto;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.page-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Job Card - Optimized Design */
.job-listings {
    max-width: 800px;
    margin: 0 auto;
}

.job-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    overflow: hidden;
    transition: var(--transition);
    content-visibility: auto;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.job-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    transition: background-color 0.2s;
}

.job-header:hover {
    background-color: #f9f9f9;
}

.job-main {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
}

.job-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: #555;
    margin: 18px 0;
    padding: 10px 0;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-salary {
    color: var(--accent);
    font-weight: 700;
    background: rgba(255, 107, 0, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.job-side {
    text-align: right;
    min-width: 120px;
}

.job-date, .job-closing {
    font-size: 0.85rem;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.job-closing {
    color: var(--accent);
    font-weight: 600;
    margin-top: 5px;
}

.job-details {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.job-card.expanded .job-details {
    max-height: 2000px;
    padding: 15px;
    border-top: 1px solid #eee;
}

.job-section {
    margin-bottom: 15px;
}

.section-title {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.section-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.job-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.apply-btn {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.apply-btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Footer Content - Homepage */
.footers-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footers-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footers-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
}

.footers-column p {
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.7;
}

.footers-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footers-links li {
    margin-bottom: 10px;
}

.footers-links a {
    color: #aaa;
    transition: var(--transition);
}

.footers-links a:hover {
    color: white;
    padding-left: 5px;
}

.footers-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .job-header {
        flex-direction: column;
    }
    
    .job-side {
        text-align: left;
        margin-top: 10px;
        width: 100%;
    }
    
    .job-meta {
        gap: 8px;
    }
    
    .footers-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footers-column h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .job-title {
        font-size: 1.1rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 5px;
    }
}

.intro-paragraph {
    background-color: var(--light);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--dark);
    border-left: 4px solid var(--primary);
}

/* Mobile Home Indicator */
.mobile-home-indicator {
    display: none;
}

@media (max-width: 576px) {
    .mobile-home-indicator {
        display: block;
        text-align: center;
        background: var(--accent);
        color: white;
        padding: 12px;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 25px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        animation: fadeIn 1s ease;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scam Alert Section */
.scam-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
    border-top: 4px solid var(--danger);
}

.scam-section h2 {
    color: var(--danger);
    margin-bottom: 25px;
    text-align: center;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.scam-section h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.scam-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.scam-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.red-flag {
    font-weight: 600;
    color: var(--danger);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.scam-description {
    color: #666;
    line-height: 1.7;
}

.warning-note {
    background-color: #fff3f3;
    border-left: 4px solid var(--danger);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(rgba(0, 50, 100, 0.8), rgba(0, 50, 100, 0.8));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* About Content Section */
.about-content {
    padding: 4rem 0;
}

.about-section {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.about-section h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.about-section p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background-color: var(--secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.value-card h3 {
    color: var(--dark);
    margin-bottom: 0.8rem;
}

/* Team Section */
.team-section {
    padding: 3rem 0;
    text-align: center;
}

.team-section h2 {
    color: var(--dark);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary);
}

.team-member h3 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #7f8c8d;
}

/* Contact Hero */
.contact-hero {
    background: linear-gradient(rgba(0, 50, 100, 0.8), rgba(0, 50, 100, 0.8));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Content */
.contact-content {
    padding: 4rem 0;
}

.contact-wrapper {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-wrapper h1 {
    color: var(--dark);
    margin-bottom: 2rem;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    font-size: 2rem;
}

.login-section {
    margin-bottom: 2.5rem;
}

.login-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.7;
}

.login-links {
    margin-top: 1.5rem;
}

.login-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
    transition: var(--transition);
}

.login-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.facebook-section {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
}

.facebook-section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.facebook-link {
    display: inline-block;
    background-color: #1877f2;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.facebook-link:hover {
    background-color: #166fe5;
}

.facebook-link i {
    margin-right: 8px;
}

/* Interview Tips Section */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tips-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary);
}

.tips-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tips-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

.tips-section h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.tips-list {
    list-style-type: none;
}

.tips-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
}

.tips-list li:hover {
    border-bottom-color: var(--primary);
}

.tips-list li:last-child {
    border-bottom: none;
}

.tip-number {
    background: linear-gradient(135deg, var(--primary), #4d94ff);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 102, 204, 0.2);
}

.tip-text {
    flex: 1;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Section Icons */
.section-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3.5rem;
    opacity: 0.1;
    color: var(--primary);
    z-index: 0;
}

/* Interview Section */
.interview-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
    border-top: 4px solid var(--accent);
}

.interview-section h2 {
    color: var(--accent);
    margin-bottom: 25px;
    text-align: center;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.interview-section h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.interview-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.interview-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.interview-question {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.interview-answer {
    color: #666;
    line-height: 1.7;
}

/* Provinces Section */
.provinces-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin-bottom: 40px;
}

.provinces-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.provinces-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.province-item {
    padding: 15px 20px;
    background: var(--secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.province-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.province-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
}

/* CV Section */
.cv-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
    border-top: 4px solid var(--accent);
}

.cv-section h2 {
    color: var(--accent);
    margin-bottom: 25px;
    text-align: center;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.cv-section h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.cv-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.cv-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cv-tip-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.cv-tip-content {
    color: #666;
    line-height: 1.7;
}

/* ==================== */
/* HOMEPAGE SPECIFIC STYLES */
/* ==================== */

/* Hero Section - Homepage */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(0, 68, 136, 0.9), rgba(0, 68, 136, 0.9)), 
                        url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: white;
    margin-bottom: 50px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease;
}

/* Search Form Styles */
.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background: var(--accent);
}

/* Mobile responsiveness for search form */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-form button {
        width: 100%;
    }
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 15px;
    border-radius: 50px;
    display: flex;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeIn 1.5s ease;
}

.search-container input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-container button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background: #e05d00;
    transform: translateY(-2px);
}

/* Job Postings Section - Homepage */
.job-postings-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.job-postings {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.job-posting {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.job-posting:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.job-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.job-posting h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.job-posting p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.job-footer span {
    color: var(--accent);
}

/* Categories Section - Homepage */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border-top: 3px solid var(--primary);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.category-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Why Choose Us Section - Homepage */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Testimonials - Homepage */
.testimonials {
    background: var(--secondary);
    padding: 60px 0;
    margin-bottom: 50px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 15px;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 10px;
    left: 20px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Call to Action - Homepage */
.cta {
    background: linear-gradient(rgba(0, 68, 136, 0.9), rgba(0, 68, 136, 0.9));
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.cta-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* Section Title - Homepage */
.section-home {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    position: relative;
    padding-bottom: 15px;
}

.section-home:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--accent);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* View All Button - Homepage */
.view-all {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
}

/* Sidebar - Homepage */
.sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.sidebar h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 12px;
}

.sidebar-links a {
    color: #666;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.sidebar-links a i {
    margin-right: 10px;
    color: var(--primary);
}

.sidebar-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Categories and Locations Grid Fix */
.sidebar-categories,
.sidebar-locations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.sidebar-category,
.sidebar-location {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-category:hover,
.sidebar-location:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-category i,
.sidebar-location i {
    margin-right: 10px;
    font-size: 14px;
    color: var(--accent);
    transition: color 0.3s ease;
    min-width: 16px;
    text-align: center;
}

.sidebar-category:hover i,
.sidebar-location:hover i {
    color: white;
}

.sidebar-category.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sidebar-category.active i {
    color: white;
}

/* Mobile Responsive Fix for Job Postings */
@media (max-width: 768px) {
    .job-postings-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2; /* This moves sidebar to bottom */
        margin-top: 30px;
    }
    
    .job-postings {
        order: 1; /* This ensures jobs stay on top */
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Ensure section title stays above everything */
    .section-title {
        order: 0;
    }
    
    .sidebar-categories,
    .sidebar-locations {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .sidebar-category,
    .sidebar-location {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .sidebar-card {
        padding: 15px;
    }
}

/* Responsive - Homepage */
@media (max-width: 992px) {
    .job-postings {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .search-container {
        flex-direction: column;
        border-radius: var(--border-radius);
    }
    
    .search-container input {
        margin-bottom: 10px;
        border-radius: var(--border-radius);
    }
    
    .search-container button {
        border-radius: var(--border-radius);
    }
    
    .job-postings {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Additional mobile optimization */
@media (max-width: 480px) {
    .sidebar-categories,
    .sidebar-locations {
        grid-template-columns: 1fr;
    }
    
    .sidebar-category,
    .sidebar-location {
        text-align: center;
        justify-content: center;
    }
    
    .sidebar-category i,
    .sidebar-location i {
        margin-right: 8px;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .job-actions, .sidebar, footer {
        display: none;
    }
    
    .job-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Additional styles for the homepage */

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--dark);
    font-weight: 600;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.resource-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.resource-icon {
    font-size: 2rem;
    color: var(--accent);
}

.resource-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.resource-content p {
    color: #666;
    margin-bottom: 15px;
}

.resource-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.resource-link:hover {
    color: var(--accent);
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* FAQ Container */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: var(--dark);
}

.faq-question:hover {
    background-color: var(--light);
    color: var(--primary);
}

.faq-question i {
    color: var(--primary);
    transition: var(--transition);
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-answer-content {
    padding: 0 25px 25px 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem;
}

/* FAQ Section Title Enhancement */
.section-home.faq-title {
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: var(--primary);
}

/* Additional FAQ styling for better visual hierarchy */
.faq-item.active .faq-question {
    background: var(--primary);
    color: white;
}

.faq-item.active .faq-question:hover {
    background: var(--primary);
    color: white;
}

/* ==================== */
/* RESPONSIVE FAQ STYLES */
/* ==================== */

@media (max-width: 768px) {
    .faq-question {
        padding: 18px 20px;
        font-size: 1rem;
    }
    
    .faq-answer-content {
        padding: 0 20px 20px 20px;
    }
    
    .sidebar-category {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .sidebar-category i {
        font-size: 1rem;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        padding: 0 18px 18px 18px;
    }
    
    .faq-answer-content p {
        font-size: 0.9rem;
    }
    
    .sidebar-categories {
        gap: 6px;
    }
}

/* Footer Content - Homepage */
.footers-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footers-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footers-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--accent);
    bottom: 0;
    left: 0;
}

.footers-column p {
    color: #aaa;
    margin-bottom: 15px;
    line-height: 1.7;
}

.footers-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footers-links a {
    color: #aaa;
    transition: var(--transition);
}

.footers-links a:hover {
    color: white;
    padding-left: 5px;
}

.footers-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Add to your existing CSS */
.company-logo, .logo-briefcase {
    will-change: transform;
}

.job-card {
    content-visibility: auto;
}

/* Ensure consistent spacing */
.sidebar-card + .sidebar-card {
    margin-top: 0;
}

/* Fix for the main job postings container */
.job-postings-container {
    display: flex;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1024px) {
    .job-postings-container {
        gap: 25px;
    }
}

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .job-postings-container {
        flex-direction: column;
        gap: 20px
    }
    
    .sidebar {
        width: 100%;
        order: 2;
        margin-top: 30px;
    }
    
    .job-postings {
        order: 1;
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Intro Section */
.intro-section {
    margin-top: 40px;
}

/* Error Message */
.error-message {
    background: #fff3f3;
    border-left: 4px solid var(--danger);
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    color: var(--danger);
}

/* ==================== */
/* JOB CATEGORIES STYLES */
/* ==================== */

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-category {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--dark);
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.sidebar-category:hover {
    background: var(--primary);
    color: white;
    transform: translateX(5px);
    border-color: var(--primary);
}

.sidebar-category:hover i {
    color: white;
}

.sidebar-category.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sidebar-category.active i {
    color: white;
}

.sidebar-category i {
    margin-right: 12px;
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: var(--transition);
}