/*
Theme Name: Apkbaba Premium
Theme URI: https://apkbaba.net
Author: Apkbaba Team
Description: Professional Android Asset Optimizer with Light/Dark Theme
Version: 9.2.0
Text Domain: apkbaba
*/

/* ===================================
   LIGHT MODE (DEFAULT)
   =================================== */
:root {
    /* Primary Colors - Professional Green */
    --primary: #00c853;
    --primary-dark: #00a844;
    --primary-light: #e8f5e9;
    --primary-gradient: linear-gradient(135deg, #00c853 0%, #00a844 100%);

    /* Background Colors */
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-surface: #fafbfc;
    --bg-input: #f5f6f7;
    --bg-code: #1e1e1e;
    --bg-highlight: #fffbea;

    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --text-code: #e0e0e0;

    /* Border Colors */
    --border: #dee2e6;
    --border-light: #e9ecef;
    --border-dark: #ced4da;

    /* Shadows - More professional */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Layout */
    --max-width: 1200px;
    --max-width-content: 800px;
    --header-height: 70px;

    /* Transitions */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* ===================================
   DARK MODE
   =================================== */
[data-theme="dark"] {
    --bg-body: #0a0a0a;
    --bg-card: #141414;
    --bg-surface: #1a1a1a;
    --bg-input: #1e1e1e;
    --bg-code: #000000;

    --text-dark: #ffffff;
    --text-main: #e0e0e0;
    --text-muted: #9e9e9e;
    --text-light: #666666;

    --border: #2a2a2a;
    --border-light: #333333;

    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0.75em;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.25em;
    line-height: 1.75;
}

strong,
b {
    font-weight: 600;
}

em,
i {
    font-style: italic;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Lists */
ul,
ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

/* Code */
code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-surface);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

pre {
    background: var(--bg-code);
    color: var(--text-code);
    padding: 1.25em;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1.5em;
    border: 1px solid var(--border);
}

pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--primary);
    padding: 1em 1.5em;
    margin: 1.5em 0;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-muted);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* ===================================
   LAYOUT
   =================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

main {
    flex: 1;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition), border var(--transition);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-bracket {
    color: var(--primary);
    font-weight: 400;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-dark);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
}

.theme-toggle:hover {
    background: var(--bg-surface);
    border-color: var(--primary);
    color: var(--primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* ===================================
   HOMEPAGE: HERO & TOOL
   =================================== */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

[data-theme="dark"] .hero-badge {
    background: rgba(0, 200, 83, 0.15);
    color: var(--primary);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 700px;
    margin: 0 auto 48px;
    box-shadow: var(--shadow);
}

.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-surface);
    transition: all var(--transition);
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
}

[data-theme="dark"] .drop-zone:hover,
[data-theme="dark"] .drop-zone.dragover {
    background: rgba(0, 200, 83, 0.05);
}

.drop-zone input {
    display: none;
}

.drop-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.7;
}

.drop-zone h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Options */
.tool-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.option-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.option-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    appearance: none;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.btn-process {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background var(--transition);
}

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

.btn-process:disabled {
    background: var(--border);
    color: var(--text-light);
    cursor: not-allowed;
}

.status-log {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-log.success {
    color: var(--primary);
}

.status-log.error {
    color: #e53935;
}

/* ===================================
   HOMEPAGE: STATS & FEATURES
   =================================== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 64px;
    padding: 0 20px;
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.features-section {
    max-width: var(--max-width);
    margin: 0 auto 64px;
    padding: 0 20px;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
}

[data-theme="dark"] .feature-icon-wrapper {
    background: rgba(0, 200, 83, 0.15);
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* How It Works */
.how-it-works {
    max-width: var(--max-width);
    margin: 0 auto 64px;
    padding: 0 20px;
}

.steps-container {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.step {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
    padding-top: 40px;
}

/* ===================================
   HOMEPAGE: ADSENSE CONTENT SECTION
   =================================== */
.content-section {
    max-width: 750px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 48px 0 20px;
}

.content-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 32px 0 16px;
}

.content-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 24px 0 12px;
}

.content-section p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.content-section ul {
    margin: 0 0 24px 24px;
    color: var(--text-muted);
}

.content-section li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Code Snippets */
.content-section code {
    background: var(--bg-surface);
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--primary-dark);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.code-block {
    display: block;
    background: var(--bg-code);
    color: var(--text-code);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 20px 0 32px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

/* Density Table */
.density-table {
    margin: 32px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.density-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.density-row:last-child {
    border-bottom: none;
}

.density-row.header {
    background: var(--bg-surface);
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.density-row span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.faq-item h4 {
    margin-top: 0;
    color: var(--text-dark);
}

.divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 60px 0;
}

/* ===================================
   INNER PAGES (ABOUT, PRIVACY, CONTACT)
   =================================== */
/* Header for inner pages */
.page-header {
    text-align: center;
    padding: 60px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Content for inner pages */
.page-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

.page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.page-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 28px 0 12px;
}

.page-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    margin: 0 0 20px 24px;
    color: var(--text-muted);
}

.page-content li {
    margin-bottom: 8px;
}

.page-content strong {
    color: var(--text-dark);
}

.page-content a {
    color: var(--primary);
    text-decoration: underline;
}

.page-content a:hover {
    color: var(--primary-dark);
}

/* Info Box (Used in About/Privacy) */
.info-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 24px 0;
}

