/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: #0a66c2;
  color: white;
  padding: 12px 0;
  position: relative;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Search Bar */
.search-container {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 5px;
  padding: 3px 10px;
  margin-left: 15px;
}

.search-container input {
  border: none;
  outline: none;
  padding: 6px 8px;
  font-size: 14px;
  width: 120px;
  transition: width 0.3s;
}

.search-container button {
  background: transparent;
  border: none;
  cursor: pointer;
}

.search-container button img {
  width: 18px;
  height: 18px;
}

/* Navbar */
.navbar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 2px;
}


/*Hero Section Start*/
.hero {
    color: white;
    padding: 80px 20px; /*before was 100px 20px*/
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/uploads/hero_assets/hero1.jpg') no-repeat center/cover;
    animation: bgSlider 10s infinite; /*before was 10s */
}

@keyframes bgSlider {
    0% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url('/uploads/hero_assets/hero1.jpg');
    }

    25% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url('/uploads/hero_assets/hero2.jpg');
    }
    50% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url('/uploads/hero_assets/hero3.jpg');
    }

    75% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url('/uploads/hero_assets/hero4.jpg');
    }

    100% {
        background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
            url('/uploads/hero_assets/hero5.jpg');
        }
}


.hero h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero button {
  padding: 12px 24px;
  font-size: 16px;
  background-color: white;
  color: #0a66c2;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Product Section */
.section-title {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 28px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}

.course-card {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

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

.course-card .card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
}

.course-card .card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card button {
  margin-top: 15px;
  padding: 10px 20px;
  background: #0a66c2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Testimonials */
.testimonials {
  background: #e0eafc;
  padding: 50px 20px;
  text-align: center;
}

.testimonials blockquote {
  font-style: italic;
  margin: 10px 0;
}

/* Newsletter */
.newsletter {
  padding: 50px 20px;
  text-align: center;
}

.newsletter-form {
  margin-top: 15px;
}

.newsletter input {
  padding: 10px;
  width: 250px;
  max-width: 100%;
  margin-right: 10px;
}

.newsletter button {
  padding: 10px 20px;
  background: #0a66c2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Footer */
/* .site-footer {
  background-color: #0a66c2;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
} */

/* Custom Footer Styles */
/* Footer Styling */
.custom-footer {
    background-color: #0a66c2;
    color: #fff;
    padding: 60px 20px 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column p,
.footer-column li,
.footer-column a {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styling */
/* Responsive */
@media (max-width: 768px) {
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 0px 15px;
    position: relative; /* Required for absolute menu */
  }

  .logo {
    font-size: 20px;
    flex-shrink: 0;
    margin-right: 8px;
  }

  .search-container {
    position: relative;
    flex-grow: 1;
    margin: 0 10px;
    max-width: 100%;
    background: white;
    border-radius: 10px;
  }

  .search-container input {
    width: 100%;
    padding: 8px 38px 8px 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
  }

  .search-container button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .search-container button img {
    width: 18px;
    height: 18px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .hamburger span {
    height: 3px;
    width: 22px;
    background: white;
    border-radius: 2px;
  }

  .navbar {
    display: none;
    flex-direction: column;
    background-color: #0a66c2;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    z-index: 99;
  }

  .navbar.show {
    display: flex;
  }

  .hero {
    padding: 40px 20px;
  }

   .footer-grid {
       flex-direction: column;
       text-align: center;
       gap: 30px;
   }
}
