/* Modern Academic / Medium-Style Landing Page CSS */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #7c3aed;
    --text-primary: #242424;
    --text-secondary: #6b6b6b;
    --bg-page: #ffffff;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Source Serif 4', serif;
    --spacing-unit: 1rem;
    --max-reading-width: 720px;
}

body {
    font-family: 'Merriweather', serif;
    color: #2c3e50;
    line-height: 1.8;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Source Serif 4', serif;
    color: var(--primary-color);
    text-align: center;
}

/* Content Container - Ensure Left Alignment for readability */
.landing-page .content-wrapper,
.landing-page .lead,
.landing-page p,
.landing-page li {
    text-align: left;
}

/* Specific overrides for sections that need centering */
.landing-page .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.landing-page {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    /* 20px base size for immersive reading */
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

/* --- Layout & Spacing --- */

/* Constrain text content to optimal reading width */
.landing-page .container .col-lg-8,
.landing-page .article-content {
    max-width: var(--max-reading-width);
    margin-left: auto;
    margin-right: auto;
}

.landing-page section,
.landing-page .py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* --- Typography --- */

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page h4,
.landing-page h5 {
    font-family: var(--font-sans);
    /* Clean Sans for modern academic look, or switch to Heading Serif */
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.landing-page h1 {
    font-family: var(--font-heading);
    /* Serif for Main Title */
    font-size: 3.5rem;
    font-weight: 700;
}

.landing-page h2 {
    font-size: 2.25rem;
    margin-top: 3.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle divider */
    padding-bottom: 1rem;
}

.landing-page h3 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
}

.landing-page p {
    margin-bottom: 2rem;
    font-weight: 300;
}

.landing-page .lead {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-family: var(--font-header);
    /* Slightly different feel for lead */
}

/* --- Lists (The User's specific request) --- */

.landing-page ul,
.landing-page ol {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.landing-page li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

/* Custom Bullet Styling */
.landing-page ul {
    list-style: none;
    /* Remove default */
}

/* Apply custom bullet ONLY to lists that are NOT unstyled (standard text lists) */
.landing-page ul:not(.list-unstyled) li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: -1rem;
    top: -0.2rem;
    line-height: 1;
}

.landing-page ol {
    list-style-type: decimal;
    color: var(--text-primary);
}

.landing-page ol li::marker {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--primary-color);
}

/* --- Links --- */

.landing-page a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(120deg, rgba(124, 58, 237, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
    font-weight: 400;
}

.landing-page a:hover {
    background-size: 100% 88%;
    /* Highlight effect */
    color: black;
}

.landing-page .btn {
    /* Reset link styles for buttons */
    background-image: none;
    font-family: var(--font-sans);
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* --- Glassmorphism / Feature Boxes --- */

.landing-page .bg-light {
    background-color: transparent !important;
    /* Remove solid grey */
    background: rgba(249, 250, 251, 0.8) !important;
    /* Very subtle light grey */
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
}

/* Blockquotes */
.landing-page blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.35rem;
}

/* Images */
.landing-page img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Enforce left alignment for readability, overriding text-center from parents if present */
.landing-page p,
.landing-page ul,
.landing-page ol,
.landing-page blockquote,
.landing-page .lead {
    text-align: left !important;
}

/* Exception for specific centered elements if needed */

/* --- Buttons --- */
.landing-page .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    /* Ensure white text for legibility */
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-page .btn-primary:hover {
    background-color: #6d28d9 !important;
    /* Darker shade of purple */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.35);
}

/* --- FAQ / Q&A Section --- */
.landing-page .faq-section {
    max-width: var(--max-reading-width);
    margin: 0 auto;
}

.landing-page .faq-section h2 {
    font-size: 2.5rem;
    /* Larger heading */
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
}

.landing-page .faq-section strong {
    font-family: var(--font-sans);
    font-weight: 700;
    color: #111;
    display: block;
    margin-top: 2rem;
    font-size: 1.1em;
}

/* Enforce clean text colors to avoid "Purple Everywhere" */
.landing-page .lead,
.landing-page p,
.landing-page li,
.landing-page .accordion-body {
    color: #2c3e50 !important;
    /* Force dark grey */
    font-weight: 400;
    /* Ensure not bold by default */
}

/* Make Titles Distinct */
.landing-page h4,
.landing-page h5 {
    color: var(--primary-color) !important;
    /* Keep headings purple */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Fix the hierarchy of the new JSON elements */
.landing-page .json-item-title {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    color: #000;
    /* Make item titles black/dark for contrast against purple section headers */
    font-weight: 700;
    text-align: left !important;
    /* Override global heading centering */
}

/* Accordion Polish */
.landing-page .accordion-button {
    font-size: 1.15rem;
    color: var(--primary-color);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left !important;
    /* Ensure questions are left aligned */
}

.landing-page .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--secondary-color);
    box-shadow: none;
}

.landing-page .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.landing-page .accordion-body {
    padding: 1rem 0 2rem 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left !important;
    /* Ensure answers are left aligned */
}