.info-box p {
    margin: 0;
    color: var(--text-main);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 0 auto 48px;
}

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

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

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

/* ===================================
   404 ERROR PAGE
   =================================== */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
}

.btn-home {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: #000;
    border-radius: var(--radius-md);
    font-weight: 600;
    margin-top: 24px;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.copyright {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ===================================
   COOKIE BANNER
   =================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-accept {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
}

/* ===================================
   BLOG SYSTEM
   =================================== */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding: 12px 0;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--text-light);
    user-select: none;
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Single Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.post-header {
    margin-bottom: 32px;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.post-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .post-category {
    background: rgba(0, 200, 83, 0.15);
    color: var(--primary);
}

.post-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.reading-time::before {
    content: "📖";
    font-size: 0.9em;
}

.post-thumbnail {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

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

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 36px 0 16px;
}

.post-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 28px 0 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px 24px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--primary-dark);
}

.post-content code {
    background: var(--bg-surface);
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-dark);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.post-content pre {
    background: var(--bg-code);
    color: var(--text-code);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-surface);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-muted);
}

.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

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

.post-tags strong {
    color: var(--text-dark);
    margin-right: 8px;
}

.post-tags a {
    display: inline-block;
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all var(--transition);
}

.post-tags a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.share-buttons {
    margin-bottom: 32px;
}

.share-buttons strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.share-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 8px;
    transition: all var(--transition);
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-btn.linkedin {
    background: #0A66C2;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.author-bio {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.author-bio h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.author-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    max-width: 80px;
}

.author-details h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.author-details p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid var(--border);
}

.related-posts h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: center;
}

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

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.related-thumbnail {
    display: block;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform var(--transition);
}

.related-card:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.related-content h3 a:hover {
    color: var(--primary);
}

.related-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.read-more {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Archive Pages */
.archive-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
}

.archive-header {
    grid-column: 1 / -1;
    margin-bottom: 24px;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.archive-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.archive-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-count {
    font-weight: 600;
    color: var(--text-dark);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.post-card-thumbnail {
    display: block;
    overflow: hidden;
    height: 220px;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.08);
}

.post-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.post-card-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

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

.post-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.post-card-footer .reading-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.read-more-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Blog Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

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

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

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    padding: 8px 0;
    transition: color var(--transition);
}

.category-list a:hover {
    color: var(--primary);
}

.category-list .count {
    font-size: 0.85rem;
    color: var(--text-light);
}

.popular-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-posts li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.popular-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.popular-posts a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.popular-posts a:hover {
    color: var(--primary);
}

.popular-posts time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag {
    display: inline-block;
    background: var(--bg-surface);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.tag-cloud .tag:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Pagination */
.pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition);
}

.pagination li a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.pagination li.active span {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Blog Home Page */
.blog-home {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.blog-home-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-home-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.blog-home-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow);
}

.featured-thumbnail {
    display: block;
    overflow: hidden;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    width: fit-content;
}

.featured-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.featured-content h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.featured-content h2 a:hover {
    color: var(--primary);
}

.featured-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.featured-meta .separator {
    color: var(--text-light);
}

.button {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    width: fit-content;
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: center;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    margin-top: 64px;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}

.newsletter-content p {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 24px;
}

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

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: white;
}

