/* ===============================
   DJANGO ADMIN CUSTOMIZATION
================================= */
/* #user-tools, */  /* ← uncomment this line to show user info again */
#recent-actions-module,
#nav-filter {
  display: none !important;
}

#header {
  background-color: #4DB6AC;
}

#header h1,
#header h1 a {
  color: white !important;
}

.dashboard-container {
  max-width: 960px;
  margin: auto;
  padding-top: 20px;
}

.app-section {
  margin-bottom: 30px;
}

.app-section h2 {
  font-size: 1.3em;
  color: #004b8d;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}

.model-list {
  list-style-type: none;
  padding: 0;
}

.model-list li {
  margin: 6px 0;
}

.dashboard {
  max-width: 1200px;
  margin: auto;
}

.dashboard-module {
  margin-bottom: 11px !important;
}

.dashboard-module .module {
  padding: 7px 9px !important;
}

#content {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

.dashboard-title {
  margin-bottom: 7px !important;
}

/* ===============================
   GLOBAL SITE STYLING
================================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: #004b8d;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

ul {
  list-style-type: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  background-color: white;
  color: #004b8d;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e0f2f1;
}

section {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: auto;
}

/* ===============================
   HOMEPAGE: HERO + GRID LAYOUT
================================= */
header.hero {
  background-color: #4DB6AC;
  color: white;
  padding: 0.6rem 0;  /* vertical padding only */
  border-bottom: 4px solid #29434e;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1.5rem;       /* ✅ shift logo + text right */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.admin-logo {
  height: 40px;
  margin-right: 0px;
  vertical-align: middle;
}

.admin-header-text {
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;              /* 👈 spacing between h1 and p */
}

.framed-section {
  background-color: #ffffff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);/* 👈 these are frames boxes for the text How, Why */
  flex: 1 1 48%;
}

.framed-section-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
}

.framed-section-row .framed-section {
  flex: 1 1 48%;
  max-width: none;
  margin: 0;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
}

@media (max-width: 768px) {
  .framed-section-row {
    flex-direction: column;
  }

 .framed-section-row {
    flex-direction: column;
  }

  .framed-section {
    flex: 1 1 100%;
  }

.cta-pair-row {
    flex-direction: column;
    align-items: center;
  }

  .cta-box {
    flex: 1 1 100%;
  }
}

.cta-pair-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  background-color: #004b8d;
  padding: 1.5rem 0.2rem;
  max-width: 1100px;
  margin: 2rem auto;
}

.cta-box {
  flex: 1 1 48%;
  background-color: #004b8d;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 8px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ensures the button stays at bottom */
}

.cta-box h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.cta-box p {
  margin-bottom: 1rem;
  color: #dfefff;
}

.cta-box .cta-button {
  margin-top: 1.5rem;
  align-self: center;
}
.cta-box {
  flex: 1 1 48%;
  background-color: #004b8d;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-content {
  flex-grow: 1;
}

.cta-button {
  margin-top: 2rem;
  align-self: center;
}

/* ===============================
   EXPERTS / CTA / FOOTER SECTIONS
================================= */

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  padding: 2rem 1rem;
  background-color: #f0f0f0;
}

footer a {
  color: #004b8d;
  margin: 0 0.5rem;
  text-decoration: none;
}

/* ===============================
   ADMIN-LIKE PUBLIC HEADER
================================= */
.admin-style-header {
  background-color: #4DB6AC;
  color: white;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}


.admin-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;  
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding-left: 0;
  gap: 1.2rem;
}


.main-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.main-nav ul li a:hover {
  text-decoration: underline;
}

.admin-logo {
  height: 100px;         /* ⬆️ increase from 40px */
  margin: 0;
  vertical-align: middle;
}


.admin-header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;                    /* 👈 tighter gap between h1 and p */
  margin: 0;
}

.admin-header-text h1 {
  font-size: 1.4rem;
  margin: 0;
  color: white;
}


.admin-header-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #e0f7fa;
  font-style: italic;
}


.admin-header-text a {
  color: #f0f8ff;
  text-decoration: none;
}

.admin-header-text a:hover {
  text-decoration: underline;
}

header.admin-style-header,
nav.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}


/* ===============================
   SUBNAV BAR
================================= */
.admin-subnav-bar {
  background-color: #29434e;
  height: 32px;
  width: 100%;
}

/* ===============================
   RESPONSIVE RULES
================================= */
@media (max-width: 768px) {
  header.hero h1 {
    font-size: 1.5rem;
  }

  .steps,
  .grid,
  .admin-header-content {
    flex-direction: column;
  }

  .step,
  .case {
    width: 100%;
  }

  .admin-logo {
    margin-bottom: 0.5rem;
  }
}

/* ===============================
   HEADER BRANDING SPACING
================================= */
#branding {
  display: block; /* not flex */
  padding: 10px 40px;
}

#site-name {
  font-weight: 300;
  font-size: 1.5rem;
  margin: 0 0 5px 0;
}

#site-name a {
  color: #f5dd5d;
  text-decoration: none;
}

#site-name img {
  height: 40px;
  margin-right: 10px;
  vertical-align: middle;
}

#branding h2 {
  margin: 0;
  font-size: 0.95rem;
  color: #dfefff;
}
/* ===============================
   REPORT and REPORT tables style
================================= */

.report-container {
  max-width: 960px;
  margin: 0rem auto 1rem auto;   /* 🔽 Top margin lowered from 2rem to 1rem */
  padding: 2rem 2rem 2rem 3rem;  /* ✅ This moves content away from left edge */
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  border: 1px solid #ddd;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background-color: #f1f1f1;
  font-weight: bold;
  color: #333;
}

.data-table tr:nth-child(even) {
  background-color: #fafafa;
}

.data-table tr:hover {
  background-color: #f5f5f5;
}

.button {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
}

/* ===============================
   PDF report: wrap long entries
================================= */

/* Limits the “Entry” column width and wraps long pipe-delimited text */
.entry-col {
  max-width: 15%;
  word-break: break-all;
  white-space: pre-wrap;
}

/* ===============================
   FORM INPUT FIX FOR JOIN PAGE
================================= */
input[type="email"] {
  padding: 10px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 1rem;
}

button[type="submit"] {
  background-color: #4DB6AC;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #399b90;
}

.features-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px auto 0 auto;    /* 🔽 tighten space above the cards */
  padding: 0;
  max-width: 1000px;
}

.feature-box {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 15px 10px 15px;  /* 🔽 top padding is now smaller */
  width: 30%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* 🧠 align content to the top */
  min-height: 150px;             /* or adjust as needed */
}

.feature-box h3 {
  margin-top: 4px;   /* ⬆ Pull heading closer to the top */
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.feature-box p {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.feature-box:hover {
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}
@media (max-width: 980px) {
  .feature-box {
    width: 100%;
  }

  .features-wrapper {
    flex-direction: column;
    align-items: center;
  }
}
/* ===============================
   FIELD HINT STYLING
================================= */
.field-hint {
  font-style: italic;
  font-size: 0.92rem;
  color: #555;
  margin-top: -0.5rem;
  margin-bottom: 0.8rem;
}
