body {
  font-family: "Lato", Arial, sans-serif;
  background: #fffdf3;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Style untuk Header */

.header {
  width: 100%;
  background: #fff;
  padding: 10px 32px 10px 32px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 8px 12px rgba(31, 38, 135, 0.06);
}

.beranda-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin-left: 75px;
  width: 200px;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.user-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  margin-right: 140px;
}

.header-right a {
  color: #2d3a4b;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.header-right a:hover {
  color: #7d7d7d;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #2d3a4b;
  border-radius: 2px;
  transition: 0.3s;
}

/* Style untuk Container */
/* Container untuk form login, register, dan forgot password */

.container {
  background: #fff;
  max-width: 450px;
  margin: 100px auto 50px auto;
  padding: 32px 28px 18px 28px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.container h2 {
  text-align: center;
  margin: 0px 4px;
}

.container p {
  text-align: center;
  margin: 10px 4px 30px 4px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 8px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #2d3a4b;
  font-weight: 100;
}

input[type="name"],
input[type="email"],
input[type="password"],
input[type="confirm-password"],
.phone-input,
.btn {
  width: 100%;
  box-sizing: border-box;
}

.country-select {
  width: 20%;
  box-sizing: border-box;
}

input[type="name"],
input[type="email"],
input[type="password"],
input[type="confirm-password"],
.phone-input {
  padding: 12px 14px;
  border: 1px solid #bfc9d9;
  border-radius: 6px;
  font-size: 16px;
  transition: border 0.2s;
  margin-bottom: 6px;
}

input[type="name"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="confirm-password"]:focus,
.phone-input:focus {
  border-color: #5b9df9;
  outline: none;
}

.phone-input-group {
  display: flex;
  gap: 12px;
}

.country-code-box {
  display: flex;
  align-items: center;
  border: 1px solid #bfc9d9;
  border-radius: 6px;
  height: 44px;
  width: 40%;
  box-sizing: border-box;
}

span.flag-box {
  align-items: center;
  border: 1px solid #bfc9d9;
  border-radius: 6px;
  background: #f7fafd;
  padding: 0 12px 0 12px;
  min-width: 20px;
  height: 44px;
}

.flag-box {
  display: flex;
  align-items: center;
}

.flag-icon {
  width: 22px;
  height: 16px;
  object-fit: cover;
}

.country-select {
  border: none;
  background: transparent;
  font-size: 16px;
  outline: none;
  padding-left: 4px;
  min-width: 60px;
  height: 42px;
  box-sizing: border-box;
}

.forgot-link {
  display: block;
  text-align: right;
  margin-bottom: 18px;
  color: black;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #5a616b;
  text-decoration: underline;
}

.btn {
  padding: 10px 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: block;
}

.btn-login {
  background: #3ecf4c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 157, 249, 0.12);
  border: 2px solid #3ecf4c;
}

.btn-login:hover {
  background: #fff;
  color: #3ecf4c;
}

.btn-register {
  background: #e8fde1;
  color: #3ecf4c;
  border: 2px solid #3ecf4c;
}

.btn-register:hover {
  background: #fff;
  color: #3ecf4c;
}

.btn-google {
  background: #fff;
  color: #2d3a4b;
  border: 2px solid #e0eafc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google:hover {
  background: #e0eafc;
  color: #2d3a4b;
  border-color: #bfc9d9;
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 18px 0;
}

.divider span {
  font-size: 14px;
  padding: 0 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1.5px solid #e0eafc;
}

/* Style untuk Beranda */

.main-wrapper {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  position: relative;
  width: 100%;
  margin: 120px 0 32px 0;
}
.hero-image {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: 12px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 7, 10, 0.75);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px;
}

.hero .hero-overlay h1 {
  font-size: 2.8rem;
  padding: 20px 60px 0 60px;
  margin: 0;
}

.hero .hero-overlay p {
  font-size: 14px;
  letter-spacing: 1px;
  padding: 15px 20px;
  margin: 0;
}

.btn-course {
  margin-top: 10px;
  width: 40%;
  background: #3ecf4c;
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 157, 249, 0.12);
  border: 2px solid #3ecf4c;
}

.btn-course:hover {
  background: #fff;
  color: #3ecf4c;
}

.hero-secondary {
  margin-top: 60px;
}

.hero-secondary .hero-image {
  height: 360px;
  margin-top: 32px;
}
.hero-secondary .hero-overlay h5 {
  margin: 0;
}

.hero-secondary .hero-overlay h1 {
  font-size: 2rem;
  padding: 10px 60px 0 60px;
}

.hero-secondary .hero-overlay p {
  padding: 15px 180px;
}

.newsletter-form {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: 15px auto;
}

.newsletter-input {
  width: 100%;
  height: 54px;
  padding: 12px 130px 12px 14px;
  border: 1px solid #bfc9d9;
  border-radius: 6px;
  font-size: 16px;
  background: #f7fafd;
  outline: none;
  box-sizing: border-box;
}

.btn-subcribe {
  position: absolute;
  top: 45%;
  right: 8px;
  transform: translateY(-50%);
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  background: #fbbf24;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-subcribe:hover {
  background: #f59e0b;
}

