/* ============================================================
   Achol HR - Homepage Stylesheet (Redesigned)
   ============================================================ */


/* ============================================================
   1. HERO SECTION
   ============================================================ */

.hero-section {
    background-color: var(--primary-light);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--navy) 0%, transparent 70%);
    opacity: 0.03;
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: rgba(27, 78, 232, 0.15);
    z-index: -1;
    border-radius: 4px;
}

.hero-subheadline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    line-height: 1.65;
}


/* Hero Search Bar */
.hero-search {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 100px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    max-width: 560px;
    gap: 4px;
}

.hero-search-field {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 16px;
    gap: 10px;
    min-width: 0;
}

.hero-search-icon {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.hero-search-field input,
.hero-search-field select {
    flex: 1;
    border: none;
    outline: none;
    background: none;
    font-size: 14px;
    color: var(--text-primary);
    padding: 14px 0;
    font-family: inherit;
    min-width: 0;
    cursor: pointer;
}

.hero-search-field input::placeholder {
    color: var(--text-muted);
}

.hero-search-divider {
    width: 1px;
    height: 30px;
    background: var(--grey-medium);
}

.hero-search-btn {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.hero-search-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}


/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--grey-medium);
}

.hero-stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}


/* Hero Visual */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
}

.hero-image-card {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
    background: var(--grey-lightest);
}

.hero-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ============================================================
   2. SECTION HEADERS
   ============================================================ */

.section-header-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-header-split h2 {
    margin-bottom: 8px;
}

.section-header-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.section-link:hover {
    color: var(--primary-dark);
}


/* ============================================================
   3. CATEGORIES SECTION
   ============================================================ */

.categories-section {
    background: var(--white);
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: var(--white);
    color: var(--primary);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: var(--white);
}

.category-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.category-count {
    font-size: 12px;
    color: var(--text-muted);
}


/* ============================================================
   4. FEATURED JOBS SECTION
   ============================================================ */

.featured-jobs-section {
    background: var(--cream);
    padding: 80px 0;
}

.featured-jobs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.featured-job-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.featured-job-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.featured-job-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.featured-job-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    line-height: 1.35;
    min-height: 45px;
}

.featured-job-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.featured-job-title a:hover {
    color: var(--primary);
}

.featured-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.featured-job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.featured-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    min-height: 24px;
}

.featured-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary);
}

.featured-tag-gold {
    background: #fdf6e3;
    color: var(--gold-dark);
}

.featured-tag-red {
    background: #fef2f2;
    color: var(--error);
}

.featured-job-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--grey-light);
}

.featured-job-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Description text - short and clean */
.featured-job-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
    min-height: 40px;
}

/* Salary display */
.featured-job-salary {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-size: 14px;
    color: var(--text-primary);
}

.featured-job-salary strong {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
}

.featured-job-salary span {
    color: var(--text-muted);
    font-size: 12px;
}

.salary-request {
    font-style: italic;
    color: var(--text-muted);
    font-size: 13px;
}

.featured-job-icon-btn {
    width: 36px;
    height: 36px;
    background: var(--text-primary);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.featured-job-icon-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(3px);
}

/* ============================================================
   5. STORIES SECTION
   ============================================================ */

.stories-section {
    background: var(--white);
    padding: 80px 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.story-card {
    background: var(--primary-light);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
}

.story-quote {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.story-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 2px;
}

.story-role {
    font-size: 13px;
    color: var(--text-muted);
}


/* ============================================================
   6. BLOG SECTION
   ============================================================ */

.blog-section {
    background: var(--grey-lightest);
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--grey-medium);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.blog-card-date {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.blog-card-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}


/* ============================================================
   7. RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .featured-jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 992px) {

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-headline {
        font-size: 2.75rem;
    }

    .hero-visual {
        height: 400px;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image-card {
        width: 280px;
        height: 380px;
    }

    .hero-blob {
        width: 380px;
        height: 380px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .featured-jobs-grid,
    .stories-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {

    .hero-section {
        padding: 60px 0 80px;
    }

    .hero-headline {
        font-size: 2.25rem;
    }

    .hero-subheadline {
        font-size: 1rem;
    }

    .hero-search {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
        gap: 8px;
    }

    .hero-search-field {
        width: 100%;
        border-radius: var(--radius-sm);
        background: var(--grey-lightest);
        padding: 4px 16px;
    }

    .hero-search-divider {
        display: none;
    }

    .hero-search-btn {
        width: 100%;
        border-radius: var(--radius-sm);
        height: 44px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-visual {
        height: 350px;
    }

    .hero-floating-card {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-jobs-grid,
    .stories-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-header-split {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 480px) {

    .hero-headline {
        font-size: 1.85rem;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-image-card {
        width: 220px;
        height: 300px;
    }

    .hero-blob {
        width: 300px;
        height: 300px;
    }
}

/* ============================================================
   FEATURED JOBS SECTION - Old Card Design + New Arrow Button
   ============================================================ */

.featured-jobs-section {
    background: var(--cream);
    padding: 80px 0;
}

.featured-cta {
    text-align: center;
    margin-top: 40px;
}

.featured-jobs-empty {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.featured-jobs-empty p {
    margin-bottom: 20px;
    color: var(--text-muted);
}


/* Circular arrow button on job cards */
.job-card-arrow {
    width: 40px;
    height: 40px;
    background: var(--text-primary);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.job-card-arrow:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(3px);
}


/* ============================================================
   END OF HOMEPAGE STYLESHEET
   ============================================================ */