/* Custom styles */
body {
  background-color: #EFEFEF; /* Light Grey */
  padding-top: 60px; /* Adjust to height of the fixed header */
}

/* Make the header fixed at the top */
#header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000; /* Ensure it is above other elements */
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  #menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
    transform-origin: top;
  }
  
  #menu.hidden {
    transform: scaleY(0);
    opacity: 0;
  }
  
  #menu:not(.hidden) {
    transform: scaleY(1);
    opacity: 1;
  }
  
  #menu ul {
    padding: 0.5rem 0;
  }
  
  #menu li {
    margin: 0;
  }
  
  #menu a {
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  #menu a:hover {
    background-color: #f8f9fa;
  }
}

/* Additional styling for the Log In button */
#header nav ul li a.bg-teal-500 {
    background-color: #319795; /* Teal */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

#header nav ul li a.bg-teal-500:hover {
    background-color: #2c7a7b; /* Darker teal on hover */
}

/* Existing styles */
#header nav ul li a {
  font-size: 1.25rem; /* Adjust the font size as needed */
}

/* Adjusting the size of the logo */
nav img {
  max-height: 80px; /* Ensure the logo height */
}

/* Centering text and image in the hero section */
#home .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* Centering items horizontally */
  position: relative; /* Add relative positioning to the container */
}

#home .container > div {
  flex: 1;
  text-align: center; /* Centering text for smaller screens */
}

/* Making the hero image slightly smaller */
.hero-img {
  width: 80%; /* Reduced width to 80% */
  height: auto;
  max-width: 800px; /* Ensure maximum width is controlled */
}

/* Button adjustments for better visibility */
a.bg-teal-500 {
  background-color: #319795; /* Teal 500 color */
  color: white;
  text-align: center;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out; /* Add transition for hover effect */
}

a.bg-teal-500:hover {
  background-color: #2c7a7b; /* Darker teal on hover */
  transform: scale(1.05); /* Slightly enlarge the button on hover */
}

/* Additional brand colors for contrast */
.text-blue-600 {
  color: #2b6cb0; /* Brand blue */
}

.text-gray-700 {
  color: #4a5568; /* Dark grey */
}

.bg-light-grey {
  background-color: #f7fafc; /* Light grey */
}

/* Card styles */
.card {
  border-radius: 10px !important; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important; /* Subtle shadow */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important; /* Smooth transitions */
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between;
  border: 2px solid #319795 !important; /* Teal border - made thicker and important */
  background-color: white !important; /* Ensure background is white */
  width: 100% !important; /* Adjust width for responsiveness */
  height: 100% !important; /* Force full height */
  margin: 0 !important; /* Remove margin */
}

.card:hover {
  transform: translateY(-5px) !important; /* Lift effect on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important; /* Deeper shadow on hover */
}

.card-content {
  padding: 20px; /* Adjust padding */
  flex-grow: 1; /* Ensure content takes up available space */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content img {
  max-width: 70px; /* Increased size for icons */
  height: 70px;
}

.card-content .text-gray-800 {
  color: #4a5568; /* Dark grey text for card content */
}

.card-content .font-bold {
  font-weight: bold;
  margin-top: 20px; /* Ensure consistent starting point for headings */
}

/* Card colors */
.card-blue {
  background-color: #4099ff;
  color: white;
}

.card-red {
  background-color: #ff5370;
  color: white;
}

.card-yellow {
  background-color: #ffb64d;
  color: white;
}

.card-green {
  background-color: #2ed8b6;
  color: white;
}

/* Center the grid container */
#features .grid-wrapper {
  display: flex;
  justify-content: center;
}

/* Force uniform card heights in features grid */
#features .grid > div {
  height: 100% !important;
  display: flex !important;
}

#features .grid > div > div {
  height: 100% !important;
  width: 100% !important;
}

#features .grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Single column for small screens */
  gap: 1.5rem; /* Increased gap between grid items */
  justify-items: center; /* Center grid items */
}

@media (min-width: 768px) {
  #features .grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for medium screens */
  }
}

@media (min-width: 1024px) {
  #features .grid {
    grid-template-columns: repeat(3, 1fr); /* Three columns for large screens */
  }
}

/* Ensure all cards have the same size */
.card {
  width: 100%; /* Adjust width for responsiveness */
  max-width: 350px; /* Ensure maximum width */
  height: auto; /* Adjust height for responsiveness */
}

.card-content {
  padding: 20px; /* Adjust padding */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content img {
  max-width: 70px; /* Increased size for icons */
  height: 70px;
}

.card-content .text-gray-800 {
  color: #4a5568; /* Dark grey text */
}

.card-content .font-bold {
  font-weight: bold;
  margin-top: 20px; /* Ensure consistent starting point for headings */
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  nav img {
    max-height: 60px; /* Reduce logo size on smaller screens */
  }

  #home .container {
    flex-direction: column; /* Stack elements vertically on smaller screens */
  }

  .hero-img {
    width: 100%; /* Ensure the image covers full width on smaller screens */
  }

  a.bg-teal-500 {
    width: 100%; /* Make button full width on smaller screens */
  }

  .card {
    margin-bottom: 20px; /* Add spacing between cards on smaller screens */
  }
}

