/*
Theme Name: Visit To Me
Theme URI: https://example.com/techpulse
Author: MiniMax Agent
Author URI: https://example.com
Description: A modern tech news theme inspired by TechCrunch with full admin dashboard controls. Features include customizable hero sections, multiple article layouts, newsletter integration, and comprehensive theme options.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techpulse
Tags: news, blog, tech, magazine, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --tp-primary: #0a9e00;
    --tp-primary-hover: #078a00;
    --tp-secondary: #1a1a1a;
    --tp-accent: #ff6600;
    --tp-text: #333333;
    --tp-text-light: #666666;
    --tp-text-muted: #999999;
    --tp-background: #ffffff;
    --tp-background-alt: #f5f5f5;
    --tp-border: #e0e0e0;
    --tp-dark-bg: #1a1a1a;
    --tp-dark-text: #ffffff;
    --tp-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tp-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tp-border-radius: 8px;
    --tp-transition: all 0.3s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--tp-font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tp-text);
    background-color: var(--tp-background);
}

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

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

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

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--tp-dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo .logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--tp-dark-text);
    letter-spacing: -1px;
}

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

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--tp-dark-text);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
    transition: var(--tp-transition);
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    background-color: var(--tp-primary);
    color: white;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--tp-dark-text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--tp-dark-text);
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    margin: 5px 0;
    transition: var(--tp-transition);
}

/* Search Overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-form-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.search-form-wrapper .search-form {
    display: flex;
    background: white;
    border-radius: var(--tp-border-radius);
    overflow: hidden;
}

.search-form-wrapper input[type="search"] {
    flex: 1;
    padding: 20px;
    border: none;
    font-size: 1.25rem;
    outline: none;
}

.search-form-wrapper button {
    padding: 20px 30px;
    background: var(--tp-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding: 40px 0;
    background-color: var(--tp-background);
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.hero-main {
    position: relative;
    border-radius: var(--tp-border-radius);
    overflow: hidden;
    min-height: 500px;
}

.hero-main .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
}

.hero-main .category-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--tp-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
}

.hero-main .hero-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px;
}

.hero-main .hero-title a {
    color: inherit;
}

.hero-main .hero-title a:hover {
    opacity: 0.9;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.hero-meta .author {
    font-weight: 600;
}

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

.hero-sidebar-item {
    padding: 20px;
    background-color: var(--tp-background-alt);
    border-radius: var(--tp-border-radius);
}

.hero-sidebar-item .category-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--tp-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

.hero-sidebar-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
}

.hero-sidebar-item h3 a {
    color: var(--tp-text);
}

.hero-sidebar-item h3 a:hover {
    color: var(--tp-primary);
}

.hero-sidebar-item .meta {
    font-size: 0.8rem;
    color: var(--tp-text-muted);
}

/* ==========================================================================
   Secondary Featured
   ========================================================================== */
.secondary-featured {
    padding: 20px 0 40px;
}

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

.featured-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--tp-background-alt);
    border-radius: var(--tp-border-radius);
    transition: var(--tp-transition);
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.featured-card .card-image {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
}

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

.featured-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card .category-badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 8px;
    background-color: var(--tp-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

.featured-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 auto;
}

.featured-card h3 a {
    color: var(--tp-text);
}

.featured-card h3 a:hover {
    color: var(--tp-primary);
}

.featured-card .card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--tp-text-muted);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content-area {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--tp-primary);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--tp-text);
}

.section-header .view-all {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tp-primary);
}

/* Article Cards */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.article-card {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--tp-border);
}

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

.article-card .card-image {
    flex-shrink: 0;
    width: 280px;
    height: 180px;
    border-radius: var(--tp-border-radius);
    overflow: hidden;
}

.article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tp-transition);
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.article-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card .category-badge {
    display: inline-block;
    width: fit-content;
    padding: 4px 10px;
    background-color: var(--tp-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 10px;
}

.article-card h3 a {
    color: var(--tp-text);
}

.article-card h3 a:hover {
    color: var(--tp-primary);
}

.article-card .excerpt {
    font-size: 0.9rem;
    color: var(--tp-text-light);
    line-height: 1.6;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--tp-text-muted);
}

