/* ============================================================
   Achol HR - Homepage Stylesheet
   ============================================================
   
   Page-specific styles for the homepage only.
   Global styles come from style.css
   
   @author  Magar
   @version 1.0
   ============================================================ */


/* ============================================================
   1. VISUALLY HIDDEN (Accessibility Utility)
   Used for screen-reader-only headings
   ============================================================ */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ============================================================
   2. SECTION HEADERS
   ============================================================ */

.section-header {
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-header h2 {
    color: var(--navy);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}


/* ============================================================
   3. CATEGORIES SECTION
   ============================================================ */

.section-categories {
    background-color: var(--grey-light);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--white);
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-medium);
    color: var(--navy);
    transition: var(--transition);
    text-decoration: none;
    min-height: 150px;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    color: var(--navy);
}

.category-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grey-light);
    border-radius: 50%;
    color: var(--navy);
    margin-bottom: 16px;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background-color: var(--gold);
    color: var(--white);
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
}


/* ============================================================
   4. STATISTICS SECTION
   ============================================================ */

.section-stats {
    background-color: var(--navy);
    color: var(--white);
}

.section-stats .section-header h2,
.section-stats .section-header p {
    color: var(--white);
}

.section-stats .section-header p {
    opacity: 0.85;
}

.stat-card {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 15px;
    color: var(--white);
    opacity: 0.9;
    font-weight: 500;
}


/* ============================================================
   5. SUCCESS STORIES SECTION
   ============================================================ */

.section-stories {
    background-color: var(--white);
}

.story-card {
    background-color: var(--grey-light);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-medium);
    transition: var(--transition);
    position: relative;
}

.story-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.story-card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 24px;
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='%23C9A227' viewBox='0 0 16 16'%3E%3Cpath d='M12 12a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1h-1.388q0-.527.062-1.054q.093-.558.31-.992t.559-.683q.34-.279.868-.279V3q-.868 0-1.52.372a3.4 3.4 0 0 0-1.085.992a4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 9 7.558V11a1 1 0 0 0 1 1zm-6 0a1 1 0 0 0 1-1V8.558a1 1 0 0 0-1-1H4.612q0-.527.062-1.054q.094-.558.31-.992t.559-.683q.34-.279.868-.279V3q-.868 0-1.52.372a3.4 3.4 0 0 0-1.085.992a4.9 4.9 0 0 0-.62 1.458A7.7 7.7 0 0 0 3 7.558V11a1 1 0 0 0 1 1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.35;
}

.story-quote {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.story-author {
    border-top: 1px solid var(--grey-medium);
    padding-top: 16px;
}

.story-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.story-role {
    font-size: 13px;
    color: var(--text-muted);
}


/* ============================================================
   6. BLOG UPDATES SECTION
   ============================================================ */

.section-blog {
    background-color: var(--grey-light);
}

.blog-card {
    background-color: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-medium);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.blog-card-title a {
    color: var(--navy);
    transition: var(--transition);
}

.blog-card-title a:hover {
    color: var(--gold);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.blog-card-link {
    color: var(--gold);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.blog-card-link::after {
    content: '\2192';
    transition: transform 0.25s ease;
}

.blog-card-link:hover {
    color: var(--gold-dark);
}

.blog-card-link:hover::after {
    transform: translateX(4px);
}


/* ============================================================
   7. HOMEPAGE HERO REFINEMENTS
   ============================================================ */

.hero-headline {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* ============================================================
   8. RESPONSIVE ADJUSTMENTS FOR HOMEPAGE
   ============================================================ */

@media (max-width: 768px) {

    .section-header {
        margin-bottom: 32px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .category-card {
        min-height: 130px;
        padding: 24px 16px;
    }

    .story-card,
    .blog-card {
        padding: 24px 20px;
    }
}


@media (max-width: 480px) {

    .stat-number {
        font-size: 2rem;
    }

    .category-icon {
        width: 48px;
        height: 48px;
    }
}


/* ============================================================
   END OF HOMEPAGE STYLESHEET
   ============================================================ */