/* Blog pages — unified with main Spegz website theme */

.blog-page-body {
    background-color: #fff;
    color: #1E234D;
    font-family: 'Open Sans', 'Source Sans Pro', sans-serif;
}

/* Listing hero */
.blog-hero {
    background: #fff;
    border-top: 1px solid #f2d6a5;
    box-shadow: inset 0 12px 24px rgba(21, 24, 67, 0.04);
    padding-top: 118px;
    padding-bottom: 38px;
}

.blog-hero .sec_header {
    color: #1E234D;
    margin-bottom: 15px;
}

.blog-hero-subtitle {
    color: #555;
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog listing grid */
.blog-listing-section {
    background: #fff;
    padding-top: 24px;
    padding-bottom: 70px;
}

.blog-post-card {
    background: #fff;
    border: 1px solid #f0d7ab;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.blog-post-card:hover {
    border-color: rgba(255, 64, 54, 0.55);
    box-shadow: 0 16px 34px rgba(21, 24, 67, 0.14);
    transform: translateY(-6px);
}

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

.blog-post-card .blog-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.blog-post-card h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #1E234D;
    line-height: 1.4;
    margin: 0 0 8px;
    min-height: 50px;
}

.blog-post-card .blog-date {
    color: #ff4036;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.blog-post-card .blog-content-description {
    color: #5f6270;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.blog-post-card .blog-read-more {
    display: inline-block;
    margin-top: auto;
    text-decoration: none;
}

.blog-post-card .blog-read-more .primary_btn {
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    padding: 8px 20px;
}

/* Individual article pages */
.blog-article-section {
    background: #fff;
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 60vh;
}

.blog-article-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #f0d7ab;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(21, 24, 67, 0.08);
    padding: 2rem;
}

.blog-article-container h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: #1E234D;
    margin-bottom: 1.5rem;
    line-height: 1.35;
    text-align: center;
}

.blog-article-container .blog-page-cover {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto 1.5rem;
    border-radius: 6px;
}

.blog-article-body,
.blog-article-body.blog-content {
    text-align: justify;
    color: #555;
    font-size: 16px;
    line-height: 1.75;
}

.blog-article-body h3,
.blog-article-body h2 {
    color: #1E234D;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    font-size: 1.25rem;
}

.blog-article-body p {
    margin-bottom: 1rem;
}

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

.blog-article-body li {
    margin-bottom: 0.75rem;
}

.blog-article-body strong {
    color: #1E234D;
}

.blog-article-body a {
    color: #ff4036;
}

/* About Us profile page inside blog */
.blog-article-container.profile-content h2,
.blog-article-container.profile-content h3 {
    color: #1E234D;
    text-align: center;
}

.blog-article-container.profile-content p {
    color: #555;
    text-align: justify;
    margin-bottom: 1rem;
}

/* Back to blog link */
.blog-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #ff4036;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.blog-back-link:hover {
    color: #1E234D;
    text-decoration: none;
}

.blog-back-link .fa {
    margin-right: 6px;
}

/* Inner pages: always show logo image in navbar */
.blog-page-body #img-size {
    display: block !important;
    height: 46px;
    margin: 0;
    object-fit: contain;
    width: 92px;
}

.blog-page-body #header-logo-text {
    display: block !important;
    font-size: 28px;
    line-height: 1;
    margin: 0;
}

.blog-page-body .header-icon {
    align-items: center;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    width: 98px;
}

.blog-page-body .navbar-brand.logo_h {
    align-items: center;
    display: flex;
    min-height: 64px;
    padding: 0;
}

/* Responsive */
@media screen and (max-width: 767px) {
    .blog-hero {
        padding-top: 94px;
    }

    .blog-article-section {
        padding-top: 80px;
    }

    .blog-article-container {
        padding: 1.25rem;
    }

    .blog-article-container h1 {
        font-size: 1.35rem;
    }

    .blog-post-card .blog-cover-img {
        height: 180px;
    }

    .blog-post-card h3 {
        min-height: auto;
    }
}

@media screen and (max-width: 480px) {
    .blog-hero-subtitle {
        font-size: 16px;
        padding: 0 10px;
    }
}
