:root {
    --primary-color: #98b569;
    --secondary-color: #000;
    --text-color: #2f3777;
    --optional-color: #0451a8;
    --red-color: #e73332;
}

/* Blog Card Styles */
.blog-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fbf6 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--primary-color);
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(152, 181, 105, 0.25);
    border-color: var(--optional-color);
}

/* Blog Card Image */
.blog-card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--optional-color) 100%
    );
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.08);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(152, 181, 105, 0.15) 0%,
        rgba(4, 81, 168, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

/* Blog Card Body */
.blog-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        135deg,
        rgba(152, 181, 105, 0.05) 0%,
        rgba(4, 81, 168, 0.03) 100%
    );
    border-left: 1px solid var(--primary-color);
}

/* Blog Card Title */
.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--optional-color);
}

/* Blog Card Meta */
.blog-card-meta {
    font-size: 13px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.blog-card-meta small {
    color: var(--text-color) !important;
    font-weight: 500;
}

/* Blog Card Description */
.blog-card-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

/* Read More Button */
.read-more-btn {
    align-self: flex-start;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--optional-color) 100%
    );
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(152, 181, 105, 0.25);
}

.read-more-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(152, 181, 105, 0.4);
    background: linear-gradient(
        135deg,
        var(--optional-color) 0%,
        var(--primary-color) 100%
    );
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card-title {
        font-size: 16px;
    }

    .blog-card-description {
        font-size: 13px;
    }

    .blog-card-image-wrapper {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .blog-card-body {
        padding: 18px;
    }

    .blog-card-title {
        font-size: 15px;
    }

    .blog-card-image-wrapper {
        height: 180px;
    }
}

/* ===== BLOG DETAILS PAGE STYLES ===== */

/* Blog Banner */
.blog-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--optional-color) 100%
    );
}

.blog-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(152, 181, 105, 0.2) 0%,
        rgba(4, 81, 168, 0.3) 100%
    );
}

/* Blog Details Section */
.blog-details-section {
    background: #fff;
}

/* Blog Meta Info */
.blog-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    flex-wrap: wrap;
    gap: 20px;
}

.blog-author,
.blog-date {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--optional-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}

/* Blog Detail Title */
.blog-detail-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Blog Divider */
.blog-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--optional-color) 100%
    );
    margin-bottom: 30px;
    border-radius: 2px;
}

/* Blog Content */
.blog-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.blog-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.blog-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.blog-content ul li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--text-color);
    line-height: 1.8;
}

.blog-content ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.blog-list {
    background: linear-gradient(
        135deg,
        rgba(152, 181, 105, 0.05) 0%,
        rgba(4, 81, 168, 0.03) 100%
    );
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* ===== TABLE STYLES ===== */
.blog-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.blog-table thead {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--optional-color) 100%
    );
}

.blog-table thead th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-table tbody td {
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

.blog-table tbody tr {
    transition: all 0.3s ease;
}

.blog-table tbody tr:nth-child(even) {
    background: linear-gradient(
        135deg,
        rgba(152, 181, 105, 0.03) 0%,
        rgba(4, 81, 168, 0.02) 100%
    );
}

.blog-table tbody tr:hover {
    background: linear-gradient(
        135deg,
        rgba(152, 181, 105, 0.08) 0%,
        rgba(4, 81, 168, 0.05) 100%
    );
}

.blog-table tbody tr:last-child td {
    border-bottom: 2px solid var(--primary-color);
}

/* Blog Quote */
.blog-quote {
    display: block;
    padding: 20px;
    margin: 30px 0;
    font-size: 18px;
    font-style: italic;
    color: var(--optional-color);
    border-left: 5px solid var(--primary-color);
    background: linear-gradient(
        135deg,
        rgba(152, 181, 105, 0.05) 0%,
        rgba(4, 81, 168, 0.03) 100%
    );
    border-radius: 4px;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--primary-color);
}

.blog-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--optional-color) 100%
    );
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(152, 181, 105, 0.3);
}

/* Blog Navigation */
.blog-navigation {
    border-top: 2px solid #e5e5e5;
    padding-top: 30px;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(152, 181, 105, 0.25);
}

.btn-back:hover {
    background: var(--optional-color);
    transform: translateX(-4px);
    box-shadow: 0 6px 16px rgba(4, 81, 168, 0.3);
    color: #fff;
    text-decoration: none;
}

/* ===== SIDEBAR STYLES ===== */
.blog-sidebar {
    padding-left: 20px;
}

.sidebar-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f9fbf6 100%);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

/* Related Posts */
.related-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-post:last-child {
    margin-bottom: 0;
}

.related-post:hover {
    background: linear-gradient(
        135deg,
        rgba(152, 181, 105, 0.08) 0%,
        rgba(4, 81, 168, 0.05) 100%
    );
    transform: translateX(4px);
}

.related-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-post-info h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.related-post-info small {
    font-size: 11px;
    color: var(--optional-color);
    font-weight: 500;
}

/* Sidebar List */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(152, 181, 105, 0.2);
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.sidebar-list a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .blog-sidebar {
        padding-left: 0;
        margin-top: 40px;
    }

    .blog-detail-title {
        font-size: 32px;
    }

    .blog-banner {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .blog-meta-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-detail-title {
        font-size: 28px;
    }

    .blog-content {
        font-size: 15px;
    }

    .blog-content h3 {
        font-size: 20px;
    }

    .blog-quote {
        font-size: 16px;
        padding: 16px;
    }

    .blog-banner {
        height: 250px;
    }

    .blog-table {
        font-size: 13px;
    }

    .blog-table thead th,
    .blog-table tbody td {
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .blog-banner {
        height: 200px;
    }

    .blog-detail-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .blog-meta-info {
        font-size: 13px;
        gap: 15px;
    }

    .blog-content {
        font-size: 14px;
        line-height: 1.7;
    }

    .blog-content h3 {
        font-size: 18px;
        margin-top: 20px;
    }

    .blog-table {
        font-size: 12px;
    }

    .blog-table thead th,
    .blog-table tbody td {
        padding: 8px 10px;
    }

    .blog-tags {
        gap: 8px;
    }

    .blog-tag {
        font-size: 10px;
        padding: 6px 12px;
    }
}
