/* Blog Page Styles */

.blog-hero {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.hero-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: var(--spacing-md);
}

.featured-large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    cursor: pointer;
}

.featured-medium {
    grid-column: 3 / 5;
    grid-row: 1;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.featured-small {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.featured-small.green { grid-column: 3; grid-row: 2; }
.featured-small.orange { grid-column: 4; grid-row: 2; }

.featured-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
    transition: var(--transition-base);
}

.featured-large:hover .featured-image,
.featured-medium:hover .featured-image,
.featured-small:hover .featured-image {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 102, 255, 0.9);
    color: white;
    border-radius: 0 0 0 var(--border-radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    z-index: 2;
}

.category-badge.red { background: rgba(220, 53, 69, 0.9); }
.category-badge.blue { background: rgba(0, 102, 255, 0.9); }
.category-badge.green-badge { background: rgba(40, 167, 69, 0.9); }
.category-badge.orange-badge { background: rgba(255, 159, 64, 0.9); }
.category-badge.pink { background: rgba(233, 30, 99, 0.9); }

.featured-title {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    left: var(--spacing-md);
    color: white;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.featured-large .featured-title {
    font-size: var(--font-size-xl);
}

.featured-medium .featured-title {
    font-size: var(--font-size-base);
}

.featured-small .category-badge {
    bottom: auto;
    top: 0;
    right: 0;
}

.featured-small-title {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    left: var(--spacing-md);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
}

/* Categories Section */
.categories-section {
    padding: var(--spacing-xl) 0;
    background-color: #F8F9FA;
}

.categories-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    background: white;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--button-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: #0052CC;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.categories-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%;
    overflow-x: auto;
    padding: var(--spacing-xs) 0;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.categories-list::-webkit-scrollbar {
    height: 4px;
}

.categories-list::-webkit-scrollbar-track {
    background: transparent;
}

.categories-list::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 2px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
    padding: var(--spacing-sm);
    flex-shrink: 0;
}

.category-item:hover {
    transform: translateY(-4px);
}

.category-item svg {
    width: 48px;
    height: 48px;
    transition: var(--transition-base);
}

.category-item span {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.category-item .icon-green { color: #28A745; }
.category-item .icon-orange { color: #FF9F40; }
.category-item .icon-coral { color: #FF6B6B; }
.category-item .icon-pink { color: #E91E63; }
.category-item .icon-cloud { color: #E91E63; }
.category-item .icon-purple { color: #9C27B0; }
.category-item .icon-blue { color: #0066FF; }
.category-item .icon-dedicated { color: #00D4FF; }
.category-item .icon-teal { color: #00D4FF; }

.categories-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #E9ECEF;
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-xs);
    gap: var(--spacing-md);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 100%;
}

.search-input {
    padding: var(--spacing-sm) var(--spacing-xl) var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    width: 100%;
    transition: var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-icon {
    position: absolute;
    left: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

/* Latest Posts */
.latest-posts {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.latest-posts .section-title,
.ptco-news .section-title,
.video-section .section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-lg);
    width: 100%;
}

.latest-posts .section-title {
    justify-content: flex-start;
}

.latest-posts .section-title::before {
    content: '';
    display: block;
    width: 90px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 999px;
}

.latest-posts .section-title::after {
    content: none;
}

.ptco-news .section-title::after,
.video-section .section-title::after {
    content: '';
    display: block;
    flex: 1 1 auto;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 999px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
}

.post-card {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.post-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.post-image img,
.post-image .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image .placeholder-image:not(img) {
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
}

.post-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: white;
}

.post-badge.blue { background: var(--primary-blue); }
.post-badge.pink { background: var(--magenta); }
.post-badge.green { background: #00D084; }
.post-badge.orange { background: #FF6B35; }

.post-content {
    padding: var(--spacing-lg);
}

.post-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-size: var(--font-size-xs);
}

.post-rating {
    color: #FFC107;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-sm);
}

.post-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.4;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-2xl);
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--spacing-sm);
    border: none;
    background: #F5F5F5;
    color: var(--text-secondary);
    border-radius: var(--button-radius);
    cursor: pointer;
    transition: var(--transition-base);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: 1;
    text-decoration: none;
}

.page-btn:hover {
    background: #E8E8E8;
}

.page-btn.active {
    background: var(--primary-blue);
    color: white;
}

.page-btn.dots {
    background: transparent;
    cursor: default;
}

/* Search Results */
.search-results-page {
    padding-top: var(--spacing-2xl);
}

.search-results-page[aria-busy="true"] {
    cursor: progress;
}

.search-results-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.search-results-header .section-title {
    margin-bottom: 0;
}

.search-results-title {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-results-title-prefix {
    color: var(--primary-blue);
}

.search-results-query-wrap {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 102, 255, 0.09);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 999px;
    padding: 4px 12px;
    line-height: 1.2;
}

.search-results-query-quote {
    color: rgba(0, 102, 255, 0.65);
    font-weight: 700;
}

.search-results-query {
    color: var(--primary-blue);
    font-weight: 700;
}

.search-results-count {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.search-results-grid {
    margin-top: var(--spacing-xl);
}

.search-results-page.is-infinite-enhanced .pagination {
    display: none;
}

.infinite-scroll-status {
    min-height: 2rem;
    margin-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.infinite-scroll-status.is-loading {
    color: var(--primary-blue);
}

.infinite-scroll-status.is-error {
    color: #d14343;
}

.infinite-scroll-status.is-done {
    color: var(--text-light);
}

.infinite-scroll-sentinel {
    width: 100%;
    height: 1px;
    margin-top: 1px;
}

.search-result-card > a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.search-result-placeholder {
    background: linear-gradient(135deg, #e8edf8 0%, #cdd9f4 100%);
}

.search-no-results-page {
    min-height: 42vh;
}

.search-no-results-form {
    margin-top: var(--spacing-lg);
    max-width: 560px;
    display: flex;
    gap: var(--spacing-sm);
}

.search-no-results-form input {
    flex: 1;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
}

.search-no-results-form button {
    border: none;
    border-radius: var(--button-radius);
    background: var(--primary-blue);
    color: var(--white);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: 0 var(--spacing-xl);
    cursor: pointer;
    transition: var(--transition-base);
}

.search-no-results-form button:hover {
    background: #0052cc;
}

/* News Section */
.ptco-news {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.news-carousel {
    margin-top: var(--spacing-2xl);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--spacing-lg);
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--border-radius-2xl);
}

.carousel-track {
    display: flex;
    gap: var(--spacing-xl);
    transition: transform 0.45s ease;
    will-change: transform;
    scroll-snap-type: x mandatory;
    direction: ltr;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-lg);
    background: rgba(4, 20, 60, 0);
    backdrop-filter: blur(12px);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.carousel-arrow:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.carousel-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.news-card {
    position: relative;
    flex: 0 0 calc((100% - (var(--spacing-xl) * 2)) / 3);
    min-width: calc((100% - (var(--spacing-xl) * 2)) / 3);
    min-height: 280px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    color: white;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-image: linear-gradient(180deg, rgba(13, 32, 55, 0.1) 0%, rgba(8, 14, 24, 0.85) 75%), var(--news-image, linear-gradient(135deg, #1d1f3c 0%, #0e88f0 100%));
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-lg);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    scroll-snap-align: start;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.news-card-content {
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
    direction: rtl;
    text-align: right;
}

.news-card-subtitle {
    font-size: var(--font-size-sm);
    font-weight: 600;
    opacity: 0.85;
    margin-bottom: var(--spacing-sm);
}

.news-card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.5;
}

/* Popular Section */
.popular-section {
    padding: var(--spacing-3xl) 0;
    background: #f7f9fc;
}

.popular-section .popular-column {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Flatten only row items inside lists (not the main cards) */
.popular-section .popular-column .highlight-mini,
.popular-section .popular-column .offer-mini,
.popular-section .popular-column .list-card {
    border-radius: 0;
    box-shadow: none;
}

.popular-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "h1 h2 h3"
        "c1 c2 c3";
    gap: var(--spacing-xl);
    align-items: stretch;
    direction: ltr;
}

.popular-column {
    background: #ffffff;
    border-radius: var(--border-radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow: hidden;
    direction: rtl;
}

.popular-column.popular-offer {
    padding: 0;
    gap: var(--spacing-xl);
    background: #ffffff;
}

/* Grid area mapping for headers and columns */
.popular-layout .heading-1 { grid-area: h1; }
.popular-layout .heading-2 { grid-area: h2; }
.popular-layout .heading-3 { grid-area: h3; }
.popular-layout .popular-list { grid-area: c1; }
.popular-layout .popular-highlight { grid-area: c2; }
.popular-layout .popular-offer { grid-area: c3; }

.popular-highlight .highlight-card {
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
}

.popular-column .btn {
    align-self: center;
}

.column-heading {
    text-align: right;
    margin-bottom: var(--spacing-xl);
    position: relative;
    padding-bottom: var(--spacing-sm);
    padding-inline: 0;
    padding-top: var(--spacing-xl);
}

/* Popular: no extra bottom margin under headings; spacing comes from grid row gap */
.popular-section .column-heading { margin-bottom: 0; }

.column-heading::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-blue), #5a5aff);
}

.column-heading.accent-pink::after {
    background: linear-gradient(90deg, #ff5f7e, #ff8a65);
}

.column-heading.accent-purple::after {
    background: linear-gradient(90deg, #bb86fc, #6200ea);
}

.column-heading.accent-indigo::after {
    background: linear-gradient(90deg, #4c6fff, #008cff);
}

.column-heading h3 {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--text-dark);
}

.popular-list .list-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 20px;
}

.list-card {
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 33, 75, 0.08);
}

.list-card > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: center;
    column-gap: 14px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.list-card:last-child {
    border-bottom: none;
    padding-bottom: 6px;
}

.list-card-thumb {
    width: 78px;
    height: 78px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, #0f62fe, #7f5af0);
    box-shadow: 0 8px 18px rgba(13, 28, 63, 0.14);
    overflow: hidden;
    flex-shrink: 0;
}

.list-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.list-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-width: 0;
    text-align: right;
}

.list-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #334062;
    line-height: 1.55;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-card-meta {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    justify-content: flex-end;
    gap: 10px;
    width: max-content;
    min-height: 18px;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    direction: ltr;
    white-space: nowrap;
}

.list-card-meta .meta-divider,
.list-card-meta .time {
    display: none;
}

/* Meta icons to match screenshot style */
.list-card-meta .date,
.highlight-meta .date,
.mini-meta .date {
    position: relative;
    padding-inline-start: calc(var(--spacing-sm) + 14px);
}
.list-card-meta .date::before,
.highlight-meta .date::before,
.mini-meta .date::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>') center / contain no-repeat;
            mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>') center / contain no-repeat;
    opacity: 0.7;
}

.list-card-meta .time,
.highlight-meta .time {
    position: relative;
    padding-inline-start: calc(var(--spacing-sm) + 14px);
}

.list-card-meta .date {
    padding-inline-start: 0;
    padding-inline-end: 20px;
}

.list-card-meta .date::before {
    inset-inline-start: auto;
    inset-inline-end: 0;
    width: 13px;
    height: 13px;
    opacity: 0.6;
}
.list-card-meta .time::before,
.highlight-meta .time::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12,6 12,12 16,14"/></svg>') center / contain no-repeat;
            mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12,6 12,12 16,14"/></svg>') center / contain no-repeat;
    opacity: 0.7;
}

.rating {
    color: #ffb400;
    letter-spacing: 2px;
}

.meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(30, 46, 76, 0.25);
}

.popular-highlight .highlight-card {
    background: #ffffff;
    border-radius: 0;
    padding: 0;
    margin-bottom: var(--spacing-xl);
    margin-inline: 0;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}
.popular-highlight .highlight-card:hover { transform: none; box-shadow: none; }

.highlight-image {
    height: 280px;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
    background: linear-gradient(135deg, #0f62fe, #5f2eea);
    margin-bottom: var(--spacing-lg);
    box-shadow: none;
    margin-inline: 0;
    margin-top: 0;
    width: 100%;
}

/* Make highlight and offer badges match latest-posts category badge */
.highlight-badge,
.offer-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 0 0 0 var(--border-radius-md);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.highlight-meta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: max-content;
    font-size: var(--font-size-xs);
    line-height: 1;
    color: var(--text-light);
    direction: ltr;
    margin-top: 12px;
    margin-bottom: var(--spacing-md);
    padding-inline: var(--spacing-xl);
}

.highlight-meta .meta-divider,
.highlight-meta .time {
    display: none;
}

.highlight-meta .rating {
    color: #ffb545;
    font-size: var(--font-size-sm);
    letter-spacing: 2px;
}

.highlight-meta .date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #96a0b5;
    padding-inline-start: 0;
}

.highlight-meta .date::before {
    display: none;
}

.highlight-meta .date::after {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transform: translateY(-2px);
    background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='4' stroke='%2396A0B5' stroke-width='2'/%3E%3Cpath d='M7 3V7' stroke='%2396A0B5' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M17 3V7' stroke='%2396A0B5' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 10H20' stroke='%2396A0B5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.highlight-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: #0b1736;
    margin-bottom: var(--spacing-sm);
    padding-inline: var(--spacing-xl);
}

.highlight-excerpt {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.8;
    padding-inline: var(--spacing-xl);
}

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: var(--spacing-lg);
    padding: 14px 20px;
}

.highlight-mini {
    padding: 14px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(15, 33, 75, 0.08);
}

.highlight-mini > a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.highlight-mini:last-child { border-bottom: none; padding-bottom: 6px; }

.highlight-mini .mini-image {
    width: 78px;
    height: 78px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.6), rgba(139, 92, 246, 0.6));
    box-shadow: 0 8px 18px rgba(13, 28, 63, 0.14);
    overflow: hidden;
    flex-shrink: 0;
}

.offer-mini {
    padding: 14px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    border-bottom: 1px solid rgba(15, 33, 75, 0.08);
}

.offer-mini > a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.offer-mini:last-child { border-bottom: none; padding-bottom: 6px; }

.offer-mini:hover { transform: none; box-shadow: none; }

.offer-mini .mini-image {
    width: 78px;
    height: 78px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(145deg, rgba(15, 31, 73, 0.9), rgba(10, 120, 255, 0.8), rgba(255, 166, 100, 0.85));
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 18px rgba(13, 28, 63, 0.14);
    overflow: hidden;
    flex-shrink: 0;
}

.highlight-mini .mini-content,
.offer-mini .mini-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    text-align: right;
}

.mini-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #334062;
    margin: 0;
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-meta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: max-content;
    font-size: var(--font-size-xs);
    line-height: 1;
    color: var(--text-light);
    direction: ltr;
}