.section-title {
  font-size: 36px;
  font-weight: bold;
  margin: 45px 0 5px 0;
}

.section-desc {
  font-size: 16px;
  color: #666;
  margin: 10px 0 10px 0;
}

.kategori {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin: 20px 0 30px 0;
}

.kategori a {
  font-size: 16px;
  color: #666;
  text-decoration: none;
  padding: 20px 0 15px 0;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}

.kategori a:hover {
  font-weight: 1000;
  color: #f64920;
  border-bottom: 6px solid #f64920;
}

/* Style untuk Card */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
  padding: 20px;
}

.card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.card-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.card-desc {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.card-profile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 20%;
}

.name {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0 0;
}

.role {
  font-size: 0.75rem;
  color: #777;
  margin: 5px 0 0 0;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.card-footer-left {
  display: flex;
}

.rating {
  margin: 2px 0 0 4px;
  color: #ffc107;
}

.price {
  font-size: 1.3rem;
  color: #28a745;
}

/* Style untuk Footer */

.footer {
  background: #fff;
  padding: 46px 0 0 0;
  margin-top: 40px;
  border-top: 1px solid #e0eafc;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 34px 0;
  gap: 32px;
  border-bottom: 1px solid #e0eafc;
}

.footer-left {
  margin-left: 40px;
  flex: 1;
}

.footer-left img {
  margin: 0 0 12px 0;
}

.footer-right {
  flex: 2;
  display: flex;
  gap: 42px;
  justify-content: flex-end;
}

.footer-right > div {
  min-width: 130px;
}

.footer h4 {
  margin-top: 0px;
  margin-bottom: 16px;
  color: #2d3a4b;
  font-size: 1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 14px;
}

.footer ul li a {
  color: #7d7d7d;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer ul li a:hover {
  color: #2d3a4b;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0eafc;
  padding: 16px 0 40px 0;
  max-width: 1100px;
  margin: 0 auto;
  font-size: 14px;
  color: #bfc9d9;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid #bfc9d9;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 18px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social a:hover {
  background: #c0c0c0;
  color: #fff;
}

.footer-arrow {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  margin-left: 8px;
  cursor: pointer;
  color: #2d3a4b;
  transition: transform 0.2s;
}

/* Responsive 992px */

@media (max-width: 992px) {
  .hero {
    margin: 90px 0 32px 0;
  }

  .hero-image {
    height: 400px;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero .hero-overlay h1 {
    font-size: 24px;
    padding: 0 80px;
  }

  .hero .hero-overlay p {
    font-size: 12px;
    padding: 15px 40px;
  }

  .btn-course {
    width: 100%;
  }
}

/* Responsive 700px */

@media (max-width: 700px) {
  .container {
    max-width: 98vw;
    margin: 100px 20px 30px 20px;
    padding: 20px;
  }

  .header {
    padding: 16px 16px;
  }

  .logo {
    margin-left: 0;
    width: 152px;
  }

  .header-right {
    gap: 16px;
  }

  .user-icon {
    margin-right: 16px;
    width: 36px;
    height: 36px;
  }

  .header-right {
    display: none;
    position: absolute;
    top: 60px;
    right: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;

    z-index: 100;
  }
  .header-right.show {
    display: flex;
  }
  .hamburger {
    margin: 0 30px;
    display: flex;
  }

  .section-title {
    font-size: 24px;
    margin: 15px 0 5px 0;
  }

  .section-desc {
    font-size: 14px;
  }

  .kategori {
    gap: 12px;
    margin: 10px 0 20px 0;
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .card {
    display: flex;
    padding: 15px;
  }

  .card-img {
    width: 140px;
    height: 140px;
  }

  .card-body {
    padding: 0 15px;
  }

  .card-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 0.8rem 0;
  }

  .card-desc {
    display: none;
  }

  .hero-secondary {
    margin-top: 30px;
  }

  .hero-secondary .hero-image {
    height: 400px;
  }
  .hero-secondary .hero-overlay h5 {
    font-size: 16px;
  }

  .hero-secondary .hero-overlay h1 {
    font-size: 30px;
    padding: 10px 30px 0 30px;
  }

  .hero-secondary .hero-overlay p {
    font-size: 14px;
    line-height: 20px;
    padding: 15px 10px;
  }

  .newsletter-form {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0 auto;
  }

  .newsletter-input {
    width: 100%;
    height: 40px;
    text-align: center;
  }

  .btn-subcribe {
    position: static;
    width: 100%;
    margin-top: 30px;
  }

  .footer {
    padding: 20px;
  }

  .footer-content {
    padding: 0;
    display: block;
  }

  .footer-left {
    margin: 0;
  }

  .footer-right {
    flex-direction: column;
    gap: 24px;
    margin: 15px 0;
  }

  .footer h4 {
    margin: 0px;
  }

  .footer ul {
    display: none;
  }

  .footer-arrow {
    display: inline;
  }

  .footer-arrow i {
    color: #7d7d7d;
  }

  .footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: start;
    text-align: start;
    gap: 16px;
    padding: 16px 0;
  }

  .footer-copyright {
    order: 2;
  }

  .footer-social {
    order: 1;
    display: flex;
    gap: 16px;
  }
}
