﻿
/*------------Blog-----------------*/
/* Blog Section Container */
.blog-section-container {
    margin-top: 60px; /* Ample space above the section */
    margin-bottom: 60px; /* Ample space below the section */
}

/* Blog Section Header */
.blog-section-header h2 {
    color: #0A66C2; /* Brand's Dark Blue for section titles */
    font-size: 32px; /* Larger title for blog section */
    font-weight: bold;
    margin-bottom: 30px;
    position: relative;
    display: inline-block; /* To center the underline */
}

    .blog-section-header h2::after {
        content: '';
        display: block;
        width: 80px; /* Wider underline for main blog title */
        height: 4px; /* Thicker underline */
        background-color: #32CD32; /* Brand's Bright Green */
        margin: 10px auto 0 auto;
        border-radius: 2px;
    }


/* Blog Item Card */
.blog-item-card { /* Renamed from .blog-content for consistency with product cards */
    background: #FFFFFF;
    border: none; /* Removing default border */
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); /* Softer, deeper shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px; /* More space between blog cards */
    overflow: hidden; /* Ensure image and content respect border-radius */
    display: flex; /* Use flexbox to organize content */
    flex-direction: column; /* Stack content vertically */
    height: 100%; /* Ensure cards are same height in a row */
}

    .blog-item-card:hover {
        transform: translateY(-8px); /* Lift effect on hover */
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2); /* Stronger shadow on hover */
    }

    .blog-item-card .blog-item-thumbnail {
        margin: 0;
        line-height: 0; /* Remove extra space below image */
    }

        .blog-item-card .blog-item-thumbnail img {
            height: 220px; /* Consistent height for blog post images */
            object-fit: cover; /* Cover the area, cropping if necessary */
            border-top-left-radius: 12px; /* Match card radius */
            border-top-right-radius: 12px; /* Match card radius */
            transition: transform 0.3s ease; /* Smooth zoom on image */
        }

    .blog-item-card:hover .blog-item-thumbnail img {
        transform: scale(1.05); /* Slight zoom on image hover */
    }

    .blog-item-card .blog-item-content {
        padding: 25px; /* Ample padding inside the content area */
        display: flex;
        flex-direction: column;
        flex-grow: 1; /* Allow content to grow and push elements down */
        justify-content: space-between; /* Push button to bottom */
    }

    .blog-item-card h5 {
        color: #0A66C2; /* Brand's Dark Blue for blog titles */
        font-size: 20px; /* Larger, more readable title */
        font-weight: bold;
        margin-bottom: 15px;
        line-height: 1.5; /* Better line height for titles */
        text-align: right; /* Align title to the right for RTL */
    }

        .blog-item-card h5 i {
            color: #32CD32; /* Brand's Bright Green for title icons */
            margin-left: 10px; /* Space between icon and text for RTL */
            font-size: 20px; /* Adjust icon size */
        }

    .blog-item-card p {
        color: #555; /* Slightly lighter text for readability */
        font-size: 15px;
        line-height: 1.8; /* Improved line height for body text */
        text-align: justify;
        margin-bottom: 20px;
        flex-grow: 1; /* Allow paragraph to take up available space */
    }

    .blog-item-card .blog-meta-list { /* Renamed from ul for specificity */
        list-style: none; /* Remove bullet points */
        padding: 0;
        margin: 0 0 20px 0; /* Space below meta list */
        text-align: right; /* Align meta to the right */
    }

        .blog-item-card .blog-meta-list li {
            color: #666; /* Softer gray for meta info */
            font-size: 14px;
            margin-bottom: 8px; /* Space between list items */
            display: flex; /* Use flex to align icon and text */
            align-items: center;
        }

            .blog-item-card .blog-meta-list li i {
                color: #32CD32; /* Brand's Bright Green for meta icons */
                font-size: 15px;
                margin-left: 8px; /* Space between icon and text for RTL */
            }

.btnContinue {
    min-height: 80px;
    max-height: 80px;
    overflow: auto;
}

/* Read More Button (using agrinshop primary button style) */
.btn-blog-readmore { /* Specific class for blog read more button */
    display: inline-block;
    padding: 10px 20px; /* More padding for a better click target */
    text-decoration: none;
    border-radius: 10px; /* Fully rounded button for modern look */
    font-size: 16px; /* Slightly larger font */
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    background-color: #28A745; /* **Brand's Bright Green for CTA (Action, Freshness)** */
    color: #FFFFFF;
    border: 1px solid #007BFF;
}

    .btn-blog-readmore:hover {
        background-color: #007BFF; /* Darker green on hover */
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

    .btn-blog-readmore i {
        margin-right: 8px; /* Space between text and icon for RTL */
    }

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .blog-section-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .blog-section-container {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .blog-section-header h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .blog-item-card {
        margin-bottom: 25px;
    }

        .blog-item-card .blog-item-thumbnail img {
            height: 180px; /* Adjust height for mobile */
        }

        .blog-item-card .blog-item-content {
            padding: 20px;
        }

        .blog-item-card h5 {
            font-size: 18px;
            margin-bottom: 10px;
        }

        .blog-item-card p {
            font-size: 14px;
            margin-bottom: 15px;
        }

    .btn-blog-readmore {
        font-size: 14px;
        padding: 8px 15px;
    }
}
/*------------Blog-----------------*/
