/* ── Blog listing page ─────────────────────────────────────────── */

.blog-hero {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.blog-hero .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-hero .contact-hero-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-left: 60px;
    background: rgba(0, 40, 68, 0.45);
}

.blog-hero .heading-left {
    color: #fff;
    font-size: 52px;
    font-weight: 700;
    margin: 0;
    font-family: "Roboto", sans-serif;
}

.blog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.blog-section-header {
    margin-bottom: 40px;
}

.blog-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #002844;
    margin: 0 0 8px;
}

.blog-section-header p {
    font-family: "Roboto Slab", serif;
    color: #555;
    font-size: 16px;
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    padding-bottom: 60px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
}

.blog-card-header {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.blog-card-icon {
    font-size: 52px;
    color: rgba(255, 255, 255, 0.88);
}

.blog-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px;
    font-weight: 400;
}

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.blog-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.blog-card-tag i {
    font-size: 11px;
}

.post-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 12px;
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
    font-family: "Roboto Slab", serif;
    font-size: 18px;
}

/* ── Blog intro section ────────────────────────────────────────── */

.blog-intro-section {
    background: #f8f9fb;
    border-bottom: 1px solid #e9ecef;
    padding: 60px 24px;
}

.blog-intro-content {
    max-width: 820px;
    margin: 0 auto;
}

.blog-intro-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #002844;
    margin: 0 0 20px;
}

.blog-intro-content p {
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 16px;
}

.blog-intro-content p:last-child {
    margin-bottom: 0;
}

/* ── Topics grid ────────────────────────────────────────────────── */

.blog-topics-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

.blog-topics-title {
    font-size: 22px;
    font-weight: 700;
    color: #002844;
    margin: 0 0 28px;
}

.blog-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.blog-topic-card {
    display: block;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-topic-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #d0d5dd;
}

.blog-topic-card i {
    font-size: 22px;
    margin-bottom: 12px;
    display: block;
}

.blog-topic-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.blog-topic-card p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0;
}

/* ── CTA section ────────────────────────────────────────────────── */

.blog-cta-section {
    background: #002844;
    padding: 64px 24px;
    margin-top: 56px;
}

.blog-cta-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.blog-cta-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.blog-cta-content p {
    font-family: "Roboto Slab", serif;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 28px;
}

.blog-cta-btn {
    display: inline-block;
    background: #a92467;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.blog-cta-btn:hover {
    background: #8c1d54;
}

@media (max-width: 768px) {
    .blog-intro-section { padding: 40px 20px; }
    .blog-topics-section { padding: 40px 20px 0; }
    .blog-cta-section { padding: 48px 20px; }
    .blog-topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .blog-topics-grid { grid-template-columns: 1fr; }
    .blog-intro-content h2 { font-size: 22px; }
    .blog-cta-content h2 { font-size: 22px; }
}

/* ── Single blog post page ─────────────────────────────────────── */

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a92467;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 32px;
    font-family: "Roboto", sans-serif;
}

.post-back-link:hover {
    text-decoration: underline;
}

.post-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.post-header h1 {
    color: #002844;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    font-family: "Roboto", sans-serif;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 36px;
    font-family: "Roboto", sans-serif;
}

.post-body {
    font-family: "Roboto Slab", serif;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body h2 {
    color: #002844;
    font-size: 22px;
    font-family: "Roboto", sans-serif;
    margin: 32px 0 12px;
    border-left: 4px solid #a92467;
    padding-left: 12px;
}

.post-body h3 {
    color: #002844;
    font-size: 18px;
    font-family: "Roboto", sans-serif;
    margin: 24px 0 8px;
}

.post-body a {
    color: #a92467;
    text-decoration: underline;
}

.post-body ul,
.post-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body blockquote {
    border-left: 4px solid #a92467;
    margin: 24px 0;
    padding: 12px 20px;
    background: #f9f0f4;
    color: #555;
    font-style: italic;
}

.post-body code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 15px;
    font-family: monospace;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .blog-hero .heading-left {
        font-size: 36px;
    }

    .blog-hero .contact-hero-text {
        padding-left: 24px;
    }

    .post-header h1 {
        font-size: 24px;
    }

    .post-body {
        font-size: 16px;
    }
}
