/*
Theme Name: AllTheMarketingTools
Description: Modern, SEO-optimized WordPress theme specifically designed for marketing tool reviews and directories. Features beautiful hero sections, responsive design, advanced search functionality, and comprehensive schema markup for maximum search engine visibility.
Version: 2.6.0
Author: AllTheMarketingTools Team
Author URI: https://allthemarketingtools.com
Tags: marketing, tools, reviews, seo, responsive, modern, business, directory
Text Domain: allthemarketingtools
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
   HUB PAGE STYLES - Category Pillar Pages
   ========================================================================== */

/* Category Hub Hero Section */
.category-hub-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.category-hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.category-hub-hero > * {
    position: relative;
    z-index: 2;
}

.category-hub-hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.category-hub-hero .hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Category Statistics */
.category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: #fff;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.9;
    font-weight: 500;
}

/* CTA Buttons */
.hero-cta {
    margin-top: 40px;
}

.cta-primary, .cta-secondary {
    display: inline-block;
    padding: 15px 35px;
    margin: 0 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.cta-primary {
    background: #fff;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #667eea;
    text-decoration: none;
}

.cta-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
}

.cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* Modern Section Styling */
.top-picks,
.top-picks-section {
    background: #fff;
    padding: 80px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e2e8f0;
}

.category-breakdown {
    background: #f8fafc;
    padding: 80px 0;
    border-bottom: 1px solid #e2e8f0;
}

.all-tools-section {
    background: #fff;
    padding: 80px 0;
    border-bottom: 1px solid #e2e8f0;
}

.buying-guide-section {
    background: #f8fafc;
    padding: 80px 0;
    border-bottom: 1px solid #e2e8f0;
}

.faq-section {
    background: #fff;
    padding: 80px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.25rem;
    color: #718096;
    line-height: 1.6;
    margin: 0;
}

.top-picks-section h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3em;
    color: #718096;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.top-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hub Tool Cards */
.hub-tool-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.hub-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.hub-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.tool-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 20px;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.hub-tool-card h3 {
    font-size: 1.5em;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 700;
}

.tool-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.tool-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 1.2em;
}

.rating-number {
    font-weight: 600;
    color: #2d3748;
    margin-left: 5px;
}

.tool-price {
    font-size: 1.1em;
    font-weight: 600;
    color: #059669;
    margin-bottom: 20px;
}

