@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");
:root {
  --black-color: #000000;
  --green-color: #16e703;
  --green-light-color: #65ff28;
  --orange-light-color: #fd9b40;
  --orange-color: #ff6600;
  --bacground-color: #fafafa;
  --blue-color: #0533ffbb;
  --white-color: #ffffff;
  --yellow-stars: #ffd700;
  --dark-blue: #2c3e50;
  --dark-green: #009e60;

  --font-family: "Lato", "sans-serif";
  --font-size: 0.94rem;

  --normal-font: 400;
  --bold-font: 600;

  --z-tool: 1;
  --z-fixed: 10;
}
* {
  scroll-behavior: smooth;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
h1 {
  color: var(--dark-green);
}

.header {
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #f9f9f9;
  z-index: var(--z-fixed);
  height: 100px;
  box-shadow: 0 8px 11px rgb(14 55 54 / 15%);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav_logo,
.nav_open,
.nav_close {
  color: var(--dark-blue);
}

.nav_data {
  height: 100%;
  display: flex;
}
.nav_logo {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 130px;
  height: 130px;
}
.nav_logo img {
  width: 130px;
}
.nav_toggle {
  position: absolute;
  right: 40px;
  align-self: center;
  width: 40px;
  height: 40px;
}
.nav_open,
.nav_close {
  position: absolute;
  width: max-content;
  height: max-content;
  inset: 0;
  margin: auto;
  font-size: 2rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.4s;
}
.nav_close {
  opacity: 0;
}

.nav_link {
  color: #444;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.2s;
  padding: 20px 10px;
}

.nav-layanan {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0px 20px !important;
}

.layanan-menu {
  position: absolute;
  background-color: #f9f9f9;
  color: #444;
  top: 3.7rem;
  left: -3.5rem;
  width: 200px;
  list-style: none;
  transition: all 1s ease;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 110px;
}
.layanan-menu a {
  text-decoration: none;
  color: #444;
  font-weight: bold;
}

.layanan-menu.active {
  display: block;
}
.layanan-list {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
}
.list-icon {
  transition: transform 0.2s ease;
}
.layanan-list:hover {
  cursor: pointer;
  background: var(--dark-green);
}
.layanan-list:hover {
  transition: background-color 0.3s, color 0.3s;
}

.admin {
  padding: 10px 15px;
  background-color: var(--dark-green);
  border-radius: 5px;
  color: var(--white-color);
}
.admin:hover {
  background-color: var(--dark-blue);
}

@media screen and (min-width: 1118px) {
  .nav_toggle {
    display: none;
  }
  .nav_list {
    height: 100%;
    display: flex;
    column-gap: 5rem;
    font-size: 1rem;
  }
  .nav_link {
    height: 100%;
    justify-content: initial;
  }
  .nav_link:hover {
    color: var(--dark-green);
  }
  .admin:hover {
    color: var(--white-color);
  }
}
/* For Mobile Device */
@media screen and (max-width: 1118px) {
  .header {
    height: 100px;
    box-shadow: 0 8px 11px rgb(14 55 54 / 15%);
  }
  .nav {
    height: 100%;
    display: flex;
    align-items: center;
  }
  .nav_logo {
    position: absolute;
    top: -5px;
    left: 0;
    width: 120px;
    height: 120px;
  }
  .nav_logo img {
    object-fit: cover;
    width: 120px;
    align-self: center;
  }

  .nav_menu {
    position: absolute;
    left: -100%;
    top: 0;
    pointer-events: none;
    opacity: 0;
    width: 100%;
    height: 100vh;
    transition: left 0.4s, opacity 0.3s;
    padding: 110px 20px 0px 20px;
    background-color: var(--black-color);
    box-sizing: border-box;
    z-index: 1;
    overflow-y: auto;
  }
  .nav_menu::-webkit-scrollbar {
    display: block;
    width: 2px;
  }
  .nav_data {
    z-index: 10;
    background: none;
  }
  .nav_list {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-sizing: border-box;
    padding-left: 10px;
    background: none;
  }
  .nav_link {
    color: white;
    background-color: var(--black-color);
  }
  .nav_link:hover {
    color: var(--dark-green);
  }
  .nav-layanan {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: none;
    padding: 10px 10px !important;
  }
  .layanan-header {
    display: flex;
    align-items: center;
    margin: -8px 0px;
    gap: 10px;
    cursor: pointer;
  }
  .layanan-menu {
    position: relative;
    width: 100%;
    height: fit-content;
    background: none;
    display: none;
    margin-bottom: -40px;
    padding: 0;
    top: -30px;
    left: 20px;
    transform: translate(0%, 0%);
  }
  .layanan-menu.active {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
  }
  .layanan-list:hover {
    cursor: pointer;
    color: var(--dark-green);
    background: none;
  }
  .layanan-menu a {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.767);
  }
  .admin {
    position: relative;
    background-color: var(--dark-green);
    border-radius: 2px;
    padding: 8px 14px;
  }
  .admin:hover {
    background-color: var(--dark-blue);
  }
}

.show-menu {
  opacity: 1;
  left: -0px;
  top: 0;
  width: 100%;
  pointer-events: initial;
}
.show-icon .nav_open {
  opacity: 0;
}
.show-icon .nav_close {
  opacity: 1;
}
.rotate-down {
  transform: rotate(90deg);
}

.container {
  width: 100%;
  height: 98vh;
}
/* HOME Beranda */
#beranda {
  background-image: url(img/masjid-img.webp);
  height: 100vh;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.home-overlay {
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-content {
  text-align: center;
  color: white;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}
.home-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.home-content p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.btn-utama {
  background-color: var(--dark-green);
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
}
.btn-utama:hover {
  cursor: pointer;
  background-color: var(--dark-blue);
}

/* Tentang */
.tentang {
  width: 100%;
  height: 97vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #f9f9f9;
  overflow: hidden;
}
.desain {
  height: 100%;
  background-color: #009e60;
}
.tentang-box {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 20px;
  grid-column: span 3;
}
.tentang-profile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  text-wrap: initial;
}
.section-title {
  font-size: 2.5rem;
  text-align: left;
  color: var(--dark-green);
  margin-bottom: 10px;
}
.section-desc {
  max-width: 600px;
  font-size: 1.5rem;
  margin: 0 auto;
  text-align: justify;
  min-height: 200px;
}
.btn-tentang {
  width: 200px;
  background-color: var(--dark-green);
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
}
.btn-tentang:hover {
  cursor: pointer;
  background-color: var(--dark-blue);
}
.tentang-img {
  position: relative;
  width: 600px;
  height: 500px;
  box-sizing: border-box;
  overflow: hidden;
}
.tentang-img img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: auto;
  object-fit: cover;
}

