/*
Theme Name: PelvicHealth Plus - Kadence Child
Theme URI: https://fullpelvichealth.com
Author: Full Pelvic Health Team
Author URI: https://fullpelvichealth.com
Description: Professional health and wellness Kadence child theme focused on pelvic floor health for women over 40. Features responsive design, educational trustworthy aesthetic, and complete functionality.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pelvichealth-kadence
Template: kadence
Tags: health, wellness, blog, responsive, medical, educational
*/

/* =================================================================
   CSS VARIABLES - Professional Color Scheme
   ================================================================= */
   
:root {
    --primary-blue: #4A90E2;
    --primary-purple: #9B59B6;
    --light-gray: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    --accent-pink: #E8B4D9;
    --white: #FFFFFF;
}

/* =================================================================
   GLOBAL RESETS & BASE STYLES
   ================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 18px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container for content width */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

/* =================================================================
   GLOBAL Z-INDEX RESET - Ensure navigation always on top
   ================================================================= */
   
section,
main,
article:not(.article-card),
div[class*="content"] {
    position: relative;
    z-index: 1;
}

/* =================================================================
   HEADER & NAVIGATION - Educational & Trustworthy
   ================================================================= */

/* Top Banner Bar */
.top-bar {
    background: var(--primary-purple);
    color: var(--white);
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    position: relative;
    z-index: 9998;
}

.top-bar a {
    color: white;
    text-decoration: underline;
}

/* Main Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    position: relative;
}

/* Navigation Container */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 9999 !important;
}

/* Logo Styling */
.logo-container {
    flex-shrink: 0;
}

.site-logo,
.custom-logo-link {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-purple);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo:hover {
    color: var(--primary-blue);
}

/* Main Navigation Menu */
.main-navigation {
    display: flex;
    position: relative;
    z-index: 10000 !important;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10000 !important;
}

.main-navigation li {
    position: relative;
    z-index: 10000 !important;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    display: block;
}

.main-navigation a:hover {
    color: var(--primary-purple);
}

/* Dropdown Menu Styling - PROPERLY FIXED */
.main-navigation .menu-item-has-children {
    position: relative;
    z-index: 10001 !important;
}

/* Reset parent link padding - all links same height */
.main-navigation .menu-item-has-children > a {
    padding: 0.5rem 0;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    top: 100%;
    right: auto;
    left: 0;
    padding: 0.5rem 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    z-index: 99999 !important;
}

/* Prevent dropdown from going off right edge of screen */
.main-navigation .menu-item-has-children:nth-last-child(-n+2) .sub-menu {
    left: auto;
    right: 0;
}

/* Keep dropdown visible when hovering anywhere in the parent li */
.main-navigation .menu-item-has-children:hover .sub-menu {
    display: flex;
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.main-navigation .sub-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-purple);
    padding-left: 2rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* =================================================================
   HERO SECTION - Educational & Trustworthy
   ================================================================= */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    background: var(--white);
    color: var(--primary-purple);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    color: var(--primary-purple);
}

/* =================================================================
   TRUST BADGES SECTION - Professional Icons
   ================================================================= */

.trust-section {
    background: var(--primary-blue);
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.trust-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 0 1 200px;
}

.trust-badge i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.trust-badge p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* =================================================================
   FEATURED CATEGORIES - Educational Card Design
   ================================================================= */

.featured-categories {
    padding: 5rem 5%;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    font-weight: 700;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 3.5rem;
    color: var(--primary-purple);
    margin-bottom: 1.5rem;
}

