/* ==========================================================================
   MERRIT CAPITAL RESEARCH - INSTITUTIONAL DESIGN SYSTEM
   Inspired by Goldman Sachs, JPMorgan, KKR, Blackstone
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-black: #000000;
  --bg-dark-section: #07090e;
  --bg-dark-card: #11141b;
  --bg-light-card: #f8f9fa;
  --bg-table-wrap: #eef2f6;
  --footer-navy: #233a6b;
  --footer-dark-bar: #000000;
  
  /* Primary & Accent Blues */
  --blue-primary: #1d4ed8;
  --blue-hover: #2563eb;
  --blue-card-hover: #2b427b;
  --blue-border: #2a437c;
  --blue-light: #3b82f6;
  --blue-soft: #dbeafe;
  --blue-accent-glow: rgba(37, 99, 235, 0.25);
  
  /* Text Colors */
  --text-white: #ffffff;
  --text-offwhite: #f1f5f9;
  --text-light-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-charcoal: #1e293b;
  --text-dark-muted: #475569;
  
  /* Borders */
  --border-dark: #1e293b;
  --border-light: #cbd5e1;
  --border-navy: #2b427b;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  
  /* Transitions */
  --transition-fast: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-black);
  color: var(--text-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-black);
  line-height: 1.5;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

/* Accessibility Focus Outline */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 76px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-white);
  white-space: nowrap;
  display: inline-block;
  transition: var(--transition-fast);
}

.brand-logo:hover {
  color: #93c5fd;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-item a {
  font-size: 14.5px;
  font-weight: 500;
  color: #e2e8f0;
  position: relative;
  padding: 8px 4px;
  transition: var(--transition-fast);
}

.nav-item a:hover {
  color: var(--blue-light);
}

.nav-item a.active {
  color: var(--text-white);
  font-weight: 600;
}

.nav-item a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--blue-light);
}

/* Mobile Menu Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  transition: var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
}

/* ==========================================================================
   BUTTONS & GENERAL INTERACTIONS
   "Buttons turn blue on hover, matching the existing site behavior"
   ========================================================================== */
.btn-primary-white {
  display: inline-block;
  background-color: #ffffff;
  color: #000000;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 34px;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-primary-white:hover {
  background-color: var(--blue-primary);
  color: #ffffff;
}

.btn-dark {
  display: inline-block;
  background-color: #222222;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  border-radius: 0;
  transition: var(--transition-fast);
  text-align: center;
}

.btn-dark:hover {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

.btn-blue {
  display: inline-block;
  background-color: var(--blue-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  border-radius: 0;
  transition: var(--transition-fast);
}

.btn-blue:hover {
  background-color: var(--blue-hover);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--text-white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-outline:hover {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

/* ==========================================================================
   SECTION 1: HERO SECTION
   Matching: Hero page 1st section .png
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-color: #0b111e;
  background-image: 
    linear-gradient(135deg, rgba(10, 16, 28, 0.85) 0%, rgba(26, 45, 82, 0.72) 45%, rgba(10, 16, 28, 0.85) 100%),
    url('../assets/buildings.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-bottom: 2px solid #000000;
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 90px 48px;
}

.hero-content {
  max-width: 780px;
}

.hero-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 400;
  color: #e2e8f0;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   SECTION 2: FOUR SERVICE CARDS
   Matching: Hero page 2nd section .png
   ========================================================================== */
.service-cards-section {
  background-color: var(--bg-black);
  padding: 40px 0 30px;
}

.service-cards-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background-color: var(--bg-light-card);
  display: flex;
  flex-direction: column;
  min-height: 380px;
  border: 1px solid #1e293b;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.service-card-header {
  background-color: #000000;
  color: var(--text-white);
  padding: 24px 20px;
  text-align: center;
  transition: background-color 0.2s ease;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-white);
}

/* Blue on hover for the card header matching screenshot */
.service-card:hover .service-card-header,
.service-card:focus-visible .service-card-header,
.service-card.active-hover .service-card-header {
  background-color: var(--blue-card-hover);
}

.service-card-body {
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  background-color: #ffffff;
}

.service-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #1f2937;
  text-align: center;
}

.service-card-action {
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e3a8a;
  letter-spacing: 0.03em;
  transition: color 0.18s ease;
}

.service-card:hover .service-card-action {
  color: var(--blue-primary);
  text-decoration: underline;
}

/* ==========================================================================
   SECTION 3: MARKET WRAP
   Matching: Hero page 3rd section.png
   ========================================================================== */
.market-wrap-section {
  background-color: var(--bg-black);
  padding: 60px 0 70px;
}

.market-wrap-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.market-wrap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.market-wrap-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.market-wrap-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.05em;
  transition: color 0.18s ease;
}

