:root {
  --main-color: #3795bd; 
  --contact-color: #ff1e00;
  --social-media: #1b8bf4;
  --nav-bg: #ffffff;
  --button:#4E31AA;
  --button-hover:#3A1078;
  :root {
  --nav-bg: #333; 
}

}

html {
  scroll-behavior: smooth; /* Enables smooth scrolling */
}

/* General styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 200vh; /* Just for testing scrolling */
  padding-top: 70px; /* Adjust this to prevent content from being hidden behind fixed nav */
}


/* Header  */
header {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.247);
}

/* CONTACT SECTION (Non-sticky) */
.contact-wrapper {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 40px;
  background-color: white; /* Keeps the contact bar visible */
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  max-width: 100%;
}

.contact-info > a {
  color: black;
  text-decoration: none;
}

.contact-info > a > i {
  color: var(--contact-color);
}

.social-media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-media > a {
  text-decoration: none;
  font-size: 24px;
}

.fa-facebook {
  color: #1877F2;
}

.fa-youtube {
  color: #FF0000;
}

.fa-instagram {
  color: #FF0000;
}

.fa-whatsapp {
  color: #25D366;
}



/* Hero section */
.hero-section {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}
/* Arrow button styles */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.prev-btn:hover, .next-btn:hover {
  background-color: rgba(0,0,0,0.8);
}


/* Responsive Design for Small Devices */
@media (max-width: 768px) {
  .slide img {
    height: auto; /* Ensure images scale properly */
  }
}


@keyframes appear {
  from {
    opacity: 0;
    scale: 0.8;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* About section */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  padding: 50px;
  background-color: #f4f4f4;
  border-radius: 0px 0px 15px 15px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  max-height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 25% cover 50%;
  animation-fill-mode: forwards;
}

.about-content {
  max-width: 500px;
  margin-left: 30px;
  opacity: 0;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 25% cover 50%;
  animation-fill-mode: forwards;
}

.about-content h1 {
  font-size: 4em;
  margin-bottom: 20px;
  color: #333;
}

.about-content p {
  font-size: 1em;
  margin-bottom: 20px;
  color: #555;
}

.read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--button);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.read-more-btn:hover {
  background-color: var(--button-hover);
}

/* Responsive Styles for Mobile Devices */
@media (max-width: 768px) {
  .about-section {
    flex-direction: column; /* Stack items vertically */
    padding: 20px; /* Reduce padding for smaller screens */
    text-align: center; /* Center-align text */
  }

  .about-image img {
    max-width: 100%; /* Ensure image fits within the screen */
    margin-bottom: 20px; /* Add spacing between image and content */
  }

  .about-content {
    margin-left: 0; /* Remove left margin for centered content */
    max-width: 100%; /* Allow content to take full width */
  }

  .about-content h1 {
    font-size: 2.5em; /* Reduce font size for mobile */
    margin-bottom: 15px; /* Adjust spacing */
  }

  .about-content p {
    font-size: 0.9em; /* Slightly reduce font size for mobile */
    margin-bottom: 15px; /* Adjust spacing */
  }

  .read-more-btn {
    width: 100%; /* Make button full width */
    padding: 12px 0; /* Adjust padding for better touch interaction */
  }
}

/* Course section */

.popular-courses {
  text-align: center;
  padding: 50px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; /* Initially hidden */
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 25% cover 50%;
  animation-fill-mode: forwards; /* Retain the final state */
}

.popular-courses .container {
  max-width: 800px;
  margin: 0 auto;
}

.popular-courses .badge {
  display: inline-block;
  background-color: var(--nav-bg);
  color: var(--button);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
}

.popular-courses .title {
  font-size: 56px;
  font-weight: 700;
  margin: 15px 0;
  color: #000;
}

.popular-courses .description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* course - cards */

.course-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 50px;
  background-color: #ffffff;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; /* Initially hidden */
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 25% cover 50%;
  animation-fill-mode: forwards; /* Retain the final state */
}
.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 35px;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.card-subtitle {
  font-size: 24px;
  font-weight: bold;
  color: var(--button);
}

.card-description {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.card-button {
  background-color: var(--button);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.card-button:hover {
  background-color: var(--button-hover);
}
.course-cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 50px;
  background-color: #f9f9f9;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 300px;
  padding: 20px;
}

.card-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin-bottom: 15px;
}

.card-subtitle {
  font-size: 24px;
  font-weight: bold;
  color: var(--button);
  margin-bottom: 15px;
}

.card-description {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
  margin-bottom: 15px;
}

.card-button {
  background-color: var(--button);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.card-button:hover {
  background-color: var(--button-hover);
}

/* Achievement section */
.hidden {
  display: none !important;
}

.achievements-section {
  padding: 40px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.achievements-section h1 {
  font-weight: bolder;
  font-family: Arial, sans-serif;
  color: var(--black);
  font-size: 3em;
  margin-bottom: 15px; /* Adjust spacing */
}

@media (max-width: 340px) {
  .achievements-section h1 {
    font-size: 1.7em;
  }
}

.achievements-section h2 {
  font-size: 22px;
  color: #555;
  margin-bottom: 30px;
}

.achievements-card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.achievements-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px #0000001a;
  width: 300px;
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievements-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.achievements-card img {
  width: 100%;
}

.achievements-show-more button {
  background-color: var(--button);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 20px;
  transition: 0.3s;
}

.achievements-show-more button:hover {
  background-color: var(--button-hover);
}
/* Caption under the new section title */
.achievements-caption {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 25px;
  font-style: italic;
}

/* Let the container auto-fit based on image size */
.achievements-card img {
  width: 100%;
  height: auto; /* maintains original proportions */
  object-fit: contain; /* prevents cropping for differently sized images */
  display: block;
}
.achievement-photo-caption {
  margin-top: 10px;
  font-size: 1em;
  color: #333;
  font-weight: 500;
}

/* Footer section */

.site-footer {
  background-color: var(--main-color);
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 14px;
  margin: 0;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #007bff;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 14px;
}

.social-media-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-media-links .social-icon {
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.social-media-links .social-icon:hover {
  color: #007bff; /* Change to your preferred hover color */
  transform: scale(1.2); /* Slight scaling effect on hover */
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #444;
  font-size: 14px;
}
.footer-links ul li a {
  text-decoration: none;
  color: #ffffff; 
  transition: color 0.3s ease-in-out; 
}

.footer-links ul li a:hover {
  color: var(--button-hover); 
}

.designer{
  text-decoration: none;
  color: white;
}
.designer:hover{
  color: rgb(255, 0, 0);
}