/* --- 1. FONTS & SHARED STYLES --- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600&display=swap');

h2, h3 {
    font-family: 'Oswald', sans-serif;
    color: #2c3e50;
    margin-bottom: 15px;
}

.dm-sans-nice {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.nicetext {
    font-family: "DM sans";
    color: black;
}

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

body {
    font-family: Arial, sans-serif; 
    color: #333; 
    line-height: 1.6;
}

a {
    text-decoration: none; 
    color: inherit;
}

/* --- 2. HEADER & NAVIGATION --- */
header {
    background-color: #5a67c0; 
    color: white; 
    padding: 20px 5%;
    position: absolute; 
    width: 100%;
    z-index: 1000; 
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    top: 0; 
    left: 0;
}

header h1 {
    display: block;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: auto; 
}

header nav a {
    margin-left: 30px; 
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* --- 3. INDEX & HERO SECTION --- */
#hero-banner {
    position: relative;
    height: 450px; 
    overflow: hidden;
}

#hero-banner figure {
    width: 100%;
    height: 100%;
}

#hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

#welcome-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #5a67c0; 
    color: white;
    padding: 20px 5%;
}

#welcome-text h2 {
    font-size: 2em;
    margin-bottom: 5px;
    color: #ffffff;
}

#introduction {
    padding: 40px 5%;
    max-width: 900px; 
    margin: 0 auto; 
    text-align: center;
}

#introduction h2 {
    color: #444;
    font-size: 2.2em;
    font-style: italic;
    margin-bottom: 20px;
}

#introduction p {
    margin-bottom: 15px;
}

#introduction ul {
    list-style: none; 
    text-align: left;
    margin: 20px auto 30px;
    padding-left: 0;
    max-width: 400px;
}

#introduction li {
    padding-left: 1.5em; 
    position: relative;
}

#introduction li::before {
    content: "•"; 
    position: absolute;
    left: 0;
    color: #5a67c0; 
    font-weight: bold;
}

#introduction a[href="guide.html"] {
    display: inline-block;
    padding: 15px 40px;
    background-color: #5a67c0; 
    color: white;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 20px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

#introduction a[href="guide.html"]:hover {
    background-color: #4a549e;
}

#introduction section.nicetext {
    margin-bottom: 40px;
    padding: 20px;
    background: #ffffff; 
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: left; 
}

.build-dl {
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
}

.build-dl dt {
    font-weight: bold;
    color: #5a67c0;
    margin-top: 15px;
}

.build-dl dd {
    border-left: 2px solid #5a67c0;
    padding-left: 15px;
    margin-left: 10px;
    font-size: 0.95em;
}

.build-ol {
    text-align: left;
    max-width: 600px;
    margin: 20px auto;
    padding-left: 20px;
}

.build-ol li {
    margin-bottom: 10px;
    padding-left: 10px;
}

#learning-guides {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
}

#learning-guides h2 {
    background-color: #333; 
    color: white;
    padding: 15px 5%;
    font-size: 1.5em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

#learning-guides > article {
    width: 45%; 
    max-width: 400px;
    border: none; 
    overflow: hidden;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    margin: 0 10px; 
}

main > section:last-of-type {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 20px;
}

#learning-guides img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

#learning-guides h3 {
    padding: 15px 15px 5px;
    font-size: 1.1em;
    font-weight: bold;
}

#learning-guides article p {
    margin-bottom: 20px;
    display: block;
}



#learning-guides article p:last-of-type a {
    color: white;
}


.float-container {
    margin-top: 80px; 
    padding: 40px 10%; 
    max-width: 1200px; 
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    text-align: center;
}

.float-img {
    float: none; 
    display: block;
    margin: 30px auto;    
    
    width: 90%;           
    max-width: 1000px; 
    
    height: auto; 
    border-radius: 20px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
}

.intro-section {
    text-align: center;
    padding: 20px;
}

.tool-section, 
.conclusion-section {
    text-align: center;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 5%;
    font-size: 1.25rem; 
}

.tool-section ul, 
.conclusion-section ul,
.break-inner ul {
    display: inline-block; 
    text-align: left;      
    list-style-position: inside;
    margin: 20px auto;
}

.visual-break {
    background-color: #5a67c0;
    color: white;
    padding: 80px 0; 
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin: 60px -50vw; 
    text-align: center;
}

.break-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.visual-break h3 {
    color: white;
    font-size: 2.5rem; 
    margin-bottom: 25px;
    text-align: center;
}

.visual-break p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.visual-break ul {
    font-size: 1.3rem;
}

/* --- FOOTER STYLING --- */
footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
    width: 100%;
    font-size: 0.9rem;
    margin-top: 50px;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* --- FEEDBACK UPDATES --- */

.hero-pop {
    color: #ffca28; /* Gold color for 'pop' */
    font-size: 1.8rem;
    margin-top: 10px;
    text-transform: uppercase;
    display: block;
    font-family: 'Oswald', sans-serif;
}

#learning-guides h2 {
    background-color: transparent; 
    color: #333;
    font-size: 2.2em;
    margin-top: 40px;
    border-bottom: 2px solid #5a67c0;
    display: table;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
}

