.py-77{
  padding-block: clamp(40px, 6vw, 77px);
}
.pb-117{padding-bottom: clamp(40px, 6vw, 117px);}
.pt118{padding-top: clamp(40px, 6vw, 117px);}
.acc-banner {
  background: url('/application/academy/assets/images/acc-banner.jpg') no-repeat center center/cover;
   padding-block: clamp(40px, 12vw, 139px);
  position: relative;
  color: white;
}
.bg-ebe9e4{background: #ebe9e4;}
.font-28{ font-size: clamp(16px, 4vw, 28px); }
.font-36{ font-size: clamp(24px, 4vw, 36px); }
.font-17{ font-size: clamp(16px, 4vw, 17px); }
.max438{width: 279px;height: 436px;    position: relative;
  bottom: 50px;
z-index: 99;}
.box-reds{
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-text{max-width: 65ch;}
.mw-902{max-width: 902px;}
.leading1{line-height: 1;}

.p-6274{padding-block: clamp(40px, 6vw, 64px);}
.pblock84{padding-block: clamp(40px, 6vw, 84px);}
.macs{max-width: 70ch;
  margin: auto;
  text-align: center;}
.p-5040{padding-block: clamp(20px, 3vw, 40px);
  padding-inline: clamp(20px, 3vw, 50px);}
  .pbcs127{padding-bottom: clamp(40px, 6vw, 127px);}
.max1124{ max-width: 1124px; margin: auto; padding-block: 50px;}
.containerser {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
 
.boxser {
  background-color: #EBE9E4;
  color: #000;
  padding: 40px 18px;
  text-align: center; 
  flex: 1 1 calc(25% - 30px); /* for 4 per row minus gap */
  box-sizing: border-box;
  max-width: 278px;
}

.boxser:nth-child(n+5) {
  flex: 1 1 calc(33.33% - 30px); /* for 3 per row */
}

.bg-mainblue{background: #1E14AA;}

/* Responsive adjustments */
@media (max-width: 900px) {
  .boxser {
    flex: 1 1 calc(50% - 30px); /* 2 per row */
  }
}

@media (max-width: 600px) {
  .boxser {
    flex: 1 1 100%; /* 1 per row on small screens */
  }
}
.bg-str{background: var(--primary-color);
padding: clamp(20px, 1em, 50px);}
.bg-str p{
  white-space: nowrap;
}
.prof{background-size: cover !important; background-position: top !important;
height:   372px ;
background-repeat: no-repeat !important;
}
.mxite{max-width: 300px;
  margin: auto;
}
.pnme{color: var(--primary-color); padding-block: 23px;}

.bdr10{border-radius: 10px;}

.maxstrs{max-width: 136ch;
  margin: auto;
  text-align: center;
  margin-top: 67px;
  margin-bottom: 42px;}

.redge-section {
  padding: 150px 0px 0px 0px;
  background: #ebebeb;
  color: #000;
  font-family: sans-serif;
}

.redge-container {
  display: flex;
  align-items: center;
  justify-content: center; 
  flex-wrap: wrap;
}
 .hrdd   {  max-width: 38ch;
  margin: auto;
  text-align: center;} 

.redge-logo {
  max-width: 250px;
}

.arrbx{width: 49px ;height: 49px;display: flex;align-items: center;justify-content: center;border-radius: 100%;  background: #D9D9D9;}

.redge-btn {
  display: inline-flex;
  align-items: center;
  gap: 257px;
  padding: 7px 7px 7px 26px;
  border: 1px solid #B7B7B7;
  border-radius: 40px;
  color: #616161;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 17px;
}

.redge-btn:hover { 
  color: #000;
}

.arrow {
  font-size: 18px;
}

.pb-100{padding-bottom: clamp(45px, 6vw, 100px)}

.mx-45{max-width: 45ch;}

.card-dts {
  position: relative; 
  background: #f0f0f0;
  border-radius: 15px;
  padding: 100px 32px 50px 32px; 
  overflow: hidden;
  display: flex;
  height: 100%;
    flex-direction: column;
    gap: 105px;
}

/* Folded corner */
.card-dts::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: white;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-top-right-radius: 12px;
}
.card-dts::after {
  content: url('../assets/images/academy/re10.png');
  position: absolute;
  top: 28px;
  right: 11px;
  width: 80px;
  height: 80px;
  background: white;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  border-top-right-radius: 12px;
}
.icon-dts {
  font-size: 48px; 
}

.card-dts p { 
  line-height: 1.4;
  color: #000;
}

.max47{max-width: 47ch;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box; /* Required for -webkit-line-clamp */
  -webkit-line-clamp: 2; /* Limits the text to 2 lines */
  -webkit-box-orient: vertical; /* Required for -webkit-line-clamp */
  line-clamp: 2; }
  .bbtydr10{border-bottom-left-radius: 40px;border-bottom-right-radius: 40px;}
  .bg-ebebeb{background: #ebebeb;}
  .fbanner{background: url('../assets/images/academy/fbner.jpg') no-repeat center center/cover;
    position: relative;
  min-height: 453px;}
  .topdiv{background: #ffffff;
    padding: 20px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px; }
    .csstext{    display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: end;
          height: 100%;
          position: absolute; 
        bottom: 0;}
          .csstext h3{    font-size: 250px;
            color: #fff;
            line-height: 1;}
  @media (max-width: 1500px) {
    .redge-btn {  
      gap: 20px;}
    }
    @media (max-width: 1200px) {
    
  .csstext h3{    font-size: 180px;}
      }
@media (max-width: 992px) {
  .cdrev{flex-direction: column-reverse;}
  .csstext h3{    font-size: 140px;}
  .redge-btn { 
    margin: auto;
    width: fit-content;
    justify-content: center;
    gap: 20px;}
    
  .row-gap-3{row-gap: 20px;}
.redge-section {
  padding: 50px 0px  ;}
  .max438{width: 470px;height: 320px; bottom: 0; margin-top: 20px;}
}
@media (max-width: 768px) {
  
  .csstext h3{    font-size: 60px;}

  .rer-3671{
    height: 200px;
  }
  .rer img{    object-fit: cover;
    height: inherit;}
    .max1124 { 
      padding-block: 20px;
  }
  .containerser { 
    gap: 10px; 
}
.boxser { 
  padding: 10px;
}
.containerser { 
  flex-direction: column;
  align-items: center;}
  .fl{flex-direction: column;}
  .prof { 
    height: 220px;}
    .pnme { 
      padding-block: 12px;
  }
  .acc-banner { 
    padding-block: clamp(100px, 12vw, 139px);  
}
}

@media (max-width: 600px){
  
.max438{width: 100%;height: 420px; bottom: 0; margin-top: 20px;}
.smnds{flex-direction: column;}
}

@media (min-width: 576px) {
  .pageindex .container-fluid {
      max-width: 540px;
  }
}
@media (min-width: 768px) {
  .pageindex .container-fluid {
      max-width: 750px;
  }
}

@media (min-width: 992px) {
  .pageindex .container-fluid {
      max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .pageindex .container-fluid {
    max-width: 1170px;
}
}
@media (min-width: 1300px) {
  .pageindex .container-fluid {
      max-width: 1270px;
  }
}
@media (min-width: 1570px) {
  .pageindex .container-fluid {
      max-width: 1540px;
  }
}
@media (min-width: 1600px) {
  .pageindex .container-fluid {
      max-width: 1550px;
  }
}
@media (min-width: 1800px) {
  .pageindex .container-fluid {
      max-width: 1750px;
  }
}