/* Contact Section */
.contact-section {
  background-color: #f8f9fa;
}

.contact-section h2 {
  font-weight: 700;
}

.contact-section form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.contact-section form button {
  padding: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Button Group */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; /* space between buttons */
}

/* Make buttons full width on mobile and add margin on sides */
@media (max-width: 768px) {
  .button-group a {
    width: 100%;
    text-align: center;
    margin-left: 30px;

    margin-right: 30px;
    box-sizing: border-box; /* ensures padding or margin doesn't break layout */
  }
}

.hero-text a {
  display: block;
  margin-bottom: 12px;
  
}

/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* Navbar */
.navbar {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  margin-left: 15px;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #ffc107 !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('../images/hero.avif') center/cover no-repeat;
  color: #fff;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 25px;
}

.hero .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s;
}

.hero .btn:hover {
  transform: translateY(-3px);
}

/* Features Section */
.features-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.features-section h2 {
  font-weight: 700;
  margin-bottom: 40px;
}

.feature-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 30px 20px;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.feature-box h4 {
  font-weight: 600;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background-color: #343a40;
  color: #aaa;
  font-size: 0.95rem;
}

footer a {
  color: #ffc107;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Animation for Buttons */
.animate-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.animate-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.animate-btn i {
  transition: transform 0.3s ease;
}

.animate-btn:hover i {
  transform: rotate(10deg) scale(1.2);
}

/* Button Color Swap Effects */

/* Buy Books Now */
.btn-outline-warning {
  color: #ffc107;
  border-color: #ffc107;
}

.btn-outline-warning:hover {
  background-color: #ffc107 !important;
  color: #000 !important; /* Black text for contrast */
  border-color: #ffc107 !important;
}

/* Track Your Order */
.btn-outline-light {
  color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn-outline-light:hover {
  background-color: #f8f9fa !important;
  color: #000 !important;
  border-color: #f8f9fa !important;
}

/* Download PDFs */
.btn-outline-success {
  color: #28a745;
  border-color: #28a745;
}

.btn-outline-success:hover {
  background-color: #28a745 !important;
  color: #fff !important; /* White text for contrast */
  border-color: #28a745 !important;
}

/* Enroll in Course */
.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  background-color: #007bff !important;
  color: #fff !important; /* White text for contrast */
  border-color: #007bff !important;
}





/*post*/
/* Category filter button styles */
.category-filter {
  text-align: center;
  margin-bottom: 30px;
}

.category-btn {
  padding: 10px 20px;
  font-size: 1rem;
  margin: 0 10px;
  background: #4f46e5;
  color: #534c4c;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.category-btn:hover {
  background: #4338ca;
}

/* Post cards and other styles (same as previous) */
.posts-section {
  background: #f0f6fa;
  padding: 50px 20px;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  max-height: 700px;
  overflow-y: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
  background-color: #000==;
}

.section-header h2 {
  font-size: 2.2rem;
  color: #1f2937;
  margin-bottom: 10px;
}

.section-header p {
  color: #6b7280;
  font-size: 1rem;
}

.posts-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.post-card {
  background: #ffffff;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-title {
  font-size: 1.3rem;
  color: #4f46e5;
  margin-bottom: 10px;
}

.post-desc {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 20px;
}

.learn-more {
  display: inline-block;
  background: #4f46e5;
  color: #ffffff;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s;
}

.learn-more:hover {
  background: #4338ca;
}

/* Scrollbar Styling */
.posts-section::-webkit-scrollbar {
  width: 10px;
}

.posts-section::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
}

.posts-section::-webkit-scrollbar-track {
  background: transparent;
}
/* General Layout Styles */
.posts-section {
  margin: 20px auto;
  padding: 20px;
  overflow-y: auto; /* Makes the posts section scrollable */
  max-height: 80vh; /* Limiting height so content can scroll */
}

.category-filter {
  display: flex;
  justify-content: center; /* Center the dropdowns in desktop */
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px; /* Adjust gap between dropdowns */
}

.filter-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

#class-select, #subject-select {
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 200px;
}

