/* --- Global Reset & Enhanced Readability Look --- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;700&family=Lato:wght@400;700&display=swap');

:root {
    /* **READABILITY FOCUS:** Adjusting colors for higher contrast */
    --main-bg-color: #212121;       /* Deep Charcoal (Darker, less distracting) */
    --card-bg-color: #2d2d2d;       /* Slightly brighter than main bg for separation */
    
    /* **Key Change:** Text is brighter for max contrast */
    --text-color-light: #f9f9f9;    /* Near-White (Excellent contrast on dark grey) */
    
    /* **Key Change:** Accent color is slightly more vibrant, but not harsh */
    --text-color-accent: #ffc107;   /* Amber Yellow (Strong but warm heading contrast) */
    
    /* **Key Change:** Link color is clearer and more distinct */
    --link-color: #64b5f6;          /* Soft Sky Blue (High contrast, easy on eyes) */
    --link-hover-color: #fce4ec;    /* Pale Pink (Clear focus state) */
    
    --border-color-soft: rgba(255, 255, 255, 0.15); /* Slightly clearer border */
}

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

body {
    font-family: 'Lato', sans-serif; 
    background-color: var(--main-bg-color);
    background-image: linear-gradient(145deg, #212121 0%, #171717 100%); 
    color: var(--text-color-light); /* **Readability Change** */
    line-height: 1.7;
    padding: 50px 20px;
    min-height: 100vh;
    box-shadow: var(--body-glow);
}

/* --- Header and Branding --- */
header {
    text-align: center;
    padding-bottom: 30px;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--border-color-soft);
}

img[alt="header-logo"] {
    width: 80px;
    height: 80px;
    border-radius: 12px; 
    border: 4px solid var(--text-color-accent);
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

h1 {
    color: var(--text-color-accent); /* **Readability Change** */
    font-family: 'Merriweather', serif; 
    font-weight: 700;
    font-size: 3em;
    letter-spacing: 1px;
    margin-top: 10px;
    text-shadow: 0 0 10px #03a9f4, 0 0 20px #03a9f4, 0 0 40px rgba(3, 169, 244, 0.4);
}

h3 {
    color: var(--link-color); /* **Readability Change** */
    font-weight: 400;
    font-size: 1.6em;
    margin-top: 5px;
      text-shadow: 0 0 10px #03a9f4, 0 0 20px #03a9f4, 0 0 40px rgba(3, 169, 244, 0.4);

}

/* --- Main Content Layout --- */
body > ol {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    list-style: none;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

body > ol > li {
    flex: 1 1 45%;
    padding: 40px;
    background-color: var(--card-bg-color); /* **Readability Change** */
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35); /* Slightly stronger shadow for depth */
    min-width: 300px;
    transition: box-shadow 0.3s ease;
}

body > ol > li:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6); 
}

body > ol > li::marker {
    content: none;
}

/* --- Nested List Styling --- */
body > ol > li > ol {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}

body > ol > li > ol > li {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-color-light); /* **Readability Change** - Chapter titles are bright */
    font-family: 'Merriweather', serif; 
    margin: 30px 0 15px 0;
    border-bottom: 1px solid var(--border-color-soft);
    padding-bottom: 8px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

/* --- Link Styling and Animation --- */
a {
    text-decoration: underline;
    color: var(--link-color); /* **Readability Change** - Clear blue links */
    display: block;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--link-hover-color); /* **Readability Change** - High contrast hover state */
    background-color: rgba(100, 181, 246, 0.1); 
    transform: scale(1.02);
}
.main{
    font-style: italic;
    color: magenta;
    font-size: xx-large;
}
.sub{
    color: yellow;
    font-size: larger;
}