.mini-meta .meta-divider {
    display: none;
}

.offer-mini .mini-meta {
    gap: 10px;
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.rating-stars {
    color: #ffb545;
    font-size: var(--font-size-sm);
    letter-spacing: 2px;
}

.mini-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #96a0b5;
}

.mini-date::after {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transform: translateY(-2px);
    background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='4' stroke='%2396A0B5' stroke-width='2'/%3E%3Cpath d='M7 3V7' stroke='%2396A0B5' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M17 3V7' stroke='%2396A0B5' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 10H20' stroke='%2396A0B5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}


/* ========================================
   Unified Blog Mini Card (BEM)
   Used in popular-section for all card lists
   ======================================== */
.blog-mini-card {
    padding: 14px 0;
    border-bottom: 1px solid rgba(15, 33, 75, 0.08);
}

.blog-mini-card:last-child {
    border-bottom: none;
    padding-bottom: 6px;
}

.blog-mini-card > a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.blog-mini-card__image {
    width: 78px;
    height: 78px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(200, 180, 255, 0.4), rgba(180, 160, 220, 0.3));
    box-shadow: 0 4px 12px rgba(13, 28, 63, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.blog-mini-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-mini-card__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    text-align: right;
}

.blog-mini-card__title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #334062;
    margin: 0;
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-mini-card__meta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    justify-content: flex-start;
    gap: 8px;
    width: max-content;
    font-size: var(--font-size-xs);
    line-height: 1;
    color: var(--text-light);
    direction: ltr;
}

