:root {
    --primary: #3ead25;
    --primary-dark: #2f8a1c;
    --primary-light: #e8f6e4;
    --secondary: #2f48b6;
    --secondary-dark: #24388f;
    --secondary-light: #e9ecf8;
    --accent: #b21f3a;
    --accent-dark: #8a182c;
    --accent-light: #f9e8ea;
    --text-main: #1a1f2c;
    --text-muted: #5c6474;
    --bg-page: #f4f6f8;
    --bg-card: #ffffff;
    --border: #d8dde6;
    --shadow: 0 4px 20px rgba(26, 31, 44, 0.08);
    --shadow-sm: 0 2px 8px rgba(26, 31, 44, 0.06);
    --radius: 0.75rem;
    --radius-sm: 0.375rem;
    --container-max: 1200px;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-page);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(62, 173, 37, 0.06) 0%, transparent 25%), radial-gradient(circle at 90% 80%, rgba(47, 72, 182, 0.06) 0%, transparent 25%),
        linear-gradient(135deg, #f4f6f8 0%, #eef1f7 100%);
    background-attachment: fixed;
}

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

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    line-height: 1.25;
    font-weight: 700;
    color: var(--text-main);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Bootstrap-like grid */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
    margin-right: -1rem;
}

.col,
.col-auto,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-md-4,
.col-md-8,
.col-lg-4,
.col-lg-8 {
    position: relative;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}
.col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}
.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}
.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}
.col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}
.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}
.col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}
.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}
.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}
.col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}
.col-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}
.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}
.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}
.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

@media (max-width: 768px) {
    .col-md-4,
    .col-md-8,
    .col-lg-4,
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Utility spacing */
.m-0 {
    margin: 0;
}
.m-1 {
    margin: 0.25rem;
}
.m-2 {
    margin: 0.5rem;
}
.m-3 {
    margin: 1rem;
}
.m-4 {
    margin: 1.5rem;
}
.m-5 {
    margin: 3rem;
}

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

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

.p-0 {
    padding: 0;
}
.p-1 {
    padding: 0.25rem;
}
.p-2 {
    padding: 0.5rem;
}
.p-3 {
    padding: 1rem;
}
.p-4 {
    padding: 1.5rem;
}
.p-5 {
    padding: 3rem;
}

.pt-1 {
    padding-top: 0.25rem;
}
.pt-2 {
    padding-top: 0.5rem;
}
.pt-3 {
    padding-top: 1rem;
}
.pb-1 {
    padding-bottom: 0.25rem;
}
.pb-2 {
    padding-bottom: 0.5rem;
}
.pb-3 {
    padding-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition:
        background-color 0.2s,
        border-color 0.2s,
        color 0.2s,
        transform 0.15s;
    text-decoration: none;
    background: transparent;
}

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

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

.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #ffffff;
    text-decoration: none;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #ffffff;
    text-decoration: none;
}

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

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.badge-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.badge-secondary {
    background: var(--secondary-light);
    color: var(--secondary-dark);
}

.badge-accent {
    background: var(--accent-light);
    color: var(--accent-dark);
}

/* Forms */
.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    line-height: 1.5;
    background: #ffffff;
    color: var(--text-main);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(62, 173, 37, 0.15);
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.alert-primary {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.alert-secondary {
    background: var(--secondary-light);
    border-color: var(--secondary);
    color: var(--secondary-dark);
}

.alert-accent {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent-dark);
}

/* Header / Navbar */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    margin-right: 1.5rem;
}

.navbar-brand:hover {
    color: var(--text-main);
    text-decoration: none;
}

.navbar-brand img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-name b {
    color: var(--primary);
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.navbar-toggler {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    cursor: pointer;
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-main);
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 240px;
    padding: 0.5rem;
    list-style: none;
    margin: 0.25rem 0 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.55rem;
    opacity: 0.7;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--primary-light);
    text-decoration: none;
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--text-main) 0%, #2a3040 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer-copy {
    margin: 0;
}

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

/* Main layout */
main {
    flex: 1 0 auto;
    padding: 2rem 0;
}

.sidebar {
    margin-bottom: 2rem;
}

@media (min-width: 769px) {
    .sidebar {
        margin-bottom: 0;
    }
}

/* Widgets */
.widget {
    margin-bottom: 1.75rem;
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: relative;
    padding-left: 0.75rem;
}

.sidebar-widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.widget-categories-inner,
.widget-recent-inner,
.widget-tags-inner,
.widget-related-inner,
.widget-feedback-inner {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    border: 1px solid var(--border);
}

