/*
Theme Name: dds_osmolegal.ru
Theme URI: https://osmolegal.ru
Author: Алексей Мельников
Author URI: https://osmolegal.ru
Description: OsmoLegal — это проект о том, как уверенно работать с юридическими документами в учебе и профессии.
Version: 1.1
Text Domain: dds_osmolegal.ru
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

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

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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1E2A2E;
    background-color: #FEFEFD;
    overflow-x: hidden;
}

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

a {
    color: #B5452D;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: #8F3A25;
}

p {
    margin: 0 0 1em;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: #1E2A2E;
    margin: 0 0 0.6em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

h2 {
    position: relative;
    padding-left: 16px;
    border-left: 2px solid #B5452D;
}

/* === LAYOUT === */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    display: flex;
    gap: 40px;
    padding: 30px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.main-content.full-width {
    width: 85%;
    max-width: 85%;
    margin: 0 auto;
}

.sidebar-area {
    flex: 0 0 27%;
    min-width: 0;
}

.main-content.has-sidebar {
    flex: 0 0 67%;
}

/* === HEADER === */
.site-header {
    background: #FEFEFD;
    border-bottom: 1px solid #E8E5DF;
    padding: 12px 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
    z-index: 100;
    position: relative;
}

.site-header.header-shrink {
    padding: 6px 0;
    box-shadow: 0 2px 8px rgba(30, 42, 46, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.header-shrink .brand-logo {
    height: 36px;
}

.brand-logo-placeholder {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: width 0.3s ease, height 0.3s ease;
}

.header-shrink .brand-logo-placeholder {
    width: 36px;
    height: 36px;
}

.brand-info {
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.header-shrink .brand-info {
    display: none;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E2A2E;
    line-height: 1.3;
}

.brand-desc {
    font-size: 0.72rem;
    color: #6B7C80;
    line-height: 1.35;
    max-width: 360px;
}

/* Header nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.header-nav ul li a {
    display: block;
    padding: 8px 16px;
    color: #1E2A2E;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-nav ul li a:hover,
.header-nav ul li.current-menu-item a {
    background: rgba(58, 107, 107, 0.08);
    color: #3A6B6B;
}

/* Practice mode toggle */
.practice-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #6B7C80;
    cursor: pointer;
    white-space: nowrap;
}

.practice-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 20px;
    background: #E8E5DF;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
}

.practice-toggle input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.practice-toggle input[type="checkbox"]:checked {
    background: #3A6B6B;
}

.practice-toggle input[type="checkbox"]:checked::after {
    transform: translateX(16px);
}

/* Search button in header */
.header-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #1E2A2E;
    transition: color 0.2s ease;
}

.header-search-btn:hover {
    color: #B5452D;
}

.header-search-btn svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Search overlay */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 42, 46, 0.5);
    z-index: 200;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-inner {
    background: #FEFEFD;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 560px;
    box-shadow: 0 12px 40px rgba(30, 42, 46, 0.18);
}

.search-overlay .search-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
    border: 1px solid #E8E5DF;
    border-radius: 4px;
    outline: none;
    color: #1E2A2E;
    background: #FEFEFD;
}

.search-overlay .search-field:focus {
    border-color: #3A6B6B;
}

.search-overlay .search-submit {
    margin-top: 10px;
    width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #1E2A2E;
}

.mobile-menu-toggle svg {
    display: block;
    width: 26px;
    height: 26px;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: #B5452D;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    background: #8F3A25;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: #3A6B6B;
    border: 1px solid #3A6B6B;
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(58, 107, 107, 0.08);
    color: #3A6B6B;
}

.btn-resource {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #B5452D, #8F3A25);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.btn-resource:hover {
    opacity: 0.9;
    color: #fff;
}

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin: 30px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: #FEFEFD;
    border: 1px solid #E8E5DF;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 42, 46, 0.1);
}

.card-thumb-wrap {
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
}

.card-thumb-wrap a {
    display: block;
}

.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: #6B7C80;
    margin-bottom: 8px;
}

.card-category-chip {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(58, 107, 107, 0.1);
    color: #3A6B6B;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 500;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    border-left: none;
    padding-left: 0;
}

.card-title a {
    color: #1E2A2E;
}

.card-title a:hover {
    color: #B5452D;
}

.card-excerpt {
    font-size: 0.88rem;
    color: #4A5A5E;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-footer {
    margin-top: auto;
}

.card-readmore {
    font-size: 0.85rem;
    font-weight: 600;
    color: #B5452D;
}

.card-readmore:hover {
    color: #8F3A25;
}

/* Horizontal card variant */
.card-horizontal {
    flex-direction: row;
}

.card-horizontal .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.card-horizontal .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-horizontal .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: auto;
}

/* === FRONT PAGE === */
.front-section {
    padding: 48px 0;
}

.front-section + .front-section {
    border-top: 1px solid #E8E5DF;
}

.section-heading {
    font-size: 1.6rem;
    margin-bottom: 28px;
    color: #1E2A2E;
}

/* Thematic tiles */
.theme-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.theme-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 18px;
    background: #FEFEFD;
    border: 1px solid #E8E5DF;
    border-radius: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: #1E2A2E;
}