.blog-mini-card__rating {
    color: #ffb545;
    font-size: var(--font-size-sm);
    letter-spacing: 2px;
}

.blog-mini-card__date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #96a0b5;
}

.blog-mini-card__date::after {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transform: translateY(-2px);
    background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='5' width='18' height='16' rx='4' stroke='%2396A0B5' stroke-width='2'/%3E%3Cpath d='M7 3V7' stroke='%2396A0B5' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M17 3V7' stroke='%2396A0B5' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M4 10H20' stroke='%2396A0B5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.btn.btn-outline.highlight-more {
    margin-top: auto;
    align-self: center;
    padding-inline: var(--spacing-xl);
    min-width: 180px;
    margin-inline: 0;
    margin-bottom: var(--spacing-xl);
}

.popular-offer .offer-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    padding: 0; /* image flush like latest-posts */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    overflow: hidden;
    transition: none;
}
.popular-offer .offer-card:hover { transform: none; box-shadow: none; }

.offer-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: none;
}

.offer-image {
    width: 100%;
    height: 280px; /* match .highlight-image */
    position: relative;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl); /* match highlight-image lower radius */
    background: linear-gradient(135deg, #0f62fe, #5f2eea); /* match .highlight-image */
    display: block;
}

.offer-image::after { content: none; }

