/* General Styling */
body {
  background-color: #f4f7fc;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

h2, h3 {
  margin: 0;
  padding: 0;
}

/* Navbar Styles */
.navbar {
  background-color: #1d4ed8;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.navbar .logo {
  font-size: 2rem;
  font-weight: bold;
}

.nav-links a {
  color: white;
  margin-left: 20px;
  font-size: 1.125rem;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.8;
}

.btn {
  padding: 10px 20px;
  background-color: #FFA500;
  color: white;
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #ff7f00;
}

/* Introductory Hover Message */
.intro-message {
  display: block;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  z-index: 10;
}

/* Main Content Styling */
.main-content {
  padding: 40px 20px;
}

.section-title h2 {
  font-size: 2.5rem;
  text-align: center;
}

.modules {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.module {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 22%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.module h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
  color: #1d4ed8;
}

.module p {
  font-size: 1rem;
  color: #4b5563;
}

.module .btn {
  margin-top: 16px;
}

.hover-message {
  display: none;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10;
}

/* Footer Styling */
.footer {
  background-color: #1f2937;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
/*   */
/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f9fafb;
  margin: 0;
  padding: 0;
}

h2, h3 {
  color: #1F2937; /* Dark Grey */
  text-align: center;
}

p {
  color: #4B5563; /* Lighter Grey */
  font-size: 1rem;
  line-height: 1.6;
}

/* Navbar */
.navbar a {
  text-decoration: none;
  color: white;
  padding: 10px 20px;
  margin-left: 20px;
  font-size: 1.1rem;
}

.navbar a:hover {
  color: #FFA500;
}

header {
  background-color: #1D4ED8; /* Blue color */
  display: flex;
  justify-content: space-between;
  padding: 15px 25px;
  align-items: center;
}

header .text-2xl {
  font-weight: bold;
  font-size: 2rem;
}
/* Modules Container (Flexbox Layout) */
.modules-container {
  display: flex;
  justify-content: space-between; /* Evenly spaces modules */
  flex-wrap: wrap; /* Allows wrapping of items on smaller screens */
  gap: 20px; /* Space between modules */
  overflow-x-auto; /* Allows horizontal scrolling if needed */
  margin-top: 20px; /* Adjust top margin as needed */
}

/* Individual Module Box */
.module-box {
  flex: 1 1 22%; /* Distribute space equally across all modules */
  min-width: 250px; /* Minimum width for each module */
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-box:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Section Title for Each Module */
.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
}

/* Module Description */
.module-description {
  font-size: 1rem;
  color: #4a4a4a;
  text-align: center;
  margin-bottom: 20px;
}

/* Hover Button */
.btn-hover {
  display: inline-block;
  padding: 12px 25px;
  background-color: #FFA500; /* Orange color */
  color: white;
  text-align: center;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, filter 0.3s ease;
}

.btn-hover:hover {
  transform: scale(1.1);
  background-color: #FF4500; /* Darker orange color */
  cursor: pointer;
  filter: brightness(1.2);
}

/* Hover Message Style */
.hover-message {
  display: none;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 10;
}

/* Media Queries for Responsiveness */

/* Small Screens (Phones) */
@media (max-width: 768px) {
  .module-box {
    flex: 1 1 100%; /* Make each module take full width on small screens */
    margin-bottom: 20px;
  }
}

/* Medium Screens (Tablets) */
@media (max-width: 1024px) and (min-width: 768px) {
  .module-box {
    flex: 1 1 45%; /* Two modules per row on medium screens */
  }
}


/* Responsive Layout */
@media (min-width: 1024px) {
  .module-box {
    width: 22%;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .module-box {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .module-box {
    width: 100%;
  }

  .intro-message {
    font-size: 12px;
    top: 10px;
  }
}

/* Footer */
footer {
  background-color: #1F2937; /* Dark Grey */
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

footer div {
  font-size: 1rem;
}

footer a {
  color: #FFA500;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/*     */

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .module {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .module {
    width: 100%;
  }

  .intro-message {
    font-size: 12px;
    top: 10px;
  }
}
