* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    color: #1d4ed8;
}

/* ========== HEADER ========== */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #1e293b;
    padding: 8px 0;
}

.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #94a3b8;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-top a:hover {
    color: #fff;
}

.header-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #1e293b;
}

.logo svg {
    color: #2563eb;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text small {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav a {
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    background: #f1f5f9;
    color: #2563eb;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #475569;
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 60px 20px;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 17px;
    margin-bottom: 30px;
}

/* ========== SEARCH BOX ========== */
.search-box {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    outline: none;
}

.search-box input::placeholder {
    color: #94a3b8;
}

.search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #1d4ed8;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-height: 350px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.search-result-item p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.search-result-item .category {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 6px;
}

/* ========== MAIN CONTAINER ========== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========== SECTION HEADER ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    width: 26px;
    height: 26px;
    color: #2563eb;
}

.section-link {
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    gap: 8px;
}

/* ========== CATEGORIES GRID ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    display: block;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #2563eb;
}

.category-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ffffff, #3b82f6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 26px;
}

.category-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
    line-height: 1.5;
}

.category-stats {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-stats svg {
    width: 14px;
    height: 14px;
}

/* ========== ARTICLES SECTION ========== */
.articles-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-bottom: 40px;
}

.articles-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 24px;
}

.articles-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.articles-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.articles-card-header h3 svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

/* Article List */
.article-list {
    list-style: none;
}

.article-item {
    border-bottom: 1px solid #f1f5f9;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 22px;
    color: #334155;
    transition: all 0.2s;
}

.article-item a:hover {
    background: #f8fafc;
}

.article-icon {
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
}

.article-item a:hover .article-icon {
    background: #2563eb;
    color: #fff;
}

.article-icon svg {
    width: 18px;
    height: 18px;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.article-content p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: #94a3b8;
}

/* ========== SIDEBAR ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 22px;
}

.sidebar-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    border: none !important;
    color: #fff;
}

.contact-card h3 {
    color: #fff;
}

.contact-card h3 svg {
    color: #fff;
}

.contact-card p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 16px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #2563eb;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.contact-btn:hover {
    background: #f1f5f9;
    color: #1d4ed8;
}

.contact-btn svg {
    width: 16px;
    height: 16px;
}

/* Popular Tags */
.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
}

.popular-tag:hover {
    background: #2563eb;
    color: #fff;
}

/* ========== FAQ SECTION ========== */
.faq-section {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 28px;
    margin-bottom: 40px;
}

.faq-list {
    margin-top: 20px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: #f8fafc;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question svg {
    width: 18px;
    height: 18px;
    color: #64748b;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.active .faq-question {
    background: #2563eb;
    color: #fff;
}

.faq-item.active .faq-question svg {
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 18px;
}

.faq-answer p {
    color: #475569;
    line-height: 1.7;
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb a:hover {
    color: #2563eb;
}

.breadcrumb a svg {
    width: 14px;
    height: 14px;
}

.breadcrumb span {
    color: #94a3b8;
}

.breadcrumb-current {
    color: #334155;
    font-weight: 500;
}

/* ========== ARTICLE PAGE ========== */
.article-page {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

.article-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

/* Nav Menu */
.nav-menu {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.nav-menu-header {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
}

.nav-menu-list {
    list-style: none;
    max-height: 400px;
    overflow-y: auto;
}

.nav-menu-item a {
    display: block;
    padding: 12px 18px;
    color: #475569;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s;
}

.nav-menu-item:last-child a {
    border-bottom: none;
}

.nav-menu-item a:hover,
.nav-menu-item a.active {
    background: #2563eb;
    color: #fff;
}

/* Article Main */
.article-main {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 36px;
}

.article-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.article-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #64748b;
}

.article-info span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-info svg {
    width: 16px;
    height: 16px;
}

/* Article Body */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.article-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 28px 0 14px;
}

.article-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 22px 0 10px;
}

.article-body p {
    margin-bottom: 14px;
}

.article-body ul, .article-body ol {
    margin: 14px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.article-body code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.article-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 18px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-body blockquote {
    border-left: 4px solid #2563eb;
    padding: 14px 20px;
    background: #f8fafc;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.article-body blockquote p {
    margin: 0;
    color: #475569;
    font-style: italic;
}

/* Article Footer */
.article-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.article-feedback {
    text-align: center;
    padding: 24px;
    background: #f8fafc;
    border-radius: 10px;
}

.article-feedback p {
    margin-bottom: 14px;
    font-weight: 500;
    color: #334155;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.feedback-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.feedback-btn.positive:hover {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16,185,129,0.05);
}

.feedback-btn.negative:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239,68,68,0.05);
}

.feedback-btn svg {
    width: 18px;
    height: 18px;
}

/* Related Articles */
.related-articles {
    margin-top: 28px;
}

.related-articles h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 14px;
}

.related-list {
    display: grid;
    gap: 10px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    transition: all 0.2s;
}

.related-item:hover {
    background: #2563eb;
    color: #fff;
}

.related-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ========== SEARCH PAGE ========== */
.search-page {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.search-header {
    margin-bottom: 24px;
}

.search-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.search-header p {
    color: #64748b;
    font-size: 15px;
}

.search-results-list {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.search-result {
    padding: 20px 22px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result:hover {
    background: #f8fafc;
}

.search-result h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.search-result h3 a {
    color: inherit;
}

.search-result h3 a:hover {
    color: #2563eb;
}

.search-result p {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.search-result-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: #94a3b8;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 50px 20px;
}

.no-results svg {
    width: 70px;
    height: 70px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.no-results p {
    color: #64748b;
    margin-bottom: 20px;
}

/* ========== FOOTER ========== */
.footer {
    background: #1e293b;
    color: #94a3b8;
    margin-top: auto;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-column h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 18px 20px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom a {
    color: #94a3b8;
}

/* ========== FORM CONTROLS ========== */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-section {
        grid-template-columns: 1fr;
    }
    
    .article-page {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        order: 2;
    }
    
    .search-page {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 1px solid #e2e8f0;
    }
    
    .header-nav.active {
        display: flex;
    }
    
    .header-nav a {
        padding: 12px 16px;
        border-radius: 8px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 40px 16px;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .search-box input {
        padding: 16px 16px 16px 46px;
        font-size: 15px;
    }
    
    .search-box button {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: 10px;
        justify-content: center;
    }
    
    .search-box .search-icon {
        top: 25%;
    }    
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .main-container {
        padding: 28px 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .article-main {
        padding: 24px;
    }
    
    .article-header h1 {
        font-size: 22px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .feedback-buttons {
        flex-direction: column;
    }
    
    .feedback-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 12px 16px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .category-card {
        padding: 22px;
    }
    
    .category-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.hidden { display: none !important; }