/* ===================================================================
   TechRounder CMS - Frontend Styles
   Minimal, SEO-friendly, Fast Loading
   =================================================================== */

:root {
    --trstyler-primary: #c71c1b;
    --trstyler-primary-rgb: 199, 28, 27;
    --trstyler-black: #0a0d12;
    --trstyler-white: #fff;
    --trstyler-body-color: #6b7280;
    --trstyler-headings-color: #0a0d12;
    --trstyler-bg-common: #f3f4f6;
    --trstyler-border: #d3d5d9;

    /* Legacy aliases */
    --primary: var(--trstyler-primary);
    --primary-dark: #a51716;
    --primary-light: #e02d2c;
    --text: var(--trstyler-headings-color);
    --text-light: var(--trstyler-body-color);
    --bg: var(--trstyler-white);
    --bg-alt: var(--trstyler-bg-common);
    --border: var(--trstyler-border);
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.29;
    color: var(--trstyler-body-color);
    background: var(--bg);
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--trstyler-headings-color);
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

p {
    color: var(--trstyler-body-color);
}


a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

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

/* Logo specific - override global img */
.logo img,
.footer-brand img {
    height: 40px;
    width: auto;
    max-width: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.logo span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.breadcrumb {
    color: var(--text-light);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
}

/* Content Layout */
.content-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 40px 0;
}

.content-full {
    grid-template-columns: 1fr;
}

/* Post Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.post-card-meta {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
}

.category-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.reading-time {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

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

.post-card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text);
}

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

.post-card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
}

/* Single Post */
.single-content {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--radius);
}

.post-header {
    margin-bottom: 30px;
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.post-featured-image {
    margin: 30px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-body {
    font-size: 17px;
    line-height: 1.8;
}

.post-body h2 {
    font-size: 26px;
    margin: 32px 0 16px;
}

.post-body h3 {
    font-size: 22px;
    margin: 28px 0 12px;
}

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

.post-body ul,
.post-body ol {
    margin: 16px 0 16px 24px;
}

.post-body img {
    margin: 24px 0;
    border-radius: var(--radius);
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    background: var(--bg-alt);
    margin: 24px 0;
    font-style: italic;
}

.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.post-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-alt);
    border-radius: 4px;
    font-size: 13px;
    margin: 4px 4px 4px 0;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
}

.search-form button {
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popular-post {
    display: flex;
    gap: 12px;
}

.popular-post-image {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.popular-post-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

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

.categories-list span {
    color: var(--text-light);
    font-size: 13px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    padding: 6px 14px;
    background: var(--bg-alt);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text);
}

.tags-cloud a:hover {
    background: var(--primary);
    color: #fff;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-tabs a {
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
}

.filter-tabs a:hover,
.filter-tabs a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

.comments-title {
    font-size: 22px;
    margin-bottom: 24px;
}

.comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    flex-shrink: 0;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.comment-body {
    font-size: 15px;
}

.comment-reply {
    font-size: 13px;
    color: var(--primary);
    margin-top: 8px;
}

.comment-form {
    margin-top: 40px;
}

.comment-form h3 {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-family: inherit;
    font-size: 15px;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    padding: 60px 0;
    margin-top: 60px;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-content {
    flex: 1;
    color: #fff;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text {
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-btn {
    background: #fff;
    color: var(--primary);
}

.cta-btn:hover {
    background: #f3f4f6;
    color: var(--primary-dark);
}

.cta-image {
    flex: 0 0 300px;
}

/* Footer */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 60px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand span {
    color: var(--primary-light);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: center;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 24px;
    padding: 30px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-top: 40px;
}

.author-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
}

.author-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.author-bio {
    font-size: 15px;
    color: var(--text-light);
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary);
}

.error-title {
    font-size: 32px;
    margin-bottom: 16px;
}

.error-text {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrap {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 20px;
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li {
        border-bottom: 1px solid #eee;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
    }

    .header-inner {
        position: relative;
    }

    .mobile-toggle {
        display: block;
    }

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

    .hero-title {
        font-size: 28px;
    }

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

    .single-content {
        padding: 20px;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-image {
        display: none;
    }

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

/* ===================================================================
   Single Post Page - Vexon Style
   =================================================================== */

/* Inner Hero - styles consolidated below in Blog1 section */

/* Hero Meta - Author, Date, Reading Time */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-meta-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-meta-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--trstyler-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.hero-meta-name {
    font-weight: 600;
    color: var(--trstyler-headings-color);
}

.hero-meta-name:hover {
    color: var(--trstyler-primary);
}

.hero-meta-separator {
    color: var(--trstyler-border);
    font-size: 12px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--trstyler-body-color);
    font-size: 14px;
}

.hero-meta-item i {
    font-size: 14px;
}

@media (max-width: 600px) {
    .hero-meta {
        flex-direction: column;
        gap: 16px;
    }

    .hero-meta-separator {
        display: none;
    }
}

.post-featured-section {
    padding: 40px 0;
}

.post-featured-section .featured-image-wrap {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.post-featured-section .featured-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Legacy - can be removed */
.post-header-left {
    position: relative;
}

.post-meta-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-info .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.author-info .author-name {
    color: var(--text);
    font-weight: 500;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
}

.meta-item a {
    color: var(--text-light);
}

.meta-icon {
    font-size: 14px;
}

.reading-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 16px;
}

.post-header-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text);
}

.post-header-excerpt {
    color: var(--text-light);
    line-height: 1.7;
}

.post-header-right .featured-image-wrap {
    border-radius: 12px;
    overflow: hidden;
}

.post-header-right .featured-image-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.post-header-right .placeholder-bg {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
}

/* Post Content Section */
.post-content-section {
    padding: 0 0 60px;
}

.post-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 50px;
    margin-top: 50px;
}

