/* Blog Listing Styles */
.banner_img {
    width: 100%;
}

.banner_container {
    position: relative;
    margin-bottom: 200px;
    margin-right: 80px;
}

.banner {
    background-repeat: no-repeat;
    width: 100%;
    background-size: 100%;
    display: flex;
    align-items: center;
    margin-top: -93px;
    background-position: 5%;
}

.banner_subtitle {
    color: var(--white);
    font-size: 24px;
}

.banner_title {
    font-size: 40px;
    color: var(--white);
    margin-top: 300px;
}

.banner_title span {
    font-size: 40px;
}

.line_divider {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 48px !important;
}

.line_divider p {
    width: 100px;
    background: var(--white);
    height: 5px;
    margin-bottom: 0;
}

/* Blog Content Styles */
.blog_main {
    position: relative;
}

.blog_block {
    padding: 50px 0;
    border-bottom: 1px solid lightgray;
}

.blog_block h2 {
    font-size: 16px;
    font-family: "SWZ721E";
    margin-bottom: 30px;
}

.blog_container {
    position: relative;
    z-index: 1;
}

.blog_elements {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    border-top: 1px solid #e0e0e0;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.blog_elements:hover {
    background-color: #f8f9fa;
}

.blog_elements:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.blog_elements:last-child .blog_card_link {
    position: relative;
    z-index: 1;
}

.blog_card_link {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    padding: 40px 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.blog_card_link:hover {
    text-decoration: none;
    color: inherit;
    padding-left: 10px;
    padding-right: 10px;
}

.blog_card_link:focus {
    outline: none;
    text-decoration: none;
    color: inherit;
}

.blog_elements:hover .blog_card_link {
    padding-left: 10px;
    padding-right: 10px;
}

.blog_img_container {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blog_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog_elements:hover .blog_img {
    transform: scale(1.05);
}

.blog_content {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.blog_content h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #333;
    font-family: "SWZ721E";
}

.blog_content p {
    font-family: "SWZ721L";
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    width: 100%;
    pointer-events: auto;
}

.blog_date {
    font-size: 14px;
    color: #888;
    font-family: "SWZ721L";
    cursor: pointer;
}

.blog_read_more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9c64a8;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
    white-space: nowrap;
}

.blog_card_link:hover .blog_read_more {
    color: #7a4d85;
}

.arrow_right {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.blog_card_link:hover .arrow_right {
    transform: translateX(5px);
}

/* Show More Button */
.btn_purple {
    padding: 12px 24px;
    font-weight: 500;
    font-size: 16px;
    font-family: "SWZ721E";
    background: #9c64a8;
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 30px;
}

.btn_purple:hover {
    background: #7a4d85;
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 100, 168, 0.3);
}

/* Back to Blogs Button */
.btn_purple img {
    transition: transform 0.3s ease;
}

.btn_purple:hover img {
    transform: rotate(180deg) translateX(3px);
}

/* Pattern Images */
.pattern1 {
    position: absolute;
    width: 150px;
    height: auto;
    left: -51px;
    top: 193px;
    z-index: -10;
    opacity: 0.7;
    pointer-events: none;
}

.pattern2 {
    position: absolute;
    width: 180px;
    height: auto;
    right: 0px;
    top: 87%;
    bottom: -188px;
    z-index: -10;
    opacity: 0.7;
    pointer-events: none;
}

/* Product Portfolio Section */
section.product_portfolio {
    padding-top: 190px;
    padding-bottom: 50px;
}

/* Product Portfolio Grid - 4 cards per row */
.product_container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
}

.product_element {
    width: calc(25% - 15px); /* 4 cards per row with gap */
    border: 1px solid lightgray;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product_element:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product_element .Product_img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.product_element p {
    padding: 15px 15px;
    font-size: 14px;
    margin: 0;
    font-family: "SWZ721E";
    min-height: 60px;
}

.product_element .img_arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 12px;
    transition: transform 0.3s ease;
}

.product_element:hover .img_arrow {
    transform: translateX(5px);
}

