/* ========================================
   CSS Reset / Normalize
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #1a56db;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e429f;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    line-height: 1.3;
    font-weight: 700;
}

/* ========================================
   Typography System
   ======================================== */
h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 600;
}

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

.container-narrow {
    max-width: 860px;
}

main {
    min-height: 50vh;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    gap: 0.5rem;
    line-height: 1.4;
}

.btn-primary {
    background: #1a56db;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1e429f;
    color: #ffffff;
}

.btn-outline {
    border: 2px solid #d1d5db;
    color: #374151;
    background: transparent;
}

.btn-outline:hover {
    border-color: #1a56db;
    color: #1a56db;
}

/* ========================================
   Navigation
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar {
    height: 64px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-links.active {
    display: flex;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #1a56db;
    background: #f3f4f6;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form {
    display: none;
    align-items: center;
    position: relative;
}

.search-form.active {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 1rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    padding-right: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
    background: #f9fafb;
}

.search-input:focus {
    border-color: #1a56db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.search-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

.search-form.active .search-btn {
    right: 1.75rem;
}

.search-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: #374151;
    border-radius: 0.375rem;
    transition: color 0.2s ease;
}

.search-toggle:hover {
    color: #1a56db;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 2px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, #111827 0%, #1e3a5f 100%);
    color: #ffffff;
    padding: 3rem 0;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero .category-badge {
    background: rgba(14, 159, 110, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.hero-title {
    font-size: 1.75rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.hero-title a {
    color: #ffffff;
}

.hero-title a:hover {
    color: #93c5fd;
}

.hero-summary {
    color: #d1d5db;
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-meta {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.hero-image {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: #f9fafb;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: #111827;
}

.section-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a56db;
}

.section-link:hover {
    color: #1e429f;
}

/* ========================================
   Article Cards
   ======================================== */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.article-card {
    background: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

.article-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 0.75rem 0.75rem 0 0;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.category-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    background: #eef2ff;
    color: #1a56db;
    width: fit-content;
    transition: background 0.2s ease;
}

.category-badge:hover {
    background: #dbeafe;
    color: #1a56db;
}

.category-badge-lg {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
}

.article-card-title {
    font-size: 1.125rem;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.4;
}

.article-card-title a {
    color: #111827;
}

.article-card-title a:hover {
    color: #1a56db;
}

.article-card-summary {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: auto;
}

.meta-separator {
    margin: 0 0.125rem;
}

/* ========================================
   Content with Sidebar Layout
   ======================================== */
.content-with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    background: #f9fafb;
    padding: 2.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6b7280;
    font-size: 1.0625rem;
}

.page-count {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* ========================================
   Active Filters
   ======================================== */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.filter-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #eef2ff;
    color: #1a56db;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.filter-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(26, 86, 219, 0.1);
    color: #1a56db;
    font-size: 0.875rem;
    line-height: 1;
}

.filter-remove:hover {
    background: rgba(26, 86, 219, 0.2);
    color: #1e429f;
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    width: 100%;
}

.sidebar-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1a56db;
}

.sidebar-search {
    display: flex;
    position: relative;
}

.sidebar-search-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    padding-right: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.sidebar-search-input:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.sidebar-search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    padding: 0.375rem;
    display: flex;
    align-items: center;
}

.sidebar-categories li {
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    color: #374151;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.sidebar-categories a:hover {
    color: #1a56db;
}

.cat-count {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========================================
   Tag Cloud
   ======================================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-lg {
    gap: 0.625rem;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #1a56db;
    color: #ffffff;
}

.tag-cloud-lg .tag-link {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
}

.tag-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
}