/* Additional styling for form elements */
input, textarea {
  background-color: #f7fafc; /* Light grey */
  border: 1px solid #cbd5e0; /* Light grey border */
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  margin-bottom: 16px;
  font-size: 16px;
}

button[type="button"] {
  background-color: #319795; /* Teal */
  color: white;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

button[type="button"]:hover {
  background-color: #2c7a7b; /* Darker teal on hover */
}

footer img {
  width: 24px;
  height: 24px;
}

footer a {
  color: #319795; /* Teal */
  text-decoration: none;
}

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

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #319795;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

.back-to-top.show {
  display: block;
}

/* Features section layout */
#features .flex-wrap {
  flex-direction: row;
}

#features .hero-img {
  width: 80%; /* Image occupies roughly 2/3 of the screen */
}

#features .card {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#features .card img {
  width: 70px;
  height: 70px;
  margin-left: auto; /* Align the image to the right */
}

#features .card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Additional styling for Student App section */

/* Student App section layout */
#student-app .student-app-img {
  width: 100%; /* Adjust width as needed */
  max-width: 500px; /* Maximum width for the image */
  margin-right: auto; /* Push image to the left */
}

/* Features section layout */
#features .hero-img {
  width: 100%; /* Image occupies full width on smaller screens */
  max-width: 800px; /* Maximum width for the image */
}

/* Centering grid and making text white */
.grid-wrapper {
  display: flex;
  justify-content: center;
}

#statistics {
  background-color: #2b6cb0; /* Dark blue background */
  color: white; /* White text for contrast */
}

#testimonials {
  background-color: #2b6cb0; /* Dark blue background */
  color: white; /* White text for contrast */
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* Single column for small screens */
  gap: 1.5rem; /* Increased gap between grid items */
  justify-items: center; /* Center grid items */
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr); /* Two columns for medium screens */
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* Three columns for large screens */
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr); /* Three columns for extra large screens */
  }
}

/* Statistics section styles */
#statistics .stat-box {
  border: 1px solid #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  flex: 1;
  min-width: 250px; /* Ensure a minimum width for the boxes */
}

#statistics .stat-box p {
  margin: 0;
}

#statistics .references {
  font-size: 0.85em;
  font-style: italic;
}

#about {
  background: url('teacher tablet image.jpg') no-repeat center center;
  background-size: cover;
  color: white; /* Ensure text is readable */
  padding: 60px 20px; /* Adjust padding as needed */
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Add darker overlay for better text contrast */
  z-index: 1;
}

#about .container {
  position: relative;
  z-index: 2;
  text-align: center; /* Center the text */
}

#about h2 {
  color: #fff; /* White color for the heading */
  margin-bottom: 20px;
}

#about p {
  color: #fff; /* White color for the paragraph text */
  font-size: 1.25rem; /* Increase font size for readability */
  line-height: 1.6;
}
/* Button adjustments for better visibility */
.button-demo {
  background-color: #319795; /* Teal 500 color */
  color: white;
  text-align: center;
  padding: 12px 24px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out; /* Add transition for hover effect */
  display: inline-block;
  margin-top: 20px;
}

.button-demo:hover {
  background-color: #2c7a7b; /* Darker teal on hover */
  transform: scale(1.05); /* Slightly enlarge the button on hover */
}
/* LinkedIn icon styles */
#linkedin-icon img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

#linkedin-icon:hover img {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* Hover effect for buttons */
a.bg-teal-500:hover, button.bg-teal-500:hover, .shadow.bg-blue-500:hover {
  background-color: #2c7a7b; /* Darker teal on hover */
  transform: scale(1.05); /* Slightly enlarge the button on hover */
}

button.bg-blue-500:hover {
  background-color: #2c7a7b; /* Darker teal on hover */
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #319795;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  display: none;
  z-index: 1000;
}

.back-to-top.show {
  display: block;
}

/* Styles for GoDaddy Site Seal Container */
.siteseal-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  margin-bottom: 10px;
}

.siteseal-container #siteseal {
  display: block;
  margin: 0 auto;
}

/* Override GoDaddy Site Seal inline styles */
.siteseal-container #siteseal iframe,
.siteseal-container #siteseal img,
.siteseal-container #siteseal * {
  max-width: none !important;
  max-height: none !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  scale: 1 !important;
}

/* Styles for Contact Information */
#contact p {
  margin-bottom: 10px; /* Add some space between the lines */
}

#contact a {
  color: #319795; /* Teal color for links */
  text-decoration: none; /* Remove underline from links */
}

#contact a:hover {
  text-decoration: underline; /* Underline on hover */
}
