/* Base styling for large, readable text */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --background-color: #f8f9fa;
    --text-color: #333333;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #e9ecef;
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    font-size: 18px; /* Larger base font as requested */
}

/* Control bar styling */
.controls {
    text-align: center;
    margin-bottom: 20px;
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #2980b9;
}

/* Document and Page sizing (A4 proportions for PDF) */
#digest-document {
    background-color: white;
    width: 210mm;
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.page {
    position: relative;
    width: 210mm;
    min-height: 297mm;
    padding: 40px;
    box-sizing: border-box;
    page-break-after: always; /* Forces a new page for each section in PDF */
    display: flex;
    flex-direction: column;
}

/* Cover Page Specifics */
.cover-page {
    justify-content: center;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.cover-page h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cover-page .subtitle {
    font-size: 1.8rem;
    font-weight: 300;
}

/* At a Glance / Index Page */
.index-page h2 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 10px;
}

#article-links {
    list-style-type: none;
    padding: 0;
    margin-top: 30px;
}

#article-links li {
    margin-bottom: 25px;
    background-color: var(--background-color);
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

#article-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.4rem; /* Large clickable links */
    display: block;
}

/* Study Card Specifics */
.journal-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.3;
}

.card-section {
    margin-bottom: 25px;
    background: var(--background-color);
    padding: 20px;
    border-radius: 8px;
}

.card-section h4 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1.3rem;
    text-transform: uppercase;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
}

.card-section ul, .card-section p {
    font-size: 1.2rem; /* Larger readable text for postgraduate study */
    line-height: 1.5;
    margin-bottom: 0;
}

/* Chart Container */
.chart-container {
    height: 300px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Custom Footer */
.footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #7f8c8d;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.cover-page .footer {
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.3);
}