/* ===========================
   RAOGY GUIDE - Main Stylesheet
   Clean, minimal design with blue accent
   =========================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --secondary-color: #8B5CF6;
    --accent-color: #10B981;
    --text-dark: #0F172A;
    --text-medium: #475569;
    --text-light: #64748B;
    --bg-white: #ffffff;
    --bg-light: #F8FAFC;
    --bg-lighter: #F1F5F9;
    --bg-gradient: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --bg-gradient-soft: linear-gradient(135deg, #F5F7FA 0%, #C3CFE2 100%);
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-color: 0 8px 32px rgba(59, 130, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: var(--bg-lighter);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, all 0.3s ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header.header-visible {
    transform: translateY(0);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.logo a img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo a:hover img {
    opacity: 0.8;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-medium);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.search-bar {
    flex: 0 0 280px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

/* Theme Toggle Button */
.theme-toggle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.theme-toggle:active {
    transform: rotate(180deg) scale(0.95);
}

/* Dark Mode Variables */
body.dark-mode {
    --text-dark: #F1F5F9;
    --text-medium: #CBD5E1;
    --text-light: #94A3B8;
    --bg-white: #1E293B;
    --bg-light: #0F172A;
    --bg-lighter: #1E293B;
    --border-color: #334155;
    --primary-color: #60A5FA;
    --primary-dark: #3B82F6;
    background-color: #0F172A;
    color: #F1F5F9;
}

body.dark-mode .site-header {
    background-color: rgba(15, 23, 42, 0.95);
    border-bottom-color: #334155;
}

body.dark-mode .category-card,
body.dark-mode .post-card {
    background-color: #1E293B;
    border-color: #334155;
}

body.dark-mode .category-card:hover,
body.dark-mode .post-card:hover {
    border-color: #60A5FA;
    box-shadow: 0 20px 50px rgba(96, 165, 250, 0.2);
}

body.dark-mode .featured-categories {
    background-color: #0F172A;
}

body.dark-mode .recent-posts {
    background: linear-gradient(to bottom, #0F172A 0%, #1E293B 100%);
}

body.dark-mode .post-content h3 a,
body.dark-mode .category-card h3,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
    color: #F1F5F9;
}

