#summerschool {
  margin: 70px 0;
  padding: 0 3%;
}

#summertitle {
  text-align: center;
  padding-bottom: 20px;
  font-size: 90px;
  text-shadow: 2px 2px 0 #B00, 3px 3px 0 #108bf9, 4px 4px 0 #00BD2A;
  color: white;
  margin-bottom: 30px;
}

  .summer-cover {
    /* background: url("assets/summer2.jpg") center/cover no-repeat; */
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
  }

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 78, 0.6); /* #00004e with 60% opacity */
  z-index: 1;
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cover-content h1 {
  color: #00bd2a;
  font-size: 60px;
  text-shadow: 0 0 6px #000;
  padding-bottom: 30px;
  margin-top: 0;
}

.cover-content p {
  font-size: 18px;
  width: 60%;
  margin: 0 auto 30px;
  text-shadow: 0 0 15px #00000073;
  line-height: 1.6;
}

.cover-content button {
  background-color: #00bd2a;
  border: none;
  border-radius: 5px;
  box-shadow: 0 0 15px #00000073;
  color: #fff;
  cursor: pointer;
  font-family: Sequel, sans-serif;
  font-size: 23px;
  padding: 13px 25px;
  transition: .3s;
}

.cover-content button:hover {
  background-color: #01a725;
  transform: translateY(-2px);
}

/* Carousel controls */
.carousel-control-prev, 
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 189, 42, 0.5);
  border-radius: 50%;
  padding: 20px;
  background-size: 60%;
}

/* Responsive adjustments */
@media only screen and (max-width: 1200px) {
  #summertitle {
      font-size: 70px;
  }
  
  .cover-content h1 {
      font-size: 50px;
  }
  
  .cover-content p {
      width: 70%;
      font-size: 16px;
  }
}

@media only screen and (max-width: 992px) {
  #summertitle {
      font-size: 60px;
  }
  
  .summer-cover {
      height: 450px;
  }
  
  .cover-content h1 {
      font-size: 45px;
      padding-bottom: 20px;
  }
  
  .cover-content p {
      width: 80%;
  }
}

@media only screen and (max-width: 768px) {
  #summertitle {
      font-size: 50px;
      margin-bottom: 20px;
  }
  
  .summer-cover {
      height: 400px;
  }
  
  .cover-content h1 {
      font-size: 40px;
      padding-bottom: 15px;
  }
  
  .cover-content p {
      width: 90%;
      font-size: 15px;
  }
  
  .cover-content button {
      font-size: 20px;
      padding: 10px 20px;
  }
}

@media only screen and (max-width: 576px) {
  #summerschool {
      margin: 50px 0;
  }
  
  #summertitle {
      font-size: 40px;
      padding-bottom: 10px;
  }
  
  .summer-cover {
      height: 350px;#summerschool {
        margin: 70px 0;
        padding: 0 3%;
    }
    
    #summertitle {
        text-align: center;
        padding-bottom: 20px;
        font-size: 90px;
        text-shadow: 2px 2px 0 #B00, 3px 3px 0 #108bf9, 4px 4px 0 #00BD2A;
        color: white;
        margin-bottom: 30px;
    }
    
    .summer-cover {
        background: url("assets/summer2.jpg") center/cover no-repeat;
        height: 500px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 78, 0.6); /* #00004e with 60% opacity */
        z-index: 1;
    }
    
    .cover-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        padding: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .cover-content h1 {
        color: #00bd2a;
        font-size: 60px;
        text-shadow: 0 0 6px #000;
        padding-bottom: 30px;
        margin-top: 0;
    }
    
    .cover-content p {
        font-size: 18px;
        width: 60%;
        margin: 0 auto 30px;
        text-shadow: 0 0 15px #00000073;
        line-height: 1.6;
    }
    
    .cover-content button {
        background-color: #00bd2a;
        border: none;
        border-radius: 5px;
        box-shadow: 0 0 15px #00000073;
        color: #fff;
        cursor: pointer;
        font-family: Sequel, sans-serif;
        font-size: 23px;
        padding: 13px 25px;
        transition: .3s;
    }
    
    .cover-content button:hover {
        background-color: #01a725;
        transform: translateY(-2px);
    }
    
    /* Carousel controls */
    .carousel-control-prev, 
    .carousel-control-next {
        width: 5%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-color: rgba(0, 189, 42, 0.5);
        border-radius: 50%;
        padding: 20px;
        background-size: 60%;
    }
    
    /* Responsive adjustments */
    @media only screen and (max-width: 1200px) {
        #summertitle {
            font-size: 70px;
        }
        
        .cover-content h1 {
            font-size: 50px;
        }
        
        .cover-content p {
            width: 70%;
            font-size: 16px;
        }
    }
    
    @media only screen and (max-width: 992px) {
        #summertitle {
            font-size: 60px;
        }
        
        .summer-cover {
            height: 450px;
        }
        
        .cover-content h1 {
            font-size: 45px;
            padding-bottom: 20px;
        }
        
        .cover-content p {
            width: 80%;
        }
    }
    
    @media only screen and (max-width: 768px) {
        #summertitle {
            font-size: 50px;
            margin-bottom: 20px;
        }
        
        .summer-cover {
            height: 400px;
        }
        
        .cover-content h1 {
            font-size: 40px;
            padding-bottom: 15px;
        }
        
        .cover-content p {
            width: 90%;
            font-size: 15px;
        }
        
        .cover-content button {
            font-size: 20px;
            padding: 10px 20px;
        }
    }
    
    @media only screen and (max-width: 576px) {
        #summerschool {
            margin: 50px 0;
        }
        
        #summertitle {
            font-size: 40px;
            padding-bottom: 10px;
        }
        
        .summer-cover {
            height: 350px;
        }
        
        .cover-content h1 {
            font-size: 32px;
            padding-bottom: 10px;
        }
        
        .cover-content p {
            width: 95%;
            font-size: 14px;
            margin-bottom: 20px;
        }
        
        .cover-content button {
            font-size: 18px;
            padding: 8px 16px;
        }
        
        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            padding: 15px;
        }
    }
  }
  
  .cover-content h1 {
      font-size: 32px;
      padding-bottom: 10px;
  }
  
  .cover-content p {
      width: 95%;
      font-size: 14px;
      margin-bottom: 20px;
  }
  
  .cover-content button {
      font-size: 18px;
      padding: 8px 16px;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
      padding: 15px;
  }
}

/* Ensure carousel controls are visible on mobile */
.carousel-control-prev, .carousel-control-next {
  z-index: 10;
  width: 8%;
}

/* Improve touch target size for mobile */
@media (max-width: 768px) {
  .carousel-control-prev, .carousel-control-next {
      width: 15%;
  }
}

/* Fix for carousel content positioning */
.carousel-inner {
  height: 100%;
}

/* Smooth transitions */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}