.article-card .card-meta .author {
    font-weight: 600;
    color: var(--tp-text);
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--tp-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--tp-border-radius);
    cursor: pointer;
    transition: var(--tp-transition);
}

.load-more-btn:hover {
    background-color: var(--tp-primary-hover);
    transform: translateY(-2px);
}

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

.sidebar-widget {
    background-color: var(--tp-background-alt);
    border-radius: var(--tp-border-radius);
    padding: 25px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--tp-primary);
}

/* Top Headlines Widget */
.top-headlines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-headlines-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--tp-border);
}

.top-headlines-list li:first-child {
    padding-top: 0;
}

.top-headlines-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.top-headlines-list .headline-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--tp-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
    margin-right: 10px;
}

.top-headlines-list a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tp-text);
    line-height: 1.4;
}

.top-headlines-list a:hover {
    color: var(--tp-primary);
}

/* Most Popular Widget */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--tp-border);
}

.popular-list li:first-child {
    padding-top: 0;
}

.popular-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-list .popular-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background-color: var(--tp-dark-bg);
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
}

.popular-list .popular-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 5px;
}

.popular-list .popular-content h4 a {
    color: var(--tp-text);
}

.popular-list .popular-content h4 a:hover {
    color: var(--tp-primary);
}

.popular-list .popular-meta {
    font-size: 0.75rem;
    color: var(--tp-text-muted);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-hover));
    color: white;
}

.newsletter-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.newsletter-form .form-group {
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
}

.newsletter-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.newsletter-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background-color: white;
    color: var(--tp-primary);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tp-transition);
}

.newsletter-form button:hover {
    background-color: var(--tp-dark-bg);
    color: white;
}

/* Events Widget */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
}

.event-card .event-date {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    padding: 10px 5px;
    background-color: var(--tp-primary);
    color: white;
    border-radius: 6px;
}

.event-card .event-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.event-card .event-date .day {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
}

.event-card .event-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 5px;
}

.event-card .event-content h4 a {
    color: var(--tp-text);
}

.event-card .event-location {
    font-size: 0.75rem;
    color: var(--tp-text-muted);
}

/* ==========================================================================
   Category Section
   ========================================================================== */
.category-section {
    padding: 50px 0;
    background-color: var(--tp-background-alt);
}

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

.category-card {
    background-color: white;
    border-radius: var(--tp-border-radius);
    overflow: hidden;
    transition: var(--tp-transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.category-card .card-image {
    height: 160px;
    overflow: hidden;
}

.category-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tp-transition);
}

.category-card:hover .card-image img {
    transform: scale(1.05);
}

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

.category-card .category-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--tp-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;
}

.category-card h3 a {
    color: var(--tp-text);
}

.category-card h3 a:hover {
    color: var(--tp-primary);
}

.category-card .card-meta {
    font-size: 0.75rem;
    color: var(--tp-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--tp-dark-bg);
    color: var(--tp-dark-text);
    padding: 60px 0 30px;
}

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

.footer-brand .footer-logo {
    margin-bottom: 20px;
}

.footer-brand .footer-logo img {
    height: 35px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.footer-brand .logo-text span {
    color: var(--tp-primary);
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--tp-transition);
}

.social-links a:hover {
    background-color: var(--tp-primary);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--tp-transition);
}

.footer-column ul a:hover {
    color: var(--tp-primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom .copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links a:hover {
    color: var(--tp-primary);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-header {
    padding: 60px 0 40px;
    background-color: var(--tp-background-alt);
}

.single-post-header .category-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--tp-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 20px;
}

.single-post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px;
    max-width: 900px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--tp-text-light);
}

.single-post-meta .author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
}

.single-post-meta .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-meta .author-info .author-name {
    font-weight: 600;
    color: var(--tp-text);
}

.single-post-featured-image {
    max-width: 1140px;
    margin: -20px auto 0;
    border-radius: var(--tp-border-radius);
    overflow: hidden;
}

.single-post-content {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .single-post-content {
        padding: 30px 16px;
    }

    .single-post-meta {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .single-post-meta .author-info {
        display: flex;
        flex-direction: column;
    }
}

.single-post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.single-post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2em 0 1em;
}

.single-post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5em 0 0.75em;
}