.offer-badge {
    position: absolute;
    top: var(--spacing-lg);
    inset-inline-end: var(--spacing-lg);
    background: linear-gradient(135deg, #ff416c, #ff6d6d);
    color: #fff;
    font-size: var(--font-size-sm);
    font-weight: 700;
    padding: var(--spacing-xs) var(--spacing-lg);
    border-radius: 18px 18px 0 18px;
    box-shadow: var(--shadow-md);
}

.offer-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.offer-title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: #0b1736;
    margin: 0;
}

.offer-pricing {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: var(--spacing-sm);
    font-weight: 700;
}

.offer-price-current {
    font-size: var(--font-size-xl);
    color: #1b2333;
}

.offer-price-old {
    font-size: var(--font-size-sm);
    color: #aab2c2;
    text-decoration: line-through;
}

.offer-progress {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

.offer-progress-track {
    flex: 1;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 99, 132, 0.15);
    overflow: hidden;
}

.offer-progress-fill {
    width: calc(var(--progress, 0) * 100%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff5675, #ff8a96);
    transition: width 0.4s ease;
}

.offer-progress-label {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: #ff4d72;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 77, 114, 0.14);
}

.offer-countdown {
    display: grid;
    grid-template-columns: repeat(4, 53px);
    gap: var(--spacing-2xs, 4px);
    justify-content: space-between;
}

.countdown-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 53px;
    height: 53px; /* true square, ~20% larger */
    background: #ffffff;
    border: 3px solid rgba(255, 77, 114, 0.55); /* bolder border */
    border-radius: var(--border-radius-md);
    padding: 2px;
    box-shadow: none;
}

