/*
Theme Name: DJMwanga AfroMusic Premium
Theme URI: https://djmwanga.com
Author: Yatosha Web Services
Author URI: https://yatosha.com
Description: Premium Afro music blog theme with trending tracks sidebar (1-10), social sharing, responsive design
Version: 2.0.0
License: GPL v2 or later
Text Domain: djmwanga
*/

:root {
    --primary: #FFD700;
    --primary-dark: #DAA520;
    --primary-light: #FFEB3B;
    --dark: #0a0a0a;
    --dark-light: #1a1a1a;
    --gray-bg: #f5f5f5;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-light: #666666;
    --text-muted: #888888;
    --border: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    background: #000000;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-bottom: 2px solid var(--primary);
}

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

.header-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-mobile {
    display: none;
}

.site-title a {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.site-title a i {
    color: var(--primary);
    margin-right: 6px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-bar form {
    display: flex;
    background: var(--white);
    border-radius: 40px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 8px 16px;
    border: none;
    outline: none;
    font-size: 13px;
}

.search-bar button {
    background: var(--primary);
    border: none;
    padding: 0 18px;
    color: var(--dark);
    cursor: pointer;
}

/* AJAX Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s;
}

.search-result-item:hover {
    background: var(--gray-bg);
}

.search-result-item img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
}

.search-result-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.search-result-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-navigation ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    padding: 6px 0;
    position: relative;
}

.main-navigation ul li a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-navigation ul li a:hover:after,
.main-navigation ul li a.active:after {
    width: 100%;
}

.main-navigation ul li a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

/* Content Layout */
.site-content {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 20px;
}

.home-layout {
    display: flex;
    gap: 35px;
}

.main-column {
    flex: 2.5;
}

.widget-area {
    flex: 1.2;
    position: sticky;
    top: 80px;
    align-self: start;
}

/* Latest Section */
.latest-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.section-subtitle {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

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

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

@media (max-width: 640px) {
    .post-card img {
        height: 120px;
    }
}

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

@media (max-width: 640px) {
    .post-card-content {
        padding: 10px;
    }
}

.post-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 10px;
}

.post-card-content h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .post-card-content h3 {
        font-size: 0.85rem;
    }
}

.post-card-content h3 a {
    text-decoration: none;
    color: var(--text);
}

.post-date {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.view-track {
    display: inline-block;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
}

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

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--dark);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--primary-light);
    color: var(--dark);
}

/* Sidebar Widgets */
.widget {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.widget-title i {
    color: var(--primary);
    margin-right: 8px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--gray-bg);
    border-radius: 12px;
    transition: all 0.3s;
}

.trending-item:hover {
    background: #fff8e7;
    transform: translateX(3px);
}

.trending-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-dark);
    min-width: 45px;
    text-align: center;
}

.trending-item.rank-1 .trending-number,
.trending-item.rank-2 .trending-number,
.trending-item.rank-3 .trending-number {
    color: var(--primary);
}

.trending-thumb {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #ddd;
}

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

.no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--dark);
    font-size: 20px;
}

.trending-info h4 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 600;
}

.trending-info h4 a {
    text-decoration: none;
    color: var(--text);
}

.trending-artist {
    font-size: 11px;
    color: var(--text-muted);
}

/* Single Post - New Layout: Image Left, Title Right */
.single-container {
    display: flex;
    gap: 35px;
}

.single-main {
    flex: 2.5;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Hero Section - Image left, content right */
.post-hero {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--white);
}

.post-hero-image {
    flex: 1;
    max-width: 40%;
}

.post-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.post-hero-content {
    flex: 1.5;
}

.post-type {
    display: inline-block;
    background: var(--primary);
    color: var(--dark);
    padding: 4px 14px;
    border-radius: 25px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    padding: 8px 22px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    margin-top: 10px;
}

.post-meta-bar {
    padding: 12px 30px;
    background: #fafafa;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-type-badge {
    background: var(--primary);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 9px;
    font-weight: 700;
}

/* Full Width Content */
.post-content {
    padding: 30px;
    font-size: 0.95rem;
    line-height: 1.7;
    width: 100%;
}

