.ac-section-subtitle {
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #2d2924;
  display: inline-block;
  margin-bottom: 8px;
}

.ac-section-title {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 600;
  color: #c22f1c;
}
@media (max-width: 991px) {
  .ac-section-title {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .ac-section-title {
    font-size: 26px;
  }
}
/*================
 HERO SECTION CSS 
 ================*/

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1s ease, transform 6s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Overlay */
.ac-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

/* Content */
.ac-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 20px;
}

/* TEXT ANIMATION */
.ac-content h1 {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(50px);
}

.ac-content p {
  font-size: 18px;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(50px);
}

.ac-content .btn {
  background: linear-gradient(62deg,rgba(224, 64, 44, 1) 21%, rgba(253, 204, 40, 1) 100%);
  padding: 12px 30px;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  transform: translateY(50px);
  display: inline-block;
}

/* ACTIVE TEXT ANIMATION */
.slide.active .ac-content h1 {
  animation: textUp 1s ease forwards;
}

.slide.active .ac-content p {
  animation: textUp 1s ease forwards 0.3s;
}

.slide.active .ac-content .btn {
  animation: textUp 1s ease forwards 0.6s;
}

@keyframes textUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width:768px){
  .hero-carousel {
    height: 70vh;
  }
  .ac-content h1{
    font-size: 50px;
  }
  .ac-content p{
    font-size: 16px;
  }
}
@media (max-width:567px){
  .hero-carousel{
    height: 60vh;
  }
  .ac-content{
    max-width:100%;
  }
    .ac-content h1{
    font-size: 42px;
  }
  .ac-content p{
    font-size: 14px;
  }
  .ac-content .btn{
    padding: 10px 15px;
  }
}

/*================= 
ABOUT US SECTION CSS 
===================*/

.ac-about-section {
  position: relative;
  background: #f9f9f9;
  overflow: hidden;
  padding: 60px 0;
}

/* Image Wrapper */
.ac-about-img-wrapper {
  position: relative;
  display: inline-block;
}

/* Yellow Circle */
.ac-circle-bg {
  width: 80%;
  height: 80%;
  background: #f4c76b;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Image */
.ac-about-img {
  position: relative;
  z-index: 2;
}

.academy-logo{
  position: relative;
  max-width: 300px;
  margin-bottom: 25px;
}
/* Content */
.ac-about-text {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
}


/* Shapes */
.ac-shape {
  position: absolute;
  border-radius: 50%;
}

.ac-shape1 {
  width: 10px;
  height: 10px;
  background: purple;
  top: 20%;
  right: 10%;
}

.ac-shape2 {
  width: 8px;
  height: 8px;
  background: green;
  bottom: 10%;
  left: 10%;
}

/* Responsive */
@media (max-width: 991px) {
  .ac-about-title {
    font-size: 28px;
    text-align: center;
  }

  .ac-about-content {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .ac-circle-bg {
    width: 220px;
    height: 220px;
  }

  .ac-about-img {
    max-width: 100%;
  }

  .ac-about-title {
    font-size: 24px;
  }
}


/*========================== 
ACADEMY GALLERY SECTION CSS 
==========================*/
.gallery-section {
  background: #f9f9f9;
  padding: 60px 0;
}

/* Image Box */
.gallery-item {
  width: 100%;
  height: 220px; /* SAME HEIGHT FOR ALL */
  overflow: hidden;
  border-radius: 6px;
  position: relative;
}

/* Image Fit */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* IMPORTANT */
  transition: transform 0.4s ease;
}

/* Hover Effect */
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Responsive Height */
@media (max-width: 991px) {
  .gallery-item {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .gallery-item {
    height: 180px;
  }
}

/*==================== 
WHY CHOOSE SECTION CSS
===================== */
.ac-why-section {
  background: #f8f9fa;
  padding: 60px 0;
}

/* WHY CARDS */
.ac-why-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ac-why-card img {
  width: 70px;
  margin-bottom: 15px;
}

.ac-why-card p {
  font-size: 16px;
  color: #333;
}

.ac-why-card:hover {
  transform: translateY(-5px);
}


/*=============== 
ACADEMY FORM CSS 
================*/
.ac-form-section{
  position: relative;
  padding: 60px 0;
  background-image: url('../images/academy/form-bg.webp');
  object-fit: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.ac-form{
  padding: 30px;
  border-radius: 20px;
}

@media (max-width:768px) {
  .ac-form{
    padding: 10px;
  }
}
/*==================
 ACADEMY SECTION CSS
 ================ */

 .academy-section {
  background: #f9f9f9;
  padding: 60px 0;
}

.section-subtitle {
  color: #777;
  font-size: 15px;
  max-width: 600px;
  margin: auto;
}

/* Card */
.academy-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: 0.3s;
  border-top: 2px solid #c22f1c;
}

.academy-card h5 {
  font-weight: 700;
  margin-bottom: 15px;
}

.academy-card ul {
  padding-left: 18px;
  margin-bottom: 15px;
}

.academy-card ul li {
  margin-bottom: 8px;
  font-size: 14px;
}

.academy-card p {
  font-size: 14px;
  color: #555;
}

.academy-card:hover {
  transform: translateY(-6px);
}

/* Responsive */


@media (max-width: 576px) {

  .academy-card {
    padding: 20px;
  }
}
