/*------------------------------------
  Slider Section Styles
------------------------------------*/

/* Desktop Styles */
.carousel-inner {
  height: 45rem;
  background-color: #161616;
  display: flex;
  position: relative;
}

.carousel-caption {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  padding: 15px;
  width: 50%;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}

.carousel-caption h5 {
  font-size: 35px;
  margin: 10px 0 0 20px;
  color: white;
  text-align: left;
}

.carousel-caption p {
  font-size: 16px;
  margin: 5px 0 0 20px;
  text-align: left;
  color: white;
}

.bg-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.bg-img img {
  height: 100%;
  padding: 80px;
  margin-left: 15rem;
  object-fit: cover;
}


/*------------------------------------
  Responsive Styles (Mobile & Tablets)
------------------------------------*/
@media (max-width: 768px) {
  .carousel-inner {
    height: auto;
    flex-direction: column;
  }

  .carousel-caption {
    position: static;
    transform: none;
    width: 100%;
    padding: 20px;
    height: auto;
    align-items: center;
    text-align: center;
  }

  .carousel-caption h5 {
    font-size: 2.2rem;
    margin: 10px 0;
    text-align: center;
  }

  .carousel-caption p {
    font-size: 1rem;
    margin: 10px 0 15px;
    text-align: center;
  }

  .bg-img {
    position: static;
    width: 100%;
    height: 250px;
    overflow: hidden;
  }

  .bg-img img {
    width: 70%;
    height: 100%;
    padding: 0;
    margin-left: 60px;
    object-fit: cover;
 
  }
}

/* card ------------------------------------------------------------*/
.container-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    background-color: #202020;
    margin: 5rem;
    padding: 20px;
    border-radius: 8px;
    
}

