/* =================================================================
   TABLE OF CONTENTS
   1. Variables (:root)
   2. Reset & Global Basics
   3. Layout & Utilities (.page-wrap, .meta-bar)
   4. Header & Navigation
   5. Hero Section
   6. Dashboard & KPI Cards (Neumorphic)
   7. Charts & Graphs
   8. Story / Article Blocks
   9. SDG Section & Toggles
   10. Footer
   ================================================================= */

/* =================================================================
   1. VARIABLES
   ================================================================= */
:root {
  /* Glass Theme */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --accent-color: #ffffff;
  --ios-bg: #f9fafb;
  --ios-text-primary: #111827;

  /* Neumorphic / Bento Theme */
  --bg-soft: #f0f0f3;
  --text: #1d1d1f;
  --muted: #8e8e93;
  --accent-blue: #4d69ff;
  --accent-purple: #7b61ff;
  --stroke: rgba(0, 0, 0, 0.06);

  /* Shadows */
  --neo-out: -10px -10px 20px #ffffff, 10px 10px 20px rgba(174, 174, 192, 0.4);
  --neo-in:
    inset -10px -10px 20px #ffffff,
    inset 10px 10px 20px rgba(174, 174, 192, 0.4);

  /* Spacing & Radius */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --radius-lg: 32px;
  --radius-md: 24px;
}

@media (max-width: 1024px) {
  :root {
    --s-1: 6px;
    --s-2: 12px;
    --s-3: 18px;
    --s-4: 24px;
  }
}

@media (max-width: 480px) {
  :root {
    --radius-lg: 24px;
    --radius-md: 18px;
  }
}

/* =================================================================
   2. RESET & GLOBAL BASICS
   ================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ios-text-primary);
  background-color: var(--ios-bg);
  line-height: 1.5;
  overflow-x: hidden; /* Critical for mobile */
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
}

/* =================================================================
   3. LAYOUT & UTILITIES
   ================================================================= */
/* The "Symmetry Fix" - Center Wrapper */
.page-wrap {
  width: 100%;
  padding: 56px 20px;
  margin: 0 auto;
}

/* Center these blocks specifically */
.intro-block,
.dash-head,
.dash-grid,
.sdg,
.meta-bar,
.story-wrap {
  width: 100%;
  max-width: 1100px; /* Golden Number */
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1280px) {
  .page-wrap,
  .site-footer,
  .main-nav,
  .hero-inner {
    max-width: 1200px;
  }
}

@media (max-width: 1024px) {
  .page-wrap {
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .page-wrap {
    padding: 32px 20px;
  }
}

@media (max-width: 360px) {
  .page-wrap {
    padding: 20px 12px;
  }
}

/* Meta Bar (Filters/Dropdowns area) */
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 3rem;
  font-size: 0.875rem;
  color: #4b5563;
  position: relative;
}

.meta-item {
  position: relative;
}

.meta-body {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 100;
  width: 300px;
  min-width: 250px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  font-size: 0.85rem;
  color: #374151;
}

@media (max-width: 600px) {
  .meta-body {
    width: 90vw;
    max-width: 300px;
    left: 0;
  }
}

/* =================================================================
   4. HEADER & NAVIGATION
   ================================================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1.1rem 0;
  background: transparent !important;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(121, 121, 121, 0.13),
    rgba(10, 12, 14, 0.13)
  );
  backdrop-filter: blur(18px) saturate(105%);
  -webkit-backdrop-filter: blur(18px) saturate(105%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  z-index: -1;
}

.main-nav {
  background: transparent !important;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  cursor: default;
  color: #fff;
  flex-shrink: 0;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a {
  font-size: 1.15rem;
  text-decoration: none;
  color: #cfcfcf;
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: width 0.18s ease;
}

.nav-links > li > a:hover {
  color: #ffffff;
}
.nav-links > li > a:hover::after,
.nav-links > li > a:focus-visible::after,
.nav-links > li > a.is-active::after,
.nav-parent.active::after {
  width: 100%;
}

/* Dropdowns */
.has-dropdown {
  position: relative;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-parent::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.7;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}
.has-dropdown.is-open .nav-parent::after {
  transform: rotate(-180deg);
  opacity: 1;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  list-style: none;
  background: radial-gradient(
    circle at top left,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.85)
  );
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: top;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 999999 !important;
}

