/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

header {
  background-color: #2c3e50;
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #f1c40f;
}

.hero {
  background-color: #02066f;
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto;
}

section {
  padding: 60px 0;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  color: #2c3e50;
}

.content-block {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.content-block p,
.def-wrapper p {
  margin-bottom: 15px;
}

.content-block ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item figure {
  height: 450px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.award-card figure {
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 1em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img,
.award-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img,
.award-card:hover figure img {
  transform: scale(1.05);
}

.awards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.award-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  text-align: center;
}

.award-card h3 {
  color: #e74c3c;
  margin-bottom: 10px;
}

.contact-info {
  text-align: center;
  font-size: 20px;
  margin-top: 30px;
}

footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
}

figcaption {
  text-align: center;
  color: #333;
  margin-top: 5px;
}

/* -------------- */
/* logo-image */
.logo-image img {
  filter: brightness(0) invert(1);
  max-width: 13em;
}

/* tutoring-wrapper */
.def-wrapper {
  display: flex;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 30px;
}

.def-wrapper-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.def-wrapper-img {
  width: 30%;
}

.def-content-block {
  width: 70%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* carousel */
.carousel, .carousel-inner, .carousel-item {
  position: relative;
  height: 100%;
}
.carousel-item {
  display: none;
  transition: opacity 0.5s ease-in-out;
}
.carousel-item.active {
  display: block;
}

.carousel-item img {
  width: 100%;
}

.carousel-inner {
  transition: all 0.5s ease-in-out;
}

.navigation-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 50%;
  z-index: 2;
  left: 0;
  transform: translateY(-50%);
}

.navigation-control button {
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}
.navigation-control button img {
  width: 36px;
  height: auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }

  nav ul {
    margin-top: 20px;
  }

  nav ul li {
    margin: 0 10px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  h2 {
    font-size: 28px;
  }

  .def-wrapper {
    flex-direction: column;
  }
  .def-wrapper-img {
    width: 100%;
  }
  .def-content-block {
    width: 100%;
  }
}
