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

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

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

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

.res-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);
}

.res-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;
}

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

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

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

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

.res-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;
}

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

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

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

.res-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;
}

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

/* --- SECTION BLOCKS & CARDS --- */
.res-content-section {
    padding-bottom: 30px;
}

.res-section-block {
    margin-bottom: 32px;
}

.res-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.res-sec-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-blue { background: rgba(0, 102, 255, 0.08); color: #0066FF; }
.icon-amber { background: rgba(217, 119, 6, 0.08); color: #d97706; }
.icon-emerald { background: rgba(5, 150, 105, 0.08); color: #059669; }
.icon-purple { background: rgba(147, 51, 234, 0.08); color: #9333ea; }
.icon-sky { background: rgba(2, 132, 199, 0.08); color: #0284c7; }

.res-sec-title {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.res-sec-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Grid */
.res-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.res-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    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);
    position: relative;
}

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

.res-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.res-badge-type {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-free { background: rgba(5, 150, 105, 0.1); color: #059669; }
.type-tool { background: rgba(0, 102, 255, 0.1); color: #0066FF; }

.res-bookmark-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.res-bookmark-btn:hover {
    background: rgba(0, 102, 255, 0.08);
    color: var(--primary);
    border-color: rgba(0, 102, 255, 0.2);
}

.res-bookmark-btn.saved {
    background: rgba(0, 102, 255, 0.12);
    color: var(--primary);
    border-color: var(--primary);
}

.res-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.res-card-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 14px;
    flex: 1;
}

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

.res-card-tag {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
}

.res-card-arrow {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
}

.res-card:hover .res-card-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

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

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

.res-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;
}

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

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

.res-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;
}

.res-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);
}

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

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

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

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

.res-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);
}

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

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

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

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

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

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

.res-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;
}

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

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

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

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

/* --- TOAST NOTIFICATION --- */
.res-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;
}

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

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

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