/*
Theme Name: Nblog Theme
Theme URI: https://nblog.ng
Author: Your Name
Author URI: https://nblog.ng
Description: A professional WordPress theme with dark/light mode, responsive design, and premium features
Version: 1.0.0
License: GPL v2 or later
Text Domain: nblog.ng
*/

/* ============================================
   TABLE OF CONTENTS
   1. CSS Variables (Light/Dark Mode)
   2. Reset & Base Styles
   3. Container & Layout
   4. Header Styles
   5. Mobile Navigation
   6. Search Modal
   7. Footer Styles
   8. Homepage Styles
   9. Single Post Styles
   10. Comments Section
   11. Pagination
   12. Back to Top Button
   13. Responsive Design
   14. Utilities
   ============================================ */

/* ============================================
   1. CSS VARIABLES (LIGHT/DARK MODE)
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #ec4899;
    --secondary-dark: #db2777;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --bg-footer: #0f172a;
    
    --text-primary: #1e1b4b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    --transition: all 0.3s ease;
}

body.dark-mode {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-header: #1e293b;
    --bg-footer: #020617;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border: #334155;
    --border-light: #1e293b;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

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

a:hover {
    color: var(--secondary);
}

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

/* ============================================
   3. CONTAINER & LAYOUT
   ============================================ */

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

/* ============================================
   4. HEADER STYLES
   ============================================ */

.site-header {
    background: var(--bg-header);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Desktop Navigation */
.main-navigation {
    flex: 1;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

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

.header-action {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-primary);
}

.header-action:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Mobile Menu Toggle - Hidden on Desktop */
.mobile-menu-toggle {
    display: none;
}

/* ============================================
   5. MOBILE NAVIGATION
   ============================================ */

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-card);
    z-index: 10000;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-sidebar-logo span {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-sidebar-nav {
    padding: 20px;
}

.mobile-menu {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    display: block;
    padding: 8px 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

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

/* ============================================
   6. SEARCH MODAL
   ============================================ */

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 11000;
    align-items: center;
    justify-content: center;
}

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

.search-modal-content {
    width: 90%;
    max-width: 500px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: 30px;
    position: relative;
}

.search-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

.search-modal form {
    display: flex;
    gap: 10px;
}

.search-modal input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-body);
    color: var(--text-primary);
}

.search-modal button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
}

/* ============================================
   7. FOOTER STYLES
   ============================================ */

.site-footer {
    background: var(--bg-footer);
    color: white;
    margin-top: 60px;
    padding: 40px 0 20px;
}

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

.footer-copyright p {
    color: #94a3b8;
    font-size: 12px;
    margin: 5px 0;
}

/* ============================================
   8. HOMEPAGE STYLES
   ============================================ */

/* Hero */
.homepage-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-2xl);
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
    color: white;
}

.homepage-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.homepage-hero p {
    font-size: 20px;
    opacity: 0.95;
}

