/*
Theme Name: BizPlan AI Theme v5.2
Theme URI: https://bizplanaipro.com
Author: BizPlan AI Pro
Author URI: https://bizplanaipro.com
Description: Custom theme for BizPlan AI Pro - AI Business Plan Generator website
Version: 5.2
Text Domain: bizplan-ai
*/

/* ==================== CSS VARIABLES ==================== */
:root {
    --primary: #1a3a6c;
    --secondary: #2c5282;
    --accent: #3182ce;
    --light: #f0f7ff;
    --dark: #152c52;
    --success: #38a169;
    --error: #e53e3e;
    --text: #333333;
    --light-text: #718096;
    --border: #e2e8f0;
    --background: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

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

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

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary);
}

.btn-light {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==================== HEADER ==================== */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    min-height: 70px;
}

.logo-container {
    flex: 0 0 auto;
    max-width: 200px;
}

.logo-container .logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary);
}

/* Main Navigation */
.main-navigation {
    flex: 1 1 auto;
    margin: 0 30px;
}

.menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0 15px;
}

.menu li a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 10px 0;
}

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

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

.menu li a:hover::after {
    width: 100%;
}

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

.header-icon {
    position: relative;
    color: var(--text);
    font-size: 1.3rem;
    text-decoration: none;
    display: flex;
    transition: color 0.3s;
}

.header-icon:hover {
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--error);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    line-height: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    padding: 8px;
    z-index: 1001;
    border-radius: var(--radius-sm);
    transition: background-color 0.3s;
}

.mobile-menu-btn:hover {
    background-color: rgba(26, 58, 108, 0.1);
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    top: -100px;
    right: -100px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    bottom: -80px;
    left: -80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ==================== SECTIONS ==================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--light-text);
    font-size: 18px;
}

.section-title {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--light-text);
    font-size: 18px;
}

/* ==================== FEATURES ==================== */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 30px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    color: var(--light-text);
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 100px 0;
    background: var(--background);
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.steps::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 22%;
    opacity: 0;
    transform: translateY(20px);
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.step p {
    color: var(--light-text);
}

/* ==================== PRICING ==================== */
.pricing {
    padding: 100px 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    z-index: 2;
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.price span {
    font-size: 18px;
    color: var(--light-text);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

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

.pricing-features li i {
    color: var(--success);
    margin-right: 10px;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
    padding: 100px 0;
    background: var(--background);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
    color: var(--accent);
}

.testimonial-info h4 {
    margin-bottom: 5px;
}

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

.testimonial-content {
    color: var(--light-text);
    font-style: italic;
    line-height: 1.8;
}

.rating {
    color: #fbbf24;
    margin-top: 15px;
}

/* ==================== CTA ==================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== FOOTER ==================== */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 100px 100px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

footer * {
    position: relative;
    z-index: 1;
}

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #e0e7ff;
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e0e7ff;
    text-decoration: none;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    margin-right: 10px;
    color: #e0e7ff;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-column .partner-badge {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.footer-column .partner-badge img {
    max-width: 140px;
    height: auto;
    filter: brightness(1.15);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-column .partner-badge img:hover {
    transform: scale(1.08);
    filter: brightness(1.3);
}

/* ==================== SINGLE POST/PAGE ==================== */
.page-container .entry-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.page-container .entry-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 10px;
}

.singular-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.singular-article {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.singular-header {
    margin-bottom: 40px;
}

.singular-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin: 20px 0;
    color: var(--primary);
}

.singular-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.singular-meta span {
    display: flex;
    align-items: center;
}

.singular-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 15px;
    color: var(--border);
}

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

.singular-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.singular-thumbnail:hover img {
    transform: scale(1.03);
}

.singular-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.singular-content p {
    margin-bottom: 1.8rem;
}

.singular-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.singular-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1.2rem;
    color: var(--secondary);
}

.singular-content blockquote {
    border-left: 4px solid var(--accent);
    background-color: var(--light);
    padding: 20px 30px;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark);
}