.category-icon i {
    font-size: 3.5rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learn-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.learn-more:hover {
    color: var(--primary-purple);
}

/* =================================================================
   ARTICLES GRID - Professional & Educational
   ================================================================= */

.latest-articles {
    padding: 5rem 5%;
    background: var(--light-gray);
    position: relative;
    z-index: 1;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.article-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.article-card h3 a:hover {
    color: var(--primary-purple);
}

.article-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Medical Badge - Professional Trust Indicator */
.medical-badge {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.medical-badge i {
    margin-right: 0.3rem;
}

/* =================================================================
   NEWSLETTER SECTION - Trust-Building
   ================================================================= */

.newsletter {
    background: linear-gradient(135deg, #9B59B6 0%, #667eea 100%);
    color: var(--white);
    padding: 5rem 5%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-purple);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* =================================================================
   FOOTER - Professional & Organized
   ================================================================= */

footer.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 5% 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-pink);
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    color: white;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-icons a:hover {
    background: var(--primary-purple);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: white;
    opacity: 0.7;
}

/* =================================================================
   SINGLE POST - Educational Design
   ================================================================= */

.site-content {
    position: relative;
    z-index: 1;
}

.single-article-wrapper {
    background: var(--white);
    padding: 2rem 0;
}

/* Simple Back Navigation */
.simple-back-nav {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: var(--light-gray);
    border-radius: 50px;
    transition: all 0.3s;
}

.back-link:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateX(-5px);
}

.back-link i {
    font-size: 0.9rem;
}

.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Article Category Badge */
.article-category {
    margin-bottom: 1rem;
}

.article-category a {
    display: inline-block;
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.entry-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.entry-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-image {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Entry Footer - Tags */
.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.tags-links a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--light-gray);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.tags-links a:hover {
    background: var(--primary-purple);
    color: white;
}

/* Simplified Social Sharing */
.social-sharing-simple {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    text-align: center;
}

.social-sharing-simple p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #3b5998;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.pinterest {
    background: #E60023;
}

/* Simplified Author Bio */
.author-bio-simple {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    margin: 3rem 0;
}

.author-bio-simple .author-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.author-bio-simple .author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--text-dark);
}

.author-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Simple Article Navigation */
.article-navigation-simple {
    margin: 4rem 0 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--light-gray);
}

