/* ═══════════════════════════════════════════════════════════════════
   Bank Statement Converter Pro — Main Front-end Stylesheet
   Version: 1.0.0
   Note: Page-template styles live in pages.css.
   ═══════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────
   1. CSS Custom Properties (theme tokens)
   ──────────────────────────────────────────────────────────────── */
:root {
    --bsc-primary: #2563eb;
    --bsc-primary-dark: #1d4ed8;
    --bsc-accent: #0f172a;
    --bsc-text: #1e293b;
    --bsc-text-muted: #64748b;
    --bsc-text-soft: #475569;
    --bsc-bg: #f8fafc;
    --bsc-surface: #ffffff;
    --bsc-border: #e2e8f0;
    --bsc-border-strong: #cbd5e1;
    --bsc-radius-sm: .375rem;
    --bsc-radius: .5rem;
    --bsc-radius-lg: .75rem;
    --bsc-radius-xl: 1rem;
    --bsc-shadow-sm: 0 1px 3px rgba(15, 23, 42, .04);
    --bsc-shadow: 0 2px 12px rgba(15, 23, 42, .06);
    --bsc-shadow-lg: 0 4px 24px rgba(15, 23, 42, .08);
}

/* ────────────────────────────────────────────────────────────────
   2. Reset & Base
   ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bsc-text);
    background: var(--bsc-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

hr {
    border: 0;
    border-top: 1px solid var(--bsc-border);
    margin: 2rem 0;
}

/* ────────────────────────────────────────────────────────────────
   3. Accessibility Helpers
   ──────────────────────────────────────────────────────────────── */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
    clip: auto !important;
    color: #0f172a;
    display: block;
    font-size: .875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--bsc-primary);
    color: #fff;
    padding: .75rem 1rem;
    z-index: 100000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* ────────────────────────────────────────────────────────────────
   4. Layout
   ──────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-main,
.site-content {
    min-height: 60vh;
    padding: 2rem 0;
}

.section {
    padding: 2.5rem 0;
}

.section-title {
    font-size: 1.6rem;
    text-align: center;
    margin: 0 0 1.5rem;
    color: var(--bsc-accent);
}

/* ────────────────────────────────────────────────────────────────
   5. Header
   ──────────────────────────────────────────────────────────────── */
.site-header {
    background: var(--bsc-surface);
    border-bottom: 1px solid var(--bsc-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--bsc-accent);
}

.site-title a:hover {
    color: var(--bsc-primary);
}

.site-description {
    font-size: .85rem;
    color: var(--bsc-text-muted);
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-weight: 500;
    color: #334155;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
    display: inline-block;
    transition: border-color .15s ease, color .15s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    border-bottom-color: var(--bsc-primary);
    color: var(--bsc-accent);
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bsc-surface);
    border: 1px solid var(--bsc-border);
    border-radius: var(--bsc-radius);
    box-shadow: var(--bsc-shadow);
    padding: .5rem 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    z-index: 200;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    display: flex;
}

.main-navigation ul ul a {
    display: block;
    padding: .5rem 1rem;
    border-bottom: none;
}

.main-navigation ul ul a:hover {
    background: #f8fafc;
    color: var(--bsc-primary);
}

/* ────────────────────────────────────────────────────────────────
   6. Footer
   ──────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bsc-accent);
    color: #cbd5e1;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: .9rem;
}

.site-footer a {
    color: #94a3b8;
}

.site-footer a:hover {
    color: #ffffff;
}

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

.site-footer .widget-title {
    color: #ffffff;
    font-size: 1rem;
    margin: 0 0 .75rem;
}

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

.site-footer ul li {
    margin-bottom: .35rem;
}

.site-footer ul ul {
    margin-top: .35rem;
    padding-left: 1rem;
}

/* ────────────────────────────────────────────────────────────────
   7. Buttons
   ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    background: var(--bsc-primary);
    color: #ffffff;
    padding: .75rem 1.5rem;
    border-radius: var(--bsc-radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--bsc-primary);
    cursor: pointer;
    text-align: center;
    transition: background .2s, color .2s, border-color .2s, transform .1s;
    line-height: 1.4;
    text-decoration: none;
}

.btn:hover {
    background: var(--bsc-primary-dark);
    border-color: var(--bsc-primary-dark);
    color: #ffffff;
}

.btn:active {
    transform: translateY(1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
}

.btn:disabled,
.btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bsc-accent);
    border-color: var(--bsc-accent);
}

.btn-secondary:hover {
    background: #1e293b;
    border-color: #1e293b;
}

.btn-outline {
    background: transparent;
    color: var(--bsc-primary);
}

.btn-outline:hover {
    background: var(--bsc-primary);
    color: #ffffff;
}

/* ────────────────────────────────────────────────────────────────
   8. Hero
   ──────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 3rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin: 0 0 .75rem;
    color: var(--bsc-accent);
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--bsc-text-soft);
    max-width: 680px;
    margin: 0 auto 1.5rem;
}

.hero .btn {
    font-size: 1.05rem;
    padding: .875rem 2rem;
}

/* ────────────────────────────────────────────────────────────────
   9. Cards
   ──────────────────────────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bsc-surface);
    border: 1px solid var(--bsc-border);
    border-radius: var(--bsc-radius-lg);
    padding: 1.5rem;
    transition: box-shadow .2s, transform .2s;
}

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

.card h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--bsc-accent);
}

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

/* ────────────────────────────────────────────────────────────────
   10. Converter Tool
   ──────────────────────────────────────────────────────────────── */