.has-dropdown.is-open .dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown li {
  margin: 2px 0;
}
.dropdown li a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 8px 10px;
  font-size: 0.9rem;
  border-radius: 999px;
  color: #020617;
  opacity: 0;
  transition: all 0.18s ease;
}
.has-dropdown.is-open .dropdown li a {
  opacity: 1;
}
.dropdown li a:hover {
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.dropdown li a.active-sub {
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
}

/* Language Switcher */
.lang-switcher-wrapper {
  margin-left: 10px;
  display: flex;
  align-items: center;
}
.lang-toggle-container {
  background-color: rgba(118, 118, 128, 0.12);
  border-radius: 999px;
  padding: 2px;
  display: flex;
}
.lang-option {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  border-radius: 999px;
}
.lang-option.active {
  background: #fff;
  color: #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* NAV RESPONSIVE */
@media (min-width: 900px) and (max-width: 1150px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-links > li > a {
    font-size: 0.95rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0.8rem 0;
  }
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
  }
  .logo {
    text-align: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    justify-content: center; /* Center links */
    flex-wrap: wrap;
    gap: 12px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links > li > a {
    font-size: 0.95rem;
    padding: 6px 0;
  }

  .lang-switcher-wrapper {
    flex-basis: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    margin-left: 4px;
  }

  /* Dropdown Mobile Fix */
  .dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    transform-origin: top center;
    position: fixed !important;
    top: 150px; /* Safe distance */
    width: 90vw;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.98);
  }
  .has-dropdown.is-open .dropdown {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  .dropdown li a {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .nav-links {
    gap: 8px 12px;
  }
  .nav-links > li > a {
    font-size: 0.85rem;
  }
}

/* =================================================================
   5. HERO SECTION (CENTERED & SMALLER)
   ================================================================= */
.hero-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center; /* Vertical center */
  justify-content: center; /* Horizontal center */
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
}

/* --- Video Background --- */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

/* --- The Container --- */
.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1000px; /* Slightly tighter container for centered look */
  padding: 0 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  text-align: center; /* Center text alignment */
  justify-content: center;
}

.hero-text-content {
  max-width: 800px;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  /* CHANGED: Made smaller (was 5rem max, now 4rem max) */
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(90deg, #fff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  /* Critical for centering the block of text */
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero-viewport {
    min-height: 100svh; /* Better support for mobile browsers */
  }

  .hero-title {
    /* Even smaller on mobile for neatness */
    font-size: 2.5rem;
  }
}

/* iPhone 11/15 and similar */
@media (max-width: 430px) {
  .hero-viewport {
    /* remove the pull-up trick that causes overlap */
    margin-top: 0 !important;
    padding-top: 0 !important;

    /* mobile Safari friendly height */
    height: 100svh !important;
    min-height: 100svh !important;

    /* we will place content manually */
    align-items: flex-start !important;
  }

  .hero-inner {
    /* push the whole block down below the header */
    padding-top: calc(120px + env(safe-area-inset-top) + 8svh) !important;
  }
}

@media (max-width: 430px) {
  /* keep video full cover */
  .video-container,
  .hero-bg-video {
    top: 0 !important;
  }

  /* stop centering the text */
  .hero-inner {
    justify-content: flex-start !important;
  }

  /* push JUST the text block down */
  .hero-text-content {
    margin-top: 18svh !important; /* try 18svh -> 22svh */
    transform: none !important; /* overrides fadeUp starting transform */
  }
}

/* =================================================================
   6. DASHBOARD & KPI CARDS (NEUMORPHIC)
   ================================================================= */
.page-climate-change {
  background: #f9fafb;
}

.intro-block {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Left gets more space */
  gap: 40px;
  align-items: start;
  margin-bottom: 80px;
}

.intro-left h2 {
  margin: 0 0 var(--s-2);
  color: var(--text);
  letter-spacing: -0.02em;
  font-size: 1.65rem;
}
.lede {
  margin: 0 0 var(--s-3);
  color: rgba(29, 29, 31, 0.82);
  line-height: 1.6;
  max-width: 66ch;
}

/* Tags */
.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}
.tag {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  box-shadow: var(--neo-out);
  border: 1px solid var(--stroke);
  font-size: 0.8rem;
  color: rgba(29, 29, 31, 0.75);
}

