/* ===== Articles CSS Stylesheet ===== */
:root {
    --primary-color: #db3503;
    --primary-dark: #b32d02;
    --primary-light: #f24a1a;
    --primary-lighter: #fef2ee;
    --secondary-color: #6b5b54;
    --success-color: #38a169;
    --background: #f8f5f3;
    --card-background: #ffffff;
    --border-color: #e8e2de;
    --text-primary: #2d2522;
    --text-secondary: #6b5b54;
    --text-muted: #a39890;
    --shadow-sm: 0 1px 2px rgba(45, 37, 34, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(45, 37, 34, 0.08), 0 2px 4px -2px rgba(45, 37, 34, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(45, 37, 34, 0.1), 0 4px 6px -4px rgba(45, 37, 34, 0.08);
    --font-main: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #121212;
        --card-background: #1e1e1e;
        --border-color: #333333;
        --text-primary: #e8e8e8;
        --text-secondary: #b0b0b0;
        --text-muted: #707070;
        --primary-color: #ff5722;
        --primary-dark: #d84315;
        --primary-light: #ff7043;
        --primary-lighter: #2d1a15;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    }
}

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

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Header Styles */
.nav-header {
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.5rem;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

.btn-cta {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-cta .material-icons {
    font-size: 1.1rem;
}

/* Main Container */
.main-layout {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* Content Area */
.content-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 600px) {
    .content-card {
        padding: 1.5rem;
    }
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

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

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

.breadcrumbs li:not(:last-child)::after {
    content: "chevron_right";
    font-family: 'Material Icons';
    font-size: 0.9rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.article-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.meta-item .material-icons {
    font-size: 1rem;
}

/* Typography elements */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
    border-bottom: 2px solid var(--border-color-light);
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

.prose p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: var(--transition);
}

.prose a:hover {
    color: var(--primary-dark);
    border-bottom-style: solid;
}

.prose blockquote {
    border-left: 4px solid var(--primary-color);
    background: var(--primary-lighter);
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
    font-style: italic;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.prose th, .prose td {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    text-align: left;
}

.prose th {
    background-color: var(--background);
    font-weight: 600;
}

.prose tr:nth-child(even) {
    background-color: var(--border-color-light);
}

/* Sidebar Styles */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.widget-title .material-icons {
    color: var(--primary-color);
}

.article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: var(--transition);
}

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

.article-link .material-icons {
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.article-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 2rem 1.5rem;
}

.cta-widget .widget-title {
    color: white;
    border-bottom: none;
    justify-content: center;
}

.cta-widget p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-widget .btn-cta {
    background: white;
    color: var(--primary-color);
    width: 100%;
    justify-content: center;
}

.cta-widget .btn-cta:hover {
    background: var(--primary-lighter);
}

/* FAQ Accordion */
.faq-section {
    margin-top: 3rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-background);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover {
    background-color: var(--background);
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active {
    border-color: var(--primary-color);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question .material-icons {
    transform: rotate(180deg);
}

.faq-question .material-icons {
    transition: var(--transition);
}

/* Footer Styles */
.footer {
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    list-style: none;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary-color);
}
