/* News Details Styles (HAMI Style) */
.post-detail-wrapper {
    padding: 40px 0;
    color: #333;
}

.post-breadcrumb {
    margin-bottom: 25px;
    font-size: 14px;
    color: #888;
}

.post-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.post-breadcrumb span {
    margin: 0 5px;
}

.post-title {
    font-family: var(--font-secondary);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #000;
}

.post-meta {
    margin-bottom: 30px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-meta i {
    color: var(--blue);
}

.post-main-content {
    display: flex;
    gap: 30px;
    position: relative;
}

.post-share-sidebar {
    width: 50px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
    font-size: 16px;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-fb {
    background: #3b5998;
}

.share-gp {
    background: #dd4b39;
}

.share-tw {
    background: #1da1f2;
}

.share-zl {
    background: #0068ff;
}

.share-pr {
    background: #666;
}

.share-em {
    background: #888;
}

.post-article {
    flex-grow: 1;
}

.post-intro {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.post-content-body {
    line-height: 1.8;
    font-size: 16px;
    color: #444;
}

.post-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

.post-content-body p {
    margin-bottom: 20px;
}

/* Sidebar Styles */

.sidebar-cta-card {
    background: #e32124;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 33, 36, 0.2);
    position: relative;
    overflow: hidden;
}

.sidebar-cta-card:hover {
    background: #c41a1d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 33, 36, 0.3);
}

.sidebar-cta-card::after {
    content: '»';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.2;
    font-weight: 800;
}

.sidebar-cta-card .card-icon {
    font-size: 32px;
    margin-right: 15px;
    flex-shrink: 0;
}

.sidebar-cta-card .card-content {
    flex-grow: 1;
}

.sidebar-cta-card .card-title {
    font-family: var(--font-secondary);
    display: block;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 4px;
}

.sidebar-cta-card .card-desc {
    display: block;
    font-size: 11px;
    opacity: 0.9;
    line-height: 1.3;
}

.sidebar-heading {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    position: relative;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

.sidebar-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--blue);
}

.trending-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.trending-item:last-child {
    border-bottom: none;
}

.trending-thumb {
    width: 90px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-info h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
}

.trending-info h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.trending-info h4 a:hover {
    color: var(--blue);
}

/* Horizontal Related Posts */
.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #eee;
    margin-bottom: 30px;
}

.related-post-horizontal {
    display: flex;
    background: #fff;
    padding: 20px;
    gap: 20px;
    transition: background 0.3s;
}

.related-post-horizontal:hover {
    background: #fdfdfd;
}

.rp-thumb {
    width: 240px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-horizontal:hover .rp-thumb img {
    transform: scale(1.05);
}

.rp-info {
    flex-grow: 1;
}

.rp-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 500;
}

.rp-title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rp-title a {
    color: #000;
    text-decoration: none;
    line-height: 1.3;
}

.rp-title a:hover {
    color: var(--blue);
}

.rp-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ads Banner */
.ads-banner-wrapper {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.ads-banner-wrapper img {
    width: 100%;
    display: block;
}

/* Category List Styles */
.cate-post-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cate-featured-item {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.cate-featured-item .cf-thumb {
    width: 400px;
    height: 250px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.cate-featured-item .cf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cate-featured-item .cf-info {
    flex-grow: 1;
}

.cate-featured-item .cf-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cate-featured-item .cf-title a {
    color: #e32124;
    text-decoration: none;
}

.cate-featured-item .cf-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Standard List Item (Image on right) */
.cate-standard-item {
    display: flex;
    gap: 25px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px dashed #ddd;
    align-items: flex-start;
}

.cate-standard-item:last-child {
    border-bottom: none;
}

.cate-standard-item .cs-info {
    flex-grow: 1;
}

.cate-standard-item .cs-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.cate-standard-item .cs-title a {
    color: #e32124;
    text-decoration: none;
}

.cate-standard-item .cs-title a:hover {
    color: var(--blue);
}

.cate-standard-item .cs-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

.cate-standard-item .cs-thumb {
    width: 180px;
    height: 110px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.cate-standard-item .cs-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pagination Customization */
.custom-pagination {
    margin-top: 40px;
}

.custom-pagination .pagination {
    justify-content: center;
}

.custom-pagination .page-link {
    color: #333;
    border: 1px solid #ddd;
    margin: 0 3px;
    padding: 8px 16px;
}

.custom-pagination .page-item.active .page-link {
    background-color: var(--blue);
    border-color: var(--blue);
}

@media (max-width: 991px) {
    .cate-featured-item {
        flex-direction: column;
    }

    .cate-featured-item .cf-thumb {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .cate-standard-item {
        flex-direction: column-reverse;
    }

    .cate-standard-item .cs-thumb {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .post-main-content {
        flex-direction: column;
    }

    .post-share-sidebar {
        flex-direction: row;
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .post-title {
        font-size: 24px;
    }

    .related-post-horizontal {
        flex-direction: column;
    }

    .rp-thumb {
        width: 100%;
        height: 200px;
    }
}

/* Aggregated News Index */
.news-aggregate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.cate-block {
    margin-bottom: 20px;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.block-header h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    position: relative;
}

.block-header h3::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #e32124;
}

.block-header .view-all {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.main-item-agg {
    margin-bottom: 15px;
}

.main-item-agg .agg-thumb {
    width: 100%;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.main-item-agg .agg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-item-agg .agg-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.main-item-agg .agg-title a {
    color: #000;
    text-decoration: none;
}

.sub-items-agg {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-items-agg li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.sub-items-agg li::before {
    content: '\f111';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 6px;
    color: #e32124;
    margin-top: 7px;
}

.sub-items-agg li a {
    color: #444;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
}

.sub-items-agg li a:hover {
    color: var(--blue);
}

@media (max-width: 768px) {
    .news-aggregate-grid {
        grid-template-columns: 1fr;
    }
}