.container-card .card-one {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.heading {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 2rem; /* Add some space above the heading */
    margin-bottom: 2rem;
}

.heading h1 {
    color: #ffffff;
    font-size: 2.5rem; /* Slightly larger heading */
    margin: 0;
}

.card {
    display: flex;
    flex-direction: column;
    background-color: #242424;
    border-radius: 8px;
    overflow: hidden;
    width: 310px; /* Fixed width for larger screens */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-top: 2rem;
    border: 1px solid rgb(94, 94, 94);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.offer {
    background-color: #ffdd00;
    color: #000;
    padding: 5px 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

.card-header {
    padding: 20px;
    color: #fff;
    display: flex; /* Use flexbox for centering h2 */
    justify-content: center; /* Center h2 horizontally */
    align-items: center; /* Center h2 vertically */
}

.card-header h2 {
    margin: 0; /* Remove default margin from h2 */
}

.dsa {
    background-color: #4caf50;
    height: 80px;
}

.backend {
    background-color: #673ab7;
    height: 80px;
}

.ml-ds {
    background-color: #03a9f4;
    height: 80px;
}

.gate {
    background-color: #607d8b;
    height: 80px;
}

.card-body {
    flex: 1;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body p {
    text-align: left;
    color: #dedede;
    margin: 0;
}

.interest {
    font-size: 12px;
    color: #aaa;
}

.rating {
    font-size: 14px;
    margin: 10px 0;
    color: #c6c6c6;
}

.card-body h3 {
    text-align: left;
    color: #ffffff;
    margin: 10px 0;
}

.seats {
    color: #ff0000;
    font-weight: bold;
}

.offer-btn {
    display: block; /* Make the button a block element to take full width */
    width: 100%; /* Full width within the card body */
    padding: 5px 0; /* Consistent vertical padding, no horizontal padding needed here */
    font-size: 14px; /* Slightly larger font */
    color: #009e52;
    text-align: center;
    text-decoration: none;
    border: 2px solid #009e52;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    background-color: #242424;
    margin-top: 60px; /* Adjusted margin to avoid large gap */
}

.offer-btn:hover {
    background-color: #009e52;
    color: #ffffff;
    cursor: pointer;
}

/* Responsive Styles for Cards */
@media (max-width: 1200px) {
    .container-card {
        gap: 15px;
        margin: 30px; /* Adjust margin */
        padding: 20px;
    }

    .card {
        width: 280px; /* Slightly smaller width */
        margin-top: 1.5rem; /* Reduced margin */
    }

    .offer-btn {
        padding: 8px 0; /* Adjust padding for consistency */
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .container-card {
        gap: 10px;
        margin: 20px; /* Further reduced margin */
    }

    .card {
        width: calc(50% - 20px); /* Two cards per row, with gap */
        max-width: 320px; /* Max width to prevent cards from getting too large */
        margin-top: 1rem;
    }

    .offer-btn {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .container-card {
        flex-direction: column;
        align-items: center;
        margin: 15px; /* Reduced margin */
    }

    .card {
        width: 90%; /* Cards take 90% of the container width */
        max-width: 245px; /* Ensure they don't get too wide on larger mobile screens */
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .heading h1 {
        font-size: 2rem; /* Adjust heading size */
    }

    .offer-btn {
        padding: 10px 0; /* More padding for better touch target */
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container-card {
        margin: 10px; /* Minimal margin */
        padding: 10px; /* Minimal padding */
    }

    .card {
        width: 90%; /* Almost full width on very small screens */
        max-width: 350px;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .offer {
        font-size: 9px;
        top: 5px;
        left: 5px;
    }

    .card-body {
        padding: 15px; /* Adjust padding */
    }

    .offer-btn {
        padding: 8px 0;
        font-size: 13px;
    }
}

/* two-cards */
.offer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 1px;
    margin-top: 5rem;
    gap: 20px;
}

.offer-box {
    background-color: #242424;
    border-radius: 8px;
    padding: 20px;
    width: 641px; /* Fixed width for larger screens */
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgb(94, 94, 94);
}

.text-section h1 {
    font-size: 2rem;
    color: #ffffff;
}

.subtext {
    color: #009e52;
    font-weight: bold;
    font-size: 1.5rem;
}

.highlight {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: bold;
}

.discount,
.refund {
    font-size: 2rem;
    font-weight: bold;
    color: #32cd32;
    margin: 0;
}

/* Responsive styles for two-cards */
@media (max-width: 992px) {
    .offer-box {
        width: calc(50% - 20px); /* Two boxes per row */
        max-width: 500px; /* Limit max width */
    }

    .text-section h1 {
        font-size: 1.8rem;
    }

    .subtext {
        font-size: 1.3rem;
    }

    .highlight {
        font-size: 1rem;
    }

    .discount,
    .refund {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    /*.offer-container {*/
    /*    margin-top: 3rem; */
    /*    flex-direction: column;*/
    /*}*/
    .offer-container {
    display: flex
;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 1px;
    margin-top: 5rem;
    gap: 20px;
}

    .offer-box {
        width: 100%; /* Take up more width */
        max-width: 510px; /* Maintain a reasonable max width */
        padding: 15px;
    }

    .text-section h1 {
        font-size: 1.5rem;
    }

    .subtext {
        font-size: 1.1rem;
    }

    .highlight {
        font-size: 0.9rem;
    }

    .discount,
    .refund {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .offer-container {
        margin-top: 2.5rem;
        gap: 15px;
    }

    .offer-box {
        width: 90%;
        padding: 10px;
    }

    .text-section h1 {
        font-size: 1.3rem;
    }

    .subtext {
        font-size: 1rem;
    }

    .highlight {
        font-size: 0.8rem;
    }

    .discount,
    .refund {
        font-size: 1.3rem;
    }
}

/* ------------------------------------------new container (grid of boxes)-------------------------------*/
.container-one {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    width: 100%;
    margin-bottom: 20px; /* Add some space at the bottom */
    margin-top: 20px; /* Add some space at the top */
    justify-content: center;
    padding: 0 20px; /* Add horizontal padding to the container */
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgb(94, 94, 94);
    height: 60px;
    transition: transform 0.2s ease-in-out; /* Smooth hover effect */
}

.box:hover {
    transform: translateY(-3px);
}

.trending {
    background-color: #ea7361;
}

.dsa {
    background-color: #3b82c4;
}

.development {
    background-color: #a785c4;
}

.ml {
    background-color: #add4a2;
}

.programming {
    background-color: #6c788a;
}

.cloud {
    background-color: #329791;
}

.gate {
    background-color: #7b819c;
}

.all {
    background-color: #f59d6c;
}
/* Responsive design for grid boxes */
@media (max-width: 1200px) {
    .container-one {
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 900px) {
    .container-one {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
        padding: 0 10px;
    }

    .box {
        font-size: 1.1rem;
        height: 55px;
    }
}

@media (max-width: 600px) {
    .container-one {
        grid-template-columns: 1fr;
        grid-gap: 10px;
        padding: 0 17px;
    }

    .box {
       
        font-size: 1rem;
        padding: 15px;
        height: 50px;
    }
}

/* -----------------------------------------------------testimonial------------------------------------ */
.testimonial-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 45px;
}

.testimonial-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  background-color: #2f2f2f;
  color: white;
  padding: 20px;
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 313px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: bold;
  font-size: 14px;
  text-align: right;
  margin-top: auto;
}

.prev-btn,
.next-btn {
  background-color: #232323;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.prev-btn:hover,
.next-btn:hover {
  background-color: #555;
}

/* @media (max-width: 768px) {
                          .testimonial-wrapper {
                            width: calc(280px * 1 + 10px * 0);
                          }
                  
                          .testimonial-card {
                            min-width: 280px;
                            padding: 15px;
                            margin: 5px;
                          }
                        } */

@media (max-width: 480px) {
  .testimonial-slider {
    padding: 0px;
  }

  .testimonial-card {
    min-width: 293px;
  }
  .prev-btn,
  .next-btn {
    display: none;
  }
}