.countdown-value {
    font-weight: 800;
    color: #f43961;
    font-size: var(--font-size-sm);
    line-height: 1;
}

.countdown-unit {
    font-size: calc(var(--font-size-xs) * 0.85);
    color: #cf5b74;
    margin-top: 1px;
}

.offer-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px 20px;
}

.offer-more {
    align-self: center;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--border-radius-md);
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-weight: 700;
    box-shadow: none;
    transition: var(--transition-base);
    gap: var(--spacing-sm);
}

.offer-more:hover {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: none;
    transform: translateY(0);
}

.offer-more-icon {
    display: inline-flex;
}

.mini-image--trade {
    background: linear-gradient(145deg, rgba(14, 31, 72, 0.95), rgba(14, 114, 230, 0.85), rgba(255, 155, 80, 0.85));
}

.mini-image--vps {
    background: linear-gradient(145deg, rgba(14, 31, 72, 0.95), rgba(41, 152, 255, 0.82), rgba(101, 84, 255, 0.85));
}
/* Tech Categories */
.tech-categories {
    padding: var(--spacing-xl) 0;
    background: var(--light-gray);
}

.tech-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.tech-tab {
    padding: var(--spacing-sm) var(--spacing-xl);
    border: 2px solid var(--gray);
    background: white;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.tech-tab.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.tech-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.tech-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray) 0%, var(--light-gray) 100%);
}

.tech-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.tech-more {
    display: block;
    margin: 0 auto;
}