/* Posts Wrapper */
.posts-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.post-card {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.post-card:hover {
  transform: translateY(-10px);
}

.post-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.learn-more {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.learn-more:hover {
  background-color: #218838;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .posts-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .posts-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hide the button group for all screen sizes */
  .category-btn {
    display: none;
  }

  /* Ensure dropdowns are displayed */
  #class-select, #subject-select {
    width: 100%;
  }

  .filter-group {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .posts-wrapper {
    grid-template-columns: repeat(2, 1fr); /* 👈 Show 2 cards instead of 1 */
  }

  /* Optional: Adjust filters for small screen width */
  .category-filter {
    flex-direction: column;
    align-items: center;
  }

  .filter-group {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  #class-select, #subject-select {
    width: 100%;
  }
}
.alumni-section {
  overflow-x: hidden;
  width: 100%;
}

    .section-header {
      text-align: center;
      margin-top: 30px;
      /* Add margin from the top */
      margin-bottom: 30px;
    }

    .section-header h2 {
      font-size: 2.2rem;
      color: #4f46e5;
      /* Change the color here */
      margin-bottom: 10px;
      font-weight: 600;
    }

    .section-header p {
      color: #6b7280;
      font-size: 1rem;
    }

    .section-header h2 i {
      margin-right: 10px;
      /* Space between the icon and text */
      color: #ffc107;
      /* Color of the icon */
    }
/*alumini*/

      .alumni {
        background: #f4f6f9;
        font-family: 'Segoe UI', sans-serif;
      }
    
      .alumni-section {
        padding: 60px 20px;
        background-color: #ffffff;
        border-radius: 2rem;
      }
    
      .alumni-title {
        text-align: center;
        margin-bottom: 2rem;
      }
    
      .alumni-title h2 {
        font-weight: bold;
        font-size: 2.2rem;
        color: #343a40;
      }
    
      .alumni-title p {
        color: #6c757d;
        font-size: 1rem;
      }
    
      .alumni-card {
        border: none;
        border-radius: 1.5rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background-color: #fff;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      }
    
      .alumni-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      }
    
      .alumni-card img {
        width: 100%;
        height: 230px;
        object-fit: cover;
        border-radius: 1.5rem 1.5rem 0 0;
      }
    
      .alumni-card-body {
        padding: 1rem 1.2rem;
      }
    
      .alumni-card h5 {
        font-weight: 600;
        margin-top: 0.5rem;
      }
    
      .alumni-card p {
        font-size: 0.9rem;
        color: #6c757d;
      }
    
      .gradient-btn {
        background: linear-gradient(135deg, #4f46e5, #3b82f6);
        color: #fff;
        border: none;
        border-radius: 30px;
        padding: 0.5rem 1rem;
        transition: 0.3s ease;
      }
    
      .gradient-btn:hover {
        background: linear-gradient(135deg, #3b82f6, #4f46e5);
      }
    
      /* Horizontal scroll styling */
      .alumni-scroll-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
      }
    
      .alumni-scroll {
        display: flex;
        gap: 1rem;
        scroll-behavior: smooth;
      }
    
      .alumni-scroll .card {
        flex: 0 0 80%;
        scroll-snap-align: start;
        max-width: 250px;
      }
    
      @media (min-width: 576px) {
        .alumni-scroll .card {
          flex: 0 0 250px;
        }
      }
    
      @media (min-width: 768px) {
        .alumni-scroll .card {
          flex: 0 0 30%;
        }
      }
    
      /* Custom scrollbar */
      #alumniCardsContainer::-webkit-scrollbar {
        height: 8px;
      }
    
      #alumniCardsContainer::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
      }
    
      #alumniCardsContainer::-webkit-scrollbar-thumb:hover {
        background: #555;
      }

      .styled-line {
        
        border: none;
        height: 3px;
        background: linear-gradient(to right, #1abc9c, #3498db);
        
        margin-bottom: 0px;
        border-radius: 5px;
        box-shadow: 0 0 5px rgba(18, 1, 1, 0.1);
      }

  
      #whatsapp-btn {
        position: fixed;
        bottom: 100px;
        right: 20px;
        z-index: 9999;
        font-size: 26px;
        width: 60px;
        height: 60px;
        color: white;
        background-color: #25D366;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: grab;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s, box-shadow 0.2s;
        text-decoration: none;
      }
  
      #whatsapp-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
        background-color: #1ebd57;
      }
  
      #whatsapp-btn:active {
        cursor: grabbing;
      }