/* ============================= */
/* GLOBAL BASE STYLES */
/* ============================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f2eb;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ============================= */
/* HEADER */
/* ============================= */

header {
    background-color: #ffffff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;

    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 15px;
    margin: 0;    
}
/* Right side */
header nav {
    display: flex;
    align-items: center;
    margin-left: auto; /* pushes nav fully right */
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #444;
    font-size: 15px;
}

nav a:hover {
    color: #8b0000;
}

/* ============================= */
/* HERO SECTION (Index Page) */
/* ============================= */

.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #ede7d9;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 20px;
}

.disclaimer {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: #8b0000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
}

.btn:hover {
    background-color: #a00000;
}

/* ============================= */
/* GENERIC SECTIONS (Index Page) */
/* ============================= */

section {
    padding: 20px 20px;
    max-width: 1100px;
    margin: auto;
}

section h3 {
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;
}

/* ============================= */
/* CARD GRID */
/* ============================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.card h4 {
    margin-top: 0;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #8b0000;
    font-size: 14px;
}

/* ============================= */
/* PREMIUM ARTICLE STYLING */
/* ============================= */

/* Page Header */
.page-header {
    background: linear-gradient(to bottom, #f4efe6, #ede7d9);
    text-align: center;
    padding: 90px 20px 70px;
    border-bottom: 1px solid #e5e0d6;
}

.page-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.page-header p {
    font-size: 16px;
    color: #777;
}

/* Article Container */
.article-container {
    max-width: 780px;
    margin: 70px auto;
    padding: 0 15px;
}

/* Article Sections */
.article-section {
    margin-bottom: 40px;
}

/* Article Headings */
.article-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 18px;
    margin-top: 40px;
    font-weight: 600;
    color: #222;
    text-align: left;
}

/* Article Paragraphs */
.article-section p {
    font-family: 'Source Serif 4', serif;
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 18px;
    color: #333;
}

/* Article Lists */
.article-section ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.article-section li {
    font-family: 'Source Serif 4', serif;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Nested lists */
.article-section ul ul {
    margin-top: 8px;
}

/* Conclusion Box */
.conclusion {
    padding: 35px;
    background-color: #f7f4ee;
    border-left: 4px solid #8b0000;
    border-radius: 6px;
}

/* ============================= */
/* PREMIUM ARTICLE TABLE STYLE  */
/* ============================= */

.article-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    font-size: 0.95rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.article-section th {
    background-color: #f4f4f4;
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    font-family: 'Playfair Display', serif;
}

.article-section td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
    font-family: 'Source Serif 4', serif;
}

.article-section tr:last-child td {
    border-bottom: none;
}

.article-section tr:hover {
    background-color: #fafafa;
    transition: background 0.2s ease;
}

/* ============================= */
/* DIAGRAM BLOCK STYLE          */
/* ============================= */

.article-section pre {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Source Serif 4', serif;
    font-size: 16px;
    line-height: 1.8;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

/* ============================= */
/* FOOTER */
/* ============================= */

footer {
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #ddd;
    margin-top: 80px;
}

footer p {
    margin: 8px 0;
}