/* ================================
   CSS RESET & BASE STYLES
   ================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-color: #2d3436;
    --text-color: #333333;
    --text-light: #636e72;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #f1f2f6;
    --border-color: #e1e5e9;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --container-width: 1200px;
    --radius: 12px;
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
}

/* ================================
   CONTAINER
   ================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

/* ================================
   HEADER / NAVIGATION
   ================================ */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-top-bar {
    background: var(--dark-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

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

.header-top-bar a {
    color: #ccc;
}

.header-top-bar a:hover {
    color: var(--primary-color);
}

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

.social-links a {
    font-size: 0.9rem;
}

.header-main {
    padding: 20px 0;
}

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

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -1px;
}

.site-title a {
    color: var(--dark-color);
}

.site-title a span {
    color: var(--primary-color);
}

.site-description {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

.header-search {
    position: relative;
}

.header-search input {
    padding: 10px 40px 10px 18px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    width: 250px;
    outline: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.header-search input:focus {
    border-color: var(--primary-color);
    width: 300px;
}

.header-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
}

/* Navigation */
.main-navigation {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    font-family: var(--font-heading);
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-menu li a:hover::after,
.nav-menu li.current-menu-item a::after {
    width: 60%;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

/* Dropdown */
.nav-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    min-width: 220px;
    box-shadow: var(--shadow-hover);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li .sub-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-gray);
}

.nav-menu li .sub-menu li a::after {
    display: none;
}

.nav-menu li .sub-menu li:last-child a {
    border-bottom: none;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.dark-mode-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

/* ================================
   HERO / FEATURED SECTION
   ================================ */
.hero-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 500px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    grid-row: span 2;
}

.hero-main .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-sidebar-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 240px;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
}

.hero-overlay .category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.hero-overlay h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.hero-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

.hero-overlay .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ================================
   CATEGORY BADGES
   ================================ */
.category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-badge.tech { background: #6c5ce7; }
.category-badge.lifestyle { background: #00b894; }
.category-badge.travel { background: #fdcb6e; color: #333; }
.category-badge.food { background: #e17055; }
.category-badge.health { background: #0984e3; }
.category-badge.business { background: #2d3436; }

/* ================================
   CONTENT AREA
   ================================ */
.content-area {
    padding: 50px 0;
}

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

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--dark-color);
}

.section-header h2 {
    font-size: 1.5rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

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

.section-header .view-all:hover {
    text-decoration: underline;
}

/* ================================
   POST CARDS - GRID
   ================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

.post-card .post-thumbnail .category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.post-card .post-thumbnail .reading-time {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    z-index: 2;
}

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

.post-card .post-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.post-card .post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

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

.post-meta .author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.post-meta .author-name {
    font-weight: 600;
    color: var(--dark-color);
}

.post-meta .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ================================
   POST LIST STYLE
   ================================ */
.posts-list .post-card-horizontal {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    background: var(--bg-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: var(--transition);
}

.posts-list .post-card-horizontal:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.posts-list .post-card-horizontal .post-thumbnail {
    height: 100%;
    min-height: 220px;
    overflow: hidden;
}

.posts-list .post-card-horizontal .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.posts-list .post-card-horizontal:hover .post-thumbnail img {
    transform: scale(1.05);
}

.posts-list .post-card-horizontal .post-content {
    padding: 25px 25px 25px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.posts-list .post-card-horizontal .post-title {
    font-size: 1.3rem;
    margin: 10px 0;
}

/* ================================
   SIDEBAR
   ================================ */
.sidebar {
    position: sticky;
    top: 100px;
}

.widget {
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--dark-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

/* About Widget */
.widget-about {
    text-align: center;
}

.widget-about .about-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.widget-about p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.widget-about .social-links {
    justify-content: center;
    gap: 10px;
}

.widget-about .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text-light);
    transition: var(--transition);
}

.widget-about .social-links a:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Popular Posts Widget */
.popular-posts-list .popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.popular-posts-list .popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-item .post-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-gray);
    font-family: var(--font-heading);
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
}

.popular-post-item .post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-post-item .post-info {
    flex: 1;
}

.popular-post-item .post-info h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-item .post-info h4 a:hover {
    color: var(--primary-color);
}

.popular-post-item .post-info .date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Categories Widget */
.categories-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list li a {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.categories-list li .count {
    background: var(--bg-gray);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    display: inline-block;
    padding: 6px 15px;
    background: var(--bg-gray);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: var(--transition);
}

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

/* Newsletter Widget */
.widget-newsletter {
    background: linear-gradient(135deg, var(--primary-color), #ee5a6f);
    color: #fff;
}

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

.widget-newsletter .widget-title::after {
    background: #fff;
}

.widget-newsletter p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    outline: none;
    font-family: var(--font-primary);
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--dark-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.newsletter-form button:hover {
    background: #000;
}

/* ================================
   TRENDING / HORIZONTAL SCROLL
   ================================ */
.trending-section {
    background: var(--bg-light);
    padding: 40px 0;
}

.trending-bar {
    background: var(--dark-color);
    color: #fff;
    padding: 12px 0;
}

.trending-bar .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.trending-label {
    background: var(--primary-color);
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 1px;
}

.trending-posts-scroll {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.trending-posts-scroll::-webkit-scrollbar {
    display: none;
}

.trending-item {
    min-width: 280px;
    flex-shrink: 0;
}

/* ================================
   PAGINATION
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    padding-top: 30px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.pagination .prev,
.pagination .next {
    font-weight: 700;
}

/* ================================
   SINGLE POST
   ================================ */
.single-post-header {
    text-align: center;
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.single-post-header .category-badge {
    margin-bottom: 15px;
}

.single-post-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.single-post-header .post-meta .author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.single-featured-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    max-height: 500px;
}

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

.single-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-content .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.single-content .entry-content h2 {
    font-size: 1.8rem;
    margin: 35px 0 15px;
}

.single-content .entry-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 12px;
}

.single-content .entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background: var(--bg-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.15rem;
}

.single-content .entry-content ul,
.single-content .entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.single-content .entry-content li {
    list-style: disc;
    margin-bottom: 8px;
}

.single-content .entry-content ol li {
    list-style: decimal;
}

.single-content .entry-content img {
    border-radius: var(--radius);
    margin: 25px 0;
}

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

.post-tags .tags-label {
    font-weight: 700;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.share-buttons .share-label {
    font-weight: 700;
    margin-right: 5px;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
}

.share-buttons a:hover {
    transform: translateY(-3px);
}

.share-buttons .share-facebook { background: #1877f2; }
.share-buttons .share-twitter { background: #1da1f2; }
.share-buttons .share-pinterest { background: #e60023; }
.share-buttons .share-linkedin { background: #0077b5; }
.share-buttons .share-whatsapp { background: #25d366; }

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

.author-box .author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box .author-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

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

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.post-navigation .nav-link {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.post-navigation .nav-link:hover {
    background: var(--bg-gray);
}

.post-navigation .nav-link .nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

.post-navigation .nav-link .nav-title {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 5px;
}

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

/* Related Posts */
.related-posts {
    margin: 50px 0;
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--dark-color);
    position: relative;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

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

/* ================================
   COMMENTS
   ================================ */
.comments-area {
    margin: 50px 0;
}

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

.comment-list {
    margin-bottom: 40px;
}

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

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

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

.comment .comment-author {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

.comment .comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

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

.comment .comment-reply {
    margin-top: 10px;
}

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

/* Nested Comments */
.comment .children {
    margin-top: 25px;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

/* Comment Form */
.comment-form-wrapper {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
}

.comment-form-wrapper h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

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

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: var(--transition);
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
}

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

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

.comment-form .submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.comment-form .submit-btn:hover {
    background: #e55656;
    transform: translateY(-2px);
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
    background: var(--dark-color);
    color: #ccc;
}

.footer-top {
    padding: 60px 0 40px;
}

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

.footer-widget .footer-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-widget .footer-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-widget p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #aaa;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-widget ul li a::before {
    content: '›';
    font-size: 1.2rem;
}

/* Footer Recent Posts */
.footer-recent-post {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-recent-post img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.footer-recent-post h4 {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 5px;
    line-height: 1.4;
}

.footer-recent-post h4 a:hover {
    color: var(--primary-color);
}

.footer-recent-post .date {
    font-size: 0.8rem;
    color: #888;
}

/* Footer Newsletter */
.footer-newsletter input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
}

.footer-newsletter button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
}

.footer-newsletter button:hover {
    background: #e55656;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #888;
}

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

.footer-bottom-links a {
    font-size: 0.85rem;
    color: #888;
}

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

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-hover);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e55656;
    transform: translateY(-5px);
}

/* ================================
   404 PAGE
   ================================ */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-404 p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-404 .search-form {
    max-width: 500px;
    margin: 0 auto 30px;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #e55656;
    transform: translateY(-2px);
    color: #fff;
}

/* ================================
   BREADCRUMBS
   ================================ */
.breadcrumbs {
    padding: 15px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-light);
}

.breadcrumbs a {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
}

/* ================================
   LOADING ANIMATION
   ================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

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

/* ================================
   DARK MODE
   ================================ */
body.dark-mode {
    --bg-color: #1a1a2e;
    --bg-light: #16213e;
    --bg-gray: #0f3460;
    --text-color: #e1e1e1;
    --text-light: #a0a0a0;
    --dark-color: #ffffff;
    --border-color: #2a2a4a;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.4);
}

body.dark-mode .site-header,
body.dark-mode .main-navigation {
    background: #1a1a2e;
    border-color: var(--border-color);
}

body.dark-mode .header-search input {
    background: var(--bg-light);
    color: #fff;
}

body.dark-mode .post-card {
    background: var(--bg-light);
}

body.dark-mode .widget {
    background: var(--bg-light);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

    .hero-grid {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        box-shadow: var(--shadow);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li a::after {
        display: none;
    }

    .nav-menu li .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
    }

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

    .hero-main {
        grid-row: auto;
        min-height: 300px;
    }

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

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

    .posts-list .post-card-horizontal {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

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

    .header-search input {
        width: 180px;
    }

    .header-search input:focus {
        width: 220px;
    }

    .header-top-bar {
        display: none;
    }

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

    .single-post-header .post-meta {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-sidebar-grid {
        grid-template-columns: 1fr;
    }

    .hero-overlay h2 {
        font-size: 1.2rem;
    }

    .hero-overlay h3 {
        font-size: 0.95rem;
    }

    .header-search {
        display: none;
    }

    .share-buttons a {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}