/* Categories widget */
.category-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    min-height: 90px;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

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

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 31, 44, 0.78) 0%, rgba(26, 31, 44, 0.35) 100%);
    border-radius: inherit;
}

.category-card__title {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 1rem;
}

.category-card__desc {
    position: relative;
    z-index: 1;
    font-size: 0.8125rem;
    opacity: 0.9;
    line-height: 1.4;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: #ffffff;
}

.category-card:hover::before {
    background: linear-gradient(135deg, rgba(47, 72, 182, 0.78) 0%, rgba(26, 31, 44, 0.45) 100%);
}

/* Recent widget */
.recent-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.75rem;
    min-height: 110px;
}

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

.recent-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.recent-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.recent-card__content {
    position: relative;
    z-index: 2;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 110px;
}

.recent-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.recent-card__date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.recent-card__link {
    display: block;
}

.recent-card__link:hover {
    text-decoration: none;
}

.recent-card__link:hover .recent-card__title {
    color: var(--primary-light);
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-pill {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
}

.tag-pill:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    text-decoration: none;
}

.tags-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.tags-label {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Related widget */
.widget-related-inner {
    padding: 1rem;
}

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

.related-widget-list li {
    margin-bottom: 0.625rem;
}

.related-widget-list li:last-child {
    margin-bottom: 0;
}

.related-widget-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 0.9375rem;
    font-weight: 600;
}

.related-widget-list a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
}

/* Feedback widget */
.widget-feedback__text {
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.widget-feedback__open {
    width: 100%;
}

.widget-feedback__modal {
    border: none;
    border-radius: var(--radius);
    padding: 0;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow);
}

.widget-feedback__modal::backdrop {
    background: rgba(26, 31, 44, 0.6);
}

.widget-feedback__form {
    padding: 1.5rem;
}

.widget-feedback__form h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.widget-feedback__form .form-control {
    margin-bottom: 0.875rem;
}

.widget-feedback__message {
    min-height: 120px;
    resize: vertical;
}

.widget-feedback__submit {
    width: 100%;
    margin-bottom: 0.5rem;
}

.widget-feedback__close {
    width: 100%;
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
}

.widget-feedback__close:hover {
    background: var(--bg-page);
    color: var(--text-main);
}

.widget-feedback__success {
    margin: 0;
    padding: 1rem;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
}

/* Homepage */
.homepage-intro {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.homepage-intro h1 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.homepage-intro p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.125rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Cards grid */
.cards-grid {
    display: grid;
    gap: 1.5rem;
}

.cards-grid--homepage {
    grid-template-columns: repeat(2, 1fr);
}

.cards-grid--category {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .cards-grid--homepage,
    .cards-grid--category {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 31, 44, 0.12);
}

.card__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__body {
    padding: 1.25rem;
}

.card__badge {
    margin-bottom: 0.75rem;
}

.card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card__title a {
    color: #fff;
    text-decoration: none;
}

.card__title a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.card__excerpt {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Category overlay card */
.card--overlay {
    display: flex;
    align-items: flex-end;
    min-height: 300px;
    border: none;
}

.card--overlay .card__image-wrap {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.card--overlay .card__image-wrap img {
    position: absolute;
    inset: 0;
}

.card--overlay .card__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 31, 44, 0.92) 0%, rgba(26, 31, 44, 0.5) 55%, rgba(26, 31, 44, 0.2) 100%);
    z-index: 1;
}

.card--overlay .card__body {
    position: relative;
    z-index: 2;
    width: 100%;
    background: transparent;
    color: #ffffff;
    padding: 1.5rem;
}

.card--overlay .card__excerpt {
    color: rgba(255, 255, 255, 0.85);
}

.card--overlay .card__date {
    color: rgba(255, 255, 255, 0.75);
}

.card--overlay .card__title a:hover {
    color: var(--primary-light);
}

/* Breadcrumbs */
.breadcrumbs {
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0 0 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumbs-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumbs-link {
    color: var(--secondary);
    font-weight: 500;
}

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

.breadcrumbs-item--current {
    color: var(--text-muted);
    font-weight: 500;
}

/* Article */
.article-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 2rem;
}

