/* ===== General Styles ===== */
* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.dashboard-page .main-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.dashboard-main-content {
  flex-grow: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Header & Navigation ===== */
.dashboard-header {
  width: 100%;
  background-color: #fff;
  padding: 12px 18px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #e42121;
  font-size: 1.7em;
  font-weight: bold;
  white-space: nowrap;
}

.logo-image {
  height: 38px;
  margin-right: 10px;
}

.profil-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.profil-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 1em;
  transition: color 0.3s ease;
}

.profil-nav a:hover,
.profil-nav a.active-nav {
  color: #e42121;
}

.hamburger-btn {
  display: none;
}

/* ===== Hero Section ===== */
.hero {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, #e42121, #b91616);
  color: #fff;
  text-align: center;
}

.hero .hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.15rem;
  margin: 0 auto 25px auto;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  background: #fff;
  color: #e42121;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: #ffe5e5;
  transform: translateY(-2px);
}

/* ===== Fitur Section ===== */
.fitur {
  width: 100%;
  padding: 70px 20px;
  background: #f9f9f9;
  text-align: center;
}

.fitur .fitur-content {
  max-width: 900px;
  margin: 0 auto;
}

.fitur h2 {
  font-size: 2.2em;
  font-weight: 800;
  color: #e42121;
  margin-bottom: 50px;
}

.fitur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.fitur-item {
  padding: 30px 20px;
  border-radius: 15px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fitur-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(228, 33, 33, 0.18);
  border-color: #e42121;
}

.fitur-icon {
  width: 70px;
  height: auto;
  margin-bottom: 18px;
}

.fitur-title {
  font-size: 1.3em;
  font-weight: 700;
  color: #e42121;
  margin-bottom: 12px;
}

.fitur-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* ===== Tentang Section ===== */
.tentang {
  width: 100%;
  padding: 70px 20px;
  background: #fff;
  text-align: center;
}

.tentang .tentang-content {
  max-width: 900px;
  margin: 0 auto;
}

.tentang h2 {
  font-size: 2em;
  font-weight: 800;
  color: #e42121;
  margin-bottom: 25px;
}

.tentang p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555;
}

/* ===== Footer ===== */
.main-footer {
  width: 100%;
  background-color: #333;
  color: white;
  padding: 40px 0;
  margin-top: auto;
}

.main-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding: 0 20px;
  align-items: flex-start;
}

.footer-left {
  flex: 2;
  min-width: 250px;
  text-align: left;
}

.footer-left h3 {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #e42121;
}

.footer-left p {
  font-size: 0.9em;
  line-height: 1.4;
  color: #ccc;
  margin-bottom: 4px;
}

.footer-left p:last-child {
  margin-bottom: 0;
}

.footer-links {
  flex: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
}

.footer-links div {
  flex: 1;
  min-width: 120px;
  text-align: left;
}

.footer-links h4 {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: white;
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: #e42121;
}

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

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

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.footer-links ul li a:hover {
  color: #e42121;
}

.social-icon {
  margin-right: 8px;
  font-size: 1.2em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .logo-link { font-size: 1.4em; }
  .logo-image { height: 34px; }

  .dashboard-header {
    padding: 10px 14px;
  }

  .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #e42121;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    z-index: 1001;
  }

  .profil-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    min-width: 170px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    padding: 6px 0;
  }

  .profil-nav.active {
    display: block;
    animation: slideDown 180ms ease-out;
  }

  .profil-nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
  }

  .profil-nav ul li {
    margin: 0;
  }

  .profil-nav ul li a {
    display: block;
    width: 100%;
    padding: 10px 16px;             /* natural & proporsional */
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    line-height: 1.3;               /* buat tinggi teks seimbang */
    box-sizing: border-box;
    background-color: #fff;
  }

  .profil-nav ul li + li a {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .hero,
  .fitur,
  .tentang {
    padding: 60px 16px;
  }

  .hero h1 { font-size: 1.9rem; line-height: 1.3; }
  .hero p { font-size: 0.95rem; }

  .fitur h2,
  .tentang h2 { font-size: 1.7em; margin-bottom: 35px; }

  .fitur-grid { grid-template-columns: 1fr; gap: 22px; }

  .main-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-left,
  .footer-links div {
    width: 100%;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================= */
/* ===== MOBILE HAMBURGER ===== */
/* ============================= */
@media (max-width: 768px) {
  .dashboard-header .header-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative;
  }

  .logo-link {
    font-size: 1.4em;
  }

  .hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #e42121;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }

  .hamburger-btn:active {
    transform: scale(0.98);
  }

  .profil-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    min-width: 180px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    padding: 6px 0;
    z-index: 10002;
    overflow: hidden;
  }

  .profil-nav.active {
    display: block;
    animation: slideDown 180ms ease-out;
  }

  .profil-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .profil-nav ul li {
    margin: 0;
  }

  .profil-nav ul li a {
    display: block;
    width: 100%;
    padding: 10px 16px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    line-height: 1.3;
    box-sizing: border-box;
  }

  .profil-nav ul li a:hover {
    background: #fff5f5;
    color: #e42121;
  }

  .profil-nav ul li + li a {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
