/*
Theme Name: Gemini Prompts World
Theme URI: https://geminiprompts.world
Author: Muhammad Waqas
Author URI: https://geminiprompts.world
Description: A modern, elegant, and fully responsive WordPress theme with glassmorphism effects, featured posts section, beautiful typography, comprehensive mobile optimization, SEO-ready, and security-enhanced. Perfect for blogs and content-focused websites.
Version: 2.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gemini-prompts-world
Tags: blog, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, accessibility-ready, mobile-friendly, seo-optimized
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    background-attachment: fixed;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Post Content Styling */
.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3748;
}

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

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; }

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

.entry-content li {
    margin-bottom: 10px;
}

/* Post Content Images - Ensure ALL images load */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.entry-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* WordPress Image Alignments */
.entry-content .alignleft {
    float: left;
    margin: 10px 30px 20px 0;
}

.entry-content .alignright {
    float: right;
    margin: 10px 0 20px 30px;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignnone {
    display: block;
    margin: 20px 0;
}

/* WordPress Image Captions */
.entry-content .wp-caption {
    max-width: 100%;
    margin: 30px auto;
}

.entry-content .wp-caption img {
    margin: 0;
}

.entry-content .wp-caption-text {
    font-size: 14px;
    color: #718096;
    text-align: center;
    padding: 10px;
    font-style: italic;
}

/* WordPress Galleries */
.entry-content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.entry-content .gallery-item {
    margin: 0;
}

.entry-content .gallery-item img {
    margin: 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.entry-content .gallery-caption {
    font-size: 12px;
    color: #718096;
    text-align: center;
    padding: 8px;
}

/* Ensure lazy loading doesn't break images */
.entry-content img[loading="lazy"] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Force all images to display */
.entry-content img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Blockquote Styles */
blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    margin: 30px 0;
    padding: 25px 30px 25px 35px;
    border-radius: 0 15px 15px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-style: italic;
    color: #4a5568;
    line-height: 1.8;
}

blockquote::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 60px;
    color: #667eea;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 1;
    font-weight: 700;
}

blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 500;
}

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

blockquote cite,
blockquote footer {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
}

blockquote cite::before,
blockquote footer::before {
    content: '— ';
}

/* Alternative blockquote style for variety */
blockquote.style-2 {
    background: white;
    border-left: none;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    border: 2px solid #e2e8f0;
}

blockquote.style-2::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    opacity: 0.1;
}

blockquote.style-2::after {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 80px;
    color: #667eea;
    opacity: 0.08;
    position: absolute;
    bottom: -10px;
    right: 20px;
    line-height: 1;
    font-weight: 700;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 15px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: sticky;
    top: 15px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header:hover {
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
    transform: translateY(-2px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-icon {
    font-size: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rotate 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
}

.logo-elegant {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo-elegant::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, transparent 100%);
}

.logo h1 a {
    text-decoration: none;
}

.logo-blog {
    color: #2d3748;
    font-weight: 700;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.menu a:hover,
.menu a.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Featured Posts Section */
.featured-section {
    margin: 0 15px 30px 15px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.featured-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 420px;
}

.featured-main {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
    border-radius: 18px 18px 0 0;
}

.featured-main:hover::before {
    opacity: 1;
}

.featured-main:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.25);
}

.featured-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-main:hover .featured-main-image {
    transform: scale(1.08);
}

.featured-main-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    color: white;
}

.featured-main-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.featured-main-excerpt {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
}

.featured-small {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 200px;
}

.featured-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
    border-radius: 18px 18px 0 0;
}

.featured-small:hover::before {
    opacity: 1;
}

.featured-small:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
}

.featured-small-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-small:hover .featured-small-image {
    transform: scale(1.1);
}

.featured-small-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    color: white;
}

.featured-small-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-small-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Main Container */
.main-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin: 0 15px 30px 15px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Main Content */
.main-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 30px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }
.post-card:nth-child(6) { animation-delay: 0.6s; }
.post-card:nth-child(7) { animation-delay: 0.7s; }
.post-card:nth-child(8) { animation-delay: 0.8s; }
.post-card:nth-child(9) { animation-delay: 0.9s; }

.post-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
    border-radius: 18px 18px 0 0;
}

.post-card:hover::before {
    opacity: 1;
}

