/* ================================
   home.css – OSINT Home Page Styles
   ================================ */

/* ===== Main home sections ===== */
.container-content-home {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  margin: 20px;
  gap: 30px;
  border-radius: 20px;
  border: #09141f solid 5px;
  background: linear-gradient(135deg, #f2f2f2 50%, #fafbfc 100%);
  min-height: 480px;
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.12);
}

/* ===== Welcome note section ===== */
.welcome-note {
  flex: 1 1 380px;
  min-width: 260px;
  max-width: 450px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 10px 14px;
  height: auto;              /* ✅ Fix: auto height */
  overflow: visible;         /* ✅ Prevent clipping */
}

.welcome-text {
  font-size: 1.1em;
  line-height: 1.6;
  background: white;
  border-radius: 15px;
  border-left: #09141f solid 10px;
  text-align: justify;
  width: 100%;
  padding: 15px 18px;        /* ✅ Added padding for readability */
  color: #000;
}

.welcome-highlight {
  color: #0033cc;
  font-weight: bold;
}

.prism-logo {
  height: 100px;
  width: 100px;
  display: block;
  margin: 0 auto 12px auto;
}

/* ===== DGP block ===== */
.dgp-center {
  flex: 1 1 380px;
  min-width: 260px;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: auto;              /* ✅ Auto height */
}

.dgp-photo {
  margin: 30px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;              /* ✅ Removed fixed height */
  padding: 0;
}

.dgp-image {
  width: 220px;
  height: 220px;
  object-fit: fill;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(10, 23, 35, 0.13);
  border: 3px solid #a00;
}

.dgp-info {
  margin-top: 5px;
  text-align: center;
}

.dgp-info h2 {
  color: #092a41;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: underline;
  margin: 0.25em auto;
}

.dgp-info h3 {
  font-size: 1.05em;
  color: #091f05;
  font-weight: bold;
  margin: 0;
}

.dgp-info h4 {
  font-size: 0.95em;
  color: #091f05;
  font-weight: bold;
  margin: 0;
}

/* ===== Cards grid ===== */
.dashboard-card-grid {
  margin: 32px auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(5, 1fr);
  justify-content: center;
  align-items: stretch;
  width: auto;
  place-items: center;
}

.dashboard-card {
  border-radius: 10px;
  border: 2px solid rgb(69, 59, 59);
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.09);
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  height: 120px;
  width: 140px;
  background: linear-gradient(135deg, #f8fafc 60%, #e3f0ff 100%);
}

.dashboard-card:nth-child(1) { background: linear-gradient(135deg, #e3f0ff 60%, #f8fafc 100%); }
.dashboard-card:nth-child(2) { background: linear-gradient(135deg, #fffbe6 60%, #ffe3e3 100%); }
.dashboard-card:nth-child(3) { background: linear-gradient(135deg, #e6fff7 60%, #e3f0ff 100%); }
.dashboard-card:nth-child(4) { background: linear-gradient(135deg, #f8e3ff 60%, #e3f0ff 100%); }
.dashboard-card:nth-child(5) { background: linear-gradient(135deg, #e3f0ff 60%, #e6fff7 100%); }
.dashboard-card:nth-child(6) { background: linear-gradient(135deg, #fffbe6 60%, #e3f0ff 100%); }
.dashboard-card:nth-child(7) { background: linear-gradient(135deg, #e3f0ff 60%, #ffe3e3 100%); }
.dashboard-card:nth-child(8) { background: linear-gradient(135deg, #f8fafc 60%, #f8e3ff 100%); }

.dashboard-card:hover {
  box-shadow: 0 4px 16px rgba(44, 62, 80, 0.15);
}

.card-icon {
  font-size: 1.1em;
  margin-bottom: 5px;
}

.dashboard-card h3 {
  margin: 0 0 4px 0;
  font-size: 0.92em;
  font-weight: 700;
}
.dashboard-card h3:hover {
  text-decoration: underline;
}

.dashboard-card p {
  font-size: 0.75em;
  color: #555;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 1200px) {
  .container-content-home {
    gap: 24px;
  }
  .welcome-note, .dgp-center {
    max-width: 400px;
    padding: 10px;
    height: auto;
  }
}

@media (max-width: 900px) {
  .container-content-home {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .welcome-note, .dgp-center {
    max-width: 95vw;
    height: auto;
    padding: 6px;
  }
}

@media (max-width: 600px) {
  .container-content-home {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin: 4px 2vw;
  }
  .welcome-note, .dgp-center {
    max-width: 98vw;
    height: auto;
    padding: 2vw;
    font-size: 0.95em;
  }
  .prism-logo {
    height: 60px;
  }
  .dgp-image {
    width: 120px;
    height: 120px;
  }
  .dashboard-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