/* Layanan Utama */
.layanan {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.box-lyn-list {
  grid-column: span 4;
  background-color: var(--white-color);
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 50px;
  padding: 50px;
}
.lyn-list {
  background-color: #333333;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 100%;
  color: white;
}
.lyn-list i {
  font-size: 4rem;
  color: #009e60;
  grid-column: span 1;
}
.lyn-list .lyn-desc {
  width: 100%;
  height: 100%;
  grid-column: span 3;
  display: block;
  padding: 20px;
  background-color: #2c3e50;
}
.lyn-list .lyn-desc h2 {
  font-size: 2.5rem;
  color: #00796b;
  margin-bottom: 20px;
}
.lyn-list .lyn-desc p {
  text-align: justify;
  font-size: 1.2rem;
}
.lyn-list a {
  font-size: 1.2rem;
  font-weight: 600;
}
.btn-layanan {
  width: 101%;
  height: 100%;
  display: block;
  background-color: #007f5f;
  color: #ffffff;
  text-decoration: none;
  grid-column: span 1;
  text-align: center;
  align-content: center;
}
.btn-layanan:hover {
  cursor: pointer;
  background-color: #38b000;
}
.lyn-title {
  background-color: #eaf4f4;
  padding: 20px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #007f5f;
}
.lyn-title h1 {
  font-size: 4rem;
  align-items: center;
}
/* CTA */
#cta {
  background-color: var(--dark-blue);
  color: white;
  padding: 60px 20px;
  background-image: url("img/indonesia.svg");
  background-size: cover;
  background-position: center;
}

.cta-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.cta-text {
  flex: 1 1 60%;
}

.cta-text h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.cta-button {
  flex: 1 1 30%;
  text-align: right;
}

.btn-cta {
  background-color: var(--orange-color);
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--dark-green);
}

/* mengapa-kami */
#mengapa-kami {
  width: 100%;
  height: 100%;
  background-color: #f4f6f8;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.judul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.judul h1 {
  font-size: 2.5rem;
  color: var(--dark-green);
}
.judul img {
  width: 150px;
  margin: 0 -20px;
}
.box-whyus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 0;
  width: 100%;
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
}
.list-whyus {
  text-align: center;
  width: 100%;
  min-width: 320px;
  max-width: 400px;
  height: 100%;
  min-height: 300px;
  color: black;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, color 0.3s ease;
}
.list-whyus i {
  font-size: 100px;
  color: var(--dark-green);
  margin-bottom: 15px;
}
.list-whyus:hover {
  color: #00796b;
  transform: scale(1.05);
  cursor: pointer;
}
.list-whyus h3 {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  color: #333333;
  min-height: 40px;
  margin-bottom: 10px;
}
.list-whyus p {
  text-align: justify;
  color: #444;
  margin-top: 8px;
}