.post-content {
    background: var(--bg);
}

.content-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
    overflow-x: hidden;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Content Images - Prevent Overflow */
.content-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.content-body figure {
    max-width: 100%;
    margin: 24px 0;
}

.content-body figure img {
    margin: 0 auto;
}

.content-body figcaption {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 8px;
}

.content-body iframe,
.content-body video,
.content-body embed,
.content-body object {
    max-width: 100%;
    display: block;
    margin: 20px auto;
}

.content-body h2,
.content-body h3 {
    margin: 28px 0 16px;
}

.content-body h2 {
    font-size: 24px;
}

.content-body h3 {
    font-size: 20px;
}

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

.content-body ul,
.content-body ol {
    margin: 16px 0 16px 24px;
}

.content-body ul li,
.content-body ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content-body ul ul,
.content-body ol ol,
.content-body ul ol,
.content-body ol ul {
    margin: 8px 0 8px 20px;
}

/* Headings h4, h5 */
.content-body h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--heading);
}

.content-body h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: var(--heading);
}

/* Tables - Responsive */
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.content-body thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.content-body th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content-body td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.content-body tbody tr:last-child td {
    border-bottom: none;
}

.content-body tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.content-body tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Table Responsive Wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
}

.table-responsive table {
    margin: 0;
    min-width: 600px;
}

/* Code Blocks */
.content-body pre {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #333;
}

.content-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.content-body code {
    background: rgba(102, 126, 234, 0.1);
    color: #764ba2;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Blockquotes */
.content-body blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-left: 4px solid #667eea;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text);
}

.content-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Horizontal Rule */
.content-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 32px 0;
}

/* Links in content */
.content-body a {
    color: #c71c1b;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.content-body a:hover {
    border-bottom-color: #c71c1b;
}

/* Definition Lists */
.content-body dl {
    margin: 20px 0;
}

.content-body dt {
    font-weight: 600;
    margin-top: 16px;
}

.content-body dd {
    margin-left: 20px;
    color: var(--text-secondary);
}

