/* Blog Listing Page Styles */

.blog-page-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 20px 60px;
    box-sizing: border-box;
}

.blog-layout-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog-main-col {
    flex: 0 0 calc(69.7% - 15px);
    max-width: calc(69.7% - 15px);
    min-width: 0;
}

.blog-sidebar-col {
    flex: 0 0 calc(30.3% - 15px);
    max-width: calc(30.3% - 15px);
    min-width: 0;
}

/* 3-Column Standard Grid Posts Layout */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 30px;
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: transparent;
}

.blog-post-card .blog-post-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #f6f6f6;
}

.blog-post-card .blog-post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-post-card .blog-post-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
}

.blog-post-card:hover .blog-post-thumb img {
    transform: scale(1.03);
}

.blog-post-card .blog-post-content {
    padding: 0;
    text-align: center;
}

.blog-post-card .blog-post-title {
    font-family: "Beiruti", "Roboto", sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
    text-align: center;
}

.blog-post-card .blog-post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.blog-post-card .blog-post-title a:hover {
    color: #009845;
}

/* Sidebar Custom Styling */
.blog-sidebar-col .product-sidebar-widget {
    margin-bottom: 25px;
}

.blog-sidebar-col .product-sidebar-widget .widget-heading {
    font-family: "Beiruti", "Roboto", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
}

.blog-sidebar-col .sidebar-box-grey {
    background-color: #D3D3D3;
    padding: 25px 20px 20px;
    border-radius: 0px;
}

.blog-sidebar-col .sidebar-enquiry-form .form-group {
    margin-bottom: 12px;
}

.blog-sidebar-col .sidebar-enquiry-form input[type="text"],
.blog-sidebar-col .sidebar-enquiry-form input[type="tel"],
.blog-sidebar-col .sidebar-enquiry-form input[type="email"],
.blog-sidebar-col .sidebar-enquiry-form textarea {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid #767676;
    background: #ffffff;
    border-radius: 0px;
    font-size: 14px;
    color: #000000;
    outline: none;
    transition: border-color 0.2s;
}

.blog-sidebar-col .sidebar-enquiry-form input:focus,
.blog-sidebar-col .sidebar-enquiry-form textarea:focus {
    border-color: #009845;
}

.blog-sidebar-col .sidebar-enquiry-form textarea {
    height: 90px;
    min-height: 90px;
    resize: vertical;
}

.blog-sidebar-col .sidebar-enquiry-form .btn-submit-enquiry {
    background-color: #009845;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 24px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.blog-sidebar-col .sidebar-enquiry-form .btn-submit-enquiry:hover {
    background-color: #037c38;
}

/* Sidebar Link Lists */
.blog-sidebar-col .sidebar-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar-col .sidebar-links-list li {
    padding: 7px 0;
    border-bottom: 1px solid #000000;
}

.blog-sidebar-col .sidebar-links-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-sidebar-col .sidebar-links-list li:first-child {
    padding-top: 0;
}

.blog-sidebar-col .sidebar-links-list a {
    display: flex;
    align-items: center;
    color: #000000;
    font-family: "Beiruti", "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-sidebar-col .sidebar-links-list a svg {
    width: 14px;
    height: 14px;
    margin-right: 10px;
    flex-shrink: 0;
    fill: #000000;
    transition: fill 0.2s ease;
}

.blog-sidebar-col .sidebar-links-list a:hover {
    color: #009845;
}

.blog-sidebar-col .sidebar-links-list a:hover svg {
    fill: #009845;
}

/* Sidebar Recent Posts Widget */
.sidebar-recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-recent-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #c0c0c0;
}

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

.sidebar-recent-post-item .recent-post-thumb {
    flex: 0 0 65px;
    width: 65px;
    height: 50px;
    border-radius: 0px;
    overflow: hidden;
    background: #e0e0e0;
}

.sidebar-recent-post-item .recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-recent-post-item .recent-post-info {
    flex: 1;
    min-width: 0;
}

.sidebar-recent-post-item .recent-post-title {
    font-family: "Beiruti", "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0;
}

.sidebar-recent-post-item .recent-post-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-recent-post-item .recent-post-title a:hover {
    color: #009845;
}

.sidebar-recent-post-item .recent-post-date {
    font-size: 12px;
    color: #666666;
    margin-top: 3px;
    display: block;
}

/* Pagination */
.blog-pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.blog-pagination-wrapper .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 6px;
    align-items: center;
}

