/* Flameberry - Modern File Conversion Service */
/* CSS Stylesheet */

:root {
    --primary: #FF6B35;
    --primary-dark: #E8401C;
    --gradient: linear-gradient(135deg, #FF6B35, #E8401C);
    --bg: #F8F9FA;
    --white: #FFFFFF;
    --text: #1A1A2E;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(255,107,53,0.25);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ============= Typography ============= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul, ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ============= Navigation Bar ============= */

.navbar {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.navbar-brand {
    flex: 0 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
}

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

.logo-text {
    color: var(--primary);
}

.navbar-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.navbar-auth {
    flex: 0 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ============= Buttons ============= */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

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

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

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

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============= Hero Section ============= */

.hero {
    background: linear-gradient(135deg, #FF6B35 0%, #E8401C 100%);
    color: var(--white);
    padding: 60px 2rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    background: rgba(255,255,255,0.95);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* ============= Stats Bar ============= */

.stats-bar {
    background: var(--white);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem 0;
}

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

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

/* ============= Category Sections ============= */

.category-section {
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--border);
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-title {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--text);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* ============= Tool Cards ============= */

.tool-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

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

.tool-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.tool-name {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text);
}

.tool-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-grow: 1;
}

/* ============= Upload Zone ============= */

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: rgba(255,107,53,0.02);
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(255,107,53,0.05);
}

.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(255,107,53,0.1);
    transform: scale(1.02);
}

.upload-content {
    width: 100%;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-input {
    display: none;
}

.selected-files {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255,107,53,0.05);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.selected-files h4 {
    margin-bottom: 1rem;
    color: var(--text);
}

.selected-files ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.selected-files li {
    color: var(--text-light);
}

/* ============= Progress Bar ============= */

.progress-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

/* ============= Forms ============= */

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

.form-group.checkbox input {
    margin-right: 0.5rem;
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ============= Flash Messages ============= */

.flash-message {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-success {
    background: rgba(34,197,94,0.1);
    color: #059669;
    border-left: 4px solid #059669;
}

.flash-error {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.flash-close:hover {
    opacity: 1;
}

/* ============= Sections ============= */

.tool-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tool-header {
    background: linear-gradient(135deg, #FF6B35 0%, #E8401C 100%);
    color: var(--white);
    padding: 3rem 2rem;
}

.tool-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.tool-header-icon {
    font-size: 4rem;
    line-height: 1;
}

.tool-header-content {
    flex: 1;
}

.tool-title {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.tool-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

.security-note {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(34,197,94,0.05);
    border-radius: var(--radius);
    border-left: 4px solid #059669;
    margin-top: 2rem;
}

.security-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-note p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
}

/* ============= Steps Grid ============= */

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

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

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

/* ============= Breadcrumb ============= */

.breadcrumb {
    background: var(--white);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

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

.breadcrumb-container span {
    color: var(--text-light);
}

/* ============= Dashboard ============= */

.dashboard-section {
    padding: 3rem 2rem;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    margin-bottom: 0.5rem;
}

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

.stat-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-box h3 {
    margin: 0 0 0.5rem;
    color: var(--primary);
    font-size: 1.75rem;
}

.stat-box p {
    margin: 0;
    color: var(--text-light);
}

.dashboard-action {
    margin-bottom: 3rem;
}

.history-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: var(--bg);
}

.history-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.history-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

.history-table tr:hover {
    background: var(--bg);
}

.error-row td {
    opacity: 0.6;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(34,197,94,0.1);
    color: #059669;
}

.status-badge.error {
    background: rgba(239,68,68,0.1);
    color: #dc2626;
}

/* ============= Pagination ============= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-info {
    color: var(--text-light);
}

/* ============= CTA Section ============= */

.cta-section {
    background: linear-gradient(135deg, #FF6B35 0%, #E8401C 100%);
    color: var(--white);
    padding: 4rem 2rem;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cta-container h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-container p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============= Auth Pages ============= */

.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-box h1 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.auth-box > p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.auth-form {
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ============= Legal Pages ============= */

.legal-section {
    padding: 3rem 2rem;
    min-height: 60vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.legal-content ul {
    list-style-position: inside;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ============= Empty State ============= */

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg);
    border-radius: var(--radius);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* ============= Footer ============= */

.footer {
    background: #1A1A2E;
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

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

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

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

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

.footer-section a {
    color: rgba(255,255,255,0.7);
}

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

.footer-location {
    color: var(--primary);
    font-size: 0.9rem;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ============= Main Content ============= */

.main-content {
    flex: 1;
    min-height: calc(100vh - 200px);
}

/* ============= Responsive ============= */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .navbar-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .navbar-brand {
        flex: 0 0 100%;
    }

    .navbar-menu {
        flex: 0 0 100%;
        margin: 0;
    }

    .navbar-nav {
        gap: 1rem;
    }

    .navbar-auth {
        flex: 0 0 100%;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

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

    .tool-header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .tool-header-icon {
        font-size: 3rem;
    }

    .breadcrumb-container {
        flex-wrap: wrap;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .navbar-container {
        padding: 0.75rem 1rem;
    }

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

    .navbar-nav {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .upload-zone {
        min-height: 250px;
        padding: 1.5rem 1rem;
    }

    .tool-icon {
        font-size: 2rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
}

/* ============= Why Section ============= */

.why-section {
    padding: 5rem 0;
    background: var(--white);
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.why-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* ============= FAQ Section ============= */

.faq-section {
    padding: 5rem 0;
    background: var(--bg);
}

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

.faq-container h2 {
    margin-bottom: 2.5rem;
}

.faq-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

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

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ============= Tool Info Section ============= */

.tool-info-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.tool-info-section p strong {
    color: var(--text);
}

/* ============= Print Styles ============= */

@media print {
    .navbar,
    .footer,
    .btn,
    .cta-section,
    .upload-zone {
        display: none;
    }

    .legal-section {
        padding: 0;
    }

    .legal-content {
        box-shadow: none;
        padding: 0;
    }
}

/* ============= Blog Styles ============= */

.blog-hero {
    background: var(--gradient);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
}

.blog-hero h1 { font-size: 2.5rem; color: white; margin-bottom: 0.75rem; }
.blog-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin: 0; }

.blog-section { padding: 4rem 0; background: var(--bg); }
.blog-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.blog-categories {
    display: flex; gap: 0.75rem; flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.blog-cat-btn {
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: white;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.blog-cat-btn:hover, .blog-cat-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.blog-card-category {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--primary);
}

.blog-card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin: 0; }
.blog-card-title a { color: var(--text); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary); }

.blog-card-excerpt { font-size: 0.92rem; color: var(--text-light); flex: 1; margin: 0; }

.blog-card-meta {
    display: flex; gap: 1rem; font-size: 0.82rem;
    color: var(--text-light);
}

.blog-read-btn { margin-top: 0.5rem; }

/* Blog Post Layout */
.blog-post-layout {
    max-width: 1200px; margin: 0 auto; padding: 2rem;
    display: grid; grid-template-columns: 1fr 300px; gap: 3rem;
}

.blog-post-article {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}

.blog-post-header { padding: 2.5rem 2.5rem 0; }

.blog-post-category {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--primary); margin-bottom: 1rem;
}

.blog-post-title {
    font-size: 2rem; font-weight: 800; line-height: 1.3;
    color: var(--text); margin-bottom: 1rem;
}

.blog-post-meta {
    display: flex; gap: 1.5rem; font-size: 0.88rem;
    color: var(--text-light); margin-bottom: 1.5rem;
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}

.blog-post-excerpt {
    font-size: 1.05rem; color: var(--text-light);
    line-height: 1.7; font-style: italic;
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.blog-post-content { padding: 2rem 2.5rem; }

.blog-post-content h2 {
    font-size: 1.4rem; font-weight: 700; color: var(--text);
    margin: 2rem 0 1rem; padding-top: 1rem;
    border-top: 2px solid var(--border);
}

.blog-post-content h3 {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    margin: 1.5rem 0 0.75rem;
}

.blog-post-content p {
    font-size: 1rem; line-height: 1.8; color: var(--text-light);
    margin-bottom: 1.25rem;
}

.blog-post-content ul, .blog-post-content ol {
    margin: 0 0 1.25rem 1.5rem;
}

.blog-post-content li {
    font-size: 1rem; line-height: 1.8; color: var(--text-light);
    margin-bottom: 0.5rem;
}

.blog-post-content strong { color: var(--text); }

.blog-post-content a { color: var(--primary); font-weight: 500; }

.blog-post-cta {
    margin: 2rem 2.5rem;
    background: linear-gradient(135deg, #FFF5F0, #FFF0EB);
    border: 2px solid #FFD5C2;
    border-radius: var(--radius);
    padding: 2rem; text-align: center;
}

.blog-post-cta h3 { color: var(--text); margin-bottom: 0.5rem; }
.blog-post-cta p { color: var(--text-light); margin-bottom: 1.5rem; }

/* Sidebar */
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.5rem;
}

.sidebar-widget h4 {
    font-size: 1rem; font-weight: 700; color: var(--text);
    margin-bottom: 1rem; padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.sidebar-tool-card { text-align: center; }
.sidebar-tool-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.sidebar-tool-card h5 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.sidebar-tool-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }

.sidebar-posts { list-style: none; margin: 0; padding: 0; }
.sidebar-posts li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0.25rem;
}
.sidebar-posts li:last-child { border-bottom: none; }
.sidebar-posts a { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.sidebar-posts a:hover { color: var(--primary); }
.sidebar-post-meta { font-size: 0.78rem; color: var(--text-light); }

/* Responsive Blog */
@media (max-width: 900px) {
    .blog-post-layout { grid-template-columns: 1fr; }
    .blog-sidebar { order: -1; }
    .blog-post-header, .blog-post-content, .blog-post-cta { padding: 1.5rem; }
    .blog-post-title { font-size: 1.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* ============= Blog Styles ============= */
.blog-hero { background: var(--gradient); padding: 4rem 2rem; text-align: center; color: white; }
.blog-hero h1 { font-size: 2.5rem; color: white; margin-bottom: 0.75rem; }
.blog-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin: 0; }
.blog-section { padding: 4rem 0; background: var(--bg); }
.blog-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.blog-categories { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.blog-cat-btn { padding: 0.5rem 1.25rem; border: 2px solid var(--border); border-radius: 50px; background: white; color: var(--text-light); cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; }
.blog-cat-btn:hover, .blog-cat-btn.active { background: var(--gradient); color: white; border-color: transparent; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.blog-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card-category { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); }
.blog-card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; margin: 0; }
.blog-card-title a { color: var(--text); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { font-size: 0.92rem; color: var(--text-light); flex: 1; margin: 0; }
.blog-card-meta { display: flex; gap: 1rem; font-size: 0.82rem; color: var(--text-light); }
.blog-read-btn { margin-top: 0.5rem; }
.blog-post-layout { max-width: 1200px; margin: 0 auto; padding: 2rem; display: grid; grid-template-columns: 1fr 300px; gap: 3rem; }
.blog-post-article { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.blog-post-header { padding: 2.5rem 2.5rem 0; }
.blog-post-category { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 1rem; }
.blog-post-title { font-size: 2rem; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 1rem; }
.blog-post-meta { display: flex; gap: 1.5rem; font-size: 0.88rem; color: var(--text-light); margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.blog-post-excerpt { font-size: 1.05rem; color: var(--text-light); line-height: 1.7; font-style: italic; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.blog-post-content { padding: 2rem 2.5rem; }
.blog-post-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin: 2rem 0 1rem; padding-top: 1rem; border-top: 2px solid var(--border); }
.blog-post-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 1.5rem 0 0.75rem; }
.blog-post-content p { font-size: 1rem; line-height: 1.8; color: var(--text-light); margin-bottom: 1.25rem; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 1.25rem 1.5rem; }
.blog-post-content li { font-size: 1rem; line-height: 1.8; color: var(--text-light); margin-bottom: 0.5rem; }
.blog-post-content strong { color: var(--text); }
.blog-post-content a { color: var(--primary); font-weight: 500; }
.blog-post-cta { margin: 2rem 2.5rem; background: linear-gradient(135deg, #FFF5F0, #FFF0EB); border: 2px solid #FFD5C2; border-radius: var(--radius); padding: 2rem; text-align: center; }
.blog-post-cta h3 { color: var(--text); margin-bottom: 0.5rem; }
.blog-post-cta p { color: var(--text-light); margin-bottom: 1.5rem; }
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.sidebar-widget h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border); }
.sidebar-tool-card { text-align: center; }
.sidebar-tool-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.sidebar-tool-card h5 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.sidebar-tool-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }
.sidebar-posts { list-style: none; margin: 0; padding: 0; }
.sidebar-posts li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-posts li:last-child { border-bottom: none; }
.sidebar-posts a { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.sidebar-posts a:hover { color: var(--primary); }
.sidebar-post-meta { font-size: 0.78rem; color: var(--text-light); }
@media (max-width: 900px) {
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; }
  .blog-post-header, .blog-post-content, .blog-post-cta { padding: 1.5rem; }
  .blog-post-title { font-size: 1.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* Flash Messages */
.flash-message { padding: 1rem 1.5rem; margin: 1rem 2rem; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.flash-success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.flash-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: inherit; }
