body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #046ab4; /* Fallback if the image doesn't load */
    color: #ffffff; /* Keep text color white */
    margin: 0;
    padding: 0;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    
    /* Background image properties */
    background-image: url('images/kamala/kamala.webp'); /* Replace with your image path */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

header {
    padding: 20px 15px;
    background-color: transparent; /* Remove header background */
}

h1, h2 {
    text-shadow: 2px 2px 4px #000000; /* Add black shadow to text */
    color: #ffffff;
}

h1 {
    font-size: 2.1rem; /* Set text size */
    font-weight: bold;
    color: #ffffff;
    margin: 5px 0; /* Reduce margin */
}

h1 span.step1 {
    color: #4B8BF4; /* Light blue */
}

h1 span.step2 {
    color: #ffffff; /* White */
}

h1 span.step3 {
    color: #E9141D; /* Red */
}

h2 {
    font-size: 1.4rem; /* Subtitle size */
    color: #ffffff; /* Ensure text is white */
    margin: 5px 0; /* Reduce margin */
    line-height: 1.1; /* Maintain line spacing */
}

section {
    padding: 10px 20px; /* Reduce section padding */
}

/* Container for aligning sections side by side */
.content-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

/* New responsive image styles */
.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .responsive-image {
        max-width: 90%; /* Slightly smaller on mobile for some padding */
    }

    /* Specific adjustments for title images */
    img[src$="titles/title3.webp"],
    img[src$="titles/choose.webp"] {
        max-width: 95%;
        height: auto;
    }

    /* Adjust the navigation images */
    img[src$="titles/catalog.webp"],
    img[src$="titles/blog.webp"],
    img[src$="titles/game.webp"],
    img[src$="titles/contact.webp"] {
        max-width: 22%; /* Adjust as needed to fit 4 items per row */
        height: auto;
        display: inline-block;
        margin: 5px;
    }
}

/* Testimonial section styles */
.testimonials {
    flex: 1;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
}

.testimonial-carousel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Blog section styles */
.blog-posts {
    flex: 1;
    background-color: #e0f7fa;
    padding: 20px;
    border-radius: 10px;
}

.blog-posts article {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-posts a h3 {
    color: #00796b;
    text-decoration: none;
    font-weight: bold;
}

.read-more {
    padding: 10px 15px;
    background-color: #00796b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.read-more:hover {
    background-color: #004d40;
}

/* Responsive design */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Arrange in 7 columns */
    gap: 20px; /* Space between elements */
    padding: 10px; /* Reduce grid padding */
    max-width: 1500px; /* Set max width */
    margin: 0 auto;
}

.grid-item {
    background-color: #f8f9fa;
    padding: 5px; /* Reduce padding inside grid items */
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.grid-item img {
    max-width: 100%; /* Set image size */
    border-radius: 8px;
}

.grid-item p {
    margin-top: 10px;
    font-size: 1rem; /* Set text size inside grid items */
    color: #000000;
}

.grid-item {
    font-weight: bold;
    color: #000000;
}

/* Carousel styles */
.carousel {
    margin: 0px auto; /* Center the carousel */
    max-width: 1500px; /* Set max width */
    padding: 10px 20px; /* Adjust padding for smaller gaps */
}

.slick-track {
    display: flex !important; /* Ensure items align */
}

.slick-slide {
    margin: 0 20px; /* Space between carousel items */
}

.carousel img {
    width: 110%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Container for testimonials and blog */
.content-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Testimonial section */
.testimonials {
    flex: 1;
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    max-width: 45%;
    color: #ecf0f1;
}

.testimonial-carousel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Blog section */
.blog-posts {
    flex: 1;
    background-color: #16a085;
    padding: 15px;
    border-radius: 10px;
    max-width: 45%;
    color: #ffffff;
}

.blog-posts article {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-posts a h3 {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.read-more {
    padding: 10px 15px;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.read-more:hover {
    background-color: #16a085;
}

footer {
    background-color: #046ab4;
    padding: 30px; /* Keep footer padding */
    position: relative;
    bottom: 0;
    width: 100%;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000; /* Add black shadow to text */
}
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Slightly smaller base font size for mobile */
    }
    
    h1 {
        font-size: 1.5rem; /* Even smaller title size for mobile */
    }
    
    h1 span.step1,
    h1 span.step2,
    h1 span.step3 {
        display: block; /* Stack the title parts vertically */
        margin-bottom: 5px; /* Add some space between the lines */
    }
    
    h2 {
        font-size: 1.2rem; /* Smaller subtitle size */
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
        gap: 10px; /* Smaller gap between grid items */
    }
    
    .grid-item {
        padding: 5px; /* Reduce padding inside grid items */
    }
    
    .grid-item img {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto; /* Maintain aspect ratio */
    }
    
    .carousel {
        padding: 5px 10px; /* Reduce carousel padding */
    }
    
    .slick-slide {
        margin: 0 10px; /* Reduce space between carousel items */
    }
    
    .carousel img {
        width: 100%; /* Full width for carousel images */
        height: auto; /* Maintain aspect ratio */
    }
    
    .content-container {
        flex-direction: column; /* Stack testimonials and blog vertically */
        gap: 20px;
        padding: 20px;
    }
    
    .testimonials, .blog-posts {
        max-width: 100%; /* Full width on mobile */
    }
    
    /* Adjust the main title image size */
    div img[alt="Empower Your Voice"] {
        width: 70%; /* Reduce width to 80% of the container */
        height: auto; /* Maintain aspect ratio */
        max-width: 150px; /* Limit maximum width */
        margin: 10px auto; /* Center the image and add some vertical space */
    }
    
     /* Adjust the main title image size */
    img[src$="titles/title.webp"] {
        width: auto; /* Let the width adjust automatically */
        height: auto; /* Maintain aspect ratio */
        max-width: 70%; /* Limit maximum width to 70% of its container */
        max-height: 100px; /* Limit the maximum height */
        display: block; /* Ensure it's on its own line */
        margin: 10px auto; /* Center the image and add some vertical space */
    }

    /* Adjust the game banner size */
    div[style*="margin-top: 20px; margin-bottom: 20px;"] img {
        width: 100%; /* Full width */
        height: auto; /* Maintain aspect ratio */
    }
}