.market-wrap-link:hover {
  color: var(--blue-light);
}

.market-wrap-box {
  background-color: var(--bg-table-wrap);
  border: 1.5px solid var(--border-navy);
  overflow: hidden;
}

.market-wrap-row {
  display: block;
  padding: 18px 24px;
  border-bottom: 1.5px solid #000000;
  text-decoration: none;
  transition: background-color 0.15s ease;
  color: inherit;
}

.market-wrap-row:last-child {
  border-bottom: none;
}

.market-wrap-row:hover {
  background-color: #e2e8f0;
}

.market-wrap-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.market-wrap-tag {
  font-size: 15.5px;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.market-wrap-date {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}

.market-wrap-headline {
  font-size: 14.5px;
  font-weight: 500;
  color: #0f172a;
  padding-left: 28px;
  line-height: 1.5;
}

.market-change-positive {
  color: #15803d;
  font-weight: 700;
}

.market-change-negative {
  color: #b91c1c;
  font-weight: 700;
}

.market-change-neutral {
  color: #475569;
  font-weight: 600;
}

.market-badge-unverified {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.market-badge-indicative {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background-color: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.market-wrap-footnote {
  background-color: #f1f5f9;
  border-top: 1.5px solid #000000;
  padding: 16px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
}

.market-wrap-footnote p + p {
  margin-top: 6px;
}

/* ==========================================================================
   SECTION 4: LATEST RESEARCH REPORTS
   Matching: Hero page 4th section.png
   ========================================================================== */
.latest-reports-section {
  background-color: var(--bg-black);
  padding: 60px 0 80px;
}

.latest-reports-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.latest-reports-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.latest-reports-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.report-showcase-center {
  display: flex;
  justify-content: center;
}

.report-card-featured {
  background-color: #ffffff;
  width: 100%;
  max-width: 380px;
  border: 1px solid #1e293b;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.report-card-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7);
}

.report-card-img-wrap {
  width: 100%;
  height: 240px;
  background-color: #0d1e3d;
  overflow: hidden;
  position: relative;
}

.report-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.report-card-featured:hover .report-card-img-wrap img {
  transform: scale(1.03);
}

.report-card-body {
  padding: 28px 24px 32px;
  background-color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.report-card-company {
  font-size: 26px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.report-card-summary {
  font-size: 14.5px;
  line-height: 1.55;
  color: #1e3a8a;
  margin-bottom: 20px;
}

.report-card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  background-color: #eff6ff;
  color: var(--blue-primary);
  border: 1px solid #bfdbfe;
}

/* ==========================================================================
   SECTION 5: FOOTER
   Matching: Hero page 5th section .png
   ========================================================================== */
.site-footer {
  width: 100%;
}

.footer-navy-block {
  background-color: var(--footer-navy);
  color: var(--text-white);
  padding: 64px 0 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-col-brand h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.footer-col-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
  max-width: 440px;
  margin-bottom: 24px;
}

.footer-col-brand a.footer-inline-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

.footer-col-brand a.footer-inline-link:hover {
  color: #bfdbfe;
}

.footer-col-links h4,
.footer-col-contact h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-quick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-quick-list a {
  font-size: 14.5px;
  color: var(--text-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
  display: inline-block;
}

.footer-quick-list a:hover {
  color: #bfdbfe;
}

/* Contact Column with Placeholder Indicator */
.contact-placeholder-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 2px 8px;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 2px;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.footer-icon-btn {
  background-color: #ffffff;
  color: var(--footer-navy);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.footer-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-icon-btn:hover {
  background-color: var(--blue-primary);
  color: #ffffff;
}

/* Footer Legal Links row */
.footer-legal-row {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding-top: 16px;
}

.footer-legal-row button,
.footer-legal-row a {
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.footer-legal-row button:hover,
.footer-legal-row a:hover {
  color: #bfdbfe;
}

/* Very Bottom Black Bar */
.footer-copyright-bar {
  background-color: var(--footer-dark-bar);
  padding: 18px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright-bar p {
  font-size: 13.5px;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   POP-UP DIALOGS (DISCLAIMER, PRIVACY POLICY, CONTACT PLACEHOLDER)
   Accessible Native Dialog & Overlay
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #0f172a;
  color: #e2e8f0;
  border: 1px solid var(--border-navy);
  border-radius: 4px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 22px 28px;
  background-color: #1e293b;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
}

.modal-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  font-size: 18px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  min-height: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #cbd5e1;
}

.modal-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 24px;
  margin-bottom: 10px;
}

.modal-body p {
  margin-bottom: 16px;
}

.modal-body ul {
  margin-left: 20px;
  margin-bottom: 16px;
}

.modal-body li {
  margin-bottom: 8px;
}

.modal-footer {
  padding: 18px 28px;
  background-color: #0b111e;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   PAGE-SPECIFIC STYLES (SUB-PAGES)
   Consistent Institutional Styling across all 5 destinations
   ========================================================================== */
.page-hero-banner {
  background-color: #07090e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 56px 0 44px;
}

.page-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-breadcrumb {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.page-title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-light-muted);
  max-width: 800px;
  line-height: 1.6;
}

/* Interactive Filter / Tab Bar */
.filter-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 24px;
}

.filter-tab-btn {
  background-color: #11141b;
  color: #94a3b8;
  border: 1px solid #1e293b;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.filter-tab-btn:hover {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

.filter-tab-btn.active {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

/* Page Main Container */
.page-content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 44px 32px 80px;
}

/* ==========================================================================
   PAGE: MORNING BRIEF / NEWS STYLES
   ========================================================================== */
.wire-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wire-card {
  background-color: #0b0e14;
  border: 1px solid #1e293b;
  border-left: 4px solid var(--blue-primary);
  padding: 24px 28px;
  transition: var(--transition-fast);
}

.wire-card:hover {
  border-color: var(--blue-light);
  transform: translateX(3px);
  background-color: #101622;
}

.wire-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wire-category-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background-color: rgba(29, 78, 216, 0.2);
  color: #93c5fd;
  padding: 4px 10px;
  border-radius: 2px;
}

.wire-timestamp {
  font-size: 13px;
  color: #94a3b8;
}

.wire-headline {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  line-height: 1.35;
}

.wire-summary {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 16px;
}

.wire-bullets {
  list-style: disc;
  margin-left: 20px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.wire-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-light);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.18s ease;
}

.wire-read-more:hover {
  color: #ffffff;
  text-decoration: underline;
}

.wire-takeaway-box {
  background-color: rgba(29, 78, 216, 0.08);
  border-left: 3px solid var(--blue-light);
  padding: 12px 18px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

.wire-source-row {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #94a3b8;
}

.wire-source-row a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.wire-source-row a:hover {
  color: #ffffff;
}

.wire-image-box {
  margin: 16px 0 18px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #1e293b;
  background-color: #0b111e;
  max-width: 720px;
}

.wire-image-box img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.wire-image-caption {
  font-size: 12.5px;
  color: #94a3b8;
  padding: 8px 14px;
  background-color: #0e1526;
  border-top: 1px solid #1e293b;
  font-style: italic;
  line-height: 1.4;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

/* ==========================================================================
   PAGE: RESEARCH REPORTS STYLES
   ========================================================================== */
.reports-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  align-items: start;
}

.featured-coverage-card {
  background-color: #0b0e14;
  border: 1px solid #1e293b;
  overflow: hidden;
}

.featured-coverage-banner {
  height: 280px;
  background-color: #0d1e3d;
  position: relative;
}

.featured-coverage-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-coverage-content {
  padding: 32px;
}

.stock-header-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  background-color: #111827;
  padding: 18px;
  border: 1px solid #1e293b;
  margin: 20px 0 24px;
}

.kpi-block {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
}

.kpi-value.positive {
  color: #4ade80;
}

.kpi-value.negative {
  color: #f87171;
}

.report-prose {
  font-size: 15px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.report-prose h4 {
  font-size: 18px;
  color: var(--text-white);
  margin: 24px 0 10px;
}

/* Coverage Pipeline List */
.pipeline-sidebar {
  background-color: #0b0e14;
  border: 1px solid #1e293b;
  padding: 24px;
}

.sidebar-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  border-bottom: 1px solid #1e293b;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.pipeline-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.pipeline-item:last-child {
  border-bottom: none;
}

.pipeline-company-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.pipeline-company-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
}

.pipeline-status-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  background-color: #1e293b;
  color: #94a3b8;
  border-radius: 2px;
}

.pipeline-status-badge.in-progress {
  background-color: rgba(29, 78, 216, 0.25);
  color: #93c5fd;
  border: 1px solid var(--blue-primary);
}

.pipeline-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
}

/* ==========================================================================
   PAGE: FINANCIAL MODELS STYLES & INTERACTIVE DCF
   ========================================================================== */
.models-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.model-card-box {
  background-color: #0b0e14;
  border: 1px solid #1e293b;
  padding: 32px;
}

.model-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.model-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
}

