/* ==========================================================================
   Hazra Hearing Aid Centre - Blogs Page Stylesheet (blogs.css)
   Designed to seamlessly integrate with custome.css & responsive.css
   ========================================================================== */

/* Hero Banner Subtitle & Spacing */
.inner-banner-subtitle {
    font-size: 18px;
    line-height: 28px;
    color: #495057;
    margin-top: 15px;
    margin-bottom: 0;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Blog Section Container */
.blog-section {
    padding: 60px 0 80px 0;
    background-color: #fbfcfd;
}

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

.blog-section-header .section-tag {
    display: inline-block;
    color: var(--orange-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.blog-section-header h2 {
    font-size: 34px;
    font-weight: 700;
    line-height: 44px;
    color: #0d141e;
    margin-bottom: 12px;
}

/* Responsive Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog Card Component */
.blog-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 86, 179, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(0, 86, 179, 0.12);
    border-color: rgba(0, 86, 179, 0.22);
}

/* Card Image Top */
.blog-card-media {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: #f0f4f8;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.08);
}

/* Category Badge */
.blog-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--orange-color);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(223, 0, 31, 0.35);
    z-index: 2;
}

/* Card Content Container */
.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Flexbox Row for Author & Date */
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-meta-item i {
    font-size: 14px;
}

.blog-meta-author i {
    color: var(--primry-color);
}

.blog-meta-date i {
    color: var(--orange-color);
}

/* Blog Title */
.blog-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 27px;
    margin-bottom: 12px;
    font-family: "Poppins", sans-serif;
}

.blog-card-title a {
    color: #0d141e;
    transition: color 0.25s ease;
}

.blog-card-title a:hover {
    color: var(--orange-color);
}

/* Blog Summary Paragraph (2-3 lines max with text truncation) */
.blog-card-summary {
    font-size: 15px;
    line-height: 24px;
    color: #555555;
    margin-bottom: 22px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "Read More" Button / Link - Reshaped as per contact page submit button */
.blog-read-more {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff !important;
    background: var(--orange-color);
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(223, 0, 31, 0.25);
    transition: all 0.3s ease;
}

.blog-read-more i {
    font-size: 14px;
    color: #ffffff;
    transition: transform 0.25s ease;
}

.blog-read-more:hover {
    background-color: #b70016;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 0, 31, 0.38);
}

.blog-read-more:hover i {
    transform: translateX(4px);
}

/* Blog Pagination - Reshaped with 8px border-radius and actual brand color on hover/active */
.blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.blog-pagination .page-btn {
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ffffff;
    color: #0d141e;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.blog-pagination .page-btn:hover,
.blog-pagination .page-btn.active {
    background: var(--orange-color);
    color: #ffffff !important;
    border-color: var(--orange-color);
    box-shadow: 0 4px 14px rgba(223, 0, 31, 0.3);
    transform: translateY(-2px);
}

.blog-pagination .page-btn.next-btn {
    width: auto;
    padding: 0 20px;
    gap: 6px;
}

.blog-pagination .page-btn.next-btn i {
    font-size: 14px;
    transition: transform 0.25s ease;
}

.blog-pagination .page-btn.next-btn:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   Responsive Breakpoints for Blogs Page
   ========================================================================== */

/* Tablet (Screens <= 991.98px) */
@media only screen and (max-width: 991.98px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blog-section {
        padding: 50px 0 70px 0;
    }

    .blog-section-header h2 {
        font-size: 28px;
        line-height: 38px;
    }

    .inner-banner-subtitle {
        font-size: 16px;
        line-height: 25px;
    }
}

/* Mobile (Screens <= 767.98px) */
@media only screen and (max-width: 767.98px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-section {
        padding: 40px 0 60px 0;
    }

    .blog-card-media {
        height: 210px;
    }

    .blog-card-content {
        padding: 18px;
    }

    .blog-card-title {
        font-size: 18px;
        line-height: 25px;
    }

    .blog-section-header h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .inner-banner {
        padding: 60px 0;
    }

    .inner-banner-text h1 {
        font-size: 30px;
        line-height: 36px;
    }
}