.converter-wrap {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bsc-surface);
    border-radius: var(--bsc-radius-xl);
    padding: 2rem;
    box-shadow: var(--bsc-shadow-lg);
}

.converter-wrap h1,
.converter-wrap h2 {
    margin-top: 0;
    color: var(--bsc-accent);
}

.converter-intro {
    margin-bottom: 1.5rem;
    color: var(--bsc-text-soft);
}

.file-drop {
    display: block;
    border: 2px dashed var(--bsc-border-strong);
    border-radius: var(--bsc-radius-lg);
    padding: 2.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: var(--bsc-bg);
}

.file-drop:hover,
.file-drop.dragover {
    border-color: var(--bsc-primary);
    background: #eff6ff;
}

.file-drop input[type="file"] {
    display: none;
}

.file-drop strong {
    display: block;
    color: var(--bsc-accent);
    margin-bottom: .5rem;
}

.file-name {
    margin-top: .75rem;
    font-size: .9rem;
    color: var(--bsc-text-soft);
    word-break: break-word;
}

.converter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
    justify-content: center;
}

.converter-actions .btn {
    flex: 1 1 auto;
    min-width: 160px;
}

.converter-status {
    margin-top: 1rem;
    text-align: center;
    font-size: .9rem;
    color: var(--bsc-text-soft);
    min-height: 1.4em;
}

.converter-status.error {
    color: #b91c1c;
}

.converter-status.success {
    color: #15803d;
}

.converter-output {
    margin-top: 1.5rem;
}

.converter-output textarea {
    width: 100%;
    min-height: 220px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .85rem;
    line-height: 1.5;
    border: 1px solid var(--bsc-border);
    border-radius: var(--bsc-radius);
    padding: .75rem;
    background: #f8fafc;
    color: var(--bsc-text);
    resize: vertical;
}

/* ────────────────────────────────────────────────────────────────
   11. Adsterra Ad Containers
   Reserved heights help reduce Cumulative Layout Shift (CLS).
   ──────────────────────────────────────────────────────────────── */
.bsc-ad-container {
    margin: 1.5rem auto;
    text-align: center;
    overflow: hidden;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.bsc-ad-container .bsc-ad-label {
    display: block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    margin-bottom: .25rem;
    width: 100%;
    text-align: center;
    font-weight: 500;
}

.bsc-ad-container iframe,
.bsc-ad-container img,
.bsc-ad-container ins,
.bsc-ad-container > div {
    max-width: 100%;
    margin: 0 auto;
}

.bsc-ad-header   { min-height: 90px; }
.bsc-ad-homepage { min-height: 250px; }
.bsc-ad-converter { min-height: 250px; }
.bsc-ad-content  { min-height: 250px; }
.bsc-ad-sidebar  { min-height: 250px; }
.bsc-ad-footer   { min-height: 90px; }

/* ────────────────────────────────────────────────────────────────
   12. Sidebar & Widgets
   ──────────────────────────────────────────────────────────────── */
.widget-area {
    display: grid;
    gap: 1.5rem;
}

.widget {
    background: var(--bsc-surface);
    border: 1px solid var(--bsc-border);
    border-radius: var(--bsc-radius-lg);
    padding: 1.25rem;
}

.widget-title {
    font-size: 1rem;
    margin: 0 0 .75rem;
    color: var(--bsc-accent);
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--bsc-border);
}

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

