/* === Global Reset & Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Figtree', sans-serif;
  line-height: 1.6;
  padding-top: 100px; /* matches nav height to prevent overlap */
  overflow-x: hidden;
}

p {
  font-size: 20px;
  text-align: justify;
}

li {
  list-style: none;
  font-size: 20px;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

/* === Navbar === */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.headerpage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
}

.logo-name {
  display: flex;
  align-items: center;
}

.logo_img {
  width: 100px;
  height: 100px;
}

#nametitle {
  font-size: 24px;
  color: blue;
  margin-left: 10px;
}

.nav_links {
  display: flex;
  gap: 20px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333;
  margin: 4px 0;
}

/* === Layout Containers === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.heading {
  display: flex;
  width: 100%;
}

.heading img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 5%;
}

.img-heading {
  width: 50%;
  
}

.slogan {
  font-size: 34px;
  font-weight:bold;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-paragraph {
  font-size: 26px;
  margin: 20px auto;
  text-align: center;
}

.img-welcome {
  display: flex;
  width: 50%;
  margin: 0 auto;
}

.img-welcome img {
  width: 100%;
  height: auto;
  padding: 20px;
}

/* === Cards, Services, and Description === */
#card {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.services-content {
  display: flex;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#description {
  width: 90%;
  margin: 40px auto;
}

#description-text {
  margin-bottom: 20px;
  font-size: 20px;
  text-align: justify;
}

#description-img {
  width: 100%;
}

#description-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}


.history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.history-subclass {
  border-radius: 20px;
  text-align: justify;
  font-size: 20px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* === Footer === */
.footer-content {
  background-color: #399b56;
  color: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
  width: 100%;
}

/* === Responsive === */
@media (max-width: 768px) {
    
  nav {
    height: 60px;
  }

  body {
    padding-top: 60px; /* adjust for smaller nav */
  }

  .nav_links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
  }

  .nav_links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .logo_img {
    width: 60px;
    height: 60px;
  }

  #nametitle {
    font-size: 18px;
  }

  .heading {
    display: block;
  }

  .img-heading,
  .slogan {
    width: 100%;
    
  }


  .services-content {
    display: block;
  }

  #description {
    flex-direction: column;
  }

  #description-text,
  #description-img {
    width: 100%;
    margin-bottom: 20px;
  }

  .history {
    display: block;
  }

  .history-subclass {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .img-welcome {
    display: block;
    width: 100%;
  }

  iframe {
    width: 100%;
    height: 300px;
  }
  .slogan{
        font-size:20px;
    }
}
