/* ========================================
   INDEX PAGE STYLES
   M'lang Job Board - Home Page
   ======================================== */

/* Navigation */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1565C0;
    text-decoration: none;
}

.nav-brand i {
    font-size: 1.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #212121;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(21, 101, 192, 0.08);
    color: #1565C0;
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #212121;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
}

.nav-dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #212121;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu .dropdown-item:hover {
    background: rgba(21, 101, 192, 0.08);
    color: #1565C0;
}

.dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .nav-dropdown.show .dropdown-menu {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: #fff;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Box */
.search-box {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.search-box .form-label {
    font-weight: 600;
    color: #212121;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-box .form-control,
.search-box .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: #1565C0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.search-box .btn-primary {
    background: #1565C0;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box .btn-primary:hover {
    background: #0D47A1;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(21, 101, 192, 0.3);
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.bg-white {
    background-color: #fff;
}

/* Stats Section */
.stats-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.stats-card .stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    color: #757575;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Jobs Section */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 0;
}

.page-title i {
    color: #1565C0;
}

/* Job Card */
.job-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.job-card .company-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #42A5F5, #1565C0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.job-card .job-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 0.5rem;
}

.job-card .company-name {
    color: #757575;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.job-card .company-name i {
    color: #42A5F5;
    margin-right: 4px;
}

.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #757575;
}

.job-card .job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-card .job-meta i {
    color: #42A5F5;
    font-size: 0.8rem;
}

.job-card .badge-type {
    display: inline-block;
    background: #1565C0;
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.job-card .badge-salary {
    display: inline-block;
    background: #FF6F00;
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.job-card .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.job-card .btn-outline-primary {
    border-color: #42A5F5;
    color: #42A5F5;
}

.job-card .btn-outline-primary:hover {
    background: #42A5F5;
    color: #fff;
}

.job-card .btn-primary {
    background: #42A5F5;
    border-color: #42A5F5;
}

.job-card .btn-primary:hover {
    background: #1565C0;
    border-color: #1565C0;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.no-results h4 {
    color: #212121;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: #757575;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.no-results .btn-primary {
    background: #42A5F5;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.no-results .btn-primary:hover {
    background: #1565C0;
}

/* Call to Action Section */
.section.bg-white h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 0.5rem;
}

.section.bg-white p {
    color: #757575;
    font-size: 1.1rem;
}

.section.bg-white .btn-primary {
    background: #42A5F5;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section.bg-white .btn-primary:hover {
    background: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 57, 53, 0.3);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section h5 i {
    color: #42A5F5;
    margin-right: 0.5rem;
}

.footer-section p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #42A5F5;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #42A5F5;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-bottom p:first-child {
    color: #999;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
        text-align: center;
    }
    
    .hero-section p {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .search-box {
        margin-top: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.875rem;
    }
    
    .search-box {
        padding: 1.5rem;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .stats-card .stats-number {
        font-size: 2rem;
    }
    
    .job-card {
        padding: 1.25rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 1.25rem;
    }
    
    .job-card .company-logo {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .job-card .job-title {
        font-size: 1.1rem;
    }
    
    .job-card .job-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}
