/* MCQsAll home page — readable daily-life sizes, mobile-first */
.home-page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 14px 36px;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #1e293b;
}

.home-hero {
    text-align: center;
    padding: 28px 18px 24px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #faf5ff 100%);
    border: 1px solid #e2e8f0;
}

.home-title {
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.home-subtitle {
    max-width: 720px;
    margin: 0 auto 18px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
}

.home-subject-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 4px;
}

.home-pill {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e40af;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.home-pill:hover {
    background: #dbeafe;
    color: #1e3a8a;
    text-decoration: none;
    transform: translateY(-1px);
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr) minmax(0, 260px);
    gap: 20px;
    align-items: start;
}

.home-side {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.home-side-jobs { border-top: 4px solid #059669; }
.home-side-news { border-top: 4px solid #2563eb; }

.home-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.home-side-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.home-side-head a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.home-side-list {
    max-height: 70vh;
    overflow-y: auto;
    padding: 12px;
}

.home-feed-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    transition: box-shadow 0.15s, transform 0.15s;
}

.home-feed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.home-feed-body {
    display: block;
    padding: 12px 14px 14px;
    text-decoration: none;
    color: inherit;
}

.home-feed-body:hover {
    text-decoration: none;
    color: inherit;
}

.home-feed-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    background: #e2e8f0;
}

.home-feed-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.jobs-tag { background: #dcfce7; color: #166534; }
.news-tag { background: #dbeafe; color: #1e40af; }

.home-feed-body h3 {
    margin: 0 0 6px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.home-feed-body p {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

.home-main h2.home-section-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 14px;
    text-align: center;
}

.home-mcq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-mcq-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #2563eb;
    padding: 18px 18px 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.15s, box-shadow 0.15s;
}

.home-mcq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.home-mcq-card.accent-purple { border-left-color: #7c3aed; }
.home-mcq-card.accent-teal { border-left-color: #0d9488; }
.home-mcq-card.accent-orange { border-left-color: #ea580c; }
.home-mcq-card.accent-green { border-left-color: #16a34a; }

.home-mcq-card h2 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
    color: #1e40af;
    line-height: 1.3;
}

.home-mcq-card.accent-purple h2 { color: #6d28d9; }
.home-mcq-card.accent-teal h2 { color: #0f766e; }
.home-mcq-card.accent-orange h2 { color: #c2410c; }
.home-mcq-card.accent-green h2 { color: #15803d; }

.home-mcq-card p {
    margin: 0 0 14px;
    flex: 1;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.5;
}

.home-mcq-btn {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.home-mcq-card.accent-purple .home-mcq-btn { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.home-mcq-card.accent-teal .home-mcq-btn { background: linear-gradient(135deg, #0d9488, #0f766e); }
.home-mcq-card.accent-orange .home-mcq-btn { background: linear-gradient(135deg, #ea580c, #c2410c); }
.home-mcq-card.accent-green .home-mcq-btn { background: linear-gradient(135deg, #16a34a, #15803d); }

.home-mcq-btn:hover { opacity: 0.92; text-decoration: none; }

.home-seo-footer {
    margin-top: 28px;
    padding: 20px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.home-seo-footer h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.home-empty-side {
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.92rem;
}

@media (max-width: 1100px) {
    .home-layout { grid-template-columns: 1fr; }
    .home-side-list {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 10px;
    }
    .home-feed-card { margin-bottom: 0; }
}

@media (max-width: 640px) {
    .home-page-wrap { padding: 12px 10px 28px; }
    .home-hero { padding: 20px 14px 18px; }
    .home-mcq-grid { grid-template-columns: 1fr; }
    .home-side-list { grid-template-columns: 1fr; }
    .home-subject-pills { gap: 6px; }
    .home-pill { font-size: 0.88rem; padding: 7px 12px; }
}