/* Video Section */
.video-section {
    padding: var(--spacing-xl) 0;
    background: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.video-card {
    cursor: pointer;
}

.video-thumbnail {
    height: 200px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.placeholder-video {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #9C27B0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.video-card:hover .placeholder-video {
    transform: scale(1.05);
}

.video-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.4;
}

.video-thumbnail {
    position: relative;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    transition: var(--transition-base);
    z-index: 2;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-base);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-featured-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 200px);
    }

    .featured-large {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .featured-medium {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .featured-small.green { grid-column: 1; grid-row: 3; }
    .featured-small.orange { grid-column: 2; grid-row: 3; }

    .categories-wrapper {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .categories-list {
        gap: var(--spacing-md);
        justify-content: space-between;
    }

    .categories-actions {
        flex-wrap: nowrap;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card {
        flex: 0 0 calc((100% - var(--spacing-xl)) / 2);
        min-width: calc((100% - var(--spacing-xl)) / 2);
        min-height: 260px;
    }

    .popular-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "h1 h2"
            "c1 c2"
            "h3 h3"
            "c3 c3";
        gap: var(--spacing-xl);
    }

    .list-card {
        padding-bottom: var(--spacing-sm);
    }

    .highlight-image {
        height: 200px;
    }

    .offer-image {
        height: 180px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-featured-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .featured-large, .featured-medium, .featured-small {
        grid-column: 1;
        grid-row: auto;
    }

    .categories-wrapper {
        padding: var(--spacing-md);
    }

    .categories-list {
        gap: var(--spacing-sm);
        justify-content: space-between;
    }

    .categories-actions {
        gap: var(--spacing-sm);
    }

    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
    }

    .category-item {
        padding: var(--spacing-xs);
        gap: var(--spacing-xs);
    }

    .category-item svg {
        width: 36px;
        height: 36px;
    }

    .category-item span {
        font-size: var(--font-size-xs);
    }

    .search-input {
        padding: var(--spacing-xs) var(--spacing-lg) var(--spacing-xs) var(--spacing-sm);
    }

    .latest-posts .section-title,
    .ptco-news .section-title,
    .video-section .section-title {
        font-size: var(--font-size-2xl);
        padding-top: var(--spacing-md);
        margin-bottom: var(--spacing-lg);
        gap: var(--spacing-md);
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .search-no-results-form {
        flex-direction: column;
    }

    .search-results-title {
        gap: 8px;
    }

    .search-no-results-form button {
        height: 44px;
    }

    .news-carousel {
        grid-template-columns: auto 1fr auto;
        gap: var(--spacing-sm);
    }

    .carousel-viewport {
        border-radius: var(--border-radius-xl);
    }

    .carousel-arrow {
        width: 42px;
        height: 42px;
    }

    .news-card {
        flex: 0 0 100%;
        min-width: 100%;
        min-height: 240px;
    }

    .news-card-content {
        padding: var(--spacing-lg);
    }

    .popular-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "h1"
            "c1"
            "h2"
            "c2"
            "h3"
            "c3";
        gap: var(--spacing-lg);
    }

    .popular-column {
        padding: var(--spacing-md);
    }

    .highlight-card,
    .offer-card {
        padding: var(--spacing-lg);
    }

    .offer-countdown {
        justify-content: center;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Single Post Styles
   ======================================== */

/* Single Hero */
.single-hero {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0052cc 100%);
    color: white;
}

.single-hero-content {
    max-width: 800px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb .separator {
    opacity: 0.5;
}

.single-hero .category-badge {
    position: static;
    display: inline-block;
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.single-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: var(--spacing-xl);
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xl);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.meta-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.meta-info {
    display: flex;
    gap: var(--spacing-lg);
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.meta-date,
.meta-reading {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Featured Image */
.single-featured-image {
    margin-top: calc(var(--spacing-2xl) * -1);
    padding-bottom: var(--spacing-2xl);
}

.featured-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Layout */
.single-content {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-2xl);
}

.content-main {
    min-width: 0;
}

.content-main .content-wrapper {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-secondary);
}

.content-main .content-wrapper h2,
.content-main .content-wrapper h3,
.content-main .content-wrapper h4 {
    color: var(--text-primary);
    margin: var(--spacing-xl) 0 var(--spacing-md);
    font-weight: 700;
}

.content-main .content-wrapper h2 { font-size: 1.75rem; }
.content-main .content-wrapper h3 { font-size: 1.5rem; }
.content-main .content-wrapper h4 { font-size: 1.25rem; }

.content-main .content-wrapper p {
    margin-bottom: var(--spacing-lg);
}

.content-main .content-wrapper ul,
.content-main .content-wrapper ol {
    margin: var(--spacing-md) 0 var(--spacing-lg);
    padding-right: var(--spacing-xl);
}

.content-main .content-wrapper li {
    margin-bottom: var(--spacing-sm);
}

.content-main .content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: var(--spacing-lg) 0;
}

.content-main .content-wrapper blockquote {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.06) 0%, rgba(0, 102, 255, 0.02) 100%);
    border-right: 4px solid var(--primary-blue);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    font-style: italic;
}

.content-main .content-wrapper pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    margin: var(--spacing-xl) 0;
}