.newsletter-form button {
    background: #000;
    color: var(--primary);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .archive-page {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
        width: 100%;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .tool-options {
        grid-template-columns: 1fr;
    }

    .density-table {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .density-row {
        min-width: 500px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-content {
        padding: 24px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 16px 32px;
    }

    .tool-card {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .category-tabs {
        justify-content: flex-start;
    }
}

/* ===================================
   ADSENSE AD ZONES
   =================================== */
.ad-container {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-md);
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container::before {
    content: 'Advertisement';
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ad Sizes */
.ad-leaderboard {
    min-height: 90px;
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

.ad-rectangle {
    min-height: 250px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.ad-banner {
    min-height: 60px;
    max-width: 468px;
    margin-left: auto;
    margin-right: auto;
}

.ad-sidebar {
    min-height: 600px;
    max-width: 160px;
}

/* ===================================
   PROFESSIONAL ENHANCEMENTS
   =================================== */

/* Improved Buttons */
.btn,
button:not(.theme-toggle):not(.tab-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: #000;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover,
button:not(.theme-toggle):not(.tab-btn):hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active,
button:not(.theme-toggle):not(.tab-btn):active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Improved Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

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

/* Content Sections */
.content-section {
    margin-bottom: var(--spacing-2xl);
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Info Boxes */
.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

.info-box h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-xl) 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead {
    background: var(--bg-surface);
}

th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border);
}

td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: var(--bg-surface);
}

/* Dividers */
hr,
.divider {
    border: none;
    height: 1px;
    background: var(--border);
    margin: var(--spacing-2xl) 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.75em;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-dark);
}

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

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary);
    color: #000;
}

::-moz-selection {
    background: var(--primary);
    color: #000;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .theme-toggle,
    .ad-container,
    .newsletter-section {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    .post-content,
    .page-content {
        max-width: 100%;
    }
}

/* ===================================
   HOMEPAGE ENHANCEMENTS
   =================================== */

/* Section Titles */
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.view-all-link {
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition);
}

.view-all-link:hover {
    transform: translateX(4px);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* How It Works */
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: all var(--transition);
}

.step-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: #000;
    font-size: 1.75rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.step-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.step-item p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.blog-post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.blog-post-card .post-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.blog-post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.post-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    padding: 0.25em 0.75em;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.resource-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-decoration: none;
    display: block;
    transition: all var(--transition);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.resource-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.resource-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.resource-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.resource-card:hover .resource-link {
    transform: translateX(4px);
    display: inline-block;
}

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: var(--spacing-xl);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: #000;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* ===================================
   BLOG HOME PAGE - MODERN REDESIGN
   =================================== */

.blog-home-page {
    background: var(--bg-body);
    padding: var(--spacing-2xl) 0;
    min-height: 100vh;
}

.blog-home-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
}

.blog-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Post Card */
.featured-post-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-2xl);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    transition: all var(--transition);
}

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

.featured-post-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.featured-post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.featured-badge {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
    box-shadow: var(--shadow);
}

.featured-post-content {
    padding: var(--spacing-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-content .post-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    width: fit-content;
}

.featured-post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

.featured-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition);
}

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

.featured-post-excerpt {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.featured-post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.meta-separator {
    color: var(--border);
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary);
    color: #000;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
    width: fit-content;
    box-shadow: var(--shadow-sm);
}

.btn-read-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #000;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--spacing-lg) 0;
}

.filter-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* Latest Posts Section */
.latest-posts-section {
    margin-top: var(--spacing-2xl);
}

.latest-posts-section .section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.blog-post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.blog-post-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-surface);
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-post-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.blog-post-header .post-category {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.post-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--spacing-sm);
}

.blog-post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition);
}

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

.blog-post-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
    font-size: 0.9375rem;
}

.blog-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.blog-post-footer .reading-time {
    font-size: 0.875rem;
    color: var(--text-light);
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

/* Pagination */
.blog-pagination {
    margin-top: var(--spacing-2xl);
    display: flex;
    justify-content: center;
}

.blog-pagination ul {
    display: flex;
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--spacing-md);
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.blog-pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.blog-pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

/* No Posts */
.no-posts {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.no-posts p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Blog Page Responsive */
@media (max-width: 1024px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.25rem;
    }

    .blog-subtitle {
        font-size: 1.0625rem;
    }

    .featured-post-title {
        font-size: 1.5rem;
    }

    .featured-post-content {
        padding: var(--spacing-xl);
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .blog-filters {
        justify-content: flex-start;
    }
}

/* ===================================
   ABOUT PAGE - PROFESSIONAL DESIGN
   =================================== */

.about-page {
    background: var(--bg-body);
    padding: var(--spacing-2xl) 0;
    min-height: 100vh;
}

.about-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* About Hero */
.about-hero {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    margin-bottom: var(--spacing-2xl);
    border-bottom: 2px solid var(--border-light);
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Sections */
.about-section {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.section-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.lead-text {
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: var(--spacing-md);
}

.about-section p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* Highlight Box */
.highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
    font-size: 1.0625rem;
}

.highlight-box strong {
    color: var(--primary-dark);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.tech-card {
    background: var(--bg-surface);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.tech-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.tech-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Green Section */
.green-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid var(--primary);
}

.green-content {
    text-align: center;
}

.green-section p {
    color: var(--text-dark);
}

/* Trust Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.trust-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.trust-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.trust-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.trust-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* About CTA */
.about-cta {
    text-align: center;
    padding: var(--spacing-2xl);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border);
    margin-top: var(--spacing-2xl);
}

.about-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.about-cta p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles - FIX WHITE COLOR */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--primary);
    color: #000 !important;
    /* Black text on green background */
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #000 !important;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-dark) !important;
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* About Page Responsive */
@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .about-section {
        padding: var(--spacing-xl);
    }

    .about-section h2 {
        font-size: 1.75rem;
    }

    .tech-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}