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

body {
  font-family: "Roboto", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6; /* Improve line spacing for readability */
  font-size: 16px; /* Base font size */

  background-color: #f9f9f9; /* Light background for a clean look */
}
/* header*/

.header-content h1,
.sitename {
  color: white; /* Set text color to white */
  font-family: "Roboto", "Lato", "Arial", sans-serif; /* Professional fonts */
  font-weight: 700; /* Adjust the font weight for a bolder look */
  font-size: 50px;
}

/* Header Styling */
header {
  background: #4c7bd1;
  color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-shadow: 0 4px 2px -2px gray;
}

/* Logo styling */
.header-logo img {
  height: 80px;
  width: auto;
}

/* Logo hover effect */
.header-logo img:hover {
  animation: spinSideways 1s linear; /* Spins sideways once in 1 second */
}

/* Center heading styling */
.header-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 700;
  color: white;
}

/* Menu styling */
.header-menu {
  display: flex;
  gap: 30px; /* Larger spacing for a more professional look */
}

.header-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease-in-out;
}

/* Fancy underline effect on hover */
.header-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #fff;
  left: 0;
  bottom: 0;
  transition: width 0.4s ease;
}

.header-menu a:hover::after {
  width: 100%;
}

.header-menu a:hover {
  color: #ffc107; /* Highlight color when hovering over menu */
}

/* Responsive Styling for Header */
@media (max-width: 768px) {
  .header-content {
    position: static; /* Removes absolute positioning */
    text-align: center; /* Centers the text */
    transform: none; /* Removes the transform effect */
    font-size: 4vw; /* Adjust font size for smaller screens */
  }

  header {
    flex-direction: column; /* Stacks the logo and menu vertically */
    padding: 10px 20px; /* Reduces padding on smaller screens */
  }

  .header-menu {
    flex-direction: column;
    gap: 15px; /* Reduces the gap between menu items */
  }

  .header-logo img {
    height: 60px; /* Reduces the logo size */
  }
}

/* For very small screens (mobile devices) */
@media (max-width: 480px) {
  .header-content {
    font-size: 8vw; /* Further adjusts font size for tiny screens */
  }

  header {
    padding: 5px 15px;
  }

  .header-menu a {
    font-size: 1rem; /* Reduces the font size of the menu */
  }

  .header-logo img {
    height: 50px;
  }
}

.modules-container1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

.modules-container2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}
.modules-container3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}
.modules-container4 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}
.modules-container5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}
.module {
  background-color: white;
  border-radius: 50px;
  margin: 20px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.module h2 {
  font-size: 3em;
  color: #333;
}

.module h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #333;
}

.module p {
  margin: 10px 0;
}

.module a {
  display: inline-block;
  margin: 5px 10px 0 0;
  padding: 8px 15px;
  background-color: #333333;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.module a:hover {
  background-color: #103dbb;
  color: #070606;
}

/* Different top border colors for each module */

.module-1 {
  border-top: 4px solid #4caf50; /* Green */
}

.module-2 {
  border-top: 4px solid #2196f3; /* Blue */
}

.module-3 {
  border-top: 4px solid #ffc107; /* Yellow */
}

.module-4 {
  border-top: 4px solid #ff5722; /* Deep Orange */
}

.module-5 {
  border-top: 4px solid #9c27b0; /* Purple */
}

.module-6 {
  border-top: 4px solid #00bcd4; /* Cyan */
}

.module-7 {
  border-top: 4px solid #e91e63; /* Pink */
}

.module-8 {
  border-top: 4px solid #8bc34a; /* Light Green */
}

.module-9 {
  border-top: 4px solid #3f51b5; /* Indigo */
}

.module-10 {
  border-top: 4px solid #ff9800; /* Orange */
}

.module-11 {
  border-top: 4px solid #673ab7; /* Deep Purple */
}

.module-12 {
  border-top: 4px solid #00e676; /* Bright Green */
}

.module-13 {
  border-top: 4px solid #795548; /* Brown */
}

.module-14 {
  border-top: 4px solid #607d8b; /* Blue Grey */
}

.module-15 {
  border-top: 4px solid #f44336; /* Red */
}

/* Add more colors for other modules as needed */

/* for the first section */

/* Section and Module Container Styles */
#expanded-modules-container {
  width: 100vw; /* Full width of the viewport */
  display: flex; /* Flexbox layout for better alignment control */
  justify-content: center; /* Centers the module horizontally */
  padding: 20px; /* Adds some padding around the section */
}

.expanded-module {
  width: 90%; /* Occupies 90% of the container width */
  max-width: 1200px; /* Optional max width for large screens */
  background-color: #fdfcfc; /* Background color for the module */
  border: 1px solid #ddd; /* Default border color for all sides */
  border-top: 5px solid #28a745; /* Green top border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  padding: 20px; /* Padding inside the module */
  margin: 10px 0; /* Vertical margin between modules */
  text-align: center; /* Center-align text */
  border-radius: 50px;
  transition: all 0.3s ease;
}

.expanded-module:hover {
  background-color: #fbfcfc; /* Light green background on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
  transform: translateY(-5px); /* Slight lift effect */
}

/* Text Styling */
.expanded-module h2 {
  margin: 10px 0; /* Reduce space around headers */
  color: #070606;
  font-size: 45px;
  text-align: left;
}

.expanded-module h3 {
  margin: 10px 0; /* Reduce space around headers */
  color: #070606;
  font-size: 30px;
}

.expanded-module p {
  margin: 15px 0; /* Reduce space around paragraph */
}

/* Button Container */
.module-buttons {
  margin-top: 20px; /* Space above buttons */
}

/* Button Styling */
.module-btn {
  background-color: #333333; /* Primary button color */
  color: #fff; /* Text color */
  border: none; /* No border */
  padding: 10px 20px; /* Button padding */
  margin: 5px; /* Space between buttons */
  cursor: pointer; /* Pointer cursor on hover */
  font-size: 16px; /* Font size */
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
}

/* Button Hover Effect */
.module-btn:hover {
  background-color: #103dbb; /* Darker shade on hover */
  transform: scale(1.05); /* Slight zoom effect */
  color: #070606;
}