.post-thumbnail {
    width: 300px;
    height: 400px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-family: 'Poppins', sans-serif;
    font-size: 21px;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-card:hover .post-title {
    color: #667eea;
}

.post-excerpt {
    color: #718096;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 11px 26px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    align-self: center;
    margin-top: auto;
    padding-top: 10px;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

.pagination button,
.pagination span {
    background: white;
    border: 2px solid #e0e0e0;
    color: #555;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination button:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.pagination button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.widget {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
    border-radius: 18px 18px 0 0;
}

.widget:hover {
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.15);
    transform: translateY(-4px);
}

.widget:hover::before {
    opacity: 1;
}

.widget-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.3px;
    text-align: center;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.widget h2,
.widget h3,
.widget .widgettitle {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.3px;
    text-align: center;
}

.widget h2::after,
.widget h3::after,
.widget .widgettitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Search Widget */
.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-box button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* WordPress Default Search Widget Styling */
.widget_search .search-form {
    display: flex;
    gap: 10px;
    position: relative;
}

.widget_search .search-field {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Inter', sans-serif;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.widget_search .search-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.widget_search .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.widget_search .search-submit:active {
    transform: translateY(0);
}

/* Alternative search widget styling */
.widget_search label {
    display: none;
}

.widget_search form {
    margin: 0;
}

/* Default WordPress Widgets Styling */
/* Categories Widget */
.widget_categories ul,
.widget_archive ul,
.widget_meta ul,
.widget_pages ul,
.widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories li,
.widget_archive li,
.widget_meta li,
.widget_pages li,
.widget_nav_menu li {
    margin-bottom: 12px;
}

.widget_categories a,
.widget_archive a,
.widget_meta a,
.widget_pages a,
.widget_nav_menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.widget_categories a:hover,
.widget_archive a:hover,
.widget_meta a:hover,
.widget_pages a:hover,
.widget_nav_menu a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(5px);
}

/* Recent Posts Widget */
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

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

.widget_recent_entries a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 5px;
}

.widget_recent_entries a:hover {
    color: #667eea;
}

.widget_recent_entries .post-date {
    font-size: 12px;
    color: #718096;
}

/* Recent Comments Widget */
.widget_recent_comments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_comments li {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.03);
    border-radius: 10px;
    font-size: 14px;
}

