:root {
  --primary: #8b0000;
  --primary-hover: #6a0000;
  --secondary: #0f172a;
  --accent: #b45309;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Top Notification / Contact Bar */
.topbar {
  background-color: var(--secondary);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

/* Header & Navigation */
.navbar {
  background: #ffffff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary);
}

/* Tables (Mandatory Disclosure) */
.table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
}

.styled-table th,
.styled-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.styled-table th {
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
}

.styled-table tr:hover {
  background-color: #f8fafc;
}

/* Section Containers */
.container {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.75rem;
  color: var(--secondary);
}

.underline {
  width: 50px;
  height: 4px;
  background: var(--primary);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* Footer Styles */
.footer {
  background-color: #052e16;
  color: #fff;
  text-align: center;
  padding: 15px;
}

/* ==========================================================================
   Mandatory Disclosure PDF Viewer Section
   ========================================================================== */
.pdf-disclosure-container {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto 60px;
  box-sizing: border-box;
}

.pdf-disclosure-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 18px;
}

.pdf-disclosure-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #123456; /* Matches the dark navy used across the page */
  position: relative;
  display: inline-block;
  margin: 0;
}

/* Action button for quick download / view */
.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #8b0000;
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(139, 0, 0, 0.25);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.pdf-download-btn:hover {
  background-color: #6a0000;
  transform: translateY(-1px);
}

/* Outer frame wrapper matching the table's card styling */
.pdf-viewer-wrapper {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.pdf-viewer-wrapper iframe {
  width: 100%;
  height: 650px;
  border: 0;
  display: block;
}

/* Hidden by default, shown on touch screens where PDF embedding can struggle */
.pdf-mobile-fallback {
  display: none;
  padding: 24px;
  text-align: center;
  background: #f8fafc;
}

.pdf-mobile-fallback p {
  color: #64748b;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pdf-disclosure-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdf-download-btn {
    width: 100%;
    justify-content: center;
  }

  .pdf-viewer-wrapper iframe {
    height: 480px;
  }
}

@media (max-width: 480px) {
  .pdf-disclosure-container {
    width: 95%;
    margin: 25px auto 40px;
  }

  .pdf-viewer-wrapper iframe {
    height: 400px;
  }
}
