/* =============================================
   CARENZA BLOG PAGE & POST DETAIL CSS
   Design by Ajeet Jai
   ============================================= */

/* --- Blog Page Hero Banner --- */
.blog-hero-banner {
    background: linear-gradient(135deg, #006854 0%, #007f7d 50%, #009688 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.blog-hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.blog-hero-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.blog-hero-banner .banner-content {
    position: relative;
    z-index: 5;
}

.blog-hero-banner h1 {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: "Poppins", sans-serif;
}

.blog-hero-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    font-family: "Poppins", sans-serif;
}

.blog-breadcrumb {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.blog-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: 0.3s;
}

.blog-breadcrumb a:hover {
    color: #fff;
}

.blog-breadcrumb span {
    margin: 0 8px;
    color: rgba(255,255,255,0.5);
}

/* --- Blog Listing Section --- */
.blog-listing-section {
    padding: 70px 0 90px;
    background: #f8fffe;
}

.blog-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-section-header .section-tag {
    display: inline-block;
    background: linear-gradient(to right, #006854, #007f7d);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 15px;
    font-family: "Poppins", sans-serif;
}

.blog-section-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-family: "Poppins", sans-serif;
}

.blog-section-header h2 span {
    color: #007f7d;
}

.blog-section-header p {
    font-size: 15px;
    color: #777;
    max-width: 580px;
    margin: 0 auto;
    font-family: "Poppins", sans-serif;
}

/* --- Blog Cards --- */
.blog-card-wrap {
    margin-bottom: 30px;
}

.blog-card-new {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 127, 125, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,127,125,0.08);
}

.blog-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 127, 125, 0.14);
}

.blog-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.blog-card-new:hover .blog-card-img-wrap img {
    transform: scale(1.06);
}

.blog-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(to right, #006854, #007f7d);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    z-index: 2;
}

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

.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #999;
    font-family: "Poppins", sans-serif;
}

.blog-meta-item i {
    color: #007f7d;
    font-size: 11px;
}

.blog-card-body-new h5.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.45;
    margin-bottom: 12px;
    font-family: "Poppins", sans-serif;
    transition: color 0.3s;
}

.blog-card-new:hover h5.blog-title {
    color: #007f7d;
}

.blog-card-body-new .blog-excerpt {
    font-size: 13.5px;
    color: #777;
    line-height: 1.65;
    margin-bottom: 20px;
    flex: 1;
    font-family: "Poppins", sans-serif;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007f7d;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 9px 20px;
    border: 2px solid #007f7d;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: "Poppins", sans-serif;
    align-self: flex-start;
    margin-top: auto;
}

.blog-read-more:hover {
    background: linear-gradient(to right, #006854, #007f7d);
    color: #fff;
    border-color: transparent;
    gap: 12px;
}

.blog-read-more i {
    transition: transform 0.3s;
}

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

/* --- Featured Post (first post larger) --- */
.blog-featured-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 127, 125, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid rgba(0,127,125,0.08);
    margin-bottom: 30px;
}

.blog-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 127, 125, 0.14);
}

.blog-featured-card .blog-card-img-wrap img {
    height: 350px;
}

.blog-featured-card .blog-card-body-new h5.blog-title {
    font-size: 22px;
}

/* --- No posts placeholder --- */
.no-posts-wrap {
    text-align: center;
    padding: 80px 20px;
}

.no-posts-wrap i {
    font-size: 60px;
    color: #007f7d;
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}

.no-posts-wrap h4 {
    color: #555;
    font-family: "Poppins", sans-serif;
}

/* --- Pagination --- */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.blog-pagination .page-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-family: "Poppins", sans-serif;
}

.blog-pagination .page-link:hover,
.blog-pagination .page-link.current {
    background: linear-gradient(to right, #006854, #007f7d);
    color: #fff;
    border-color: transparent;
}

/* =============================================
   SINGLE / POST DETAIL PAGE
   ============================================= */

.post-detail-hero {
    background: linear-gradient(135deg, #006854 0%, #007f7d 100%);
    padding: 70px 0 55px;
    position: relative;
    overflow: hidden;
}

.post-detail-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.post-detail-hero .banner-content {
    position: relative;
    z-index: 5;
}

.post-detail-hero .post-category-top {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    font-family: "Poppins", sans-serif;
    border: 1px solid rgba(255,255,255,0.3);
}

.post-detail-hero h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    font-family: "Poppins", sans-serif;
}

.post-detail-hero .post-meta-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.post-detail-hero .post-meta-hero span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-family: "Poppins", sans-serif;
}

