/* ===================================================
   EC3 POWERCON BLOG - MAIN STYLESHEET
   =================================================== */

:root {
    --ec3-red: #e8442f;
    --ec3-dark: #1c2b4a;
    --ec3-yellow: #ffc107;
    --ec3-gray-bg: #f7f8fa;
    --ec3-text-muted: #6c757d;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--ec3-gray-bg);
    color: #333;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* ===================== PAGE BANNER ===================== */
.page-banner {
    background: linear-gradient(135deg, var(--ec3-red) 0%, #c8331f 100%);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    color: #fff;
    font-weight: 800;
    font-size: 2.8rem;
    margin: 0;
}

.breadcrumb-bar {
    background: #f5f6fb;
    padding: 12px 0;
    border-bottom: 1px solid #e4e7ef;
}

.breadcrumb-bar a,
.breadcrumb-bar span {
    color: #626b7a;
    font-size: 0.9rem;
}

.breadcrumb-bar a {
    color: var(--ec3-red);
    font-weight: 600;
    text-decoration: none;
}

/* ===================== BLOG FILTER TABS ===================== */
.filter-tabs {
    text-align: center;
    margin: 40px 0 30px;
}

.filter-tabs .btn {
    border-radius: 25px;
    padding: 8px 26px;
    margin: 0 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--ec3-dark);
}

.filter-tabs .btn.active {
    background: var(--ec3-yellow);
    border-color: var(--ec3-yellow);
    color: var(--ec3-dark);
}

/* ===================== BLOG CARDS ===================== */
.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

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

.blog-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-card .post-meta {
    font-size: 0.78rem;
    color: var(--ec3-text-muted);
    margin-bottom: 8px;
}

.blog-card .post-meta i {
    color: var(--ec3-red);
    margin-right: 4px;
}

.blog-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ec3-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--ec3-dark);
    text-decoration-line: underline;
    text-decoration-color: #111;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.blog-card h3 a:hover {
    color: var(--ec3-red);
    text-decoration-color: #111;
}

.blog-card p.excerpt {
    font-size: 0.88rem;
    color: var(--ec3-text-muted);
    flex: 1;
}

.blog-card .read-more {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ec3-red);
    margin-top: 10px;
}

.blog-card .read-more i {
    margin-left: 4px;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--ec3-yellow);
    color: var(--ec3-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 3px;
    text-transform: uppercase;
}

/* ===================== PAGINATION ===================== */
.pagination .page-link {
    color: var(--ec3-dark);
    border-radius: 4px;
    margin: 0 3px;
}

.pagination .page-item.active .page-link {
    background: var(--ec3-red);
    border-color: var(--ec3-red);
}

/* ===================== SINGLE BLOG PAGE ===================== */
.single-post-banner {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--ec3-red), #c8331f);
    margin-bottom: 40px;
}

.single-post-banner img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.post-content-area {
    background: #fff;
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.post-content-area h1.post-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ec3-dark);
    margin-bottom: 15px;
}

.post-content-area .post-meta-row {
    font-size: 0.85rem;
    color: var(--ec3-text-muted);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.post-content-area .post-meta-row span {
    margin-right: 18px;
}

.post-content-area .post-meta-row i {
    color: var(--ec3-red);
    margin-right: 5px;
}

.post-body {
    font-size: 0.98rem;
    line-height: 1.85;
    color: #444;
}

.post-body h2,
.post-body h3 {
    color: var(--ec3-dark);
    font-weight: 700;
    margin-top: 25px;
}

.post-body img {
    max-width: 100%;
    border-radius: 6px;
    margin: 15px 0;
}

.post-body ul,
.post-body ol {
    padding-left: 22px;
}

.post-tags {
    margin-top: 25px;
}

.post-tags a {
    display: inline-block;
    background: var(--ec3-gray-bg);
    color: var(--ec3-dark);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 3px 4px;
    border: 1px solid #e0e0e0;
}

.post-tags a:hover {
    background: var(--ec3-red);
    color: #fff;
}

/* ===================== SIDEBAR ===================== */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.sidebar-widget h5 {
    font-weight: 700;
    color: var(--ec3-dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ec3-yellow);
    display: inline-block;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

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

.recent-post-item h6 {
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.35;
}

.recent-post-item h6 a {
    color: var(--ec3-dark);
}

.recent-post-item h6 a:hover {
    color: var(--ec3-red);
}

.archive-list a,
.category-list a {
    display: block;
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #f3f3f3;
    font-size: 0.9rem;
}

.archive-list a:hover,
.category-list a:hover {
    color: var(--ec3-red);
    padding-left: 5px;
}

.sidebar-widget .btn-brochure,
.post-content-area .btn-brochure {
    background: var(--ec3-dark);
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0;
}

.sidebar-widget .btn-brochure:hover,
.post-content-area .btn-brochure:hover {
    background: var(--ec3-red) !important;
}

/* ===================== COMMENTS ===================== */
.comments-section {
    margin-top: 35px;
}

.comment-item {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ec3-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-body .c-name {
    font-weight: 700;
    color: var(--ec3-dark);
    font-size: 0.92rem;
}

.comment-body .c-date {
    font-size: 0.75rem;
    color: var(--ec3-text-muted);
    margin-left: 8px;
}

.comment-body p {
    font-size: 0.9rem;
    margin-top: 5px;
    margin-bottom: 0;
    color: #555;
}

.comment-form input,
.comment-form textarea {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 0.9rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--ec3-red);
    box-shadow: none;
}

.btn-submit-comment {
    background: var(--ec3-red);
    color: #fff;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 5px;
    border: none;
}

.btn-submit-comment:hover {
    background: var(--ec3-dark);
    color: #fff;
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: var(--ec3-dark);
    color: #cfd6e4;
    padding: 50px 0 0;
    margin-top: 50px;
}

.site-footer .footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 18px;
}

.site-footer .footer-about {
    font-size: 0.88rem;
    color: #aab3c5;
}

.site-footer .footer-links a {
    color: #aab3c5;
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
}

.site-footer .footer-links a:hover {
    color: var(--ec3-yellow);
    padding-left: 4px;
}

.site-footer p {
    font-size: 0.88rem;
    color: #aab3c5;
}

.site-footer .footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    color: #99a1b3;
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 18px;
    background: #5ed56f !important;
    color: #fff !important;
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, .4) !important;
    z-index: 9999;
    text-decoration: none;
    transition: all .3s ease !important;
}

.whatsapp-float:hover {
    color: #fff !important;
    transform: scale(1.15) !important;
}

/* ===================== ALERTS ===================== */
.alert-success-custom {
    background: #e6f7ee;
    border: 1px solid #b8e6cc;
    color: #1c7a45;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .page-banner h1 {
        font-size: 2rem;
    }

    .post-content-area {
        padding: 20px;
    }
}
