/* homepage_style.css - paste/replace entire file */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', sans-serif; }

body {
  background-color: #e9f8f4; /* mint background like your screenshot */
  min-height: 100vh;
  color: #222;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1e8c72; /* primary green */
  color: white;
  padding: 18px 36px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-left { display: flex; align-items: center; gap: 14px; }
.logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: white;
  color: #1e8c72;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.h1, header h1 { font-size: 20px; font-weight: 600; color: #ffffff; margin-left: 4px; }

/* menu */
.menu-container { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  overflow: hidden;
  min-width: 160px;
}
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
}
.dropdown-menu a:hover { background: #f6f6f6; }
.menu-container .show { display: block; }

/* DASHBOARD GRID - centered and responsive */
.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;                 /* tighter spacing like the screenshot */
  padding: 36px 60px;
  max-width: 1200px;
  margin: 28px auto 80px auto; /* centers the whole region under header */
  align-items: start;
}

/* CARD */
.card {
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;  /* white cards */
  border-radius: 12px;
  padding: 26px 28px;
  box-shadow: 0 12px 30px rgba(38,95,83,0.06); /* soft greenish shadow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .28s ease, box-shadow .28s ease;
  cursor: pointer;
  border: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(38,95,83,0.09);
}

.button_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Title */
.card h1 {
  font-size: 22px;
  color: #0f2b20; 
  margin: 0;
  font-weight: 700;
}

.card i {
  font-size: 44px;
  color: #1e8c72; 
}

.card p {
  color: #6a6a6a;
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 8px 0;
  text-align: left;
}


.button_details {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.card .a {
  color: #0077cc;
  font-weight: 500;
  text-decoration: none;
}
.card .a:hover { text-decoration: underline; color: #005fa3; }

.span-two {
  grid-column: 1 / -1; 
}
@media (max-width: 900px) {
  header { padding: 14px 20px; }
  .dashboard { padding: 24px; gap: 20px; margin-top: 14px; }
  .card i { font-size: 40px; }
}

@media (max-width: 520px) {
  .logo-circle { width: 44px; height: 44px; font-size: 18px; }
  .h1 { font-size: 18px; }
  .card h1 { font-size: 18px; }
  .card { padding: 18px; }
}