.content-main .content-wrapper code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
}

.tags-label {
    font-weight: 600;
    color: var(--text-primary);
}

.tag-link {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--light-gray);
    color: var(--text-secondary);
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: var(--transition-base);
}

.tag-link:hover {
    background: var(--primary-blue);
    color: white;
}

/* Share Section */
.post-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
}

.share-label {
    font-weight: 600;
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--button-radius);
    color: white;
    transition: var(--transition-base);
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.linkedin { background: #0077B5; }
.share-btn.telegram { background: #0088cc; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* Author Box */
.author-box {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: var(--light-gray);
    border-radius: var(--border-radius-xl);
    margin: var(--spacing-xl) 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.author-bio {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.7;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--border-color);
    margin-top: var(--spacing-xl);
}

.post-navigation .nav-link {
    padding: var(--spacing-lg);
    background: var(--light-gray);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: var(--transition-base);
}

.post-navigation .nav-link:hover {
    background: var(--primary-blue);
    color: white;
}

.post-navigation .nav-link:hover .nav-label,
.post-navigation .nav-link:hover .nav-title {
    color: white;
}

.post-navigation .nav-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-navigation .nav-prev { text-align: right; }
.post-navigation .nav-next { text-align: left; }

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
}

.widget-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-blue);
}

/* Related Posts */
.related-post {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.related-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-post a {
    display: flex;
    gap: var(--spacing-md);
    text-decoration: none;
}

.related-thumb {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.related-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
    transition: color 0.2s;
}

.related-post a:hover .related-title {
    color: var(--primary-blue);
}

.related-date {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

/* Categories Widget */
.categories-list-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list-sidebar li {
    margin-bottom: var(--spacing-sm);
}

.categories-list-sidebar a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.categories-list-sidebar a:hover {
    color: var(--primary-blue);
}

.categories-list-sidebar .count {
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: var(--font-size-xs);
}

/* Popular Posts */
.popular-post {
    margin-bottom: var(--spacing-md);
}

.popular-post a {
    display: flex;
    gap: var(--spacing-md);
    text-decoration: none;
}

.post-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.popular-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.5;
    transition: color 0.2s;
}

.popular-post a:hover .popular-title {
    color: var(--primary-blue);
}

.popular-date {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

/* Single Article Reference Layout */
.single-page-hero {
    position: relative;
    padding: 58px 0;
    background: linear-gradient(130deg, #0e2f68 0%, #005fd8 65%, #2f8cff 100%);
    overflow: hidden;
}

.single-page-hero.has-image {
    background-image: var(--single-hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.single-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(6, 26, 66, 0.84) 0%, rgba(0, 62, 149, 0.7) 55%, rgba(0, 102, 255, 0.38) 100%);
}

.single-page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin-inline-start: auto;
    text-align: right;
    color: #fff;
}

.single-page-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.34);
    font-size: 0.92rem;
    font-weight: 700;
}

.single-page-hero-title {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(1.55rem, 2.7vw, 2.5rem);
    line-height: 1.45;
}

.single-content-reference {
    padding: 22px 0 24px;
    background: #f7f9fc;
}