.model-desc {
  font-size: 14.5px;
  color: #94a3b8;
  margin-top: 6px;
}

/* Interactive Calculator Layout */
.dcf-calculator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 20px;
  background-color: #07090e;
  border: 1px solid #1e293b;
  padding: 28px;
}

.calc-controls-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.slider-val-badge {
  color: var(--blue-light);
  font-weight: 700;
}

.slider-input {
  width: 100%;
  accent-color: var(--blue-primary);
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

/* Output Valuation Summary */
.calc-results-col {
  background-color: #0b0e14;
  border: 1px solid var(--border-navy);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.valuation-metric-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.val-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #cbd5e1;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.val-row.highlight {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-white);
  border-bottom: 2px solid var(--blue-primary);
  padding-top: 8px;
}

.fair-value-box {
  background-color: rgba(29, 78, 216, 0.15);
  border: 1px solid var(--blue-primary);
  padding: 16px;
  text-align: center;
  margin-top: 16px;
}

.fair-value-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #93c5fd;
  letter-spacing: 0.05em;
}

.fair-value-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-white);
  margin: 6px 0;
}

.fair-value-upside {
  font-size: 14px;
  font-weight: 700;
  color: #4ade80;
}

/* Tables (Comps & Financial Statements) */
.table-responsive-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid #1e293b;
}