.theme-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 42, 46, 0.1);
    color: #1E2A2E;
}

.theme-tile-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
}

.theme-tile-icon svg {
    width: 100%;
    height: 100%;
}

.theme-tile-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Steps section */
.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.step-item {
    padding: 24px;
    background: #FEFEFD;
    border: 1px solid #E8E5DF;
    border-radius: 6px;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #B5452D;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50%;
    margin-bottom: 12px;
}

.step-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step-item p {
    font-size: 0.88rem;
    color: #4A5A5E;
}

/* Info columns */
.info-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.info-col {
    padding: 28px;
    border: 1px solid #E8E5DF;
    border-radius: 6px;
    background: #FEFEFD;
}

.info-col h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #3A6B6B;
}

.info-col p {
    font-size: 0.9rem;
    color: #4A5A5E;
}

/* Document analysis block */
.doc-analysis {
    position: relative;
    background: #FFF9F0;
    border: 1px solid #E8E5DF;
    border-radius: 6px;
    padding: 32px;
    margin: 24px 0;
}

.doc-fragment {
    background: #FEFEFD;
    border: 1px solid #E8E5DF;
    border-radius: 4px;
    padding: 20px;
    position: relative;
}

.doc-highlight {
    background: #FFF2D7;
    padding: 2px 4px;
    border-radius: 2px;
}

.doc-comment {
    background: #FEFEFD;
    border-left: 3px solid #C5B77F;
    padding: 12px 16px;
    margin-top: 14px;
    font-size: 0.88rem;
    color: #4A5A5E;
    border-radius: 0 4px 4px 0;
}

/* CTA section */
.cta-block {
    background: linear-gradient(135deg, rgba(58, 107, 107, 0.06), rgba(181, 69, 45, 0.04));
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 24px 0;
}

.cta-block h2 {
    border-left: none;
    padding-left: 0;
    text-align: center;
}

.cta-block p {
    font-size: 1rem;
    color: #4A5A5E;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 14px 0;
    font-size: 0.82rem;
    color: #6B7C80;
}

.breadcrumbs a {
    color: #6B7C80;
}

.breadcrumbs a:hover {
    color: #B5452D;
}

.breadcrumbs .separator {
    margin: 0 6px;
    color: #C5B77F;
}

.breadcrumbs .current {
    color: #1E2A2E;
}

/* === PAGINATION === */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 32px 0;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination-wrap a {
    color: #1E2A2E;
    border: 1px solid #E8E5DF;
}

.pagination-wrap a:hover {
    background: rgba(58, 107, 107, 0.08);
    border-color: #3A6B6B;
    color: #3A6B6B;
}

.pagination-wrap span.current {
    background: #B5452D;
    color: #fff;
    border: 1px solid #B5452D;
}

.pagination-wrap .dots {
    color: #6B7C80;
    border: none;
}

/* === SINGLE POST === */
.entry-header {
    margin-bottom: 28px;
}

.entry-title {
    font-size: 2rem;
    border-left: 3px solid #B5452D;
    padding-left: 16px;
    margin-bottom: 14px;
}

.entry-meta {
    font-size: 0.82rem;
    color: #6B7C80;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: 1.6em;
}

.entry-content h3 {
    margin-top: 1.3em;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1em 1.8em;
}

.entry-content li {
    margin-bottom: 0.4em;
}

.entry-content blockquote {
    border-left: 3px solid #C5B77F;
    padding: 16px 20px;
    margin: 1.2em 0;
    background: rgba(197, 183, 127, 0.08);
    font-style: italic;
    color: #4A5A5E;
}

.entry-content pre {
    background: #2A3A3E;
    color: #E8E5DF;
    padding: 16px 20px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.2em 0;
    font-size: 0.88rem;
}

.entry-content code {
    background: rgba(58, 107, 107, 0.08);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.entry-content pre code {
    background: none;
    padding: 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}

.entry-content table th,
.entry-content table td {
    border: 1px solid #E8E5DF;
    padding: 10px 14px;
    text-align: left;
}

.entry-content table th {
    background: rgba(58, 107, 107, 0.06);
    font-weight: 600;
}

.entry-content img {
    border-radius: 4px;
}

/* Post navigation */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid #E8E5DF;
    margin-top: 28px;
}

.post-nav-link {
    font-size: 0.88rem;
}

.post-nav-link span {
    display: block;
    font-size: 0.76rem;
    color: #6B7C80;
    margin-bottom: 4px;
}

/* === COMMENTS === */
.comments-area {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #E8E5DF;
}

.comments-title {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

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

.comment-list .comment {
    padding: 18px 0;
    border-bottom: 1px solid #E8E5DF;
}

.comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 28px;
}

.comment-author-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #1E2A2E;
}

.comment-date {
    font-size: 0.78rem;
    color: #6B7C80;
}

.comment-text {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.comment-reply-link {
    font-size: 0.8rem;
    color: #3A6B6B;
    margin-top: 6px;
    display: inline-block;
}

.comment-respond {
    margin-top: 28px;
}

.comment-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1E2A2E;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E8E5DF;
    border-radius: 4px;
    font-size: 0.92rem;
    margin-bottom: 14px;
    font-family: inherit;
    color: #1E2A2E;
    background: #FEFEFD;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3A6B6B;
}

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

