/* CSS Variables */
:root {
    --background-color: #f5f5f7;
    --text-color: #1d1d1f;
    --card-background: white;
    --primary-color: #f84545;
    --primary-hover: #a62a2a;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --secondary-color: #86868b;
    --border-color: #d2d2d7;
    --link-color: #ff4444;
    --link-hover-color: #ff6666;
}

[data-theme="dark"] {
    --background-color: #1d1d1f;
    --text-color: #f5f5f7;
    --card-background: #2d2d2f;
    --primary-color: #f84545;
    --primary-hover: #a62a2a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --secondary-color: #a1a1a6;
    --border-color: #424245;
}

[data-theme="pitch-dark"] {
    --background-color: #000000;
    --text-color: #e5e5e5;
    --card-background: #000000;
    --primary-color: #f84545;
    --primary-hover: #a62a2a;
    --shadow-color: rgba(200, 200, 200, 0.1);
    --secondary-color: #888888;
    --border-color: #333333;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;

}

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

.blog-post {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-meta {
    display: flex;
    gap: 24px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 24px 0;
    text-align: left;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--text-color);
    line-height: 1.8;
    text-align: left;
}

.blog-content p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.blog-header {
    margin-bottom: 48px;
    text-align: left;
    padding: 0;
}

.blog-header h1 {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: left;
}

.blog-section {
    margin-bottom: 40px;
}

.blog-section h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.blog-section h3 {
    color: var(--text-color);
    margin: 25px 0 15px;
    font-size: 1.4em;
}

.blog-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.method-card {
    background: var(--card-background);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 5px var(--shadow-color);
    text-align: left;
}

.method-card h3 {
    margin-top: 0;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    text-align: left;
}

.pros, .cons {
    background: var(--card-background);
    padding: 20px;
    border-radius: 8px;
}

