/* Homepage.css - Enhanced styling for WowJobs homepage */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--tertiary-color) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/icons/iconnobg.png');
    background-repeat: no-repeat;
    background-position: 95% center;
    background-size: 200px;
    opacity: 0.2;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.search-box {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem 1rem 3rem;
    width: 100%;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-box button {
    background-color: var(--tertiary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box button:hover {
    background-color: var(--accent-color);
}

/* About Section */
.about-section {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
    border-radius: 2px;
}

.about-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.about-text {
    max-width: 800px;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature-card {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.feature-icon-large {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--tertiary-color));
    border-radius: 2px;
}

.view-all {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--primary-color);
}

/* Job and Blog Cards */
.job-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.job-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.job-image-container, .blog-image-container {
    position: relative;
}

.job-image, .blog-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.job-type, .blog-category {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(46, 204, 113, 0.85);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
}

.blog-category {
    background-color: rgba(30, 136, 229, 0.85);
}

.job-content, .blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.job-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.job-meta, .blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #777;
}

.job-company, .job-location, .blog-author, .blog-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.job-description, .job-card p {
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    margin-top: auto;
    text-align: center;
    transition: background-color 0.3s;
}

.apply-btn:hover {
    background-color: var(--primary-color);
}

/* Loading States */
.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #777;
}

.loading-placeholder i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--tertiary-color) 100%);
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-top: 4rem;
    margin-bottom: 3rem;
    text-align: center;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.primary-btn {
    background-color: white;
    color: var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.secondary-btn:hover {
    background-color: white;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .search-box {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box input, .search-box button {
        border-radius: 50px;
        width: 100%;
    }
    
    .job-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Animations for cards */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.job-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.job-card:nth-child(2) {
    animation-delay: 0.2s;
}

.job-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}