.tool-cta {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.tool-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* All Tools Grid Section */
.all-tools-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.all-tools-section h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2d3748;
    margin-bottom: 60px;
    font-weight: 700;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.tool-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.tool-card h3 {
    font-size: 1.3em;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 600;
}

.tool-card .tool-description {
    flex-grow: 1;
    margin-bottom: 15px;
    color: #718096;
    line-height: 1.5;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tool-features li {
    padding: 5px 0;
    color: #4a5568;
    font-size: 0.95em;
}

.tool-features li:before {
    content: '✓';
    color: #059669;
    font-weight: bold;
    margin-right: 8px;
}

/* All Tools Grid Section */
.all-tools-section {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Buying Guide Section */
.buying-guide-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 80px 20px;
    margin: 60px 0;
}

.buying-guide-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.buying-guide-section h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2d3748;
    margin-bottom: 60px;
    font-weight: 700;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.guide-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.guide-icon {
    font-size: 3em;
    margin-bottom: 25px;
    display: block;
    color: #667eea;
}

.guide-item h3 {
    font-size: 1.5em;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.guide-item p {
    color: #718096;
    line-height: 1.6;
    font-size: 1.05em;
}

/* FAQ Section */
.faq-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2d3748;
    margin-bottom: 60px;
    font-weight: 700;
}

.faq-item {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-question {
    background: #f8fafc;
    padding: 25px 30px;
    font-size: 1.2em;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: #edf2f7;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 20px 30px 30px;
}

.faq-answer p {
    color: #718096;
    line-height: 1.7;
    font-size: 1.05em;
    margin: 0;
}

/* Category Breakdown Section */
.category-breakdown {
    padding: 80px 20px;
    background: #f8fafc;
}

.category-breakdown h2 {
    text-align: center;
    font-size: 2.8em;
    color: #2d3748;
    margin-bottom: 60px;
    font-weight: 700;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.breakdown-item {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    border-top: 4px solid #667eea;
}

.breakdown-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.breakdown-item h3 {
    font-size: 1.4em;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 700;
}

.breakdown-item .tool-count {
    font-size: 2em;
    font-weight: 800;
    color: #667eea;
    display: block;
    margin-bottom: 10px;
}

.breakdown-item p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.breakdown-cta {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breakdown-cta:hover {
    background: #764ba2;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* Social Platform Tabs */
.platform-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-button {
    background: #fff;
    border: 2px solid #e2e8f0;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: #718096;
    transition: all 0.3s ease;
}

.tab-button.active,
.tab-button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-hub-hero h1 {
        font-size: 2.5em;
    }
    
    .category-hub-hero .hero-subtitle {
        font-size: 1.2em;
    }
    
    .category-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5em;
    }
    
    .top-picks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary, .cta-secondary {
        display: block;
        margin: 10px auto;
        text-align: center;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .category-hub-hero {
        padding: 60px 15px;
    }
    
    .category-hub-hero h1 {
        font-size: 2em;
    }
    
    .category-stats {
        grid-template-columns: 1fr;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .hub-tool-card,
    .tool-card,
    .guide-item,
    .breakdown-item {
        padding: 20px;
    }
    
    .top-picks-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Related Tools Section */
.related-tools-section {
    background: #f8fafc;
    padding: 60px 20px;
    margin: 60px 0;
    border-radius: 20px;
}

.related-tools-section h2 {
    text-align: center;
    font-size: 2.5em;
    color: #2d3748;
    margin-bottom: 50px;
    font-weight: 700;
}

.related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-tool-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

.related-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.related-tool-card:hover::before {
    opacity: 1;
}

.related-tool-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.placeholder-logo {
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5em;
    border: 2px solid #667eea !important;
}

.placeholder-logo .logo-initial {
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.related-tool-card:hover .related-tool-logo {
    border-color: #667eea;
    transform: scale(1.05);
}

.related-tool-card h4 {
    font-size: 1.4em;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.related-tool-card p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 1.05em;
}

.related-tool-category {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
    transition: all 0.3s ease;
}

.related-tool-card:hover .related-tool-category {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: scale(1.05);
}

/* Compare Button Styling */
.related-tool-card .compare-button {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    text-align: center;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}

.related-tool-card .compare-button:hover {
    background: #764ba2;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* Responsive Design for Related Tools */
@media (max-width: 768px) {
    .related-tools {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .related-tools-section {
        padding: 40px 15px;
        margin: 40px 0;
    }
    
    .related-tools-section h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .related-tool-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .related-tools {
        grid-template-columns: 1fr;
    }
    
    .related-tool-card h4 {
        font-size: 1.2em;
    }
    
    .related-tool-logo {
        width: 50px;
        height: 50px;
    }
}

/* Navigation Dropdown Enhancements */
.dropdown-header {
    font-weight: 700 !important;
    color: #667eea !important;
    font-size: 0.85em !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 12px 20px 8px !important;
    border-bottom: none !important;
    margin-bottom: 5px !important;
}

.dropdown-divider {
    height: 1px !important;
    background: #e2e8f0 !important;
    margin: 10px 0 !important;
    padding: 0 !important;
}

.dropdown-menu li a {
    padding: 8px 20px !important;
    transition: all 0.2s ease !important;
}

.dropdown-menu li a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    padding-left: 25px !important;
}

.cat-count {
    opacity: 0.7;
    font-size: 0.9em;
    margin-left: 5px;
}

/* ==========================================================================
   WORDPRESS CORE STYLES - Full Theme Base
   ========================================================================== */

/* WordPress Core Reset */
html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Accessibility - Skip Link */
.skip-link {
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    position: absolute;
    left: -9999px;
    top: -9999px;
    z-index: 999999;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    clip: auto !important;
    height: auto !important;
    width: auto !important;
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: normal;
    padding: 8px 16px;
    z-index: 100000;
    border: 2px solid #0073aa;
    box-shadow: 0 0 2px 2px rgba(0,115,170,.6);
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #000;
    border: 2px solid #0073aa;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,115,170,.6);
    clip: auto !important;
    clip-path: none;
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 6px;
    line-height: normal;
    padding: 8px 16px;
    text-decoration: none;
    top: 7px;
    width: auto;
    z-index: 100000;
}

/* WordPress Content Structure */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* WordPress Alignment Classes */
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.alignwide {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 1200px;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

/* WordPress Gallery Styles */
.wp-block-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wp-block-image {
    margin: 0 0 1rem 0;
}

/* WordPress Caption Styles */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

/* WordPress Navigation Styles */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    display: inline-block;
}

/* WordPress Widget Styles */
.widget {
    margin: 0 0 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

/* WordPress Comment Styles */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin: 0 0 1.5rem;
}

/* WordPress Pagination */
.pagination {
    margin: 2rem 0;
}

.page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* ==========================================================================
   MARKETING TOOLS SEO & UX OPTIMIZATIONS
   ========================================================================== */

/* Custom Properties for Brand Consistency */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-light: #f8fafc;
    --background-card: #ffffff;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --box-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

/* Enhanced Typography for SEO Readability */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

h1 { 
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.tool-hero-section h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

h2 { 
    font-size: clamp(1.75rem, 4vw, 2.25rem); 
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    position: relative;
}

h3 { 
    font-size: clamp(1.375rem, 3vw, 1.75rem); 
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Improved readability for content */
p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.tool-content p:first-child,
.main-content p:first-child {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 400;
}

/* Tool Review Page Layout Optimization */
.tool-review-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.tool-hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 4rem 0 5rem 0;
    margin-bottom: 0;
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
    position: relative;
    overflow: hidden;
}

.tool-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 1;
}

.tool-hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.tool-hero-section > * {
    position: relative;
    z-index: 2;
}

/* Hero Content Layout - FORCE OVERRIDE ALL THEME STYLES */
.tool-hero-section .hero-content,
.hero-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    min-height: 400px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.hero-content .hero-text {
    width: 50% !important;
    padding-right: 2rem !important;
    flex-shrink: 0 !important;
    flex-basis: 50% !important;
}

.hero-text .tool-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text .tool-meta {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding: 0;
}

.hero-text .tool-rating {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-text .tool-category {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-self: flex-start;
}

.tool-hero-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

/* Hero Screenshot Styling */
.hero-content .hero-screenshot {
    width: 50% !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    flex-basis: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.screenshot-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.screenshot-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.tool-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-xl);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    border-radius: var(--border-radius-xl);
}

.browser-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.browser-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.browser-dots .dot.red {
    background: #ff5f56;
}

.browser-dots .dot.yellow {
    background: #ffbd2e;
}

.browser-dots .dot.green {
    background: #27ca3f;
}

/* Hero Logo (when not screenshot) */
.hero-logo {
    width: 50%;
    text-align: center;
}

.hero-logo .tool-logo {
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--box-shadow-xl);
    background: white;
    padding: 20px;
    object-fit: contain;
    transition: var(--transition);
}

.hero-logo .tool-logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 30px 60px rgba(255, 255, 255, 0.3);
}

/* Single column layout when only text */
/* Override centering rule when there's both text and screenshot */
.hero-content:only-child .hero-text,
.hero-content .hero-text:only-child {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Force layout when both text and screenshot exist */
.hero-content:has(.hero-screenshot) .hero-text {
    text-align: left !important;
    width: 50% !important;
    max-width: none !important;
    margin: 0 !important;
}

.hero-content:has(.hero-screenshot) {
    justify-content: space-between !important;
}

.tool-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-xl);
    background: white;
    padding: 12px;
    object-fit: contain;
    transition: var(--transition);
}

.tool-logo:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Hide screenshot thumbnails from hero section */
.tool-hero-section .tool-logo[src*="screenshot"],
.tool-hero-section .tool-logo[src*="homepage"] {
    display: none;
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.tool-stars {
    color: var(--accent-color);
}

/* Enhanced Content Sections */
.tool-section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    border: 1px solid var(--border-light);
    position: relative;
    transition: var(--transition);
}

.tool-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-xl);
}

.tool-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.tool-section h2 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-section h2::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

/* Pricing Table Enhancement */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Features List Enhancement */
.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--background-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.features-list li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
}

/* Pros and Cons Section */
.pros-cons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros-section, .cons-section {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--box-shadow);
}

.pros-section {
    border-left: 4px solid var(--success-color);
}

.cons-section {
    border-left: 4px solid var(--danger-color);
}

.pros-section h3 {
    color: var(--success-color);
}

.cons-section h3 {
    color: var(--danger-color);
}

/* CTA Buttons Enhancement */
.tool-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
    box-shadow: var(--box-shadow-lg);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.tool-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.tool-cta-button:hover::before {
    left: 100%;
}

.tool-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    color: white;
    text-decoration: none;
}

.tool-cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.tool-cta-button::after {
    content: '→';
    transition: var(--transition);
}

.tool-cta-button:hover::after {
    transform: translateX(4px);
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table tr:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.screenshot-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Related Tools Section */
.related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.related-tool-card {
    background: var(--background-card);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: var(--transition-bounce);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.related-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.related-tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--box-shadow-xl);
    border-color: var(--primary-color);
    color: var(--text-primary);
    text-decoration: none;
}

.related-tool-card:hover::before {
    transform: scaleX(1);
}

.related-tool-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.related-tool-card:hover .related-tool-logo {
    transform: scale(1.1) rotate(2deg);
}

.related-tool-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.related-tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-tool-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* FAQ Section Enhancement */
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: var(--background-light);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.05);
}

