/* ---------- BASIC PAGE STYLING ---------- */
* {
  box-sizing: border-box;
}

/* Always reserve space for vertical scrollbar so pages don't "shift" */
html {
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0b1723;
  color: #111827;
}

/* ---------- HEADER & MAIN NAV (TOP TABS) ---------- */
header {
  background: linear-gradient(90deg, #012b45, #1f4f7b);
  color: #ffffff;
  padding: 0.75rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Logo-only brand box */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-logo {
  width: 210px;
  height: auto;
  margin-bottom: 0.2rem;
}

/* Subtitle under the logo */
.site-subtitle {
  font-size: 1rem;
  font-weight: 600;
  opacity: 1;
  margin-top: 0.1rem;
}

/* Top navigation tabs */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

nav a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  color: #e5e7eb;
  border: 1px solid transparent;
  transition: 0.15s ease;
  background: rgba(15, 23, 42, 0.25);
}

nav a:hover {
  background: rgba(15, 23, 42, 0.5);
  transform: translateY(-1px);
}

nav a.active {
  background: #f7a600;
  color: #012b45;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- MAIN CONTENT BOX ---------- */
main {
  max-width: 1120px;
  margin: 1.75rem auto 2.5rem auto;
  padding: 0 1.25rem 1.5rem 1.25rem;
  background: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ---------- SUB-TABS ---------- */
.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 0.25rem 0.1rem 0.25rem;
  margin: 0 0 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.subtabs a,
.subtabs button {
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: #e5effa;
  color: #1f2933;
  transition: 0.15s ease;
  border: none;
  cursor: pointer;
}

.subtabs button {
  font-family: inherit;
}

.subtabs a:hover,
.subtabs button:hover {
  background: #d1e3ff;
  transform: translateY(-1px);
}

.subtabs a.active-subtab,
.subtabs button.active-subtab {
  background: #f7a600;
  color: #012b45;
}

/* ---------- HEADINGS ---------- */
h1, h2, h3 {
  color: #012b45;
  margin-top: 0.25rem;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }

/* ---------- CONTENT ---------- */
section {
  padding: 1rem 0.1rem 0.5rem 0.1rem;
}

section + section {
  border-top: 1px solid #e5e7eb;
}

/* ---------- CARD GRID ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 0.75rem;
}

.card {
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: 0.1s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

/* ---------- DOUBLED PHOTO SIZES ---------- */
.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  margin-bottom: 0.6rem;
}

.sponsor-photo {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.6rem;
}

/* ---------- IMAGES ---------- */
figure { margin: 0.75rem 0; }

img.responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

figcaption {
  font-size: 0.82rem;
  color: #4b5563;
  margin-top: 0.25rem;
}

/* ---------- HERO AREA ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #e5effa;
  color: #1f4f7b;
  margin-bottom: 0.25rem;
}

.hero-cta {
  margin-top: 0.75rem;
}

.button-link {
  display: inline-block;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: #f7a600;
  color: #012b45;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: 0.12s ease;
}

.button-link:hover {
  background: #ffbb24;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
}

/* ---------- GENERIC TABLES (Tasks & Gantt) ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

table th,
table td {
  border: 1px solid #d1d5db;
  padding: 0.45rem 0.5rem;
  text-align: left;
}

table th {
  background: #c9e4ff;   /* light blue header (Gantt style) */
  color: #02253b;
  font-weight: 600;
}

/* ---------- TEAM PHOTO ---------- */
.team-photo {
  width: 80%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---------- UNIFORM DATA TABLES (Staffing, Cost, Construction Cost) ---------- */
/* Make .data-table visually match the generic table styling above */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.9rem;      /* same as generic table */
}

.data-table th,
.data-table td {
  border: 1px solid #d1d5db;   /* same border as generic table */
  padding: 0.45rem 0.5rem;
  text-align: left;
}

.data-table th {
  background: #c9e4ff;         /* same light blue header as Tasks & Gantt */
  color: #02253b;
  font-weight: 600;
}

/* Optional: keep slight banding for section headers / totals */
.data-table .section-header td {
  background-color: #ebeced;
  font-weight: 600;
}

.data-table .subtotal td {
  font-weight: 600;
  background-color: #f9fafb;
}

.data-table .grand-total td {
  font-weight: 700;
  background-color: #e0f2fe;
}

/* ---------- FOOTER ---------- */
footer {
  max-width: 1120px;
  margin: 0 auto 1.25rem auto;
  padding: 0 1.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