.widget_recent_comments a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.widget_recent_comments a:hover {
    text-decoration: underline;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget_tag_cloud .tagcloud a {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    color: #555;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.widget_tag_cloud .tagcloud a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar caption {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    color: #2d3748;
}

.widget_calendar th {
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.widget_calendar td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.widget_calendar td a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.widget_calendar td a:hover {
    text-decoration: underline;
}

/* RSS Widget */
.widget_rss ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_rss li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

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

.widget_rss a {
    color: #2d3748;
    font-weight: 600;
    text-decoration: none;
}

.widget_rss a:hover {
    color: #667eea;
}

.widget_rss .rss-date,
.widget_rss cite {
    font-size: 12px;
    color: #718096;
    display: block;
    margin-top: 5px;
}

/* Text Widget */
.widget_text {
    line-height: 1.7;
}

.widget_text p {
    margin-bottom: 15px;
}

/* Custom HTML Widget */
.widget_custom_html {
    line-height: 1.7;
}

/* Categories Widget */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #555;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.category-list a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(5px);
}

.category-list span {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* WordPress Default Category Widget Styling */
.widget_categories ul,
.widget_archive ul,
.widget_pages ul,
.widget_meta ul,
.widget_recent_entries ul,
.widget_recent_comments ul,
.widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories ul li,
.widget_archive ul li,
.widget_pages ul li,
.widget_meta ul li,
.widget_recent_entries ul li,
.widget_recent_comments ul li,
.widget_nav_menu ul li {
    margin-bottom: 12px;
    position: relative;
}

.widget_categories ul li a,
.widget_archive ul li a,
.widget_pages ul li a,
.widget_meta ul li a,
.widget_recent_entries ul li a,
.widget_recent_comments ul li a,
.widget_nav_menu ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #555;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.widget_categories ul li a::before,
.widget_archive ul li a::before,
.widget_pages ul li a::before,
.widget_meta ul li a::before,
.widget_recent_entries ul li a::before,
.widget_recent_comments ul li a::before,
.widget_nav_menu ul li a::before {
    content: '→';
    position: absolute;
    left: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #667eea;
    font-weight: 700;
}

.widget_categories ul li a:hover,
.widget_archive ul li a:hover,
.widget_pages ul li a:hover,
.widget_meta ul li a:hover,
.widget_recent_entries ul li a:hover,
.widget_recent_comments ul li a:hover,
.widget_nav_menu ul li a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    transform: translateX(5px);
    padding-left: 35px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.widget_categories ul li a:hover::before,
.widget_archive ul li a:hover::before,
.widget_pages ul li a:hover::before,
.widget_meta ul li a:hover::before,
.widget_recent_entries ul li a:hover::before,
.widget_recent_comments ul li a:hover::before,
.widget_nav_menu ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Category Count Styling */
.widget_categories ul li a .count,
.widget_archive ul li a .count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 25px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Style the count in parentheses */
.widget_categories ul li,
.widget_archive ul li {
    display: flex;
    align-items: center;
}

.widget_categories ul li a,
.widget_archive ul li a {
    flex: 1;
}

/* Remove default list styling completely */
.widget ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.widget ul li::before {
    content: none !important;
}

.widget ul li {
    background: none !important;
    padding-left: 0 !important;
}

/* Recent Posts Widget */
.widget_recent_entries ul li a {
    display: block;
    padding: 12px 16px;
}

.widget_recent_entries ul li .post-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Remove underlines from all links */
a {
    text-decoration: none;
}

.post-title a,
.entry-content a,
.widget a,
.footer a,
.menu a {
    text-decoration: none;
}

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

.tag {
    background: white;
    color: #555;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag::before {
    content: '#';
    font-weight: 700;
    color: #667eea;
    opacity: 0.7;
}

.tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.tag:hover::before {
    color: white;
    opacity: 1;
}

/* WordPress Default Tag Cloud Widget */
.widget_tag_cloud .tagcloud,
.wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget_tag_cloud .tagcloud a,
.wp-block-tag-cloud a {
    background: white;
    color: #555 !important;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.widget_tag_cloud .tagcloud a::before,
.wp-block-tag-cloud a::before {
    content: '#';
    font-weight: 700;
    color: #667eea;
    opacity: 0.7;
    margin-right: 4px;
}

.widget_tag_cloud .tagcloud a:hover,
.wp-block-tag-cloud a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.widget_tag_cloud .tagcloud a:hover::before,
.wp-block-tag-cloud a:hover::before {
    color: white;
    opacity: 1;
}

/* Top Posts Widget */
.top-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-post-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.top-post-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateX(5px);
}

.top-post-number {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.top-post-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.top-post-meta {
    font-size: 12px;
    color: #999;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    margin: 30px 15px 15px 15px;
    border-radius: 20px;
    padding: 50px 40px 20px 40px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
}

.footer-section p {
    color: #cbd5e0;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #667eea;
    transform: translateX(5px);
}

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

.social-icon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    position: absolute;
    font-size: 20px;
}

.social-icon:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Social icon symbols using Unicode */
.social-icon[href*="facebook"]::before { content: "f"; font-family: Arial, sans-serif; font-weight: bold; }
.social-icon[href*="twitter"]::before { content: "𝕏"; font-size: 18px; }
.social-icon[href*="instagram"]::before { content: "📷"; font-size: 20px; }
.social-icon[href*="linkedin"]::before { content: "in"; font-family: Arial, sans-serif; font-weight: bold; font-size: 16px; }

/* Comments Section Styling */
.comments-area {
    margin-top: 50px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.comments-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: #2d3748;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

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

.comment {
    margin-bottom: 25px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.comment:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

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

.comment-author img,
.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #667eea;
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
    color: #2d3748;
    font-size: 16px;
}

.comment-metadata {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.comment-metadata a {
    color: #667eea;
}

.comment-content {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Comment Form */
.comment-respond {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #f0f0f0;
}

.comment-reply-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 25px;
    font-weight: 700;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
}

.comment-form label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-submit {
    margin-top: 10px;
}

.form-submit input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Post Navigation (Previous/Next) */
.post-navigation {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 2px solid #e2e8f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.nav-previous,
.nav-next {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-previous::before,
.nav-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.nav-previous:hover::before,
.nav-next:hover::before {
    opacity: 1;
}

.nav-previous a,
.nav-next a {
    color: #2d3748;
    text-decoration: none;
    display: block;
}

.nav-previous a::before {
    content: '← ';
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

.nav-next a::after {
    content: ' →';
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

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

.nav-previous a:hover,
.nav-next a:hover {
    color: #667eea;
}

/* Single column on mobile */
@media (max-width: 768px) {
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-container {
        margin: 0 10px 20px 10px;
    }
    
    .featured-section {
        margin: 0 10px 20px 10px;
    }
}

@media (max-width: 968px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar {
        order: 2;
    }
    
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header {
        margin: 10px;
    }
    
    .header-content {
        padding: 15px 25px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .menu ul {
        gap: 15px;
    }
    
    .menu a {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .featured-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .featured-main {
        height: 350px;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .featured-small {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }
    
    .menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .main-content {
        padding: 20px;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .main-content article {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .post-thumbnail {
        height: 250px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .widget {
        padding: 20px;
    }
    
    .footer {
        margin: 20px 10px 10px 10px;
        padding: 30px 20px 15px 20px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-small {
        height: 200px;
    }
    
    .featured-main-title {
        font-size: 24px;
    }
    
    /* Remove all link underlines on mobile */
    a,
    a:hover,
    a:focus,
    a:active {
        text-decoration: none !important;
    }
    
    .entry-content a,
    .entry-content a:hover,
    .entry-content a:focus,
    .post-title a,
    .menu a,
    .widget a,
    .footer a,
    .comment-content a,
    .nav-previous a,
    .nav-next a {
        text-decoration: none !important;
    }
    
    /* Single Post Mobile Styles */
    .entry-header {
        padding: 0;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .entry-header .section-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .post-meta {
        font-size: 12px !important;
        margin-bottom: 20px !important;
        flex-wrap: wrap;
    }
    
    .post-category {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }
    
    /* Entry Content Mobile */
    .entry-content {
        font-size: 15px;
        line-height: 1.7;
        padding: 0;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .entry-content * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .entry-content pre,
    .entry-content code {
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    .entry-content table {
        display: block;
        overflow-x: auto;
        width: 100%;
    }
    
    .entry-content iframe,
    .entry-content embed,
    .entry-content object,
    .entry-content video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .entry-content h2 {
        font-size: 22px;
        margin-top: 25px;
        margin-bottom: 12px;
    }
    
    .entry-content h3 {
        font-size: 19px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .entry-content h4 {
        font-size: 17px;
        margin-top: 18px;
        margin-bottom: 10px;
    }
    
    .entry-content p {
        margin-bottom: 18px;
    }
    
    .entry-content img {
        margin: 20px auto;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .entry-content ul,
    .entry-content ol {
        padding-left: 20px;
        margin: 15px 0;
    }
    
    .entry-content li {
        margin-bottom: 8px;
    }
    
    .entry-content blockquote {
        margin: 20px 0;
        padding: 20px 15px 20px 25px;
        font-size: 14px;
    }
    
    .entry-content blockquote::before {
        font-size: 40px;
        top: 5px;
        left: 10px;
    }
    
    /* Post Tags Mobile */
    .post-tags {
        margin-top: 25px !important;
    }
    
    .post-tags h4 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .tags-cloud .tag {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    /* Post Navigation Mobile */
    .post-navigation {
        margin-top: 30px !important;
        padding-top: 25px !important;
        gap: 15px;
    }
    
    .nav-previous,
    .nav-next {
        padding: 18px;
    }
    
    .nav-previous a,
    .nav-next a {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Comments Mobile */
    .comments-area {
        margin-top: 30px;
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .comments-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .comment {
        padding: 18px;
        margin-bottom: 18px;
    }
    
    .comment-author img,
    .comment-author .avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-author cite {
        font-size: 14px;
    }
    
    .comment-content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .comment-respond {
        padding: 20px;
    }
    
    .comment-reply-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .comment-form textarea {
        min-height: 120px;
    }
    
    .form-submit input[type="submit"] {
        padding: 12px 28px;
        font-size: 14px;
        width: 100%;
    }
    
    /* WordPress Galleries Mobile */
    .entry-content .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 20px 0;
    }
    
    .entry-content .gallery-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .header {
        margin: 8px;
        border-radius: 15px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .menu ul {
        gap: 8px;
    }
    
    .menu a {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .main-container {
        margin: 0 8px 15px 8px;
    }
    
    .main-content {
        padding: 15px;
        border-radius: 15px;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .main-content article {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .posts-grid {
        gap: 20px;
    }
    
    .post-card {
        border-radius: 12px;
    }
    
    .post-thumbnail {
        height: 200px;
    }
    
    .post-content {
        padding: 15px;
    }
    
    .post-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .post-excerpt {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .read-more-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .widget {
        padding: 18px;
        border-radius: 12px;
    }
    
    .widget-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .search-box input,
    .search-box button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .category-list a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .tag {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .top-post-item {
        padding: 10px;
    }
    
    .top-post-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .top-post-info h4 {
        font-size: 13px;
    }
    
    .pagination button,
    .pagination span {
        padding: 10px 14px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .footer {
        border-radius: 15px;
        padding: 25px 15px 12px 15px;
    }
    
    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .footer-section p,
    .footer-section ul li a {
        font-size: 14px;
    }
    
    .social-icon {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Remove all link underlines on extra small mobile */
    a,
    a:hover,
    a:focus,
    a:active,
    .entry-content a,
    .entry-content a:hover,
    .post-title a,
    .menu a,
    .widget a,
    .footer a,
    .comment-content a {
        text-decoration: none !important;
        -webkit-text-decoration: none !important;
    }
    
    /* Single Post Extra Small Mobile */
    .entry-header {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .entry-header .section-title {
        font-size: 20px !important;
        line-height: 1.3;
        margin-bottom: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .post-meta {
        font-size: 11px !important;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .post-meta span {
        display: block;
    }
    
    .post-category {
        font-size: 10px;
        padding: 4px 10px;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .entry-content {
        font-size: 14px;
        line-height: 1.6;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .entry-content * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .entry-content pre,
    .entry-content code {
        overflow-x: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
        font-size: 12px;
    }
    
    .entry-content table {
        display: block;
        overflow-x: auto;
        width: 100%;
        font-size: 12px;
    }
    
    .entry-content iframe,
    .entry-content embed,
    .entry-content object,
    .entry-content video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .entry-content h2 {
        font-size: 19px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .entry-content h3 {
        font-size: 17px;
        margin-top: 18px;
        margin-bottom: 8px;
    }
    
    .entry-content h4 {
        font-size: 15px;
        margin-top: 15px;
        margin-bottom: 8px;
    }
    
    .entry-content p {
        margin-bottom: 15px;
    }
    
    .entry-content img {
        margin: 15px auto;
        border-radius: 10px;
    }
    
    .entry-content ul,
    .entry-content ol {
        padding-left: 18px;
        margin: 12px 0;
        font-size: 14px;
    }
    
    .entry-content blockquote {
        margin: 15px 0;
        padding: 15px 12px 15px 20px;
        font-size: 13px;
        border-radius: 0 12px 12px 0;
    }
    
    .entry-content blockquote::before {
        font-size: 35px;
        top: 3px;
        left: 8px;
    }
    
    .entry-content blockquote p {
        font-size: 13px;
    }
    
    .post-tags {
        margin-top: 20px !important;
    }
    
    .post-tags h4 {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .tags-cloud {
        gap: 8px;
    }
    
    .tags-cloud .tag {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .post-navigation {
        margin-top: 25px !important;
        padding-top: 20px !important;
        gap: 12px;
    }
    
    .nav-previous,
    .nav-next {
        padding: 15px;
        border-radius: 12px;
    }
    
    .nav-previous a,
    .nav-next a {
        font-size: 13px;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .comments-area {
        margin-top: 25px;
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .comments-title {
        font-size: 19px;
        margin-bottom: 18px;
    }
    
    .comment {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .comment-author {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .comment-author img,
    .comment-author .avatar {
        width: 35px;
        height: 35px;
        border: 2px solid #667eea;
    }
    
    .comment-author cite {
        font-size: 13px;
    }
    
    .comment-metadata {
        font-size: 11px;
    }
    
    .comment-content {
        font-size: 13px;
        line-height: 1.5;
    }
    
    .comment-reply-link {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .comment-respond {
        padding: 18px 15px;
        border-radius: 12px;
    }
    
    .comment-reply-title {
        font-size: 18px;
        margin-bottom: 18px;
    }
    
    .comment-form {
        gap: 15px;
    }
    
    .comment-form label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form textarea {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .comment-form textarea {
        min-height: 100px;
    }
    
    .form-submit input[type="submit"] {
        padding: 11px 25px;
        font-size: 13px;
        width: 100%;
        border-radius: 10px;
    }
    
    .entry-content .gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .entry-content .gallery-item img {
        height: 200px;
    }
    
    .entry-content .wp-caption-text,
    .entry-content .gallery-caption {
        font-size: 11px;
        padding: 6px;
    }
}