/* Mobile Responsive Tables - Stack as cards */
@media (max-width: 768px) {
    .content-body table {
        border: 0;
        width: 100%;
    }

    .content-body table thead {
        display: block;
        background: #1f2937;
        color: #fff;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .content-body table thead tr {
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        gap: 8px;
    }

    .content-body table th {
        background: none;
        padding: 4px 8px;
        font-size: 12px;
        border: none;
    }

    .content-body table tbody tr {
        display: block;
        margin-bottom: 16px;
        background: #f8fafc;
        border-radius: 8px;
        padding: 12px;
        border: 1px solid #e5e7eb;
    }

    .content-body table td {
        display: block;
        padding: 8px 0;
        border: none;
        border-bottom: 1px solid #eee;
        text-align: left;
    }

    .content-body table td:last-child {
        border-bottom: none;
    }

    .content-body th,
    .content-body td {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .content-body pre {
        padding: 16px;
        font-size: 13px;
    }

    .content-body blockquote {
        padding: 16px 18px;
        margin: 20px 0;
    }
}

.content-body img {
    margin: 24px 0;
    border-radius: 8px;
}

/* Featured Image Inline (with Skeleton Loader) */
.featured-image-inline {
    margin: 0 0 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    aspect-ratio: 16 / 9;
    position: relative;
    max-width: 100%;
    width: 100%;
}

.featured-image-inline img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
    max-width: 100%;
}

.featured-image-inline img.loaded {
    opacity: 1;
}

/* Mobile Featured Image */
@media (max-width: 768px) {
    .featured-image-inline {
        margin: 0 0 30px;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }

    /* Prevent horizontal scroll on single posts */
    body.single-post {
        overflow-x: hidden;
    }

    .single-content {
        overflow-x: hidden;
        max-width: 100%;
    }

    .single-content img {
        max-width: 100%;
        height: auto;
    }
}

.content-body hr {
    margin-top: 30px;
    margin-bottom: 30px;
    border: none;
    border-top: 1px solid var(--border);
}

.content-body img.aligncenter {
    display: block;
    margin: 24px auto;
}

.content-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    background: var(--bg-alt);
    margin: 24px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.content-body blockquote span {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    font-style: normal;
    color: var(--text);
}

/* Post Footer - Tags & Share */
.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.tags-label,
.share-label {
    font-weight: 600;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-alt);
    border-radius: 4px;
    font-size: 13px;
    margin: 2px;
    color: var(--text);
}

.tag-link:hover {
    background: var(--primary);
    color: #fff;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 50%;
    font-size: 16px;
}

.share-link:hover {
    background: var(--primary);
}

/* Comments */
.comments-section {
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.comments-list {
    list-style: none;
    padding: 0;
}

.comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment .comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.comment .comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-header .comment-author {
    font-weight: 600;
    color: var(--text);
}

.comment-header .comment-date {
    font-size: 13px;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.comment-reply-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* Comment Form */
.comment-form-wrap {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-alt);
    border-radius: 12px;
}

.form-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 16px;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    cursor: pointer;
}

/* Post Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-widget .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

/* Author Card Widget */
.author-widget {
    text-align: center;
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 28px;
    margin: 0 auto 16px;
}

.author-card-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
}

.author-card-name {
    font-size: 18px;
    margin-bottom: 8px;
}

.author-card-bio {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Recent Posts Widget */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-post {
    display: flex;
    gap: 12px;
}

.recent-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
}

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.recent-post-title:hover {
    color: var(--primary);
}

.recent-post-date {
    font-size: 12px;
    color: var(--text-light);
}

/* Category List Widget */
.category-list {
    display: flex;
    flex-direction: column;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
}

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

.category-item:hover {
    color: var(--primary);
}

.category-item span {
    color: var(--text-light);
}

