/* Blog Page Styles */

main {
    padding-top: 140px;
}

@media (max-width: 600px) {
    main {
        padding-top: 84px;
    }
}

/* Blog Container */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding-top: 1px;
}

/* Blog Card */
/* Blog Card */
.blog-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 450px;
    /* Increased height to accommodate Read More button */
    position: relative;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: #2e7d32;
}

.blog-image {
    width: 100%;
    height: 70%;
    /* Adjusted to balance with 30% content area */
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Image zoom effect within container */
.blog-image-wrapper {
    /* Deprecated wrapper, styling logic moved to .blog-image */
    display: contents;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

/* Subtle zoom */

.blog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    border-top: 3px solid #f3f4f6;
    height: 30%;
    /* Increased to show Read More button */
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease;
}

.blog-card:hover .blog-content {
    border-top-color: #2e7d32;
    height: 85%;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
    /* Reduced from 15px */
    color: #666;
    font-size: 0.9rem;
}

.blog-meta:empty {
    display: none;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 700;
    text-align: left;
    line-height: 1.4;
    transition: color 0.3s ease;
    overflow: visible;
    /* Ensure full title is visible */
    display: block;
}

.blog-card:hover .blog-title {
    color: #2e7d32;
}

.blog-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: left;

    /* Reveal Animation Logic */
    opacity: 0;
    max-height: 0;
    /* Fully collapse */
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    transition: opacity 0.3s ease 0.1s, max-height 0.3s ease 0.1s, margin 0.3s ease 0.1s;

    display: block;
}

.blog-card:hover .blog-excerpt {
    opacity: 1;
    max-height: 15em;
    /* Increased to 15em to ensure full text is shown without truncation */
    margin-top: 12px;
    margin-bottom: 12px;
}

.blog-card .read-more,
.blog-card .bdpp-rdmr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 0;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
    /* Push to bottom of flex container */
    align-self: flex-start;
}

.blog-card .read-more::after,
.blog-card .bdpp-rdmr-btn::after {
    content: "\2192";
    transition: margin-left 0.3s ease;
}

.blog-card .read-more:hover,
.blog-card .bdpp-rdmr-btn:hover {
    color: #1b5e20;
    gap: 12px;
}

/* Blog Categories */
.blog-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 20px;
    border: 2px solid #0a8a3a;
    background: white;
    color: #0a8a3a;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #0a8a3a;
    color: white;
}

/* Responsive */
/* Blog Post Specific Images */
.blog-post-1 .blog-image {
    background-image: url('../images/post-1.png');
    background-size: cover;
    background-position: center;
}

.blog-post-2 .blog-image {
    background-image: url('../images/post-2.jpg');
    background-size: cover;
    background-position: center;
}

.blog-post-3 .blog-image {
    background-image: url('../images/post-3.png');
    background-size: cover;
    background-position: center;
}

.blog-post-4 .blog-image {
    background-image: url('../images/post-4.png');
    background-size: cover;
    background-position: center;
}

.blog-post-5 .blog-image {
    background-image: url('../images/Products/Plastic_Carrier_Bag.png');
    background-size: cover;
    background-position: center;
}

.blog-post-6 .blog-image {
    background-image: url('../images/Products/Foam_Box.png');
    background-size: cover;
    background-position: center;
}

.blog-post-7 .blog-image {
    background-image: url('../images/post-7.png');
    background-size: cover;
    background-position: center;
}

.blog-post-8 .blog-image {
    background-image: url('../images/post-8.png');
    background-size: cover;
    background-position: center;
}

.blog-post-9 .blog-image {
    background-image: url('../images/post-10.png');
    background-size: cover;
    background-position: center;
}

.blog-post-10 .blog-image {
    background-image: url('../images/post-11.jpg');
    background-size: cover;
    background-position: center;
}

.blog-post-11 .blog-image {
    background-image: url('../images/Products/String_Bag.png');
    background-size: cover;
    background-position: center;
}

.blog-post-12 .blog-image {
    background-image: url('../images/post-13.png');
    background-size: cover;
    background-position: center;
}

.blog-post-13 .blog-image {
    background-image: url('../images/post-14.png');
    background-size: cover;
    background-position: center;
}

.blog-post-32 .blog-image {
    background-image: url('../images/post-14.png');
    background-size: cover;
    background-position: center;
}

.blog-post-14 .blog-image {
    background-image: url('../images/post-15(1).png');
    background-size: cover;
    background-position: center;
}

.blog-post-15 .blog-image {
    background-image: url('../images/post-16.png');
    background-size: cover;
    background-position: center;
}

.blog-post-16 .blog-image {
    background-image: url('../images/post-17.png');
    background-size: cover;
    background-position: center;
}

.blog-post-17 .blog-image {
    background-image: url('../images/Products/Good_Morning_Towel.png');
    background-size: cover;
    background-position: center;
}

.blog-post-18 .blog-image {
    background-image: url('../images/Products/STRING-BAG.png');
    background-size: cover;
    background-position: center;
}

.blog-post-19 .blog-image {
    background-image: url('../images/Products/bio_Deo.png');
    background-size: cover;
    background-position: center;
}

.blog-post-20 .blog-image {
    background-image: url('../images/Products/Foam_Box.png');
    background-size: cover;
    background-position: center;
}

.blog-post-21 .blog-image {
    background-image: url('../images/Products/Food_Services_Gloves.png');
    background-size: cover;
    background-position: center;
}

.blog-post-22 .blog-image {
    background-image: url('../images/Products/Foam_Box.png');
    background-size: cover;
    background-position: center;
}