/* Section Headers */
.homepage-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.homepage-trending-label {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.homepage-latest-label {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.homepage-section-title h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.homepage-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 4px;
}

/* Desktop Grid */
.homepage-desktop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Card */
.homepage-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.homepage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.homepage-card-img {
    display: block;
    height: 200px;
    overflow: hidden;
}

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

.homepage-card-info {
    padding: 20px;
}

.homepage-card-cat {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.homepage-card-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.homepage-card-info h3 a {
    text-decoration: none;
    color: var(--text-primary);
}

.homepage-card-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Divider */
.homepage-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    margin: 50px 0;
}

/* View All */
.homepage-viewall {
    text-align: center;
    margin-top: 40px;
}

.homepage-viewall-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.homepage-viewall-btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   MOBILE ONLY STYLES
   ============================================ */

.homepage-mobile-grid,
.homepage-mobile-list {
    display: none;
}

@media (max-width: 768px) {
    .homepage-desktop {
        display: none;
    }
    
    .homepage-mobile-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .homepage-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .homepage-hero {
        padding: 40px 20px;
    }
    
    .homepage-hero h1 {
        font-size: 32px;
    }
    
    .homepage-hero p {
        font-size: 16px;
    }
    
    .homepage-section-title h2 {
        font-size: 28px;
    }
    
    /* Mobile Card */
    .homepage-mobile-card {
        background: var(--bg-card);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }
    
    .homepage-mobile-img {
        display: block;
        height: 100px;
        overflow: hidden;
    }
    
    .homepage-mobile-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .homepage-mobile-info {
        padding: 10px;
    }
    
    .homepage-mobile-cat {
        display: inline-block;
        padding: 2px 8px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        font-size: 8px;
        font-weight: 600;
        border-radius: 12px;
        margin-bottom: 6px;
    }
    
    .homepage-mobile-info h4 {
        font-size: 11px;
        margin: 0;
        line-height: 1.4;
    }
    
    .homepage-mobile-info h4 a {
        text-decoration: none;
        color: var(--text-primary);
    }
    
    /* Mobile List */
    .homepage-list-item {
        display: flex;
        gap: 12px;
        background: var(--bg-card);
        border-radius: 12px;
        padding: 10px;
        box-shadow: var(--shadow-sm);
        align-items: center;
    }
    
    .homepage-list-img {
        flex-shrink: 0;
        width: 65px;
        height: 65px;
        border-radius: 10px;
        overflow: hidden;
        background: var(--bg-body);
    }
    
    .homepage-list-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .homepage-list-info {
        flex: 1;
    }
    
    .homepage-list-cat {
        display: inline-block;
        padding: 2px 8px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        font-size: 8px;
        font-weight: 600;
        border-radius: 12px;
        margin-bottom: 4px;
    }
    
    .homepage-list-info h3 {
        font-size: 13px;
        margin: 0 0 4px;
        line-height: 1.4;
    }
    
    .homepage-list-info h3 a {
        text-decoration: none;
        color: var(--text-primary);
    }
    
    .homepage-list-date {
        font-size: 9px;
        color: var(--text-secondary);
    }
    
    /* Header Mobile */
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .site-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .homepage-mobile-img {
        height: 85px;
    }
    
    .homepage-mobile-info h4 {
        font-size: 10px;
    }
    
    .homepage-list-img {
        width: 55px;
        height: 55px;
    }
    
    .homepage-list-info h3 {
        font-size: 12px;
    }
}

/* ============================================
   9. SINGLE POST STYLES
   ============================================ */

.single-post-wrapper {
    padding: 40px 0;
}

.single-post-article {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.entry-title {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

.entry-meta-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.meta-date,
.meta-author,
.meta-readtime,
.meta-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

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

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

.entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 28px;
    margin: 1.5em 0 0.5em;
}

.entry-content h3 {
    font-size: 24px;
    margin: 1.5em 0 0.5em;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 25px;
    background: var(--bg-body);
    padding: 25px;
    border-radius: var(--radius-xl);
    margin: 40px 0;
}

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

.author-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Comments */
.comments-area {
    margin-top: 40px;
}

.comment-list {
    list-style: none;
}

.comment {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

/* ============================================
   10. BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: var(--transition);
}

.back-to-top.show {
    display: block;
}

/* ============================================
   11. UTILITIES
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::selection {
    background: var(--primary);
    color: white;
}
/* ============================================
   HOMEPAGE STYLES - COMPLETE
   ============================================ */

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

/* Hero Section */
.homepage-hero {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
    color: white;
}
.homepage-hero h1 {
    font-size: 48px;
    margin-bottom: 16px;
}
.homepage-hero p {
    font-size: 20px;
    opacity: 0.95;
}

/* Section Headers */
.homepage-section-title {
    text-align: center;
    margin-bottom: 40px;
}
.homepage-trending-badge {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.homepage-latest-badge {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.homepage-section-title h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary, #1e1b4b);
}
.homepage-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    margin: 0 auto;
    border-radius: 4px;
}

/* DESKTOP: 2-Column Grid */
.homepage-desktop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Desktop Card */
.homepage-card {
    background: var(--bg-card, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}
.homepage-card:hover {
    transform: translateY(-4px);
}
.homepage-card-img {
    display: block;
    height: 200px;
    overflow: hidden;
}
.homepage-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.homepage-card-info {
    padding: 20px;
}
.homepage-card-cat {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}
.homepage-card-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.homepage-card-info h3 a {
    text-decoration: none;
    color: var(--text-primary, #1e1b4b);
}
.homepage-card-date {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
}

/* Divider */
.homepage-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #6366f1, #ec4899, transparent);
    margin: 50px 0;
}

/* View All Button */
.homepage-viewall {
    text-align: center;
    margin-top: 40px;
}
.homepage-viewall-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}
.homepage-viewall-btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   MOBILE: HIDE DESKTOP, SHOW MOBILE
   ============================================ */
.homepage-mobile-slider,
.homepage-mobile-list {
    display: none;
}

/* ============================================
   RESPONSIVE: 768px AND BELOW
   ============================================ */
@media (max-width: 768px) {
    .homepage-desktop-grid {
        display: none;
    }
    .homepage-mobile-slider,
    .homepage-mobile-list {
        display: block;
    }
    
    .homepage-hero {
        padding: 40px 20px;
        margin: 30px 0;
    }
    .homepage-hero h1 {
        font-size: 32px;
    }
    .homepage-hero p {
        font-size: 16px;
    }
    .homepage-section-title h2 {
        font-size: 28px;
    }
    
    /* ============================================
       MOBILE TRENDING: GRID SLIDER
       ============================================ */
    .homepage-mobile-slider {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        scrollbar-width: thin;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .homepage-mobile-slider::-webkit-scrollbar {
        height: 3px;
    }
    .homepage-mobile-slider::-webkit-scrollbar-track {
        background: #e2e8f0;
        border-radius: 10px;
    }
    .homepage-mobile-slider::-webkit-scrollbar-thumb {
        background: #6366f1;
        border-radius: 10px;
    }
    .homepage-slide {
        flex: 0 0 160px;
        background: var(--bg-card, #fff);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .homepage-slide-img {
        display: block;
        height: 120px;
        overflow: hidden;
    }
    .homepage-slide-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .homepage-slide-info {
        padding: 10px;
    }
    .homepage-slide-cat {
        display: inline-block;
        padding: 2px 8px;
        background: linear-gradient(135deg, #6366f1, #ec4899);
        color: white;
        font-size: 9px;
        font-weight: 600;
        border-radius: 12px;
        margin-bottom: 6px;
    }
    .homepage-slide-info h4 {
        font-size: 12px;
        margin: 0;
        line-height: 1.4;
    }
    .homepage-slide-info h4 a {
        text-decoration: none;
        color: var(--text-primary, #1e1b4b);
    }
    
    /* ============================================
       MOBILE LATEST: LIST VIEW (IMAGE LEFT)
       ============================================ */
    .homepage-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .homepage-list-item {
        display: flex;
        gap: 12px;
        background: var(--bg-card, #fff);
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        align-items: center;
    }
    .homepage-list-img {
        flex-shrink: 0;
        width: 70px;
        height: 70px;
        border-radius: 10px;
        overflow: hidden;
        background: #f1f5f9;
    }
    .homepage-list-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .homepage-no-img {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }
    .homepage-list-info {
        flex: 1;
    }
    .homepage-list-cat {
        display: inline-block;
        padding: 2px 8px;
        background: linear-gradient(135deg, #6366f1, #ec4899);
        color: white;
        font-size: 9px;
        font-weight: 600;
        border-radius: 12px;
        margin-bottom: 4px;
    }
    .homepage-list-info h3 {
        font-size: 14px;
        margin: 0 0 4px;
        line-height: 1.4;
    }
    .homepage-list-info h3 a {
        text-decoration: none;
        color: var(--text-primary, #1e1b4b);
    }
    .homepage-list-date {
        font-size: 10px;
        color: var(--text-secondary, #64748b);
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .homepage-container {
        padding: 0 15px;
    }
    .homepage-slide {
        flex: 0 0 140px;
    }
    .homepage-slide-img {
        height: 110px;
    }
    .homepage-slide-info h4 {
        font-size: 11px;
    }
    .homepage-list-img {
        width: 60px;
        height: 60px;
    }
    .homepage-list-info h3 {
        font-size: 13px;
    }
}

/* Dark Mode Support */
body.dark-mode .homepage-card,
body.dark-mode .homepage-slide,
body.dark-mode .homepage-list-item {
    background: #1e293b;
}
body.dark-mode .homepage-card-info h3 a,
body.dark-mode .homepage-slide-info h4 a,
body.dark-mode .homepage-list-info h3 a {
    color: #f1f5f9;
}
body.dark-mode .homepage-section-title h2 {
    color: #f1f5f9;
}
/* Simple Footer */
.site-footer {
    background: #1a1a2e;
    color: #eee;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 200px;
}

.footer-widget h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-widget p {
    font-size: 14px;
    color: #bbb;
    line-height: 1.6;
}

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

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

.footer-widget a {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
}

.footer-widget a:hover {
    color: #6366f1;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #888;
}

.footer-copyright a {
    color: #888;
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-widget {
        min-width: auto;
    }
}
/* ============================================
   MOBILE RESPONSIVE FOOTER FIX
   ============================================ */

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    
    .site-footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer-inner {
        padding: 0 15px;
    }
    
    /* Make widgets stack vertically */
    .footer-widgets {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        margin-bottom: 25px;
    }
    
    /* Center widget content */
    .footer-widget {
        min-width: auto;
        width: 100%;
    }
    
    .footer-widget h3 {
        font-size: 16px;
        margin-bottom: 12px;
        position: relative;
        display: inline-block;
        padding-bottom: 8px;
    }
    
    .footer-widget h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 2px;
        background: linear-gradient(90deg, #6366f1, #ec4899);
    }
    
    .footer-widget p {
        font-size: 13px;
        line-height: 1.5;
        padding: 0 10px;
    }
    
    .footer-widget ul {
        text-align: center;
    }
    
    .footer-widget li {
        margin-bottom: 8px;
    }
    
    .footer-widget a {
        font-size: 13px;
        display: inline-block;
        padding: 5px 0;
    }
    
    /* Copyright section */
    .footer-copyright {
        padding-top: 15px;
        font-size: 11px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    
    .site-footer {
        padding: 25px 0 12px;
    }
    
    .footer-inner {
        padding: 0 12px;
    }
    
    .footer-widgets {
        gap: 25px;
    }
    
    .footer-widget h3 {
        font-size: 15px;
    }
    
    .footer-widget p {
        font-size: 12px;
    }
    
    .footer-widget a {
        font-size: 12px;
    }
    
    .footer-copyright {
        font-size: 10px;
        padding-top: 12px;
    }
}