/* IAHispana - Main Stylesheet */

/* Import Fonts: Montserrat (Headings), Roboto (Body), Inter (UI) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500&family=Montserrat:wght@600;700&family=Roboto:wght@400;500&display=swap');

:root {
    /* Color Palette */
    --color-primary: #0F172A;
    --color-secondary: #0EA5A4;
    --color-accent: #10B981;
    --color-background: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-text-main: #111827;
    --color-text-secondary: #64748B;
    --color-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-ui: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Specific Component Tokens */
    --newsletter-bg: radial-gradient(circle at top right, #1E293B 0%, var(--color-primary) 100%);

    /* Transition */
    --theme-transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] {
    --color-primary: #F8FAFC;
    --color-secondary: #2DD4BF;
    --color-accent: #34D399;
    --color-background: #0F172A;
    --color-surface: #1E293B;
    --color-text-main: #F1F5F9;
    --color-text-secondary: #94A3B8;
    --color-border: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --newsletter-bg: radial-gradient(circle at top right, #1E293B 0%, #0F172A 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
    transition: var(--theme-transition);
    /* Space for fixed header */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    font-family: var(--font-ui);
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.btn-accent:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.3);
}

/* Header Styles */
.site-header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--theme-transition);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.nav-links a:not(.btn):hover {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Search Styles */
.search-wrapper {
    position: relative;
    width: 200px;
}

#siteSearchInput {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--color-border);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
}

#siteSearchInput:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.1);
    width: 240px;
}

.search-results-overlay {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: var(--color-surface);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    padding: 1rem;
}

.search-category h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.25rem;
    margin-top: 1rem;
}

.search-category:first-child h4 {
    margin-top: 0;
}

.search-result-item {
    display: block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-main);
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--color-background);
    color: var(--color-secondary);
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .search-nav-item {
        width: 100%;
        margin: 1rem 0;
    }

    .search-wrapper {
        width: 100%;
    }

    #siteSearchInput:focus {
        width: 100%;
    }

    .search-results-overlay {
        width: 100%;
        left: 0;
        position: static;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid var(--color-border);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
    }

    .nav-links.active {
        right: 0;
        /* Visible */
    }

    /* Mobile Menu Animation for Hamburger */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links a:not(.btn) {
        font-size: 1.1rem;
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }
}

/* Hero Section */
/* Hero Section */
.hero {
    padding: var(--spacing-md) 0 var(--spacing-lg);
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    opacity: 0.1;
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
    background: rgba(14, 165, 164, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.hero h1 span {
    color: var(--color-secondary);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 480px;
}

/* ... existing code ... */

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: radial-gradient(circle at center, rgba(14, 165, 164, 0.15), rgba(16, 185, 129, 0.05));
    filter: blur(40px);
    z-index: -1;
}

.ai-icon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-icon-grid span {
    font-size: 2.5rem;
    text-align: center;
    background: var(--color-background);
    padding: 1rem;
    border-radius: 1rem;
}

.visual-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Small decorative line for stats */
.stat-item::before {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

/* Responsive Hero */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
        border-top: none;
        /* Remove border on center layout */
    }

    .stat-item {
        align-items: center;
    }

    .stat-item::before {
        display: none;
        /* Hide line on mobile for cleaner center look */
    }

    .hero-visual {
        margin-top: var(--spacing-md);
    }
}

/* --- New Sections Styles --- */

