/* RESET */
@font-face {
    font-family: 'HartwellAlt';
    src: url('fonts/Hartwell%20Alt%20Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

* { margin: 100; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; color: #333; line-height: 1.6; margin-top: 5% ;  background-image:  url('foto/Background_Kecil_2.png'); 
    background-size: 110%;
    background-repeat:  repeat-y; 
    background-position: center ;}

/* HEADER */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 15px 5%;
  margin-bottom: 50%;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(to right, #90c8c8, #b8e0e0);
  z-index: 1000;
}
.logo { font-size: 30px; font-weight: bold; color: #333; text-decoration: none; }
.navbar { display: flex; gap: 30px; }
.navbar a {
  text-decoration: none; color: #374d4d; font-weight: 800; position: relative; font-size: 25px;
}
.navbar a::before {
  content: ''; position: absolute; bottom: -5px; left: 0;
  width: 0; height: 2px; background: #ec0000; transition: width 0.3s;
}
.navbar a:hover::before { width: 100%; }

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-content {
  display: none; position: absolute; top: 100%; left: 0;
  background: white; min-width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); border-radius: 6px;
}
.dropdown-content a {
  display: block; padding: 10px; color: #333; text-decoration: none; font-size: 20px;
}
.dropdown-content a:hover { background: #f0f0f0; }
.dropdown:hover .dropdown-content { display: block; }

/* tombol hamburger default hidden */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  color: #333;
}

/* responsive mode */
@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0;
    width: 100%;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .navbar.active {
    display: flex;
    margin-top: 50px;
  }
  .navbar a,
  .dropdown > a {
    padding: 12px 20px;
    font-size: 18px;
    display: block;
  }
  .hamburger {
    display: block;
  }
  /* dropdown di mobile */
  .dropdown-content {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
  }
}

/* HERO */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 120px 5% 60px;
  background: url('foto/bg.png') center/cover no-repeat;
}
.hero-text { flex: 1 1 400px; }
.hero-text h1 { font-size: 2.8rem; margin-bottom: 20px; }
.hero-text p { font-size: 1.1rem; color: #444; }
.hero-img { flex: 1 1 400px; text-align: center; }
.hero-img img { max-width: 100%; height: auto;  margin-left: 10px; margin-right: 10px; }

.hero-img1 { flex: 1 1 400%; text-align: center; }
.hero-img1 img { max-width: 100%; height: auto; }

p{
  font-size: 24px;
  font-family: 'HartwellAlt',sans-serif;

}
p.paneh{
  font-size: 30px !important;
}
/* INFO SECTION */
.info {
  background: linear-gradient(to right, #d8a7aa ,#fbc7c9, #ffd2d5);
  padding: 60px 5%;
}
.info p{
  font-size: 50px;
}
.besar{
  font-size: 40px !important;
}
.infowhite{
  padding: 60px 5%;
}
.info-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 2rem; }
.info-header img { width: 40px; height: 40px; }
.info h2 { font-size: 2rem; color: #3b3b3b; }
.info p { font-size: 1rem; max-width: 800px; }

.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom sejajar */
  gap: 20px; /* jarak antar gambar */
  margin: 20px 0;
}

.img-gridsize {
display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 kolom sejajar */
  gap: 20px; /* jarak antar gambar */
  margin: 20px 0;
  justify-items: center;
}
.img-gridsize img {
  width: 60%;
  height: auto;
  display: block;
  border-radius: 10px; /* opsional, biar rapi */
}

.img-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; /* opsional, biar rapi */
}
@media (max-width: 768px) {
  .img-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* HP kecil (max 480px) -> jadi 1 kolom */
@media (max-width: 480px) {
  .img-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .img-gridsize {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* HP kecil (max 480px) -> jadi 1 kolom */
@media (max-width: 480px) {
  .img-gridsize {
    grid-template-columns: 1fr;
  }
}
.content-section {
  padding: 40px 10%;
  margin-top: 10px;
}

.content-row {
  display: flex;
  flex-wrap: wrap; /* biar responsif */
  align-items: flex-start;
  gap: 30px;
}

/* Kolom kiri */
.content-image {
  flex: 1;
  min-width: 280px;
}
.content-imagespe{
flex: 1;
  min-width: 280px;
}

.content-imagespe img{
  width: 90%;
  height: auto;
  border-radius: 8px;
}
.content-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Kolom kanan */
.content-text {
  flex: 2;
  min-width: 300px;
}

.content-text h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
}

.content-text h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #333;
}

.content-text p {
  margin-bottom: 15px;
  line-height: 1.6;
}
.content-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* tetap wrap */
}

.content-image,
.content-text {
  flex: 1;
  min-width: 280px;
}

.MitosA{

  transition: transform 0.3s ease;
}
.MitosB{

   transition: transform 0.3s ease;
}
.MitosC{

   transition: transform 0.3s ease;
}
.MitosD{

   transition: transform 0.3s ease;
}
.MitosE{

   transition: transform 0.3s ease; 
}
.MitosA:hover {
  transform: scale(1.35);
  z-index: 10; 
}
.MitosB:hover {
  transform: scale(1.35);
  z-index: 10; 
}
.MitosC:hover {
  transform: scale(1.35);
  z-index: 10; 
}
.MitosD:hover {
  transform: scale(1.35);
  z-index: 10; 
}
.MitosE:hover {
  transform: scale(1.35);
  z-index: 10; 
}

