/* ==========================================================================
   Risel – Career Blog & Articles CSS
   Design System: Sora + Inter, Modern SaaS, Clean Light Mode Grid
   ========================================================================== */

/* --- MAIN & HERO SECTION --- */
.blog-main {
    padding-bottom: 40px;
}

.blog-hero {
    padding: 12px 0 6px;
    text-align: center;
    position: relative;
}

.blog-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 102, 255, 0.15);
}

.blog-hero-heading {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.blog-hero-accent {
    background: linear-gradient(135deg, var(--primary) 0%, #00b4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-hero-desc {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 20px;
}

/* Search Box */
.blog-search-box {
    max-width: 540px;
    margin: 0 auto;
    position: relative;
}

.blog-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.blog-search-input {
    width: 100%;
    padding: 12px 18px 12px 46px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--text-main);
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    outline: none;
    transition: all 0.25s ease;
}

.blog-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

/* --- FILTER SWITCHER --- */
.blog-filter-section {
    padding: 16px 0 24px;
    text-align: center;
}

.blog-category-switcher {
    display: inline-flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-cat-pill {
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.blog-cat-pill.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* --- FEATURED CARD & GRID --- */
.blog-content-section {
    padding-bottom: 30px;
}

.blog-featured-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid rgba(0, 102, 255, 0.2);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 6px 24px rgba(0, 102, 255, 0.05);
}

.blog-featured-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 102, 255, 0.08);
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(0, 102, 255, 0.15);
    text-transform: uppercase;
}

.blog-featured-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin: 8px 0 10px;
}

.blog-featured-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 800px;
}

.blog-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.blog-btn-read {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 102, 255, 0.2);
}

.blog-btn-read:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Articles Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.blog-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 10px 24px rgba(0, 102, 255, 0.06);
}

.blog-tag-pill {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tag-blue { background: rgba(0, 102, 255, 0.1); color: #0066FF; }
.tag-amber { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.tag-purple { background: rgba(147, 51, 234, 0.1); color: #9333ea; }
.tag-emerald { background: rgba(5, 150, 105, 0.1); color: #059669; }

.blog-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 8px;
}

.blog-card-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.blog-card-meta {
    font-size: 11.5px;
    color: #64748b;
}

.blog-link-btn {
    background: transparent;
    border: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease;
}

.blog-link-btn:hover {
    transform: translateX(2px);
}

/* --- ARTICLE READER MODAL --- */
.blog-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.blog-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.blog-modal-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(10px);
    transition: transform 0.25s ease;
}

.blog-modal-overlay.open .blog-modal-card {
    transform: translateY(0);
}

.blog-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.blog-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

.blog-modal-title {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 6px;
}

.blog-modal-meta {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.blog-modal-text p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 14px;
}

.blog-modal-text h4 {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 18px 0 8px;
}

.blog-modal-text ul {
    margin: 0 0 14px 20px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.blog-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.blog-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
}

.blog-btn-secondary {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

/* --- FEATURES / BENEFITS SECTION --- */
.blog-features-section {
    padding: 32px 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.blog-section-header-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
}

.blog-section-header-center h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-main);
    margin-bottom: 6px;
}

.blog-section-header-center p {
    font-size: 14px;
    color: var(--text-secondary);
}

.blog-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.blog-feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 102, 255, 0.25);
}

.blog-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.blog-feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.blog-feature-card p {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-secondary);
}

/* --- SEO SECTION --- */
.blog-seo-section {
    padding: 40px 0;
}

.blog-seo-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.blog-seo-box h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.blog-seo-box p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* --- FAQ SECTION --- */
.blog-faq-section {
    padding: 40px 0 60px;
}

.blog-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.blog-faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.06);
}

.blog-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
}

.blog-faq-icon {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
}

.blog-faq-item.active .blog-faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.blog-faq-ans {
    display: none;
    padding: 0 20px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.blog-faq-item.active .blog-faq-ans {
    display: block;
}

/* --- TOAST NOTIFICATION --- */
.blog-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.blog-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