.single-post-content blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    border-left: 4px solid var(--tp-primary);
    background-color: var(--tp-background-alt);
    font-size: 1.15rem;
    font-style: italic;
}

.single-post-content img {
    border-radius: var(--tp-border-radius);
    margin: 2em 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 30px;
    border-top: 1px solid var(--tp-border);
    margin-top: 40px;
}

.post-tags a {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--tp-background-alt);
    color: var(--tp-text);
    font-size: 0.8rem;
    border-radius: 20px;
    transition: var(--tp-transition);
}

.post-tags a:hover {
    background-color: var(--tp-primary);
    color: white;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 25px;
    padding: 30px;
    background-color: var(--tp-background-alt);
    border-radius: var(--tp-border-radius);
    margin: 40px auto;
    max-width: 1140px;
    width: calc(100% - 40px);
}

.author-box .author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.author-box .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box .author-info h4 {
    font-size: 1.1rem;
    margin: 0 0 10px;
}

.author-box .author-info p {
    font-size: 0.9rem;
    color: var(--tp-text-light);
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    margin: 30px auto 0;
    max-width: 1140px;
    width: calc(100% - 40px);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    padding: 20px;
    background-color: var(--tp-background-alt);
    border-radius: var(--tp-border-radius);
    border: 1px solid var(--tp-border);
}

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

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tp-text-muted);
    margin-bottom: 8px;
}

.post-navigation a {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-text);
    line-height: 1.35;
}

.post-navigation a:hover {
    color: var(--tp-primary);
}

@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        align-items: flex-start;
        width: calc(100% - 32px);
        padding: 20px;
    }

    .post-navigation {
        width: calc(100% - 32px);
    }

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

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

/* Related Posts */
.related-posts {
    padding: 50px 0;
    background-color: var(--tp-background-alt);
}

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

/* ==========================================================================
   Archive/Category Page
   ========================================================================== */
.archive-header {
    padding: 50px 0;
    background-color: var(--tp-background-alt);
    text-align: center;
}

.archive-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px;
}

.archive-header .archive-description {
    font-size: 1.1rem;
    color: var(--tp-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background-color: var(--tp-background-alt);
    color: var(--tp-text);
    font-size: 0.9rem;
    border-radius: 6px;
    transition: var(--tp-transition);
}

.pagination a:hover {
    background-color: var(--tp-primary);
    color: white;
}

.pagination .current {
    background-color: var(--tp-primary);
    color: white;
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 25px 0;
    border-bottom: 1px solid var(--tp-border);
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author-name {
    font-weight: 600;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--tp-text-muted);
}

.comment-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

.comment-reply-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-primary);
}

/* Comment Form */
.comment-respond {
    margin-top: 40px;
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--tp-border);
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

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

.comment-form .submit {
    padding: 12px 30px;
    background-color: var(--tp-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tp-transition);
}

.comment-form .submit:hover {
    background-color: var(--tp-primary-hover);
}

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

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

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

    .hero-sidebar {
        flex-direction: row;
    }

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

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-widget {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-main {
        min-height: 350px;
    }

    .hero-main .hero-title {
        font-size: 1.5rem;
    }

    .hero-sidebar {
        flex-direction: column;
    }

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

    .featured-card {
        flex-direction: column;
    }

    .featured-card .card-image {
        width: 100%;
        height: 200px;
    }

    .article-card {
        flex-direction: column;
    }

    .article-card .card-image {
        width: 100%;
        height: 200px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .single-post-header h1 {
        font-size: 1.75rem;
    }

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

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tp-dark-bg);
    z-index: 9998;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

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

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul a {
    display: block;
    padding: 15px 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Breaking News Bar
   ========================================================================== */
.breaking-bar {
    background-color: var(--tp-secondary);
    color: #ffffff;
    font-size: 0.875rem;
}

.breaking-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 0;
}

.breaking-label {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: var(--tp-accent);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.breaking-ticker {
    overflow: hidden;
    flex: 1;
}

.breaking-ticker ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: tp-ticker 40s linear infinite;
}

.breaking-ticker li {
    white-space: nowrap;
}

.breaking-ticker a {
    color: #ffffff;
    font-weight: 500;
}

.breaking-ticker .time {
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes tp-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* ==========================================================================
   Admin Bar Adjustments
   ========================================================================== */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