/* Atur untuk layar kecil (mobile) */
@media (max-width: 768px) {
  .content-row {
    flex-direction: column; /* stack ke bawah */
    text-align: center; /* opsional: teks rata tengah */
  }

  .content-image {
    margin-right: 0;
    margin-bottom: 20px; /* kasih jarak ke teks */
  }

  .content-text {
    text-align: left; /* biar teks tetap rata kiri */
  }
}


/* Gambar info kecil (zat besi heme & non-heme) */
.info-cards {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}

.info-cards img {
  width: 48%;
  border-radius: 6px;
}

.kalkulator {
      background: #fff;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.15);
      max-width: 400px;
      width: 100%;
    }

    .kalkulator h1 {
      font-size: 1.4rem ;
      margin-bottom: 20px;
      text-align: center;
    }

    label {
      font-weight: 600;
      display: block;
      margin: 10px 0 5px;
    }

    input[type="number"],
    input[type="submit"] {
      width: 100%;
      padding: 7px;
      border: 1px solid #ccc;
      border-radius: 8px;
      margin-bottom: 15px;
      font-size: 1rem;
    }

    input[type="submit"] {
      background: #eee;
      cursor: pointer;
      transition: background 0.3s;
    }

    input[type="submit"]:hover {
      background: #ddd;
    }

    .hasil {
      padding: 12px;
      border-radius: 8px;

      text-align: center;
      margin-top: 10px;
    }
 
    .hasil.normal {
      background: #059669;
      color: white;
    }

    .hasil.kurus {
      background: #f59e0b;
      color: white;
    }

    .hasil.gemuk {
      background: #dc2626;
      color: white;
    }
    
    /* Responsif untuk layar kecil */
    @media (max-width: 480px) {
      .kalkulator {
        padding: 20px;
      }

      .kalkulator h1 {
        font-size: 2.0rem;
              font-weight: 900;
        text-align: left;
      }

      input[type="number"],
      input[type="submit"] {
        font-size: 0.9rem;
        padding: 10px;
      }
    }

    .kalkulator {
      background: #fff;
      padding: 30px;
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.15);
      max-width: 400px;
      width: 100%;
      margin-top: 25px;
      margin-bottom: 25px;
    }

    .kalkulator h1 {
      font-size: 1.3rem;
      margin-bottom: 20px;
      text-align: center;

    }

    label {
      font-weight: 600;
      display: block;
      margin: 10px 0 5px;
    }

    input[type="number"],
    input[type="submit"] {
      width: 100%;
      padding: 12px;
      border: 1px solid #ccc;
      border-radius: 8px;
      margin-bottom: 15px;
      font-size: 1rem;
    }

    input[type="submit"] {
      background: #eee;
      cursor: pointer;
      transition: background 0.3s;
    }

    input[type="submit"]:hover {
      background: #ddd;
    }

    .hasil {
      padding: 10px;
      border-radius: 8px;
      font-weight: 600;
      text-align: center;
      margin-top: 10px;
      background: #d9f99d;
      color: #1a1a1a;
    }

     .hasilimt {
       padding: 10px;
      border-radius: 8px;
      font-weight: 600;
      margin-top: 10px;
      color: #1a1a1a;
       display: inline-block; 
    }

    @media (max-width: 480px) {
      .kalkulator {
        padding: 20px;
      }

      .kalkulator h1 {
        font-size: 1.1rem;

      }
    }

    .comment-box {
            width: 80%;
            margin: 20px auto;
        }
        .comment-form textarea {
            width: 100%;
            height: 80px;
            resize: vertical;
            padding: 10px;
            font-size: 14px;
        }
        .comment {
            border-bottom: 1px solid #ddd;
            padding: 10px 0;
            font-family: 'Poppins', sans-serif;
            
        }
        .comment strong {
            font-size: 16px;
        }
        .comment time {
            font-size: 12px;
            color: gray;
        }

.floated {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 380px;
  height: auto;

}

/* Tablet */
@media (max-width: 768px) {
  .floated {
    width: 250px;
    bottom: 15px;
    right: 15px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .floated {
    width: 200px;
    bottom: 10px;
    right: 10px;
  }
}

/* Animasi menghilang */
.floated.hide {
  transform: translateX(150%);
  opacity: 0;
}

/* Tombol tampilkan kembali dekat gambar */
#showBtn {
  position: fixed;
  display: none;
  z-index: 1000;
  padding: 8px 12px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
/* Tablet */
@media (max-width: 768px) {
  .floated {
    width: 400px;   /* lebih kecil di tablet */
    bottom: 15px;
    right: 15px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .floated {
    width: 300px;   /* lebih kecil di hp */
    bottom: 10px;
    right: 10px;
  }
}

/* FOOTER */
.simple-footer {
  background: linear-gradient(to right, #90c8c8, #b8e0e0);
  color: #395757;
  padding: 15px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  border-radius: 20px;
  margin-top: 200px;
}

.simple-footer nav {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.simple-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.simple-footer a:hover {
  color: #00c2c7;
}

/* Responsif mobile */
@media (max-width: 480px) {
  .simple-footer {
    font-size: 13px;
    padding: 12px;
  }

  .simple-footer nav {
    flex-direction: column;
    gap: 5px;
  }
}
/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-text h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; }
  .navbar { gap: 15px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.6rem; }
  .hero-text p { font-size: 0.95rem; }
  .info-header h2 { font-size: 1.4rem; }
}