.article-layout {
    direction: ltr;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.article-layout > * {
    direction: rtl;
}

.single-article-shell {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #edf1f7;
    box-shadow: var(--shadow-sm);
    padding: 18px 22px 24px;
}

.article-breadcrumb {
    direction: rtl;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1.02rem;
    color: #8590aa;
    opacity: 1;
    white-space: nowrap;
    overflow: hidden;
}

.article-breadcrumb .breadcrumb-home-icon {
    color: var(--primary-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transform: translateY(-2px);
}

.article-breadcrumb .breadcrumb-home-icon svg {
    width: 21px;
    height: 21px;
}

.article-breadcrumb .breadcrumb-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    flex-shrink: 0;
}

.article-breadcrumb .breadcrumb-link:hover {
    color: #0052cc;
}

.article-breadcrumb .breadcrumb-current {
    color: #7d879f;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-breadcrumb .separator {
    color: #86a2db;
    font-weight: 700;
    flex-shrink: 0;
    transform: translateY(3px);
}

.article-hero-media {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #eef2fb;
}

.article-hero-media .featured-img {
    width: 100%;
    aspect-ratio: 16 / 7.4;
    object-fit: cover;
    display: block;
}

.article-title {
    text-align: right;
    color: #0066ff;
    font-size: var(--font-size-3xl);
    margin: 16px 0 10px;
    line-height: 1.35;
}

.article-meta {
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    color: #9aa3b8;
    font-size: 0.92rem;
    margin-bottom: 18px;
    text-align: right;
}

.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta-item svg {
    color: #aab3c8;
    transform: translateY(-3px);
}

.article-meta .meta-date svg {
    transform: translateY(-3px);
}

.article-meta .rating {
    letter-spacing: 1px;
    color: #ffb400;
    font-size: 1.15rem;
}

.article-body {
    color: #303a56;
    font-size: 1.17rem;
    line-height: 2.05;
}

.article-body p {
    margin-bottom: 18px;
}

.article-share {
    display: flex;
    direction: rtl;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eef2f8;
    margin-top: 14px;
    padding-top: 16px;
}

.article-share .share-buttons {
    display: inline-flex;
    direction: rtl;
    align-items: center;
}

.article-share .share-btn {
    width: 26px;
    height: 26px;
    background: transparent;
    color: var(--primary-blue);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.article-share .share-btn:hover {
    transform: translateY(-1px);
    box-shadow: none;
    color: #004fc7;
}

.article-sidebar {
    gap: 16px;
}

.article-list-widget {
    padding: 14px 14px 10px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.article-list-widget .widget-title {
    color: #ff4a64;
    border-bottom: 1px solid #ffd9df;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 1.04rem;
}

.article-side-item {
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
}

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

.article-side-item a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    direction: ltr;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.article-side-thumb {
    width: 88px;
    height: 66px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2fb;
}

.article-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-side-body {
    min-width: 0;
    direction: rtl;
    text-align: right;
}

.article-side-title {
    margin: 0 0 8px;
    font-size: 1.03rem;
    line-height: 1.4;
    color: #445170;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: rtl;
}

.article-side-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    color: #9ca6bd;
    font-size: 0.84rem;
}

.single-suggested {
    padding: 0 0 30px;
    background: #f7f9fc;
}

.single-suggested-header {
    display: flex;
    flex-direction: column;
    direction: rtl;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

.single-suggested .section-title {
    width: 100%;
    justify-content: flex-end;
    text-align: right;
    margin: 0;
    color: #1f2f50;
    font-size: var(--font-size-2xl);
    font-weight: 800;
}

.single-suggested-breaker {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.22) 0%, rgba(31, 47, 80, 0.12) 100%);
    position: relative;
}

.single-suggested-breaker::after {
    content: '';
    position: absolute;
    right: 0;
    left: auto;
    top: -0.5px;
    width: 120px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary-blue);
}

.suggested-grid {
    display: grid;
    gap: 16px;
}

.suggested-card {
    background: #fff;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.suggested-card a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36%;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

.suggested-card-content {
    padding: 20px;
}

.suggested-title {
    margin: 0 0 8px;
    font-size: 1.55rem;
    color: #1b2a4e;
}

.suggested-excerpt {
    margin: 0 0 10px;
    color: #75809d;
    line-height: 1.8;
}

.suggested-meta {
    display: inline-flex;
    gap: 10px;
    direction: ltr;
    color: #99a3b9;
    font-size: 0.9rem;
}

.suggested-thumb {
    min-height: 210px;
    background: #e9eef8;
}

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

/* Comments */
.comments-section {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

/* Single Post Responsive */
@media (max-width: 992px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: 2;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .single-page-hero {
        padding: 42px 0;
    }

    .article-sidebar {
        order: 2;
    }

    .suggested-card a {
        grid-template-columns: 1fr;
    }

    .suggested-thumb {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .single-hero {
        padding: var(--spacing-xl) 0;
    }

    .single-title {
        font-size: 1.5rem;
    }

    .single-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .single-featured-image {
        margin-top: calc(var(--spacing-xl) * -1);
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .single-article-shell {
        padding: 14px;
    }

    .single-page-hero {
        padding: 34px 0;
    }

    .single-page-hero-title {
        font-size: 1.35rem;
    }

    .article-title {
        font-size: var(--font-size-3xl);
    }

    .article-body {
        font-size: 1rem;
    }

    .article-side-item a {
        grid-template-columns: minmax(0, 1fr) 74px;
    }

    .article-side-thumb {
        width: 74px;
        height: 58px;
    }
}