/* Request Brochure Section */
.requestbrochure {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-top: 50px;
}

.requestbrochure h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
    font-family: "SWZ721E";
}

.form_container {
    display: flex;
    gap: 20px;
    align-items: end;
    justify-content: center;
    flex-wrap: wrap;
}

.form_group {
    display: flex;
    flex-direction: column;
}

.form_group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form_input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    width: 250px;
}

.form_group input[type="submit"] {
    background: #9c64a8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.form_group input[type="submit"]:hover {
    background: #7a4d85;
}

/* Responsive Design */
@media (min-width: 1200px) {
    .banner {
        height: calc(100vh + 93px);
    }
    
    /* Product Portfolio - 4 cards per row on large screens */
    .product_element {
        width: calc(25% - 15px);
    }
}

@media (max-width: 1199px) and (min-width: 769px) {
    .banner {
        height: calc(100vh + 93px);
    }
    
    /* Product Portfolio - 3 cards per row on medium screens */
    .product_element {
        width: calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .banner {
        margin-top: 0 !important;
        height: auto !important;
    }
    
    .banner_container {
        margin-right: 20px;
        margin-bottom: 100px;
    }
    
    .banner_title {
        font-size: 28px;
        margin-top: 100px;
    }
    
    /* Disable all animations and transitions on mobile */
    .blog_elements {
        border-top: 1px solid #e0e0e0;
        padding: 0;
        transition: none !important;
    }
    
    .blog_elements:hover {
        background-color: transparent !important;
    }
    
    .blog_card_link {
        flex-direction: column;
        gap: 20px;
        padding: 30px 0;
        transition: none !important;
    }
    
    .blog_card_link:hover {
        padding: 30px 0;
        transition: none !important;
    }
    
    .blog_img {
        transition: none !important;
    }
    
    .blog_elements:hover .blog_img {
        transform: none !important;
    }
    
    .blog_img_container {
        width: 100%;
        height: 220px;
    }
    
    .blog_content {
        padding-left: 0;
        min-height: auto;
    }
    
    .blog_content h3 {
        font-size: 20px;
    }
    
    .blog_read_more {
        transition: none !important;
    }
    
    .blog_card_link:hover .blog_read_more {
        color: #9c64a8;
    }
    
    .arrow_right {
        transition: none !important;
    }
    
    .blog_card_link:hover .arrow_right {
        transform: none !important;
    }
    
    .form_container {
        flex-direction: column;
        align-items: center;
    }
    
    .form_input {
        width: 100%;
        max-width: 300px;
    }
    
    /* Product Portfolio - 2 cards per row on tablets */
    .product_element {
        width: calc(50% - 10px);
        transition: none !important;
    }
    
    .product_element:hover {
        box-shadow: none !important;
        transform: none !important;
    }
    
    .product_element .Product_img {
        height: 120px;
    }
    
    .product_element p {
        font-size: 12px;
        padding: 10px;
        min-height: 50px;
    }
    
    .product_element:hover .img_arrow {
        transform: none !important;
    }
    
    .btn_purple {
        transition: none !important;
    }
    
    .btn_purple:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 600px) and (min-width: 481px) {
    /* Product Portfolio - 2 cards per row on small tablets */
    .product_element {
        width: calc(50% - 10px);
    }
    
    .blog_card_link {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .banner_title {
        font-size: 24px;
    }
    
    .blog_card_link {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .blog_card_link:hover {
        padding: 20px 5px;
    }
    
    .blog_content h3 {
        font-size: 18px;
    }
    
    .blog_content p {
        font-size: 14px;
    }
    
    .blog_img_container {
        height: 200px;
    }
    
    /* Product Portfolio - 1 card per row on mobile */
    .product_element {
        width: 100%;
    }
    
    .product_element .Product_img {
        height: 180px;
    }
    
    .product_element p {
        font-size: 13px;
        padding: 12px;
    }
    
    .btn_purple {
        width: 100%;
        text-align: center;
    }
}