* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --bg-color:linear-gradient(to left, #850101, #000);
  --main-color2: rgb(231, 226, 226);
  --text: white;
  --shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
  --exra-color: rgb(185, 185, 185);
  --bg-color2: white;
  --text-color2: black;
  --main-color: #7D0000;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2.8rem;
  padding: 2rem 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: .3s;
  background: white;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.header.sticky {
  background: var(--text);
}

.logo {
  position: relative;
  font-size: 2.5rem;
  color: var(--text);
  font-weight: 600;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.navbar {
  position: relative;

}

.navbar a {
  font-size: 1.2rem;
  color: black;
  font-weight: 500;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-left: 3.5rem;
  transition: .3s;
}



.navbar a:hover,
.navbar a.active {
  color: rgb(104, 101, 101);
}

.navbar a.active:hover {
  color: var(--text);
}

#menu-icon {
  position: relative;
  font-size: 2.6rem;
  color: black;
  cursor: pointer;
  display: none;
}

.logo .animate,
.navbar .animate,
#menu-icon .animate {
  animation: showRight 1s ease forwards;
  animation-delay: calc(0.3s * var(--i));
}


.logo .animate,
.navbar .animate,
#menu-icon .animate {
  animation: showRight 4s ease forwards;
  animation-delay: calc(0.3s * var(--i));
}

@media (max-width: 768px) {
  .header {
    background: white;
  }
  
  #menu-icon {
    display: block;
  }
  
  .navbar {
    position: absolute;  
    top: 100%;
    left: -100%;
    width: 100%;
    padding: 1rem 4%;
    background: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: 0.25s ease;
    transition-delay: 0.25s;
  }
  
   .navbar.active {
    left: 0;
    transition-delay: 0s;
  }  
  
   .navbar .active-nav {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    z-index: -1;
    transition: 0.25s ease;
    transition-delay: 0s;
  } 
  
   .navbar.active .active-nav {
    left: 0;
    transition-delay: 0.25s;
  } 
  
  .navbar a {
    display: block;
    font-size: 1.2rem;
    margin: 3rem 0;
    transform: translateX(-20rem);
    transition: 0.25s ease;
    transition-delay: 0s;
  }
  
  .navbar.active a {
    transform: translateX(0);
    transition-delay: 0.25s;
  }
}

.carousel-container {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  height: 600px;
}

/* Carousel slides */
.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

/* Content overlay */
.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4);
}