/* --- 8. MANDATORY MEDIA QUERY --- */
@media screen and (max-width: 768px) {
    header {
        position: relative; 
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    header h1 {
        margin-right: 0;
        margin-bottom: 10px;
    }

    header nav a {
        margin-left: 10px;
        margin-right: 10px;
        font-size: 0.8em;
    }

    #hero-banner {
        height: auto; 
        min-height: 300px;
    }

    #welcome-text {
        position: relative; 
    }

    #learning-guides > article {
        width: 90%; 
        margin: 20px auto;
    }

    h2 {
        font-size: 1.8rem; 
    }
    
    .float-img {
        width: 80% !important; 
    }
}


.quick-tips-container {
    padding: 40px 5%;
    display: flex;
    justify-content: center;
}

.tips-card-modern {
    border: 3px solid #5a67c0;
    border-radius: 15px;    
    padding: 30px;
    max-width: 700px;
    width: 100%;
    background-color: #fdfdfd; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.tips-card-modern h3 {
    color: #5a67c0;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tips-list-modern {
    list-style: none;
    padding: 0;
}

.tips-list-modern li {
    padding: 12px 0;
    border-bottom: 1px solid #eee; 
    font-family: 'DM Sans', sans-serif;
}

.tips-list-modern li:last-child {
    border-bottom: none; 
}

.tips-list-modern li strong {
    color: #5a67c0;
}


#introduction section.nicetext {
    margin: 40px auto;   
    max-width: 900px;    
    text-align: center;  
    padding: 30px;
}


#introduction h2 {
    text-align: center;
    margin-bottom: 25px;
}


.build-ol {
    display: inline-block; 
    text-align: left;      
    max-width: 600px;
    margin: 0 auto;        
    padding-left: 20px;    
}


.guide-list-wrapper {
    text-align: center;   
    width: 100%;
}


#introduction .nicetext, 
main + .nicetext { 
    margin: 60px auto !important; 
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.nicetext h2 {
    font-size: 2.8rem; 
    margin-bottom: 20px;
    color: #333;
}

.nicetext p {
    font-size: 1.4rem; 
    line-height: 1.7;
    color: #444;
}

.nicetext strong {
    display: block;
    margin-top: 20px;
    color: #5a67c0; 
    font-size: 1.6rem;
}

/* Target ONLY the links inside the Learning Guides section */
#learning-guides a {
    display: inline-block;       /* Keeps the background only around the text */
    background-color: #5a67c0;   /* Your theme blue */
    color: white !important;     /* White text */
    padding: 10px 20px;          /* Button shape */
    text-decoration: none;       /* Remove underline */
    border-radius: 5px;          /* Rounded corners */
    font-weight: bold;
    margin-top: 10px;
    width: auto;                 /* Prevents full-width stretching */
}

/* Hover effect ONLY for these buttons */
#learning-guides a:hover {
    background-color: #434e91;
}

/* This styles ONLY the links with the specific class */
.learning-link {
    display: inline-block;       /* Stops the full-width black bar */
    background-color: #5a67c0;   /* Your theme blue */
    color: white !important;     /* White text */
    padding: 10px 20px;          /* Makes it a button shape */
    text-decoration: none;       /* Removes the underline */
    border-radius: 5px;          /* Slightly rounded corners */
    font-weight: bold;
    margin-top: 15px;
    width: auto;                 /* Ensures it stays button-sized */
}

.learning-link:hover {
    background-color: #434e91;   /* Darker blue on hover */
}

/* --- THE FINAL FIX FOR INDEX GUIDES --- */

/* Puts the two guide boxes side-by-side */
.guides-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    flex-wrap: wrap; /* Keeps it mobile friendly */
}

/* Styles the individual cards */
.guide-card {
    display: flex;
    flex-direction: column; /* This stacks everything vertically */
    width: 400px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.guide-card p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px; /* Pushes the button away from the text */
    flex-grow: 1;        /* Ensures the text has its own room */
}

/* Fixes the image size */
.guide-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* The Button Fix: No more black bars or overlapping */
.guide-link {
    /* 1. Stops the "Black Bar" from stretching full width */
    display: inline-block; 
    
    /* 2. Forces the button to stay below the text */
    clear: both;
    margin-top: 20px;      /* Pushes the button 20px away from the text */
    
    /* 3. Button Styling */
    background-color: #5a67c0;
    color: white !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.guide-btn {
    display: block;       /* Forces the button to its own line BELOW the text */
    width: 160px;         /* PREVENTS THE BLACK BAR: The background can't go wider than this */
    margin: 20px auto 0;  /* Centers the button and pushes it 20px away from text */
    
    /* Look and Feel */
    background-color: #5a67c0; /* Your blue theme */
    color: white !important;
    text-align: center;
    padding: 10px 0;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    
    /* Safety Reset: This stops other code from moving it on top of text */
    position: static !important; 
    float: none !important;
}

/* --- FIXING STEPS 4 & 5 (SHRINKING THE BOXES) --- */

/* 1. Shrink the white box padding and margins */
#introduction .nicetext, 
section.nicetext { 
    margin: 20px auto !important; /* Reduced margin */
    padding: 20px !important;      /* Reduced from 40px */
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Softer shadow */
}

/* --- CENTERING STEP 4 & 5 --- */

section.nicetext { 
    /* Centers the box on the screen */
    margin: 30px auto !important; 
    max-width: 800px;
    display: block;
    
    /* Centers the text and the title inside the box */
    text-align: center !important; 
    
    padding: 25px !important;
    background: #fff;
    border-radius: 12px;
}

/* Ensure the paragraph text is centered too */
section.nicetext p {
    text-align: center;
    margin: 0 auto;
}