/* --- Global Resets & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Container --- */
.container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Typography --- */
h1, h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.75em;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.3em;
    margin-bottom: 1em;
}

p {
    margin-bottom: 1em;
    color: #555;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}

a:hover,
a:focus {
    color: #2980b9;
    text-decoration: underline;
}

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

li {
    margin-bottom: 0.8em;
}

strong {
    font-weight: 700;
    color: #34495e;
}

pre { /* Basic styling for code blocks */
    background-color: #eef1f3;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto; /* Allow horizontal scrolling for long lines */
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 1em;
    color: #333;
}

code { /* Inline code styling */
     background-color: #eef1f3;
     padding: 0.2em 0.4em;
     border-radius: 3px;
     font-family: monospace;
     font-size: 0.9em;
}


/* --- Header --- */
.site-header {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.site-header h1 {
    color: #ffffff;
    margin-bottom: 0.25em;
}

.site-header .subtitle {
    font-size: 1.1rem;
    color: #bdc3c7;
    margin-bottom: 0;
    font-weight: 400;
}

/* --- Content Sections --- */
.content-section {
    padding: 2.5rem 0;
}

.content-section.alt-bg {
    background-color: #ffffff;
    border-top: 1px solid #e7e7e7;
    border-bottom: 1px solid #e7e7e7;
}

/* --- Feature List --- */
.feature-list li {
    padding-left: 1.5em;
    position: relative;
}

.feature-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 1px;
    color: ##000000;
    font-weight: bold;
}

/* --- Video Links / Project Links (Using Flexbox) --- */
.video-links {
    margin-top: 1.5rem;
    display: flex;      /* Enable Flexbox */
    flex-wrap: wrap;    /* Allow items to wrap */
    gap: 0.75rem 1rem;   /* Vertical gap, Horizontal gap */
}

.video-link {
    /* display: inline-block; /* Replaced by flex */
    /* margin-right: 1rem; /* Replaced by gap */
    /* margin-bottom: 0.5rem; /* Replaced by gap */
    padding: 0.5rem 1rem;
    border: 1px solid #3498db;
    border-radius: 4px;
    background-color: #ffffff;
    color: #3498db; /* Ensure text color is set */
    text-decoration: none; /* Ensure no underline by default */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    flex-grow: 0; /* Prevent items from growing to fill space */
    flex-shrink: 0; /* Prevent items from shrinking */
}

.video-link:hover,
.video-link:focus {
    background-color: #3498db;
    color: #ffffff;
    border-color: #2980b9; /* Darken border on hover */
    text-decoration: none;
}

/* --- Footer --- */
.site-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.site-footer p {
    margin-bottom: 0.25em;
    color: #bdc3c7;
}

.site-footer a {
    color: #ecf0f1;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff;
}

/* --- Basic Responsiveness --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .site-header {
        padding: 2rem 0;
    }
    .content-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    body {
        font-size: 0.95rem;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Optionally make links full width on very small screens */
    /* .video-link {
        flex-basis: 100%;
        text-align: center;
    } */
    /* .video-links {
        gap: 0.75rem 0; /* Adjust gap if stacking */
    /* } */
}