.singular-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.singular-footer {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.singular-comments {
    margin-top: 60px;
}

/* ==================== POST META & TAGS ==================== */
.post-categories {
    margin-bottom: 15px;
}

.post-categories a {
    display: inline-block;
    background-color: var(--light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    margin-right: 8px;
    transition: var(--transition);
}

.post-categories a:hover {
    background-color: var(--accent);
    color: var(--white);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tag-label {
    font-weight: 600;
    color: var(--primary);
    margin-right: 5px;
}

.post-tags a {
    display: inline-block;
    background-color: #f3f4f6;
    color: var(--text);
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.post-tags a:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* ==================== AUTHOR BOX ==================== */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background-color: var(--light);
    border-radius: var(--radius-lg);
}

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

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.author-bio {
    color: var(--light-text);
    line-height: 1.6;
}

/* ==================== COMMENTS ==================== */
.comments-title {
    font-size: 1.5rem;
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

/* ==================== WOOCOMMERCE MY ACCOUNT ==================== */
.myaccount-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.myaccount-sidebar {
    width: 220px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 12px;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 10px 15px;
    background-color: #f3f4f6;
    color: var(--secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 600;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background-color: var(--accent);
    color: var(--white);
}

.myaccount-content {
    flex: 1;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ==================== LOGIN REQUIRED NOTICE ==================== */
.login-required-notice {
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
}

.notice-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.notice-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.login-link {
    color: #ffd700;
    text-decoration: underline;
    font-weight: bold;
}

.login-benefits {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.login-benefits ul {
    list-style: none;
    padding: 0;
}

.login-benefits li {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* ==================== PAGE LINKS ==================== */
.page-links {
    margin: 30px 0;
    font-weight: 600;
}

.page-links a {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 5px 5px 0;
    background-color: var(--light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.page-links a:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* ==================== BLOG PAGE STYLES ==================== */
.blog-page-container {
    background: var(--background);
}

/* Blog Hero */
.blog-page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Hero Search */
.hero-search {
    max-width: 500px;
    margin: 0 auto 40px;
}

.hero-search-form {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 16px;
}

.hero-search-button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.hero-search-button:hover {
    background: var(--secondary);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* Featured Posts Section */
.featured-posts-section {
    padding: 80px 0;
    background: var(--white);
}

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

.featured-post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.featured-post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-post-card:hover .featured-post-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.featured-post-content {
    padding: 25px;
}

.post-category {
    display: inline-block;
    background: var(--light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.featured-post-title {
    font-size: 20px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-post-title a {
    color: var(--primary);
    transition: color 0.3s;
}

.featured-post-title a:hover {
    color: var(--accent);
}

.featured-post-excerpt {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.featured-post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--light-text);
}

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

/* Category Filter */
.category-filter-section {
    padding: 40px 0;
    background: var(--background);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.category-filter-wrapper {
    text-align: center;
}

.filter-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-filter {
    padding: 8px 20px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    color: var(--text);
}

.category-filter:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.category-filter.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.category-count {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
    font-size: 12px;
}

/* Latest Posts */
.latest-posts-section {
    padding: 80px 0;
    background: var(--white);
}

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

.blog-post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.blog-post-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-image img {
    transform: scale(1.05);
}

.post-category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.blog-post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.blog-post-title {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-post-title a {
    color: var(--primary);
    transition: color 0.3s;
}

.blog-post-title a:hover {
    color: var(--accent);
}

.blog-post-excerpt {
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 14px;
}

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

.read-more-btn {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.read-more-btn:hover {
    color: var(--primary);
}

.read-time {
    font-size: 13px;
    color: var(--light-text);
}

/* Load More Button */
.load-more-wrapper {
    text-align: center;
    margin-top: 50px;
}

.load-more-btn {
    padding: 12px 30px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.load-more-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.load-more-btn .fa-spinner {
    margin-left: 10px;
}

/* Popular Posts */
.popular-posts-section {
    padding: 80px 0;
    background: var(--background);
}

.popular-posts-list {
    max-width: 800px;
    margin: 0 auto;
}

.popular-post-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.popular-post-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.popular-post-rank {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    min-width: 40px;
    text-align: center;
}

.popular-post-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-post-content {
    flex: 1;
}

.popular-post-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.popular-post-title a {
    color: var(--primary);
    transition: color 0.3s;
}

.popular-post-title a:hover {
    color: var(--accent);
}

.popular-post-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--light-text);
}

/* Newsletter Section */
.blog-newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.newsletter-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.newsletter-description {
    opacity: 0.9;
    line-height: 1.6;
}

.blog-newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
    border-color: var(--white);
}

.newsletter-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-submit-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 10px;
    text-align: center;
}

.newsletter-note a {
    color: var(--white);
    text-decoration: underline;
}

/* Topics Section */
.topics-section {
    padding: 80px 0;
    background: var(--white);
}

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

.topic-card {
    background: var(--background);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.topic-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.topic-icon {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--accent);
}

.topic-name {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary);
}

.topic-count {
    font-size: 13px;
    color: var(--light-text);
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-text);
}

.no-posts-message i {
    font-size: 48px;
    color: var(--border);
    margin-bottom: 20px;
}

.no-posts-message h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

/* ==================== SINGLE BLOG POST ==================== */
.single-post-container {
    background: var(--background);
}

.single-post-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 60px 0;
}

.post-breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
}

.post-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.post-breadcrumbs a:hover {
    color: var(--white);
}

.breadcrumb-separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: var(--white);
}

.post-hero-content {
    max-width: 800px;
}

.post-title {
    font-size: 42px;
    margin: 20px 0;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.post-author img {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.author-role {
    font-size: 13px;
    opacity: 0.7;
}

.post-meta-info {
    display: flex;
    gap: 20px;
}

/* Featured Image */
.post-featured-image {
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.post-featured-image .container {
    max-width: 900px;
}

.featured-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Post Content Layout */
.post-content-wrapper {
    padding: 60px 0;
}

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

.post-main {
    min-width: 0;
}

.post-article {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--primary);
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--secondary);
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.post-body blockquote {
    border-left: 4px solid var(--accent);
    background: var(--light);
    padding: 20px 30px;
    margin: 1.5rem 0;
    font-style: italic;
}

/* Post Pagination */
.post-pagination {
    margin: 30px 0;
    text-align: center;
}

.post-pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: var(--light);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.post-pagination span:hover {
    background: var(--accent);
    color: var(--white);
}

/* Post Share */
.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.share-label {
    font-weight: 600;
    color: var(--primary);
}

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

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 16px;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.twitter {
    background: #000000;
}

.share-button.linkedin {
    background: #0a66c2;
}

.share-button.email {
    background: #ea4335;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.related-posts-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.related-post-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.related-post-image {
    height: 150px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.related-post-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: var(--primary);
    transition: color 0.3s;
}

.related-post-content h4 a:hover {
    color: var(--accent);
}

.related-post-date {
    font-size: 13px;
    color: var(--light-text);
}

/* Post Navigation */
.post-navigation-wrapper {
    background: var(--white);
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-item {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 8px;
}

.nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent);
}

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

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    color: var(--primary);
}

/* TOC Widget */
.toc-widget .toc-list {
    list-style: none;
}

.toc-widget .toc-list li {
    margin-bottom: 10px;
}

.toc-widget .toc-list a {
    color: var(--text);
    font-size: 14px;
    transition: color 0.3s;
}

.toc-widget .toc-list a:hover {
    color: var(--accent);
}

.toc-sublist {
    padding-left: 20px;
    margin-top: 8px;
}

/* Author Widget */
.author-widget-content {
    text-align: center;
}

.author-widget-content img {
    border-radius: 50%;
    margin-bottom: 15px;
}

.author-widget-content h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.author-widget-content p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
}

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

.categories-list li {
    margin-bottom: 10px;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text);
    font-size: 14px;
    transition: color 0.3s;
}

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

.categories-list span {
    color: var(--light-text);
    font-size: 12px;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

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

.newsletter-widget p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.newsletter-widget .newsletter-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.newsletter-widget .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-widget .btn {
    width: 100%;
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ==================== ACCESSIBILITY ==================== */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}

button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .header-actions,
    .mobile-menu-btn,
    .hero-buttons,
    footer,
    .post-sidebar,
    .post-share,
    .related-posts,
    .post-navigation-wrapper {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .post-layout {
        grid-template-columns: 1fr;
    }
}

/* ==================== RESPONSIVE - TABLET (992px) ==================== */
@media (max-width: 992px) {
    /* Mobile Menu */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    
    .main-navigation {
        display: none !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 70px) !important;
        background: var(--white) !important;
        z-index: 1000 !important;
        padding: 20px !important;
        margin: 0 !important;
        overflow-y: auto !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    }
    
    .main-navigation.active {
        display: block !important;
    }
    
    .main-navigation.active .menu {
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .main-navigation .menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin: 0;
        padding: 0;
        list-style: none;
        justify-content: flex-start;
    }
    
    .main-navigation .menu li {
        margin: 0 !important;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }
    
    .main-navigation .menu li:last-child {
        border-bottom: none;
    }
    
    .main-navigation .menu li a {
        display: block !important;
        padding: 20px 0 !important;
        font-size: 18px !important;
        font-weight: 500;
        color: var(--text);
        text-decoration: none;
        width: 100%;
        border: none;
        position: relative;
    }
    
    .main-navigation .menu li a:hover {
        color: var(--accent);
        background-color: rgba(49, 130, 206, 0.05);
    }
    
    .main-navigation .menu li a::after {
        display: none !important;
    }
    
    /* Grid Adjustments */
    .features-grid,
    .pricing-grid,
    .testimonial-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-posts-grid,
    .latest-posts-grid,
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .topics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .post-layout {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Steps */
    .steps {
        flex-direction: column;
        align-items: center;
    }
    
    .steps::before {
        display: none;
    }
    
    .step {
        width: 100%;
        margin-bottom: 40px;
    }
    
    /* Hero */
    .hero h2,
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    /* My Account */
    .myaccount-layout {
        flex-direction: column;
    }
    
    .myaccount-sidebar,
    .myaccount-content {
        width: 100%;
    }
}

/* ==================== RESPONSIVE - MOBILE (768px) ==================== */
@media (max-width: 768px) {
    /* Header */
    .main-navigation {
        top: 60px !important;
        height: calc(100vh - 60px) !important;
    }
    
    .header-container {
        min-height: 60px;
        padding: 10px 15px;
    }
    
    header {
        min-height: 60px;
    }
    
    .logo-container {
        max-width: 120px;
    }
    
    .logo-container .logo img {
        max-height: 40px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    /* Grid Adjustments */
    .features-grid,
    .pricing-grid,
    .testimonial-grid,
    .footer-grid,
    .featured-posts-grid,
    .latest-posts-grid,
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-sidebar {
        grid-template-columns: 1fr;
    }
    
    /* Hero */
    .hero {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero h2,
    .hero-title {
        font-size: 28px;
    }
    
    .hero p,
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Section Headers */
    .section-header h2,
    .section-title {
        font-size: 24px;
    }
    
    .section-header p,
    .section-subtitle {
        font-size: 16px;
    }
    
    /* Single Post */
    .singular-title,
    .post-title {
        font-size: 2rem;
    }
    
    .singular-meta,
    .post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .singular-meta span:not(:last-child)::after {
        display: none;
    }
    
    /* Author Box */
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    /* Post Navigation */
    .post-navigation {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    /* Footer */
    footer {
        padding: 50px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Accessibility */
    .menu li a,
    .btn,
    .header-icon {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu li a {
        justify-content: flex-start;
    }
}

/* ==================== RESPONSIVE - SMALL MOBILE (576px) ==================== */
@media (max-width: 576px) {
    /* Hero Buttons */
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .hero h2,
    .hero-title {
        font-size: 24px;
    }
    
    .section-header h2,
    .section-title {
        font-size: 22px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .features,
    .how-it-works,
    .pricing,
    .testimonials,
    .cta {
        padding: 60px 0;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .popular-post-item {
        flex-direction: column;
        text-align: center;
    }
    
    .popular-post-rank {
        min-width: auto;
    }
}
/* Sidebar Widget Display Fix */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* Ensure TOC doesn't overflow or break layout */
.toc-widget .toc-content {
    max-height: none;
    overflow: visible;
}

.toc-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}

.toc-list li {
    margin-bottom: 5px;
    list-style: none !important;
}

.toc-list a {
    display: block;
    padding: 5px 10px;
    color: var(--text);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.toc-list a:hover {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--light);
}

.toc-sublist {
    list-style: none !important;
    padding-left: 15px !important;
    margin: 0 !important;
}

.toc-sublist li {
    margin-bottom: 3px;
}

.toc-sublist a {
    font-size: 13px;
    color: var(--light-text);
}

.toc-empty {
    color: var(--light-text);
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
}

/* Ensure all widgets are visible */
.author-widget,
.categories-widget,
.newsletter-widget {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Categories list styles */
.categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.categories-list li {
    border-bottom: 1px solid var(--border);
    list-style: none !important;
}

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

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.categories-list span {
    background: var(--light);
    color: var(--light-text);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 25px;
    text-align: center;
}

/* Newsletter form styles */
.newsletter-widget {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

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

.newsletter-widget p {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 15px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.25);
}

.newsletter-form .btn {
    width: 100%;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Author widget styles */
.author-widget-content {
    text-align: center;
}

.author-widget-content img {
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid var(--light);
}

.author-widget-content h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.author-widget-content p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-widget-content .btn-outline {
    display: inline-block;
    width: auto;
}
/* ==================== FIXED: Lazy Loading Images ==================== */
/* REMOVED opacity: 0 that was hiding images */
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Optional enhancement: subtle shimmer effect for loading images */
img[loading="lazy"]:not(.loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 50px;
}

img[loading="lazy"].loaded {
    opacity: 1;
    animation: none;
    background: none;
}

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

/* ==================== SCROLL ANIMATIONS ==================== */
.feature-card,
.step,
.pricing-card,
.testimonial-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card.visible,
.step.visible,
.pricing-card.visible,
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== HEADER CTA V5 (premium SaaS header) ==================== */
.header-login:hover { color: #4f46e5 !important; }
.header-cta:hover { background: #3730a3 !important; }
@media (max-width: 768px) {
    .header-actions { gap: 6px; }
    .header-login { padding: 8px 4px !important; font-size: .82rem !important; }
    .header-cta { padding: 8px 12px !important; font-size: .8rem !important; }
    /* Keep the brand on one line — never let "Pro" wrap. Shrink the logo box
       only as a last resort: give it intrinsic width and let it flex down. */
    .logo-container { max-width: none; flex: 0 1 auto; min-width: 0; }
    .site-title, .site-title a, .bp-brand-fallback a { white-space: nowrap; }
    .bp-brand-fallback a { font-size: 1.08rem; }
    .header-container { gap: 8px; }
    /* 44px-friendly tap targets for the compact header actions */
    .header-login { display: inline-flex; align-items: center; min-height: 42px; }
    .header-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 14px !important; }
}
/* Shorten the header CTA only where the extra letters would eat the last millimetres. */
@media (max-width: 400px) {
    .header-cta-full { display: none; }
}
/* Pre-hamburger band (993–1120px): full nav + actions + CTA don't fit.
   Tighten gaps, shrink the logo, and shorten the CTA label so the header
   never pushes the page into horizontal overflow. */
@media (max-width: 1120px) and (min-width: 993px) {
    .header-container { gap: 12px; }
    .logo-container { max-width: 150px; }
    .main-navigation { margin-left: 20px; }
    .main-navigation .menu li { margin: 0 8px; }
    .header-actions { gap: 12px; }
    .header-cta-full { display: none; }
    .header-cta { padding: 9px 14px !important; }
}

/* Mobile header: brand link needs a comfortable tap height */
@media (max-width: 768px) {
    .logo-container a, .site-branding .logo-container { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Mobile footer: comfortable tap targets for link lists (WCAG inline-link exception applies to prose links) */
@media (max-width: 768px) {
    .footer-links a { display: inline-block; padding: 12px 0; }
    .footer-column h3 { margin-top: 8px; }
}