.pros h4, .cons h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.pros ul, .cons ul {
    margin: 0;
    padding-left: 24px;
    color: var(--text-color);
}
.method-card ul {
    margin: 0;
    padding-left: 24px;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background: var(--link-color);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--link-hover-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.note {
    background: var(--card-background);
    border-left: 4px solid var(--link-color);
    padding: 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    text-align: left;
}

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

/* Responsive Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--card-background);
    box-shadow: 0 2px 5px var(--shadow-color);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9rem;
}

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

table th {
    background: var(--background-color);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

table td {
    color: var(--text-color);
}

/* Dark Theme Table Support */
[data-theme="dark"] table,
[data-theme="pitch-dark"] table {
    background: var(--card-background);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] table th,
[data-theme="pitch-dark"] table th {
    background: var(--background-color);
    border-color: var(--border-color);
}

[data-theme="dark"] table td,
[data-theme="pitch-dark"] table td {
    border-color: var(--border-color);
}

.comparison-table {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
    -webkit-overflow-scrolling: touch;
}

.comparison-table table {
    min-width: 600px;
    margin: 0;
    box-shadow: none;
}

/* Scroll Indicator for Tables (Mobile Only) */
.comparison-table::after {
    content: "← Scroll horizontally →";
    display: none;
    text-align: center;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.blog-tag {
    background: var(--background-color);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.9rem;
}

.blog-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.blog-nav-button {
    background: var(--card-background);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.blog-nav-button:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .blog-content {
        padding: 0 16px;
    }
    
    .method-card {
        padding: 20px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .container {
        padding-top: 64px;
    }
    
    .main-nav {
        padding: 12px 16px;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Table Styles */
    table {
        font-size: 0.8rem;
    }
    
    table th,
    table td {
        padding: 8px;
    }
    
    .comparison-table {
        margin: 1rem -16px;
        border-radius: 0;
    }
    
    .comparison-table table {
        min-width: 500px;
    }
    
    .comparison-table::after {
        display: block;
    }
}

/* Reading Progress Bar */
#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
    background: var(--background-color);
}

#reading-progress {
    height: 100%;
    width: 0;
    background: var(--link-color);
    transition: width 0.1s ease;
}

/* Main Navigation */
.main-nav {
    background: var(--card-background);
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
}

.nav-logo img {
    width: 32px;
    height: 32px;
}

.nav-logo span {
    font-size: 1.2rem;
}

.watch-button {
    background: var(--link-color);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.watch-button:hover {
    background: var(--link-hover-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Adjust content padding to account for fixed header */
.container {
    padding-top: 80px;
    padding-bottom: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.cta-button-small {
    background: var(--link-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cta-button-small:hover {
    background: var(--link-hover-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Table of Contents */
.toc-sidebar {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 250px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.toc-container {
    padding: 1rem;
    text-align: left;
}

.toc-container h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

#TableOfContents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#TableOfContents li {
    margin: 0.5rem 0;
}

#TableOfContents a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

#TableOfContents a:hover {
    color: var(--link-color);
}

/* Share Buttons */
.share-buttons {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.share-buttons h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-color);
}

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

.social-share a {
    color: var(--link-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

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

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Meta Items */
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--secondary-color);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--link-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: all 0.3s ease;
}

#backToTop:hover {
    background: var(--link-hover-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-background);
    padding: 1rem;
    display: none;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 5px var(--shadow-color);
    z-index: 1000;
    text-align: left;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-consent a {
    color: var(--link-color);
    text-decoration: none;
}

#accept-cookies {
    background: var(--link-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accept-cookies:hover {
    background: var(--link-hover-color);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer Improvements */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px 0;
    text-align: left;
   
}

.footer-section h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section ul a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--link-color);
}

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

.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--link-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: left;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-background);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px var(--shadow-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .toc-sidebar {
        display: none;
    }
    
    .blog-content {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .cookie-consent {
        flex-direction: column;
        gap: 1rem;
        text-align: left;
    }
}

/* Base responsive typography */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Header & Navigation */
    .main-nav {
        padding: 10px 16px;
    }

    .nav-container {
        flex-direction: row;
        gap: 12px;
    }

    .nav-logo span {
        font-size: 1.1rem;
    }

    .nav-logo img {
        width: 28px;
        height: 28px;
    }

    .watch-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Blog Header */
    .blog-header h1 {
        font-size: 1.8em;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .breadcrumbs {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 8px;
        margin: 16px 0;
        font-size: 0.85rem;
    }

    /* Content */
    .blog-content {
        padding: 0 16px;
        line-height: 1.6;
    }

    .blog-section {
        margin-bottom: 32px;
    }

    .blog-section h2 {
        font-size: 1.5em;
        margin-bottom: 16px;
    }

    .blog-section h3 {
        font-size: 1.2em;
        margin: 20px 0 12px;
    }

    .blog-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    /* Cards and Components */
    .method-card {
        padding: 16px;
        margin: 16px 0;
    }

    .pros, .cons {
        padding: 16px;
    }

    .pros h4, .cons h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .pros ul, .cons ul, .method-card ul {
        padding-left: 20px;
        font-size: 0.9rem;
    }

    .pros ul li, .cons ul li, .method-card ul li {
        margin-bottom: 6px;
    }

    .note {
        padding: 16px;
        margin: 20px 0;
        font-size: 0.9rem;
    }

    /* Buttons */
    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin: 16px 0;
        width: 100%;
        text-align: center;
    }

    /* Table of Contents */
    .toc-container {
        padding: 12px;
    }

    .toc-container h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    #TableOfContents a {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-content {
        gap: 24px;
        padding: 24px 16px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }

    .footer-section ul li {
        margin: 6px 0;
    }

    .social-links a {
        font-size: 1.3rem;
    }

    .footer-bottom {
        padding: 16px;
        font-size: 0.85rem;
    }

    /* Cookie Consent */
    .cookie-consent {
        padding: 12px 16px;
    }

    .cookie-consent p {
        font-size: 0.85rem;
    }

    #accept-cookies {
        padding: 8px 16px;
        font-size: 0.85rem;
        width: 100%;
        margin-top: 8px;
    }

    /* Back to Top Button */
    #backToTop {
        width: 36px;
        height: 36px;
        bottom: 16px;
        right: 16px;
    }

    #backToTop i {
        font-size: 0.9rem;
    }

    /* Toast */
    .toast {
        padding: 12px 16px;
        font-size: 0.85rem;
        max-width: 90%;
    }

    /* Container Spacing */
    .container {
        padding-top: 56px;
        padding-bottom: 24px;
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Small phones */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .blog-header h1 {
        font-size: 1.8rem;
    }

    .method-card, .pros, .cons {
        padding: 1.5rem;
    }

    .blog-content {
        padding: 0 15px;
    }

    table {
        font-size: 12px;
    }
    table th,
    table td {
        padding: 6px;
    }
    .comparison-table {
        margin: 0 -15px;
    }
    .comparison-table table {
        font-size: 11px;
    }
}

/* SEO and Accessibility Enhancements */
.article-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.article-tags {
    margin-bottom: 24px;
}

.article-tags a {
    display: inline-block;
    background: var(--background-color);
    color: var(--link-color);
    padding: 4px 12px;
    border-radius: 16px;
    margin: 4px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--link-color);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-container {
    text-align: center;
    margin: 40px 0;
    padding: 24px;
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.cta-subtext {
    margin-top: 12px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Accessibility Improvements */
:focus {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--link-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
}

.skip-to-content:hover,
.skip-to-content:focus {
    background-color: var(--link-hover-color);
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Print Styles */
@media print {
    .main-nav,
    .toc-sidebar,
    .social-share,
    #backToTop,
    .cookie-consent {
        display: none !important;
    }

    .blog-content {
        margin: 0;
        padding: 0;
    }

    .blog-header h1 {
        font-size: 24pt;
        margin-bottom: 12pt;
    }

    .blog-meta {
        font-size: 10pt;
        color: #666;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }
}

.extension-list,
.resource-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.extension-list li,
.resource-list li {
    margin-bottom: 16px;
    padding: 12px;
    background: var(--background-color);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.extension-list li:hover,
.resource-list li:hover {
    transform: translateX(4px);
}

.extension-list a,
.resource-list a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.extension-list a:hover,
.resource-list a:hover {
    color: var(--link-hover-color);
}

.extension-list strong {
    display: inline-block;
    margin-bottom: 4px;
}

/* External Link Indicators */
a[target="_blank"]:not(.cta-button):after {
    content: "\f08e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 4px;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .extension-list li,
    .resource-list li {
        padding: 10px;
        margin-bottom: 12px;
    }

    .extension-list a,
    .resource-list a {
        font-size: 0.9rem;
    }
}

/* Link Color Variables */
:root {
    --link-color: #ff4444;
    --link-hover-color: #ff6666;
}

/* Global Link Styles */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
}

/* Navigation Links */
.nav-logo a {
    color: var(--text-color);
}

.nav-links a:hover,
.nav-logo a:hover span {
    color: var(--link-color);
}

/* Table of Contents Links */
#TableOfContents a:hover {
    color: var(--link-color);
}

/* Breadcrumb Links */
.breadcrumbs a {
    color: var(--secondary-color);
}

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

/* Footer Links */
.footer-section ul a {
    color: var(--text-color);
}

.footer-section ul a:hover,
.social-links a:hover {
    color: var(--link-color);
}

/* Extension and Resource Links */
.extension-list a,
.resource-list a {
    color: var(--link-color);
    font-weight: 500;
}

.extension-list a:hover,
.resource-list a:hover {
    color: var(--link-hover-color);
}

/* Article Tags */
.article-tags a {
    background: var(--background-color);
    color: var(--link-color);
}

.article-tags a:hover {
    background: var(--link-color);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Social Share Links */
.social-share a {
    color: var(--link-color);
}

.social-share a:hover {
    color: var(--link-hover-color);
}

/* Cookie Consent Links */
.cookie-consent a {
    color: var(--link-color);
}

.cookie-consent a:hover {
    color: var(--link-hover-color);
}

/* CTA Buttons */
.cta-button,
.watch-button,
.cta-button-small,
#accept-cookies,
#backToTop {
    background: var(--link-color);
    color: white;
    transition: all 0.3s ease;
}

.cta-button:hover,
.watch-button:hover,
.cta-button-small:hover,
#accept-cookies:hover,
#backToTop:hover {
    background: var(--link-hover-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Override any global link hover colors for buttons */
a.cta-button:hover,
a.watch-button:hover,
a.cta-button-small:hover {
    color: white !important;
    text-decoration: none;
}

/* Reading Progress Bar */
#reading-progress {
    background: var(--link-color);
}

/* Note Border */
.note {
    border-left: 4px solid var(--link-color);
}

/* Focus Outline */
:focus {
    outline: 2px solid var(--link-color);
}

/* Skip to Content */
.skip-to-content {
    background-color: var(--link-color);
    color: white;
    transition: all 0.3s ease;
}

.skip-to-content:hover,
.skip-to-content:focus {
    background-color: var(--link-hover-color);
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add minimal hero sections and consistent components at the top */
/* Hero Sections - Minimal Design */
.hero-section,
.education-hero, 
.android-hero,
.vanced-hero,
.hero-premium {
    text-align: center;
    padding: 2rem 1rem;
    margin: 0 auto 3rem auto;
    max-width: 800px;
}

.hero-section h1,
.education-hero h1,
.android-hero h1, 
.vanced-hero h1,
.hero-premium h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section .lead,
.education-hero .lead,
.android-hero .lead,
.vanced-hero .lead, 
.hero-premium .lead {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Remove gradients and heavy styling */
.education-hero,
.android-hero,
.vanced-hero,
.hero-premium {
    color: var(--text-color);
    background: linear-gradient(230deg, rgba(248, 69, 69, 0.41) -39%, rgba(255, 255, 255, 1) 34%);
    color: var(--text-color);
    border-radius: 1rem;
    padding: 2rem;
}

.education-hero .lead,
.android-hero .lead,
.vanced-hero .lead,
.hero-premium .lead {
    color: var(--secondary-color);
}

/* CTA Boxes - Minimal Design */
.cta-box,
.cta-container {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: auto;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.cta-box h3,
.cta-container h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.cta-box p,
.cta-container p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Feature Cards - Minimal Design */
.feature-card,
.benefit-card,
.alternative-card,
.savings-highlight {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.benefit-card:hover,
.alternative-card:hover,
.savings-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-color);
}

.feature-card h3,
.benefit-card h3,
.alternative-card h3,
.savings-highlight h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p,
.benefit-card p,
.alternative-card p,
.savings-highlight p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Remove gradients and heavy styling from feature cards */
.learning-benefits,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Teacher Tools - Minimal Design */
.teacher-tools {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.teacher-tools h2,
.teacher-tools h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.teacher-tools p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Channel Showcase - Minimal Design */
.channel-showcase {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.channel-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

/* FAQ Items - Minimal Design */
.faq-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
    padding: 0 1.5rem;
}

.faq-item:hover {
    box-shadow: 0 4px 16px var(--shadow-color);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--shadow-color);
}

.faq-question h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-toggle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
}

.theme-toggle button {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-toggle button:hover {
    background: var(--shadow-color);
    transform: translateY(-1px);
}

/* Remove heavy styling from existing components */
.research-section,
.use-cases,
.productivity-stats {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.stat-card,
.summary-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.2s ease;
}

.stat-card:hover,
.summary-card:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

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

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Blog Index Page Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: linear-gradient(230deg, rgba(248, 69, 69, 0.41) -39%, rgba(255, 255, 255, 1) 34%);

    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.blog-card h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card h2 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: var(--link-color);
}

.blog-excerpt {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-tag {
    background: var(--background-color);
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: var(--link-color);
    color: white;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.search-box {
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--card-background);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-color: var(--link-color);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: var(--card-background);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    cursor: pointer;
}

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

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Blog Index Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

    .categories {
        gap: 0.5rem;
    }

    .category-filter {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Related Articles Section */
.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.related-articles h3 {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.8rem;
}

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

.related-card {
    background: linear-gradient(230deg, rgba(248, 69, 69, 0.41) -39%, rgba(255, 255, 255, 1) 34%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.related-card h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.related-card h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.related-card h4 a:hover {
    color: var(--link-color);
}

.related-card p {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.related-card .tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.related-card .tag {
    background: var(--background-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.related-card .read-link {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.related-articles .view-all {
    text-align: center;
    margin-top: 2rem;
}

.related-articles .view-all a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--link-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.related-articles .view-all a:hover {
   
    transform: translateY(-2px);
}

/* Dark theme adjustments for related cards */
[data-theme="dark"] .related-card {
    background: linear-gradient(230deg, rgba(248, 69, 69, 0.3) -39%, var(--card-background) 34%);
}

[data-theme="pitch-dark"] .related-card {
    background: linear-gradient(230deg, rgba(248, 69, 69, 0.2) -39%, var(--card-background) 34%);
}

/* Mobile responsive for related articles */
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-articles h3 {
        font-size: 1.5rem;
    }
    
    .related-card {
        padding: 1.2rem;
    }
    
    .related-card h4 {
        font-size: 1rem;
    }
} 