.tag-link:hover .tag-count {
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   Category Cards
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-card:hover {
    border-color: #1a56db;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.1);
    transform: translateY(-2px);
}

.category-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.category-card-name {
    font-size: 0.9375rem;
    color: #111827;
    margin-bottom: 0.25rem;
}

.category-card-count {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* ========================================
   Article Detail
   ======================================== */
.article-detail {
    padding: 2rem 0 3rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: #6b7280;
}

.breadcrumb a:hover {
    color: #1a56db;
}

.breadcrumb-sep {
    color: #d1d5db;
}

.breadcrumb-current {
    color: #9ca3af;
}

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

.article-title {
    font-size: 2rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.article-inline-image {
    margin: 2rem 0;
    width: 100%;
}

.article-inline-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-inline-image figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

.article-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Table of Contents */
.toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    order: -1;
}

.toc:empty,
.toc.hidden {
    display: none;
}

.toc-title {
    font-size: 0.9375rem;
    color: #111827;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 0.25rem;
}

.toc-list a {
    display: block;
    padding: 0.375rem 0;
    padding-left: 0;
    color: #6b7280;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
    color: #1a56db;
}

.toc-list a.active {
    font-weight: 600;
}

.toc-list .toc-h3 {
    padding-left: 1rem;
    font-size: 0.8125rem;
}

/* Article Content Typography */
.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

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

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

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

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

.article-content blockquote {
    border-left: 4px solid #1a56db;
    background: #f9fafb;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #4b5563;
    font-style: italic;
}

.article-content code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #1a56db;
}

.article-content pre {
    background: #111827;
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.article-content a {
    color: #1a56db;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: #1e429f;
}

.article-content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-content th {
    font-weight: 600;
    background: #f9fafb;
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.tags-label {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
}

/* Article Navigation */
.article-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   Search Page
   ======================================== */
.search-page-form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    max-width: 600px;
}

.search-page-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-page-input:focus {
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.search-results-info {
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.pagination-link:hover:not(.disabled):not(.active) {
    border-color: #1a56db;
    color: #1a56db;
}

.pagination-link.active {
    background: #1a56db;
    border-color: #1a56db;
    color: #ffffff;
}

.pagination-link.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-prev,
.pagination-next {
    min-width: auto;
    padding: 0 0.75rem;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.9375rem;
}

.empty-state a {
    color: #1a56db;
    font-weight: 500;
}

/* ========================================
   Error Page (404)
   ======================================== */
.error-page {
    padding: 4rem 0;
    text-align: center;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-title {
    font-size: 5rem;
    font-weight: 800;
    color: #1a56db;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-subtitle {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 1rem;
}

.error-message {
    color: #6b7280;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.error-suggestions {
    text-align: left;
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.error-suggestions h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.error-suggestions ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.error-suggestions li {
    margin-bottom: 0.375rem;
}

.error-suggestions a {
    color: #1a56db;
    font-weight: 500;
}

/* ========================================
   About Page
   ======================================== */
.about-content {
    padding: 2rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #111827;
}

.about-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #374151;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.about-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.about-card:hover {
    border-color: #1a56db;
}

.about-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.about-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.about-card p {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 0;
}

.about-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.about-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.0625rem;
    line-height: 1.7;
    border-bottom: 1px solid #f3f4f6;
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0e9f6e;
    font-weight: 700;
}

/* ========================================
   Legal / Privacy Content
   ======================================== */
.legal-content {
    padding: 2rem 0;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.legal-section h3 {
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.legal-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.legal-section li {
    margin-bottom: 0.375rem;
    color: #4b5563;
    line-height: 1.6;
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
    background: linear-gradient(135deg, #1a56db 0%, #1e429f 100%);
    padding: 3rem 0;
    color: #ffffff;
}

.newsletter-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.newsletter-content h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.newsletter-content p {
    color: #bfdbfe;
    font-size: 1rem;
    margin-bottom: 0;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    width: 100%;
    max-width: 480px;
    flex-direction: column;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: border-color 0.2s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-btn {
    background: #ffffff;
    color: #1a56db;
    font-weight: 700;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #f3f4f6;
    color: #1e429f;
}

.newsletter-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.newsletter-btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(26, 86, 219, 0.3);
    border-top-color: #1a56db;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 3rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-about {
    font-size: 0.9375rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-img {
    height: 120px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

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

.footer-links a {
    color: #9ca3af;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #1a56db;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0;
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a56db;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1e429f;
    transform: translateY(-2px);
}

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

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

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

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

/* ========================================
   Responsive: 640px+
   ======================================== */
@media (min-width: 640px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }

    .container {
        padding: 0 1.5rem;
    }

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

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-image img {
        height: 320px;
    }

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

    .article-title {
        font-size: 2.25rem;
    }

    .error-title {
        font-size: 6rem;
    }

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

    .section {
        padding: 4rem 0;
    }
}

/* ========================================
   Responsive: 768px+
   ======================================== */
@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-inner {
        flex-direction: row;
        align-items: center;
    }

    .hero-content {
        flex: 1;
    }

    .hero-image {
        flex: 0 0 45%;
    }

    .hero-image img {
        height: 360px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .article-layout {
        flex-direction: row;
    }

    .toc {
        position: sticky;
        top: 80px;
        order: 0;
        flex: 0 0 220px;
        align-self: flex-start;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

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

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .page-header {
        padding: 3rem 0;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

/* ========================================
   Responsive: 1024px+
   ======================================== */
@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.75rem;
    }

    .search-form {
        display: flex;
    }

    .search-input {
        width: 220px;
    }

    .search-form .search-btn {
        right: 0.5rem;
    }

    .search-toggle,
    .hamburger {
        display: none;
    }

    .content-with-sidebar {
        flex-direction: row;
    }

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

    .sidebar {
        width: 300px;
        flex-shrink: 0;
    }

    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .content-with-sidebar .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero-title {
        font-size: 2.75rem;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-card {
    animation: fadeIn 0.4s ease forwards;
}

.articles-grid .article-card:nth-child(2) { animation-delay: 0.05s; }
.articles-grid .article-card:nth-child(3) { animation-delay: 0.1s; }
.articles-grid .article-card:nth-child(4) { animation-delay: 0.15s; }
.articles-grid .article-card:nth-child(5) { animation-delay: 0.2s; }
.articles-grid .article-card:nth-child(6) { animation-delay: 0.25s; }

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    .newsletter-section,
    .sidebar,
    .back-to-top,
    .pagination,
    .toc,
    .error-actions,
    .search-form,
    .search-toggle,
    .hamburger,
    .article-nav,
    .breadcrumb {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .article-content {
        font-size: 11pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .hero {
        background: #f0f0f0 !important;
        color: #000 !important;
    }

    .hero-title a,
    .hero-summary {
        color: #000 !important;
    }
}

/* ========================================
   Contact Page
   ======================================== */
.contact-content {
    padding: 2rem 0 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-wrap h2,
.contact-info-wrap h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.contact-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: #1e293b;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #fff;
}

.contact-form .form-input-small {
    max-width: 160px;
}

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

.captcha-group label {
    font-size: 0.95rem;
}

.contact-submit-btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

.contact-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.contact-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.contact-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
}

.contact-info-item:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

.contact-info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.contact-info-item h3 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.contact-info-item p,
.contact-info-item address {
    font-size: 0.93rem;
    color: #64748b;
    font-style: normal;
    line-height: 1.6;
}

.contact-info-item a {
    color: #2563eb;
    text-decoration: none;
}

.contact-info-item a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