.widget ul li {
    padding: .4rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul ul {
    margin-top: .4rem;
    padding-left: 1rem;
}

/* ────────────────────────────────────────────────────────────────
   13. Blog Posts
   ──────────────────────────────────────────────────────────────── */
.post-card {
    background: var(--bsc-surface);
    border: 1px solid var(--bsc-border);
    border-radius: var(--bsc-radius-lg);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

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

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card .post-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card .post-body h2,
.post-card .post-body h3 {
    font-size: 1.1rem;
    margin: 0 0 .5rem;
    line-height: 1.3;
}

.post-card .post-body h2 a,
.post-card .post-body h3 a {
    color: var(--bsc-accent);
}

.post-card .post-body h2 a:hover,
.post-card .post-body h3 a:hover {
    color: var(--bsc-primary);
}

.post-meta {
    font-size: .8rem;
    color: var(--bsc-text-muted);
    margin-bottom: .5rem;
}

.post-meta a {
    color: var(--bsc-text-muted);
}

article.post,
article.page {
    background: var(--bsc-surface);
    border: 1px solid var(--bsc-border);
    border-radius: var(--bsc-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

article.post h1,
article.page h1 {
    margin: 0 0 1rem;
    color: var(--bsc-accent);
    line-height: 1.25;
}

.entry-content {
    line-height: 1.75;
    color: var(--bsc-text);
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content img {
    border-radius: var(--bsc-radius);
    margin: 1rem auto;
}

.entry-content blockquote {
    border-left: 4px solid var(--bsc-primary);
    background: #f8fafc;
    margin: 1.5rem 0;
    padding: .75rem 1.25rem;
    color: var(--bsc-text-soft);
    font-style: italic;
}

.entry-content code {
    background: #f1f5f9;
    padding: .15rem .35rem;
    border-radius: var(--bsc-radius-sm);
    font-family: monospace;
    font-size: .9em;
}

.entry-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: var(--bsc-radius);
    overflow-x: auto;
}

.entry-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bsc-border);
    font-size: .875rem;
    color: var(--bsc-text-muted);
}

.entry-footer .cat-links,
.entry-footer .tags-links,
.entry-footer .comments-link {
    display: inline-block;
    margin-right: 1rem;
}

/* Pagination */
.pagination,
.navigation.pagination {
    margin: 2rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 2.25rem;
    padding: .5rem .75rem;
    border: 1px solid var(--bsc-border);
    border-radius: var(--bsc-radius);
    color: var(--bsc-text);
    background: var(--bsc-surface);
    font-weight: 500;
}

.pagination .page-numbers:hover {
    border-color: var(--bsc-primary);
    color: var(--bsc-primary);
}

.pagination .page-numbers.current {
    background: var(--bsc-primary);
    border-color: var(--bsc-primary);
    color: #ffffff;
}

/* ────────────────────────────────────────────────────────────────
   14. Breadcrumbs
   ──────────────────────────────────────────────────────────────── */
.bsc-breadcrumbs {
    font-size: .875rem;
    color: var(--bsc-text-muted);
    margin: 0 0 1.5rem;
    padding: .5rem 0;
}

.bsc-breadcrumbs a {
    color: var(--bsc-text-muted);
}

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

.bsc-breadcrumb-sep {
    margin: 0 .25rem;
    color: var(--bsc-border-strong);
}

.bsc-breadcrumbs [aria-current="page"] {
    color: var(--bsc-text);
    font-weight: 500;
}

/* ────────────────────────────────────────────────────────────────
   15. Contact Form
   ──────────────────────────────────────────────────────────────── */
.bsc-form .form-row {
    margin-bottom: 1rem;
}

.bsc-form label {
    display: block;
    font-weight: 500;
    margin-bottom: .35rem;
    color: var(--bsc-accent);
}

.bsc-form input[type="text"],
.bsc-form input[type="email"],
.bsc-form input[type="tel"],
.bsc-form textarea {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid var(--bsc-border-strong);
    border-radius: var(--bsc-radius);
    font: inherit;
    color: var(--bsc-text);
    background: var(--bsc-surface);
    transition: border-color .15s, box-shadow .15s;
}

.bsc-form input:focus,
.bsc-form textarea:focus {
    outline: none;
    border-color: var(--bsc-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

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

.bsc-form .form-message {
    margin-top: .75rem;
    font-size: .9rem;
}

.bsc-form .form-message.success {
    color: #15803d;
}

.bsc-form .form-message.error {
    color: #b91c1c;
}

.bsc-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ────────────────────────────────────────────────────────────────
   16. Cookie Notice
   ──────────────────────────────────────────────────────────────── */
#bsc-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bsc-accent);
    color: #e2e8f0;
    padding: 1rem;
    z-index: 9999;
    display: none;
    font-size: .9rem;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, .2);
}

#bsc-cookie-notice .cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    justify-content: space-between;
}

#bsc-cookie-notice a {
    color: #93c5fd;
    text-decoration: underline;
}