.financial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: right;
  white-space: nowrap;
}

.financial-table th,
.financial-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #1e293b;
}

.financial-table th {
  background-color: #111827;
  color: var(--text-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.financial-table th:first-child,
.financial-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-white);
}

.financial-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   PAGE: PITCH DECK STYLES
   ========================================================================== */
.deck-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0b0e14;
  border: 1px solid #1e293b;
  padding: 14px 24px;
  margin-bottom: 24px;
}

.deck-slide-counter {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.05em;
}

.deck-nav-buttons {
  display: flex;
  gap: 12px;
}

.slide-display-box {
  background-color: #07090e;
  border: 1px solid #1e293b;
  min-height: 480px;
  padding: 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-category-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.slide-main-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 24px;
}

.slide-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.slide-feature-card {
  background-color: #0b0e14;
  border: 1px solid #1e293b;
  padding: 24px;
}

.slide-feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}

.slide-feature-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

.slide-deck-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 20px;
  padding-bottom: 8px;
}

.slide-tab-pill {
  background-color: #0b0e14;
  border: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.slide-tab-pill:hover,
.slide-tab-pill.active {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

/* ==========================================================================
   PAGE: ABOUT STYLES
   Matching Reference Layout, Supplied Assets & Functional Feedback Desk
   ========================================================================== */
.about-hero-showcase {
  background-color: var(--bg-black);
  border-bottom: 1px solid var(--border-dark);
  padding: 0 0 40px;
}

.about-hero-showcase-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.about-image-frame {
  position: relative;
  background-color: #07090e;
  border: 1px solid #1e293b;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.about-showcase-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.about-image-overlay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  background-color: #0b0e14;
  border-top: 1px solid #1e293b;
}

.about-image-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.caption-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  background-color: #D4AF37;
  padding: 4px 10px;
  border-radius: 2px;
}

.caption-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-white);
}

.caption-sub {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
}

