/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation Styles */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
}

/* Responsive Logo Image */
.logo-img {
    height: 40px; /* Fixed height */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Font Awesome Logo Styles */
.logo-icon {
    font-size: 1.8rem;
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item a:hover {
    color: #3498db;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #4a6fa5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hotel-bg.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: #777;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-dropdowns select {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4a6fa5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    text-align: center;
}

.btn:hover {
    background: #3a5a80;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #4a6fa5;
    color: #4a6fa5;
}

.btn-outline:hover {
    background: #4a6fa5;
    color: white;
}

/* Jobs Grid */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.job-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.job-card-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.department-badge {
    display: inline-block;
    background: #e9f7fe;
    color: #4a6fa5;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.job-card-header h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #777;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-card-body {
    padding: 20px;
    flex-grow: 1;
}

.salary-range {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #27ae60;
}

.job-card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.application-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    gap: 5px;
}

.application-status-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #4a6fa5;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    gap: 5px;
    transition: background 0.3s;
}

.application-status-link:hover {
    background: #3a5a80;
}

/* No Jobs */
.no-jobs {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.no-jobs i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-jobs h3 {
    margin-bottom: 10px;
    color: #555;
}

.no-jobs p {
    margin-bottom: 20px;
    color: #777;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.job-details-modal h2 {
    margin-top: 0;
    color: #2c3e50;
}

.job-section {
    margin-bottom: 20px;
}

.job-section h3 {
    margin-bottom: 10px;
    color: #3498db;
}

.modal-actions {
    margin-top: 30px;
    text-align: center;
}

.loading-spinner {
    text-align: center;
    padding: 40px 0;
    color: #4a6fa5;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .logo-img {
        height: 36px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #2c3e50;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .filter-dropdowns {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-dropdowns select {
        min-width: 100%;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    
    .job-card-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job-card-footer .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .logo {
        font-size: 1.2rem;
        gap: 8px;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo::after {
        content: "CDB";
        display: inline;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .search-box input {
        padding: 10px 12px 10px 40px;
    }
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}