/* GLOBAL */
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #f5f7fb;
  color: #1a1a1a;
}

/* HEADER */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0b1e39;
  padding: 20px 40px;
  color: white;
  border-bottom: 4px solid #1e90ff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 60px;
}

.brand-text h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

/* NAVIGATION */
nav a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-size: 16px;
  font-weight: 500;
}

nav a:hover {
  color: #1e90ff;
}

/* HERO SECTION (BASE) */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Fade-in animation */
  opacity: 0;
  animation: heroFadeIn 1.2s ease-out forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  text-align: center;
  color: white;

  /* Text fade-in */
  opacity: 0;
  animation: heroTextFade 1.4s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes heroTextFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 42px;
  margin: 0;
  font-weight: 700;
}

.hero-subtitle {
  margin-top: 12px;
  font-size: 18px;
  opacity: 0.9;
}

/* PAGE-SPECIFIC HERO IMAGES */
.hero-overview {
  background-image: url("../img/business-bg.jpg");
}

.hero-audits {
  background-image: url("../img/analyzing-statistical-data-with-colleagues.jpg");
}

.hero-admin {
  background-image: url("../img/handshake-after-signing-contract.jpg");
}

/* MAIN CONTENT */
main {
  padding: 40px;
  max-width: 1200px;
  margin: auto;
}

/* GRID CARDS */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* CARDS */
.card {
  background: white;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.card h2 {
  margin-top: 0;
  font-size: 20px;
  color: #0b1e39;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  margin-top: 10px;
}

.trend-list li {
  margin-bottom: 6px;
  font-size: 15px;
}

.report-link {
  color: #1e90ff;
  font-weight: 600;
  text-decoration: none;
}

.report-link:hover {
  text-decoration: underline;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

th {
  background: #0b1e39;
  color: white;
  padding: 14px;
  text-align: left;
}

td {
  padding: 14px;
  border-bottom: 1px solid #e5e5e5;
}

tr:hover {
  background: #eef5ff;
}

/* BUTTONS */
button {
  background: #1e90ff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

button:hover {
  background: #0b6edc;
}

/* INPUTS */
input, select {
  padding: 10px;
  width: 300px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .top-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  nav a {
    margin-left: 10px;
    margin-right: 10px;
  }

  .hero {
    height: 260px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  input, select {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 220px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}