.blog-pagination-wrapper .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-family: "Beiruti", "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-pagination-wrapper .page-item.active .page-link,
.blog-pagination-wrapper .page-item .page-link:hover {
    background-color: #009845;
    border-color: #009845;
    color: #ffffff;
}

.blog-pagination-wrapper .page-item.disabled .page-link {
    color: #aaaaaa;
    background: #f9f9f9;
    border-color: #eeeeee;
    cursor: not-allowed;
}

/* Blog Detail Page Styles */
.blog-detail-section {
    padding-top: 35px;
    padding-bottom: 60px;
}

.blog-detail-article {
    width: 100%;
}

.blog-detail-featured-image {
    margin-bottom: 25px;
    text-align: center;
}

.blog-detail-featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
}

.blog-detail-content {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #000000;
    word-break: break-word;
}

.blog-detail-content h1,
.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4,
.blog-detail-content h5,
.blog-detail-content h6 {
    font-family: "Beiruti", "Roboto", sans-serif;
    color: #000000;
    line-height: 1.35;
    margin-top: 25px;
    margin-bottom: 12px;
}

.blog-detail-content h1 {
    font-size: 26px;
    font-weight: 700;
}

.blog-detail-content h2 {
    font-size: 23px;
    font-weight: 700;
}

.blog-detail-content h3 {
    font-size: 19px;
    font-weight: 600;
}

.blog-detail-content h4 {
    font-size: 17px;
    font-weight: 600;
}

.blog-detail-content h5 {
    font-size: 15px;
    font-weight: 600;
}

.blog-detail-content h6 {
    font-size: 14px;
    font-weight: 600;
}

.blog-detail-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 16px;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin-top: 8px;
    margin-bottom: 20px;
    padding-left: 26px;
}

.blog-detail-content ul {
    list-style-type: disc;
}

.blog-detail-content ol {
    list-style-type: decimal;
}

.blog-detail-content li {
    font-size: 15px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 6px;
}

.blog-detail-content a {
    color: #1155cc;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blog-detail-content a:hover {
    color: #009845;
}

.blog-detail-content strong,
.blog-detail-content b {
    font-weight: 700;
    color: #000000;
}

.blog-detail-content em,
.blog-detail-content i {
    font-style: italic;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 0;
}

.blog-detail-content figure {
    text-align: center;
    margin: 20px auto;
}

.blog-detail-content figure img {
    margin-left: auto;
    margin-right: auto;
}

.blog-detail-content p:has(> img) {
    text-align: center;
}

.blog-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.blog-detail-content table th,
.blog-detail-content table td {
    border: 1px solid #dcdcdc;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}

.blog-detail-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #000000;
    font-family: "Beiruti", "Roboto", sans-serif;
    font-size: 16px;
}

.blog-detail-content blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    background-color: #f8f9fa;
    border-left: 4px solid #009845;
    font-style: italic;
    color: #333333;
}

.blog-detail-content .disclimer,
.blog-detail-content .disclaimer {
    margin-top: 25px;
    margin-bottom: 20px;
    font-style: italic;
    color: #333333;
}

.blog-detail-content .disclimer p,
.blog-detail-content .disclaimer p {
    margin-bottom: 0;
    font-style: italic;
}

/* Post Bottom Category & Product Tags Section */
.post-bottom-tags-section {
    width: 100%;
    border: 2px dotted #009845;
    background-color: transparent;
    margin: 25px 0 50px 0;
    padding: 35px 0 25px 0;
    box-sizing: border-box;
}

.post-bottom-tags-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.post-bottom-tag-block {
    margin-bottom: 30px;
}

.post-bottom-tag-block:last-child {
    margin-bottom: 0;
}

.post-bottom-tag-block h6.title {
    font-family: "Beiruti", "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin: 0 0 14px 0;
}

.post-bottom-tag-block .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
}

.post-bottom-tag-block .tags span a {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f9f9f9;
    font-size: 13px;
    color: #000000;
    text-decoration: none;
    transition: all 0.25s ease;
}

.post-bottom-tag-block .tags span a:hover {
    background: #d60000;
    color: #ffffff;
    border-color: #d60000;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .blog-main-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .blog-sidebar-col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-page-section {
        padding: 20px 15px 40px;
    }

    .post-bottom-tags-section {
        padding: 0 15px;
    }

    .post-bottom-tags-wrapper {
        padding: 18px 15px;
    }
}