.blog-page { background: linear-gradient(to bottom, #f8fafc 0%, #e5e9f0 100%); min-height: 100vh; }

/* Hero Section */
.blog-hero { max-width: 1200px; margin: 0 auto 24px; padding: 78px 28px 56px; text-align: center; position: relative; overflow: hidden; isolation: isolate; border: 1px solid #dbeafe; border-radius: 34px; background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(245,249,255,0.95) 100%); box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1); }
.blog-hero > * { position: relative; z-index: 1; }
.blog-hero::before { content: ''; position: absolute; top: 24px; right: 24px; width: 84px; height: 84px; border-radius: 24px; background-image: url('images/myschoolexam-mark.svg'), linear-gradient(135deg, rgba(255,255,255,0.96), rgba(219,234,254,0.98)); background-repeat: no-repeat, no-repeat; background-position: center, center; background-size: 46px 46px, cover; box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14); }
.blog-hero::after { content: ''; position: absolute; right: -90px; bottom: -110px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%); }
.blog-hero h1 { font-size: 3.5rem; color: #1e3a8a; margin-bottom: 20px; font-weight: 800; letter-spacing: -0.02em; }
.blog-hero p { color: #64748b; font-size: 1.2rem; max-width: 760px; margin: 0 auto 24px; line-height: 1.7; font-weight: 400; }
.blog-hero-note { max-width: 620px; margin: 18px auto 0; color: #475569; font-size: 0.98rem; line-height: 1.7; }
.blog-hero-note a { color: #1e40af; font-weight: 700; }
.blog-hero-chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; max-width: 900px; margin: 10px auto 0; }
.blog-hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,0.9); border: 1px solid #dbeafe; color: #1e3a8a; font-size: 0.85rem; font-weight: 700; box-shadow: 0 10px 20px rgba(30, 58, 138, 0.06); }
.blog-hero-chip svg { display: block; width: 16px; height: 16px; color: #2563eb; }
.blog-hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 28px auto 0; }
.blog-hero-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font-size: 0.92rem; font-weight: 800; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.blog-hero-action.primary { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 58%, #10b981 100%); color: #fff; box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24); }
.blog-hero-action.secondary { background: rgba(255,255,255,0.92); color: #1d4ed8; border: 1px solid rgba(37, 99, 235, 0.14); box-shadow: 0 12px 24px rgba(30, 58, 138, 0.08); }
.blog-hero-action:hover { transform: translateY(-2px); }
.blog-stats { display: flex; justify-content: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.blog-stat { text-align: center; min-width: 180px; padding: 18px 20px; border-radius: 22px; background: rgba(255,255,255,0.84); border: 1px solid #dbeafe; box-shadow: 0 16px 32px rgba(30, 58, 138, 0.08); }
.blog-stat-number { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 8px; }
.blog-stat-label { font-size: 0.875rem; color: #64748b; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Category Filter */
.blog-categories { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.category-tag { padding: 8px 20px; border-radius: 24px; background: white; border: 2px solid #e2e8f0; color: #64748b; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.category-tag:hover, .category-tag.active { background: #3b82f6; color: white; border-color: #3b82f6; }

/* Blog Grid */
.blog-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px 80px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* Blog Cards */
.blog-card { background: white; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-align: left; position: relative; display: block; overflow: hidden; }
.blog-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 60%, #10b981 100%); transform: scaleX(0.38); transform-origin: left center; transition: transform 0.25s ease; }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(30, 58, 138, 0.12); border-color: #3b82f6; }
.blog-card:hover::before { transform: scaleX(1); }
.blog-card-link { display: flex; flex-direction: column; padding: 28px; text-decoration: none; color: inherit; height: 100%; }

/* Card Badges */
.blog-card-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.blog-card-badge { padding: 4px 12px; border-radius: 16px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-new { background: #ef4444; color: white; }
.badge-category { background: #dbeafe; color: #1e40af; }

/* Card Content */
.blog-card h3 { margin-bottom: 14px; color: #1e293b; font-size: 1.35rem; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card p { color: #64748b; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.65; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Card Footer */
.blog-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 20px; border-top: 1px solid #f1f5f9; }
.blog-card-cta { color: #3b82f6; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; transition: color 0.2s; }
.blog-card-cta::before { content: ''; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19.5V5.5A1.5 1.5 0 0 1 6.5 4H20'/%3E%3Cpath d='M8 6.5h10A1.5 1.5 0 0 1 19.5 8v12l-5-2-5 2V8A1.5 1.5 0 0 1 11 6.5Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.blog-card:hover .blog-card-cta { color: #1e40af; }
.blog-card-cta::after { content: '\\2192'; transition: transform 0.2s; }
.blog-card:hover .blog-card-cta::after { transform: translateX(4px); }
.blog-card-meta { font-size: 0.85rem; color: #94a3b8; display: flex; align-items: center; gap: 4px; }
.blog-card-meta::before { content: ''; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center/contain no-repeat; }

/* CTA Section */
.cta-strip { max-width: 1140px; margin: 0 auto 80px; padding: 48px 40px; background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); border-radius: 24px; text-align: center; color: white; box-shadow: 0 20px 40px rgba(30, 58, 138, 0.2); }
.cta-strip h2 { font-size: 2rem; margin-bottom: 16px; font-weight: 700; }
.cta-strip p { font-size: 1.1rem; margin-bottom: 28px; opacity: 0.95; }
.cta-strip a { display: inline-block; background: white; color: #1e3a8a; padding: 14px 32px; border-radius: 12px; font-weight: 700; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.cta-strip a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }

.blog-paths { max-width: 1140px; margin: 0 auto 48px; padding: 0 20px; }
.blog-paths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.blog-path-card { display: block; background: rgba(255,255,255,0.92); border: 1px solid #dbeafe; border-radius: 18px; padding: 22px; text-decoration: none; color: inherit; box-shadow: 0 12px 28px rgba(30,58,138,0.08); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.blog-path-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(30,58,138,0.12); border-color: #93c5fd; }
.blog-path-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.blog-path-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 14px; color: #1d4ed8; background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(16,185,129,0.12)); box-shadow: inset 0 0 0 1px rgba(37,99,235,0.1), 0 10px 20px rgba(30,58,138,0.08); }
.blog-path-icon svg { display: block; width: 18px; height: 18px; }
.blog-path-card strong { display: block; color: #1e3a8a; margin-bottom: 0; font-size: 1rem; }
.blog-path-card-copy { display: block; color: #475569; line-height: 1.65; font-size: 0.94rem; }
.blog-path-card > .blog-path-card-copy:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-categories::-webkit-scrollbar { display: none; }

/* Responsive */
@media (max-width: 768px) {
    .blog-hero { padding: 60px 20px 42px; border-radius: 28px; }
    .blog-hero::before { top: 18px; right: 18px; width: 68px; height: 68px; border-radius: 20px; background-size: 36px 36px, cover; }
    .blog-hero::after { right: -56px; bottom: -72px; width: 180px; height: 180px; }
    .blog-hero h1 { font-size: 2.35rem; margin-bottom: 16px; }
    .blog-hero p { font-size: 1rem; }
    .blog-hero-note { font-size: 0.92rem; }
    .blog-hero-chips { justify-content: flex-start; }
    .blog-hero-actions { justify-content: flex-start; }
    .blog-grid { grid-template-columns: 1fr; gap: 24px; }
    .blog-stats { gap: 14px; margin-top: 28px; }
    .blog-stat { flex: 1 1 calc(50% - 7px); min-width: 0; padding: 16px 14px; }
    .blog-stat-number { font-size: 2rem; }
    .blog-categories { padding: 0 20px 28px; justify-content: flex-start; }
    .category-tag { min-height: 42px; }
    .blog-paths { margin-bottom: 36px; }
    .blog-paths-grid { grid-template-columns: 1fr; gap: 14px; }
    .blog-path-card-head { align-items: flex-start; }
    .blog-card-link { padding: 24px; }
    .blog-card-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cta-strip { padding: 36px 24px; }
    .cta-strip h2 { font-size: 1.6rem; }
    .cta-strip p { font-size: 1rem; }
}
@media (max-width: 620px) {
    .blog-hero-note { display: none; }
    .blog-categories { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; scrollbar-width: none; }
    .category-tag { width: auto; text-align: center; white-space: nowrap; flex: 0 0 auto; }
    .blog-stat { flex-basis: 100%; }
}
@media (max-width: 480px) {
    .blog-hero { padding: 52px 16px 34px; border-radius: 24px; }
    .blog-hero::before { width: 58px; height: 58px; border-radius: 18px; background-size: 30px 30px, cover; }
    .blog-hero h1 { font-size: 1.9rem; }
    .blog-hero p { font-size: 0.96rem; }
    .blog-hero-chip { width: 100%; justify-content: flex-start; }
    .blog-hero-action { width: 100%; }
    .blog-categories,
    .blog-grid,
    .blog-paths { padding-left: 16px; padding-right: 16px; }
    .blog-card-link { padding: 20px; }
    .blog-card h3 { font-size: 1.2rem; }
    .blog-card p { font-size: 0.92rem; }
    .blog-stats { gap: 12px; }
    .blog-stat { width: 100%; padding: 14px; }
    .blog-stat-number { font-size: 1.8rem; }
    .blog-stat-label { font-size: 0.78rem; }
    .blog-path-card { padding: 18px; }
    .cta-strip { margin-bottom: 56px; padding: 28px 18px; border-radius: 20px; }
    .cta-strip h2 { font-size: 1.35rem; }
    .cta-strip a { width: 100%; padding: 14px 18px; }
}