.about-sections-grid {
  display: grid;
  grid-template-columns: 1.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.about-article {
  background-color: #0b0e14;
  border: 1px solid #1e293b;
  padding: 40px;
}

.about-article h3 {
  font-size: 24px;
  color: var(--text-white);
  margin: 36px 0 16px;
  position: relative;
}

.about-article h3:first-child {
  margin-top: 0;
}

.about-article p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.section-intro {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* Core Research Pillars (5 Gold Icon Cards) */
.pillars-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 36px;
}

.pillar-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #111827;
  border: 1px solid #1e293b;
  border-left: 4px solid #D4AF37;
  padding: 20px 24px;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  background-color: #131d31;
  border-color: #3b82f6;
  border-left-color: #D4AF37;
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pillar-icon-box {
  width: 50px;
  height: 50px;
  background-color: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
}

.pillar-gold-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.pillar-content h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 6px;
}

.pillar-content p {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 0;
}

/* Standardized 8-Pillar Workflow Steps */
.workflow-steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.workflow-step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: #111827;
  border: 1px solid #1e293b;
  padding: 16px 20px;
  transition: var(--transition-fast);
}

.workflow-step-card:hover {
  border-color: var(--blue-primary);
  background-color: #151e33;
}

.step-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue-light);
  background-color: rgba(29, 78, 216, 0.2);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
  font-family: monospace;
}

.step-info h5 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.step-info p {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 0;
  line-height: 1.55;
}

/* ==========================================================================
   FEEDBACK & INQUIRY FORM (FUNCTIONAL COMPONENT)
   ========================================================================== */
.feedback-card {
  background-color: #0b0e14;
  border: 1px solid #1e293b;
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.feedback-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 20px;
}

.feedback-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D4AF37;
  background-color: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.feedback-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feedback-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 14px;
}

.feedback-dest-tag {
  font-size: 12px;
  background-color: #111827;
  border: 1px solid #1e293b;
  padding: 8px 12px;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 2px;
}

.feedback-dest-tag strong {
  color: #93c5fd;
  font-family: monospace;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.req-star {
  color: #ef4444;
  font-weight: 700;
}

.opt-label {
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
}

.form-control {
  width: 100%;
  background-color: #07090e;
  border: 1px solid #1e293b;
  color: var(--text-white);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 2px;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--blue-light);
  outline: none;
  background-color: #0d121c;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-control::placeholder {
  color: #475569;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.file-drop-area {
  border: 2px dashed #2a384e;
  background-color: #07090e;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 2px;
  position: relative;
}

.file-drop-area:hover,
.file-drop-area:focus-visible,
.file-drop-area.dragover {
  border-color: #D4AF37;
  background-color: rgba(212, 175, 55, 0.05);
  outline: none;
}

.drop-icon {
  margin-bottom: 6px;
}

.drop-text-primary {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.drop-text-secondary {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.selected-file-card {
  margin-top: 10px;
  background-color: #111827;
  border: 1px solid #1e293b;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 2px;
  flex-wrap: wrap;
}

.file-info-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 auto;
}

.file-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.file-size {
  font-size: 11px;
  color: #94a3b8;
}

.btn-remove-file {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-remove-file:hover {
  text-decoration: underline;
  color: #f87171;
}

.field-error-msg {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 5px;
}

.btn-submit-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--blue-primary);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 13px 20px;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition-fast);
  margin-top: 4px;
}

.btn-submit-primary:hover {
  background-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.4);
}

.btn-submit-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: feedbackSpin 0.8s linear infinite;
  display: inline-block;
}

@keyframes feedbackSpin {
  to { transform: rotate(360deg); }
}