body.dark-mode .section-title::after {
    background: linear-gradient(90deg, #60A5FA, #8B5CF6);
}

body.dark-mode .search-bar input {
    background-color: #1E293B;
    border-color: #334155;
    color: #F1F5F9;
}

body.dark-mode .search-bar input::placeholder {
    color: #64748B;
}

body.dark-mode .search-bar input:focus {
    border-color: #60A5FA;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-mode .main-nav a {
    color: #CBD5E1;
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a.active {
    color: #60A5FA;
}

body.dark-mode .site-footer {
    background-color: #020617;
}

/* Dark Mode - Article Pages */
body.dark-mode .article-container {
    background-color: #0F172A;
}

body.dark-mode .article-breadcrumb {
    color: #94A3B8;
}

body.dark-mode .article-breadcrumb a {
    color: #60A5FA;
}

body.dark-mode .article-header h1 {
    color: #F1F5F9;
}

body.dark-mode .article-meta {
    color: #94A3B8;
}

body.dark-mode .article-content {
    color: #CBD5E1;
}

body.dark-mode .article-content h2,
body.dark-mode .article-content h3,
body.dark-mode .article-content h4 {
    color: #F1F5F9;
}

body.dark-mode .article-content strong {
    color: #F1F5F9;
}

body.dark-mode .article-content code {
    background-color: #1E293B;
    color: #60A5FA;
    border-color: #334155;
}

body.dark-mode .article-content blockquote {
    background-color: #1E293B;
    border-left-color: #60A5FA;
    color: #CBD5E1;
}

/* Dark Mode - Inline styled boxes (example prompts) */
body.dark-mode .article-content div[style*="background"] {
    background: #1E293B !important;
    border: 1px solid #334155;
}

/* Dark Mode - Tags */
body.dark-mode .article-tags .tag,
body.dark-mode .tag {
    background-color: #1E293B;
    color: #60A5FA;
    border: 1px solid #334155;
}

body.dark-mode .article-tags .tag:hover,
body.dark-mode .tag:hover {
    background-color: #334155;
    border-color: #60A5FA;
}

/* Dark Mode - Related Posts */
body.dark-mode .related-posts {
    border-top-color: #334155;
}

body.dark-mode .related-posts h2,
body.dark-mode .related-posts h3 {
    color: #F1F5F9;
}

body.dark-mode .related-card {
    background-color: #1E293B;
    border-color: #334155;
}

body.dark-mode .related-card:hover {
    border-color: #60A5FA;
    background-color: #334155;
}

body.dark-mode .related-card h4 a {
    color: #F1F5F9;
}

body.dark-mode .related-card p {
    color: #94A3B8;
}

/* Dark Mode - Forms */
body.dark-mode .form-group label {
    color: #F1F5F9;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #1E293B;
    border-color: #334155;
    color: #F1F5F9;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #64748B;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #60A5FA;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-mode .contact-email {
    background-color: #1E293B;
    border: 1px solid #334155;
}

/* Dark Mode - Page Headers */
body.dark-mode .page-header {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border-bottom-color: #334155;
}

body.dark-mode .page-header h1 {
    color: #F1F5F9;
}

body.dark-mode .page-header p {
    color: #94A3B8;
}

/* Dark Mode - Policy/Content Pages */
body.dark-mode .policy-content {
    background-color: #1E293B;
    color: #CBD5E1;
}

body.dark-mode .policy-content h2,
body.dark-mode .policy-content h3 {
    color: #F1F5F9;
}

body.dark-mode .policy-content a {
    color: #60A5FA;
}

body.dark-mode .policy-content ul li::before {
    color: #60A5FA;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Featured Categories */
.featured-categories {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.25);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.category-card p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.example-posts {
    list-style: none;
    margin-bottom: 1.5rem;
}

.example-posts li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.example-posts li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.example-posts a {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.example-posts a:hover {
    color: var(--primary-color);
}

.category-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 1rem;
}

/* Recent Posts */
.recent-posts {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-light) 0%, #ffffff 100%);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
}

.post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.post-card:hover::after {
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.post-thumbnail {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 3rem;
    text-align: center;
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
}

.post-content h3 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-content p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 0.5rem;
    color: var(--primary-dark);
}

.view-all-btn {
    text-align: center;
}

/* About Preview */
.about-preview {
    padding: 60px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.about-preview .container {
    max-width: 800px;
}

.about-preview h2 {
    margin-bottom: 1.5rem;
}

.about-preview p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.05rem;
}

/* Contact Preview */
.contact-preview {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.contact-preview h2 {
    color: white;
    margin-bottom: 1rem;
}

.contact-preview p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-preview .btn-primary {
    background: white !important;
    color: var(--primary-color) !important;
    border: 2px solid white;
    font-weight: 600;
}

.contact-preview .btn-primary:hover {
    background: transparent !important;
    color: white !important;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

.contact-preview .btn-primary::before {
    display: none;
}

/* Footer */
.site-footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-content a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Blog Page Styles */
.page-header {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-medium);
}

.blog-main-content {
    padding: 60px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Article Styles */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.article-breadcrumb {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-breadcrumb a {
    color: var(--text-medium);
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--primary-color);
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.article-header h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
}

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

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-size: 2rem;
    color: var(--text-dark);
}

.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

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

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

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-medium);
}

.article-content code {
    background-color: var(--bg-light);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.related-posts {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    color: var(--text-dark);
    text-align: center;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-email {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

/* Policy Pages */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.policy-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.policy-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile: Smart sticky header */
    .site-header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 0;
    }
    
    /* Optimize search bar for mobile */
    .search-bar {
        flex: 0 0 auto;
        max-width: 140px;
        gap: 0.5rem;
    }
    
    .search-bar input {
        width: 90px;
        padding: 8px 10px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .search-bar input:focus {
        width: 110px;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .article-container {
        padding: 40px 20px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1.05rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .featured-categories,
    .recent-posts {
        padding: 50px 0;
    }
    
    .category-card,
    .post-card {
        margin-bottom: 1rem;
    }
}

/* Article Images */
.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block;
}

.article-image-wide {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 40px 0;
}

.article-figure {
    margin: 40px 0;
    text-align: center;
}

.article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-figure figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

/* Post thumbnail images */
.post-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Category Page Styles */
.category-page {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
}

.category-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
}

.category-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
}

.category-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.category-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .category-icon-large {
        font-size: 3rem;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
}