.comment-form .submit {
    display: inline-block;
    padding: 10px 24px;
    background: #B5452D;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.comment-form .submit:hover {
    background: #8F3A25;
}

/* === SIDEBAR === */
.sidebar-area .widget {
    margin-bottom: 28px;
    padding: 20px;
    background: #FEFEFD;
    border: 1px solid #E8E5DF;
    border-radius: 6px;
}

.sidebar-area .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E8E5DF;
    border-left: none;
    padding-left: 0;
}

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

.sidebar-area .widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(232, 229, 223, 0.5);
}

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

.sidebar-area .widget ul li a {
    color: #1E2A2E;
    font-size: 0.88rem;
}

.sidebar-area .widget ul li a:hover {
    color: #B5452D;
}

/* === FOOTER === */
.site-footer {
    background: #1E2A2E;
    color: #9DAAAD;
    padding: 40px 0 0;
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-widget-area .widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #E8E5DF;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    padding-left: 0;
}

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

.footer-widget-area ul li {
    padding: 4px 0;
}

.footer-widget-area ul li a {
    color: #9DAAAD;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

.footer-widget-area ul li a:hover {
    color: #C5B77F;
}

.footer-widget-area p {
    color: #9DAAAD;
    font-size: 0.82rem;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    font-size: 0.76rem;
    color: #6B7C80;
}

.footer-bottom span {
    margin: 0 6px;
}

/* === SEARCH FORM === */
.search-form {
    display: flex;
    gap: 0;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #E8E5DF;
    border-radius: 4px 0 0 4px;
    font-size: 0.92rem;
    outline: none;
    color: #1E2A2E;
    background: #FEFEFD;
}

.search-form .search-field:focus {
    border-color: #3A6B6B;
}

.search-form .search-submit {
    padding: 10px 18px;
    background: #B5452D;
    color: #fff;
    border: 1px solid #B5452D;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.25s ease;
}

.search-form .search-submit:hover {
    background: #8F3A25;
}

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

.error-page h1 {
    font-size: 4rem;
    color: #B5452D;
    margin-bottom: 10px;
}

.error-page p {
    font-size: 1.05rem;
    color: #6B7C80;
    margin-bottom: 24px;
}

.error-page .search-form {
    max-width: 460px;
    margin: 0 auto 24px;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1E2A2E;
    color: #E8E5DF;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 300;
    font-size: 0.85rem;
    box-shadow: 0 -2px 12px rgba(30, 42, 46, 0.15);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner p {
    margin: 0;
    flex: 0 1 auto;
}

.cookie-accept-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    background: #B5452D;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.25s ease;
}

.cookie-accept-btn:hover {
    background: #8F3A25;
}

/* === PRACTICE MODE === */
body.practice-mode .sidebar-area,
body.practice-mode .cards-grid,
body.practice-mode .front-section:not(.practice-safe) {
    display: none;
}

body.practice-mode .main-content.has-sidebar {
    flex: 0 0 100%;
}

/* === PAGE BLOG === */
.blog-page-header {
    margin-bottom: 24px;
}

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

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .content-area {
        flex-direction: column;
    }

    .main-content.has-sidebar {
        flex: 0 0 100%;
    }

    .sidebar-area {
        flex: 0 0 100%;
    }

    .main-content.full-width {
        width: 100%;
        max-width: 100%;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .header-nav ul {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-nav.nav-open ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FEFEFD;
        border-bottom: 1px solid #E8E5DF;
        padding: 12px 20px;
        box-shadow: 0 4px 12px rgba(30, 42, 46, 0.08);
        z-index: 50;
    }

    .brand-desc {
        display: none;
    }

    .card-horizontal {
        flex-direction: column;
    }

    .card-horizontal .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-horizontal .card-thumb-wrap a {
        position: static;
    }

    .card-horizontal .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

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

    h1 { font-size: 1.6rem; }
    h2 {
        font-size: 1.3rem;
        padding-left: 0;
        border-left: none;
    }
    h2::before {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        background: #B5452D;
        border-radius: 50%;
        margin-right: 8px;
        vertical-align: middle;
    }

    .entry-title {
        border-left: none;
        padding-left: 0;
    }

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

    .theme-tiles {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .steps-row {
        grid-template-columns: 1fr;
    }

    .btn-primary,
    .btn-secondary,
    .btn-resource {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    .post-nav {
        flex-direction: column;
    }

    .cookie-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .header-inner {
        gap: 10px;
    }

    .practice-toggle span {
        display: none;
    }

    .brand-info {
        display: none;
    }
}

/* === SLIDER === */
.slider-container {
    position: relative;
    overflow: hidden;
    margin: 24px 0;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slider-track .card {
    flex: 0 0 100%;
    min-width: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E8E5DF;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.slider-dot.active {
    background: #B5452D;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 42, 46, 0.7);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s ease;
}

.slider-btn:hover {
    background: rgba(30, 42, 46, 0.9);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* === SCREEN READER === */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}