.faq-answer {
    padding: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-text {
        width: 100%;
        padding-right: 0;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-text .tool-category {
        align-self: center;
    }
    
    .hero-screenshot,
    .hero-logo {
        width: 100%;
    }
    
    .screenshot-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-logo .tool-logo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .tool-hero-section {
        padding: 2rem 0 3rem 0;
    }
    
    .hero-content {
        min-height: auto;
        gap: 1.5rem;
        padding: 0 1rem;
        flex-direction: column;
    }
    
    .hero-text {
        padding: 0 0.5rem;
        flex: none;
    }
    
    .hero-text .tool-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .screenshot-wrapper {
        max-width: 320px;
    }
    
    .browser-frame {
        height: 30px;
        padding: 0 10px;
    }
    
    .browser-dots .dot {
        width: 8px;
        height: 8px;
    }
    
    .hero-logo .tool-logo {
        width: 120px;
        height: 120px;
    }
    
    .tool-hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .pros-cons-container {
        grid-template-columns: 1fr;
    }
    
    .pricing-table {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Performance Optimizations & Global Animations */
img {
    max-width: 100%;
    height: auto;
    transition: var(--transition);
}

img:hover {
    transform: scale(1.02);
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Smooth fade-in animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Enhance Table of Contents */
.table-of-contents {
    background: var(--background-light);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.table-of-contents::before {
    content: '📋';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--background-card);
    padding: 0 0.5rem;
    font-size: 1.2rem;
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: var(--transition);
    border-radius: 6px;
    padding-left: 1rem;
    position: relative;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.table-of-contents a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    transition: var(--transition);
}

.table-of-contents a:hover::before {
    transform: rotate(90deg);
}

/* Enhanced breadcrumbs */
.amt-breadcrumbs {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

.amt-breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.amt-breadcrumbs a:hover {
    color: rgba(255, 255, 255, 1);
}

.amt-breadcrumbs .separator {
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.amt-breadcrumbs .current {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

/* ============================================
   HOMEPAGE REDESIGN - MATCHING HERO AESTHETIC
   ============================================ */

/* Homepage Hero Section */
.homepage-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    color: white;
    padding: 4rem 0 6rem 0;
    position: relative;
    overflow: hidden;
}

.homepage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.homepage-hero .hero-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    position: relative;
    z-index: 2;
}

.homepage-hero .hero-text {
    width: 55% !important;
    padding-right: 3rem !important;
}

.homepage-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.homepage-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.homepage-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.homepage-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.homepage-cta-button {
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.homepage-cta-button.primary {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.homepage-cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

.homepage-cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.homepage-cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Hero Visual - Tools Preview */
.hero-visual {
    width: 45% !important;
    position: relative;
}

.tools-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    transform: perspective(1000px) rotateY(-15deg);
}

.tool-preview-card {
    animation: floatIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card-mini {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card-mini:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.tool-mini-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.tool-mini-info h4 {
    font-size: 0.8rem;
    margin: 0.5rem 0 0.25rem 0;
    font-weight: 600;
}

.tool-mini-rating {
    font-size: 0.7rem;
}

/* Search Section */
.homepage-search {
    background: var(--background-light);
    padding: 4rem 0;
}

.homepage-search .search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.homepage-search h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.enhanced-search {
    margin-top: 2rem;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.homepage-search-input {
    width: 100%;
    padding: 1.25rem 5rem 1.25rem 2rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-xl);
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.homepage-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-50%) scale(1.05);
}

/* Content Container Constraints */
.hub-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-hub-container {
    width: 100%;
}

/* Typography and Reading Width */
.hub-page-content p,
.hub-page-content li,
.guide-item p,
.faq-answer p,
.breakdown-item p {
    max-width: 65ch;
    line-height: 1.7;
}

/* Section Content Containers */
.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure all main sections have proper containers */
.category-breakdown,
.all-tools-section,
.buying-guide-section,
.faq-section {
    padding-left: 20px;
    padding-right: 20px;
}

.category-breakdown > *,
.all-tools-section > *,
.buying-guide-section > *,
.faq-section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Categories */
.featured-categories {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8fafc;
}

.featured-categories .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-categories .section-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 700;
}

.featured-categories .section-header p {
    font-size: 1.2rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
}

.category-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.category-arrow {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.category-card:hover .category-arrow {
    transform: translateX(5px);
}

/* Latest Reviews */
.latest-reviews {
    background: var(--background-light);
    padding: 5rem 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tool-review-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.tool-review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.tool-review-card:hover .card-image img {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 700;
}

.card-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.card-pricing {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.tool-review-card:hover .read-more {
    color: #1d4ed8;
}

.card-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.view-all-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Newsletter Section */
.homepage-newsletter {
    background: linear-gradient(135deg, var(--text-primary) 0%, #374151 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.newsletter-content > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem auto;
    gap: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================
   HEADER REDESIGN
   ============================================ */

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-header.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
}

.site-branding .site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.logo-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.nav-icon {
    font-size: 1rem;
}

.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
}

.cat-count {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: background 0.3s ease;
}

.search-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
}

.nav-cta-button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile Search */
.mobile-search {
    display: none;
    background: white;
    border-top: 1px solid var(--border-light);
    padding: 1rem 2rem;
}

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

.mobile-search form {
    display: flex;
    gap: 1rem;
}

.mobile-search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
}

.mobile-search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid var(--border-light);
    padding: 2rem;
}

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

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 1rem;
}

.mobile-nav-list a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.mobile-categories {
    margin-top: 2rem;
}

.mobile-cat-title {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 1rem;
}

.mobile-categories a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    border: none;
}

/* ============================================
   FOOTER REDESIGN
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #374151 100%);
    color: white;
}

.footer-content {
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 200px 200px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section h3.footer-title {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Company Info */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    font-size: 2rem;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-logo-text strong {
    font-size: 1.3rem;
    font-weight: 800;
}

.footer-logo-text span {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.footer-stats {
    display: flex;
    gap: 2rem;
}

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

.footer-stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.footer-stat span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.link-count,
.link-rating {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Newsletter Section */
.newsletter-section .newsletter-description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-newsletter {
    margin-bottom: 2rem;
}

.footer-newsletter .newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-email-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-email-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-subscribe-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-subscribe-btn:hover {
    background: #d97706;
}

.newsletter-privacy {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0;
}

.footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    margin: 0 0 0.25rem 0;
}

.footer-tagline {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.back-to-top-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* Add spacing for fixed header */
body {
    padding-top: 70px;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ============================================ */

/* Tablet Styles */
@media (max-width: 1024px) {
    .homepage-hero .hero-content,
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .homepage-hero .hero-text,
    .hero-text {
        width: 100% !important;
        padding-right: 0 !important;
        max-width: 600px;
    }
    
    .hero-visual {
        width: 100% !important;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .tools-preview {
        transform: none;
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
        margin: 0 auto;
    }
    
    .homepage-stats {
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Header Mobile */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu,
    .search-toggle,
    .nav-cta-button {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Homepage Hero Mobile */
    .homepage-hero {
        padding: 3rem 0 4rem 0;
    }
    
    .homepage-hero .hero-content {
        padding: 0 1rem !important;
        gap: 2rem;
    }
    
    .homepage-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .homepage-description {
        font-size: 1.1rem;
    }
    
    .homepage-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .homepage-cta {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .homepage-cta-button {
        width: 100%;
        justify-content: center;
        padding: 1.25rem;
    }
    
    .tools-preview {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        transform: scale(0.9);
    }
    
    /* Search Section Mobile */
    .homepage-search .search-container {
        padding: 0 1rem;
    }
    
    .homepage-search h2 {
        font-size: 2rem;
    }
    
    .search-input-wrapper {
        max-width: 100%;
    }
    
    .homepage-search-input {
        padding: 1rem 4rem 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .search-submit-btn {
        padding: 0.5rem 1rem;
        right: 6px;
    }
    
    /* Categories Mobile */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .section-header {
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Reviews Mobile */
    .reviews-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Newsletter Mobile */
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .newsletter-input,
    .newsletter-btn {
        width: 100%;
    }
    
    .newsletter-content {
        padding: 0 1rem;
    }
    
    .newsletter-content h2 {
        font-size: 2rem;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-newsletter .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Body padding adjustment for mobile header */
    body {
        padding-top: 70px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .homepage-hero {
        padding: 2rem 0 3rem 0;
    }
    
    .homepage-title {
        font-size: 1.8rem;
    }
    
    .homepage-description {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .homepage-cta-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .tools-preview {
        transform: scale(0.8);
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for keyboard navigation */
.tool-cta-button:focus,
.related-tool-card:focus,
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .tool-hero-section {
        background: none !important;
        color: var(--text-primary) !important;
    }
    
    .tool-cta-button {
        display: none;
    }
}