/* General Body Styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
}

.container {
  width: 80%;
  margin: auto;
  overflow: hidden;
  padding: 20px 0;
}

/* Header Styles */
.main-header {
  background: #333;
  color: #fff;
  padding-top: 20px;
  min-height: 70px;
  border-bottom: #77aaff 3px solid;
}

.main-header .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.main-header .navbar .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.site-title {
  color: #fff;
  text-decoration: none;
  font-size: 1.8em;
  font-weight: bold;
}

.main-header .navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.main-header .navbar li {
  padding: 0 15px;
}

.main-header .navbar a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 16px;
}

.main-header .navbar a:hover {
  color: #77aaff;
  font-weight: bold;
}

/* Hero Section */
.hero-section {
  background: url('../css/study.jpg') no-repeat center center/cover; /* Using study.jpg from css folder */
  color: #fff;
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 3.5em;
  margin-bottom: 10px;
}

.hero-section p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  color: #fff;
  background: #77aaff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #5588dd;
}

/* Card Menu Section */
.card-menu-section {
  padding: 40px 0;
  background: #f9f9f9;
  text-align: center;
}

.card-menu-section h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #333;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 items per row */
  gap: 30px;
  padding: 0 20px;
}

.card-item {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; /* Added background to transition */
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: #eef7ff; /* Subtle background change on hover */
}

.card-icon {
  font-size: 3em;
  margin-bottom: 15px;
  color: #77aaff;
}

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

.card-item p {
  font-size: 0.9em;
  color: #666;
}


/* Features Section */
.features-section {
  padding: 40px 0;
  background: #fff;
  text-align: center;
}

.features-section h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #333;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease; /* Added background and box-shadow to transition */
  display: flex; /* Use flexbox for vertical alignment */
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-item:hover {
  transform: translateY(-5px);
  background: #e6f2ff; /* Lighter blue on hover */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

.feature-icon {
  font-size: 3em;
  margin-bottom: 15px;
  color: #007bff; /* Vibrant blue */
}

.feature-icon {
  font-size: 3em;
  margin-bottom: 15px;
  color: #007bff; /* Vibrant blue */
}


/* About Section */
.about-section {
  padding: 40px 0;
  background: #e2e2e2;
  text-align: center;
}

.about-section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #333;
}

.about-section p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
}

/* Footer Styles */
.main-footer {
  padding: 20px;
  margin-top: 30px;
  color: #fff;
  background-color: #333;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 items per row on medium screens */
  }
}

@media (max-width: 768px) {
  .main-header .navbar .wrapper {
    flex-direction: column;
  }

  .main-header .navbar ul {
    margin-top: 10px;
  }

  .main-header .navbar li {
    display: block;
    text-align: center;
    padding: 10px 0;
  }

  .hero-section h1 {
    font-size: 2.5em;
  }

  .hero-section p {
    font-size: 1em;
  }

  .card-grid {
    grid-template-columns: 1fr; /* 1 item per row on small screens */
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