.post-content p {
    margin-bottom: 1.2em;
}

/* Share Buttons */
.share-section {
    margin: 20px 30px 25px;
    padding: 20px;
    background: var(--gray-bg);
    border-radius: 14px;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 40px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #000000; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }

/* Related Posts */
.related-posts {
    margin: 20px 30px 35px;
}

.related-posts h3 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.related-item {
    background: var(--gray-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-info {
    padding: 12px;
}

.related-type {
    font-size: 9px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.related-info h4 {
    font-size: 12px;
    margin: 6px 0 4px;
    font-weight: 700;
}

.related-date {
    font-size: 9px;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    background: #000000;
    color: rgba(255,255,255,0.7);
    padding: 25px 0 15px;
    margin-top: 50px;
    border-top: 2px solid var(--primary);
}

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    transition: all 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-layout, .single-container {
        flex-direction: column;
    }
    .widget-area {
        position: static;
    }
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    .footer-col ul {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-desktop {
        display: none;
    }
    
    .header-mobile {
        display: block;
    }
    
    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-search {
        margin-top: 12px;
    }
    
    .mobile-search form {
        display: flex;
        background: var(--white);
        border-radius: 40px;
        overflow: hidden;
    }
    
    .mobile-search input {
        flex: 1;
        padding: 10px 16px;
        border: none;
        outline: none;
        font-size: 13px;
    }
    
    .mobile-search button {
        background: var(--primary);
        border: none;
        padding: 0 18px;
        color: var(--dark);
        cursor: pointer;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        gap: 12px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-navigation ul.show {
        display: flex;
    }
    
    /* Single Post Mobile - Stack image above title */
    .post-hero {
        flex-direction: column;
        padding: 20px;
    }
    
    .post-hero-image {
        max-width: 100%;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .post-meta-bar {
        padding: 10px 20px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .share-section {
        margin: 15px 20px 20px;
        padding: 15px;
    }
    
    .related-posts {
        margin: 15px 20px 25px;
    }
}

/* Post Meta Below Title - New Style */
.post-meta-below-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 20px;
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.post-meta-below-title span {
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-audio-badge {
    background: var(--primary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
}

.meta-artist {
    color: var(--primary-dark);
    font-weight: 600;
}

.meta-date {
    color: var(--text-muted);
}

.meta-comments {
    color: var(--text-muted);
}

.meta-comments i {
    color: var(--primary);
}

/* Remove old post-meta-bar since we moved it */
.post-meta-bar {
    display: none;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .post-meta-below-title {
        gap: 8px;
        margin: 10px 0 15px;
        padding: 8px 0;
    }
    
    .post-meta-below-title span {
        font-size: 10px;
    }
    
    .meta-audio-badge {
        padding: 3px 10px;
        font-size: 9px;
    }
}

/* ============================================
   RELATED POSTS FIXED STYLES - No blue titles
   ============================================ */

.related-posts {
    margin: 20px 30px 35px;
}

.related-posts h3 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    color: var(--text);
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.related-item {
    background: var(--gray-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
}

.related-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.related-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-info {
    padding: 12px;
}

.related-type {
    font-size: 9px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.related-info h4 {
    font-size: 13px;
    margin: 8px 0 4px;
    font-weight: 600;
    line-height: 1.4;
}

/* FIX: Related post titles - NOT BLUE */
.related-info h4 a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
}

.related-info h4 a:hover {
    color: var(--primary-dark);
}

.related-date {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
}

.related-download {
    display: inline-block;
    margin-top: 6px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
}

.related-download:hover {
    color: var(--primary);
}

/* Artist name in related posts */
.related-artist {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* ============================================
   FULL WIDTH CONTENT ON MOBILE
   ============================================ */

/* Site Content - Remove side padding on mobile */
.site-content {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .site-content {
        margin: 15px auto;
        padding: 0;
    }
}

/* Single Post Container - Full width on mobile */
.single-container {
    display: flex;
    gap: 35px;
}

@media (max-width: 768px) {
    .single-container {
        flex-direction: column;
        gap: 20px;
    }
}

/* Single Main - Remove border radius and padding on mobile */
.single-main {
    flex: 2.5;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .single-main {
        border-radius: 0;
        box-shadow: none;
    }
}

/* Post Hero Section - Full width on mobile */
.post-hero {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: var(--white);
}

@media (max-width: 768px) {
    .post-hero {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
}

/* Post Hero Image - Full width on mobile */
.post-hero-image {
    flex: 1;
    max-width: 40%;
}

@media (max-width: 768px) {
    .post-hero-image {
        max-width: 100%;
    }
    
    .post-hero-image img {
        width: 100%;
        border-radius: 12px;
    }
}

/* Post Hero Content - Full width */
.post-hero-content {
    flex: 1.5;
}

@media (max-width: 768px) {
    .post-hero-content {
        width: 100%;
    }
}

/* Post Title */
.post-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text);
}

@media (max-width: 768px) {
    .post-title {
        font-size: 1.4rem;
    }
}

/* Post Meta Below Title */
.post-meta-below-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 20px;
    padding: 10px 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .post-meta-below-title {
        gap: 8px;
        margin: 10px 0 15px;
        padding: 8px 0;
    }
    
    .post-meta-below-title span {
        font-size: 10px;
    }
    
    .meta-audio-badge {
        padding: 3px 10px;
        font-size: 9px;
    }
}

/* Post Content - FULL WIDTH on mobile */
.post-content {
    padding: 30px;
    font-size: 0.95rem;
    line-height: 1.7;
    width: 100%;
}

@media (max-width: 768px) {
    .post-content {
        padding: 20px 15px;
        font-size: 0.9rem;
        width: 100%;
    }
}

/* Share Section - Full width on mobile */
.share-section {
    margin: 20px 30px 25px;
    padding: 20px;
    background: var(--gray-bg);
    border-radius: 14px;
}

@media (max-width: 768px) {
    .share-section {
        margin: 15px 0 20px;
        padding: 15px;
        border-radius: 0;
    }
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .share-buttons {
        justify-content: space-between;
        gap: 8px;
    }
    
    .share-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* Related Posts - Full width on mobile */
.related-posts {
    margin: 20px 30px 35px;
}

@media (max-width: 768px) {
    .related-posts {
        margin: 20px 0 30px;
        padding: 0 15px;
    }
}

/* Related Grid - 2 columns on mobile */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Related Items */
.related-item {
    background: var(--gray-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .related-item {
        border-radius: 10px;
    }
    
    .related-item img {
        height: 100px;
    }
    
    .related-info {
        padding: 10px;
    }
    
    .related-info h4 {
        font-size: 11px;
    }
}

/* Comments Section - Full width on mobile */
.comments-area {
    margin: 20px 30px 35px;
}

@media (max-width: 768px) {
    .comments-area {
        margin: 20px 15px 30px;
    }
}

/* Sidebar - Full width on mobile */
.widget-area {
    flex: 1.2;
    position: sticky;
    top: 80px;
    align-self: start;
}

@media (max-width: 768px) {
    .widget-area {
        position: static;
        padding: 0 15px;
    }
    
    .widget {
        border-radius: 12px;
    }
}

/* Home Layout - Full width on mobile */
.home-layout {
    display: flex;
    gap: 35px;
}

@media (max-width: 768px) {
    .home-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-column {
        padding: 0;
    }
}

/* Posts Grid - 2 columns on mobile */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 15px;
    }
}

/* Post Cards on Mobile */
@media (max-width: 768px) {
    .post-card {
        border-radius: 10px;
    }
    
    .post-card img {
        height: 120px;
    }
    
    .post-card-content {
        padding: 10px;
    }
    
    .post-card-content h3 {
        font-size: 0.8rem;
    }
}

/* Pagination on Mobile */
@media (max-width: 768px) {
    .pagination {
        margin-top: 30px;
        gap: 5px;
        padding: 0 15px;
    }
    
    .pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* Footer on Mobile */
@media (max-width: 768px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-col ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

/* ============================================
   AJAX SEARCH RESULTS - FIXED VISIBILITY
   ============================================ */

/* Search Results Container */
.search-results,
.search-results-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white, #ffffff);
    border-radius: 12px;
    box-shadow: var(--shadow-hover, 0 10px 30px rgba(0,0,0,0.12));
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    margin-top: 5px;
}

.search-results.show,
.search-results-mobile.show {
    display: block;
}

/* Search Result Item */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border, #e0e0e0);
    text-decoration: none;
    background: var(--white, #ffffff);
    transition: background 0.3s;
}

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

.search-result-item:hover {
    background: var(--gray-bg, #f5f5f5);
}

/* Search Result Thumbnail */
.search-result-thumb {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.search-result-thumb .no-thumb {
    width: 50px;
    height: 50px;
    background: var(--primary, #FFD700);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark, #0a0a0a);
}

/* Search Result Info - TEXT COLORS FIXED */
.search-result-info {
    flex: 1;
}

.search-result-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text, #1a1a1a) !important;
}

.search-result-info span {
    font-size: 11px;
    color: var(--text-muted, #666666) !important;
}

/* Mobile Search Results - Specific fixes */
.search-results-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white, #ffffff);
    border-radius: 12px;
    box-shadow: var(--shadow-hover, 0 10px 30px rgba(0,0,0,0.12));
    margin-top: 5px;
}

.search-results-mobile .search-result-item {
    background: var(--white, #ffffff);
}

.search-results-mobile .search-result-info h4 {
    color: var(--text, #1a1a1a) !important;
}

.search-results-mobile .search-result-info span {
    color: var(--text-muted, #666666) !important;
}

/* Mobile Search Container - Fix positioning */
.mobile-search {
    position: relative;
}

/* Search loading state */
.search-result-item.loading {
    justify-content: center;
    color: var(--text-muted, #666666);
}

/* No results message */
.search-result-item.no-results-msg {
    justify-content: center;
    color: var(--text-muted, #666666);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .search-results,
    .search-results-mobile {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-thumb {
        width: 40px;
        height: 40px;
    }
    
    .search-result-info h4 {
        font-size: 12px;
    }
    
    .search-result-info span {
        font-size: 10px;
    }
}

/* ============================================
   REDESIGNED LATEST SECTION - Mobile Friendly
   ============================================ */

.latest-section {
    margin-bottom: 40px;
}

/* Section Header - Better alignment */
.section-header {
    margin-bottom: 25px;
    padding-bottom: 5px;
    position: relative;
}

/* LATEST Title - Desktop */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    color: var(--text, #1a1a1a);
    margin-bottom: 5px;
    display: inline-block;
    position: relative;
}

/* Fresh drops subtitle */
.section-subtitle {
    color: #827530);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 5px;
    display: block;
}

/* Underline effect for LATEST */
.section-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary, #FFD700);
    border-radius: 2px;
}

/* MOBILE RESPONSIVE - Redesigned for small screens */
@media (max-width: 768px) {
    .latest-section {
        margin-bottom: 25px;
        padding: 0;
    }
    
    .section-header {
        margin-bottom: 20px;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Smaller LATEST title on mobile */
    .section-title {
        font-size: 1.4rem;
        font-weight: 700;
        letter-spacing: -0.3px;
        display: block;
    }
    
    /* Smaller underline */
    .section-title:after {
        bottom: -5px;
        width: 35px;
        height: 2px;
    }
    
    /* Fresh drops - smaller and visible */
    .section-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
        margin-top: 8px;
        display: block;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .section-header {
        margin-bottom: 15px;
        text-align: left;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
}

/* Complete footer styling without any underlines */
.site-footer {
    background: #000000;
    color: rgba(255,255,255,0.7);
    padding: 25px 0 15px;
    margin-top: 50px;
    border-top: 2px solid var(--primary, #FFD700);
}

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

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* Footer headings - NO underline */
.footer-col h3 {
    color: var(--white, #ffffff);
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

/* REMOVE the underline line */
.footer-col h3:after,
.footer-col h3::after {
    display: none !important;
    content: none !important;
}

/* Footer links - horizontal */
.footer-col ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary, #FFD700);
}

/* Social Links - NO underline */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary, #FFD700);
    color: var(--dark, #0a0a0a);
    transform: translateY(-3px);
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-col ul {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}