/* Responsive - Single Post */
@media (max-width: 1024px) {
    .post-header-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-header-left {
        order: 2;
    }

    .post-header-right {
        order: 1;
    }

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

    .post-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .inner-hero-title {
        font-size: 24px;
    }

    .post-header-title {
        font-size: 22px;
    }

    .post-meta-box {
        flex-wrap: wrap;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   Vexon Blog1 Category/Listing Styles
   =================================================================== */

/* Inner Hero Banner */
.inner-hero {
    background-color: var(--trstyler-bg-common);
    background-size: cover;
    background-position: center;
    padding: 60px 0;
}

.inner-hero .main-heading {
    text-align: center;
}

.inner-hero .box-breadcrumbs {
    margin-bottom: 16px;
}

.inner-hero .breadcrumb {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.inner-hero .breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--trstyler-body-color);
}

.inner-hero .breadcrumb li::after {
    content: "›";
    color: var(--trstyler-body-color);
}

.inner-hero .breadcrumb li:last-child::after {
    display: none;
}

.inner-hero .breadcrumb a {
    color: var(--trstyler-body-color);
}

.inner-hero .breadcrumb a:hover {
    color: var(--trstyler-primary);
}

.inner-hero .breadcrumb .primary-color span {
    color: var(--trstyler-primary);
    font-weight: 500;
}

.inner-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--trstyler-headings-color);
    margin: 0;
}

/* Blog Section */
.blog1 {
    background-color: var(--trstyler-white);
}

.pt-100 {
    padding-top: 100px;
}

.pb-100 {
    padding-bottom: 100px;
}

.bg1 {
    background-color: var(--trstyler-white);
}

/* Category Filter Menu */
.cat-widget {
    margin-bottom: 40px;
}

.menu-categories-nav {
    display: flex;
    justify-content: center;
}

.category-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.category-menu li a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--trstyler-bg-common);
    border-radius: 50px;
    color: var(--trstyler-body-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-menu li a:hover,
.category-menu li.active a,
.category-menu li a.active {
    background: var(--trstyler-primary);
    color: var(--trstyler-white);
}

/* Blog1 Posts Area */
.blog1-posts-area {
    margin-top: 20px;
}

.blog1-posts-area .row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog1 Single Box (Post Card) */
.blog1-single-box {
    background: var(--trstyler-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog1-single-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.mt-30 {
    margin-top: 0;
}

/* Thumbnail with Skeleton Loader */
.blog1-single-box .thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 414 / 280;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.blog1-single-box .thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog1-single-box .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.blog1-single-box .thumbnail img.loaded {
    opacity: 1;
}

.blog1-single-box:hover .thumbnail img {
    transform: scale(1.05);
}

.blog1-single-box .thumbnail .placeholder-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--trstyler-primary), #e02d2c);
}

/* Post Card Content */
.blog1-single-box .post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Social Area (Category + Reading Time) */
.social-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.social-area .social a {
    display: inline-block;
    background: rgba(75, 26, 179, 0.1);
    color: var(--trstyler-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.social-area .social a:hover {
    background: var(--trstyler-primary);
    color: var(--trstyler-white);
}

.social-area .time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--trstyler-body-color);
}

.social-area .time i {
    font-size: 12px;
}

/* Post Title in Card */
.blog1-single-box .post-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--trstyler-headings-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog1-single-box a:hover .post-title {
    color: var(--trstyler-primary);
}

/* Post Excerpt */
.blog1-single-box .post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--trstyler-body-color);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Author Area */
.author-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--trstyler-border);
    margin-top: auto;
}

.author-area .author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--trstyler-primary), #e02d2c);
}

.author-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.author-area .author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--trstyler-headings-color);
}

.author-area .date-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--trstyler-body-color);
}

.author-area .date-time i {
    font-size: 12px;
}

