﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: #fff;
    width: 100%;
    overflow-x: hidden;
}

.productcategory-container {
    width: 100%;
    background: linear-gradient(to right, rgb(51, 176, 100), rgb(127, 101, 162));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.news-detail-section {
    padding: 40px 0;
    background: linear-gradient(to right, rgba(236, 247, 239), rgba(242, 239, 246));
}

.news-detail-container {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

    .news-detail-container h3 {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 10px;
        background: linear-gradient(to right, rgb(51, 176, 100) 0%, rgb(65, 26, 117) 50%, rgb(51, 176, 100) 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-align: left;
        max-width: 900px;
        margin: 0 auto 10px auto;
    }

.news-detail-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-image {
    width: 50%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 0 auto 20px auto;
    display: block;
}

.news-detail-content {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

    .news-detail-content p {
        margin-bottom: 15px;
    }

.pagination-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.prev-link, .next-link {
    font-size: 16px;
    color: rgb(51, 176, 100);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .prev-link:hover, .next-link:hover {
        color: rgb(65, 26, 117);
    }

.back-link {
    display: inline-block;
    font-size: 16px;
    color: rgb(51, 176, 100);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid rgb(51, 176, 100);
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

    .back-link:hover {
        background: rgb(51, 176, 100);
        color: #fff;
    }

@media (max-width: 1024px) {
    .news-detail-container {
        width: 90%;
    }

    .product-title {
        font-size: 28px;
    }

    .news-detail-container h3 {
        font-size: 22px;
        max-width: 500px;
    }

    .news-detail-date {
        font-size: 14px;
        max-width: 500px;
    }

    .news-detail-image {
        width: 60%;
        max-width: 500px;
    }

    .news-detail-content {
        font-size: 15px;
        max-width: 500px;
    }

    .pagination-links {
        max-width: 500px;
    }

    .prev-link, .next-link {
        font-size: 14px;
    }

    .back-link {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .news-detail-container {
        width: 100%;
        padding: 0 15px;
    }

    .product-title {
        font-size: 24px;
    }

    .news-detail-container h3 {
        font-size: 20px;
        max-width: 400px;
    }

    .news-detail-date {
        font-size: 13px;
        max-width: 400px;
    }

    .news-detail-image {
        width: 70%;
        max-width: 400px;
    }

    .news-detail-content {
        font-size: 14px;
        max-width: 400px;
    }

    .pagination-links {
        max-width: 400px;
    }

    .prev-link, .next-link {
        font-size: 13px;
    }

    .back-link {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .news-detail-container {
        padding: 0 10px;
    }

    .product-title {
        font-size: 20px;
    }

    .news-detail-container h3 {
        font-size: 18px;
        max-width: 300px;
    }

    .news-detail-date {
        font-size: 12px;
        max-width: 300px;
    }

    .news-detail-image {
        width: 90%;
        max-width: 300px;
    }

    .news-detail-content {
        font-size: 13px;
        max-width: 300px;
    }

    .pagination-links {
        max-width: 300px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .prev-link, .next-link {
        font-size: 12px;
    }

    .back-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}