/* Dashboard Header */
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  padding: 0 20px;
}
.dash-head h2 {
  margin: 0 0 var(--s-1);
  color: var(--text);
  letter-spacing: -0.02em;
  font-size: 1.75rem;
}
.sub {
  margin: 0;
  color: rgba(29, 29, 31, 0.68);
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.kpi-card {
  background: var(--bg-soft);
  box-shadow: var(--neo-out);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: all 0.3s ease-in-out;
}
.kpi-card:hover {
  box-shadow: var(--neo-in);
  transform: translateY(-1px);
}
.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.kpi-title,
.kpi-pill {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  box-shadow: var(--neo-in);
  border: 1px solid var(--stroke);
}
.kpi-value {
  font-size: clamp(2rem, 2.8vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Bento Grid */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.dash-grid .card:last-child {
  grid-column: 1 / -1;
}

.card {
  background: var(--bg-soft);
  box-shadow: var(--neo-out);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: all 0.3s ease-in-out;
}
.card:hover {
  box-shadow: var(--neo-in);
}
.card-head h3 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

/* Controls (Dropdowns/Buttons) */
.controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.control label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.control select {
  appearance: none;
  border: 1px solid var(--stroke);
  background: var(--bg-soft);
  box-shadow: var(--neo-in);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  min-width: 120px;
  transition: all 0.3s;
}
.btn {
  border: 1px solid var(--stroke);
  background: var(--bg-soft);
  box-shadow: var(--neo-out);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
}
.btn:hover {
  box-shadow: var(--neo-in);
  transform: translateY(-1px);
}

/* COMPONENT RESPONSIVE */
@media (max-width: 1100px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .intro-block {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  .dash-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .control select {
    width: 100%;
    min-width: auto;
  }
  .control {
    width: 100%;
  }
}

/* =================================================================
   7. CHARTS & GRAPHS
   ================================================================= */
.chart-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
}
.card-wide .chart-wrap {
  height: 420px;
}
.chart-wrap.chart-small {
  height: 320px;
}
.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

@media (max-width: 900px) {
  .card-wide .chart-wrap {
    height: 300px;
  }
  .chart-wrap.chart-small {
    height: 260px;
  }
}

/* =================================================================
   8. STORY / ARTICLE BLOCKS
   ================================================================= */
.story-block {
  margin-top: 44px;
}
.story-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.story-head h2 {
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  font-weight: 850;
  color: #111827;
}
.story-lede {
  max-width: 72ch;
  color: rgba(17, 24, 39, 0.75);
  line-height: 1.65;
  font-size: 1.02rem;
}

.story-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.story-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 14px 0 18px;
}

.story-section > h2 {
  font-size: clamp(1.45rem, 1.9vw, 1.7rem);
  font-weight: 850;
  color: #111827;
  margin-bottom: 12px;
}
.story-section > p {
  max-width: 78ch;
  color: rgba(17, 24, 39, 0.78);
  line-height: 1.65;
  font-size: 1.01rem;
  margin-bottom: 14px;
}

.story-list,
.story-bullets,
.story-metrics {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: rgba(17, 24, 39, 0.8);
}
.story-takeaway {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(77, 105, 255, 0.16);
  background: rgba(77, 105, 255, 0.06);
  color: rgba(17, 24, 39, 0.88);
}
.story-warning {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.08);
  color: rgba(17, 24, 39, 0.9);
}

.closing-note {
  margin-top: 28px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

@media (max-width: 900px) {
  .story-grid-2 {
    grid-template-columns: 1fr;
  }
  .story-card {
    padding: 18px;
  }
  .story-wrap {
    max-width: 100%;
  }
}

/* =================================================================
   9. SDG SECTION & TOGGLES
   ================================================================= */
.sdg {
  margin-top: 64px;
  margin-bottom: 64px;
}

.sdg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.sdg-grid .card-wide {
  grid-column: 1 / -1;
}

.kpi-big {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.sexy-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.sexy-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

/* Overlay Modal */
.sdg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sdg-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.sdg-modal-card {
  background: #0f172a;
  color: white;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 24px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.sdg-overlay.active .sdg-modal-card {
  transform: translateY(0);
}
.close-x {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* FAB & Panel */
.sdg-toggle-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.sdg-fab {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: #1e293b;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.4s;
  z-index: 2;
}
.sdg-fab:hover {
  transform: scale(1.1) rotate(5deg);
  background: #334155;
}
.icon-close {
  display: none;
}
.active .icon-open {
  display: none;
}
.active .icon-close {
  display: block;
}

.sdg-content-panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
}
.active .sdg-content-panel {
  width: 300px;
  height: auto;
  min-height: 200px;
  opacity: 1;
  padding: 20px;
  bottom: 70px;
}

@media (max-width: 900px) {
  .sdg-grid {
    grid-template-columns: 1fr;
  }
  .sdg-grid .card-wide {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .sdg-modal-card {
    width: 95%;
    padding: 20px;
  }
  .sexy-btn {
    width: 100%;
    text-align: center;
  }
}

/* =================================================================
   10. FOOTER
   ================================================================= */
.site-footer {
  max-width: 1160px;
  margin: 64px auto 2.5rem; /* Centered, fixed top margin */
  padding: 1.75rem 1.5rem 0;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  color: #4b5563;
  text-align: left;
}
.site-footer p {
  margin: 0;
}
.site-footer small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #9ca3af;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-footer {
    text-align: center;
    margin-top: 3rem;
  }
}
@media (max-width: 480px) {
  .site-footer {
    margin-top: 3rem;
    padding: 1.5rem 1rem;
  }
}