/* footer */
.footer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--black-color);
  color: white;
}
.footer-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 2rem;
  gap: 50px;
  width: 100%;
  height: 100%;
  padding: 20px;
}
.footer-logo {
  text-align: center;
}
.footer-box img {
  margin: 0 auto;
  display: block;
  height: 200px;
}
.footer-box h3 {
  color: var(--dark-green);
  min-height: 30px;
  font-size: 1.2rem;
}
.footer-box p {
  text-align: justify;
  font-size: 0.9rem;
}
.footer-box a {
  color: var(--white-color);
  font-size: 0.9rem;
}
.footer-box a:hover {
  cursor: pointer;
  color: var(--dark-green);
}
#parent {
  color: var(--yellow-stars);
}
#parent:hover {
  color: var(--dark-green);
}
.tentang-kami,
.social-media,
.informasi {
  padding: 5px;
  max-width: 300px;
}
.tentang-kami hr {
  border: 1px solid var(--dark-green);
}
.social-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-media i {
  font-size: 1.1rem;
  margin-right: 10px;
}
.informasi {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copyright {
  width: 100%;
  background-color: var(--dark-green);
  padding: 10px 10px;
  color: white;
}
.copyright p {
  font-size: 14px;
  text-align: right;
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
}

/* Responsive */
@media screen and (max-width: 1024px) {
  .tentang {
    grid-template-columns: repeat(2, 1fr);
  }
  .desain {
    height: 100%;
  }
  .tentang-box {
    grid-column: span 2;
  }
  .layanan {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .box-lyn-list {
    grid-column: span 4;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
  }
  .lyn-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .lyn-list i {
    font-size: 3.5rem;
    grid-column: span 1;
  }
  .lyn-list .lyn-desc {
    grid-column: span 3;
    display: block;
  }
  .lyn-list .lyn-desc h2 {
    font-size: 2rem;
  }
  .lyn-list .lyn-desc p {
    font-size: 1rem;
  }
  .lyn-list a {
    font-size: 1rem;
    font-weight: 600;
  }
  .btn-layanan {
    display: block;
    grid-column: span 1;
  }
  .lyn-title h1 {
    font-size: 3rem;
  }
}
@media screen and (max-width: 768px) {
  .list-whyus {
    max-width: 300px;
  }
  .cta-content {
    flex-direction: column;
    gap: 40px;
  }
  .tentang {
    display: block;
    height: 100%;
  }
  .desain {
    width: 100%;
    height: 30px;
  }
  .tentang-box {
    flex-direction: column;
    gap: 20px;
    height: 100%;
    padding: 0px 20px 40px 20px;
  }
  .tentang-profile {
    order: 2;
  }
  .tentang-img {
    width: 500px;
    height: 500px;
    margin: 0 0 -70px;
    order: 1;
  }
  .tentang-img img {
    width: 500px;
  }
  .layanan {
    display: grid;
    grid-template-areas: "item1" "item2";
    grid-template-columns: 1fr;
    grid-template-rows: 200px 1fr;
  }
  .box-lyn-list {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-area: item2;
    gap: 20px;
    padding: 20px;
  }
  .lyn-title {
    grid-area: item1;
  }
  .lyn-list i {
    font-size: 2.7rem;
    grid-column: span 1;
  }
  .lyn-list .lyn-desc {
    grid-column: span 3;
    display: block;
  }
  .lyn-list .lyn-desc h2 {
    font-size: 1.7rem;
  }
  .lyn-list .lyn-desc p {
    font-size: 0.8rem;
  }
  .lyn-list a {
    font-size: 0.8rem;
    font-weight: 600;
  }
  .lyn-title h1 {
    font-size: 2.7rem;
  }
}
@media screen and (max-width: 480px) {
  .footer-logo {
    text-align: center;
  }
  .footer-box img {
    margin: 0 auto;
    display: block;
    margin-bottom: -40px;
  }
  .copyright p {
    font-size: 12px;
  }
  #mengapa-kami {
    width: 100%;
  }
  .judul h1 {
    font-size: 1.2rem;
  }
  .judul img {
    width: 100px;
    margin: 0 -25px;
  }
  .tentang-img {
    width: 350px;
    height: 350px;
    margin: 0 0 -70px;
    order: 1;
  }
  .tentang-img img {
    width: 400px;
  }
  .home-content h1 {
    font-size: 1.5rem;
  }
  .home-content p {
    font-size: 0.7rem;
  }
  .home-content a {
    font-size: 0.7rem;
  }
  .cta-text h2 {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .section-desc {
    font-size: 1.17rem;
  }
  .lyn-list {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(6, 1fr);
  }
  .lyn-list i {
    font-size: 4rem;
    grid-row: span 2;
  }
  .lyn-list .lyn-desc {
    grid-row: span 3;
    display: block;
  }
  .lyn-list .lyn-desc h2 {
    font-size: 1.7rem;
  }
  .lyn-list .lyn-desc p {
    font-size: 1rem;
  }
  .lyn-list a {
    font-size: 1rem;
    font-weight: 600;
  }
  .btn-layanan {
    display: block;
    grid-row: span 1;
    width: 100%;
  }
  .lyn-title h1 {
    font-size: 2.5rem;
  }

  .footer-box h3 {
    font-size: 1rem;
  }
  .footer-box p {
    font-size: 0.75rem;
  }
  .footer-box a {
    font-size: 0.75rem;
  }
  .social-media i {
    font-size: 0.9rem;
  }
}
