/* =========================================================
   SHAAGIRD FINANCIAL PAGE
   Branded with Shaagird Teal (#299D8E) & Design System
   Matches Resource Pages (Reports, Documents, Policies)
========================================================= */

:root {
  --financial-teal: #299D8E;
  --financial-teal-dark: #217F74;
  --financial-teal-soft: #E7F5F2;
  --financial-teal-light: #F0F7F5;
  --financial-ink: #173B38;
  --financial-text-muted: #5F716E;
  --financial-border: #DCE9E6;
  --financial-card-bg: #FFFFFF;
}

.m2s-financial-page {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 70px;
  padding: 0 clamp(16px, 3.5vw, 40px);
  color: var(--financial-ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  min-height: 50vh;
}

.m2s-financial-page *,
.m2s-financial-page *::before,
.m2s-financial-page *::after {
  box-sizing: border-box;
}

/* Background subtle pattern */
.m2s-financial-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(41, 157, 142, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 157, 142, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 75% 20%, rgba(41, 157, 142, 0.08), transparent 32%),
    linear-gradient(180deg, #FFFFFF 0%, #F5FAF9 100%);
  background-size: 44px 44px, 44px 44px, auto, auto;
}

/* Hero Panel */
.m2s-hero-panel {
  position: relative;
  width: 100%;
  margin: 28px auto 0;
  min-height: 220px;
  padding: clamp(28px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--financial-border);
  border-top: 5px solid var(--financial-teal);
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(231, 245, 242, 0.88)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 60px rgba(23, 59, 56, 0.08);
  backdrop-filter: blur(20px);
}

.m2s-hero-panel::after {
  content: "";
  position: absolute;
  right: clamp(24px, 5vw, 68px);
  top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  width: 90px;
  height: 90px;
  border: 1px solid rgba(41, 157, 142, 0.2);
  border-radius: 50%;
  background:
    url("https://shaagird.org/shaagird-logo.svg") center / 56px 56px no-repeat,
    var(--financial-teal-soft);
  box-shadow:
    0 16px 30px rgba(41, 157, 142, 0.18),
    inset 0 0 0 10px #FFFFFF,
    inset 0 0 0 12px rgba(41, 157, 142, 0.25);
  pointer-events: none;
}

.m2s-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--financial-teal);
}

.m2s-hero-panel h1 {
  max-width: calc(100% - 140px);
  margin: 0 0 12px;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--financial-ink);
}

.m2s-hero-panel p:not(.m2s-kicker) {
  max-width: min(1000px, calc(100% - 120px));
  margin: 0;
  color: #31504D;
  font-size: clamp(14px, 1.2vw, 15.5px);
  line-height: 1.7;
}

/* Blank content container ready for future UI */
.m2s-financial-content {
  margin-top: 40px;
  min-height: 150px;
}

@media (max-width: 860px) {
  .m2s-hero-panel::after {
    display: none;
  }

  .m2s-hero-panel h1 {
    max-width: 100%;
  }

  .m2s-hero-panel p:not(.m2s-kicker) {
    max-width: 100%;
  }
}

@media (max-width: 580px) {
  .m2s-financial-page {
    padding: 0 14px;
    margin-bottom: 50px;
  }

  .m2s-hero-panel {
    padding: 24px 20px !important;
    margin-top: 18px;
  }

  .m2s-hero-panel h1 {
    font-size: 32px;
  }
}
