/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9; /* Light neutral background */
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  
  /* Header */
  header {
    background: linear-gradient(135deg, #0056b3, #0d6efd); /* Blue gradient */
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .logo-container .logo {
    max-width: 80px;
    height: auto;
    border-radius: 10px; /* Optional rounded logo */
  }
  
  header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
  }
  
  header p {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 0.5rem;
  }
  
  nav {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem; /* Reduce gap for smaller screens */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
  }
  
  nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent links from breaking into multiple lines */
  }
  
  nav a:hover {
    background-color: rgba(255, 255, 255, 0.3);
  }

  /* typweriter style */
  #typewriter {
    border-right: 2px solid #007bff;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 4s steps(40, end), blink 0.5s step-end infinite;
  }
  
  @keyframes typing {
    from { width: 0; }
    to { width: 100%; }
  }
  
  @keyframes blink {
    50% { border-color: transparent; }
  }
  
  
  /* Hero Section */
  .hero {
    background-color: #eaf0fc; /* Light blue background for hero */
    color: #333;
    text-align: center;
    padding: 4rem 2rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  .hero .cta button {
    background-color: #0d6efd; /* Blue for buttons */
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .hero .cta button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
  }
  
  /* Features Section */
  .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 1rem; /* Adjust padding for mobile */
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .feature-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  /* Buttons for Free Resources, Community Forum, and Contact */
  .feature-card button,
  .feature-card a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff; /* Text color */
    background-color: #0d6efd; /* Default blue background */
    border: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .feature-card button:hover,
  .feature-card a:hover {
    background-color: #0056b3; /* Darker blue for hover */
    transform: scale(1.05); /* Slight zoom effect */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Text shadow for emphasis */
  }
  
  /* Resources Page */
  .search-bar {
    margin: 2rem auto;
    text-align: center;
  } 

  .sorting-bar {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0;
  }
  
  #sortResources {
    padding: 5px;
    font-size: 1rem;
  }
  
  
  .search-bar input {
    width: 90%; /* Adjust width for smaller screens */
    max-width: 500px;
    padding: 0.7rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    transition: box-shadow 0.3s ease;
  }
  
  .search-bar input:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.5); /* Blue focus shadow */
  }
  
  .resources-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .resource-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  } 

  .download-counter {
    font-weight: bold;
    color: #007bff;
  }
  
  .back-to-home {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 1rem;
  }
  
  .back-to-home:hover {
    text-decoration: underline;
    color: #0056b3;
  }
  
  
  /* Welcome Page */
  .welcome-content {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .back-to-home {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 1rem;
    background-color: #f9f9f9;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .back-to-home:hover {
    background-color: #007bff;
    color: #fff;
  }
  
  
  .introduction {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .introduction h2 {
    font-size: 2rem;
    color: #0d6efd; /* Blue for section headings */
    margin-bottom: 1rem;
  }
  
  .introduction p {
    font-size: 1.1rem;
    color: #666;
  }
  
  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .step-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .step-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .step-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
  }
  
  .step-card .btn {
    background-color: #0d6efd;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .step-card .btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
  }
  
  /* Footer */
  footer {
    background-color: #0d6efd;
    color: #fff;
    text-align: center;
    padding: 2rem;
  }
  
  footer p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .footer-social-media {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .footer-social-media a {
    background-color: #eaeaea;
    color: #0d6efd;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .footer-social-media a:hover {
    background-color: #0056b3;
    color: #fff;
    transform: scale(1.1);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    header {
      padding: 2rem 1rem;
    }
  
    .logo-container {
      gap: 0.5rem;
    }
  
    header h1 {
      font-size: 2rem;
    }
  
    .hero h2 {
      font-size: 2rem;
    }
  
    .hero .cta button {
      font-size: 0.9rem;
      padding: 0.6rem 1.2rem;
    }
  
    .features,
    .steps,
    .resources-list {
      grid-template-columns: 1fr; /* Single column for mobile */
    }
  }
  
  @media (max-width: 480px) {
    header h1 {
      font-size: 1.5rem;
    }
  
    .hero h2 {
      font-size: 1.5rem;
    }
  
    .cta button {
      font-size: 0.8rem;
    }
  
    nav {
      gap: 0.5rem; /* Further reduce spacing for very small screens */
    }
  
    nav a {
      font-size: 0.9rem; /* Smaller font size for nav links */
    }
  
    .footer-social-media a {
      width: 40px;
      height: 40px;
      font-size: 1.2rem;
    }
  }
  

  /* FAQ Section */
.faq {
    padding: 4rem 2rem;
    background-color: #eaf0fc;
  }
  
  .faq h2 {
    text-align: center;
    color: #0d6efd;
    margin-bottom: 2rem;
  }
  
  .faq-item h3 {
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .faq-item h3.active {
    color: #0d6efd;
  }
  
  .faq-item p {
    display: none;
    font-size: 1rem;
    color: #666;
  }
  
  .faq-item p.visible {
    display: block;
  }
  
  /* back to top */
  #backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  #backToTop:hover {
    background-color: #0056b3;
  }

  #progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: whitesmoke;
    width: 0%;
    z-index: 9999;
  }
  
/* feedback */
  #feedbackForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  #feedbackInput {
    width: 100%;
    padding: 10px;
    border: 3px solid  #007bff;
    border-radius: 8px;
  }
  
  #charCount {
    font-size: 0.9rem;
    color: #666;
    text-align: right;
  }

  /* .testimonial */
  .testimonials {
    text-align: center;
    margin: 50px 0;
  }
  
  .carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  
  .testimonial-container {
    width: 60%;
    overflow: hidden;
    position: relative;
  }
  
  .testimonial {
    display: none;
    font-size: 1.2rem;
    color: #333;
    transition: opacity 0.5s ease;
  }
  
  .testimonial.active {
    display: block;
  }
  
  /* Notification */
  .notification {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #007bff;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
  }
  
  .notification button {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
  }
  
  .notification button:hover {
    text-decoration: underline;
  }

  /* quiz section */
  .quiz-container {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    border: 3px solid #007bff;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
  }
  
  .quiz-option {
    display: block;
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .quiz-option:hover {
    background-color: #0056b3;
  }
  
  #quiz-feedback {
    font-weight: bold;
    margin-top: 10px;
  }

  /* quote */
  .quote-container {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    border: 3px solid  #007bff;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
  }
  
  #quote-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  #new-quote {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #new-quote:hover {
    background-color: #0056b3;
  }

  /* countdwon timer */
  .countdown {
    text-align: center;
    margin: 50px 0;
  }
  
  #timer {
    font-size: 1.5rem;
    color: #007bff;
    font-weight: bold;
  }
  
  
  
  
   

 
  
  