.blog-post-23 .blog-image {
    background-image: url('../images/Products/Hot_Paper_Cup.png');
    background-size: cover;
    background-position: center;
}

.blog-post-24 .blog-image {
    background-image: url('../images/Paper_Bag/Paper_Bags_img.jpg');
    background-size: cover;
    background-position: center;
}

.blog-post-25 .blog-image {
    background-image: url('../images/Products/Raffia_String.png');
    background-size: cover;
    background-position: center;
}

.blog-post-26 .blog-image {
    background-image: url('../images/Products/Good_Morning_Towel.png');
    background-size: cover;
    background-position: center;
}

.blog-post-27 .blog-image {
    background-image: url('../images/Products/Detergent.png');
    background-size: cover;
    background-position: center;
}

.blog-post-28 .blog-image {
    background-image: url('../images/Products/Cutlery.png');
    background-size: cover;
    background-position: center;
}

.blog-post-29 .blog-image {
    background-image: url('../images/Products/String_Bag.png');
    background-size: cover;
    background-position: center;
}

.blog-post-30 .blog-image {
    background-image: url('../images/Products/Plastic_Bag.png');
    background-size: cover;
    background-position: center;
}

.blog-post-31 .blog-image {
    background-image: url('../images/post-24.png');
    background-size: cover;
    background-position: center;
}

.blog-post-32 .blog-image {
    background-image: url('../images/PP%20container.png');
    background-size: cover;
    background-position: center;
}

.blog-post-33 .blog-image {
    background-image: url('../images/Products/Food_Services_Gloves.png');
    background-size: cover;
    background-position: center;
}

.blog-post-34 .blog-image {
    background-image: url('../images/paper-bag-640x480.png.jpg');
    background-size: cover;
    background-position: center;
}

.blog-post-35 .blog-image {
    background-image: url('../images/post-27.png');
    background-size: cover;
    background-position: center;
}

.blog-post-36 .blog-image {
    background-image: url('../images/Products/Face_Mask.png');
    background-size: cover;
    background-position: center;
}

.blog-post-37 .blog-image {
    background-image: url('../images/post-18(1).png');
    background-size: cover;
    background-position: center;
}

.blog-post-38 .blog-image {
    background-image: url('../images/Products/Biodegradable_Product.png');
    background-size: cover;
    background-position: center;
}

.blog-post-39 .blog-image {
    background-image: url('../images/Products/Plastic_Bag.png');
    background-size: cover;
    background-position: center;
}

.blog-post-40 .blog-image {
    background-image: url('../images/Products/bento-box-final.png.png');
    background-size: cover;
    background-position: center;
}

.blog-post-41 .blog-image {
    background-image: url('../images/Products/PP container.png');
    background-size: cover;
    background-position: center;
}

.blog-post-42 .blog-image {
    background-image: url('../images/paper-bag-640x480.png.jpg');
    background-size: cover;
    background-position: center;
}

.blog-post-43 .blog-image {
    background-image: url('../images/Products/Foam_Cup.png');
    background-size: cover;
    background-position: center;
}

.blog-post-44 .blog-image {
    background-image: url('../images/cling-wrap/cling-wrap-sustainability.jpg');
    background-size: cover;
    background-position: center;
}

.blog-post-45 .blog-image {
    background-image: url('../images/post-25.jpg');
    background-size: cover;
    background-position: center;
}

.blog-post-46 .blog-image {
    background-image: url('../images/Products/Biodegradable_Product.png');
    background-size: cover;
    background-position: center;
}

.blog-post-47 .blog-image {
    background-image: url('../images/Products/Food_Wrapper.png');
    background-size: cover;
    background-position: center;
}

.blog-post-48 .blog-image {
    background-image: url('../images/Products/Plastic_Bag.png');
    background-size: cover;
    background-position: center;
}

.blog-post-49 .blog-image {
    background-image: url('../images/Products/Foam_Cup.png');
    background-size: cover;
    background-position: center;
}

.blog-post-50 .blog-image {
    background-image: url('../images/Products/Food_Wrapper.png');
    background-size: cover;
    background-position: center;
}

.blog-post-51 .blog-image {
    background-image: url('../images/Products/Detergent.png');
    background-size: cover;
    background-position: center;
}

.blog-post-52 .blog-image {
    background-image: url('../images/Products/String_Bag.png');
    background-size: cover;
    background-position: center;
}

.blog-post-53 .blog-image {
    background-image: url('../images/Products/Hot_Paper_Cup.png');
    background-size: cover;
    background-position: center;
}

.blog-post-54 .blog-image {
    background-image: url('../images/paper-bag-640x480.png.jpg');
    background-size: cover;
    background-position: center;
}

.blog-post-55 .blog-image {
    background-image: url('../images/Products/Raffia_String.png');
    background-size: cover;
    background-position: center;
}

.blog-post-56 .blog-image {
    background-image: url('../images/Products/Cutlery.png');
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.page-number,
.next-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-number {
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 4px;
}

.page-number:hover {
    background: #f3f4f6;
}

.page-number.active {
    background: #374151;
    color: white;
    border-color: #374151;
}

.next-page {
    padding: 8px 16px;
    background: #374151;
    color: white;
    border-radius: 4px;
    min-width: 80px;
}

.next-page:hover {
    background: #4b5563;
}

/* Products Section Styles */
.products-section {
    padding: 80px 0;
    background: #f9fafb;
}

.products-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.product-column h3 {
    color: #1b5e20;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-column li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.product-column li:hover {
    color: #1b5e20;
}

.product-column li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}