/* Universal Box-Sizing for consistent layout */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    /* Define your brand colors here for easy updates */
    --primary-color: #FF6B6B; /* A vibrant, spark-like red/pink */
    --secondary-color: #4ECDC4; /* A contrasting cool color */
    --accent-color: #FFE66D; /* A bright, sunny yellow for sparks */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --background-light: #ffffff;
    --background-lighter: #f0f0f0;
    --background-dark: #2c3e50; /* For footer or darker sections */

    /* Fonts (uncomment in HTML if you use Google Fonts) */
    --font-heading: 'Balsamiq Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-lighter);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3{
    line-height: 1.35em;
}

/* --- Header Section --- */
.site-header {
    position: relative; /* For banner and logo positioning */
    width: 100%;
    text-align: center;
    background-color: var(--background-dark); /* Darker background for header */
    color: var(--text-light);
    padding-bottom: 20px; /* Space below header text */
}

.header-banner {
    width: 100%;
    min-height: 30vh;
    position: relative;
    background-image: url("images/super-bright-sparks-banner.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    padding: 1.25rem;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    filter: brightness(0.85); /* Slightly darken banner for logo/text contrast */
}

.logo-img {
    width: 150px;
    height: 150px;
}

.header-content {
    padding: 20px;
    position: relative; /* To be above any overlapping elements if any */
    z-index: 11;
}

.header-intro{
    margin-bottom: 1rem;
}

.video-responsive {
    position: relative; /* Establishes a positioning context for the iframe */
    width: 100%;
    max-width: 560px; /* Ensures it doesn't exceed its parent container's width */
    background: #000; /* Optional: A background color to hide flicker during loading */
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16 / 9;
}

.video-responsive iframe {
    position: absolute; /* Positions the iframe relative to its container */
    top: 0;
    left: 0;
    width: 100%; /* Makes the iframe take up the full width of its container */
    height: 100%; /* Makes the iframe take up the full height of its container */
}

.site-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8em;
    margin-top: 20px; /* Space below logo */
    color: var(--accent-color); /* Bright color for main heading */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.site-header .tagline {
    font-size: 1.2em;
    font-style: italic;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Main Content Sections --- */
.site-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 60px;
    padding: 20px;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

section h2 {
    font-family: var(--font-heading);
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.description-section p {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

/* --- Video Grid Section --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.video-item {
    background-color: var(--background-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio for videos */
    display: block; /* Remove extra space below iframe */
}

.video-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4em;
    color: var(--text-dark);
    margin: 15px 15px 10px;
}

.video-item p {
    font-size: 0.95em;
    color: #666;
    margin: 0 15px 15px;
}

.video-item a {
    text-decoration: none;
}

.full-channel-link {
    grid-column: 1 / -1; /* Span across all columns */
    text-align: center;
    margin-top: 30px;
}

.full-channel-link a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.full-channel-link a:hover {
    background-color: #e65a5a; /* Slightly darker shade on hover */
}

.full-channel-link .yt-icon {
    width: 35px;
    height: 35px;
    fill: #FFFFFF;
}


/* --- Footer Section --- */
.site-footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9em;
}

.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
}

.site-header .social-links {
    position: static;
}

.social-links a {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    overflow: hidden;
    aspect-ratio: 1;
    padding: 0.25rem;
    background-color: var(--background-light); /* White circle behind icons */
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-icon {
    width: 40px; /* Size of social icons */
    height: 40px;
    padding: 5px; /* Padding inside the circle */
    fill: #666666; /* Default color: A medium-dark grey when not hovered */
    transition: fill 0.3s ease; /* Smooth transition for the color change */
}

/* YouTube Hover Color */
a:hover .social-icon.icon-youtube {
    fill: #FF0000; /* YouTube Red */
}

/* TikTok Hover Color */
a:hover .social-icon.icon-tiktok {
    fill: #EE1D52; /* TikTok Pink/Red */
}

/* Facebook Hover Color */
a:hover .social-icon.icon-facebook {
    fill: #3b5998; /* Facebook Blue */
}

/* Instagram Hover Color */
a:hover .social-icon.icon-instagram {
    /* Instagram's logo is a gradient, so a single fill color often represents a key part of it */
    fill: #C13584; /* Instagram Magenta */
}

/* Pinterest Hover Color */
a:hover .social-icon.icon-pinterest {
    fill: #E60023; /* Pinterest Red */
}

.footer-links{
    margin-bottom: 0.5rem;
}
.footer-links a{
    display: inline-block;
    color: inherit;
    margin: 0 0.5rem;
}


/* --- Responsive Design (Mobile First) --- */

/* For screens larger than 768px (e.g., tablets and desktops) */
@media (min-width: 768px) {
    .header-banner{
        flex-direction: row;
    }
    .social-links {
        gap: 20px;
    }
    .social-icon {
        width: 45px;
        height: 45px;
     }
    .social-links a {
        padding: 0.5rem;
    }
    .site-header .social-links {
        position: absolute;
        top: 1em;
        right: 1em;
    }
    .site-header h1 {
        font-size: 3.5em;
    }

    section h2 {
        font-size: 2.5em;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

/* For screens larger than 1024px (e.g., larger desktops) */
@media (min-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktops */
    }

    .logo-img {
        width: 180px;
        height: 180px;
    }
}