/* Pagination for Category */
.mt-60 {
    margin-top: 60px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--trstyler-bg-common);
    color: var(--trstyler-body-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover,
.pagination .page-link.current {
    background: var(--trstyler-primary);
    color: var(--trstyler-white);
}

/* Empty Message */
.empty-message {
    text-align: center;
    font-size: 18px;
    color: var(--trstyler-body-color);
    padding: 60px 20px;
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.text-center {
    text-align: center;
}

/* Utility Classes */
.col-md-6,
.col-lg-4 {
    display: block;
}

/* Responsive: Category Page */
@media (max-width: 1024px) {
    .blog1-posts-area .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .inner-hero h1 {
        font-size: 32px;
    }

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

    .pt-100 {
        padding-top: 60px;
    }

    .category-menu {
        gap: 6px;
    }

    .category-menu li a {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .inner-hero {
        padding: 40px 0;
    }

    .inner-hero h1 {
        font-size: 26px;
    }

    .social-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .author-area {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===================================================================
   Mobile Header Layout
   =================================================================== */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .mobile-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-actions {
        flex: 0 0 auto;
    }

    .search-toggle {
        padding: 4px;
    }
}

/* ===================================================================
   Search Popup
   =================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-popup {
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-popup {
    transform: translateY(0);
}

.search-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.search-close:hover {
    opacity: 1;
}

.search-form {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-input {
    flex: 1;
    padding: 20px 24px;
    border: none;
    font-size: 18px;
    outline: none;
    font-family: inherit;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-submit {
    padding: 20px 28px;
    background: var(--trstyler-primary);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* Search Results Page Inline Form */
.search-form-inline {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-form-inline .search-form {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-meta {
    font-size: 16px;
    color: var(--trstyler-body-color);
    margin-top: 12px;
}

/* ======================================================
   OFFERS PAGES STYLES
   ====================================================== */

/* Offers Listing Hero - extends inner-hero */
.inner-hero-offers {
    background: linear-gradient(135deg, #667eea 0%, #3730a3 100%);
}

/* White text overrides for colored background */
.inner-hero-offers .breadcrumb,
.inner-hero-offers .breadcrumb li,
.inner-hero-offers .breadcrumb a,
.inner-hero-offers .breadcrumb li::after {
    color: #fff !important;
}

.inner-hero-offers .breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.inner-hero-offers h1 {
    color: #fff !important;
}

.inner-hero-offers .hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 12px auto 24px;
}

.offers-search-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.offers-search-form input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    outline: none;
}

.offers-search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
}

/* Offers Page Layout */
.offers-page {
    padding: 40px 0 80px;
    background: var(--bg);
}

.offers-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Sidebar */
.offers-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sidebar-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list,
.type-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li a,
.type-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.category-list li a:hover,
.type-list li a:hover {
    background: var(--bg-alt);
}

.category-list li.active a {
    background: var(--primary);
    color: #fff;
}

.cat-emoji {
    font-size: 18px;
}

.cat-name {
    flex: 1;
}

.cat-count {
    background: var(--bg-alt);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.category-list li.active .cat-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Offers Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.offer-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.offer-header {
    background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 70%, #000));
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offer-emoji {
    font-size: 40px;
}

.offer-featured,
.offer-ending {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}

.offer-body {
    padding: 20px;
}

.offer-brand {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-body h3 {
    font-size: 18px;
    margin: 8px 0 12px;
    line-height: 1.4;
}

.offer-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.offer-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.offer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.offer-category {
    font-size: 13px;
    color: var(--text-muted);
}

.offer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

.btn-offer {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--bg-alt);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-offer:hover {
    background: var(--primary);
    color: #fff;
}

/* Offers Pagination */
.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-pages a,
.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination-pages a {
    background: #f3f4f6;
    color: #374151;
}

.pagination-pages a:hover {
    background: var(--primary);
    color: #fff;
}

.pagination-current {
    background: var(--primary);
    color: #fff;
}

.pagination-dots {
    color: #9ca3af;
    padding: 0 4px;
}

/* Featured Offers */
.featured-offers {
    margin-bottom: 40px;
}

.featured-offers h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-card {
    background: linear-gradient(135deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 60%, #000));
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.featured-card:hover {
    transform: scale(1.02);
}

.featured-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.featured-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}

.featured-brand {
    font-size: 14px;
    opacity: 0.8;
}

/* Offers Header */
.offers-header {
    margin-bottom: 24px;
}

.offers-header h2 {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.offers-header .count {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

/* No Offers */
.no-offers {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border-radius: 16px;
}

.no-offers-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-offers h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.no-offers p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ======================================================
   SINGLE OFFER PAGE
   ====================================================== */

/* Offer Hero - extends inner-hero with dynamic category color */
.inner-hero-offer {
    background: linear-gradient(135deg, var(--cat-color, #667eea) 0%, #1e1b4b 100%);
}

/* White text overrides for colored background */
.inner-hero-offer .breadcrumb,
.inner-hero-offer .breadcrumb li,
.inner-hero-offer .breadcrumb a,
.inner-hero-offer .breadcrumb li::after {
    color: #fff !important;
}

.inner-hero-offer .breadcrumb a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.inner-hero-offer .offer-hero-content {
    text-align: center;
    margin-top: 16px;
}

.inner-hero-offer .offer-hero-icon {
    font-size: 60px;
    margin-bottom: 12px;
}

.inner-hero-offer .offer-brand-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.inner-hero-offer h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #fff !important;
}

.inner-hero-offer .offer-value-tag {
    display: inline-block;
    background: #fff;
    color: #1e1b4b;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Offer Page Layout */
.offer-page {
    padding: 40px 0 80px;
    background: var(--bg);
}

.offer-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Status Card */
.offer-status-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.status-badge {
    font-size: 18px;
    font-weight: 600;
}

.status-dates {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.btn-get-offer {
    background: var(--primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s;
}

.btn-get-offer:hover {
    transform: scale(1.05);
    color: #fff;
}

/* Offer Sections */
.offer-section {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.offer-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.offer-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

/* Details Grid */
.offer-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-icon {
    font-size: 24px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
}

/* Redemption Steps */
.redemption-steps {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #86efac;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dashed #d1fae5;
}

.step-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-item:first-child {
    padding-top: 0;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    padding-top: 4px;
}

/* Product Info */
.product-info {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #93c5fd;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

/* Terms */
.offer-terms {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* CTA Section */
.offer-cta-section {
    margin-top: 40px;
}

.offer-cta-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    border: 2px dashed var(--border);
}

.cta-emoji {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.offer-cta-box h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.offer-cta-box p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.btn-get-offer-large {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 18px 48px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(199, 28, 27, 0.3);
}

.btn-get-offer-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(199, 28, 27, 0.4);
    color: #fff;
}

.official-notice {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.official-notice i {
    color: #10b981;
}

/* Offer Page Ads */
.ad-container {
    margin-bottom: 24px;
    text-align: center;
}

.ad-sidebar {
    width: 300px;
    min-height: 250px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-incontent {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin: 24px auto;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .ad-incontent {
        max-width: 300px;
        min-height: 250px;
    }

    .ad-sidebar {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Sidebar Cards */
.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sidebar-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

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

.share-btn.twitter {
    background: #000;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.copy {
    background: var(--text-muted);
}

.brand-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.stats-card {
    display: flex;
    gap: 24px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Related Offers */
.related-offers {
    margin-top: 60px;
}

.related-offers h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.related-brand {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.related-card h4 {
    font-size: 15px;
    color: var(--text);
    margin: 8px 0;
    line-height: 1.4;
}

.related-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .offers-layout {
        grid-template-columns: 1fr;
    }

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

    .offers-sidebar {
        display: none;
    }

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

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

@media (max-width: 768px) {
    .offers-hero-content h1 {
        font-size: 28px;
    }

    .offer-hero-main {
        flex-direction: column;
        text-align: center;
    }

    .offer-emoji-large {
        font-size: 60px;
    }

    .offer-hero-text h1 {
        font-size: 24px;
    }

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

    .offer-details-grid {
        grid-template-columns: 1fr;
    }

    .offer-status-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .status-dates {
        flex-direction: column;
        gap: 8px;
    }

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

/* ===================================================================
   Global Ad Unit Styles (Google AdSense Fix)
   =================================================================== */

.ad-unit {
    display: block;
    width: 100%;
    min-height: 90px;
    text-align: center;
    margin: 20px 0;
    overflow: visible;
}

.ad-unit ins {
    display: block !important;
}

/* Sidebar Ad - 300x250 */
.ad-sidebar {
    width: 300px;
    min-height: 250px;
    margin-left: auto;
    margin-right: auto;
}

/* In Content Ad - Responsive */
.ad-in-content {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    margin-left: auto;
    margin-right: auto;
}

/* Below Result Ad - 728x90 desktop, 300x250 mobile */
.ad-below-result {
    width: 728px;
    min-height: 90px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {

    .ad-below-result,
    .ad-in-content {
        width: 300px;
        min-height: 250px;
    }
}