#bsc-cookie-notice a:hover {
    color: #ffffff;
}

#bsc-cookie-notice .cookie-buttons {
    display: flex;
    gap: .5rem;
}

#bsc-cookie-notice button {
    padding: .45rem 1rem;
    border-radius: var(--bsc-radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
}

#bsc-cookie-notice .accept {
    background: var(--bsc-primary);
    color: #ffffff;
}

#bsc-cookie-notice .accept:hover {
    background: var(--bsc-primary-dark);
}

#bsc-cookie-notice .decline {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}

#bsc-cookie-notice .decline:hover {
    background: #1e293b;
    color: #ffffff;
}

/* ────────────────────────────────────────────────────────────────
   17. Comments
   ──────────────────────────────────────────────────────────────── */
.comments-area {
    margin-top: 2rem;
    background: var(--bsc-surface);
    border: 1px solid var(--bsc-border);
    border-radius: var(--bsc-radius-lg);
    padding: 2rem;
}

.comments-title {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    color: var(--bsc-accent);
}

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

.comment-list .comment-body {
    padding: 1rem 0;
    border-bottom: 1px solid var(--bsc-border);
}

.comment-list .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: .5rem;
}

.comment-author {
    font-weight: 600;
    color: var(--bsc-accent);
}

.comment-metadata {
    font-size: .8rem;
    color: var(--bsc-text-muted);
    margin-bottom: .75rem;
}

.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
    margin-bottom: 1rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid var(--bsc-border-strong);
    border-radius: var(--bsc-radius);
}

/* ────────────────────────────────────────────────────────────────
   18. Search Form
   ──────────────────────────────────────────────────────────────── */
.search-form {
    display: flex;
    gap: .5rem;
    max-width: 400px;
}

.search-form .search-field {
    flex: 1;
    padding: .5rem .75rem;
    border: 1px solid var(--bsc-border-strong);
    border-radius: var(--bsc-radius);
}

.search-form .search-submit {
    background: var(--bsc-primary);
    color: #ffffff;
    border: none;
    padding: .5rem 1rem;
    border-radius: var(--bsc-radius);
    cursor: pointer;
    font-weight: 600;
}

.search-form .search-submit:hover {
    background: var(--bsc-primary-dark);
}

/* ────────────────────────────────────────────────────────────────
   19. 404
   ──────────────────────────────────────────────────────────────── */
.error-404 .page-title {
    font-size: 3rem;
    color: var(--bsc-accent);
}

/* ────────────────────────────────────────────────────────────────
   20. Utility Classes
   ──────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.hidden { display: none !important; }

/* ────────────────────────────────────────────────────────────────
   21. Responsive Breakpoints
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .container { padding: 0 .75rem; }
    .hero { padding: 2.5rem 1rem; }
}

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

    .header-inner {
        flex-wrap: wrap;
        gap: .5rem;
        padding: .5rem 0;
        min-height: auto;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        gap: .75rem;
        font-size: .9rem;
    }

    .main-navigation ul ul {
        display: none !important;
    }

    .converter-wrap {
        padding: 1.25rem;
        border-radius: var(--bsc-radius);
    }

    .converter-actions {
        flex-direction: column;
    }

    .converter-actions .btn {
        min-width: 100%;
        width: 100%;
    }

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

    .bsc-ad-homepage,
    .bsc-ad-converter,
    .bsc-ad-content,
    .bsc-ad-sidebar {
        min-height: 250px;
    }

    article.post,
    article.page,
    .comments-area {
        padding: 1.25rem;
    }

    #bsc-cookie-notice .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    #bsc-cookie-notice .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

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

    .section-title { font-size: 1.35rem; }

    .file-drop { padding: 1.75rem 1rem; }

    .converter-wrap h2 { font-size: 1.25rem; }
}

/* ────────────────────────────────────────────────────────────────
   22. Reduced motion & print
   ──────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .main-navigation,
    #bsc-cookie-notice,
    .bsc-ad-container,
    .converter-actions,
    .comments-area {
        display: none !important;
    }
    body { background: #fff; color: #000; }
    a { color: #000; text-decoration: underline; }
    article.post,
    article.page,
    .converter-wrap {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}