.slide-heading {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.slide-subheading {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.slide-button {
  padding: 12px 24px;
  background-color: #e62e2d;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.slide-button:hover {
  background-color: #c42322;
}

/* Navigation arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background-color 0.3s;
}

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

.carousel-arrow-prev {
  left: 20px;
}

.carousel-arrow-next {
  right: 20px;
}

/* Dots indicators */
.carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: white;
}

/* Media queries for responsiveness */
@media (max-width: 992px) {
  .slide-heading {
      font-size: 2.5rem;
  }
  
  .slide-subheading {
      font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .carousel-container {
      height: 500px;
  }
  
  .slide-heading {
      font-size: 2rem;
  }
  
  .slide-subheading {
      font-size: 1rem;
  }
  
  .carousel-arrow {
      width: 40px;
      height: 40px;
      font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .carousel-container {
      height: 400px;
  }
  
  .slide-heading {
      font-size: 1.5rem;
  }
  
  .slide-subheading {
      font-size: 0.9rem;
      margin-bottom: 1rem;
  }
  
  .slide-button {
      padding: 10px 20px;
      font-size: 0.9rem;
  }
  
  .carousel-arrow {
      width: 35px;
      height: 35px;
      font-size: 1rem;
  }
}
.hero {
  background-color: #e0e0e0;
  /* Slightly darker gray */
  text-align: center;
  padding: 50px 20px;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.features {
  display: flex;
  justify-content: space-around;
  padding: 50px 20px;
  background-color: #f8f8f8;
  /* Very light gray */
}

.feature-item {
  text-align: center;
  width: 30%;
  border: 1px solid #ddd;
  /* Light gray border */
  border-radius: 10px;
  /* Rounded corners */
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  transition: transform 0.2s ease;
  /* Smooth hover effect */
}

.feature-item:hover {
  transform: translateY(-5px);
  /* Lift on hover */
}

.feature-item img {
  height: 80px;
  /* Adjust icon size */
  margin-bottom: 20px;
}

.feature-item h3 {
  margin-bottom: 10px;
}

.button2 {
  text-decoration: none;
  padding: 10px 20px;
  border: 3px;
  background-color: rgb(227, 34, 56);
  color: white;
  margin-left: 90vh;
}


/* Media Queries for Responsiveness */

@media (max-width: 768px) {

  /* Tablet and smaller screens */
  .features {
    flex-direction: column;
    /* Stack features vertically */
    align-items: center;
  }

  .feature-item {
    width: 80%;
    /* Adjust width */
    margin-bottom: 20px;
    /* Add space between items */
  }

  .button2 {
    margin-left: 0;
    /* Reset margin */
    display: block;
    /* Make button full width */
    width: 80%;
    margin: 20px auto;
    /* Center button */
  }
}

@media (max-width: 480px) {

  /* Mobile phones */
  .hero h1 {
    font-size: 2em;
    /* Adjust heading size */
  }

  .feature-item {
    width: 90%;
    /* Adjust width further */
  }

  .button2 {
    width: 90%;
    /* Adjust button width */
  }
}.courses {
    text-align: center;
    padding: 50px 20px;
}

.courses-header h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.courses-header p {
    margin-bottom: 30px;
}

.course-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* Space between cards */
    flex-wrap: wrap;
    /* Wrap cards on smaller screens */
}

.course-card {
    width: 300px;
    /* Fixed width for cards */
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.course-card h3 {
    padding: 20px;
    margin: 0;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-decoration: none;
    color:rgb(227, 34, 56);
    font-weight: bold;
}

.read-more img {
height: 30px;
}


/* Enroll section styles */
.enroll-section {
  background-color:rgb(227, 34, 56);
  color: white;
  padding: 80px 0;
}

.enroll-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-direction: row; /* Explicitly set to row to ensure correct order */
}

.enroll-text {
  flex: 1;
}

.enroll-image {
  flex: 1;
}

.enroll-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.enroll-btn {
  display: inline-block;
  background-color: white;
  color: rgb(227, 34, 56);
  font-weight: bold;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.enroll-btn:hover {
  background-color:gold;
}

.arrow {
  display: inline-block;
  margin-left: 8px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .enroll-content {
      flex-direction: column;
  }
  
  .enroll-text, .enroll-image {
      width: 100%;
  }
  
  h2 {
      font-size: 36px;
  }
}

@media (max-width: 576px) {
  .enroll-section {
      padding: 50px 0;
  }
  
  h2 {
      font-size: 30px;
  }
}

.collaboration {
  text-align: center;
  padding: 50px 20px;
}

.collaboration h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow logos to wrap on smaller screens */
  gap: 20px;
}

.partner-logos img {
  height: 80px; /* Adjust logo size */
  margin: 10px;
}


.gallery-section {
  padding: 60px 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header a{
  text-decoration: none;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #222;
}

.section-header p {
  font-size: 18px;
  color: #777;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 15px;
  background: #fff;
}

.gallery-caption h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.gallery-caption p {
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .section-header h2 {
      font-size: 28px;
  }
}

@media (max-width: 800px) {
  .hideOnMobile {
      display: none;
  }

  .menu-button {
      display: block;
  }
}

@media (max-width: 400px) {
  .sidebar {
      width: 100%;
  }
}

.testimonial-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.section-title p {
  font-size: 1.1rem;
  color: #7f8c8d;
  max-width: 700px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 30px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0 15px;
  transition: opacity 0.3s ease;
}

.card-inner {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quote-icon {
  font-size: 2rem;
  color: rgb(227, 34, 56);
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.author-info p {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

.carousel-nav button {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.carousel-nav button:hover {
  background-color: rgb(227, 34, 56);
  color: white;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}



@media (min-width: 768px) {
  .testimonial-card {
      flex: 0 0 50%;
      min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
      flex: 0 0 33.333%;
      min-width: 33.333%;
  }
}

footer {
  width: 100%;
  position: relative; /* change from absolute to relative */
  background: linear-gradient(to left, #850101, #000);
  color: #fff;
  padding: 100px 0 30px;
  border-top-left-radius: 125px;
  font-size: 13px;
  line-height: 20px;
  margin-top: 5rem;
}

.row {
  width: 85%;
  max-width: 1200px; /* Limit maximum width */
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

#log{
  margin-top:-5% ;
}

.col {
  flex-basis: 25%;
  padding: 5px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.col:nth-child(2), .col:nth-child(3) {
  flex-basis: 15%;
}

.logo {
  width: 80px;
  margin-top: 20px; /* Adjust margin for smaller screens */
}

.col h3 {
  margin-bottom: 20px;
  position: relative;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.email-id {
  border-bottom: 1px solid #ccc;
  margin: 10px 0;
}

#hr{
  border: 0;
  border-bottom: 2px solid #ccc;
  margin: 20px auto;
  margin-left: 5px;
}

ul li {
  margin-bottom: 12px;
}

ul li a {
  text-decoration: none;
  color: #ccc;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

form {
  margin-bottom: 30px; /* Adjust margin for smaller screens */
}

form input {
  width: 100%;
  background: transparent;
  color: #ccc;
  border: 0;
  outline: none;
}

hr {
  width: 90%;
  border: 0;
  border-bottom: 1px solid #ccc;
  margin: 20px auto;
}

.copyright {
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.underline {
  width: 100%;
  height: 5px;
  background: #767676;
  border-radius: 3px;
  position: absolute;
  top: 25px;
  left: 0;
  overflow: hidden;
}

.underline span {
  width: 15px;
  height: 100%;
  background: #fff;
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 10px;
  animation: moving 2s linear infinite;
}

@keyframes moving {
  0% {
      left: -20px;
  }
  100% {
      left: 100%;
  }
}

@media (max-width: 900px) {
  .row {
      justify-content: center;
  }
}

@media (max-width: 700px) {
  .col {
      flex-basis: 45%; /* Adjust column width for smaller screens */
      text-align: center;
  }
}

@media (max-width: 500px) {
  .col {
      flex-basis: 100%; /* Full width for smallest screens */
      margin-bottom: 30px;
  }

  .logo {
      width: 60px;
  }

  .underline {
      top: 20px;
  }
  #col2{
      margin-left: -10%;
  }
  #col1{
      margin-left: 30%;
  }
}