.article-header {
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.article-image {
    margin: 0 0 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Article content */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    color: var(--secondary-dark);
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content a {
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: var(--accent);
}

.article-content strong,
.article-content b {
    font-weight: 700;
    color: var(--text-main);
}

.article-content em {
    font-style: italic;
    color: var(--text-muted);
}

/* Custom content blocks */
.article-content div.infobox {
    background: var(--secondary-light);
    border-left: 5px solid var(--secondary);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.article-content div.infobox p {
    margin-bottom: 0.875rem;
}

.article-content div.infobox p:last-child {
    margin-bottom: 0;
}

.article-content div.infobox strong {
    color: var(--secondary-dark);
}

.article-content div.infobox a {
    color: var(--secondary);
    font-weight: 600;
}

.article-content div.stat-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.article-content div.stat-block h3 {
    margin-top: 0;
    color: var(--text-main);
}

.article-content div.stat-block p {
    margin-bottom: 1rem;
}

.article-content div.stat-block strong {
    color: var(--primary-dark);
}

.article-content div.stat-block ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
}

.article-content div.stat-block li {
    margin-bottom: 0.375rem;
}

.article-content div.stat-block table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.article-content div.stat-block th,
.article-content div.stat-block td {
    padding: 0.625rem;
    border: 1px solid var(--border);
    text-align: left;
}

.article-content div.stat-block thead {
    background: var(--bg-page);
}

.article-content div.stat-block th {
    font-weight: 700;
}

.article-content div.stat-block a {
    color: var(--secondary);
}

.article-content div.highlight-box {
    background: linear-gradient(135deg, var(--accent-light) 0%, #ffffff 100%);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.article-content div.highlight-box p {
    margin-bottom: 1rem;
}

.article-content div.highlight-box blockquote {
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    font-style: italic;
    color: var(--text-muted);
}

.article-content div.highlight-box strong {
    color: var(--accent-dark);
}

.article-content div.highlight-box em {
    color: var(--accent);
}

.article-content div.highlight-box a {
    color: var(--accent);
}

.article-content table.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-content table.comparison-table th,
.article-content table.comparison-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.article-content table.comparison-table thead {
    background: var(--secondary);
    color: #ffffff;
}

.article-content table.comparison-table th {
    font-weight: 700;
}

.article-content table.comparison-table tbody tr:nth-child(even) {
    background: var(--bg-page);
}

.article-content table.comparison-table tbody tr:hover {
    background: var(--secondary-light);
}

.article-content ul.pros-cons {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .article-content ul.pros-cons {
        grid-template-columns: 1fr;
    }
}

.article-content ul.pros-cons > li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.article-content ul.pros-cons h3 {
    margin-top: 0;
    font-size: 1.125rem;
}

.article-content ul.pros-cons ul {
    margin: 0;
    padding-left: 1.25rem;
}

.article-content ul.pros-cons li li {
    margin-bottom: 0.5rem;
}

.article-content ul.pros-cons strong {
    color: var(--primary-dark);
}

.article-content div.step-list {
    background: var(--bg-page);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.article-content div.step-list ol {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-content div.step-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
}

.article-content div.step-list li:last-child {
    margin-bottom: 0;
}

.article-content div.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.article-content div.step-list h3 {
    margin-top: 0;
    font-size: 1.125rem;
}

.article-content div.step-list p {
    margin-bottom: 0.5rem;
}

.article-content div.step-list strong {
    color: var(--primary-dark);
}

.article-content div.step-list ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.article-content div.checklist {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.article-content div.checklist h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.article-content div.checklist ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-content div.checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-content div.checklist li:last-child {
    margin-bottom: 0;
}

.article-content div.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.article-content div.checklist a {
    color: var(--primary-dark);
    font-weight: 600;
}

.article-content div.warning-box {
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.article-content div.warning-box strong {
    color: var(--accent-dark);
}

.article-content div.warning-box ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
}

.article-content div.warning-box li {
    margin-bottom: 0.375rem;
}

.article-content div.warning-box a {
    color: var(--accent-dark);
    font-weight: 600;
}

.article-content div.tip-box {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.article-content div.tip-box strong {
    color: var(--primary-dark);
}

.article-content div.tip-box em {
    color: var(--text-muted);
    font-style: italic;
}

.article-content div.tip-box p {
    margin-bottom: 0.75rem;
}

.article-content div.tip-box p:last-child {
    margin-bottom: 0;
}

.article-content div.tip-box a {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Related block */
.related-block {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.related-block h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.related-item {
    background: var(--bg-page);
    border-radius: var(--radius-sm);
}

.related-link {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.related-link:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }

    .navbar > .container {
        flex-wrap: wrap;
    }

    .navbar-collapse {
        display: none;
        width: 100%;
        padding: 1rem 0;
    }

    .navbar-collapse.open {
        display: block;
    }

    .nav {
        flex-direction: column;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        margin: 0;
        min-width: auto;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .homepage-intro h1 {
        font-size: 1.375rem;
    }

    .article-wrapper {
        padding: 1.25rem;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .navbar-brand img {
        width: 40px;
        height: 40px;
    }

    .site-name {
        font-size: 1.125rem;
    }

    main {
        padding: 1.5rem 0;
    }
}