.alert-box {
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

.alert-content {
  min-width: 0;
  flex: 1 1 auto;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.alert-icon {
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   Desktop, Tablet, Mobile
   ========================================================================== */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .reports-layout,
  .about-sections-grid,
  .dcf-calculator-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
    height: 70px;
  }
  
  .brand-logo {
    font-size: 18px;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #07090e;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
    border-bottom: 2px solid var(--blue-primary);
  }
  
  .nav-links.mobile-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item a {
    font-size: 18px;
    display: block;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .hero-container {
    padding: 60px 24px;
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-container {
    padding: 0 24px;
  }
  
  .footer-legal-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .market-wrap-header,
  .latest-reports-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .market-wrap-topline {
    flex-direction: column;
    gap: 4px;
  }
  
  .market-wrap-headline {
    padding-left: 0;
    margin-top: 6px;
  }

  /* About Page & Feedback Form Responsive Layouts */
  .page-content-wrapper {
    padding: 32px 18px 60px;
  }

  .about-article {
    padding: 28px 20px;
  }

  .feedback-card {
    padding: 24px 20px;
  }

  /* Prevent iOS Safari automatic zoom on form input focus */
  .form-control {
    font-size: 16px;
  }

  .btn-submit-primary {
    min-height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-content-wrapper {
    padding: 20px 12px 48px;
  }

  .about-article {
    padding: 20px 14px;
  }

  .feedback-card {
    padding: 18px 14px;
  }

  .feedback-title {
    font-size: 18px;
  }

  .feedback-desc {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .file-drop-area {
    padding: 16px 12px;
  }

  .drop-text-primary {
    font-size: 12px;
  }

  .drop-text-secondary {
    font-size: 11px;
  }

  .selected-file-card {
    padding: 8px 10px;
  }

  .btn-submit-primary {
    padding: 12px 14px;
    font-size: 14px;
    min-height: 46px;
  }

  .alert-box {
    padding: 12px 14px;
    font-size: 12.5px;
  }
}

/* ==========================================================================
   PAGE: DEDICATED INSTITUTIONAL REPORT VIEWER
   View-Only Embedded PDF.js Engine with Restricted Export / Print
   ========================================================================== */
.viewer-body {
  background-color: #07090e;
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Print restriction */
@media print {
  body.viewer-body {
    display: none !important;
    visibility: hidden !important;
  }
}

.viewer-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0b0f19;
  border-bottom: 1px solid #1e293b;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.viewer-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.viewer-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #111827;
  color: var(--text-white);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid #1e293b;
  border-radius: 2px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.viewer-back-btn:hover {
  background-color: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
}

.viewer-doc-title {
  display: flex;
  flex-direction: column;
}

.viewer-brand-badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D4AF37;
}

.viewer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 480px;
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.viewer-toolbar-group {
  display: flex;
  align-items: center;
  background-color: #111827;
  border: 1px solid #1e293b;
  border-radius: 2px;
  overflow: hidden;
}

.viewer-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.viewer-btn:hover:not(:disabled) {
  background-color: var(--blue-primary);
  color: #ffffff;
}

.viewer-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.viewer-page-indicator {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  padding: 0 10px;
  font-family: monospace;
  white-space: nowrap;
}

.viewer-zoom-val {
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0 10px;
  font-family: monospace;
  min-width: 48px;
  text-align: center;
}

.viewer-viewmode-btn.active {
  background-color: rgba(29, 78, 216, 0.35);
  color: #93c5fd;
}

.viewer-restricted-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Stage Area where canvases are rendered */
.viewer-stage {
  flex: 1;
  background-color: #07090e;
  padding: 32px 16px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  gap: 28px;
}

.pdf-page-wrapper {
  position: relative;
  background-color: #ffffff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  transition: transform 0.15s ease;
  line-height: 0;
  margin-bottom: 8px;
}

.pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
}

.pdf-page-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
  white-space: nowrap;
}

.page-skeleton {
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}

/* Loading & Error States */
.viewer-loading-box,
.viewer-error-box {
  background-color: #0b0f19;
  border: 1px solid #1e293b;
  padding: 48px 36px;
  text-align: center;
  max-width: 520px;
  margin: 80px auto;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.viewer-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--blue-light);
  border-radius: 50%;
  animation: viewerSpin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes viewerSpin {
  to { transform: rotate(360deg); }
}

.viewer-loading-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.viewer-loading-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .viewer-header {
    padding: 12px 16px;
    gap: 12px;
  }
  .viewer-heading {
    max-width: 280px;
    font-size: 13.5px;
  }
  .viewer-toolbar {
    width: 100%;
    justify-content: space-between;
  }
  .viewer-restricted-badge {
    display: none;
  }
  .viewer-stage {
    padding: 16px 8px 60px;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .viewer-header-left {
    width: 100%;
    justify-content: space-between;
  }
  .viewer-doc-title {
    display: none;
  }
  .viewer-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .viewer-btn {
    padding: 5px 8px;
    font-size: 12px;
  }
  .viewer-page-indicator {
    padding: 0 6px;
    font-size: 12px;
  }
  .viewer-zoom-val {
    padding: 0 4px;
    font-size: 11.5px;
    min-width: 38px;
  }
}