.nav-links-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.nav-previous-simple,
.nav-next-simple {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-previous-simple:hover,
.nav-next-simple:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-label {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.nav-title {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.nav-next-simple {
    text-align: right;
}

/* Simplified Related Posts */
.related-posts-simple {
    margin: 4rem 0;
    padding: 3rem;
    background: var(--light-gray);
    border-radius: 20px;
}

.related-posts-simple h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
}

.related-image {
    display: block;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.related-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.related-content h3 a:hover {
    color: var(--primary-purple);
}

.related-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

/* =================================================================
   REGULAR PAGES (not blog posts)
   ================================================================= */

.single-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.single-page .entry-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.single-page .entry-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    font-weight: 700;
}

.single-page .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.single-page .entry-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.single-page .entry-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Affiliate Disclosure Box */
.affiliate-disclosure {
    background: #FFF3CD;
    padding: 1.5rem;
    border-left: 4px solid #FFC107;
    margin: 2rem 0;
    border-radius: 5px;
}

.affiliate-disclosure p {
    margin: 0;
    font-size: 0.95rem;
}

/* Author Bio */
.author-bio {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-avatar img {
    border-radius: 50%;
}

/* Social Sharing */
.social-sharing {
    margin: 3rem 0;
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.social-sharing h3 {
    margin-bottom: 1rem;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
}

/* =================================================================
   BREADCRUMBS - Educational Navigation
   ================================================================= */

.breadcrumbs {
    padding: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    background: var(--light-gray);
    padding: 1rem 2rem;
    border-radius: 8px;
}

.breadcrumbs a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-purple);
}

.breadcrumbs i.fa-chevron-right {
    color: var(--text-light);
    opacity: 0.5;
}

/* =================================================================
   POST NAVIGATION - Styled Cards
   ================================================================= */

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-previous > div,
.post-navigation .nav-next > div {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-navigation .nav-previous > div:hover,
.post-navigation .nav-next > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.post-navigation a:hover {
    color: var(--primary-purple);
}

/* =================================================================
   PAGINATION - Professional
   ================================================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: var(--light-gray);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-purple);
    color: var(--white);
}

/* =================================================================
   RESPONSIVE DESIGN - Mobile First
   ================================================================= */

@media (max-width: 768px) {
    /* Hide desktop navigation */
    .main-navigation {
        display: none;
    }

    /* Show mobile menu when toggled */
    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 99999 !important;
    }

    /* Stack menu items vertically */
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        z-index: 99999 !important;
    }

    .main-navigation li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--light-gray);
        z-index: 99999 !important;
    }

    /* Reset parent link padding for mobile */
    .main-navigation .menu-item-has-children > a {
        padding: 1rem;
        padding-bottom: 1rem;
    }

    .main-navigation a {
        padding: 1rem;
        width: 100%;
    }

    /* Mobile submenu styling */
    .main-navigation .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: var(--light-gray);
        border-radius: 0;
        padding: 0;
        margin: 0;
        top: auto;
        z-index: 99999 !important;
    }

    /* Show submenu on parent click/tap (requires JavaScript) */
    .main-navigation .menu-item-has-children.active .sub-menu {
        display: flex;
    }

    /* Mobile submenu items */
    .main-navigation .sub-menu li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .main-navigation .sub-menu a {
        padding-left: 2rem;
        font-size: 0.95rem;
    }

    .main-navigation .sub-menu a:hover {
        padding-left: 2.5rem;
    }

    /* Show mobile menu toggle button */
    .mobile-menu-toggle {
        display: block;
        z-index: 10000 !important;
    }
    
    /* Ensure mobile header stays on top */
    header {
        z-index: 9999 !important;
    }
    
    nav {
        z-index: 9999 !important;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        min-width: 100%;
    }

    /* Article page responsive */
    .article-title {
        font-size: 2rem;
    }
    
    .article-body {
        font-size: 1.05rem;
    }
    
    .article-body h2 {
        font-size: 1.625rem;
    }
    
    .article-body h3 {
        font-size: 1.375rem;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left !important;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-section .section-title {
        font-size: 1.75rem;
    }

    .entry-title {
        font-size: 2rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio-simple {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-navigation .nav-next {
        text-align: left !important;
    }
    
    .nav-links-simple {
        grid-template-columns: 1fr;
    }
    
    .nav-next-simple {
        text-align: left !important;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    .social-sharing > div {
        flex-direction: column !important;
    }
    
    .social-sharing a {
        width: 100%;
        text-align: center;
    }
    
    .share-buttons {
        gap: 0.75rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post {
        padding: 0 1.5rem;
    }
    
    .simple-back-nav {
        padding: 0 1.5rem;
    }
    
    .entry-header {
        text-align: left;
    }
    
    .entry-meta {
        justify-content: flex-start;
    }
    
    .entry-content {
        font-size: 1.05rem;
    }
    
    .entry-content h2 {
        font-size: 1.75rem;
    }
    
    .entry-content h3 {
        font-size: 1.4rem;
    }
    
    .related-posts-simple {
        padding: 2rem 1.5rem;
    }
    
    .related-posts-simple h2 {
        font-size: 1.75rem;
    }
    
    .nav-previous-simple,
    .nav-next-simple {
        padding: 1.5rem;
    }
    
    /* Force all mobile content sections below navigation */
    .hero,
    .trust-section,
    .featured-categories,
    .latest-articles,
    .newsletter,
    .site-footer,
    .site-content,
    .single-post {
        z-index: 1 !important;
    }
}

/* =================================================================
   WORDPRESS CORE SUPPORT
   ================================================================= */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.sticky {
    background: var(--light-gray);
    padding: 2rem;
    border-left: 4px solid var(--primary-purple);
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* =================================================================
   PRINT & COMMENT REMOVAL
   ================================================================= */

.print-button,
.comments-area,
#comments,
.comment-form {
    display: none !important;
}
/* ============================================================
   IMMERSIVE READING EXPERIENCE – Posts Only
   ============================================================ */

.single-post-wrapper .post-content {
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.18rem;
    line-height: 1.9;
    letter-spacing: 0.2px;
    word-spacing: 0.4px;
    max-width: 750px;
    margin: 0 auto;
}

/* Paragraph spacing */
.single-post-wrapper .post-content p {
    margin-bottom: 1.6rem;
}

/* Headings inside posts */
.single-post-wrapper .post-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.single-post-wrapper .post-content h3 {
    font-size: 1.55rem;
    margin-top: 2.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Lists look better with proper spacing */
.single-post-wrapper .post-content ul,
.single-post-wrapper .post-content ol {
    margin-left: 1.3rem;
    line-height: 1.8;
}

/* Images inside post content */
.single-post-wrapper .post-content img {
    display: block;
    margin: 2rem auto;
    border-radius: 12px;
}

/* Blockquotes more readable */
.single-post-wrapper .post-content blockquote {
    font-size: 1.15rem;
    line-height: 1.8;
    padding: 1.5rem 2rem;
    background: #f7f7f7;
    border-left: 4px solid var(--primary-purple);
    border-radius: 6px;
    margin: 2.5rem 0;
}

/* Links more readable */
.single-post-wrapper .post-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
