/* =========================
   GLOBAL
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;

  font-family: Arial, sans-serif;

  background-image: url("../assets/bg.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  color: #111827;
}


/* =========================
   NAVBAR
========================= */

.navbar {
  width: 100%;
  height: 90px;

  background: rgb(33, 141, 123);

  display: flex;
  align-items: center;

  padding: 0 35px;
  gap: 30px;

  border-bottom: 1px solid rgb(22, 98, 85);
}


/* LOGO */

.logo {
  display: flex;
  align-items: center;

  flex-shrink: 0;
}

.logo img {
  width: 70px;
  height: 70px;

  border-radius: 50%;

  object-fit: cover;
  display: block;
}

.logo span {
  color: #ff8a00;
}


/* MENU */

nav {
  display: flex;
  align-items: center;

  gap: 15px;
  flex: 1;

  min-width: 0;
}

nav a {
  text-decoration: none;

  padding: 12px 25px;

  border: 2px solid #ff9000;
  border-radius: 30px;

  background: transparent;
  color: #ff9000;

  font-weight: 600;

  white-space: nowrap;
}


/* HOME AKTIF */

nav a:first-child {
  background: #ff9000;
  color: white;
}


/* LOGIN */

.login-btn {
  display: inline-block;

  border: none;

  background: #ff9000;
  color: white;

  padding: 14px 25px;

  border-radius: 30px;

  font-size: 16px;
  font-weight: bold;

  text-decoration: none;
  white-space: nowrap;

  flex-shrink: 0;
}


/* =========================
   MAIN
========================= */

main {
  width: 100%;
  max-width: 720px;

  margin: auto;

  padding: 35px 20px;
}


/* =========================
   TOP BANNER
========================= */

.top-banner {
  background: #111;
  color: white;

  padding: 25px 30px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 35px;
}

.top-banner h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.top-banner p {
  color: #ccc;
}

.top-banner button {
  border: none;

  background: #2563eb;
  color: white;

  padding: 14px 22px;

  border-radius: 30px;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero-card {
  background: rgb(33, 141, 123);

  border-radius: 25px;

  overflow: hidden;

  border: 1px solid rgb(33, 141, 123);

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);

  margin-bottom: 25px;
}


/* HERO IMAGE */

.hero-image {
  height: 210px;

  background-image: url("../assets/banner.png");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 25px;

  color: white;
}


/* ARROW */

.arrow {
  width: 55px;
  height: 55px;

  background: rgb(242, 241, 241);

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 40px;
}


/* HERO TEXT */

.hero-text {
  text-align: center;
}

.hero-text h1 {
  font-size: 30px;
}


/* HERO CONTENT */

.hero-content {
  padding: 30px;
}

.hero-content h1 {
  font-size: 30px;

  margin-bottom: 15px;
}

.hero-content p {
  font-size: 18px;

  line-height: 1.7;

  color: #fffefe;

  margin-bottom: 25px;
}


/* HERO BUTTON */

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-buttons button {
  padding: 15px 25px;

  border-radius: 30px;

  font-size: 16px;
  font-weight: bold;

  cursor: pointer;
}


/* BUTTON STYLE */

.primary {
  background: #ff9000;

  color: white;

  border: none;
}

.secondary {
  background: white;

  color: #ff9000;

  border: 1px solid #ddd;
}


/* =========================
   CATEGORY
========================= */

.category-card {
  width: 100%;

  background: rgb(33, 141, 123);

  border: 1px solid rgb(26, 111, 97);

  border-radius: 22px;

  padding: 25px;

  display: flex;
  align-items: center;

  gap: 22px;

  margin-bottom: 20px;

  text-decoration: none;
  color: inherit;

  cursor: pointer;
}


/* CATEGORY ICON */

.icon {
  width: 75px;
  height: 75px;

  border: 1px solid #ddd;
  border-radius: 20px;

  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;

  flex-shrink: 0;
}

.icon img {
  width: 100%;
  height: 100%;

  border-radius: 20px;

  object-fit: cover;
}


/* CATEGORY TEXT */

.category-card h2 {
  margin-bottom: 7px;

  color: #111827;
}

.category-card p {
  color: #fffdfd;

  font-size: 16px;
}


/* =========================
   BOTTOM TEXT
========================= */

.bottom-text {
  max-width: 720px;

  margin: 40px auto;

  padding: 0 20px;

  text-align: center;

  color: white;
}

.bottom-text h2 {
  font-size: 28px;

  margin-bottom: 10px;
}

.bottom-text p {
  font-size: 18px;

  line-height: 1.7;
}


/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  /* =========================
     NAVBAR MOBILE RESPONSIVE
  ========================= */

  .navbar {
    width: 100%;
    height: auto;

    padding: 8px 10px;

    display: grid;

    grid-template-columns: 45px minmax(0, 1fr) 60px;

    gap: 5px;

    align-items: center;
  }


  /* LOGO */

  .logo {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo img {
    width: 45px;
    height: 45px;

    border-radius: 50%;

    object-fit: cover;
  }


  /* MENU */

  nav {
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4px;
  }


  nav a {
    width: 100%;
    min-width: 0;

    padding: 7px 4px;

    border: 2px solid #ff9000;

    border-radius: 20px;

    font-size: clamp(9px, 3vw, 12px);

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    box-sizing: border-box;
  }


  /* HOME AKTIF */

  nav a:first-child {
    background: #ff9000;
    color: white;
  }


  /* LOGIN */

  .login-btn {
    width: 60px;

    padding: 8px 4px;

    border-radius: 20px;

    font-size: clamp(9px, 3vw, 12px);

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    box-sizing: border-box;
  }


  /* =========================
     MAIN
  ========================= */

  main {
    width: 100%;
    padding: 25px 15px;
  }


  /* HERO */

  .hero-image {
    height: 175px;
  }

  .hero-content {
    padding: 25px 20px;
  }

  .hero-content h1 {
    font-size: clamp(20px, 6vw, 26px);
  }

  .hero-content p {
    font-size: 16px;
  }


  /* BUTTON */

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons button {
    width: 100%;
  }


  /* CATEGORY */

  .category-card {
    padding: 18px;

    gap: 15px;
  }

  .icon {
    width: 65px;
    height: 65px;
  }

  .category-card h2 {
    font-size: 22px;
  }

  .category-card p {
    font-size: 14px;
  }


  /* BOTTOM TEXT */

  .bottom-text {
    margin: 30px 15px;

    padding: 0;

    text-align: center;
  }

  .bottom-text p {
    font-size: 15px;

    line-height: 1.6;
  }
}

