/* ── Blog Listing ─────────────────────────────────────────── */
.blogs-section {
    padding: 60px 0;
    margin-top: 120px;
    background: #f8f9fa;
    min-height: 100vh;
}

.blogs-section h1 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.blog-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.blog-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 20px 10px;
    line-height: 1.4;
}

.blog-card h2 a {
    color: #1a1a2e;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #26a0da;
}

.blog-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0 20px 16px;
    flex-grow: 1;
}

.blog-card .read-more {
    display: inline-block;
    margin: 0 20px 24px;
    padding: 8px 20px;
    background: linear-gradient(to right, #314755, #26a0da);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.blog-card .read-more:hover {
    opacity: 0.85;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    gap: 8px;
}

/* ── Single Blog Article ───────────────────────────────────── */
.blog-single {
    padding: 60px 0 80px;
    margin-top: 120px;
    background: #fff;
    min-height: 100vh;
}

.blog-single .container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-single img.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.blog-single h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
    margin-bottom: 24px;
}

/* ── Blog Body Content (WYSIWYG output) ───────────────────── */
.blog-body {
    font-size: 1.45rem;
    line-height: 2.0;
    color: #333;
}

.blog-body p {
    margin-bottom: 1.4em;
}

.blog-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 2em 0 0.6em;
    border-left: 4px solid #26a0da;
    padding-left: 12px;
}

.blog-body h3 {
    font-size: 1.45rem;
    font-weight: 600;
    color: #314755;
    margin: 1.6em 0 0.5em;
}

.blog-body h4, .blog-body h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #314755;
    margin: 1.4em 0 0.4em;
}

.blog-body ul, .blog-body ol {
    margin: 1em 0 1.4em 1.5em;
    padding-left: 1em;
}

.blog-body ul li {
    list-style-type: disc;
    margin-bottom: 0.5em;
}

.blog-body ol li {
    list-style-type: decimal;
    margin-bottom: 0.5em;
}

.blog-body li::marker {
    color: #26a0da;
}

.blog-body blockquote {
    border-left: 4px solid #26a0da;
    margin: 1.6em 0;
    padding: 12px 20px;
    background: #f0f7ff;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.blog-body a {
    color: #26a0da;
    text-decoration: underline;
}

.blog-body a:hover {
    color: #314755;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.2em 0;
}

.blog-body pre, .blog-body code {
    background: #f4f6f8;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
}

.blog-body pre {
    padding: 16px 20px;
    overflow-x: auto;
    margin: 1.4em 0;
}

.blog-body code {
    padding: 2px 6px;
}

.blog-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.95rem;
}

.blog-body table th,
.blog-body table td {
    border: 1px solid #dde3ea;
    padding: 10px 14px;
    text-align: left;
}

.blog-body table th {
    background: #314755;
    color: #fff;
    font-weight: 600;
}

.blog-body table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Text alignment (from Redactor alignment plugin) */
.blog-body .ql-align-center, .blog-body [style*="text-align: center"] { text-align: center; }
.blog-body .ql-align-right,  .blog-body [style*="text-align: right"]  { text-align: right; }
.blog-body .ql-align-justify,.blog-body [style*="text-align: justify"] { text-align: justify; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .blogs-section h1 { font-size: 1.8rem; }
    .blogs-grid { grid-template-columns: 1fr; padding: 0 16px; }
    .blog-single h1 { font-size: 1.7rem; }
    .blog-body { font-size: 1.08rem; }
}
