/* Hero Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust height as needed */
    max-width: 1500px;
    margin: 20px auto; /* Centers the carousel */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Slides Wrapper */
.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Individual Slide */
.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;      /* This ensures the image covers the whole slide */
    background-position: center; /* This centers the image */
    background-repeat: no-repeat;
}

/* Content Styling */
.slide-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Unique Backgrounds for slides (Grey Aesthetic) */
.slide1 {
    background-image: linear-gradient(rgba(126, 125, 125, 0.5), rgba(0,0,0,0.5)), url('img/Programming-bg.png'); 
    /* Or pure grey: background: #434343; */
}
.cs-h1 {
  color: #afafaf;
}
.cs-p{
  color: #bad0ff;
  max-width: 500px;
}

.slide2 {
    background-image: linear-gradient(rgba(148, 148, 148, 0.5), rgba(0,0,0,0.5)), url('img/ts-bg.png');
}

.slide3 {
    background-image: linear-gradient(rgba(172, 171, 171, 0.5), rgba(0,0,0,0.5)), url('img/games-bg.png');
}

/* Navigation Buttons (Dots) */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.nav-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* NEW: Arrow Buttons Styling */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10; /* Ensures it sits on top of image */
    transition: background-color 0.3s ease;
    border-radius: 4px;
    user-select: none; /* Prevents highlighting the arrow text */
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Darker on hover */
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel-container {
        height: 350px;
    }
    .slide-content h1 {
        font-size: 2rem;
    }
        .carousel-arrow {
        font-size: 1.5rem;
        padding: 5px 10px;
    }
}