/* =============================================
   India Stock Market Insights Theme
   Professional, Google Ads Compliant
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --accent: #00c853;
    --accent-dark: #009624;
    --danger: #d32f2f;
    --text: #202124;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #0d1117;
    --border: #dadce0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --container-width: 1200px;
    --header-height: 64px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ---------- Header / Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.main-nav ul {
    display: flex;
    gap: 8px;
}

.main-nav ul li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.main-nav ul li a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    margin-top: var(--header-height);
    padding: 80px 24px 60px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a73e8' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(90deg, #4dabf7, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #8b949e;
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 560px;
}

.stock-search-box {
    display: flex;
    gap: 0;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.3s;
}

.stock-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.stock-input {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-family);
    outline: none;
}

.stock-input::placeholder {
    color: #6e7681;
}

.stock-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.stock-btn:hover {
    background: var(--primary-dark);
}

.hero-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.hero-tags span {
    color: #6e7681;
}

.hero-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #8b949e;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    transition: all 0.2s;
}

.hero-tags a:hover {
    background: rgba(26, 115, 232, 0.15);
    color: #4dabf7;
    border-color: rgba(26, 115, 232, 0.3);
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 50px;
}

.stat-card {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    min-width: 140px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.8rem;
    color: #6e7681;
    margin-top: 4px;
}

/* ---------- Scroll Animation ---------- */
.edu-card,
.feature-card,
.article-card,
.trust-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.edu-card.visible,
.feature-card.visible,
.article-card.visible,
.trust-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Sections ---------- */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

/* ---------- Features Section ---------- */
.features-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Market / Articles Section ---------- */
.market-section {
    padding: 80px 24px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.article-link {
    display: block;
    color: var(--text);
    text-decoration: none;
}

.article-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-body {
    padding: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.article-category {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.article-date {
    color: var(--text-light);
}

.article-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-intro {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.read-more {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

/* ---------- Trust Section ---------- */
.trust-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-item {
    padding: 32px 16px;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.trust-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.about-links a {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.about-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ---------- Educational Section ---------- */
.edu-section {
    padding: 80px 24px;
    background: var(--bg);
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edu-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.edu-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}

.edu-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.edu-card ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.edu-card ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    list-style: disc;
    margin-bottom: 4px;
}

.edu-card a {
    color: var(--primary);
    text-decoration: underline;
}

/* ---------- Disclaimer Section ---------- */
.disclaimer-section {
    padding: 60px 24px;
    background: #fff8e1;
}

.disclaimer-box {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #ff9800;
    border-radius: var(--radius);
    padding: 36px 32px;
}

.disclaimer-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 16px;
}

.disclaimer-box p {
    font-size: 0.9rem;
    color: #5d4037;
    line-height: 1.7;
    margin-bottom: 12px;
}

.disclaimer-box a {
    color: var(--primary);
    text-decoration: underline;
}

/* ---------- Archive / Category / Search Pages ---------- */
.archive-main {
    margin-top: calc(var(--header-height) + 24px);
    padding: 40px 0 80px;
    min-height: 60vh;
}

.archive-header {
    margin-bottom: 40px;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
}

.archive-desc {
    color: var(--text-secondary);
    margin-top: 8px;
}

.archive-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.archive-content .articles-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* ---------- Single Article Page ---------- */
.article-main {
    margin-top: calc(var(--header-height) + 24px);
    padding: 40px 0 80px;
}

.article-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.post-article, .post-page {
    background: var(--bg);
}

.post-header {
    margin-bottom: 32px;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.post-category-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 16px;
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.post-featured-image {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.post-content h2, .post-content h3, .post-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.1rem; }

.post-content p {
    margin-bottom: 16px;
}

.post-content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--bg-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content ul, .post-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content li { margin-bottom: 6px; }

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content th, .post-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.post-content th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.post-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 16px 0;
    font-size: 0.9rem;
}

.post-content code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    padding: 0;
}

/* ---------- Post Footer ---------- */
.post-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tags-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.tag-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.post-share span {
    font-weight: 600;
    color: var(--text-secondary);
}

.share-link {
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.share-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ---------- Post Navigation ---------- */
.post-nav {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-prev, .post-nav-next {
    display: block;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: all 0.2s;
}

.post-nav-next {
    text-align: right;
}

.post-nav-prev:hover, .post-nav-next:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 6px;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ---------- Post Disclaimer ---------- */
.post-disclaimer {
    margin-top: 32px;
    padding: 20px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #795548;
    line-height: 1.6;
}

/* ---------- Comments ---------- */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.comment-form-wrap {
    margin-bottom: 32px;
}

.comment-form-wrap h4 {
    font-size: 1rem;
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.submit-btn {
    padding: 10px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.comment-reply-btn {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 6px;
    display: inline-block;
}

/* ---------- Sidebar Widgets ---------- */
.sidebar-widgets {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 16px;
}

.widget-content {
    font-size: 0.9rem;
    line-height: 1.8;
}

.widget-content ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.widget-content ul li:last-child {
    border-bottom: none;
}

.widget-content a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.widget-content a:hover {
    color: var(--primary);
}

/* ---------- Pagination ---------- */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.page-nav {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.page-nav .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-nav .page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-nav .page-link.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: #8b949e;
    padding: 60px 0 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #8b949e;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.7;
}

.footer-bottom p {
    margin-bottom: 4px;
}

/* ---------- 404 Page ---------- */
.error-main {
    margin-top: var(--header-height);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-container {
    text-align: center;
    padding: 40px;
}

.error-container h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.error-container h2 {
    font-size: 1.5rem;
    margin: 16px 0;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-back {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.2s;
}

.btn-back:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ---------- No Results ---------- */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .features-grid,
    .edu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .archive-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: -1;
    }
    
    .sidebar-widgets {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 50px 16px 40px;
        min-height: auto;
    }
    
    .stock-search-box {
        flex-direction: column;
    }
    
    .stock-btn {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }
    
    .stat-label {
        margin-top: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 16px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }
    
    .main-nav ul li a {
        padding: 12px 16px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-content .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .features-section,
    .market-section,
    .trust-section,
    .edu-section,
    .disclaimer-section {
        padding: 48px 16px;
    }
    
    .edu-grid {
        grid-template-columns: 1fr;
    }
    
    .about-links {
        gap: 12px;
    }
    
    .about-links a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .disclaimer-box {
        padding: 24px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    .post-nav {
        grid-template-columns: 1fr;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .trust-item {
        padding: 20px 8px;
    }
    
    .trust-number {
        font-size: 1.75rem;
    }
}

/* ---------- Utility ---------- */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.article-content-area.wide {
    max-width: 800px;
    margin: 0 auto;
}

/* Z-Blog default class compatibility */
.zbline { clear: both; }
