/* ============================================================
   Achol HR - Blog Stylesheet
   ============================================================ */


/* ============================================================
   1. BLOG HERO
   ============================================================ */

.blog-hero-section {
    background: var(--primary-light);
    padding: 70px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    opacity: 0.04;
    pointer-events: none;
}

.blog-hero-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.blog-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.blog-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto;
}


/* ============================================================
   2. BLOG POSTS GRID
   ============================================================ */

.blog-posts-section {
    padding: 80px 0 100px;
    background: var(--white);
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-post-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--grey-medium);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}


/* Blog Post Image */
.blog-post-image-link {
    display: block;
    height: 220px;
    background: var(--grey-lightest);
    overflow: hidden;
}

.blog-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-card:hover .blog-post-image {
    transform: scale(1.05);
}

.blog-post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.6;
}


/* Blog Post Body */
.blog-post-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-post-date {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.blog-post-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-post-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-post-title a:hover {
    color: var(--primary);
}

.blog-post-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
}

.blog-post-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;
    margin-top: auto;
}

.blog-post-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}


/* ============================================================
   3. EMPTY STATE
   ============================================================ */

.blog-empty-state {
    background: var(--grey-lightest);
    padding: 80px 30px;
    text-align: center;
    border-radius: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    color: var(--grey-dark);
    margin-bottom: 20px;
    display: inline-flex;
}

.blog-empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.blog-empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================================
   4. SINGLE POST - HEADER
   ============================================================ */

.post-header-section {
    background: var(--primary-light);
    padding: 40px 0 60px;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.post-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.post-breadcrumb a:hover {
    color: var(--primary);
}

.post-breadcrumb-sep {
    color: var(--grey-dark);
}

.post-header-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.post-meta-badge {
    background: var(--white);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: var(--shadow-sm);
}

.post-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.post-excerpt {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}


/* ============================================================
   5. SINGLE POST - FEATURED IMAGE
   ============================================================ */

.post-image-section {
    background: var(--primary-light);
    padding-bottom: 60px;
}

.post-featured-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-height: 500px;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* ============================================================
   6. SINGLE POST - CONTENT
   ============================================================ */

.post-content-section {
    padding: 80px 0 100px;
    background: var(--white);
}

.post-content-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.post-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-body > *:first-child {
    margin-top: 0;
}

.post-body p {
    margin-bottom: 22px;
    color: var(--text-secondary);
}

.post-body h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-body h3 {
    font-size: 1.35rem;
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.post-body ul,
.post-body ol {
    margin-bottom: 22px;
    padding-left: 24px;
    color: var(--text-secondary);
}

.post-body ul li,
.post-body ol li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.post-body ul {
    list-style: disc;
}

.post-body ol {
    list-style: decimal;
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(27, 78, 232, 0.3);
    text-underline-offset: 3px;
}

.post-body a:hover {
    text-decoration-color: var(--primary);
}

.post-body blockquote {
    margin: 30px 0;
    padding: 20px 28px;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    color: var(--text-primary);
    font-style: italic;
    font-size: 1.05rem;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.post-body strong {
    color: var(--text-primary);
    font-weight: 700;
}


/* ============================================================
   7. POST SHARE + BACK LINK
   ============================================================ */

.post-share {
    margin-top: 60px;
    padding: 28px 0;
    border-top: 1px solid var(--grey-medium);
    border-bottom: 1px solid var(--grey-medium);
    text-align: center;
}

.post-share-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 14px;
}

.post-share-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.post-share-icons a {
    width: 42px;
    height: 42px;
    background: var(--grey-lightest);
    color: var(--text-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.post-share-icons a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.post-back-link {
    margin-top: 40px;
    text-align: center;
}


/* ============================================================
   8. ACCESSIBILITY
   ============================================================ */

.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;
}


/* ============================================================
   9. RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {

    .blog-hero-title,
    .post-title {
        font-size: 2.25rem;
    }

    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {

    .blog-hero-section,
    .post-header-section {
        padding: 50px 0 60px;
    }

    .blog-hero-title,
    .post-title {
        font-size: 1.85rem;
    }

    .blog-posts-section,
    .post-content-section {
        padding: 60px 0 80px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-body {
        font-size: 16px;
    }

    .post-body h2 {
        font-size: 1.5rem;
    }

    .post-body h3 {
        font-size: 1.2rem;
    }
}


@media (max-width: 480px) {

    .blog-hero-title,
    .post-title {
        font-size: 1.65rem;
    }

    .blog-empty-state {
        padding: 60px 20px;
    }

    .post-share-icons a {
        width: 38px;
        height: 38px;
    }
}


/* ============================================================
   END OF BLOG STYLESHEET
   ============================================================ */