.content-section1 {
    background: var(--dark-gradient);
    padding: 10rem 5%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container to center content and limit width */
.section-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

/* Title with a gradient text effect and animation */
.section-title1 {
    font-family: var(--title-font);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--light-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite;
}
.carousel-controls {
    display: none; /* Hidden by default on desktop */
    justify-content: center;
    margin-top: 20px;
    gap: 40px;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    color: var(--accent-color);
}

/* Show controls on mobile (max-width: 768px) */
@media (max-width: 768px) {
    .carousel-controls {
        display: flex;
    }
}

/* Container for carousel and controls with a semi-transparent background */
.thoughts-container {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Carousel layout with smooth transitions and shadow */
.thoughts-carousel {
    display: flex;
    overflow-x: hidden;
    gap: 20px;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Individual thought card styling with hover effects */
.thought-card {
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0, 243, 255, 0);
}

.thought-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--primary-color);
}

.thought-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-gradient);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.thought-card:hover::before {
    opacity: 0.2;
}

/* Image styling within cards with grayscale-to-color transition */
.thought-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.thought-card:hover .thought-image {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Content area within cards with brand font */
.catchy-content {
    padding: 20px;
    text-align: center;
    font-family: var(--text-font);
}

/* Catchy text with gradient effect */
.catchy-text {
    font-family: var(--title-font);
    font-size: 1.5rem;
    background: var(--light-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

/* Teaser text styling with slightly dimmed white */
.teaser-text {
    font-family: var(--text-font);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

/* Learn More button styling with rounded corners and hover effects */
.learn-more-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--text-font);
    font-size: 0.9rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.learn-more-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Navigation controls centered with spacing */
.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 40px;
}

/* Button styling with brand colors */
.prev-btn, .next-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    color: var(--accent-color);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .content-section1 {
        padding: 8rem 3%;
    }

    .section-container {
        padding: 0 15px;
    }

    .section-title1 {
        font-size: 2rem;
    }

    .thoughts-container {
        padding: 1rem;
        border-radius: 10px;
    }

    .thoughts-carousel {
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 15px;
    }

    .thought-card {
        flex: 0 0 80vw; /* Adjust to fit within 80% of viewport width for readability */
        scroll-snap-align: center;
        padding: 1rem;
        border-radius: 10px;
    }

    .thought-image {
        height: 150px; /* Reduce image height for mobile */
    }

    .catchy-text {
        font-size: 1.2rem;
    }

    .teaser-text {
        font-size: 0.9rem;
    }

    .learn-more-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .carousel-controls {
        margin-top: 15px;
        gap: 20px;
    }

    .prev-btn, .next-btn {
        font-size: 1.5rem;
    }
}

.thoughts-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 20px;
    transition: transform 0.5s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}