/* General Section Styles */
.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: #F1F5F9;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Card Styles */
.card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    transition: var(--theme-transition), transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.link-arrow {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.link-arrow:hover {
    color: var(--color-accent);
}

/* Tutorial Card */
.tutorial-card {
    background: var(--color-surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    box-shadow: var(--shadow-md);
}

.tutorial-content {
    padding: 2rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #E0F2FE;
    color: #0284C7;
    border-radius: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tutorial-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tutorial-card p {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* Prompts Grid */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.prompt-card {
    background: #1E293B;
    color: #E2E8F0;
    padding: 2rem 1.5rem;
    border-radius: 0.75rem;
    position: relative;
    border: 1px solid #334155;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.prompt-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    background: #1e2945;
}

.prompt-card code {
    display: block;
    font-family: 'Inter', monospace;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-style: italic;
    line-height: 1.5;
}

.prompt-category {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.prompt-copy-hint {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 0.65rem;
    color: #64748B;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prompt-card:hover .prompt-copy-hint {
    opacity: 1;
}

.text-center {
    text-align: center;
}

.mt-md {
    margin-top: var(--spacing-md);
}

/* Newsletter Section */
.section-newsletter {
    padding-bottom: var(--spacing-xl);
}

.newsletter-box {
    background: var(--color-primary);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    color: white;
    background-image: var(--newsletter-bg);
}

.newsletter-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: #94A3B8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text-main);
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    border-color: var(--color-secondary);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-box {
        padding: 2rem;
    }
}

/* --- Comparisons Page Styles --- */

.page-header {
    background: var(--color-surface);
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.filters-section {
    margin-bottom: 2rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.filter-btn {
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-family: var(--font-ui);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.filter-btn.active {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* Theme Toggle Button Styles */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--color-primary);
    background: var(--color-background);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

.pt-0 {
    padding-top: 0;
}

/* Detailed Comparison Card */
.comparison-card {
    background: var(--color-surface);
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.comparison-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--color-secondary);
}

.comp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.comp-icon {
    font-size: 2.5rem;
}

.comp-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

/* Badge Variants */
.badge-text {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-image {
    background-color: #FCE7F3;
    color: #9D174D;
}

.badge-video {
    background-color: #FAE8FF;
    color: #86198F;
}

.badge-code {
    background-color: #E0E7FF;
    color: #3730A3;
}

.badge-marketing {
    background-color: #FFEDD5;
    color: #9A3412;
}

.badge-business {
    background-color: #F1F5F9;
    color: #475569;
}

.badge-freemium {
    background-color: #DCFCE7;
    color: #166534;
}

.badge-paid {
    background-color: #FEE2E2;
    color: #991B1B;
}

.comparison-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.comp-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.comp-specs {
    background: #F8FAFC;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-item .label {
    color: var(--color-text-secondary);
}

.spec-item .value {
    font-weight: 600;
    color: var(--color-primary);
}

.full-width {
    width: 100%;
}

/* Footer Styles */
.site-footer {
    background-color: #0F172A;
    color: #94A3B8;
    padding: 4rem 0 2rem;
    border-top: 1px solid #1E293B;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.brand-col p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94A3B8;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: white;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Page Specific Responsiveness */
@media (max-width: 600px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .filter-bar {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        flex-wrap: nowrap;
    }
}

/* --- AdSense Placeholders --- */
.ad-container {
    width: 100%;
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-slot {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Homepage Expansion --- */

/* Categories Section */
.categories-section {
    padding: var(--spacing-lg) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.category-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Tool of the Week */
/* Tool of the Week */
.tool-week-wrapper {
    padding: var(--spacing-lg) 0;
}

.tool-week-section {
    padding: 0;
    /* Premium Dark Gradient with more Green */
    background: linear-gradient(135deg, #0f172a 0%, #0ea5a9 50%, #10b981 100%);
    border-radius: 2rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Abstract Background Shapes */
.tool-week-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.tool-week-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    position: relative;
    z-index: 2;
}

.tool-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.02em;
}

.tool-info p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.tool-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tool-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.tool-features li i,
.tool-features li svg {
    color: #4ade80;
    /* Green check */
}

.tool-image {
    position: relative;
    perspective: 1000px;
}

.tool-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-image:hover img {
    transform: rotateY(0) rotateX(0) scale(1.02);
}

/* Latest News */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-image {
    height: 200px;
    background-color: #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-primary);
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-item[open] p {
    border-top-color: #e2e8f0;
    padding-top: 1rem;
}

@media(max-width: 768px) {
    .tool-week-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .tool-image img {
        transform: rotate(0deg);
    }
}

/* --- Article Layout --- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    /* Sidebar fixed width */
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.article-container {
    min-width: 0;
    /* Prevent overflow */
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

.article-meta {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.article-featured-image {
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.article-body h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
}

.article-body h3 {
    font-size: 1.6rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.article-body p {
    margin-bottom: 1.75rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body blockquote {
    font-style: italic;
    font-size: 1.25rem;
    border-left: 4px solid var(--color-accent);
    padding: 1rem 2rem;
    margin: 2.5rem 0;
    background: #F8FAFC;
    color: #475569;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.article-body .lead {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-primary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: var(--color-text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.widget-list {
    list-style: none;
    padding: 0;
}

.widget-list li {
    margin-bottom: 1rem;
}

.widget-list a {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.widget-list a:hover {
    color: var(--color-primary);
}

.widget-list .number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
}

@media(max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 2rem;
    }
}

.share-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.share-section h4 {
    margin-bottom: 1rem;
}

.social-share-links {
    display: flex;
    gap: 1rem;
}

.btn-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
}

.btn-x {
    background: #000;
}

.btn-linkedin {
    background: #0077b5;
}

.btn-facebook {
    background: #1877f2;
}

/* Search Bar Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    font-size: 1rem;
    color: var(--color-text-main);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.1);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #94a3b8;
}

/* Related Articles Section */
.related-articles-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.related-articles-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1100px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Breakpoint removed or handled above */

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-secondary);
}

.related-card-image {
    aspect-ratio: 16 / 9;
    height: auto;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.related-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover .related-card-image::after {
    opacity: 1;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-card:hover .related-card-image img {
    transform: scale(1.1);
}

.related-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.related-card-content h4 {
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--color-primary);
    margin: 0;
    font-weight: 700;
}

.related-card-content .date {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-accent);
}

#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}