.post-detail-hero .post-meta-hero i {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.post-detail-hero .breadcrumb-bar {
    margin-top: 20px;
    font-size: 13px;
}

.post-detail-hero .breadcrumb-bar a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.post-detail-hero .breadcrumb-bar a:hover { color: #fff; }

.post-detail-hero .breadcrumb-bar .sep {
    margin: 0 8px;
    color: rgba(255,255,255,0.4);
}

.post-detail-hero .breadcrumb-bar .current-pg {
    color: rgba(255,255,255,0.6);
}

/* --- Post Content Section --- */
.post-content-section {
    padding: 70px 0 90px;
    background: #f8fffe;
}

.post-main-image {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
    margin-bottom: 40px;
    max-height: 480px;
    object-fit: cover;
}

.post-article {
    background: #fff;
    border-radius: 18px;
    padding: 45px 50px;
    box-shadow: 0 8px 30px rgba(0,127,125,0.06);
    border: 1px solid rgba(0,127,125,0.07);
}

.post-article .article-content {
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.85;
    color: #444;
}

.post-article .article-content h1,
.post-article .article-content h2,
.post-article .article-content h3,
.post-article .article-content h4,
.post-article .article-content h5,
.post-article .article-content h6 {
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 16px;
    font-family: "Poppins", sans-serif;
}

.post-article .article-content h2 { font-size: 26px; }
.post-article .article-content h3 { font-size: 22px; }
.post-article .article-content h4 { font-size: 19px; }

.post-article .article-content p {
    margin-bottom: 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.85;
    font-family: "Poppins", sans-serif;
}

.post-article .article-content a {
    color: #007f7d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-article .article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.post-article .article-content ul,
.post-article .article-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
    font-family: "Poppins", sans-serif;
}

.post-article .article-content ul li,
.post-article .article-content ol li {
    margin-bottom: 8px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    list-style: disc;
    padding-left: 5px;
}

.post-article .article-content ol li {
    list-style: decimal;
}

.post-article .article-content blockquote {
    border-left: 4px solid #007f7d;
    background: #f0fafa;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #555;
}

.post-article .article-content blockquote p {
    margin: 0;
    font-size: 16px;
}

/* --- Tags --- */
.post-tags-wrap {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.post-tags-wrap .tag-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-right: 10px;
    font-family: "Poppins", sans-serif;
}

.post-tags-wrap a {
    display: inline-block;
    background: #f0fafa;
    color: #007f7d;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    margin: 3px 4px 3px 0;
    border: 1px solid rgba(0,127,125,0.2);
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s;
}

.post-tags-wrap a:hover {
    background: linear-gradient(to right, #006854, #007f7d);
    color: #fff;
    border-color: transparent;
}

/* --- Share Bar --- */
.post-share-bar {
    background: #fff;
    border-radius: 14px;
    padding: 22px 26px;
    box-shadow: 0 5px 20px rgba(0,127,125,0.07);
    border: 1px solid rgba(0,127,125,0.08);
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.post-share-bar .share-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    font-family: "Poppins", sans-serif;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-family: "Poppins", sans-serif;
}

.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.twitter  { background: #1da1f2; color: #fff; }
.share-btn.whatsapp { background: #25d366; color: #fff; }
.share-btn.linkedin { background: #0077b5; color: #fff; }
.share-btn:hover    { opacity: 0.88; transform: translateY(-2px); }

/* --- Post Navigation --- */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.post-nav-item {
    background: #fff;
    border-radius: 14px;
    padding: 22px 25px;
    box-shadow: 0 5px 20px rgba(0,127,125,0.07);
    border: 1px solid rgba(0,127,125,0.08);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-nav-item:hover {
    box-shadow: 0 12px 35px rgba(0,127,125,0.14);
    transform: translateY(-4px);
    border-color: rgba(0,127,125,0.25);
}

.post-nav-item .nav-direction {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #007f7d;
    font-family: "Poppins", sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-nav-item .nav-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    font-family: "Poppins", sans-serif;
}

.post-nav-item.next-post {
    text-align: right;
}

.post-nav-item.next-post .nav-direction {
    justify-content: flex-end;
}

/* --- Related Posts --- */
.related-posts-section {
    margin-top: 60px;
}

.related-posts-section .related-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.related-posts-section .related-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: "Poppins", sans-serif;
    margin: 0;
}

.related-posts-section .related-header .header-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #007f7d, transparent);
    border-radius: 2px;
}

/* --- Sidebar --- */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 28px 26px;
    margin-bottom: 28px;
    box-shadow: 0 5px 20px rgba(0,127,125,0.07);
    border: 1px solid rgba(0,127,125,0.08);
}

.sidebar-widget .widget-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #007f7d;
    font-family: "Poppins", sans-serif;
    position: relative;
}

.sidebar-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #007f7d;
}

/* Recent posts widget */
.sidebar-recent-post {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-recent-post:last-child { border-bottom: none; }

.sidebar-recent-post:hover { transform: translateX(4px); }

.sidebar-recent-post img {
    width: 65px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-recent-post .recent-post-info .recent-post-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    font-family: "Poppins", sans-serif;
    transition: color 0.3s;
    display: block;
    margin-bottom: 5px;
}

.sidebar-recent-post:hover .recent-post-title { color: #007f7d; }

.sidebar-recent-post .recent-post-info .recent-date {
    font-size: 11px;
    color: #aaa;
    font-family: "Poppins", sans-serif;
}

/* Category list widget */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li {
    padding: 0;
    margin: 0;
}

.sidebar-category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s;
}

.sidebar-category-list li:last-child a { border-bottom: none; }

.sidebar-category-list li a:hover { color: #007f7d; padding-left: 6px; }

.sidebar-category-list li a .count {
    background: #f0fafa;
    color: #007f7d;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 50px;
}

/* CTA Widget */
.sidebar-cta-widget {
    background: linear-gradient(135deg, #006854, #007f7d) !important;
    text-align: center;
}

.sidebar-cta-widget .widget-title {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,0.3) !important;
}

.sidebar-cta-widget p {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin-bottom: 18px;
    font-family: "Poppins", sans-serif;
}

.sidebar-cta-widget .cta-btn {
    display: inline-block;
    background: #fff;
    color: #007f7d;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: "Poppins", sans-serif;
}

.sidebar-cta-widget .cta-btn:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 991px) {
    .blog-hero-banner h1 { font-size: 32px; }
    .post-detail-hero h1 { font-size: 28px; }
    .post-article { padding: 30px 25px; }
    .post-navigation { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; margin-top: 50px; }
}

@media (max-width: 767px) {
    .blog-hero-banner { padding: 55px 0 40px; }
    .blog-hero-banner h1 { font-size: 26px; }
    .blog-listing-section { padding: 50px 0 70px; }
    .post-detail-hero h1 { font-size: 22px; }
    .post-article { padding: 24px 18px; }
    .blog-section-header h2 { font-size: 26px; }
    .post-share-bar { gap: 8px; }
}
