.gp-news-page,
.gp-news-page * {
    box-sizing: border-box;
}

.gp-news-page {
    --gp-blue: #0072B8;
    --gp-blue-dark: #005f9b;
    --gp-text: #222222;
    --gp-gray: #777777;
    --gp-light-gray: #f5f7fa;
    --gp-border: #e5e5e5;
    width: 100%;
    background: #ffffff;
    color: var(--gp-text);
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.gp-news-page h1,
.gp-news-page h2,
.gp-news-page h3,
.gp-sidebar-title,
.gp-content-title,
.gp-news-title,
.gp-hot-product-name {
    font-family: 'Ubuntu', Arial, Helvetica, sans-serif;
}

.gp-news-page a {
    color: inherit;
    text-decoration: none;
}

.gp-news-page img {
    display: block;
    width: 100%;
    max-width: 100%;
}

.gp-news-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 20px 70px;
}

.gp-breadcrumb {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gp-border);
    color: #888888;
    font-size: 14px;
}

.gp-breadcrumb a {
    color: #666666;
    transition: color 0.25s ease;
}

.gp-breadcrumb a:hover {
    color: var(--gp-blue);
}

.gp-breadcrumb span {
    display: inline-block;
    margin: 0 9px;
    color: #aaaaaa;
}

.gp-news-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.gp-sidebar-box {
    margin-bottom: 34px;
}

.gp-sidebar-title {
    position: relative;
    margin: 0;
    padding: 15px 20px;
    background: var(--gp-blue);
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.gp-sidebar-title::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 26px;
    height: 2px;
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-50%);
}

.gp-category-list {
    margin: 0;
    padding: 0;
    border: 1px solid var(--gp-border);
    border-top: 0;
    list-style: none;
}

.gp-category-list li {
    margin: 0;
    border-bottom: 1px solid var(--gp-border);
}

.gp-category-list li:last-child {
    border-bottom: 0;
}

.gp-category-list a {
    position: relative;
    display: block;
    padding: 13px 42px 13px 20px;
    background: #ffffff;
    color: #444444;
    font-size: 15px;
    transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
}

.gp-category-list a::after {
    content: "›";
    position: absolute;
    right: 20px;
    top: 50%;
    color: #999999;
    font-size: 20px;
    line-height: 1;
    transform: translateY(-52%);
}

.gp-category-list a:hover,
.gp-category-list .active a {
    padding-left: 25px;
    background: var(--gp-light-gray);
    color: var(--gp-blue);
}

.gp-category-list .active a {
    font-weight: 600;
}

.gp-category-list .active a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gp-blue);
}

.gp-hot-products {
    padding-top: 4px;
}

.gp-hot-product {
    margin: 0 0 24px;
    background: #ffffff;
}

.gp-hot-product:last-child {
    margin-bottom: 0;
}

.gp-hot-product-image {
    position: relative;
    display: block;
    height: 178px;
    overflow: hidden;
    background: #f2f2f2;
}

.gp-hot-product-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 114, 184, 0);
    transition: background 0.3s ease;
}

.gp-hot-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gp-hot-product:hover .gp-hot-product-image img {
    transform: scale(1.05);
}

.gp-hot-product:hover .gp-hot-product-image::after {
    background: rgba(0, 114, 184, 0.12);
}

.gp-hot-product-name {
    display: block;
    padding: 11px 8px 5px;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    transition: color 0.25s ease;
}

.gp-hot-product:hover .gp-hot-product-name {
    color: var(--gp-blue);
}

.gp-content-title {
    position: relative;
    margin: 0 0 28px;
    padding: 0 0 16px;
    color: #222222;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
}

.gp-content-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    background: var(--gp-blue);
}

.gp-content-title::after {
    content: "";
    position: absolute;
    left: 54px;
    right: 0;
    bottom: 1px;
    height: 1px;
    background: var(--gp-border);
}

.gp-news-item {
    display: grid;
    grid-template-columns: 275px minmax(0, 1fr);
    gap: 27px;
    padding: 0 0 30px;
    margin: 0 0 30px;
    border-bottom: 1px solid var(--gp-border);
}

.gp-news-item:last-of-type {
    margin-bottom: 0;
}

.gp-news-image {
    position: relative;
    display: block;
    width: 100%;
    height: 184px;
    overflow: hidden;
    background: #eeeeee;
}

.gp-news-image::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 0 solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 114, 184, 0);
    transition: border-width 0.3s ease, background 0.3s ease;
}

.gp-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.gp-news-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8edf1, #cbd6df);
    color: #667785;
    font-family: 'Ubuntu', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.gp-news-item:hover .gp-news-image img {
    transform: scale(1.05);
}

.gp-news-item:hover .gp-news-image::after {
    border-width: 8px;
    background: rgba(0, 114, 184, 0.08);
}

.gp-news-body {
    min-width: 0;
}

.gp-news-title {
    margin: -4px 0 7px;
    color: #242424;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.gp-news-title a {
    transition: color 0.25s ease;
}

.gp-news-title a:hover,
.gp-news-item:hover .gp-news-title a {
    color: var(--gp-blue);
}

.gp-news-date {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #999999;
    font-size: 13px;
}

.gp-news-date svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex: 0 0 auto;
}

.gp-news-description {
    display: -webkit-box;
    margin: 0 0 11px;
    overflow: hidden;
    color: #666666;
    font-size: 14px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gp-read-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gp-blue) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.gp-read-more::after {
    content: "→";
    font-size: 16px;
    transition: transform 0.25s ease;
}

.gp-read-more:hover {
    color: var(--gp-blue-dark) !important;
}

.gp-read-more:hover::after {
    transform: translateX(5px);
}

.gp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 38px;
}

.gp-pagination .page-numbers {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #555555;
    font-size: 14px;
    line-height: 1;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.gp-pagination a.page-numbers:hover,
.gp-pagination .page-numbers.current {
    border-color: var(--gp-blue);
    background: var(--gp-blue);
    color: #ffffff;
}

.gp-pagination .page-numbers.dots {
    min-width: auto;
    padding: 0 4px;
    border: 0;
}

.gp-no-posts {
    padding: 32px;
    border: 1px solid var(--gp-border);
    background: var(--gp-light-gray);
    color: #666666;
    text-align: center;
}

@media (max-width: 1024px) {
    .gp-news-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 28px;
    }

    .gp-news-item {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 22px;
    }

    .gp-news-image {
        height: 165px;
    }
}

@media (max-width: 767px) {
    .gp-news-container {
        padding: 20px 15px 50px;
    }

    .gp-breadcrumb {
        margin-bottom: 24px;
    }

    .gp-news-layout {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }

    .gp-news-sidebar,
    .gp-news-content {
        width: 100%;
    }

    .gp-news-content {
        order: 1;
    }

    .gp-news-sidebar {
        order: 2;
    }

    .gp-content-title {
        margin-bottom: 24px;
        font-size: 26px;
    }

    .gp-news-item {
        display: block;
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .gp-news-image {
        height: auto;
        aspect-ratio: 16 / 9;
        margin-bottom: 18px;
    }

    .gp-news-title {
        margin-top: 0;
        font-size: 19px;
    }

    .gp-news-description {
        -webkit-line-clamp: 4;
    }

    .gp-hot-product-image {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}
