* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #6d3f22;
}

  /* ==========================
   HOME PAGE TYPOGRAPHY
========================== */

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
button,
input,
select,
textarea,
strong {
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
}



.app {
  display: flex;
  width: 100%;
  max-width: 1800px;

  min-height: auto;
  height: auto;

  margin: 0 auto;
  padding: 18px;
  gap: 18px;

  align-items: stretch;
}
body{

    font-family:"Segoe UI",Arial,sans-serif;

    margin:0;

    position:relative;

    overflow-x:hidden;

}

#background-video{

    position:fixed;

    top:0;
    left:0;
    inset:0;

    width:100vw;
    height:100vh;

    object-fit:cover;

    z-index:-10;

    pointer-events:none;

}

.app{

    display:flex;

    min-height:100vh;

    padding:18px;

    gap:18px;

    position:relative;

    z-index:10;

}

body.why-body .app{

    background:
        linear-gradient(
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.08)
        ),
        url("../backgrounds/why-background.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 34px;
}




.sidebar {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;

  height: auto;
  min-height: 0;
  align-self: stretch;

  background: rgba(255, 255, 255, 0.511);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 34px;
  padding: 28px 22px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 35px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color:#9b3400;
  font-family:Calibri, "Segoe UI", Arial, sans-serif;
    font-size:70px;
    font-weight:700;
}

.nav-link img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-link:hover,
.nav-link.active {
  background: #b9dafb;
  color: #0964c8;
}

.daily-tip {
  text-align: center;
  padding: 10px;
  margin-top: auto;
}

.daily-tip h3 {
  color: #2c7fe3;
  font-size: 22px;
  margin-bottom: 12px;
}

.daily-tip p {
  font-size: 15px;
  line-height: 1.5;
}

.main-content {
  flex: 1;
  padding:16px;
}

.hero {
  position: relative;

  width: 100%;
  height: clamp(340px, 38vw, 520px);

  border-radius: 28px 28px 0 0;
  overflow: hidden;

  background-image:
    linear-gradient(
      rgba(219, 237, 255, 0.779),
      rgba(215,235,255,.18)
    ),
    url("../backgrounds/hero-bg.jpg");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  padding: clamp(24px, 3vw, 38px);
}

.hero-skyline{

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:700px;          /* extends behind dashboard */

    object-fit:cover;

    object-position:center bottom;

    z-index:1;

    pointer-events:none;
}

.hero-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(255,255,255,.22),
    );

    z-index:2;

}

.hero-content{

    position:relative;

    z-index:30;

    height:100%;

    display:flex;

    justify-content:space-between;

    align-items:flex-start;
    padding:30px 50px 80px;

}

.hero-text {
  padding-top:10px;
  padding-left:12px;
}

.hero-text h2 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
 font-size:40px;
  font-weight:900;
  margin:0 10 10px;
  padding-top:30px;
}

.hero-text h1 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size:65px;
  line-height:1.15;
  color: #0329a4;
  font-weight:1200;
  margin:0 10 10px;
  padding-bottom:8px;
}



.hero-sun {
  position: absolute;
  width: 135px;
  top: -0.5px;
  right: 430px;
  left: auto;
  z-index: 2;
}

.hero-meta{
    display:flex;
    gap:40px;

    align-items:center;

    font-size:20px;
    font-weight:700;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.dashboard-panel {
  background: rgb(255, 255, 255);
  margin-top: -70px;
  border-radius: 38px 38px 26px 26px;
  padding: 28px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  width: 96%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  z-index:10;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom:28px;
}

.info-card {
    background: rgb(255, 255, 255);
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);

    min-height: 440px;

    display: flex;
    flex-direction: column;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}

.card-title img {
  width: 34px;
}

.card-title h2 {
     font-family:Calibri, "Segoe UI", Arial, sans-serif;
    font-size:24px;
    font-weight:700;
}

.orange-title {
  background: #F5A25C;
}

.green-title {
  background: #A9DDBB;
}

.blue-title {
  background: #AFCDF2;
}

.temperature-body {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
}

.weather-main-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-top: 12px;
}

.temperature-body h3 {
  font-size: 58px;
  color: #C1501A;
}

.temperature-body p {
  font-size: 20px;
  font-weight: 700;
}

.status-text {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
 
}

.orange-text {
  color: #D96B30;
}

/* ================= WEATHER SUMMARY ================= */

.weather-summary{
    margin:18px 0 22px;
    padding:14px 16px;

    background:#FFF8E8;

    border-left:5px solid #D96B30;
    border-radius:12px;

    font-size:15px;
    line-height:1.5;
}

.weather-summary h4{
    margin:0 0 6px;

    font-size:16px;
    font-weight:700;

    color:#D96B30;
}

.weather-summary p{
    margin:0;

    color:#444;

    font-size:15px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;

   margin-top:auto;
}

.mini-card,
.pollutant-card{

    border-radius:14px;

    padding:8px 5px;

    text-align:center;

    min-height:80px;

    font-size:15px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

}

.mini-card{

    border:2px solid #F5A25C;

}

.pollutant-card{

    border:2px solid #2E9E6B;

}

.mini-card strong{

    display:block;
    margin-top:8px;

    font-size:20px;
    font-weight:800;

    color:#C1501A;
}

.pollutant-card strong{

    display:block;

    margin-top:6px;

    font: size 20px;

    font-weight:800;

    color:#1F7A4D;
}

.pollutant-card{

    font-size:16px;
}

.pollutant-card small{

    display:block;

    font-size:11px;

    color:#666;

    margin-top:2px;
}

.air-body{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    margin:20px 0;
    text-align:center;
}

#aqi-category{

    font-size:24px;

    font-weight:800;

    line-height:1.25;

    color:#1F7A4D;

    text-align:center;
}

.air-body h3 {
  font-size: 26px;
  font-weight:700;
}

.air-body h4 {
  font-size: 40px;
  margin:5px 0;
  color: #1F7A4D;
}

#aqi-message{

    font-size:15px;

    line-height:1.55;

    color:#555;

    max-width:300px;

    margin:8px auto 0;
}

.pollutant-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:8px;

    margin-top:auto;

    align-items:start;
}
.pollutant-grid[hidden]{
    display:none;
}

.air-toggle{
    display:flex;
    gap:8px;
    margin-top:12px;
    margin-bottom:4px;
}
 
.air-toggle-btn{
    flex:1;
    padding:8px 10px;
    border-radius:10px;
    border:1px solid #2E9E6B;
    background:#fff;
    color:#1F7A4D;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}
.air-toggle-btn.active{
    background:#2E9E6B;
    color:#fff;
}

.glance-list {
  display: flex;
  flex-direction: column;
  gap: 20px;

  margin-top:25px;
}

.glance-row {
  display: grid;
  grid-template-columns: 46px 1fr 70px 42px;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 700;
}

.glance-row strong {
  text-align: right;
  font-weight: 900;
}

.glance-row img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.glance-row .temp{
    text-align:right;
    font-weight:800;
}

.glance-row .mood{
    display:flex;
    justify-content:center;
    align-items:center;
}


.footer-logos img {
  max-height: 90px;
  max-width: 200px;
  object-fit: contain;
}
.aqi-wrap{
    position:relative;
    width:150px;
    height:150px;
    flex-shrink:0;
}

#canvas-preview{
    width: 250px;
    height:250px;
}

.aqi-gauge {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.aqi-wrap span {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  font-size: 54px;
  font-weight: 900;
  color: #1F7A4D;
}

.dominant-info{

    margin-top:12px;

    padding-top:12px;

    border-top:1px solid #ececec;

    text-align:center;

    font-size:14px;

    color:#555;
}

.dominant-info strong{

    color:#1F7A4D;

    font-weight:700;
}
.nav-link{
    transition:.25s;
}

.nav-link:hover{
    transform:translateX(8px);
}










.about-page {
  flex: 1;

  /* Transparent white overlay */
  background: rgba(255, 255, 255, 0.144);

  /* Frosted glass effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 28px;
  padding: 30px;

  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}


/* ==========================
   ABOUT PAGE TYPOGRAPHY
========================== */

.about-body,
.about-body h1,
.about-body h2,
.about-body h3,
.about-body h4,
.about-body h5,
.about-body h6,
.about-body p,
.about-body span,
.about-body a,
.about-body button,
.about-body strong,
.about-body input,
.about-body select,
.about-body textarea {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
}





.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: 220px;
  overflow: hidden;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.what-we-do {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 30px;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  box-shadow: none;

 color: #163A5F;

  line-height: 1.6;
}


.what-we-do h2 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 50px;
   color: #000000;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}



.what-we-do p {
  color: #000000;
  font-size: 32px;
  line-height: 1.6;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  gap: 18px;
}

.service-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.service-item h3 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
  margin-top: 10px;
}

.about-text {
  margin-top: 65px;
  margin-left: 40px;
  margin-right: 40px;

 color: #000000;
   font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.about-text p {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  margin-bottom: 22px;
}

.about-gallery-slider {
  position: relative;
  width: 100%;
  height: 700px;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}

.about-gallery-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.2s ease-in-out, transform 4s ease;
}

.about-gallery-slider .slide.active {
  opacity: 1;
  transform: scale(1);
}

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  background: rgba(255,255,255,0.45);
  padding: 8px 12px;
  border-radius: 20px;
}

.dot {
  width: 11px;
  height: 11px;
  background: white;
  border: 2px solid #222;
  border-radius: 50%;
}

.active-dot {
  background: #2aa8e8;
}

.program-section {
  margin-top: 40px;
}

.program-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 50px;

  margin-bottom: 50px;
  padding: 35px 45px;

       background: rgba(250, 237, 225, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 28px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.program-logos img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.video-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 50px;
  width: 100%;
}

.video-card {
  position: relative;
  overflow: hidden;
  background: rgba(250, 237, 225, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  text-align: center;
}

/* Make sure decorative layers do not block the video */
.video-card::before,
.video-card::after {
  pointer-events: none;
}

.video-card video {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 240px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  pointer-events: auto;
  background: #000;
}

.video-card h3 {
  position: relative;
  z-index: 2;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  margin: 18px 10px 12px;
  font-size: 24px;
  font-weight: 700;
}

/* =====================================================
   ABOUT PAGE — MACBOOK + TABLET RESPONSIVE
===================================================== */


/* =====================================================
   MACBOOK / SMALL LAPTOP
   1101px — 1500px
===================================================== */

@media screen and (min-width: 1101px) and (max-width: 1500px) {

  .about-page {
    width: 100%;
    min-width: 0;

    padding: 24px;
  }

  .about-gallery-slider {
    height: 520px;
  }

  .what-we-do {
    padding: 24px;
  }

  .what-we-do h2 {
    font-size: 42px;
    margin-bottom: 24px;
  }

  .what-we-do p {
    font-size: 24px;
    line-height: 1.5;
  }

  .service-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .service-item img {
    width: 82px;
    height: 82px;
  }

  .service-item h3 {
    font-size: 18px;
  }

  .about-text {
    margin-top: 45px;
    margin-left: 24px;
    margin-right: 24px;

    font-size: 21px;
  }

  .program-logos {
    gap: 30px;

    padding: 28px 32px;
  }

  .program-logos img {
    max-height: 190px;
  }

  .video-card-row {
    gap: 18px;
    padding-top: 35px;
  }

  .video-card video {
    height: 210px;
  }

  .video-card h3 {
    font-size: 21px;
  }
}


/* =====================================================
   IPAD / TABLET
   701px — 1100px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  .about-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 20px;

    border-radius: 24px;
  }

  /* Gallery */

  .about-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 170px;
  }

  .about-gallery-slider {
    width: 100%;
    height: 430px;

    border-radius: 22px;
  }


  /* What We Do */

  .what-we-do {
    padding: 20px 10px;
  }

  .what-we-do h2 {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .what-we-do p {
    font-size: 21px;
    line-height: 1.5;
  }


  /* Services */

  .service-row {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 24px 18px;
  }

  .service-item img {
    width: 78px;
    height: 78px;
  }

  .service-item h3 {
    font-size: 18px;
  }


  /* About text */

  .about-text {
    margin-top: 40px;
    margin-left: 10px;
    margin-right: 10px;

    font-size: 20px;
    line-height: 1.5;
  }


  /* Program logos */

  .program-logos {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 24px;

    padding: 26px;
  }

  .program-logos img {
    width: 100%;
    max-height: 160px;
  }


  /* Video cards */

  .video-card-row {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 18px;
    padding-top: 30px;
  }

  .video-card {
    min-width: 0;
  }

  .video-card video {
    height: 220px;
  }

  .video-card h3 {
    font-size: 20px;
  }
}


/* =====================================================
   IPAD PORTRAIT
   701px — 850px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 850px) {

  .about-page {
    padding: 16px;
  }

  .about-gallery-slider {
    height: 360px;
  }

  .what-we-do h2 {
    font-size: 34px;
  }

  .what-we-do p {
    font-size: 19px;
  }

  .service-row {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .service-item img {
    width: 72px;
    height: 72px;
  }

  .program-logos {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .program-logos img {
    max-height: 135px;
  }

  .video-card-row {
    grid-template-columns: 1fr;
  }

  .video-card video {
    height: 320px;
  }

  .about-text {
    font-size: 18px;
  }
}





.why-page {
  position: relative;
  isolation: isolate;

  flex: 1 1 auto;
  width: calc(100% - 298px);
  min-width: 0;
  max-width: 1500px;

  background: transparent;
  overflow: hidden;
}


/* Hero photograph */
.why-hero {
  position: relative;
  z-index: 0;

  width: 100%;
      width:100%;
    height:clamp(280px,45vw,520px);
    min-height: 320px;
  box-sizing: border-box;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.35)
    ),
    url("../why-care-page/head-image.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Keep the hero heading above the wave */
.why-hero-text {
  position: relative;
  z-index: 3;
  
  padding-top:50px;
  padding-left:12px;
}


.why-page-wave-bg {
  position: absolute;

top: clamp(285px, 29vw, 450px);
left: clamp(12px, 2.5vw, 45px);
right: clamp(12px, 2.5vw, 45px);
  bottom: 0;

  z-index: 1;
  pointer-events: none;

  border-radius:38px;

  background: rgba(255, 255, 255, 0.372);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

    border:1px solid rgba(255,255,255,.45);

    box-shadow:
        0 12px 35px rgba(0,0,0,.10),
        inset 0 1px 0 rgba(255,255,255,.35);
}



/* All page content sits above the green background */
.health-section,
.justice-section,
.equity-section,
.affected-section,
.footer-logos {
  position: relative;
  z-index: 2;
}


.why-content{
    width:100%;
    max-width:1600px;

    margin:0 auto;

    padding:0 clamp(20px,3vw,55px) 70px;

    box-sizing:border-box;
}


.why-hero h2 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;

  margin: 0 10px 10px;
  max-width: 600px;
  
    padding-left:1px;
  padding-bottom:1px;
}



.why-hero h1 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 65px;
  line-height: 1.15;
  color:#9b3400;
  font-weight: 1200;

  margin: 0 0 10px 10px;

  width: 1000px;
  max-width: 100%;

 padding-left:1px;

}




.health-section {
  position: relative;
  z-index: 2;

  width:100%;
  margin: -70px auto 80px;
  padding: 45px 55px 55px;

  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;

  box-sizing: border-box;
}



.health-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;

  background: transparent;
  border-radius: 0;
  box-shadow: none;

  box-sizing: border-box;
}

.health-content {
  position: relative;
  z-index: 2;
}

.health-content h2 {
   font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: #872d00;
  font-size: 40px;
  margin: 0 0 12px;
  padding-top: 45px;
}

.health-content h3 {
   font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 24px;
  margin: 0 0 30px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.health-item {
  min-width: 0;
  min-height: 185px;
  padding: 22px 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;

  text-align: center;

  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;

  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.07);
  box-sizing: border-box;
}

.health-item img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}

.health-item p {
  margin: 0;
  color: #222;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.health-body {
  position: absolute;
  right: 24px;
  top: 70px;
  z-index: 1;

  width: 220px;
  height: auto;

  object-fit: contain;
  opacity: 0.08;
  pointer-events: none;
}

@media (max-width: 1000px) {
  .health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .health-body {
    width: 190px;
  }
}


@media (max-width: 600px) {
  .health-grid {
    grid-template-columns: 1fr;
  }

  .health-item {
    min-height: 180px;
  }

  .health-body {
    display: none;
  }
}




.justice-section {
  position: relative;
  z-index: 2;

  margin:70px 0 40px;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  column-gap: 55px;
  align-items: center;
}

.justice-text h2 {
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.18;
    color: #2268a8;
    text-align: left;
}

.equity-text h2 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 60px;
  line-height: 1.18;
  font-weight: 700;
  color: #2268a8;
  text-align: center;
}

.affected-text h2 {
    font-family: Calibri, "Segoe UI", Arial, sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.18;
    color: #2268a8;
    text-align: center;
}

.justice-text span {
  color: #872d00;
  font-weight: 700;
}

.justice-map-card {
  position: relative;
  width: 100%;
   height:clamp(320px,50vw,520px);

  background: #fff9ec;
  border-radius: 10px;
  overflow: hidden;

  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}


.justice-map-card .vulnerability-map-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.justice-map-card #heatVulnerabilityMap {
  width: 100%;
  height: 100%;
}


.justice-source {
   font-family: Calibri, "Segoe UI", Arial, sans-serif;
  margin: 18px 4px 0;
  font-family: "Courier New", monospace;
  font-size: 16px;
  line-height: 1.35;
}


.justice-map-column {
  min-width: 0;
}


.justice-map-column,
.equity-map-column {
  position: relative;
  z-index: 3;
  min-width: 0;
}



@media (max-width: 1000px) {
  .justice-section {
    grid-template-columns: 1fr;
    row-gap: 30px;
    margin: 55px 30px 40px;
  }

  .justice-source {
    grid-column: 1;
  }

  .justice-map-card {
    height: 480px;
    border-radius: 45px;
  }
}

@media (max-width: 650px) {
  .justice-section {
    margin: 40px 18px 30px;
  }

  .justice-text h2 {
    font-size: 40px;
  }

  .justice-map-card {
    height: 400px;
    border-radius: 30px;
  }

  .justice-source {
    font-size: 15px;
  }
}





/* ===========================
   EQUITY SECTION
=========================== */

/* =====================================================
   INTERACTIVE NEWARK HEAT MAP
===================================================== */

.equity-section {
    width:100%;
    margin:80px 0 40px;
     display:grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    gap:50px;

    align-items:center;

   

}

.equity-map-column {
       width: 100%;
       min-width: 0;
}


.equity-text{
      width: 100%;
      max-width: 520px;
}


.equity-text h2 {
    margin: 0;
    line-height: 1.15;
}


.equity-text span{
    color: #872d00;
    font-weight:700;
}


.equity-text p{
    margin-top:30px;

    font-size:22px;
    line-height:1.7;

    color:#333;
}


.equity-map-card {
    position: relative;
    width: 100%;
    height: clamp(320px, 50vw, 580px);
    overflow: hidden;
    background: #e8edf0;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

/*
The map must have an explicit height.
Without this, ArcGIS cannot display the map.
*/
#newarkHeatMap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Map loading message */

.heat-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 8;
    transform: translate(-50%, -50%);
    padding: 11px 18px;
    border-radius: 30px;
    background: rgba(28, 48, 62, 0.92);
    color: #ffffff;
    font-size: 14px;
    pointer-events: none;
}

.heat-map-loading.hidden {
    display: none;
}

/* Controls over the map */

.heat-map-toolbar {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 7;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 12px 16px;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.17);
    backdrop-filter: blur(8px);
}

.heat-layer-control,
.heat-opacity-control {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #353a3d;
    font-size: 13px;
    font-weight: 700;
}

.heat-layer-control input {
    width: 17px;
    height: 17px;
    accent-color: #dc6427;
}

.heat-opacity-control input {
    width: 130px;
    accent-color: #dc6427;
}

/* Heat legend */



.heat-map-legend h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.heat-gradient {
  width: 100%;
  height: 10px;
  border-radius: 10px;

  background: linear-gradient(
    to right,
    #2448a4 0%,
    #52a6c8 22%,
    #74c69d 40%,
    #f1db57 60%,
    #ee8a35 80%,
    #bf3034 100%
  );
}

.heat-legend-labels {
  display: flex;
  justify-content: space-between;

  margin-top: 5px;

  color: #63696d;
  font-size: 10px;
  font-weight: 700;
}

.heat-map-legend p {
    margin: 9px 0 0;
    color: #737a7f;
    font-size: 11px;
    line-height: 1.45;
}

.equity-source {
   font-family: Calibri, "Segoe UI", Arial, sans-serif;
  margin: 18px 4px 0;
  font-family: "Courier New", monospace;
  font-size: 16px;
  line-height: 1.35;
}

/*
Make ArcGIS controls match the rounded dashboard design.
*/

.equity-map-card .esri-widget {
    border-radius: 11px;
}

.equity-map-card .esri-search {
    width: 260px;
}

.equity-map-card .esri-search__container {
    border-radius: 11px;
    overflow: hidden;
}

.equity-map-card .esri-attribution {
    font-size: 9px;
}

/* Tablet */

@media (max-width: 1000px) {
  .equity-section {
    width: calc(100% - 60px);
    margin: 60px 30px 40px;
    grid-template-columns: 1fr;
    gap: 35px;
  }

.equity-text h2 {
    margin: 0;
    line-height: 1.15;
}

  .equity-map-card {
    height: 540px;
  }
}

/* Mobile */

@media (max-width: 650px) {

    .equity-map-card {
        height: 500px;
        border-radius: 25px;
    }

    .heat-map-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .heat-opacity-control {
        width: 100%;
    }

    .heat-opacity-control input {
        flex: 1;
        width: auto;
    }

    .heat-map-legend {
        width: calc(100% - 22px);
    }

    .equity-map-card .esri-search {
        width: 205px;
    }
}



.affected-section{
    width:100%;
    margin:80px 0 40px;

    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    gap: 55px;

    align-items: center;
}


.affected-left {
  width: 100%;
  min-width: 0;
}


.affected-text {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}



.affected-left h2 {
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  color: #872d00;
  font-size: 40px;

  margin: 0 0 20px;
  padding-top: 0;
}

.affected-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.affected-grid img{
    height:300px;
}

.affected-text h2 {
  margin: 0;

  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 55px;
  line-height: 1.18;
  font-weight: 700;
  color: #2268a8;
  text-align: right;

}

.affected-text span{
   color: #872d00;
    font-weight:700;
}

.affected-text span {
  color: #872d00;
  font-weight: 700;
}

.affected-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.affected-card {
  position: relative;
  display: block;

  width: 100%;
  height: 360px;
  min-width: 0;

  border-radius: 28px;
  overflow: hidden;

  background: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

  text-decoration: none;
  color: inherit;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.affected-card > img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
  object-position: center;

  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

/* Information overlay */
.affected-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 24px;

  background: rgba(29, 78, 39, 0.94);
  color: #ffffff;

  opacity: 0;
  transform: translateY(18px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.affected-overlay h3 {
  margin: 0 0 12px;

  font-size: 23px;
  line-height: 1.15;
}

.affected-overlay p {
  margin: 0;

  font-size: 15px;
  line-height: 1.45;
}

.affected-overlay span {
  margin-top: 16px;

  color: #e9f7c9;
  font-size: 14px;
  font-weight: 800;
}

/* Mouse hover and keyboard focus */
.affected-card:hover,
.affected-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.affected-card:hover > img,
.affected-card:focus-visible > img {
  transform: scale(1.06);
  filter: brightness(0.55);
}

.affected-card:hover .affected-overlay,
.affected-card:focus-visible .affected-overlay {
  opacity: 1;
  transform: translateY(0);
}

.affected-card:focus-visible {
  outline: 4px solid #2362a8;
  outline-offset: 4px;
}

.affected-grid a::after {
    content: "Read more ↗";
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 12px;
    opacity: 0;
    transition: opacity .3s;
}

.affected-grid a {
    position: relative;
}

.affected-grid a:hover::after {
    opacity: 1;
}


@media (max-width: 1050px) {
  .affected-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 1050px) {
  .affected-section {
    width: calc(100% - 60px);
    margin: 60px 30px 40px;
    grid-template-columns: 1fr;
  }

  .affected-text h2 {
    font-size: 40px;
  }
}


@media (max-width: 650px) {
  .affected-grid {
    grid-template-columns: 1fr;
  }

  .affected-card {
    height: 430px;
  }

  .affected-overlay {
    padding: 22px;
  }

  .affected-overlay h3 {
    font-size: 18px;
  }

  .affected-overlay p {
    font-size: 12px;
    line-height: 1.45;
  }
}


@media (hover: none) {
  .affected-overlay {
    top: auto;
    min-height: 42%;
    opacity: 1;
    transform: none;
    justify-content: flex-end;
    background: linear-gradient(
      to top,
      rgba(29, 78, 39, 0.96),
      rgba(29, 78, 39, 0.72),
      transparent
    );
  }

  .affected-overlay p {
    display: none;
  }

  .affected-overlay h3 {
    margin-bottom: 4px;
  }

  .affected-overlay span {
    margin-top: 4px;
    font-size: 11px;
  }
}



/* =====================================================
   WHY CARE — HEAT SAFETY RESOURCES
===================================================== */

.heat-resource-section {
  width: 100%;
  max-width: 1450px;

  margin: 80px auto 60px;

  padding: 45px 40px;

  box-sizing: border-box;
}


.heat-resource-heading {
  width: 100%;
  max-width: none;

  margin: 0 0 45px;

  text-align: left;
}


.heat-resource-heading h2 {
  margin: 0 0 25px;

  font-size: 52px;
  line-height: 1.1;
  font-weight: 900;

  color: #9b3400;
}


.heat-resource-heading p {
  margin: 0;

  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;

  color: #000;
}


/* ==========================================
   RESOURCE CARDS
========================================== */

.heat-resource-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 22px;

  width: 100%;
}


.heat-resource-card {
  display: grid;

  grid-template-columns: 70px 1fr;

  gap: 20px;

  align-items: start;

  min-height: 190px;

  padding: 28px;

  box-sizing: border-box;

  background: rgba(255, 255, 255, 0.75);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 24px;

  box-shadow:
    0 8px 22px rgba(0,0,0,.12);

  color: #000;

  text-decoration: none;

  transition:
    transform .2s ease,
    box-shadow .2s ease;
}


.heat-resource-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 12px 26px rgba(0,0,0,.16);
}


.resource-icon {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;

  font-size: 35px;

  background: rgba(255,255,255,.7);

  border-radius: 50%;
}


.heat-resource-card h3 {
  margin: 0 0 10px;

  font-size: 25px;
  font-weight: 900;

  color: #9b3400;
}


.heat-resource-card p {
  margin: 0 0 15px;

  font-size: 17px;
  line-height: 1.45;

  color: #222;
}


.resource-link {
  color: #276bb0;

  font-size: 16px;
  font-weight: 900;
}






/* =====================================================
   HEAT RESOURCES — TABLET / IPAD
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  .heat-resource-section {
    margin: 55px auto 45px;

    padding: 35px 24px;
  }

  .heat-resource-heading {
    margin-bottom: 32px;
  }

  .heat-resource-heading h2 {
    font-size: 40px;
  }

  .heat-resource-heading p {
    max-width: 680px;

    margin: 0 auto;

    font-size: 18px;
  }

  .heat-resource-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 18px;
  }

  .heat-resource-card {
    grid-template-columns: 55px 1fr;

    gap: 15px;

    min-height: 210px;

    padding: 22px;
  }

  .resource-icon {
    width: 50px;
    height: 50px;

    font-size: 28px;
  }

  .heat-resource-card h3 {
    font-size: 21px;
  }

  .heat-resource-card p {
    font-size: 15px;
  }

  .resource-link {
    font-size: 14px;
  }
}




/* =====================================================
   HEAT RESOURCES — PHONE
   700px AND BELOW
===================================================== */

@media screen and (max-width: 700px) {

  .heat-resource-section {
    width: 100%;
    max-width: 100%;

    margin: 45px auto 40px;
    padding: 28px 16px;

    box-sizing: border-box;
  }


  /* Heading */

  .heat-resource-heading {
    width: 100%;

    margin: 0 0 28px;

    text-align: left;
  }

  .heat-resource-heading h2 {
    margin: 0 0 14px;

    font-size: 34px;
    line-height: 1.1;

    text-align: left;
  }

  .heat-resource-heading p {
    margin: 0;

    font-size: 19px;
    line-height: 1.4;

    text-align: left;
  }


  /* ONE CARD PER ROW */

  .heat-resource-grid {
    display: grid;

    grid-template-columns: 1fr !important;

    gap: 16px;

    width: 100%;
    max-width: 100%;

    margin: 0 auto;
  }


  /* Card */

  .heat-resource-card {
    display: grid;

    grid-template-columns: 52px minmax(0, 1fr) !important;

    gap: 16px;

    width: 100%;
    min-width: 0;
    min-height: 0;

    padding: 22px 18px;

    box-sizing: border-box;

    border-radius: 20px;
  }


  /* Icon */

  .resource-icon {
    width: 52px;
    height: 52px;

    font-size: 28px;

    flex-shrink: 0;
  }


  /* Text */

  .heat-resource-card h3 {
    margin: 0 0 8px;

    font-size: 22px;
    line-height: 1.2;

    word-break: normal;
    overflow-wrap: break-word;
  }

  .heat-resource-card p {
    margin: 0 0 12px;

    font-size: 16px;
    line-height: 1.45;

    word-break: normal;
    overflow-wrap: break-word;
  }

  .resource-link {
    display: inline-block;

    font-size: 15px;
    line-height: 1.3;
  }
}







/* =====================================================
   FIX WHY CARE RESOURCE SECTION BLUR / VISIBILITY
===================================================== */

/* Background must stay BEHIND the content */
.why-page-wave-bg {
  z-index: 0 !important;
  pointer-events: none !important;
}


/* All Why Care content stays above background */
.why-content {
  position: relative !important;
  z-index: 2 !important;
}


/* New resource section */
.heat-resource-section {
  position: relative !important;
  z-index: 5 !important;

  opacity: 1 !important;
  visibility: visible !important;

  filter: none !important;

  width: 100%;
  max-width: 1450px;

  margin: 80px auto 60px;
  padding: 45px 40px;

  box-sizing: border-box;
}


/* Make sure heading itself is not blurred */
.heat-resource-heading,
.heat-resource-heading h2,
.heat-resource-heading p {
  position: relative;

  z-index: 6;

  opacity: 1 !important;
  filter: none !important;
}


/* Make cards fully visible */
.heat-resource-grid {
  position: relative;

  z-index: 6;
}


.heat-resource-card {
  position: relative;

  z-index: 7;

  opacity: 1 !important;
  visibility: visible !important;

  filter: none !important;

  background: rgba(255, 255, 255, 0.88);

  /*
    Temporarily remove backdrop blur here too.
    This helps us eliminate competing blur effects.
  */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}









/* =====================================================
   MACBOOK / SMALL LAPTOP
   1101px — 1500px
===================================================== */

@media screen and (min-width: 1101px) and (max-width: 1500px) {

  .why-page {
    width: calc(100% - 238px);
    max-width: none;
    min-width: 0;
  }

  .why-content {
    max-width: 100%;
    padding:
      0 clamp(20px, 2.5vw, 38px)
      60px;
  }


  /* HERO */

  .why-hero {
    height: clamp(300px, 36vw, 470px);
    min-height: 300px;
  }

  .why-hero-text {
    padding-top: 38px;
    padding-left: 10px;
  }

  .why-hero h2 {
    font-size: 32px;
    max-width: 520px;
  }

  .why-hero h1 {
    width: auto;
    max-width: 760px;

    font-size: clamp(48px, 5vw, 60px);
    line-height: 1.1;

    font-weight: 900;
  }


  /* GREEN / GLASS BACKGROUND */

  .why-page-wave-bg {
    top: clamp(260px, 27vw, 400px);

    left: 22px;
    right: 22px;

    border-radius: 30px;
  }


  /* HEALTH */

  .health-section {
    margin: -50px auto 65px;

    padding: 38px 38px 45px;
  }

  .health-content h2 {
    font-size: 34px;
  }

  .health-content h3 {
    font-size: 21px;
  }

  .health-grid {
    gap: 14px;
  }

  .health-item {
    min-height: 165px;

    padding: 18px 12px;
  }

  .health-item img {
    width: 58px;
    height: 58px;
  }

  .health-item p {
    font-size: 16px;
  }


  /* JUSTICE */

  .justice-section {
    grid-template-columns:
      minmax(0, .9fr)
      minmax(0, 1.1fr);

    column-gap: 35px;

    margin: 55px 0 35px;
  }

  .justice-text h2 {
    font-size: 48px;
  }

  .justice-map-card {
    height: clamp(320px, 38vw, 480px);
  }


  /* EQUITY */

  .equity-section {
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(300px, .9fr);

    gap: 35px;

    margin: 65px 0 35px;
  }

  .equity-text h2 {
    font-size: 48px;
  }

  .equity-text p {
    font-size: 19px;
    line-height: 1.55;
  }

  .equity-map-card {
    height: clamp(340px, 40vw, 500px);
  }


  /* AFFECTED */

  .affected-section {
    grid-template-columns:
      minmax(0, 1.25fr)
      minmax(280px, .75fr);

    gap: 35px;

    margin: 65px 0 35px;
  }

  .affected-text h2 {
    font-size: 45px;
  }

  .affected-grid {
    gap: 18px;
  }

  .affected-card {
    height: 300px;
  }
}


/* =====================================================
   TABLET / IPAD
   701px — 1100px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  html,
  body {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
  }


  /* PAGE TAKES FULL WIDTH */

  .why-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0;

    overflow: hidden;
  }

  .why-content {
    width: 100%;
    max-width: 100%;

    padding: 0 24px 55px;
  }


  /* ==========================================
     HERO
  ========================================== */

  .why-hero {
    width: 100%;

    height: auto;
    min-height: 360px;

    background-position: center;
  }

  .why-hero-text {
    padding-top: 70px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .why-hero h2 {
    width: auto;
    max-width: 520px;

    font-size: 29px;
  }

  .why-hero h1 {
    width: auto;
    max-width: 620px;

    font-size: clamp(42px, 6vw, 56px);
    line-height: 1.08;

    font-weight: 900;
  }


  /* Background panel */

  .why-page-wave-bg {
    top: 320px;

    left: 14px;
    right: 14px;

    border-radius: 26px;
  }


 .health-section,
  .justice-section,
  .equity-section,
  .affected-section{
      padding-left:30px;
      padding-right:30px;
      box-sizing:border-box;
  }



  /* ==========================================
     HEALTH
  ========================================== */

  .health-section {
    width: 100%;

    margin: -30px auto 55px;

    padding: 35px 26px 40px;
  }

  .health-content h2 {
    padding-top: 30px;

    font-size: 32px;
  }

  .health-content h3 {
    font-size: 20px;
  }

  .health-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 16px;
  }

  .health-item {
    min-height: 155px;

    padding: 18px 14px;
  }

  .health-item img {
    width: 58px;
    height: 58px;
  }

  .health-item p {
    font-size: 16px;
  }

  .health-body {
    width: 150px;
  }


  /* ==========================================
     JUSTICE
  ========================================== */

  .justice-section {
    width: 100%;

    margin: 50px 0 35px;

    grid-template-columns: 1fr;

    row-gap: 28px;
  }

  .justice-text h2 {
    font-size: 42px;
    text-align: center;
  }

  .justice-map-card {
    width: 100%;

    height: 460px;

    border-radius: 28px;
  }

  .justice-source {
    font-size: 14px;
  }



  

  /* ==========================================
     EQUITY
  ========================================== */

  .equity-section {
    width: 100%;

    margin: 55px 0 35px;

    grid-template-columns: 1fr;

    gap: 28px;
  }

  .equity-text {
    width: 100%;
    max-width: none;

    text-align: center;
  }

  .equity-text h2 {
    font-size: 42px;
  }

  .equity-text p {
    margin-top: 20px;

    font-size: 18px;
    line-height: 1.55;

    text-align: left;
  }

  .equity-map-card {
    width: 100%;

    height: 480px;

    border-radius: 26px;
  }

  .heat-map-toolbar {
    gap: 10px;

    padding: 10px 12px;
  }

  .equity-map-card .esri-search {
    width: 220px;
  }


  /* ==========================================
     AFFECTED GROUPS
  ========================================== */

  .affected-section {
    width: 100%;

    margin: 55px 0 35px;

    grid-template-columns: 1fr;

    gap: 28px;
  }

  .affected-text {
    justify-content: left;
  }

  .affected-text h2 {
    font-size: 42px;
    text-align: center;
  }

  .affected-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 18px;
  }

  .affected-card {
    height: 650px;
  }

  .affected-grid img {
    height: 100%;
  }


  /* ==========================================
     FOOTER
  ========================================== */

  .footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;
  }

  .footer-logos img {
    max-width: 150px;
    max-height: 70px;
  }
}


/* =====================================================
   IPAD PORTRAIT
   701px — 850px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 850px) {

  .why-content {
    padding:
      0 18px
      45px;
  }


  /* HERO */

  .why-hero {
    min-height: 390px;
  }

  .why-hero-text {
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .why-hero h2 {
    font-size: 26px;
  }

  .why-hero h1 {
    max-width: 520px;

    font-size: 44px;
  }


  /* HEALTH */

  .health-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .health-item {
    min-height: 145px;
  }


  /* MAP SECTIONS */

  .justice-text h2,
  .equity-text h2,
  .affected-text h2 {
    font-size: 36px;
    text-align: center;
  }

  .justice-map-card,
  .equity-map-card {
    height: 420px;
  }


  /* Heat toolbar stacks more safely */

  .heat-map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .heat-opacity-control {
    width: 100%;
  }

  .heat-opacity-control input {
    flex: 1;
    width: auto;
  }


  /* AFFECTED */

  .affected-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .affected-card {
    height: 580px;
  }
}

/* =====================================================
   FINAL AFFECTED CARD FIX — TABLETS
   KEEP THIS AT THE VERY BOTTOM
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  
  
  
  .affected-section {
    width: 100%;
    margin: 55px 0 35px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .affected-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
  }

  .affected-card {
    width: 100%;

    /* REMOVE all competing fixed heights */
    height: auto !important;
    min-height: 0;

    /* Gives cards a taller portrait shape */
    aspect-ratio: 4 / 5;

    border-radius: 28px;
    overflow: hidden;
  }

  .affected-card > img {
    display: block;

    width: 100%;
    height: 100% !important;

    object-fit: cover;
    object-position: center;
  }
}









.climate-page{
  flex:1;
  background:rgba(255, 255, 255, 0.386);
  border-radius:28px;
  padding:45px 12px;

  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.climate-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:45px;
}

.climate-header h2{
  font-size: 30px;
  font-weight:900;
   line-height: 1.1;

    margin: 0 5 5px;
  max-width: 600px;
  
    padding-left:1px;
  padding-bottom:8px;
}

.climate-header h1{
  font-size:54px;
  line-height:1.2;
  color:#9b3400;
  font-weight:900;

 margin: 0 0 5 5px;

  width: 1000px;
  max-width: 100%;

 padding-left:1px;
  padding-bottom:8px;
}


.chart-icons img{
  width:520px;
  max-height:190px;
  object-fit:contain;
}

.dataset-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  justify-content: center;
  gap:70px;
  align-items: stretch;
 padding:55px 30px;
}

.dataset-card{
  position: relative;
  height: 250px;
  width: 100%;
  max-width: 600px;
  padding: 28px;
  padding-bottom: 85px;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 28px;
  box-shadow: 0 9px 22px rgba(0,0,0,.15);
  box-sizing: border-box;
}

.dataset-card h2{
  margin:0 0 18px;
  text-align:center;
}

.dataset-card p{
  margin:0;
}

.dataset-card .source{
  align-self:end;
  margin-bottom:18px;
}

.dataset-card a{
  position: absolute;
  right: 28px;
  bottom: 28px;

  width: 170px;
  text-align: center;
  padding: 10px 16px;
  border: 3px solid #9bcaf2;
  border-radius: 10px;
  color: #2268a8;
  font-weight: 800;
  text-decoration: none;
}

.source{
    margin-top:auto;
    margin-bottom:20px;
}

.dataset-card h2{
  font-size:28px;
  margin-bottom:12px;
  text-align:left;
}

.dataset-card p{
  font-size:19px;
  line-height:1.35;
}

.dataset-card .source{
  margin-top:20px;
  font-size:15px;
}

.dataset-card a{
  display:block;
  width:160px;
  margin:22px 0 0 auto;
  text-align:center;
  padding:9px 14px;
  border:3px solid #9bcaf2;
  border-radius:9px;
  color:#2268a8;
  font-weight:800;
  text-decoration:none;
  font-size:18px;
}

.dataset-card a:hover{
  background:#fdfade;
}



.climate-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
    margin-bottom:40px;
}

.header-text{
    flex:1;
}

.header-image{
    flex:0 0 42%;
    display:flex;
    justify-content:flex-end;
    align-items:center;
}

.header-image img{
    width: 650px;
    max-width:720px;
    height:auto;
    object-fit:contain;
}








/* =====================================================
   CLIMATE DATA PAGE — MACBOOK + TABLET
===================================================== */


/* =====================================================
   MACBOOK / SMALL LAPTOP
   1101px — 1500px
===================================================== */

@media screen and (min-width: 1101px) and (max-width: 1500px) {

  .climate-page {
    width: 100%;
    max-width: 100%;

    padding: 38px 24px;
  }

 .climate-header{
    display:flex;
    align-items:center;
    justify-content:center;

    gap:40px;

    max-width:1300px;
    margin:0 auto 40px;
}

.header-text{
    flex:1;
    max-width:700px;

    text-align:left;
}

.climate-header h2{
    margin:0 0 10px;
    max-width:none;

    text-align:left;

    font-size:28px;
}

.climate-header h1{
    width:auto;
    max-width:700px;

    margin:0;

    text-align:left;

    font-size:clamp(46px,5vw,56px);
}

.header-image{
    flex:0 0 40%;

    display:flex;
    justify-content:center;
}

.header-image img{
    width:100%;
    max-width:520px;
}


  /* Cards */

  .dataset-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    justify-content: center;

    gap: 30px;

    max-width: 1180px;

    margin: 0 auto;

    padding: 40px 20px;
  }

  .dataset-card {
    width: 100%;
    max-width: 540px;

    min-height: 250px;
    height: auto;

    margin: 0 auto;

    padding: 26px 26px 82px;
  }

  .dataset-card h2 {
    font-size: 25px;
  }

  .dataset-card p {
    font-size: 17px;
  }
}


/* =====================================================
   TABLET / IPAD
   701px — 1100px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  .climate-header{

    display:flex;
    align-items:center;
    justify-content:center;

    gap:28px;
     padding-top: 55px; 

    max-width:1000px;
    margin:0 auto 35px;
}




.header-text{

    flex:1;

    text-align:left;
}

.climate-header h2{

    margin:0 0 8px;

    text-align:left;

    font-size:24px;
}

.climate-header h1{

    width:auto;
    max-width:560px;

    margin:0;

    text-align:left;

    font-size:clamp(36px,5vw,46px);
    line-height:1.1;
}

.header-image{

    flex:0 0 38%;

    display:flex;
    justify-content:center;
}

.header-image img{

    width:100%;
    max-width:360px;
}


  /* Dataset cards centered */

  .dataset-grid {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    justify-content: center;

    gap: 24px;

    width: 100%;
    max-width: 960px;

    margin: 0 auto;

    padding: 32px 10px;
  }

  .dataset-card {
    width: 100%;
    max-width: 430px;

    min-height: 250px;
    height: auto;

    margin: 0 auto;

    padding: 24px 22px 82px;
  }

  .dataset-card h2 {
    font-size: 23px;

    text-align: center;
  }

  .dataset-card p {
    font-size: 17px;

    text-align: center;
  }

  .dataset-card .source {
    font-size: 14px;

    text-align: center;
  }

  .dataset-card a {
    left: 50%;
    right: auto;

    transform: translateX(-50%);

    margin: 0;

    width: 160px;

    text-align: center;
  }
}


/* =====================================================
   IPAD PORTRAIT
   701px — 850px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 850px) {

 .climate-header{

    flex-direction:column;
    align-items:flex-start;

    max-width:700px;

    margin:0 auto 35px;
}

.header-text{
    width:100%;
    text-align:left;
}

.climate-header h2{
    text-align:left;
}

.climate-header h1{
    text-align:left;
}

.header-image{

    width:100%;

    display:flex;
    justify-content:center;
}

.header-image img{
    width:min(420px,90%);
}

  .dataset-grid {
    grid-template-columns: 1fr;

    max-width: 620px;

    gap: 22px;
  }

  .dataset-card {
    max-width: 560px;
  }
}














.resources-page{
    flex:1;

    background: rgba(255, 255, 255, 0.393);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius:28px;
    overflow:hidden;

    border:1px solid rgba(255,255,255,.25);

    box-shadow:0 10px 30px rgba(0,0,0,.20);
}

.resources-header{
  min-height: 150px;
  height: auto;

  display:grid;
  grid-template-columns:1.35fr 1fr;
  align-items:center;
  overflow:visible;

 margin-top:60px !important;
  padding-top:10px !important;
  padding-left: 15px !important;
}
 

.resources-header div{
  padding-left:12px;
}

.resources-header h2{
   font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size:40px;
  font-weight:900;
  margin:0 10 10px;
   padding-top:30px;
}

.resources-header h1{
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size:65px;
  line-height:1.15;
  color:#0c5691;
  font-weight:1200;
  margin:0 10 10px;
  padding-bottom:8px;
  }



.resources-header img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.resource-grid{
  padding:58px 52px 56px;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:74px;
}

.resource-card{
  position:relative;
  height:300px;
  border-radius:32px;
  padding:30px 34px 95px;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  
  box-shadow:0 9px 22px rgba(0,0,0,.15);
}

.resource-card h2 {
  text-align: left;
  font-size: 26px;
  line-height: 1.2;
  margin-bottom: 18px;

  max-width: 55%;
  min-height: 65px;
}

.resource-card p{
  font-size:18px;
  line-height:1.35;
}

.resource-card a{
  position:absolute;
  right:34px;
  bottom:30px;
  width:180px;
  text-align:center;
  padding:10px 14px;
  border:3px solid #9bcaf2;
  border-radius:9px;
  color:#2268a8;
  font-weight:800;
  text-decoration:none;
  font-size:18px;
}

.resource-logo {
  position: absolute;
  top: 8px;
  right: 45px;

  width: 160px;
  height: 120px;

  object-fit: contain;
  object-position: center;
}


.swea-logo {
  width: 150px;
  height: 90px;

  transform: scale(1.8);
  transform-origin: center;

  top: 45px;
  right: 40px;
}

.njeja-logo {
  width: 175px;
  height: 100px;
}

.red-title{
  color:red;
}

/* =====================================================
   RESOURCES PAGE — MACBOOK + TABLET
===================================================== */


/* =====================================================
   MACBOOK / SMALL LAPTOP
   1101px — 1500px
===================================================== */

@media screen and (min-width: 1101px) and (max-width: 1500px) {

  .resources-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }


  /* ==========================================
     HEADER
  ========================================== */

  .resources-header {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 36px;

    width: 100%;
    max-width: 1250px;

    margin: 45px auto 0 !important;

    padding:
      25px 30px
      20px !important;
  }

  .resources-header > div {
    flex: 1 1 58%;

    max-width: 700px;

    padding-left: 0;
  }

  .resources-header h2 {
    margin: 0 0 10px;

    padding-top: 0;

    font-size: 32px;

    text-align: left;
  }

  .resources-header h1 {
    width: auto;
    max-width: 700px;

    margin: 0;

    padding-bottom: 0;

    font-size: clamp(48px, 5vw, 60px);
    line-height: 1.1;

    font-weight: 900;

    text-align: left;
  }

  .resources-header img {
    flex: 0 1 38%;

    width: 100%;
    max-width: 430px;

    height: auto;

    object-fit: contain;
  }


  /* ==========================================
     RESOURCE GRID
  ========================================== */

  .resource-grid {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    justify-content: center;

    gap: 32px;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 45px 30px 55px;
  }

  .resource-card {
    width: 100%;
    max-width: 540px;

    min-height: 300px;
    height: auto;

    margin: 0 auto;

    padding: 28px 30px 95px;
  }

  .resource-card h2 {
    max-width: 60%;

    font-size: 24px;
  }

  .resource-card p {
    font-size: 17px;
  }

  .resource-logo {
    right: 28px;

    width: 135px;
    height: 105px;
  }

  .swea-logo {
    width: 125px;
    height: 80px;

    top: 40px;
    right: 30px;

    transform: scale(1.5);
  }

  .njeja-logo {
    width: 150px;
    height: 90px;
  }
}


/* =====================================================
   TABLET / IPAD
   701px — 1100px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  .resources-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }


  /* ==========================================
     HEADER — LEFT ALIGNED, NOT JUSTIFIED
  ========================================== */

  .resources-header {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-start;

    gap: 24px;

    width: 100%;
    max-width: 900px;

    margin: 55px auto 0 !important;

    padding:
      35px 30px
      10px !important;
  }

  .resources-header > div {
    width: 100%;
    max-width: 720px;

    padding-left: 0;

    text-align: left;
  }

  .resources-header h2 {
    width: 100%;

    margin: 0 0 10px;

    padding-top: 0;

    font-size: 28px;

    text-align: left;
  }

  .resources-header h1 {
    width: 100%;
    max-width: 700px;

    margin: 0;

    padding-bottom: 0;

    font-size: clamp(42px, 6vw, 54px);
    line-height: 1.1;

    font-weight: 900;

    text-align: left;
  }

  .resources-header img {
    display: block;

    width: min(480px, 85%);
    height: auto;

    margin: 0 auto;

    object-fit: contain;
  }


  /* ==========================================
     RESOURCE CARDS — CENTERED
  ========================================== */

  .resource-grid {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    justify-content: center;

    gap: 24px;

    width: 100%;
    max-width: 980px;

    margin: 0 auto;

    padding: 38px 20px 50px;
  }

  .resource-card {
    width: 100%;
    max-width: 440px;

    min-height: 290px;
    height: auto;

    margin: 0 auto;

    padding: 26px 24px 90px;
  }

  .resource-card h2 {
    max-width: 62%;

    font-size: 22px;
    line-height: 1.2;
  }

  .resource-card p {
    font-size: 16px;
    line-height: 1.4;
  }

  .resource-card a {
    right: 24px;
    bottom: 24px;

    width: 155px;

    font-size: 16px;
  }

  .resource-logo {
    top: 14px;
    right: 24px;

    width: 115px;
    height: 90px;
  }

  .swea-logo {
    width: 105px;
    height: 70px;

    top: 40px;
    right: 25px;

    transform: scale(1.35);
  }

  .njeja-logo {
    width: 125px;
    height: 80px;
  }
}


/* =====================================================
   IPAD PORTRAIT
   701px — 850px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 850px) {

  .resources-header {
    max-width: 720px;

    padding:
      40px 22px
      10px !important;
  }

  .resources-header h2 {
    font-size: 25px;
  }

  .resources-header h1 {
    font-size: 46px;
  }

  .resources-header img {
    width: min(420px, 90%);
  }

  .resource-grid {
    grid-template-columns: 1fr;

    max-width: 620px;

    gap: 22px;

    padding:
      32px 18px
      45px;
  }

  .resource-card {
    max-width: 560px;

    min-height: 280px;
  }

  .resource-card h2 {
    max-width: 65%;
  }
}
















.cooling-section{
  padding:15px 12px 20px;
  margin-top:0;

 margin-top:60px !important;
  padding-top:10px !important;
  padding-left: 15px !important;
}

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

.cooling-header h2{
  color:#3d7d2b;
  font-size:38px;
  margin:0 0 10px;
}

.cooling-header p{
  font-size:21px;
  margin:0;
}

.map-button{
  border:3px solid #9bcaf2;
  border-radius:10px;
  padding:12px 22px;
  color:#2268a8;
  font-weight:800;
  text-decoration:none;
  font-size:20px;
}

.cooling-content{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.cooling-list{
  border:3px solid #d9ecff;
  border-radius:28px;
  padding:22px;
  height:520px;          
  overflow-y:auto;
}

.cooling-list h3{
  position:sticky;
  top:0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-bottom:15px;
  margin-bottom:10px;
  z-index:5;
}

.cooling-item{
  display:grid;
  grid-template-columns:70px 1fr auto;
  gap:15px;
  align-items:center;
  border-top:2px solid #d9ecff;
  padding:18px 0;
}

.cooling-icon{
  width:58px;
  height:58px;
  border-radius:50%;
   background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
}

.cooling-item h4{
  font-size:19px;
}

.cooling-item p{
  font-size:15px;
}

.cooling-item a{
  border:3px solid #9bcaf2;
  border-radius:8px;
  padding:7px 14px;
  color:#2268a8;
  font-weight:800;
  text-decoration:none;
}

.cooling-map{
  width:100%;
  min-height:510px;
  border-radius:18px;
  overflow:hidden;
}

.cooling-info-row{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:24px;
  margin-top:26px;
}

.cooling-info{
  border-radius:16px;
  padding:18px;
  font-size:17px;
  box-shadow:0 7px 18px rgba(0,0,0,.12);
}


.cooling-map {
  width: 100%;
  height: 520px;
  min-height: 520px;
  border-radius: 18px;
  overflow: hidden;
  z-index: 1;
}

.leaflet-container {
    width: 100%;
    height: 100%;
}

.cooling-section{
    margin-top:60px;
}

.cooling-content{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:30px;
    align-items:start;
}

.cooling-list{
      background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
    border-radius:24px;
    padding:30px;
    max-height:560px;
    overflow-y:auto;
    box-shadow:0 8px 30px rgba(0,0,0,.08);
}

.cooling-item{
    display:flex;
    gap:18px;
    align-items:center;
    padding:20px 0;
    border-bottom:1px solid #eee;
}

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

.cooling-item h4{
    margin:0;
}

.cooling-item p{
    margin:3px 0;
}

.cooling-item a{
    margin-left:auto;
}

.cooling-map{
    width:100%;
    height:560px;
    border-radius:24px;
    overflow:hidden;
}

.modern-list .cooling-item,
.modern-list .place-card{
  display:grid;
  grid-template-columns:72px 1fr 140px;
  gap:18px;
  align-items:center;
  padding:22px 0;
}

.modern-list .cooling-icon,
.modern-list .place-icon{
  width:62px;
  height:62px;
  border-radius:50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
}

.modern-list .cooling-item a,
.modern-list .place-action a{
  text-decoration:none;
  border:3px solid #9bcaf2;
  border-radius:8px;
  padding:8px 14px;
  color:#2268a8;
  font-weight:900;
  text-align:center;
}


.clean-list{
  border:3px solid #d9ecff;
  border-radius:34px;
  padding:28px;
  height:560px;
  overflow-y:auto;
    background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.list-title-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:2px solid #d9ecff;
  padding-bottom:22px;
  margin-bottom:8px;
  position:sticky;
  top:0;
   background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index:5;
}



.list-title-row h3{
  font-size:32px;
  margin:0;
  font-weight:900;
}

.list-title-row select{
  padding:13px 22px;
  border:2px solid #d5d5d5;
  border-radius:10px;
  font-size:16px;
  font-weight:900;
   background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.clean-place{
  display:grid;
  grid-template-columns:1fr 150px;
  gap:20px;
  align-items:center;
  padding:26px 0;
  border-bottom:2px solid #d9ecff;
}

.clean-details h4{
  font-size:23px;
  margin:0 0 8px;
  font-weight:900;
}

.clean-details p{
  font-size:18px;
  margin:6px 0;
  line-height:1.35;
}

.clean-action{
  text-align:right;
}

.clean-action strong{
  display:block;
  font-size:15px;
  margin-bottom:8px;
}

.clean-action span{
  display:block;
  color:#2f7d2d;
  font-weight:900;
  margin-bottom:10px;
}

.clean-action a{
  display:inline-block;
  border:3px solid #9bcaf2;
  border-radius:8px;
  padding:9px 18px;
  color:#2268a8;
  text-decoration:none;
  font-size:18px;
  font-weight:900;
}

.see-more{
  display:block;
  padding:16px 6px 0;
  color:#2268a8;
  font-weight:900;
  text-decoration:none;
}


.cooling-section{
  padding: 35px 42px 45px;
}

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

.cooling-content{
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 28px;
  align-items: stretch;
}

.cooling-list{
  height: 520px;
  overflow-y: auto;
}

.cooling-map{
  height: 520px !important;
  min-height: 520px !important;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
}

.leaflet-container{
  width: 100%;
  height: 100%;
}

.ward-label{
  background:#e6bbbb;
  color:#111;
  font-weight:900;
  font-size:18px;
  padding:8px 12px;
  margin-top:18px;
  border-radius:8px;
}

.ward-label{
  background:#e9c1c1;
  color:#111;
  font-weight:900;
  font-size:17px;
  padding:8px 12px;
  margin:18px 0 6px;
  border-radius:8px;
}


.cooling-notice{
    margin:25px 0 30px;
    padding:18px 22px;
    background:#FFF8E8;
    border-left:6px solid #F4A300;
    border-radius:12px;
    font-size:17px;
    line-height:1.6;
    color:#444;
}

.cooling-notice strong{
    color:#9A6000;
}








/* =====================================================
   COOLING FACILITIES — MACBOOK + TABLET
===================================================== */


/* =====================================================
   MACBOOK / SMALL LAPTOP
   1101px — 1500px
===================================================== */

@media screen and (min-width: 1101px) and (max-width: 1500px) {

  .cooling-section {
    width: 100%;
    max-width: 100%;

    margin-top: 45px !important;
    padding: 28px 28px 40px !important;
  }


  /* Header stays left aligned */

  .cooling-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;

    gap: 24px;

    max-width: 1180px;
    margin: 0 auto 28px;
  }

  .cooling-header > div {
    flex: 1;
    max-width: 760px;

    text-align: left;
  }

  .cooling-header h2 {
    margin: 0 0 10px;

    font-size: 34px;
    text-align: left;
  }

  .cooling-header p {
    max-width: 760px;

    font-size: 18px;
    line-height: 1.45;

    text-align: left;
  }

  .map-button {
    flex: 0 0 auto;

    padding: 10px 18px;

    font-size: 17px;
  }


  /* Main list + map centered */

  .cooling-content {
    display: grid;

    grid-template-columns:
      minmax(360px, 0.9fr)
      minmax(0, 1.1fr);

    gap: 24px;

    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    align-items: stretch;
  }

  .cooling-list,
  .clean-list {
    width: 100%;
    height: 500px;

    padding: 24px;
  }

  .cooling-map {
    width: 100%;
    height: 500px !important;
    min-height: 500px !important;
  }

  .list-title-row h3 {
    font-size: 27px;
  }

  .clean-details h4 {
    font-size: 20px;
  }

  .clean-details p {
    font-size: 16px;
  }

  .clean-place {
    grid-template-columns:
      minmax(0, 1fr)
      125px;

    gap: 16px;
  }

  .clean-action a {
    font-size: 16px;
    padding: 8px 14px;
  }


  /* Bottom info cards */

  .cooling-info-row {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 18px;

    max-width: 1180px;
    margin: 26px auto 0;
  }

  .cooling-info {
    font-size: 15px;
  }

  .cooling-notice {
    max-width: 1180px;

    margin: 24px auto 30px;
  }
}


/* =====================================================
   TABLET / IPAD
   701px — 1100px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  .cooling-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin-top: 55px !important;

    padding:
      36px 24px
      38px !important;
  }


  /* ==========================================
     HEADER — LEFT ALIGNED
  ========================================== */

  .cooling-header {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-start;

    gap: 16px;

    width: 100%;
    max-width: 900px;

    margin: 0 auto 28px;

    text-align: left;
  }

  .cooling-header > div {
    width: 100%;
    max-width: 760px;

    text-align: left;
  }

  .cooling-header h2 {
    width: 100%;

    margin: 0 0 8px;

    font-size: 30px;

    text-align: left;
  }

  .cooling-header p {
    width: 100%;
    max-width: 760px;

    margin: 0;

    font-size: 18px;
    line-height: 1.45;

    text-align: left;
  }

  .map-button {
    align-self: flex-start;

    padding: 10px 17px;

    font-size: 16px;
  }


  /* ==========================================
     LIST + MAP CENTERED
  ========================================== */

  .cooling-content {
    display: grid;

    grid-template-columns: 1fr;

    gap: 24px;

    width: 100%;
    max-width: 900px;

    margin: 0 auto;
  }

  .cooling-list,
  .clean-list {
    width: 100%;
    max-width: 820px;

    height: 480px;

    margin: 0 auto;

    padding: 24px;
  }

  .cooling-map {
    width: 100%;
    max-width: 900px;

    height: 480px !important;
    min-height: 480px !important;

    margin: 0 auto;
  }


  /* List headings */

  .list-title-row {
    gap: 12px;

    padding-bottom: 16px;
  }

  .list-title-row h3 {
    font-size: 26px;
  }

  .list-title-row select {
    padding: 10px 14px;

    font-size: 14px;
  }


  /* List items */

  .clean-place {
    grid-template-columns:
      minmax(0, 1fr)
      130px;

    gap: 16px;

    padding: 22px 0;
  }

  .clean-details h4 {
    font-size: 20px;
  }

  .clean-details p {
    font-size: 16px;
  }

  .clean-action {
    text-align: right;
  }

  .clean-action strong {
    font-size: 14px;
  }

  .clean-action a {
    padding: 8px 12px;

    font-size: 15px;
  }


  /* ==========================================
     INFO CARDS
  ========================================== */

  .cooling-info-row {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
    max-width: 900px;

    margin: 24px auto 0;
  }

  .cooling-info {
    width: 100%;

    padding: 16px;

    font-size: 15px;
  }


  /* Notice */

  .cooling-notice {
    width: 100%;
    max-width: 900px;

    margin: 24px auto 28px;

    font-size: 16px;
  }
}


/* =====================================================
   IPAD PORTRAIT
   701px — 850px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 850px) {

  .cooling-section {
    padding:
      38px 18px
      32px !important;
  }

  .cooling-header {
    max-width: 720px;
  }

  .cooling-header h2 {
    font-size: 28px;
  }

  .cooling-header p {
    font-size: 17px;
  }


  /* Main content */

  .cooling-content {
    max-width: 720px;
  }

  .cooling-list,
  .clean-list {
    max-width: 680px;

    height: 460px;
  }

  .cooling-map {
    max-width: 720px;

    height: 440px !important;
    min-height: 440px !important;
  }


  /* Stack action underneath details if needed */

  .clean-place {
    grid-template-columns: 1fr;

    gap: 12px;
  }

  .clean-action {
    text-align: left;
  }

  .clean-action a {
    display: inline-block;
  }


  /* Info cards */

  .cooling-info-row {
    grid-template-columns: 1fr;

    max-width: 680px;
  }
}















.nav-group{
    margin-bottom:8px;
}

.dropdown-btn{
    display:flex;
    align-items:center;
    width:100%;
    gap: 2px;

    padding:15px 20px;
    border-radius:18px;

    background:none;
    border:none;
    cursor:pointer;

    font-family:Calibri, "Segoe UI", Arial, sans-serif;
    font-size:35px;
    font-weight:850;
    color: #349be5;
    text-align:left;
}

.dropdown-btn img{
    width:38px;
    height:38px;
    object-fit:contain;
}

.dropdown-btn span{
    font-size:28px;
    font-weight:700;
}

.arrow,
#resourcesArrow{
    margin-left:auto;
    font-size:14px;
}

.submenu{
    display:none;
    margin-left:30px;
    margin-top:6px;
}

.submenu.show{
    display:block;
}

.submenu a{
    display:block;
    padding:8px 10px;

    font-size:20px;
    font-weight:600;
    color:#071702;
    text-decoration:none;
    line-height:1.55;

    border-radius:10px;
    transition:.25s;
}

.submenu a:hover{
    transform:translateX(8px);
    background:#edf5ff;
    color:#2f5ea8;
}


.sidebar{
  position: relative;
  z-index: 1000;
}

.why-page{
  position: relative;
  z-index: 1;
}

.why-hero,
.health-card,
.footer-logos{
  position: relative;
  z-index: 1;
}



/* ==================================
   WHAT CAN I DO TODAY CARD
================================== */

.activity-card{
  min-height:410px;
}

.activity-title{
  background:#AFCDF2;
  color:#1a3d6b;
}

.activity-intro{
  font-size:17px;
  line-height:1.4;
  margin:0 4px 14px;
  color:#444;
}

.activity-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:4px;
}

.activity-option{
  display:grid;
  grid-template-columns:58px 1fr;
  gap:14px;
  align-items:center;

  padding:10px 12px;
  border:1px solid #dce6f2;
  border-radius:14px;
  background:#fff;

  transition:transform .2s ease, box-shadow .2s ease,
             background .2s ease;
}

.activity-option:hover{
  transform:translateX(5px);
  background:#f3f8ff;
  box-shadow:0 5px 12px rgba(0,0,0,.10);
}

.activity-option img{
  width:52px;
  height:52px;
  object-fit:contain;
}

.activity-option h3{
  margin:0 0 3px;
  font-size:18px;
  font-weight:800;
}

.activity-option p{
  margin:0;
  font-size:13px;
  line-height:1.3;
  color:#555;
}



/* =====================================
   HOMEPAGE DASHBOARD — THREE EQUAL CARDS
===================================== */

.cards-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
  align-items:stretch;
}

.info-card{
  width:100%;
  min-width:0;
  min-height:470px;
  height:auto;
  padding:20px;
  overflow:visible;
}

/* Activity card */
.activity-card{
  width:100%;
  min-width:0;
}

.activity-title{
  width:100%;
  background:#AFCDF2;
  padding:14px 16px;
  border-radius:14px;
}

.activity-title h2{
  margin:0;
  font-size:23px;
  line-height:1.15;
}

.activity-intro{
  margin:16px 4px 14px;
  font-size:16px;
  line-height:1.4;
}

.activity-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
}

.activity-option{
  display:grid;
  grid-template-columns:55px minmax(0, 1fr);
  gap:14px;
  align-items:center;

  width:100%;
  padding:12px;
  border:1px solid #dce6f2;
  border-radius:14px;
}

.activity-option img{
  width:48px;
  height:48px;
  object-fit:contain;
}

.activity-option h3{
  margin:0 0 4px;
  font-size:17px;
  line-height:1.2;
}

.activity-option p{
  margin:0;
  font-size:14px;
  line-height:1.3;
  color:#555;
}


/* Homepage footer logos */
.home-footer{
  width:100%;
  margin-top:30px;
  padding:20px 30px;

  display:grid;
  grid-template-columns:repeat(4, minmax(120px, 1fr));
  align-items:center;
  justify-items:center;
  gap:28px;
}

.home-footer img{
  display:block;
  width:auto;
  height:70px;
  max-width:100%;
  object-fit:contain;
}


.home-footer .mayor-footer-logo{
  height:58px;
  max-width:230px;
}


.footer-logos{
  flex-wrap:nowrap;
}



.footer-logos{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:40px;
    margin-top:30px;
    padding-bottom:60px;
    flex-wrap:nowrap;
}

.home-footer{
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    justify-items:center;
    align-items:center;
    gap:30px;
    margin-top:30px;
}

.home-footer img{
    height:70px;
    width:auto;
    object-fit:contain;
}

.home-footer .mayor-footer-logo{
    height:58px;
    max-width:230px;
}


/* =====================================
   HOME DASHBOARD FINAL LAYOUT
===================================== */

.dashboard-panel{
  background: rgba(255, 255, 255, 0.411);

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  width: 96%;
  max-width: 1500px;
  margin: -70px auto 0;
  padding: 28px 28px 15px;

  border-radius: 38px 38px 26px 26px;
  position: relative;

  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.cards-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:24px;
  align-items:stretch;
  width:100%;
}

.info-card{
    width:100%;
    min-width:0;
    min-height:470px;

    background:#fff;
    border-radius:26px;
    padding:20px;

    display:flex;
    flex-direction:column;

    overflow: visible;

    box-shadow:0 8px 22px rgba(0,0,0,.18);
}

.home-footer{
  width:100%;
  margin-top:15px;
  padding:5px 5px 5px;

  display:flex;
  justify-content:center;
  align-items:center;
  gap: 25px;
  flex-wrap:nowrap;
}

.home-footer img{
  display:block;
  width:auto;
  height:70px;
  max-width:190px;
  object-fit:contain;
}

.home-footer .mayor-footer-logo{
  height:100px;
  max-width:230px;
}




/* =====================================================
   EXTREME HEAT-SPOT POPUPS
===================================================== */

.heat-popup {
  min-width: 250px;
  padding: 2px 0 4px;
}

.heat-popup-type {
  display: inline-flex;
  align-items: center;

  margin-bottom: 14px;
  padding: 6px 11px;

  border-radius: 20px;
  background: #f2eee9;

  color: #b84f1c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.heat-popup-section {
  padding: 12px 0;
  border-top: 1px solid #e5e5e5;
}

.heat-popup-heading {
  margin-bottom: 5px;
  color: #292d30;
  font-size: 14px;
  font-weight: 800;
}

.heat-popup-copy {
  color: #60676c;
  font-size: 13px;
  line-height: 1.55;
}

/* Round and soften the ArcGIS popup */


  .equity-text{
      display:flex;
      flex-direction:column;
      justify-content:center;

      min-height:320px;
      padding:40px 0;
  }

  .equity-text h2{
      margin:0;
      line-height:1.15;
  }

.equity-map-card .esri-popup__main-container {
  overflow: hidden;
  border-radius: 18px;
}

.equity-map-card .esri-popup__header-title {
  color: #262a2d;
  font-size: 18px;
  font-weight: 800;
}

.equity-map-card .esri-popup__content {
  margin-top: 0;
}

.equity-map-card .esri-popup__footer {
  border-top: 1px solid #ededed;
}


/* Keep ArcGIS popups above the custom opacity toolbar */
.equity-map-card .esri-popup {
  z-index: 50 !important;
}

.equity-map-card .esri-popup__main-container {
  z-index: 51 !important;
  max-height: 520px;
}

/* Keep the custom toolbar below the popup */
.heat-map-toolbar {
  z-index: 5;
}




/* =====================================================
   HEAT-SPOT ICON LEGEND
===================================================== */

.heat-spots-legend {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dedede;
}

.heat-spots-legend h3 {
    margin: 0 0 12px;
    color: #2b2f32;
    font-size: 14px;
    font-weight: 800;
}

.heat-spots-legend-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.heat-spots-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #555c61;
    font-size: 12px;
    font-weight: 700;
}

.heat-spots-legend-item img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
}

.heat-map-instructions {
    margin-top: 16px !important;
}

@media (max-width: 700px) {
    .heat-spots-legend-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {
  .heat-map-legend {
    left: 14px;
    right: 14px;
    bottom: 125px;
    width: auto;
  }
}


/* =========================================
   HEAT VULNERABILITY MAP CARD
========================================= */

.vulnerability-card {
  width: 100%;
  height: 520px;
  min-width: 0;

  background: #f8f3e8;
  border-radius: 36px;
  overflow: hidden;

  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

.vulnerability-map-wrapper {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background: #ececec;
}



#heatVulnerabilityMap {
  width: 100%;
  height: 100%;
}

.vulnerability-map-loading {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.92);
  color: #444;

  font-size: 16px;
  font-weight: 700;

  z-index: 10;
}

.vulnerability-map-loading.hidden {
  display: none;
}

/* Keep the expanded legend manageable */
#heatVulnerabilityMap .esri-legend {
  width: 270px;
  max-height: 360px;
  overflow-y: auto;
}


/* Responsive layout */
@media (max-width: 1050px) {

  .equity-section {
    grid-template-columns: 1fr;
  }

  .vulnerability-card {
    height: 460px;
  }
}

@media (max-width: 600px) {

  .vulnerability-card {
    height: 390px;
    border-radius: 20px;
  }

  .vulnerability-map-wrapper {
    border-radius: 20px;
  }

  #heatVulnerabilityMap .esri-legend {
    width: 230px;
    max-height: 290px;
  }
}


/* Vulnerability map opacity control */

.vulnerability-map-toolbar {
  position: absolute;
  right: 18px;
  bottom: 28px;
  left: 18px;
  z-index: 8;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  pointer-events: none;
}

.vulnerability-opacity-control {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 11px 16px;
  border-radius: 14px;

  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);

  color: #353a3d;
  font-size: 13px;
  font-weight: 700;

  pointer-events: auto;
}

.vulnerability-opacity-control input {
  width: 150px;
  accent-color: #d45f22;
}


@media (max-width: 650px) {
  .vulnerability-map-toolbar {
    right: 12px;
    bottom: 25px;
    left: 12px;
  }

  .vulnerability-opacity-control {
    width: 100%;
  }

  .vulnerability-opacity-control input {
    flex: 1;
    width: auto;
  }
}


/* =====================================
   FINAL COOLING LIST COLOR OVERRIDE
===================================== */

.cooling-list,
.clean-list {
  background: rgba(255, 239, 214, 0.96) !important;
}

/* Header behind "Cooling Amenities" */
.list-title-row {
  background: #ffefd6 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Remove any separate white block behind the title */
.cooling-list h3,
.clean-list h3,
.list-title-row h3 {
  background: transparent !important;
  color: #111 !important;
}

/* Dropdown */
.list-title-row select {
  background: #f8dfbf !important;
  color: #111 !important;
  border: 2px solid #d5aa78 !important;
}

/* Individual icons */
.cooling-icon,
.modern-list .cooling-icon,
.modern-list .place-icon {
  background: #f4d9b6 !important;
}

/* Individual location rows */
.clean-place,
.cooling-item,
.place-card {
  background: transparent !important;
}

body.home-body {
  background: #6d3f22;
}

body.home-body .app {
  background:
    linear-gradient(
      rgba(255,255,255,.05),
      rgba(255,255,255,.05)
    ),
    url("../backgrounds/heat-background.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  border-radius: 34px;
}

body.about-body {
  background: #8b4c22;
}

body.about-body .app {
  background:
    linear-gradient(
      rgba(255, 140, 0, 0.18),
      rgba(120, 45, 0, 0.25)
    ),
    url("../backgrounds/about-background.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  border-radius: 34px;
}


body.resources-body {
  background: #6e4a32;
}

body.resources-body .app {
  background:
    linear-gradient(
      rgba(255,255,255,.08),
      rgba(255,255,255,.08)
    ),
    url("../backgrounds/resources-background.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  border-radius: 34px;
}



body.why-body{
    background:#4d2d1d;
}







/* =====================================================
   WHY CARE PAGE — FINAL RESPONSIVE OVERRIDES
===================================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.why-body *,
.why-body *::before,
.why-body *::after {
  box-sizing: border-box;
}

/* =====================================================
   DESKTOP PAGE FRAME
===================================================== */

.app {
  display: flex;
  width: 100%;
  max-width: 1800px;

  height: auto;
  min-height: 0;

  margin: 0 auto;
  padding: 18px;
  gap: 18px;

  align-items: stretch;
}

.sidebar {
  flex: 0 0 280px;
  width: 280px;
  min-width: 280px;
  max-width: 280px;
}

.why-page {
  position: relative;
  isolation: isolate;

  flex: 1 1 auto;
  width: calc(100% - 298px);
  max-width: 1500px;
  min-width: 0;

  background: transparent;
  overflow-x: hidden;
}

.why-content {
  width: 100%;
  max-width: 1500px;

  margin-inline: auto;
  padding: 0 clamp(18px, 3vw, 55px) 70px;
}

/* =====================================================
   HERO
===================================================== */

.why-hero {
  width: 100%;
  height: clamp(320px, 32vw, 500px);
  min-height: 320px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.why-page-wave-bg {
  top: clamp(285px, 29vw, 450px);
  left: clamp(12px, 2.5vw, 45px);
  right: clamp(12px, 2.5vw, 45px);
}

/* =====================================================
   MAIN SECTIONS
===================================================== */

.health-section,
.justice-section,
.equity-section,
.affected-section {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.health-section {
  margin: -70px 0 80px;
  padding: 45px 55px 55px;
}

.justice-section {
  margin: 70px 0 40px;
}

.equity-section {
  margin: 80px 0 40px;
}

.affected-section {
  margin: 80px 0 40px;
}

/* =====================================================
   DESKTOP CARDS AND MAPS
===================================================== */

.health-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.health-item {
  min-height: 185px;
}

.justice-map-card {
  width: 100%;
  height: 520px;
}

.equity-map-card {
  width: 100%;
  height: 580px;
}

.affected-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.affected-card {
  width: 100%;
  height: 360px;
  aspect-ratio: auto;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

  .app {
    gap: 12px;
    padding: 12px;
  }

  .sidebar {
    flex-basis: 230px;
    width: 230px;
    min-width: 230px;
    max-width: 230px;
  }

  .why-page {
    width: calc(100% - 242px);
    max-width: none;
  }

  .why-content {
    padding-inline: 28px;
  }

  .health-section {
    padding-inline: 25px;
  }

  .health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .justice-section,
  .equity-section,
  .affected-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .justice-map-card,
  .equity-map-card {
    height: 480px;
  }

  .justice-text h2,
  .equity-text h2,
  .affected-text h2 {
    font-size: 46px;
    text-align: left;
  }

  .equity-text,
  .affected-text {
    width: 50%;
    max-width: none;
  }

  .affected-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

 .affected-card {
    height: 380px;
  }

}

/* =====================================================
   MOBILE NAVIGATION AND PHONE LAYOUT
   KEEP THIS AT THE BOTTOM OF STYLE.CSS
===================================================== */

.mobile-menu-btn {
  display: none;
}

@media screen and (max-width: 700px) {

  /* ---------------- PAGE LAYOUT ---------------- */

  .app {
    display: block;
    width: 100%;
    max-width: none;
    padding: 8px;
  }

  .main-content,
  .about-page,
  .why-page,
  .resources-page,
  .climate-page {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
  }

  /* ---------------- HAMBURGER BUTTON ---------------- */

  .mobile-menu-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    left: auto;
    z-index: 10001;

    display: flex;
    width: 52px;
    height: 48px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 0;

    background: rgba(255, 255, 255, 0.96);
    border: none;
    border-radius: 14px;

    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 4px;

    background: #6b3b22;
    border-radius: 10px;

    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  /* ---------------- SIDEBAR DRAWER ---------------- */

  .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 10000;

    display: flex;
    flex-direction: column;

    width: min(82vw, 320px);
    min-width: 0;
    max-width: 320px;
    height: 100dvh;

    margin: 0;
    padding: 82px 18px 24px;

    overflow-y: auto;

    border-radius: 0 28px 28px 0;

    transform: translateX(-105%);
    transition: transform 0.35s ease;

    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.25);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* ---------------- NAVIGATION ---------------- */

  .nav-menu {
    display: flex;
    flex-direction: column;

    width: 100%;
    gap: 10px;
    margin: 0;
  }

  .nav-group {
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .dropdown-btn {
    display: flex;
    width: 90%;
    min-height: 56px;

    align-items: center;
    justify-content: flex-start;

    gap: 10px;
    margin: 0 auto;
    padding: 10px 14px;
  }

  .dropdown-btn img {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .dropdown-btn span:not(.arrow) {
    flex: 0 0 auto;
    font-size: 17px;
  }

  .dropdown-btn .arrow {
    margin-left: 14px;
    font-size: 15px;
  }

  /* ---------------- SUBMENUS ---------------- */

  .submenu {
    margin: 5px 0 8px 46px;
  }

  .submenu a {
    display: block;

    padding: 7px 0;

    color: #17320b;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
  }

  /* ---------------- TIP OF THE DAY ---------------- */

  .daily-tip {
    display: block;

    min-height: 230px;
    margin-top: 350px;
    padding: 0 10px;

    flex-shrink: 0;
  }

  .daily-tip h3 {
    font-size: 24px;
  }

  .daily-tip p {
    font-size: 15px;
    line-height: 1.5;
  }

  /* ---------------- OVERLAY ---------------- */

  body.menu-open::after {
    content: "";

    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0, 0, 0, 0.42);
  }

  /* ---------------- HAMBURGER TO X ---------------- */

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }


  /* ---------------- WHY CARE PAGE ---------------- */

  .why-page {
    width: 100%;
    max-width: none;
  }

  .why-content {
    width: 100%;
    max-width: none;
    padding: 0 14px 45px;
  }

  .why-hero {
    width: 100%;
    height: 300px;
    min-height: 300px;
    background-position: center;
  }

  .why-hero-text {
    padding: 28px 18px;
  }

  .why-hero h2 {
    font-size: 24px;
  }

  .why-hero h1 {
    width: auto;
    max-width: 100%;
    font-size: 40px;
  }

  .why-page-wave-bg {
    top: 270px;
    left: 8px;
    right: 8px;
    border-radius: 24px;
  }

  /* ---------------- HEALTH CARDS ---------------- */

  .health-section {
    width: 100%;
    margin: -35px 0 45px;
    padding: 30px 10px;
  }

  .health-content h2 {
    padding-top: 20px;
    font-size: 30px;
  }

  .health-content h3 {
    font-size: 18px;
  }

  .health-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .health-item {
    min-height: 145px;
  }

  /* ---------------- TEXT AND MAP SECTIONS ---------------- */

  .justice-section,
  .equity-section,
  .affected-section {
    width: 100%;
    margin: 45px 0;

    grid-template-columns: 1fr;
    gap: 24px;
  }

  .justice-text h2,
  .equity-text h2,
  .affected-text h2 {
    margin: 0;
    padding: 35px 0;

    font-size: 36px;
    line-height: 1.15;
    text-align: left;
  }

  .justice-map-card,
  .equity-map-card {
    width: 100%;
    height: 390px;
    border-radius: 20px;
  }

  /* ---------------- AFFECTED CARDS ---------------- */

.affected-grid {
    grid-template-columns: 1fr;
    gap: 22px;

    width: 100%;
    justify-items: center;
  }

  .affected-card {
    width: 88%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 4 / 5;

    margin: 0 auto;

    border-radius: 26px;
    overflow: hidden;
  }

  .affected-card > img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    background: transparent;
  }

  /* ---------------- MAP CONTROLS ---------------- */

  .heat-map-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .heat-layer-control,
  .heat-opacity-control {
    width: 100%;
  }

  .heat-opacity-control input {
    flex: 1;
    width: auto;
  }


   .footer-logos {
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    width: 100%;
    gap: 8px;

    padding: 18px 10px;

    overflow: hidden;
    box-sizing: border-box;
  }

  .footer-logos img {
    flex: 1 1 0;
    min-width: 0;

    width: 100%;
    max-width: 70px;
    height: auto;

    object-fit: contain;
  }
}


@media screen and (max-width: 480px) {

  .sidebar {
    width: 88vw;
    max-width: 310px;
  }

  .dropdown-btn {
    width: 92%;
  }

  .dropdown-btn span:not(.arrow) {
    font-size: 16px;
  }

  .submenu a {
    font-size: 13px !important;
  }

  .affected-card {
    height: 370px;
  }

 .affected-card {
    width: 86%;
    max-width: 330px;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .home-footer img,
  .home-footer .mayor-footer-logo {
    max-width: 90px !important;
    height: 50px !important;
    max-height: 50px !important;
  }

}






/* =====================================================
   INDEX / HOME PAGE — PHONE LAYOUT
===================================================== */

@media screen and (max-width: 700px) {

  /* Prevent horizontal overflow */
  body.home-body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  body.home-body *,
  body.home-body *::before,
  body.home-body *::after {
    box-sizing: border-box;
  }

  body.home-body .app {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px;
  }

  body.home-body .main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  /* =====================================================
     HERO
  ===================================================== */


  body.home-body .hero {
    position: relative;

    width: 100%;
    max-width: 100%;

    /* Hero scales with phone width */
    height: clamp(340px, 105vw, 470px);
    min-height: 0;

    margin: 0;
    padding: 0;

    overflow: hidden;
    border-radius: clamp(22px, 5vw, 32px);

    /*
      Keep your existing desktop background-image.
      This controls how it behaves on phones.
    */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
  }


  body.home-body .hero-meta {
    position: absolute;
    top: clamp(62px, 15vw, 82px);
    left: clamp(18px, 5vw, 30px);
    right: 88px;
    z-index: 3;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    width: auto;
    gap: 8px 18px;

    margin: 0;
    padding: 0;
  }

  body.home-body .meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  body.home-body .meta-item img {
    width: clamp(19px, 5vw, 24px);
    height: clamp(19px, 5vw, 24px);

    object-fit: contain;
    flex-shrink: 0;
  }

  body.home-body .meta-item span {
    font-size: clamp(13px, 3.7vw, 17px);
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
  }

  /* Hero text block */

  body.home-body .hero-text {
    position: absolute;
    left: clamp(20px, 6vw, 38px);
    right: clamp(20px, 6vw, 38px);
    bottom: clamp(28px, 8vw, 48px);
    z-index: 2;

    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
  }

  /* Greeting */

  body.home-body .hero-text h2 {
    width: 100%;
    max-width: 420px;

    margin: 0 0 clamp(10px, 3vw, 18px);

    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.08;
    text-align: left;

    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Main hero heading */

  body.home-body .hero-text h1 {
    width: 100%;
    max-width: 520px;

    margin: 0;

    font-size: clamp(40px, 11vw, 64px);
    line-height: 1.02;
    text-align: left;

    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* =====================================================
     DASHBOARD PANEL
  ===================================================== */

  body.home-body .dashboard-panel {
    margin: 18px 0 0;
    padding: 16px;

    border-radius: 28px;
    overflow: hidden;
  }

  /* Stack the three main cards */

  body.home-body .cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;

    gap: 18px;

    margin: 0;
    padding: 0;
  }

  body.home-body .info-card,
  body.home-body .temperature-card,
  body.home-body .air-card,
  body.home-body .activity-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;

    margin: 0 !important;
    padding: 20px;

    box-sizing: border-box;
    overflow: hidden;
  }

  /* =====================================================
     CARD HEADINGS
  ===================================================== */

  body.home-body .card-title {
    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 10px;
    padding: 12px 14px;

    box-sizing: border-box;
  }

  body.home-body .card-title img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
  }

  body.home-body .card-title h2 {
    margin: 0;

    font-size: 25px;
    line-height: 1.15;

    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* =====================================================
     TEMPERATURE CARD
  ===================================================== */

  body.home-body .temperature-body {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;
    margin: 25px 0 18px;
  }

  body.home-body .weather-main-icon {
    width: 115px;
    height: 115px;
    object-fit: contain;
    flex-shrink: 0;
  }

  body.home-body .temperature-body h3 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
  }

  body.home-body .temperature-body p {
    margin: 8px 0 0;
    font-size: 17px;
  }

  body.home-body .status-text {
    width: 100%;
    margin: 12px 0 20px;

    font-size: 24px;
    line-height: 1.2;
    text-align: center;
  }

  body.home-body .mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;
    width: 100%;
  }

  body.home-body .mini-card {
    min-width: 0;
    padding: 12px 6px;

    font-size: 13px;
    text-align: center;
  }

  body.home-body .mini-card strong {
    display: block;
    margin-top: 5px;
    font-size: 17px;
  }

  /* =====================================================
     AIR QUALITY CARD
  ===================================================== */

  body.home-body .air-body {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;
    margin: 22px 0;

    text-align: center;
  }

  body.home-body .aqi-wrap {
    width: 155px;
    height: 155px;
    flex-shrink: 0;
  }

  body.home-body .aqi-gauge {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  body.home-body .aqi-wrap span {
    font-size: 38px;
  }

  body.home-body .air-body h3 {
    margin: 0 0 5px;
    font-size: 22px;
  }

  body.home-body .air-body h4 {
    margin: 0;
    font-size: 33px;
  }

  body.home-body .air-body p {
    margin: 10px auto 0;
    max-width: 280px;

    font-size: 16px;
    line-height: 1.45;
  }

  body.home-body .pollutant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 8px;
    width: 100%;
  }

  body.home-body .pollutant-card {
    min-width: 0;
    padding: 12px 6px;

    font-size: 15px;
    text-align: center;
  }

  body.home-body .pollutant-card strong {
    display: block;
    margin-top: 5px;
    font-size: 20px;
  }

  /* =====================================================
     ACTIVITY CARD
  ===================================================== */

  body.home-body .activity-card {
    padding: 20px;
  }

  body.home-body .activity-title {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
  }

  body.home-body .activity-title h2 {
    width: 100%;

    font-size: 25px;
    line-height: 1.2;
    text-align: center;
  }

  body.home-body .activity-intro {
    width: 100%;
    max-width: 100%;

    margin: 18px 0;

    font-size: 16px;
    line-height: 1.45;
    text-align: center;
  }

  body.home-body .activity-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
    width: 100%;
  }

  body.home-body .activity-option {
    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    gap: 14px;
    padding: 14px;

    box-sizing: border-box;
  }

  body.home-body .activity-option img {
    width: 64px;
    height: 64px;

    object-fit: contain;
    flex-shrink: 0;
  }

  body.home-body .activity-option > div {
    min-width: 0;
  }

  body.home-body .activity-option h3 {
    margin: 0 0 5px;

    font-size: 18px;
    line-height: 1.2;
  }

  body.home-body .activity-option p {
    margin: 0;

    font-size: 14px;
    line-height: 1.4;

    overflow-wrap: normal;
    word-break: normal;
  }

  /* =====================================================
     FOOTER LOGOS — ONE ROW, NOT A GRID
  ===================================================== */

  body.home-body .home-footer {
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    width: 100%;
    max-width: 100%;

    gap: 8px;
    padding: 18px 10px;

    overflow: hidden;
    box-sizing: border-box;
}

body.home-body .home-footer img,
body.home-body .home-footer .mayor-footer-logo {

    flex: 1 1 0;
    min-width: 0;

    width: 100%;
    max-width: 70px;
    height: auto;

    margin: 0;

    object-fit: contain;
    object-position: center;
}

/* =====================================================
   SMALLER PHONES
===================================================== */

@media screen and (max-width: 420px) {

  body.home-body .hero {
    min-height: 500px;
    padding: 78px 18px 36px;
  }

  body.home-body .hero-text h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  body.home-body .hero-text h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  body.home-body .hero-meta {
    top: 70px;
    left: 18px;
    right: 82px;
    gap: 7px 13px;
  }

  body.home-body .meta-item img {
    width: 22px;
    height: 22px;
  }

  body.home-body .meta-item span {
    font-size: 14px;
  }

  body.home-body .dashboard-panel {
    padding: 12px;
  }

  body.home-body .info-card {
    padding: 16px;
  }

  body.home-body .mini-grid,
  body.home-body .pollutant-grid {
    gap: 6px;
  }

  body.home-body .activity-option img {
    width: 54px;
    height: 54px;
  }

  body.home-body .home-footer img,
  body.home-body .home-footer .mayor-footer-logo {
    flex-basis: 23%;
    max-width: 23% !important;
    height: 36px !important;
    max-height: 36px !important;
  }

}



/* =====================================================
   ABOUT PAGE — PHONE LAYOUT
===================================================== */

@media screen and (max-width: 700px) {

  body.about-body {
    width: 100%;
    overflow-x: hidden;
  }

  body.about-body .app,
  body.about-body .about-page,
  body.about-body .about-gallery-slider,
  body.about-body .about-text,
  body.about-body .what-we-do,
  body.about-body .service-row,
  body.about-body .program-section,
  body.about-body .program-logos,
  body.about-body .video-card-row,
  body.about-body .footer-logos {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Main page container */

  body.about-body .about-page {
    margin: 0;
    padding: 12px;
    overflow: hidden;
    border-radius: 24px;
  }

  /* Image slider */

  body.about-body .about-gallery-slider {
    height: 380px;
    margin: 0 0 28px;
    border-radius: 24px;
  }

  body.about-body .about-gallery-slider .slide {
    object-fit: cover;
    object-position: center;
  }

  /* About paragraphs */

  body.about-body .about-text {
    margin: 35px 0;
    padding: 0 10px;

    font-size: 18px;
    line-height: 1.55;
    text-align: center;
  }

  body.about-body .about-text p {
    margin: 0 0 20px;
  }

  /* What We Do section */

  body.about-body .what-we-do {
    padding: 28px 10px;
    overflow: hidden;
  }

  body.about-body .what-we-do h2 {
    margin: 0 0 30px;

    font-size: 38px;
    line-height: 1.1;
    text-align: center;
  }

  /* Change five desktop columns into two phone columns */

  body.about-body .service-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px 16px;
    justify-items: center;
    align-items: start;

    margin: 0;
    padding: 0;
  }

  body.about-body .service-item {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
  }

  body.about-body .service-item img {
    width: 76px;
    height: 76px;

    max-width: 100%;
    object-fit: contain;
  }

  body.about-body .service-item h3 {
    margin: 12px 0 0;

    font-size: 18px;
    line-height: 1.2;
  }

  /* Center the fifth service item */

  body.about-body .service-item:last-child {
    grid-column: 1 / -1;
    width: 50%;
  }

  /* Program logos */

  body.about-body .program-section {
    margin-top: 30px;
  }

  body.about-body .program-logos {
    display: grid;
    grid-template-columns: 1fr;

    gap: 22px;
    margin: 0 0 30px;
    padding: 24px 18px;
  }

  body.about-body .program-logos img {
    display: block;

    width: 100%;
    max-width: 250px;
    max-height: 150px;

    margin: 0 auto;
    object-fit: contain;
    align-self: center;
  }

  /* Videos */

  body.about-body .video-card-row {
    display: grid;
    grid-template-columns: 1fr;

    gap: 20px;
    padding-top: 20px;
  }

  body.about-body .video-card {
    width: 100%;
    min-width: 0;
    padding: 8px;
  }

  body.about-body .video-card video {
    width: 100%;
    height: 220px;

    object-fit: cover;
    border-radius: 16px;
  }

  body.about-body .video-card h3 {
    margin: 14px 8px 10px;
    font-size: 21px;
  }

  /* Footer logos — keep all four in one row */

  body.about-body .footer-logos {
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    width: 100%;
    max-width: 100%;

    gap: 8px;
    margin-top: 28px;
    padding: 18px 10px;

    overflow: hidden;
    box-sizing: border-box;
}

body.about-body .footer-logos img {
    flex: 1 1 0;
    min-width: 0;

    width: 100%;
    max-width: 70px;
    height: auto;

    margin: 0;

    object-fit: contain;
    object-position: center;
}
}

/* Smaller phones */

@media screen and (max-width: 480px) {

  body.about-body .about-gallery-slider {
    height: 310px;
  }

  body.about-body .about-text {
    font-size: 16px;
  }

  body.about-body .what-we-do h2 {
    font-size: 34px;
  }

  body.about-body .service-row {
    gap: 24px 12px;
  }

  body.about-body .service-item img {
    width: 66px;
    height: 66px;
  }

  body.about-body .service-item h3 {
    font-size: 16px;
  }

  body.about-body .video-card video {
    height: 200px;
  }

  body.about-body .footer-logos img {
    height: 34px !important;
    max-height: 34px !important;
  }
}


/* =====================================================
   FINAL HOME HERO PHONE FIX
   THIS MUST BE THE LAST CODE IN style.css
===================================================== */

@media screen and (max-width: 700px) {

  body.home-body .hero {
    position: relative !important;

    width: 100% !important;
    max-width: 100% !important;

    height: clamp(320px, 92vw, 410px) !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    overflow: hidden !important;
    border-radius: 28px !important;

    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
  }

  /* Date and time */

  body.home-body .hero-meta {
    position: absolute !important;

    top: 72px !important;
    left: 22px !important;
    right: 90px !important;
    bottom: auto !important;

    z-index: 5 !important;

    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;

    width: auto !important;
    gap: 8px 18px !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  body.home-body .meta-item {
    display: flex !important;
    align-items: center !important;

    min-width: 0 !important;
    gap: 7px !important;
  }

  body.home-body .meta-item img {
    width: 21px !important;
    height: 21px !important;

    object-fit: contain !important;
    flex-shrink: 0 !important;
  }

  body.home-body .meta-item span {
    font-size: clamp(13px, 3.8vw, 16px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  /* Hero text */

  body.home-body .hero-text {
    position: absolute !important;

    top: auto !important;
    left: 22px !important;
    right: 22px !important;
    bottom: 28px !important;

    z-index: 4 !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  /* Good Morning / Afternoon */

  body.home-body .hero-text h2 {
    width: 100% !important;
    max-width: 340px !important;

    margin: 0 0 12px !important;
    padding: 0 !important;

    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.08 !important;

    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  /* How does Newark feel today? */

  body.home-body .hero-text h1 {
    width: 100% !important;
    max-width: 370px !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: clamp(36px, 10vw, 50px) !important;
    line-height: 1.02 !important;

    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}

/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media screen and (max-width: 480px) {

  body.home-body .hero {
    height: 340px !important;
    min-height: 0 !important;

    /*
      Change 50% to move the photograph:
      smaller number = image moves right
      larger number = image moves left
    */
    background-position: 50% center !important;
  }

  body.home-body .hero-meta {
    top: 66px !important;
    left: 18px !important;
    right: 78px !important;

    gap: 7px 12px !important;
  }

  body.home-body .meta-item img {
    width: 19px !important;
    height: 19px !important;
  }

  body.home-body .meta-item span {
    font-size: 13px !important;
  }

  body.home-body .hero-text {
    left: 18px !important;
    right: 18px !important;
    bottom: 24px !important;
  }

  body.home-body .hero-text h2 {
    max-width: 285px !important;

    margin-bottom: 9px !important;
    font-size: 25px !important;
  }

  body.home-body .hero-text h1 {
    max-width: 310px !important;

    font-size: 39px !important;
    line-height: 1.03 !important;
  }
}




/* =====================================================
   CLIMATE DATA PAGE — PHONE LAYOUT
===================================================== */

@media screen and (max-width: 700px) {

  /* Prevent horizontal overflow */

  body.resources-body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  body.resources-body *,
  body.resources-body *::before,
  body.resources-body *::after {
    box-sizing: border-box;
  }

  body.resources-body .app {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 8px;
  }

  body.resources-body .climate-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 20px 12px 30px;

    overflow: hidden;
    border-radius: 26px;
  }

  /* =====================================================
     CLIMATE PAGE HEADER
  ===================================================== */

  body.resources-body .climate-header {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0 0 30px;
    padding: 65px 14px 25px;
  }

  body.resources-body .header-text {
    width: 100%;
    max-width: 100%;
  }

  body.resources-body .climate-header h2 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 14px;
    padding: 0;

    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.12;
  }

  body.resources-body .climate-header h1 {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    font-size: clamp(38px, 11vw, 56px);
    line-height: 1.05;

    overflow-wrap: normal;
    word-break: normal;
  }

  /* =====================================================
     DATASET GRID
  ===================================================== */

  body.resources-body .dataset-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    gap: 20px;

    margin: 0;
    padding: 10px 0 30px;
  }

  /* =====================================================
     DATASET CARDS
  ===================================================== */

  body.resources-body .dataset-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 260px;

    margin: 0 !important;
    padding: 24px 20px 90px;

    overflow: hidden;
    border-radius: 24px;
  }

  body.resources-body .dataset-card h2 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 16px;

    font-size: clamp(21px, 6vw, 28px);
    line-height: 1.2;
    text-align: left;

    overflow-wrap: anywhere;
  }

  body.resources-body .dataset-card p {
    width: 100%;
    max-width: 100%;

    margin: 0 0 12px;

    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.45;

    overflow-wrap: anywhere;
  }

  body.resources-body .dataset-card .source {
    margin-top: auto;
    margin-bottom: 12px;

    font-size: clamp(13px, 3.8vw, 16px);
    line-height: 1.4;
  }

  body.resources-body .dataset-card a {
    position: absolute;

    right: 20px;
    bottom: 22px;

    display: inline-block;

    width: auto;
    min-width: 145px;

    margin: 0;
    padding: 10px 16px;

    font-size: 16px;
    text-align: center;
  }

  /* =====================================================
     FOOTER LOGOS — ONE ROW
  ===================================================== */

  body.resources-body .footer-logos {
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    width: 100%;
    max-width: 100%;

    gap: 8px;
    margin-top: 20px;
    padding: 18px 10px;

    overflow: hidden;
    box-sizing: border-box;
}

body.resources-body .footer-logos img {
    flex: 1 1 0;
    min-width: 0;

    width: 100%;
    max-width: 70px;
    height: auto;

    margin: 0;

    object-fit: contain;
    object-position: center;
}
}

/* =====================================================
   SMALLER PHONES
===================================================== */

@media screen and (max-width: 480px) {

  body.resources-body .climate-page {
    padding: 16px 10px 26px;
  }

  body.resources-body .climate-header {
    padding: 58px 10px 20px;
  }

  body.resources-body .climate-header h2 {
    font-size: 25px;
  }

  body.resources-body .climate-header h1 {
    font-size: 40px;
  }

  body.resources-body .dataset-grid {
    gap: 16px;
  }

  body.resources-body .dataset-card {
    min-height: 240px;
    padding: 20px 16px 82px;
  }

  body.resources-body .dataset-card h2 {
    font-size: 22px;
  }

  body.resources-body .dataset-card p {
    font-size: 14px;
  }

  body.resources-body .dataset-card a {
    right: 16px;
    bottom: 18px;

    min-width: 130px;
    padding: 9px 13px;

    font-size: 15px;
  }

  body.resources-body .footer-logos img {
    height: 33px !important;
    max-height: 33px !important;
  }
}




/* =====================================================
   RESOURCES PAGE — PHONE LAYOUT
===================================================== */

@media screen and (max-width: 700px) {

  body.resources-body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  body.resources-body *,
  body.resources-body *::before,
  body.resources-body *::after {
    box-sizing: border-box;
  }

  body.resources-body .app {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 8px;
  }

  body.resources-body .resources-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 18px 12px 30px;

    overflow: hidden;
    border-radius: 26px;
  }

  /* =====================================================
     HEADER
  ===================================================== */

  body.resources-body .resources-header {
    display: block;

    width: 100%;
    max-width: 100%;
    min-height: 0;

    margin: 0 0 28px !important;
    padding: 65px 14px 26px !important;

    overflow: hidden;
  }

  body.resources-body .resources-header > div {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  body.resources-body .resources-header h2 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 12px;
    padding: 0;

    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.1;
  }

  body.resources-body .resources-header h1 {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    font-size: clamp(38px, 11vw, 56px);
    line-height: 1.05;

    overflow-wrap: normal;
    word-break: normal;
  }

  body.resources-body .resources-header h1 br {
    display: none;
  }

  /* =====================================================
     RESOURCE GRID
  ===================================================== */

  body.resources-body .resource-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    gap: 20px;

    margin: 0;
    padding: 10px 0 30px;
  }

  /* =====================================================
     RESOURCE CARDS
  ===================================================== */

  body.resources-body .resource-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: auto !important;
    min-height: 320px;

    margin: 0 !important;
    padding: 28px 22px 88px;

    overflow: hidden;
    border-radius: 26px;
  }

  body.resources-body .resource-card h2 {
    width: calc(100% - 105px);
    max-width: none;
    min-height: 0;

    margin: 0 0 18px;

    font-size: clamp(22px, 6vw, 29px);
    line-height: 1.18;
    text-align: left;

    overflow-wrap: anywhere;
  }


  body.resources-body .resource-card p {
    width: 100%;
    max-width: 100%;

    margin: 0;

    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.48;

    overflow-wrap: anywhere;
  }

  /* Logo in top-right corner */

  body.resources-body .resource-logo,
  body.resources-body .swea-logo,
  body.resources-body .njeja-logo {
    position: absolute;

    top: 22px;
    right: 18px;

    width: 85px !important;
    max-width: 85px !important;
    height: 70px !important;
    max-height: 70px !important;

    margin: 0;

    object-fit: contain;
    object-position: center;

    transform: none !important;
  }

  /* Website button */

  body.resources-body .resource-card a {
    position: absolute;

    right: 22px;
    bottom: 22px;

    width: auto;
    min-width: 155px;

    padding: 10px 16px;

    font-size: 16px;
    text-align: center;
  }

  /* =====================================================
     FOOTER LOGOS — ONE ROW
  ===================================================== */

body.resources-body .footer-logos {
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    width: 100%;
    max-width: 100%;

    gap: 8px;
    margin-top: 20px;
    padding: 18px 10px;

    overflow: hidden;
    box-sizing: border-box;
}

body.resources-body .footer-logos img {
    flex: 1 1 0;
    min-width: 0;

    width: 100%;
    max-width: 70px;
    height: auto;

    margin: 0;

    object-fit: contain;
    object-position: center;
}
}

/* =====================================================
   SMALLER PHONES
===================================================== */

@media screen and (max-width: 480px) {

  body.resources-body .resources-page {
    padding: 14px 10px 24px;
  }

  body.resources-body .resources-header {
    padding: 58px 10px 20px !important;
  }

  body.resources-body .resources-header h2 {
    font-size: 25px;
  }

  body.resources-body .resources-header h1 {
    font-size: 40px;
  }

  body.resources-body .resource-grid {
    gap: 16px;
  }

  body.resources-body .resource-card {
    min-height: 300px;
    padding: 24px 18px 82px;
  }

  body.resources-body .resource-card h2 {
    width: calc(100% - 90px);
    font-size: 22px;
  }

  body.resources-body .resource-card p {
    font-size: 15px;
  }

  body.resources-body .resource-logo,
  body.resources-body .swea-logo,
  body.resources-body .njeja-logo {
    top: 18px;
    right: 14px;

    width: 72px !important;
    max-width: 72px !important;
    height: 60px !important;
    max-height: 60px !important;
  }

  body.resources-body .resource-card a {
    right: 18px;
    bottom: 18px;

    min-width: 145px;
    padding: 9px 14px;

    font-size: 15px;
  }

  body.resources-body .footer-logos img {
    height: 33px !important;
    max-height: 33px !important;
  }
}






/* =====================================================
   COOLING FACILITIES PAGE — PHONE LAYOUT
   KEEP THIS AT THE VERY BOTTOM OF style.css
===================================================== */

@media screen and (max-width: 700px) {

  /* Prevent horizontal overflow */

  body.resources-body {
    width: 100%;
    margin: 0;
    overflow-x: hidden;
  }

  body.resources-body *,
  body.resources-body *::before,
  body.resources-body *::after {
    box-sizing: border-box;
  }

  body.resources-body .app {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 8px;
  }

  body.resources-body .resources-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 18px 12px 30px;

    overflow: hidden;
    border-radius: 26px;
  }

  /* =====================================================
     PAGE HEADER
  ===================================================== */

  body.resources-body .resources-header {
    display: block;

    width: 100%;
    max-width: 100%;
    min-height: 0;

    margin: 0 0 35px !important;
    padding: 58px 14px 20px !important;

    overflow: hidden;
  }

  body.resources-body .resources-header > div {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  body.resources-body .resources-header h2 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 12px;
    padding: 0;

    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.1;
  }

  body.resources-body .resources-header h1 {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    font-size: clamp(39px, 11vw, 56px);
    line-height: 1.05;

    overflow-wrap: normal;
    word-break: normal;
  }

  /* =====================================================
     COOLING SECTIONS
  ===================================================== */

  body.resources-body .cooling-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 35px 0 55px !important;
    padding: 0 !important;
  }

  /* Section heading and map button */

  body.resources-body .cooling-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    max-width: 100%;

    gap: 18px;
    margin: 0 0 22px;
  }

  body.resources-body .cooling-header > div {
    width: 100%;
    min-width: 0;
  }

  body.resources-body .cooling-header h2 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 10px;

    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.15;

    overflow-wrap: normal;
    word-break: normal;
  }

  body.resources-body .cooling-header p {
    width: 100%;
    max-width: 100%;

    margin: 0;

    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.45;
  }

  body.resources-body .map-button {
    align-self: flex-start;

    width: auto;
    max-width: 210px;

    margin: 0;
    padding: 10px 16px;

    font-size: 16px;
    line-height: 1.3;
    text-align: center;
  }

  /* =====================================================
     LIST AND MAP STACK
  ===================================================== */

  body.resources-body .cooling-content {
    display: grid !important;
    grid-template-columns: 1fr !important;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    gap: 20px;
    margin: 0;
  }

  /* =====================================================
     COOLING LIST
  ===================================================== */

  body.resources-body .cooling-list,
  body.resources-body .clean-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    height: auto !important;
    max-height: 480px;

    margin: 0;
    padding: 20px 16px;

    overflow-y: auto;
    overflow-x: hidden;

    border-radius: 24px;
  }

  /* List title */

  body.resources-body .list-title-row {
    position: sticky;
    top: 0;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    width: 100%;
    gap: 12px;

    margin: 0 0 10px;
    padding: 0 0 16px;
  }

  body.resources-body .list-title-row h3 {
    width: 100%;
    margin: 0;

    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.15;
  }

  body.resources-body .list-title-row select {
    width: 100%;
    max-width: 100%;

    padding: 10px 12px;

    font-size: 14px;
  }

  /* Individual place cards */

  body.resources-body .clean-place {
    display: grid;
    grid-template-columns: 1fr;

    width: 100%;
    min-width: 0;

    gap: 12px;
    padding: 20px 0;
  }

  body.resources-body .clean-details {
    width: 100%;
    min-width: 0;
  }

  body.resources-body .clean-details h4 {
    width: 100%;
    margin: 0 0 8px;

    font-size: clamp(20px, 5.5vw, 25px);
    line-height: 1.2;

    overflow-wrap: anywhere;
  }

  body.resources-body .clean-details p {
    width: 100%;
    max-width: 100%;

    margin: 5px 0;

    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.4;

    overflow-wrap: anywhere;
  }

  body.resources-body .clean-action {
    width: 100%;
    text-align: left;
  }

  body.resources-body .clean-action a {
    display: inline-block;

    width: auto;
    min-width: 130px;

    padding: 9px 14px;

    font-size: 15px;
    text-align: center;
  }

  /* =====================================================
     MAP
  ===================================================== */

  body.resources-body .cooling-map {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    height: 380px !important;
    min-height: 380px !important;

    margin: 0;

    border-radius: 24px;
    overflow: hidden;
  }

  body.resources-body .leaflet-container {
    width: 100% !important;
    height: 100% !important;
  }

  /* =====================================================
     CODE RED NOTICE
  ===================================================== */

  body.resources-body .cooling-notice {
    width: 100%;
    max-width: 100%;

    margin: 18px 0 22px;
    padding: 16px 18px;

    font-size: 15px;
    line-height: 1.5;
  }

  /* =====================================================
     FOOTER LOGOS — ONE ROW
  ===================================================== */

 body.resources-body .footer-logos {
    display: flex;
    justify-content: space-evenly;
    align-items: center;

    width: 100%;
    max-width: 100%;

    gap: 8px;
    margin-top: 20px;
    padding: 18px 10px;

    overflow: hidden;
    box-sizing: border-box;
}

body.resources-body .footer-logos img {
    flex: 1 1 0;
    min-width: 0;

    width: 100%;
    max-width: 70px;
    height: auto;

    margin: 0;

    object-fit: contain;
    object-position: center;
}
}

/* =====================================================
   SMALLER PHONES
===================================================== */

@media screen and (max-width: 480px) {

  body.resources-body .resources-page {
    padding: 14px 10px 24px;
  }

  body.resources-body .resources-header {
    padding: 54px 10px 18px !important;
  }

  body.resources-body .resources-header h2 {
    font-size: 25px;
  }

  body.resources-body .resources-header h1 {
    font-size: 40px;
  }

  body.resources-body .cooling-header h2 {
    font-size: 30px;
  }

  body.resources-body .cooling-header p {
    font-size: 16px;
  }

  body.resources-body .map-button {
    max-width: 180px;

    padding: 9px 14px;
    font-size: 15px;
  }

  body.resources-body .cooling-list,
  body.resources-body .clean-list {
    max-height: 430px;
    padding: 18px 14px;
  }

  body.resources-body .list-title-row h3 {
    font-size: 27px;
  }

  body.resources-body .clean-details h4 {
    font-size: 21px;
  }

  body.resources-body .clean-details p {
    font-size: 14px;
  }

  body.resources-body .cooling-map {
    height: 330px !important;
    min-height: 330px !important;
  }

  body.resources-body .footer-logos img {
    height: 32px !important;
    max-height: 32px !important;
  }
}
}







/* =====================================================
   KIDS ZONE PAGE
===================================================== */

body.kids-body,
body.kids-body .app,
body.kids-body .kids-page {
  overflow-x: hidden;
  overflow-y: visible;
}


.kids-body {
  margin: 0;

  font-family: Calibri, "Segoe UI", Arial, sans-serif;

  background:
    linear-gradient(
      rgba(250, 160, 110, 0.78),
      rgba(164, 158, 174, 0.88)
    ),
    url("../images/hero-bg.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.kids-page {
  position: relative;
  isolation: isolate;

  flex: 1;
  min-width: 0;

  padding: 24px;

  background: rgba(255, 255, 255, 0.12);
  border-radius: 30px;


  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =====================================================
   KIDS HERO
===================================================== */

.kids-hero {
  position: sticky;
  top: 12px;
  z-index: 20;

  width: 100%;

  height: calc(100vh - 24px);
  min-height: 680px;
  max-height: 880px;

  overflow: hidden;

  background: #aaa5b0;
  border-radius: 34px;

  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
}


.kids-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 340px;

  background: #f2a37f;
}

.belinda-bee {
  position: absolute;

  left: -210px;
  bottom: 60px;

  width: clamp(720px, 68vw, 1000px);

  height: auto;

  z-index: 5;
  pointer-events: none;
}



/* =====================================================
   SPEECH BUBBLE
===================================================== */


.speech-bubble{
    position: absolute;

    top: 20px;
    left: 350px;

    width:850px;
    height: 370px;

    z-index: 8;
}

.speech-bubble-img{
    width: 100%;
    height: 100%;

    display: block;
    object-fit: contain;
}

/* Text inside the bubble */

.speech-text{
    position: absolute;

    top: 55px;
    left: 80px;
    right: 85px;

    text-align: center;

    color: #111;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;

}

.speech-text strong{
    color: #543200;
    font-size: 25px;
}

/* =====================================================
   BELINDA INTRODUCTION
===================================================== */

.belinda-intro{
    position: absolute;

    right: 40px;
    bottom: 160px;

    width: 700px;
    max-width: 52%;

    z-index: 4;
}

.belinda-label {
  margin: 0 0 3px;

  color: #784000;
  font-size: 21px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.belinda-intro h1 {
  margin: 0 0 12px;

  color: #111;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 6vw, 86px);
  line-height: 1;
  text-transform: uppercase;
}

.belinda-intro p:last-child {
  max-width: 720px;
  margin: 0 auto;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.8vw, 39px);
  font-weight: 700;
  line-height: 1.25;
}

/* =====================================================
   HERO ACTION BUTTONS
===================================================== */

.kids-action-row{
    position: absolute;

    left: 50%;
    bottom: 28px;

    transform: translateX(-50%);

    width: calc(100% - 80px);

    display: flex;
     justify-content: center;
    align-items: stretch;

    width: 92%;
    gap: 28px;          /* reduce this for less space */

    z-index: 20;
}

.kids-action-button {
   flex: 1;            /* all buttons become equal width */

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    min-height: 92px;
    padding: 18px 22px;

    background: #fff;
    border: 3px solid #444;
    border-radius: 22px;

    text-decoration: none;
    color: #222;

    box-shadow: 0 8px 0 rgba(0,0,0,.18);

    transition: .25s ease;
}

.kids-action-button:hover{
    transform: translateY(-4px);
}

.kids-action-button strong{
    display:block;
    font-size:20px;
}

.kids-action-button small{
    display:block;
    margin-top:4px;

    font-size:14px;
    color:#666;
}

.action-icon{
    font-size:40px;
}

/* =====================================================
   KIDS CONTENT SECTIONS
===================================================== */

.kids-content-section {
  position: relative;
  z-index: 1;

  width: 100%;

  margin-top: 70px;
  padding: 42px;

  background: rgba(255, 255, 255, 0.96);
  border-radius: 30px;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}


.kids-content-section + .kids-content-section {
  margin-top: 70px;
}




.kids-section-heading {
  display: flex;
  align-items: center;

  gap: 18px;
  margin-bottom: 30px;
}

.kids-section-heading > span {
  font-size: 58px;
}

.kids-section-heading p {
  margin: 0 0 2px;

  color: #7c3500;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.kids-section-heading h2 {
  margin: 0;

  color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
}

/* Missions */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.mission-card {
  min-width: 0;

  padding: 26px;

  text-align: center;

  background: #fff7d1;
  border: 3px solid #f0bf45;
  border-radius: 24px;
}

.mission-icon {
  font-size: 60px;
}

.mission-card h3 {
  margin: 14px 0 10px;

  color: #153b5e;
  font-size: 26px;
}

.mission-card p {
  margin: 0 0 20px;

  font-size: 17px;
  line-height: 1.45;
}

.mission-card button {
  padding: 11px 20px;

  color: white;
  font-size: 16px;
  font-weight: 800;

  background: #3d8829;
  border: 0;
  border-radius: 12px;

  cursor: pointer;
}

/* Learning cards */

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.learning-card {
  display: flex;
  align-items: flex-start;

  gap: 18px;
  padding: 24px;

  background: #e4f3ff;
  border-radius: 22px;
}

.learning-card > span {
  font-size: 48px;
}

.learning-card h3 {
  margin: 0 0 8px;

  color: #13486f;
  font-size: 23px;
}

.learning-card p {
  margin: 0;

  font-size: 16px;
  line-height: 1.45;
}

/* Game */

.kids-game {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;

  background: #dff4c8;
}

.game-label {
  margin: 0;

  color: #6b3500;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-content h2 {
  max-width: 760px;
  margin: 6px 0 22px;

  color: #173c62;
  font-size: clamp(38px, 4vw, 48px);
}




.game-options {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

.game-options button {
  padding: 13px 18px;

  color: #173c62;
  font-size: 17px;
  font-weight: 800;

  background: white;
  border: 2px solid #75a9ee;
  border-radius: 12px;

  cursor: pointer;
}

.game-bee {
  font-size: 130px;
  text-align: center;
}

/* =====================================================
   KIDS PAGE — TABLET
===================================================== */

@media screen and (max-width: 1000px) {

  .kids-hero {
    min-height: 900px;
  }

  .belinda-bee {
    left: -20px;
    bottom: 175px;

    width: 520px;
  }

  .speech-bubble {
    left: 38%;
    width: 56%;
  }

  .belinda-intro {
    bottom: 235px;
    width: 62%;
  }

  .kids-action-row {
    grid-template-columns: 1fr;
    gap: 12px;

    right: 30px;
    bottom: 30px;
    left: 30px;
  }

  .kids-action-button {
    min-height: 65px;
  }

  .mission-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   KIDS PAGE — PHONE
===================================================== */

@media screen and (max-width: 700px) {

  body.kids-body {
    width: 100%;
    overflow-x: hidden;
  }

  body.kids-body *,
  body.kids-body *::before,
  body.kids-body *::after {
    box-sizing: border-box;
  }

  body.kids-body .app {
    display: block;

    width: 100%;
    padding: 8px;
  }

  body.kids-body .kids-page {
    width: 100%;
    max-width: 100%;

    padding: 10px;

    border-radius: 24px;
  }

  .kids-hero {
    display: flex;
    flex-direction: column;

    min-height: 0;

    padding-bottom: 20px;

    border-radius: 26px;
  }

  .kids-top {
    position: relative;

    height: auto;
    min-height: 245px;

    padding: 80px 18px 35px;
  }

  .speech-bubble {
    position: relative;
    top: auto;
    left: auto;

    width: 100%;
    min-height: 0;

    padding: 24px;

    border-width: 3px;
    border-radius: 40px;
  }

  .speech-bubble::after {
    left: 65px;
    bottom: -27px;

    width: 42px;
    height: 42px;

    border-right-width: 3px;
    border-bottom-width: 3px;
  }

  .speech-bubble p {
    font-size: 16px;
    line-height: 1.4;
  }

  .belinda-bee {
    position: relative;
    left: auto;
    bottom: auto;

    width: 88%;
    max-width: 410px;

    margin: -20px auto 0;
  }

  .belinda-intro {
    position: relative;
    right: auto;
    bottom: auto;

    width: calc(100% - 24px);

    margin: -15px auto 20px;
    padding: 25px 18px;

    border-radius: 18px;
  }

  .belinda-label {
    font-size: 15px;
  }

  .belinda-intro h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .belinda-intro p:last-child {
    font-size: clamp(18px, 5.5vw, 25px);
  }

  .kids-action-row {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;

    grid-template-columns: 1fr;

    width: calc(100% - 30px);

    gap: 12px;
    margin: 0 auto;
  }

  .kids-action-button {
    justify-content: flex-start;

    min-height: 72px;
    padding: 12px 18px;
  }

  .kids-action-button strong {
    font-size: 19px;
  }

  .kids-content-section {
    margin-top: 20px;
    padding: 25px 18px;

    border-radius: 24px;
  }

  .kids-section-heading {
    align-items: flex-start;

    gap: 12px;
    margin-bottom: 22px;
  }

  .kids-section-heading > span {
    font-size: 42px;
  }

  .kids-section-heading p {
    font-size: 14px;
  }

  .kids-section-heading h2 {
   color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
  }


  .mission-grid,
  .learning-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .mission-card {
    padding: 22px 18px;
  }

  .learning-card {
    padding: 19px 16px;
  }

  .kids-game {
    grid-template-columns: 1fr;
  }

  .game-content h2 {
    font-size: 28px;
  }

  .game-options {
    flex-direction: column;
  }

  .game-options button {
    width: 100%;
  }

  .game-bee {
    margin-top: 20px;
    font-size: 90px;
  }
}




/* ==========================================
   KIDS DASHBOARD
========================================== */

.kids-dashboard{

    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    gap:40px;

    margin:70px 0;

}

.dashboard-main{

    flex:1;

}

.dashboard-icons{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

    margin-bottom:35px;

}

.dashboard-icon-card{

    text-align:center;

}

.dashboard-icon-card img{

    width:165px;

    height:165px;

    object-fit:contain;

    margin-bottom:10px;

}

.dashboard-icon-card p{

    font-size:25px;

    font-weight:700;

    color:#23436d;

    line-height:1.2;

}

.hero-progress{

    display:flex;

    align-items:center;

    gap:22px;

    padding:26px 30px;

    border-radius:28px;

    background:linear-gradient(90deg,#f7ecff74,#ede6ff);

    box-shadow:0 12px 24px rgba(0,0,0,.08);

}

.hero-progress img{

    width:75px;

}

.hero-progress h3{

    margin:0 0 18px;

    color:#6a3fb6;

    font-size:24px;

}

.hero-progress p{

    margin:0;

    font-size:18px;

}


.hero-card{
    width:320px;
    padding:30px;

    position:relative;

    background:#f8f0ec;

    border-radius:
        43% 57% 48% 52% /
        35% 42% 58% 65%;

    transform:rotate(-1deg);

    text-align:center;

    box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.hero-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:#f7ede8;

    border-radius:
        42% 58% 55% 45% /
        40% 35% 65% 60%;

    transform:rotate(-2deg);

    box-shadow:0 15px 35px rgba(0,0,0,.15);

    z-index:-1;
}



.hero-card small{

     display:block;

    color:#177b5d;

    letter-spacing:3px;
    font-weight:700;

    margin-bottom:12px;

}


.hero-card .profile-picture{
    width:105px;
    height:105px;

    margin:10px auto 16px;
}

.hero-card .profile-picture img{
    width:100%;
    height:100%;

    margin:0;

    object-fit:cover;
}



.hero-card img{

    width:120px;

    margin:18px auto;

}

.hero-card h2{

    margin:6px 0 10px;

    font-size:34px;
    line-height:1.1;

}

.hero-badge{

    display:inline-block;

    margin:10px 0;

    padding:9px 16px;

    background:#ffe18a;

    border-radius:50px;

    font-weight:700;

}

.hero-card p{

      margin:10px 0;

    font-size:20px;

}

.hero-card button{

    width:40%;

    margin-top:12px;
    padding:14px;

    border:none;
    border-radius:50px;

    background:#6d53d774;

    color:rgb(37, 2, 2);

    font-size:18px;
    font-weight:700;

    cursor:pointer;

}






.hero-mission-progress {
  width: 75%;
  height: 10px;
  margin: 12px auto 0;

  overflow: hidden;

  background: #e2d8eb;
  border-radius: 999px;
}

#heroMissionProgressBar {
  width: 0;
  height: 100%;

  background: linear-gradient(90deg, #6d53d7, #3d8829);
  border-radius: inherit;

  transition: width 0.4s ease;
}





/* =====================================================
   HERO NAME EDITOR
===================================================== */

.hero-name-editor {
  margin: 22px 0;
  text-align: left;
}

.hero-name-editor label,
.avatar-picker-title {
  display: block;

  margin-bottom: 9px;

  color: #183552;
  font-size: 17px;
  font-weight: 800;
}

.hero-name-editor input {
  width: 100%;

  padding: 13px 15px;

  color: #183552;
  font-family: inherit;
  font-size: 18px;

  background: #ffffff;
  border: 2px solid #c8d7e5;
  border-radius: 14px;

  box-sizing: border-box;
  outline: none;
}

.hero-name-editor input:focus {
  border-color: #6a50d9;

  box-shadow: 0 0 0 4px rgba(106, 80, 217, 0.14);
}

.avatar-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 12px;
  margin-top: 24px;
}

.avatar-cancel-btn,
.save-hero-btn {
  padding: 13px 18px;

  font-family: inherit;
  font-size: 16px;
  font-weight: 800;

  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

.avatar-cancel-btn {
  color: #26384c;
  background: #edf2f6;
}

.save-hero-btn {
  color: #ffffff;
  background: #3d8829;
}





/* =====================================================
   HERO PROFILE PICTURE
===================================================== */

.profile-picture {
  width: 130px;
  height: 130px;

  display: grid;
  place-items: center;

  margin: 20px auto;

  overflow: hidden;

  background: #eef5ff;
  border: 5px solid #ffffff;
  border-radius: 50%;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.profile-picture img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
}

.edit-avatar-btn {
  width: 100%;

  margin-top: 18px;
  padding: 13px 18px;

  color: #ffffff;
  font-size: 16px;
  font-weight: 800;

  background: #6038a6;
  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

/* =====================================================
   AVATAR POPUP
===================================================== */

.avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;

  display: none;
  place-items: center;

  padding: 20px;
}

.avatar-modal.open {
  display: grid;
}

.avatar-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(20, 24, 35, 0.62);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.avatar-modal-card {
  position: relative;
  z-index: 1;

  width: min(620px, 100%);
  max-height: 90vh;

  padding: 35px;

  overflow-y: auto;

  text-align: center;

  background: #fffdf5;
  border: 3px solid #6038a6;
  border-radius: 30px;

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.avatar-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;

  width: 42px;
  height: 42px;

  color: #26384c;
  font-size: 32px;
  line-height: 1;

  background: transparent;
  border: 0;

  cursor: pointer;
}

.avatar-modal-label {
  margin: 0 0 7px;

  color: #247a42;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
}

.avatar-modal-card h2 {
  margin: 0;

  color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
}


.avatar-modal-intro {
  margin: 10px 0 25px;

  color: #56697b;
  font-size: 16px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 20px;
  margin-top:25px;
}

.avatar-option {
  aspect-ratio: 1;

  padding: 8px;

  overflow: hidden;

  background: #eef5ff;
  border: 3px solid transparent;
  border-radius: 24px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.avatar-option:hover,
.avatar-option:focus-visible {
  transform: translateY(-4px);

  border-color: #6038a6;

  box-shadow: 0 10px 20px rgba(96, 56, 166, 0.18);
}

.avatar-option.selected {
  border-color: #3d8829;

  box-shadow: 0 0 0 4px rgba(61, 136, 41, 0.18);
}

.avatar-option img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  border-radius: 18px;
}

.avatar-cancel-btn {
  margin-top: 25px;
  padding: 11px 24px;

  color: #26384c;
  font-size: 16px;
  font-weight: 800;

  background: #edf2f6;
  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

.avatar-modal-card{
    max-height:90vh;
    overflow-y:auto;
}

body.avatar-modal-open {
  overflow: hidden;
}

/* Phone */

@media screen and (max-width: 600px) {

  .avatar-modal-card {
    padding: 30px 18px 22px;
    border-radius: 24px;
  }

  .avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .avatar-modal-card h2 {
    font-size: 30px;
  }
}







/* =====================================================
   BELINDA INTERACTIVE LEARNING SECTION
===================================================== */

.belinda-learning {
  width: 100%;
  margin: 70px 0;
  padding: 0;

  /* No white outer background */
  background: transparent;
}

.learning-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;

  gap: 40px;
  margin-bottom: 28px;
}

.learning-label,
.panel-kicker {
  margin: 0 0 10px;

  color: #247a42;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.learning-header h2 {
  max-width: 850px;
    margin: 0 0 8px;

    color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}





.learning-intro {
  max-width: 600px;
  margin: 0 0 10px;

  color: #526d85;
  font-size: 21px;
  line-height: 1.5;
}

/* Tabs */

.learning-tabs {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
  margin-bottom: 25px;
}

.learning-tab {
  padding: 13px 21px;

  color: #172b3f;
  font: inherit;
  font-size: 17px;
  font-weight: 800;

  background: rgba(238, 246, 250, 0.82);
  border: 1px solid rgba(65, 105, 135, 0.2);
  border-radius: 999px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.learning-tab:hover {
  transform: translateY(-2px);
  background: #e2f1f8;
}

.learning-tab.active {
  color: #ffffff;
  background: #6038a6;
  border-color: #6038a6;

  box-shadow: 0 7px 17px rgba(96, 56, 166, 0.23);
}

/* Main tab panel */

/* Main tab panel */

.learning-panel {
  position: relative;
  width: 100%;
  max-width: 1600px;
  min-height: 770px;

  margin: 0 auto;
  padding: 125px 135px 110px;

  box-sizing: border-box;
  background: transparent;
  overflow: visible;
}

.learning-cloud {
  position: absolute;

  top: 1px;
  left: 50%;

  width: 100%;
  height: 850px;

  transform: translateX(-50%);

  object-fit: fill;
   opacity: 0.7; 

  padding: 0;
  z-index: 0;
  pointer-events: none;

  filter: drop-shadow(
    0 16px 20px rgba(30, 35, 50, 0.16)
  );
}

.learning-panel-small{
    min-height:650px;
    padding:105px 120px 90px;
}

.learning-panel-small .learning-cloud{
    width:100%;
    height:650px;
}


.learning-panel-large{
    min-height:840px;
    padding:145px 120px 120px;
}

.learning-panel-large .learning-cloud{
    width:100%;
    height:900px;
}





.learning-panel-content {
  position: relative;
  z-index: 1;

  width: 88%;
  max-width: 1220px;
  margin: 0 auto;
}


@keyframes learningFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.learning-panel-content {
  min-width: 0;
}

.learning-panel-content > h3 {
  max-width: 1050px;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.12;
}

.learning-panel-content > p {
  max-width: 1000px;
  margin: 0 0 22px;

  color: #263b4c;
  font-size: 18px;
  line-height: 1.55;
}

/* Highlight card */

.learning-highlight,
.aqi-box {
  display: flex;
  align-items: center;

  gap: 18px;
  padding: 20px;

  background: rgba(255, 255, 255, 0.66);
  border-radius: 20px;
}

.highlight-icon {
  font-size: 48px;
}

.learning-highlight h4,
.aqi-box h4 {
  margin: 0 0 6px;

  color: #163e65;
  font-size: 23px;
}

.learning-highlight p,
.aqi-box p {
  margin: 0;

  color: #30495e;
  font-size: 16px;
  line-height: 1.45;
}

/* Fact chips */

.fact-chips {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
  margin-top: 20px;
}

.fact-chips span {
  padding: 10px 15px;

  color: #173e62;
  font-size: 15px;
  font-weight: 800;

  background: #fff1ad;
  border-radius: 999px;
}

/* Heat and air cards */

.topic-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;
}

.topic-mini-card {
  display: flex;
  align-items: flex-start;

  gap: 15px;
  padding: 20px;

  background: rgba(255, 255, 255, 0.68);
  border-radius: 20px;
}

.topic-mini-card > span {
  font-size: 45px;
}

.topic-mini-card h4 {
  margin: 0 0 7px;

  color: #153d64;
  font-size: 22px;
}

.topic-mini-card p {
  margin: 0;

  font-size: 16px;
  line-height: 1.45;
}

/* Strategy cards */

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.strategy-grid {
  gap: 18px;
  margin-top: 22px;
}

.strategy-card{
    padding:18px;

    background:rgba(255, 255, 255, 0.685);

    border:1px solid rgba(255, 255, 255, 0.626);

    border-radius:22px;

    backdrop-filter:blur(8px);

    box-shadow:
        0 8px 18px rgba(0,0,0,.08);

    transition:.25s ease;
}

.strategy-card:hover{
    transform:translateY(-4px);

    background:rgba(255,255,255,.75);

    box-shadow:
        0 16px 30px rgba(0,0,0,.12);
}

.strategy-card h4 {
  margin: 0 0 7px;

  color: #163e65;
  font-size: 18px;
}

.strategy-card p {
  margin: 0;

  color: #334b5e;
  font-size: 14px;
  line-height: 1.45;
}

/* AQI */

.aqi-box {
  margin-bottom: 18px;
}

.aqi-icon {
  display: grid;
  place-items: center;

  width: 76px;
  height: 76px;
  flex-shrink: 0;

  color: #ffffff;
  font-size: 23px;
  font-weight: 900;

  background:
    linear-gradient(
      135deg,
      #49a84e,
      #e3c93c,
      #e4822b
    );

  border-radius: 50%;
}

.learning-notice {
  margin-top: 18px;
  padding: 15px 18px;

  color: #153d64;
  font-size: 16px;
  line-height: 1.45;

  background: rgba(255, 236, 155, 0.8);
  border-left: 5px solid #dca51f;
  border-radius: 12px;
}

/* =====================================================
   TABLET
===================================================== */

@media screen and (max-width: 1000px) {

  .learning-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .learning-panel {
    grid-template-columns: 150px minmax(0, 1fr);
  }


  .strategy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================
   PHONE
===================================================== */

@media screen and (max-width: 700px) {

  .belinda-learning {
    margin: 35px 0;
  }

  .learning-header {
    gap: 14px;
    margin-bottom: 20px;
  }

  .learning-label,
  .panel-kicker {
    font-size: 13px;
  }

  .learning-header h2 {
     color: #173c62;
    font-size: clamp(30px, 4vw, 48px);
  }



  .learning-intro {
    font-size: 16px;
  }

  .learning-tabs {
    flex-direction: column;
  }

  .learning-tab {
    width: 100%;
    padding: 12px 15px;

    text-align: left;
    font-size: 15px;
  }

  .learning-panel {
    grid-template-columns: 1fr;

    gap: 18px;
    min-height: 0;
    padding: 20px;

    border-radius: 24px;
  }


  .learning-panel-content > h3 {
    font-size: 27px;
  }

  .learning-panel-content > p {
    font-size: 16px;
  }

  .topic-card-row,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .topic-mini-card {
    padding: 16px;
  }

  .learning-highlight,
  .aqi-box {
    align-items: flex-start;
    padding: 16px;
  }

  .fact-chips {
    flex-direction: column;
  }

  .fact-chips span {
    width: 100%;
  }
}


.learning-panel[hidden] {
  display: none !important;
}

.learning-panel.active {
  display: block;
}



/* Make sure the popup card sits above the dark overlay */
.avatar-modal-overlay {
    z-index: 1;
}

.avatar-modal-card {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

/* Make sure the name field can receive clicks and typing */
#heroNameInput {
    position: relative;
    z-index: 3;

    pointer-events: auto;
    user-select: text;

    cursor: text;

    background: #ffffff;
    color: #183552;

    opacity: 1;
}




.belinda-tips{
    margin-top:-15px;
    margin-bottom:100px;   /* creates space before the mission cards */
}

.belinda-tips h2{

    font-size:52px;

    color:#183552;
text-align: center;
    margin-bottom:5px;
}


.tips-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:5px;
}



.tip-card{
    display:flex;
    flex-direction:column;
    align-items:center;
}



.tip-card:hover{

    transform:translateY(-8px);

    box-shadow:0 22px 40px rgba(0,0,0,.15);
}

.tip-card img{
    width:100%;
    max-height:360px;

    object-fit:contain;

    margin-bottom:-20px;  
}

.tip-card h3{
    color:#183552;

    font-size:22px;

    margin-top:0;
    margin-bottom:0;
}





/* =====================================================
   BELINDA MISSION MAP
===================================================== */

.mission-map-section {
  width: 100%;
  margin: 90px 0;
}

.mission-map-heading {
  margin-bottom: 28px;
  text-align: center;
}

.mission-map-heading p {
  margin: 0 0 8px;

  color: #7a3d00;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
}

.mission-map-heading h2 {
  margin: 0 0 8px;

  color: #173b62;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}



.mission-map-heading span {
  color: #455d73;
  font-size: 19px;
  line-height: 1.5;
}

/* Map container */

.mission-map-board {
  position: relative;

  width: 100%;
  max-width: 1500px;

  margin: 0 auto;

  overflow: hidden;

  background: #f7f4ef;
  border: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;

  box-shadow: 0 20px 45px rgba(34, 48, 65, 0.2);
}

.mission-map-image {
  display: block;

  width: 100%;
  height: auto;
}

/* Clickable mission stops */

.mission-map-stop {
  position: absolute;
  z-index: 4;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;
  min-width: 100px;

  padding: 7px 8px;

  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;

  background:#e95f22;
  border: 3px solid #e95f22;
  border-radius: 17px;

  box-shadow: 0 8px 18px rgba(34, 48, 65, 0.2);

  cursor: pointer;

  transform: translate(-50%, -50%);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.mission-map-stop:hover,
.mission-map-stop:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);

  background: #e95f22;

  box-shadow: 0 13px 25px rgba(34, 48, 65, 0.28);
}

.mission-map-stop:focus-visible {
  outline: 4px solid #6841bd;
  outline-offset: 3px;
}

.mission-number,
.mission-icon {
  display: grid;
  place-items: center;

  width: 20px;
  height: 20px;
  flex-shrink: 0;

  background: #ffffff;
  border-radius: 50%;

  font-size: 12px;
}

.mission-number {
  color: #ffffff;
  background: #6841bd;
}


.mission-map-stop .mission-icon {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;
  flex-shrink: 0;

  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;

  font-size: 17px;
}




.mission-downtown,
.mission-aqi,
.mission-shade,
.mission-cooling,
.mission-pack {
  color: #01016b;

  background: #ffffff;;

  border-color: #ffd2bd;

  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 15px;
  letter-spacing: 0.4px;

 min-width: 120px;
    border-radius: 17px;
  padding: 15px 18px;
}

.mission-downtown .mission-icon,
.mission-aqi .mission-icon,
.mission-shade .mission-icon,
.mission-cooling .mission-icon,
.mission-pack .mission-icon {
  
  background: #fff0d9;

}


/*
These percentages position each stop over the map.
Adjust them slightly to match your base image.
*/

.stop-bethany {
  top: 27%;
  left: 50%;
}

.stop-downtown {
  top: 41%;
  left: 58%;
}

.stop-city-center {
  top: 61%;
  left: 82.5%;
}

.stop-weequahic {
  top: 81%;
  left: 45%;
}

.stop-cooling {
  top: 80%;
  left: 63%;
}

.stop-aqi {
  top: 70%;
  left: 78%;
}

.stop-shade {
  top: 90%;
  left: 30%;
}

.stop-pack {
  top: 56%;
  left: 27%;
}

/* =====================================================
   MISSION POPUP
===================================================== */

.mission-modal {
  position: fixed;
  inset: 0;
  z-index: 30000;

  display: none;
  place-items: center;

  padding: 20px;
}

.mission-modal.open {
  display: grid;
}

.mission-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(20, 27, 39, 0.67);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.mission-modal-card {
  position: relative;
  z-index: 1;

  width: min(760px, 100%);
  max-height: 90vh;

  padding: 38px;

  overflow-y: auto;

  background: #fffdf4;
  border: 4px solid #6841bd;
  border-radius: 32px;

  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.mission-modal-close {
  position: absolute;
  top: 13px;
  right: 16px;

  width: 45px;
  height: 45px;

  color: #263b51;
  font-size: 33px;

  background: transparent;
  border: 0;

  cursor: pointer;
}

.mission-modal-kicker {
  margin: 0 0 15px;

  color: #7a3d00;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
}

.mission-modal-heading {
  display: flex;
  align-items: center;

  gap: 18px;
}

.mission-modal-heading > span {
  display: grid;
  place-items: center;

  width: 75px;
  height: 75px;
  flex-shrink: 0;

  font-size: 39px;

  background: #eef5ff;
  border-radius: 22px;
}

.mission-modal-heading h2 {
  margin: 0 0 8px;

  color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
}



.mission-modal-heading p {
  margin: 0;

  color: #53697c;
  font-size: 16px;
  line-height: 1.45;
}

.mission-fact-box,
.mission-question-box {
  margin-top: 23px;
  padding: 22px;

  border-radius: 22px;
}

.mission-fact-box {
  background: #eaf7dd;
}

.mission-fact-box h3 {
  margin: 0 0 8px;

  color: #285e22;
  font-size: 20px;
}

.mission-fact-box p {
  margin: 0;

  color: #314a39;
  font-size: 16px;
  line-height: 1.55;
}

.mission-question-box {
  background: #edf5fc;
}

.mission-question-label {
  margin: 0 0 8px;

  color: #e26025;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.mission-question-box h3 {
  margin: 0 0 17px;

  color: #173b63;
  font-size: 22px;
  line-height: 1.3;
}

.mission-answer-list {
  display: grid;
  gap: 10px;
}

.mission-answer {
  width: 100%;

  padding: 13px 15px;

  color: #263c51;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;

  background: #ffffff;
  border: 2px solid #ceddea;
  border-radius: 13px;

  cursor: pointer;
}

.mission-answer:hover,
.mission-answer:focus-visible {
  border-color: #6841bd;
}

.mission-answer.correct {
  color: #185b21;

  background: #dff3d5;
  border-color: #3e912e;
}

.mission-answer.incorrect {
  color: #8a281e;

  background: #ffe1dc;
  border-color: #d45445;
}

.mission-feedback {
  min-height: 24px;
  margin: 14px 0 0;

  font-size: 15px;
  font-weight: 800;
}

.mission-modal-actions {
  display: flex;
  justify-content: flex-end;

  gap: 12px;
  margin-top: 23px;
}

.mission-secondary-btn,
.mission-primary-btn {
  padding: 12px 21px;

  font-family: inherit;
  font-size: 15px;
  font-weight: 900;

  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

.mission-secondary-btn {
  color: #263b51;
  background: #e8edf2;
}

.mission-primary-btn {
  color: #ffffff;
  background: #3b8d2b;
}

body.mission-modal-open {
  overflow: hidden;
}



.mission-map-stop.completed {
  color: #ffffff;

  background: #3b8d2b;
  border-color: #dff6d6;
}

.mission-map-stop.completed::after {
  content: "✓";

  position: absolute;
  top: -10px;
  right: -10px;

  display: grid;
  place-items: center;

  width: 26px;
  height: 26px;

  color: #ffffff;
  background: #236b1b;
  border-radius: 50%;
}







/* =====================================================
   BELINDA CLIMATE WORD SEARCH
===================================================== */

.climate-word-search {
  width: 100%;
  margin: 90px 0;
  padding: 38px;

  background: rgba(255, 255, 255, 0.56);
  border-radius: 34px;

  box-shadow: 0 18px 40px rgba(45, 39, 60, 0.12);

  box-sizing: border-box;
}

.word-search-header {
  margin-bottom: 25px;
  text-align: center;
}

.word-search-kicker,
.sidebar-kicker {
  margin: 0 0 7px;

  color: #7e3e08;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
}

.word-search-header h2 {
  margin: 0 0 8px;

  color: #173c62;
  font-size: clamp(30px, 4vw, 48px);;
  line-height: 1.05;
}





.word-search-header > p:last-child {
  max-width: 800px;
  margin: 0 auto;

  color: #455c70;
  font-size: 18px;
  line-height: 1.5;
}

/* =====================================================
   LEVEL TABS
===================================================== */

.puzzle-level-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 12px;
  margin-bottom: 28px;
}

.puzzle-level-tab {
  min-width: 175px;
  padding: 13px 20px;

  color: #173858;
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;

  background: #f3f6f8;
  border: 2px solid #d5e1e9;
  border-radius: 999px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.puzzle-level-tab small {
  display: block;

  margin-top: 3px;

  font-size: 12px;
  font-weight: 700;
  opacity: 0.78;
}

.puzzle-level-tab:hover {
  transform: translateY(-2px);
}

.puzzle-level-tab.active {
  color: #ffffff;

  background: #6439ad;
  border-color: #6439ad;

  box-shadow: 0 8px 18px rgba(100, 57, 173, 0.24);
}

/* =====================================================
   MAIN PUZZLE LAYOUT
===================================================== */

.word-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);

  gap: 24px;
  align-items: stretch;
}

.word-search-main,
.word-search-sidebar {
  min-width: 0;

  background: rgba(255, 255, 255, 0.86);
  border-radius: 26px;

  box-shadow: 0 10px 25px rgba(38, 54, 70, 0.1);
}

.word-search-main {
  padding: 20px;
}

.word-search-sidebar {
  display: flex;
  flex-direction: column;

  gap: 22px;
  padding: 24px;
}

.word-search-instructions {
  padding: 13px 16px;
  margin-bottom: 15px;

  color: #30465b;
  font-size: 14px;
  line-height: 1.45;

  background: #eaf4fa;
  border-radius: 13px;
}

.puzzle-status-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;
  margin-bottom: 16px;
}

.puzzle-status-bar > div {
  padding: 10px;

  text-align: center;

  background: #fff2bf;
  border-radius: 12px;
}

.puzzle-status-bar span {
  display: block;

  color: #526477;
  font-size: 12px;
  font-weight: 700;
}

.puzzle-status-bar strong {
  color: #173858;
  font-size: 18px;
}

/* =====================================================
   LETTER GRID
===================================================== */

.word-grid-scroll {
  width: 100%;
  overflow: auto;

  border-radius: 16px;
}

.word-search-grid {
  --grid-columns: 12;

  display: grid;
  grid-template-columns:
    repeat(var(--grid-columns), minmax(28px, 1fr));

  gap: 4px;

  min-width: max-content;
  padding: 8px;

  background: #edf4f8;
  border-radius: 16px;

  user-select: none;
}

.word-cell {
  display: grid;
  place-items: center;

  width: clamp(28px, 2.45vw, 43px);
  aspect-ratio: 1;

  padding: 0;

  color: #173858;
  font-family: inherit;
  font-size: clamp(12px, 1.1vw, 17px);
  font-weight: 900;
  text-transform: uppercase;

  background: rgba(255, 255, 255, 0.92);
  border: 2px solid transparent;
  border-radius: 8px;

  cursor: pointer;

  transition:
    transform 0.12s ease,
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}

.word-cell:hover {
  transform: scale(1.08);

  background: #fff4bd;
  border-color: #eabf32;
}

.word-cell.start-cell,
.word-cell.end-cell {
  color: #ffffff;

  background: #6439ad;
  border-color: #4b278d;
}

.word-cell.preview-cell {
  background: #dbeeff;
  border-color: #5d9bd3;
}

.word-cell.found-cell {
  color: #154e28;

  background: #bce8b5;
  border-color: #3b8d3c;
}

.word-cell.hint-cell {
  animation: hintPulse 0.8s ease 3;
}

@keyframes hintPulse {
  0%,
  100% {
    transform: scale(1);
    background: #ffffff;
  }

  50% {
    transform: scale(1.18);
    background: #ffe36c;
  }
}

/* =====================================================
   CONTROLS
===================================================== */

.puzzle-controls {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
  margin-top: 17px;
}

.puzzle-btn {
  padding: 11px 17px;

  color: #173858;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;

  background: #e9eef3;
  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

.puzzle-btn.primary {
  color: #ffffff;
  background: #6439ad;
}

.puzzle-btn:hover {
  filter: brightness(0.96);
}

.puzzle-message {
  min-height: 25px;
  margin: 14px 0 0;

  color: #334b5e;
  font-size: 14px;
  font-weight: 800;
}

/* =====================================================
   SIDEBAR AND WORD BANK
===================================================== */

.clue-corner h3,
.hidden-words h3 {
  margin: 0 0 13px;

  color: #173858;
  font-size: 23px;
}

.clue-corner ol {
  margin: 0;
  padding-left: 23px;

  color: #40586c;
  font-size: 14px;
  line-height: 1.55;
}

.clue-corner li + li {
  margin-top: 7px;
}

.word-bank {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 8px;
}

.word-bank-item {
  padding: 8px 10px;

  color: #173858;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;

  background: #efe8fa;
  border-radius: 999px;
}

.word-bank-item.found {
  color: #3b7a32;

  background: #dff2d9;

  text-decoration: line-through;
}

.puzzle-award {
  display: flex;
  align-items: center;

  gap: 14px;
  margin-top: auto;
  padding: 16px;

  background: #fff2bf;
  border-radius: 18px;
}

.puzzle-award > span {
  font-size: 38px;
}

.puzzle-award p {
  margin: 0 0 3px;

  color: #6b5840;
  font-size: 12px;
  font-weight: 800;
}

.puzzle-award strong {
  color: #173858;
  font-size: 17px;
}

/* =====================================================
   PHONE
===================================================== */

@media screen and (max-width: 900px) {

  .climate-word-search {
    padding: 22px 14px;
  }

  .word-search-layout {
    grid-template-columns: 1fr;
  }

  .word-search-sidebar {
    order: 2;
  }

  .puzzle-level-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .puzzle-level-tab {
    width: 100%;
  }
}

@media screen and (max-width: 560px) {

  .word-search-main {
    padding: 11px;
  }

  .puzzle-status-bar {
    grid-template-columns: 1fr;
  }

  .word-bank {
    grid-template-columns: 1fr;
  }

  .word-cell {
    width: 30px;
    font-size: 12px;
  }
}






/* =====================================================
   COOL THE CITY PICTURE PUZZLE
===================================================== */

.city-puzzle {
  width: 100%;
  margin: 90px 0;
  padding: 28px;

  background: rgba(255, 255, 255, 0.72);
  border-radius: 32px;

  box-shadow: 0 18px 38px rgba(31, 48, 66, 0.13);

  box-sizing: border-box;
}

.city-puzzle-header {
  margin-bottom: 22px;
  text-align: center;
}

.city-puzzle-header h2 {
  margin: 0 0 8px;

  color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}



.city-puzzle-header p {
  margin: 0;

  color: #263d52;
  font-size: 19px;
  font-weight: 700;
}

/* Intro and difficulty tabs */

.puzzle-intro-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;

  gap: 18px;
  align-items: stretch;

  margin-bottom: 16px;
}

.belinda-puzzle-message {
  display: flex;
  align-items: center;

  gap: 18px;
  padding: 18px 22px;

  background: #ffffff;
  border-radius: 22px;

  box-shadow: 0 8px 20px rgba(35, 53, 70, 0.08);
}

.belinda-puzzle-message img {
  width: 70px;
  height: 70px;

  object-fit: contain;
}

.belinda-puzzle-message strong {
  color: #173858;
}

.belinda-puzzle-message p {
  margin: 5px 0 0;

  color: #526a80;
  line-height: 1.45;
}

.picture-level-tabs {
  display: flex;
  gap: 10px;
}

.picture-level-tab {
  min-width: 145px;
  padding: 14px 18px;

  color: #173858;
  font: inherit;
  font-size: 15px;
  font-weight: 900;

  background: #f2f7fa;
  border: 2px solid #d6e2ea;
  border-radius: 16px;

  cursor: pointer;
}

.picture-level-tab span,
.picture-level-tab small {
  display: block;
}

.picture-level-tab small {
  margin-top: 5px;
  font-size: 12px;
  opacity: 0.72;
}

.picture-level-tab.active {
  color: #6038a6;

  background: #f1eaff;
  border-color: #6038a6;

  box-shadow: 0 8px 16px rgba(96, 56, 166, 0.17);
}

/* Main layout */

.picture-puzzle-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);

  gap: 18px;
  padding: 16px;

  background: #edf4f7;
  border-top: 3px solid #f09b74;
  border-bottom: 3px solid #f09b74;
}

.picture-puzzle-help,
.picture-puzzle-main {
  background: #ffffff;
  border-radius: 22px;
}

.picture-puzzle-help {
  padding: 22px;
}

.picture-puzzle-help h3 {
  margin: 0 0 14px;

  color: #173858;
  font-size: 24px;
}

.picture-puzzle-help ol {
  margin: 0 0 20px;
  padding-left: 23px;

  color: #52687b;
  line-height: 1.65;
}

.picture-puzzle-control {
  width: 100%;

  margin-top: 10px;
  padding: 11px 15px;

  color: #173858;
  font: inherit;
  font-weight: 900;

  background: #e9f0f5;
  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

.picture-progress {
  margin-top: 23px;
}

.picture-progress label {
  display: block;

  margin-bottom: 8px;

  color: #52687b;
  font-size: 13px;
  font-weight: 800;
}

.picture-progress progress {
  width: 100%;
  height: 11px;
}

.picture-progress strong {
  display: block;
  margin-top: 6px;

  color: #173858;
}

/* Puzzle */

.picture-puzzle-main {
  min-width: 0;
  padding: 18px;
}

.picture-puzzle-labels {
  display: flex;
  justify-content: space-between;

  gap: 12px;
  margin-bottom: 12px;
}

.hot-label,
.cool-label {
  padding: 9px 15px;

  color: #ffffff;
  font-size: 14px;
  font-weight: 900;

  border-radius: 999px;
}

.hot-label {
  background: #e96622;
}

.cool-label {
  background: #3d8b3e;
}

.picture-puzzle-board-wrap {
  position: relative;

  width: 100%;
  overflow: hidden;

  background: #dce9ef;
  border-radius: 15px;
}

.picture-puzzle-board {
  --puzzle-columns: 5;

  display: grid;
  grid-template-columns: repeat(
    var(--puzzle-columns),
    minmax(0, 1fr)
  );

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #dce9ef;
  border-radius: 15px;
}

.picture-puzzle-piece {
  position: relative;

  min-width: 0;
  padding: 0;

  background-repeat: no-repeat;

  border: 1px solid rgba(28, 52, 71, 0.55);

  cursor: grab;
}

.picture-puzzle-piece:active {
  cursor: grabbing;
}

.picture-puzzle-piece.selected {
  z-index: 3;

  outline: 4px solid #633db2;
  outline-offset: -4px;
}

.picture-puzzle-piece.correct {
  box-shadow: inset 0 0 0 2px rgba(49, 145, 56, 0.55);
}

.picture-puzzle-piece.drag-over {
  filter: brightness(1.18);

  outline: 4px solid #e99023;
  outline-offset: -4px;
}

/* Preview overlay */

.picture-puzzle-preview {
  position: absolute;
  inset: 0;
  z-index: 10;

  display: none;

  background: rgba(255, 255, 255, 0.91);
}

.picture-puzzle-preview.show {
  display: block;
}

.picture-puzzle-preview img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.picture-puzzle-status {
  margin: 12px 0 0;

  color: #173858;
  font-weight: 900;
  text-align: center;
}

/* Lessons */

.picture-puzzle-lessons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
  margin-top: 18px;
}

.picture-puzzle-lessons article {
  display: flex;
  align-items: flex-start;

  gap: 17px;
  padding: 25px;

  background: #ffffff;
  border-radius: 22px;

  box-shadow: 0 8px 20px rgba(30, 49, 66, 0.08);
}

.picture-puzzle-lessons article > span {
  font-size: 42px;
}

.picture-puzzle-lessons h3 {
  margin: 0 0 8px;

  color: #173858;
  font-size: 23px;
}

.picture-puzzle-lessons p {
  margin: 0;

  color: #536b80;
  line-height: 1.5;
}

/* Completed puzzle */

.picture-puzzle-board.completed {
  animation: completedPuzzle 0.7s ease;
}

@keyframes completedPuzzle {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

/* Responsive */

@media screen and (max-width: 1000px) {

  .puzzle-intro-row {
    grid-template-columns: 1fr;
  }

  .picture-level-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .picture-level-tab {
    min-width: 0;
  }

  .picture-puzzle-layout {
    grid-template-columns: 1fr;
  }

  .picture-puzzle-help {
    order: 2;
  }
}

@media screen and (max-width: 650px) {

  .city-puzzle {
    padding: 16px 10px;
  }

  .picture-level-tabs {
    grid-template-columns: 1fr;
  }

  .picture-puzzle-labels {
    align-items: stretch;
    flex-direction: column;
  }

  .hot-label,
  .cool-label {
    text-align: center;
  }

  .picture-puzzle-lessons {
    grid-template-columns: 1fr;
  }

  .picture-puzzle-board-wrap {
    overflow-x: auto;
  }

  .picture-puzzle-board {
    width: 750px;
    max-width: none;
  }
}







.sorting-game{

    margin:70px auto;

    max-width:1200px;

    text-align:center;

}

.sorting-game h2 {
  margin: 0 0 8px;

  color: #173c62;
  font-size: clamp(30px, 4vw, 48px);;
  line-height: 1.05;
}

.sorting-intro{

    margin-bottom:30px;

    font-size:20px;

}

.sorting-container{

    display:grid;

    grid-template-columns:300px 1fr 1fr;

    gap:30px;

}

.sorting-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 14px;

  align-content: start;
}

.sort-card {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 75px;
  padding: 14px;

  background: #ffffff;
  border-radius: 18px;

  font-size: 17px;
  font-weight: 800;
  text-align: center;

  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.1);

  cursor: grab;
}

.drop-zone {
  min-height: 620px;
}

.hot-zone{

    background:#ffe8e8;

}

.cool-zone{

    background:#e7fff0;

}

.drop-zone h3{

margin: 0 0 8px;

    color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;

}



.drop-zone .sort-card{

    margin-bottom:15px;

}


.sorting-buttons{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:30px;
}

#checkSorting,
#replaySorting{

    padding:15px 30px;

    border:none;
    border-radius:40px;

    font-size:18px;
    font-weight:700;

    cursor:pointer;
}

#checkSorting{
    background:#6d53d7;
    color:white;
}

#replaySorting{
    background:#2d9445;
    color:white;
}




/* =====================================================
   HOT VS COOL SORTING GAME — PHONE
===================================================== */

@media screen and (max-width: 700px) {

  .sorting-game {
    width: 100%;
    margin: 45px 0;
    padding: 0 14px;

    box-sizing: border-box;
    overflow: hidden;
  }

  .sorting-game h2 {
    margin: 0 0 10px;

    font-size: 28px;
    line-height: 1.15;
    text-align: center;
  }


  .sorting-intro {
    max-width: 520px;
    margin: 0 auto 25px;

    font-size: 17px;
    line-height: 1.45;
    text-align: center;
  }

  .sorting-container {
    display: grid;
    grid-template-columns: 1fr;

    gap: 22px;
    width: 100%;
  }

  /* Starting cards */

  .sorting-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
    width: 100%;
  }

  .sort-card {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 92px;
    padding: 12px 8px;

    box-sizing: border-box;

    font-size: 16px;
    line-height: 1.2;
    text-align: center;

    border-radius: 18px;

    touch-action: none;
  }

  /* Drop zones */

  .drop-zone {
    width: 100%;
    min-height: 220px;
    padding: 16px;

    box-sizing: border-box;
    border-radius: 24px;
  }

  .drop-zone h3 {
    margin: 0 0 16px;

    font-size: 29px;
    text-align: center;
  }

  .drop-zone .sort-card {
    width: 100%;
    min-height: 65px;
    margin: 0 0 10px;
  }

  /* Buttons */

  .sorting-buttons {
    display: grid;
    grid-template-columns: 1fr;

    gap: 12px;
    width: 100%;
    margin-top: 22px;
  }

  #checkSorting,
  #replaySorting {
    width: 100%;
    padding: 15px 18px;

    box-sizing: border-box;

    font-size: 17px;
  }

  #sortingResult {
    margin-top: 18px;

    font-size: 17px;
    line-height: 1.45;
    text-align: center;
  }
}



/* =====================================================
   KIDS VIDEO CARDS
===================================================== */

.kids-video-section{
    width:100%;
    margin:80px 0;
}

.kids-video-header{
    text-align:center;
    margin-bottom:35px;

        display:flex;
    flex-direction:column;
    align-items:center;
}

.kids-video-header p{
    margin:0 0 10px;

    color:#247a42;

    font-size:17px;
    font-weight:900;
    letter-spacing:2px;
    text-transform:uppercase;
    text-align:center;
}

.kids-video-header h2{

    margin:0 0 8px;

    color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
    line-height:1.05;
    text-align:center;
}





.kids-video-header span{

    display:block;

    max-width:700px;

    margin:0 auto;

    color:#526d85;

    font-size:21px;
    line-height:1.5;
   text-align:left;
}



.kids-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 26px;
}

.kids-video-card {
  overflow: hidden;

  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(90, 120, 145, 0.16);
  border-radius: 28px;

  box-shadow: 0 14px 30px rgba(30, 55, 80, 0.12);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.kids-video-card:hover {
  transform: translateY(-7px);

  box-shadow: 0 22px 40px rgba(30, 55, 80, 0.18);
}

.kids-video-frame {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  background: #182b3d;
}

.kids-video-frame video {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.kids-video-content {
  padding: 23px 25px 27px;
}

.video-label {
  display: inline-block;

  margin-bottom: 9px;
  padding: 7px 12px;

  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;

  background: #6743c4;
  border-radius: 999px;
}

.kids-video-content h3 {
  margin: 0 0 10px;

  color: #173b63;
  font-size: 27px;
  line-height: 1.2;
}

.kids-video-content p {
  margin: 0;

  color: #536b80;
  font-size: 16px;
  line-height: 1.55;
}

@media screen and (max-width: 850px) {
  .kids-video-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 560px) {
  .kids-video-section {
    margin: 50px 0;
  }

  .kids-video-grid {
    gap: 18px;
  }

  .kids-video-content {
    padding: 18px;
  }

  .kids-video-content h3 {
    font-size: 22px;
  }
}





/* =====================================================
   HERO BADGE COLLECTION
===================================================== */

.hero-badges {
  width: 95%;
  margin: 14px auto 0;
}

.hero-badges h3 {
  margin: 0 0 12px;

  color: #183552;
  font-size: 18px;
}

.hero-badge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);

  gap: 10px;
}

.earned-badge {
  display: grid;
  place-items: center;

  min-height: 72px;
  padding: 8px;

  text-align: center;

  background: #fff3be;
  border: 2px solid #efc84f;
  border-radius: 16px;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.earned-badge span {
  display: block;
  font-size: 30px;
}

.earned-badge small {
  display: block;

  margin-top: 4px;

  color: #183552;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.locked-badge {
  opacity: 0.35;
  filter: grayscale(1);

  background: #edf0f3;
  border-color: #c9d0d7;
}







.badge-celebration {
  position: fixed;
  inset: 0;
  z-index: 50000;

  display: grid;
  place-items: center;

  padding: 20px;

  background: rgba(20, 30, 45, 0.68);
}

.badge-celebration-card {
  width: min(420px, 100%);
  padding: 36px;

  text-align: center;

  background: #fffdf2;
  border: 5px solid #6c45c5;
  border-radius: 30px;

  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);

  animation: badgePop 0.4s ease;
}

.badge-celebration-card > span {
  display: block;

  font-size: 86px;
}

.badge-celebration-card h2 {
  margin: 0 0 8px;

  color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;

}

.badge-celebration-card p {
  margin: 0 0 24px;

  color: #6038a6;
  font-size: 22px;
  font-weight: 900;
}

.badge-celebration-card button {
  padding: 13px 28px;

  color: #ffffff;
  font: inherit;
  font-weight: 900;

  background: #3d8829;
  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

@keyframes badgePop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}



/* =====================================================
   BADGE CERTIFICATE MODAL
===================================================== */

.certificate-modal {
  position: fixed;
  inset: 0;
  z-index: 60000;

  display: none;
  place-items: center;

  padding: 20px;
}

.certificate-modal.open {
  display: grid;
}

.certificate-overlay {
  position: absolute;
  inset: 0;

  background: rgba(20, 29, 43, 0.72);
  backdrop-filter: blur(5px);
}

.certificate-card {
  position: relative;
  z-index: 2;

  width: min(960px, 100%);
  max-height: 94vh;

  padding: 32px;
  overflow-y: auto;

  text-align: center;

  background: #fffdf5;
  border: 4px solid #6841bd;
  border-radius: 30px;

  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.36);
}

.certificate-close {
  position: absolute;
  top: 18px;
  right: 22px;

  width: 45px;
  height: 45px;

  color: #263b50;
  font-size: 35px;
  line-height: 1;

  background: transparent;
  border: 0;

  cursor: pointer;
}

.certificate-kicker {
  margin: 0 0 7px;

  color: #267846;
  font-weight: 900;
  letter-spacing: 3px;
}

.certificate-card h2 {
  margin: 0 0 24px;

  color: #183552;
  font-size: clamp(34px, 5vw, 54px);
}

.certificate-name-field {
  max-width: 580px;
  margin: 0 auto 24px;

  text-align: left;
}

.certificate-name-field label {
  display: block;
  margin-bottom: 8px;

  color: #183552;
  font-size: 17px;
  font-weight: 900;
}

.certificate-name-field input {
  width: 100%;
  padding: 14px 17px;

  color: #183552;
  font: inherit;
  font-size: 19px;

  background: #ffffff;
  border: 2px solid #c9d8e5;
  border-radius: 15px;

  box-sizing: border-box;
  outline: 0;
}

.certificate-name-field input:focus {
  border-color: #6841bd;

  box-shadow:
    0 0 0 4px rgba(104, 65, 189, 0.14);
}

#certificateCanvas {
  display: block;

  width: 100%;
  height: auto;

  background: #fff9e9;
  border-radius: 17px;

  box-shadow: 0 12px 28px rgba(22, 44, 64, 0.14);
}

.certificate-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 13px;
  margin-top: 24px;
}

.certificate-actions button {
  padding: 13px 25px;

  font: inherit;
  font-size: 16px;
  font-weight: 900;

  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

.certificate-primary-btn {
  color: #ffffff;
  background: #3d8829;
}

.certificate-secondary-btn {
  color: #183552;
  background: #e8eff5;
}

.certificate-share-btn {
  color: #ffffff;
  background: #6841bd;
}

.certificate-message {
  min-height: 25px;
  margin: 15px 0 0;

  color: #8c321f;
  font-weight: 800;
}

body.certificate-modal-open {
  overflow: hidden;
}

.certificate-badge {
  width: 100%;

  color: inherit;
  font: inherit;

  cursor: pointer;
}

.certificate-badge:hover {
  transform: translateY(-4px);

  box-shadow: 0 12px 24px rgba(48, 57, 70, 0.18);
}



/* =====================================================
   MY CLIMATE HERO JOURNEY
===================================================== */

.climate-journey {
  width: 100%;
  margin: 90px 0;
}

.journey-header {
  margin-bottom: 34px;
  text-align: left;
}

.journey-header > p,
.journey-card-heading p,
.belinda-praise-top p {
  margin: 0 0 8px;

  color: #287b48;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.journey-header h2 {
  margin: 0 0 8px;

  color: #173c62;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;

}

.journey-header > span {
  display: block;

  max-width: 800px;

  color: #526d85;
  font-size: 19px;
  line-height: 1.5;
}

.journey-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(340px, 0.65fr);

  gap: 24px;
  align-items: stretch;
}

.recent-actions-card,
.weekly-challenge-card {
  height: 100%;
  box-sizing: border-box;
}

.recent-actions-card {
  display: flex;
  flex-direction: column;
}

.belinda-praise-inline {
  margin-top: 20px;
}

#clearClimateActions {
  margin-top: 20px;
}

@media screen and (max-width: 900px) {
  .journey-layout {
    grid-template-columns: 1fr;
  }
}

.journey-card {
  display: flex;
  flex-direction: column;

  min-width: 0;
  padding: 24px;

  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;

  box-shadow: 0 15px 32px rgba(36, 55, 74, 0.13);
}

.journey-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
  margin-bottom: 22px;
}

.journey-card-heading h3,
.belinda-praise-top h3 {
  margin: 0;

  color: #183552;
  font-size: 30px;
  line-height: 1.15;
}

.heading-icon {
  font-size: 38px;
}

/* =====================================================
   RECENT ACTIONS
===================================================== */

.recent-actions-card,
.belinda-praise-card,
.weekly-challenge-card {
  height: 100%;
  box-sizing: border-box;
}

.recent-action-list {
  display: grid;
  gap: 14px;
  flex: 1;
}

.recent-action-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;

  gap: 15px;
  padding: 16px;

  background: #ffffff;
  border: 1px solid #dce6ee;
  border-radius: 18px;

  box-shadow: 0 6px 14px rgba(29, 54, 76, 0.07);
}

.recent-action-icon {
  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  font-size: 29px;

  background: #eaf5df;
  border-radius: 17px;
}

.recent-action-content h4 {
  margin: 0 0 5px;

  color: #183552;
  font-size: 19px;
}

.recent-action-content p {
  margin: 0;

  color: #6b7f91;
  font-size: 14px;
}

.recent-action-stars {
  font-size: 15px;
  white-space: nowrap;
}

.empty-action-message {
  padding: 30px;

  color: #60788d;
  text-align: center;

  background: rgba(240, 247, 251, 0.8);
  border: 2px dashed #cbdce7;
  border-radius: 18px;
}

/* =====================================================
   BELINDA PRAISE
===================================================== */

.belinda-praise-card {
  background:
    linear-gradient(
      135deg,
      rgba(255, 247, 197, 0.95),
      rgba(241, 230, 255, 0.94)
    );
}


.latest-achievement,
.belinda-praise-inline {
  margin-top: 20px;
}

.belinda-achievement {
  padding: 22px;

  text-align: center;

  background:
    linear-gradient(
      135deg,
      rgba(255, 247, 197, 0.95),
      rgba(241, 230, 255, 0.94)
    );

  border-radius: 20px;
}


.belinda-achievement > p {
  margin: 0 0 7px;

  color: #597084;
  font-size: 16px;
}

.belinda-achievement h4 {
  margin: 0 0 10px;

  color: #183552;
  font-size: 27px;
}

.achievement-stars {
  margin-bottom: 12px;
  font-size: 23px;
}

.belinda-achievement strong {
  display: block;

  margin-bottom: 11px;

  color: #6540bd;
  font-size: 22px;
}

.belinda-achievement > span {
  display: block;

  color: #336338;
  font-size: 16px;
  font-weight: 800;
}

/* =====================================================
   WEEKLY CHALLENGE
===================================================== */

.weekly-challenge-card {
  background:
    linear-gradient(
      145deg,
      rgba(235, 247, 255, 0.96),
      rgba(242, 234, 255, 0.95)
    );
}

.weekly-intro {
  margin: 0 0 20px;

  color: #526d85;
  font-size: 16px;
  line-height: 1.5;
}

.weekly-challenge-list {
  display: grid;
  gap: 11px;
}

.weekly-challenge-item {
  position: relative;

  display: grid;
  grid-template-columns: 30px 36px minmax(0, 1fr);
  align-items: center;

  gap: 10px;
  padding: 13px 15px;

  background: #ffffff;
  border: 2px solid #d8e3eb;
  border-radius: 16px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.weekly-challenge-item:hover {
  transform: translateY(-2px);
  border-color: #6843c2;
}

.weekly-challenge-item input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.challenge-check {
  display: grid;
  place-items: center;

  width: 27px;
  height: 27px;

  border: 2px solid #a9bac7;
  border-radius: 8px;
}

.weekly-challenge-item input:checked + .challenge-check {
  color: #ffffff;

  background: #428b2d;
  border-color: #428b2d;
}

.weekly-challenge-item input:checked + .challenge-check::after {
  content: "✓";

  font-size: 18px;
  font-weight: 900;
}

.weekly-challenge-item:has(input:checked) {
  background: #edf8e7;
  border-color: #70a95d;
}

.challenge-icon {
  font-size: 24px;
}

.challenge-text {
  color: #183552;
  font-size: 16px;
  font-weight: 800;
}

.weekly-progress-box {
  margin-top: 22px;
  padding: 18px;

  background: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
}

.weekly-progress-heading {
  display: flex;
  justify-content: space-between;

  margin-bottom: 10px;

  color: #183552;
}

.weekly-progress-track {
  width: 100%;
  height: 15px;

  overflow: hidden;

  background: #dbe5ec;
  border-radius: 999px;
}

#weeklyProgressFill {
  width: 0;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #6843c2,
      #3f912f
    );

  border-radius: inherit;

  transition: width 0.35s ease;
}

.weekly-progress-message {
  margin: 12px 0 0;

  color: #536d82;
  font-size: 14px;
  font-weight: 700;
}

.journey-secondary-button {
  margin-top: 20px;
  padding: 12px 20px;

  color: #183552;
  font: inherit;
  font-weight: 900;

  background: #edf2f6;
  border: 0;
  border-radius: 999px;

  cursor: pointer;
}

.journey-secondary-button:hover {
  background: #dfe9f0;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media screen and (max-width: 950px) {
  .journey-layout {
    grid-template-columns: 1fr;
  }

  .recent-actions-card {
    grid-row: auto;
  }
}

@media screen and (max-width: 560px) {
  .journey-card {
    padding: 20px;
  }

  .journey-card-heading h3,
  .belinda-praise-top h3 {
    font-size: 24px;
  }

  .recent-action-item {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .recent-action-icon {
    width: 50px;
    height: 50px;
  }

  .recent-action-stars {
    grid-column: 2;
  }
}




/* =====================================================
   KIDS HERO — PHONE LAYOUT
===================================================== */

@media screen and (max-width: 700px) {

  .kids-page {
    padding: 10px;
    border-radius: 0;
  }

  .kids-hero {
    position: relative;
    top: auto;

    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;

    padding: 24px 16px 18px;

    overflow: hidden;

    border-radius: 26px;
  }

  /* Stack the hero content */
  .kids-top {
    position: relative;

    display: flex;
    justify-content: center;

    width: 100%;
    min-height: 0;

    padding: 0;
  }

  /* Speech bubble */
  .speech-bubble {
    position: relative;
    inset: auto;

    width: 100%;
    max-width: 330px;
    min-height: 190px;

    margin: 0 auto 8px;
  }

  .speech-bubble-img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: fill;
  }

  .speech-text {
    position: relative;
    z-index: 2;

    width: 76%;

    margin: 0 auto;
    padding-top: 35px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
  }

  /* Bee */
  .belinda-bee {
    position: relative;
    inset: auto;
    transform: none;

    display: block;

    width: min(190px, 55vw);
    height: auto;

    margin: -45px auto 0;
  }

  /* Intro text */
  .belinda-intro {
    position: relative;
    inset: auto;
    transform: none;

    width: 100%;
    max-width: 340px;

    margin: 4px auto 22px;

    text-align: center;
  }

  .belinda-intro h1 {
    margin: 0 0 8px;

    font-size: clamp(42px, 13vw, 62px);
    line-height: 0.95;
  }

  .belinda-intro p {
    max-width: 300px;
    margin: 0 auto;

    font-size: 20px;
    line-height: 1.25;
  }

  /* Three main buttons */
  .kids-action-row {
    position: relative;
    inset: auto;

    display: grid;
    grid-template-columns: 1fr;

    width: 100%;
    gap: 12px;
    margin: 0;
  }

  .kids-action-button {
    justify-content: flex-start;

    width: 100%;
    min-height: 72px;
    padding: 12px 18px;

    border-width: 2px;
    border-radius: 17px;
  }

  .kids-action-button .action-icon {
    width: 42px;

    font-size: 28px;
    text-align: center;
  }

  .kids-action-button strong {
    font-size: 18px;
  }

  .kids-action-button small {
    font-size: 13px;
  }
}


@media screen and (max-width: 700px) {

  .kids-page {
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .kids-hero {
    position: relative;
    top: auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;

    padding: 18px 16px 24px;
    overflow: visible;

    border-radius: 0 0 28px 28px;
  }

  .kids-top {
    position: relative;

    width: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    
  }

  .speech-bubble {
    position: relative;
    inset: auto;
    transform: none;

    width: min(92vw, 360px);
    height: 260px;

    margin: 0 auto;
  }

  .speech-bubble-img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
  }

  .speech-text {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 68%;
    padding: 0;
    margin: 0;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }

  .belinda-bee {
    position: relative;
    inset: auto;
    transform: none;

    display: block;

    width: 1025px;
    height: auto;

    margin: -28px auto 6px;
  }

  .belinda-intro {
    position: relative;
    inset: auto;
    transform: none;

    width: 100%;
    max-width: 340px;

    margin: 0 auto 24px;
    padding: 0;

    text-align: center;
  }

  .belinda-intro h1 {
    margin: 0 0 10px;

    font-size: 46px;
    line-height: 0.9;
  }

  .belinda-intro p {
    max-width: 300px;
    margin: 0 auto;

    font-size: 18px;
    line-height: 1.3;
  }

  .kids-action-row {
    position: relative;
    inset: auto;
    transform: none;

    display: grid;
    grid-template-columns: 1fr;

    width: 100%;
    gap: 12px;
    margin: 0;
  }

  .kids-action-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    min-height: 72px;
    padding: 12px 16px;

    border-radius: 16px;
  }

  .kids-action-button .action-icon {
    flex: 0 0 42px;
    font-size: 28px;
  }

  .kids-action-button strong {
    font-size: 18px;
  }

  .kids-action-button small {
    font-size: 13px;
  }
}




/* ==========================================
   MOBILE DASHBOARD
========================================== */

@media (max-width:768px){

.kids-dashboard{

    display:flex;
    flex-direction:column;

    gap:25px;
}

.dashboard-main{
    width:100%;
    order:2;
}

.hero-card{
    width:100%;
    max-width:340px;

    margin:auto;

    order:1;
}

}



/* =====================================================
   DASHBOARD ICONS — PHONE
===================================================== */

@media screen and (max-width: 700px) {

  .dashboard-icons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 26px 16px;
    width: 100%;

    margin: 0 0 28px;
    padding: 0 8px;

    box-sizing: border-box;
  }

  .dashboard-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    min-width: 0;

    text-align: center;
  }

  .dashboard-icon-card img {
    width: 112px;
    height:162px;

    margin: 0 0 12px;

    object-fit: contain;
  }

  .dashboard-icon-card p {
    margin: 0;

    color: #23436d;

    font-size: 19px;
    font-weight: 800;
    line-height: 1.18;

    overflow-wrap: anywhere;
  }
}



@media screen and (max-width: 430px) {

  .dashboard-icons {
    gap: 22px 10px;
    padding: 0;
  }

  .dashboard-icon-card img {
    width: 76px;
    height: 76px;
  }

  .dashboard-icon-card p {
    font-size: 16px;
  }
}




/* =====================================================
   LEARNING CLOUD PANEL — PHONE
===================================================== */

@media screen and (max-width: 700px) {

  .belinda-learning {
    width: 100%;
    margin: 45px 0;
    overflow: hidden;
  }

  .learning-panel {
    position: relative;

    width: 100%;
    min-height: 0;

    padding: 82px 28px 80px;

    box-sizing: border-box;
    overflow: hidden;
  }

  .learning-panel-small {
    min-height: 720px;
  }

  .learning-cloud {
    position: absolute;
    top: 0;
    left: 50%;

    width: 112%;
    height: 100%;

    padding: 0;

    transform: translateX(-50%);

    object-fit: fill;
    object-position: center;

    opacity: 0.78;
  }

  .learning-panel-content {
    position: relative;
    z-index: 1;

    width: 100%;
    min-width: 0;
  }

  .panel-kicker {
    margin-bottom: 14px;

    font-size: 14px;
    letter-spacing: 2px;
  }

  .learning-panel-content > h3 {
    margin-bottom: 12px;

    font-size: 31px;
    line-height: 1.1;
  }

  .learning-panel-content > p {
    margin-bottom: 22px;

    font-size: 17px;
    line-height: 1.55;
  }

  /* Branch Brook Park card */

  .learning-highlight {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;

    gap: 14px;
    padding: 20px;

    border-radius: 22px;
  }

  .highlight-icon {
    font-size: 46px;
  }

  .learning-highlight h4 {
    margin-bottom: 7px;

    font-size: 23px;
    line-height: 1.15;
  }

  .learning-highlight p {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Fact chips */

  .fact-chips {
    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;
    margin-top: 22px;
  }

  .fact-chips span {
    width: 100%;
    padding: 12px 15px;

    box-sizing: border-box;

    font-size: 15px;
    text-align: left;
  }
}




@media screen and (max-width: 430px) {

  .learning-panel {
    padding: 76px 20px 70px;
  }

  .learning-panel-small {
    min-height: 680px;
  }

  .learning-panel-content > h3 {
    font-size: 27px;
  }

  .learning-panel-content > p {
    font-size: 16px;
  }

  .learning-highlight {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .highlight-icon {
    font-size: 42px;
  }

  .learning-highlight h4 {
    font-size: 21px;
  }

  .learning-highlight p {
    font-size: 15px;
  }
}

  



/* =====================================================
   LEARNING PANEL — CLEAN PHONE VERSION
===================================================== */

@media screen and (max-width: 700px) {

  .belinda-learning {
    width: 100%;
    margin: 45px 0;
    overflow: visible;
  }

  /* Do not stretch the landscape cloud PNG */
  .learning-cloud {
    display: none;
  }

  .learning-panel,
  .learning-panel-small,
  .learning-panel-large {
    position: relative;
    isolation: isolate;

    width: calc(100% - 24px);
    min-height: 0;
    height: auto;

    margin: 70px auto 35px;
    padding: 75px 24px 30px;

    overflow: visible;
    box-sizing: border-box;

    background: rgba(255, 250, 246, 0.92);
    border: 2px solid rgba(91, 79, 76, 0.4);
    border-radius: 42px;

    box-shadow:
      0 18px 30px rgba(55, 43, 45, 0.22);
  }

  /*
    Three rounded bumps create the cloud top.
  */

  .learning-panel::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: -45px;
    left: 4%;

    width: 36%;
    height: 100px;

    background: rgba(255, 250, 246, 0.96);
    border: 2px solid rgba(91, 79, 76, 0.4);
    border-bottom: 0;
    border-radius: 80px 80px 0 0;
  }

  .learning-panel::after {
    content: "";

    position: absolute;
    z-index: -1;

    top: -68px;
    left: 30%;

    width: 48%;
    height: 125px;

    background: rgba(255, 250, 246, 0.96);
    border: 2px solid rgba(91, 79, 76, 0.4);
    border-bottom: 0;
    border-radius: 100px 100px 0 0;
  }

  .learning-panel-content {
    position: relative;
    z-index: 2;

    width: 100%;
    min-width: 0;
  }

  .panel-kicker {
    margin: 0 0 14px;

    font-size: 14px;
    letter-spacing: 2px;
  }

  .learning-panel-content > h3 {
    margin: 0 0 14px;

    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.12;
  }

  .learning-panel-content > p {
    margin: 0 0 22px;

    font-size: 17px;
    line-height: 1.55;
  }

  /* Branch Brook Park box */

  .learning-highlight {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;

    gap: 15px;
    width: 100%;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.82);
    border-radius: 22px;
  }

  .highlight-icon {
    font-size: 44px;
  }

  .learning-highlight h4 {
    margin: 0 0 8px;

    font-size: 22px;
    line-height: 1.2;
  }

  .learning-highlight p {
    margin: 0;

    font-size: 16px;
    line-height: 1.5;
  }

  /* Keep all fact chips inside the card */

  .fact-chips {
    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;
    width: 100%;
    margin: 22px 0 0;
  }

  .fact-chips span {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 52px;
    padding: 11px 16px;

    box-sizing: border-box;

    font-size: 15px;
    line-height: 1.25;
    text-align: left;

    border-radius: 999px;
  }
}



@media screen and (max-width: 430px) {

  .learning-panel,
  .learning-panel-small,
  .learning-panel-large {
    width: calc(100% - 16px);
    padding: 65px 18px 25px;
  }

  .learning-highlight {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .highlight-icon {
    font-size: 42px;
  }

  .learning-panel-content > h3 {
    font-size: 28px;
  }

  .learning-panel-content > p,
  .learning-highlight p {
    font-size: 15px;
  }
}




/* =====================================================
   BELINDA CLIMATE TIPS — PHONE
===================================================== */

@media screen and (max-width: 700px) {

  .belinda-tips {
    width: 100%;
    margin: 55px 0;
    padding: 0 14px;

    box-sizing: border-box;
    text-align: center;
  }

  .belinda-tips h2 {
    max-width: 360px;
    margin: 0 auto 28px;

    color: #183552;
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.05;
  }

  .tips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 26px 14px;
    width: 100%;
  }

  .tip-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    margin: 0;
    padding: 0;

    text-align: center;
  }

  .tip-card img {
    display: block;

    width: 100%;
    max-width: 150px;
    height: 145px;

    margin: 0 auto 10px;

    object-fit: contain;
  }

  .tip-card h3 {
    margin: 0;

    color: #183552;
    font-size: 18px;
    line-height: 1.2;
  }
}






@media screen and (max-width: 420px) {

  .belinda-tips {
    padding: 0 10px;
  }

  .tips-grid {
    gap: 22px 10px;
  }

  .tip-card img {
    max-width: 130px;
    height: 125px;
  }

  .tip-card h3 {
    font-size: 16px;
  }
}





/* Full-size map */
.mission-map-mobile-frame {
  width: 100%;
}

.mission-map-board {
  position: relative;

  width: 1500px;
  min-width: 1500px;
  height: 900px;

  transform: none;
}

.mission-map-image {
  display: block;

  width: 1500px;
  min-width: 1500px;
  height: 900px;

  object-fit: fill;
}

.mission-map-stop {
  position: absolute;
  z-index: 5;
}



/* =====================================================
   FULL-SIZE MISSION MAP
===================================================== */

.mission-map-section {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  box-sizing: border-box;
}

.mission-map-scroll-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  overflow: hidden;

  box-sizing: border-box;
}

.mission-map-mobile-frame {
  display: block;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  box-sizing: border-box;

  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.mission-map-board {
  position: relative;

  width: 1400px;
  min-width: 1400px;
  height: 900px;

  margin: 0;

  transform: none !important;
}

.mission-map-image {
  display: block;

  width: 1400px;
  min-width: 1400px;
  height: 900px;

  object-fit: fill;
}

.mission-map-stop {
  position: absolute;
  z-index: 5;
}


@media screen and (max-width: 700px) {

  .mission-map-section {
    padding: 0 12px;
  }

  .mission-map-scroll-shell {
    border-radius: 22px;
  }

  .mission-map-mobile-frame {
    height: 620px;

    overflow-x: scroll;
    overflow-y: auto;

    background: #ffffff;
    border-radius: 22px;

    scrollbar-width: auto;
  }

  .mission-map-board {
    width: 1500px;
    min-width: 1500px;
    height: 900px;
  }

  .mission-map-image {
    width: 1500px;
    min-width: 1500px;
    height: 900px;
  }
}


.kids-page,
.kids-main-panel,
#kidsPanelMission,
.mission-map-section {
  min-width: 0;
}









/* =====================================================
   KIDS ZONE — MACBOOK + TABLET RESPONSIVE
   PLACE AT VERY BOTTOM OF CSS
===================================================== */


/* =====================================================
   MACBOOK / SMALL LAPTOP
   1101px — 1500px
===================================================== */

@media screen and (min-width: 1101px) and (max-width: 1500px) {

  .kids-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 18px;
  }


  /* ===================================================
     HERO
  =================================================== */

  .kids-hero {
    width: 100%;

    height: 720px;
    min-height: 720px;
    max-height: 720px;

    border-radius: 30px;
  }

  .kids-top {
    height: 280px;
  }

  .belinda-bee {
    left: -120px;
    bottom: 100px;

    width: clamp(560px, 52vw, 760px);
  }

  .speech-bubble {
    top: 18px;
    left: 27%;

    width: 620px;
    height: 290px;
  }

  .speech-text {
    top: 48px;
    left: 65px;
    right: 65px;

    font-size: 17px;
    line-height: 1.35;
  }

  .speech-text strong {
    font-size: 21px;
  }

  .belinda-intro {
    right: 35px;
    bottom: 145px;

    width: 540px;
    max-width: 45%;
  }

  .belinda-intro h1 {
    font-size: clamp(48px, 5vw, 68px);
  }

  .belinda-intro p:last-child {
    font-size: clamp(20px, 2.2vw, 29px);
  }


  /* Action buttons */

  .kids-action-row {
    width: 92%;

    gap: 18px;
  }

  .kids-action-button {
    min-height: 78px;

    padding: 14px 18px;
  }

  .kids-action-button strong {
    font-size: 18px;
  }

  .action-icon {
    font-size: 32px;
  }


  /* ===================================================
     DASHBOARD
  =================================================== */

  .kids-dashboard {
    width: 100%;
    max-width: 1250px;

    margin: 55px auto;

    gap: 26px;
  }

  .dashboard-icons {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 20px;
  }

  .dashboard-icon-card img {
    width: 125px;
    height: 125px;
  }

  .dashboard-icon-card p {
    font-size: 20px;
  }

  .hero-card {
    width: 280px;

    padding: 24px;
  }


  /* ===================================================
     GENERAL SECTION WIDTH
  =================================================== */

  .belinda-learning,
  .belinda-tips,
  .kids-video-section,
  .climate-word-search,
  .city-puzzle,
  .sorting-game,
  .climate-journey {
    width: 100%;
    max-width: 1250px;

    margin-left: auto;
    margin-right: auto;
  }


  /* ===================================================
     LEARNING
  =================================================== */

  .learning-header {
    display: block;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto 25px;

    text-align: left;
  }

  .learning-header h2,
  .learning-intro {
    text-align: left;
  }

  .learning-panel {
    max-width: 1200px;

    padding:
      110px 90px
      90px;
  }

  .learning-panel-content {
    width: 90%;
  }

  .strategy-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }


  /* ===================================================
     CLIMATE TIPS
  =================================================== */

  .belinda-tips h2 {
    font-size: 44px;
  }

  .tips-grid {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 16px;
  }

  .tip-card img {
    max-height: 260px;
  }


  /* ===================================================
     VIDEO CARDS
  =================================================== */

  .kids-video-header {
    align-items: flex-start;

    max-width: 1100px;

    margin-left: auto;
    margin-right: auto;

    text-align: left;
  }

  .kids-video-header p,
  .kids-video-header h2,
  .kids-video-header span {
    margin-left: 0;
    margin-right: 0;

    text-align: left;
  }

  .kids-video-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    max-width: 1200px;

    margin: 0 auto;
  }


  /* ===================================================
     GAMES
  =================================================== */

  .sorting-game {
    max-width: 1150px;
  }

  .sorting-container {
    grid-template-columns:
      minmax(280px, .8fr)
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 20px;
  }
}


/* =====================================================
   TABLET / IPAD
   701px — 1100px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  html,
  body.kids-body {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
  }

  body.kids-body .app {
    display: block;

    width: 100%;
    max-width: 100%;

    padding: 12px;
  }

  .kids-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    padding: 16px;
  }


  /* ===================================================
     HERO
  =================================================== */

  .kids-hero {
    position: relative;
    top: auto;

    width: 100%;

    height: auto;
    min-height: 820px;
    max-height: none;

    border-radius: 28px;
  }

  .kids-top {
    height: 285px;
  }

  .speech-bubble {
    top: 20px;
    left: 50%;

    width: min(620px, 84%);
    height: 290px;

    transform: translateX(-50%);
  }

  .speech-text {
    top: 48px;
    left: 60px;
    right: 60px;

    font-size: 16px;
  }

  .speech-text strong {
    font-size: 20px;
  }

  .belinda-bee {
    left: -10%;
    bottom: 190px;

    width: 560px;
    max-width: 98%;
  }

  .belinda-intro {
    right: 5%;
    bottom: 220px;

    width: 440px;
    max-width: 48%;

    text-align: left;
  }

  .belinda-intro h1 {
    font-size: clamp(42px, 6vw, 58px);
  }

  .belinda-intro p:last-child {
    margin: 0;

    font-size: clamp(19px, 3vw, 26px);

    text-align: left;
  }


  /* Action buttons */

  .kids-action-row {
    right: auto;
    left: 50%;
    bottom: 28px;

    width: calc(100% - 50px);

    transform: translateX(-50%);

    gap: 12px;
  }

  .kids-action-button {
    min-width: 0;
    min-height: 72px;

    padding: 12px;
  }

  .kids-action-button strong {
    font-size: 16px;
  }

  .kids-action-button small {
    font-size: 12px;
  }

  .action-icon {
    font-size: 28px;
  }


  /* ===================================================
     CENTER MAIN PAGE SECTIONS
  =================================================== */

  .kids-dashboard,
  .belinda-learning,
  .belinda-tips,
  .kids-video-section,
  .climate-word-search,
  .city-puzzle,
  .sorting-game,
  .climate-journey {
    width: 100%;
    max-width: 900px;

    margin-left: auto;
    margin-right: auto;
  }


  /* ===================================================
     DASHBOARD
  =================================================== */

  .kids-dashboard {
    display: grid;
    grid-template-columns: 1fr;

    gap: 30px;

    margin-top: 45px;
    margin-bottom: 55px;
  }

  .dashboard-main {
    width: 100%;
  }

  .dashboard-icons {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 24px;
  }

  .dashboard-icon-card {
    width: 100%;
    max-width: 280px;

    margin: 0 auto;
  }

  .dashboard-icon-card img {
    width: 105px;
    height: 105px;
  }

  .dashboard-icon-card p {
    font-size: 19px;
  }

  .hero-progress {
    max-width: 760px;

    margin: 0 auto;

    padding: 22px;
  }

  .hero-card {
    width: min(360px, 90%);

    margin: 0 auto;
  }


  /* ===================================================
     LEARNING HEADER — LEFT ALIGNED
  =================================================== */

  .learning-header {
    display: block;

    width: 100%;
    max-width: 820px;

    margin: 0 auto 24px;

    text-align: left;
  }

  .learning-header h2,
  .learning-header p,
  .learning-intro {
    width: 100%;

    margin-left: 0;
    margin-right: 0;

    text-align: left;
  }

  .learning-tabs {
    max-width: 820px;

    margin-left: auto;
    margin-right: auto;
  }

  .learning-panel,
  .learning-panel-small,
  .learning-panel-large {
    width: 100%;
    max-width: 850px;

    min-height: 0;

    margin: 0 auto;

    padding:
      105px 65px
      80px;
  }

  .learning-panel-content {
    width: 92%;
  }

  .topic-card-row,
  .strategy-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* ===================================================
     BELINDA TIPS — CENTER CARDS
  =================================================== */

  .belinda-tips {
    margin-top: 45px;
    margin-bottom: 70px;
  }

  .belinda-tips h2 {
    font-size: 40px;
  }

  .tips-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 28px 20px;

    max-width: 720px;

    margin: 0 auto;
  }

  .tip-card {
    max-width: 300px;

    margin: 0 auto;

    text-align: center;
  }

  .tip-card img {
    width: 100%;
    max-width: 230px;
    height: 220px;

    margin: 0 auto;

    object-fit: contain;
  }


  /* ===================================================
     VIDEO HEADER — LEFT ALIGNED
  =================================================== */

  .kids-video-header {
    width: 100%;
    max-width: 820px;

    margin: 0 auto 30px;

    align-items: flex-start;

    text-align: left;
  }

  .kids-video-header p,
  .kids-video-header h2,
  .kids-video-header span {
    width: 100%;
    max-width: 760px;

    margin-left: 0;
    margin-right: 0;

    text-align: left;
  }

  .kids-video-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 20px;

    max-width: 820px;

    margin: 0 auto;
  }

  .kids-video-card {
    width: 100%;
    max-width: 390px;

    margin: 0 auto;
  }


  /* ===================================================
     WORD SEARCH / PICTURE PUZZLE
  =================================================== */

  .word-search-layout,
  .picture-puzzle-layout {
    grid-template-columns: 1fr;
  }

  .picture-puzzle-main,
  .picture-puzzle-help,
  .word-search-main,
  .word-search-sidebar {
    width: 100%;
    max-width: 820px;

    margin-left: auto;
    margin-right: auto;
  }


  /* ===================================================
     SORTING GAME
  =================================================== */

  .sorting-game {
    max-width: 820px;
  }

  .sorting-container {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .sorting-items {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    max-width: 720px;

    margin: 0 auto;
  }

  .drop-zone {
    width: 100%;
    max-width: 720px;

    min-height: 260px;

    margin: 0 auto;
  }

  .sort-card.selected {
  outline: 4px solid #6843c2;
  outline-offset: 3px;
  transform: scale(1.03);
}


  /* ===================================================
     CLIMATE JOURNEY
  =================================================== */

  .journey-layout {
    grid-template-columns: 1fr;

    max-width: 820px;

    margin: 0 auto;
  }

  .journey-card {
    width: 100%;

    margin: 0 auto;
  }
}






/* =====================================================
   HOT VS COOL — TABLET + PHONE
===================================================== */

@media screen and (max-width: 1100px) {

  .sorting-game {
    width: 100%;
    max-width: 900px;

    margin: 60px auto;
    padding: 0 18px;

    box-sizing: border-box;
  }

  .sorting-container {
    display: grid;

    /* HOT and COOL beside each other */
    grid-template-columns: 1fr 1fr;

    gap: 18px;

    width: 100%;
  }


  /* Put the drop zones FIRST */

  .hot-zone {
    grid-column: 1;
    grid-row: 1;
  }

  .cool-zone {
    grid-column: 2;
    grid-row: 1;
  }


  /* Cards appear underneath */

  .sorting-items {
    grid-column: 1 / -1;
    grid-row: 2;

    display: grid;

    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
  }


  /* Smaller drop zones */

  .drop-zone {
    width: 100%;

    min-height: 170px;

    padding: 16px;

    box-sizing: border-box;

    border-radius: 24px;
  }

  .drop-zone h3 {
    margin-bottom: 14px;

    font-size: 28px;

    text-align: center;
  }


  /* Cards */

  .sort-card {
    min-width: 0;
    min-height: 85px;

    padding: 12px 10px;

    font-size: 16px;
    line-height: 1.2;

    text-align: center;

    border-radius: 18px;

    cursor: pointer;
  }


  /* Selected card for touchscreens */

  .sort-card.selected {
    outline: 4px solid #6841bd;
    outline-offset: 3px;

    transform: scale(1.03);
  }
}




@media screen and (max-width: 700px) {

  .sorting-game {
    padding: 0 12px;
  }

  .sorting-container {
    gap: 12px;
  }

  .sorting-items {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .sort-card {
    min-height: 90px;

    padding: 12px 8px;

    font-size: 15px;
  }

  .drop-zone {
    min-height: 150px;

    padding: 12px;
  }

  .drop-zone h3 {
    font-size: 24px;
  }
}














/* =====================================================
   RESPONSIVE FIXES — MACBOOK + TABLET
   PLACE AT VERY BOTTOM OF style.css
===================================================== */


/* =====================================================
   MACBOOK / SMALL LAPTOP
   1101px — 1500px
===================================================== */

@media screen and (min-width: 1101px) and (max-width: 1500px) {

  .app {
    width: 100%;
    max-width: 100%;

    padding: 14px;
    gap: 14px;
  }


  /* Sidebar */

  .sidebar {
    flex: 0 0 220px;

    width: 220px;
    min-width: 220px;
    max-width: 220px;

    padding: 22px 16px;
  }

  .nav-menu {
    gap: 10px;
    margin-top: 25px;
  }

  .nav-link {
    gap: 12px;

    padding: 13px;

    font-size: 18px;
  }

  .nav-link img {
    width: 30px;
    height: 30px;
  }


  /* Main page */

  .main-content {
    min-width: 0;

    padding: 12px;
  }


  /* Hero */

  .hero {
    height: clamp(330px, 34vw, 470px);

    padding: 28px;
  }

  .hero-text h2 {
    font-size: 32px;

    padding-top: 20px;
  }

  .hero-text h1 {
    max-width: 720px;

    font-size: clamp(48px, 5vw, 62px);
  }

  .hero-sun {
    width: 105px;

    right: 320px;
  }

  .hero-meta {
    top: 30px;
    right: 25px;

    gap: 20px;

    font-size: 16px;
  }


  /* Dashboard */

  .dashboard-panel {
    width: 97%;

    margin-top: -55px;

    padding: 22px;
  }

  .cards-grid {
    gap: 18px;
  }

  .info-card {
    min-height: 400px;

    padding: 17px;
  }

  .card-title h2 {
    font-size: 21px;
  }


  /* Temperature */

  .weather-main-icon {
    width: 80px;
    height: 80px;
  }

  .temperature-body h3 {
    font-size: 46px;
  }

  .temperature-body p {
    font-size: 17px;
  }

  .status-text {
    font-size: 31px;
  }


  /* AQI */

  .aqi-wrap,
  .aqi-gauge {
    width: 120px;
    height: 120px;
  }

  .aqi-wrap span {
    font-size: 31px;
  }

  .air-body {
    gap: 22px;
  }

  .air-body h4 {
    font-size: 34px;
  }

  .air-body p {
    font-size: 17px;
  }


  /* Glance */

  .glance-row {
    grid-template-columns: 38px 1fr 58px 34px;

    gap: 10px;

    font-size: 17px;
  }

  .glance-row img {
    width: 34px;
    height: 34px;
  }


  /* Footer */

  .footer-logos img {
    max-height: 70px;
    max-width: 160px;
  }
}

/* =====================================================
   TABLET / IPAD
   701px — 1100px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  html,
  body {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
  }

  .app {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 14px;
  }


  /* ===================================================
     SIDEBAR BECOMES SLIDE-OUT MENU
  =================================================== */

  .sidebar {
    position: fixed;

    top: 0;
    left: -290px;

    z-index: 9999;

    width: 270px;
    min-width: 270px;
    max-width: 270px;

    height: 100vh;

    padding: 25px 18px;

    border-radius: 0 28px 28px 0;

    transition: left 0.3s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .mobile-menu-btn {
    display: flex !important;

    position: fixed;

    top: 18px;
    right: 18px;

    z-index: 10000;
  }

  .nav-link {
    padding: 13px;

    font-size: 18px;
  }

  .nav-link img {
    width: 30px;
    height: 30px;
  }


  /* ===================================================
     MAIN CONTENT
  =================================================== */

  .main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;

    padding: 10px;
  }


  /* ===================================================
     HERO
  =================================================== */

  .hero {
    width: 100%;

    height: auto;
    min-height: 390px;

    padding: 45px 30px;

    border-radius: 26px 26px 0 0;
  }

  .hero-text {
    padding: 10px 0 0;
  }

  .hero-text h2 {
    margin: 0 0 8px;

    padding-top: 10px;

    font-size: 30px;
  }

  .hero-text h1 {
    max-width: 650px;

    margin: 0;

    font-size: clamp(45px, 7vw, 60px);
    line-height: 1.1;
  }


  /* Move weather metadata lower */

  .hero-meta {
    position: relative;

    top: auto;
    right: auto;

    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 25px;

    font-size: 16px;
  }

  .hero-sun {
    width: 95px;

    top: 15px;
    right: 30px;
  }


  /* ===================================================
     DASHBOARD PANEL
  =================================================== */

  .dashboard-panel {
    width: 96%;
    max-width: 100%;

    margin-top: -45px;

    padding: 22px;

    border-radius: 30px;
  }


  /*
    Important:
    3 dashboard cards become 2 + 1
  */

  .cards-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 20px;
  }

  .info-card {
    width: 100%;
    min-width: 0;
    min-height: 390px;

    padding: 18px;
  }

  /*
    Make the third card span the full row.
  */

  .info-card:nth-child(3) {
    grid-column: 1 / -1;
  }


  /* ===================================================
     CARD TEXT
  =================================================== */

  .card-title h2 {
    font-size: 21px;
  }

  .temperature-body h3 {
    font-size: 45px;
  }

  .temperature-body p {
    font-size: 17px;
  }

  .status-text {
    font-size: 30px;
  }


  /* ===================================================
     MINI CARDS
  =================================================== */

  .mini-grid,
  .pollutant-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 10px;
  }

  .mini-card,
  .pollutant-card {
    min-width: 0;

    padding: 11px 6px;

    font-size: 14px;
  }

  .mini-card strong,
  .pollutant-card strong {
    font-size: 18px;
  }


  /* ===================================================
     AQI
  =================================================== */

  .air-body {
    gap: 22px;

    margin: 20px 0;
  }

  .aqi-wrap,
  .aqi-gauge {
    width: 115px;
    height: 115px;
  }

  .aqi-wrap span {
    font-size: 30px;
  }

  .air-body h3 {
    font-size: 22px;
  }

  .air-body h4 {
    font-size: 34px;
  }

  .air-body p {
    max-width: none;

    font-size: 17px;
  }


  /* ===================================================
     GLANCE CARD
  =================================================== */

  .glance-list {
    gap: 15px;
  }

  .glance-row {
    grid-template-columns:
      38px minmax(0, 1fr) 65px 38px;

    gap: 10px;

    font-size: 18px;
  }

  .glance-row img {
    width: 35px;
    height: 35px;
  }


  /* ===================================================
     FOOTER
  =================================================== */

  .footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;
  }

  .footer-logos img {
    max-width: 150px;
    max-height: 70px;
  }
}




/* =====================================================
   IPAD PORTRAIT
===================================================== */

@media screen and (min-width: 701px) and (max-width: 850px) {

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .info-card:nth-child(3) {
    grid-column: auto;
  }

  .info-card {
    min-height: auto;
  }

  .hero {
    min-height: 430px;
  }

  .hero-text h1 {
    max-width: 520px;

    font-size: 48px;
  }

  .hero-text h2 {
    font-size: 27px;
  }

  .hero-sun {
    width: 80px;

    right: 20px;
  }

  .mini-grid,
  .pollutant-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}





/* =====================================================
   RESPONSIVE FIXES — MACBOOK + TABLET
   PLACE AT VERY BOTTOM OF style.css
===================================================== */


/* =====================================================
   HAMBURGER BUTTON — DEFAULT HIDDEN
===================================================== */

.mobile-menu-btn {
  display: none;

  position: fixed;
  top: 18px;
  left: 18px;

  z-index: 10001;

  width: 62px;
  height: 62px;

  padding: 13px;

  background: rgba(255, 255, 255, 0.96);

  border: none;
  border-radius: 18px;

  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);

  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;

  width: 100%;
  height: 5px;

  margin: 5px 0;

  background: #6d3f22;
  border-radius: 999px;

  transition: 0.25s ease;
}


/* =====================================================
   SIDEBAR OVERLAY
===================================================== */

.sidebar-overlay {
  display: none;

  position: fixed;
  inset: 0;

  z-index: 9998;

  background: rgba(20, 30, 40, 0.42);

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
  display: block;
}


/* =====================================================
   MACBOOK / SMALL LAPTOP
   1101px — 1500px
===================================================== */

@media screen and (min-width: 1101px) and (max-width: 1500px) {

  .app {
    width: 100%;
    max-width: 100%;

    padding: 14px;
    gap: 14px;
  }


  /* Sidebar */

  .sidebar {
    flex: 0 0 220px;

    width: 220px;
    min-width: 220px;
    max-width: 220px;

    padding: 22px 16px;
  }

  .nav-menu {
    gap: 10px;
    margin-top: 25px;
  }

  .nav-link {
    gap: 12px;

    padding: 13px;

    font-size: 18px;
  }

  .nav-link img {
    width: 30px;
    height: 30px;
  }


  /* Main page */

  .main-content {
    min-width: 0;

    padding: 12px;
  }


  /* Hero */

  .hero {
    height: clamp(330px, 34vw, 470px);

    padding: 28px;
  }

  .hero-text h2 {
    font-size: 32px;

    padding-top: 20px;
  }

  .hero-text h1 {
    max-width: 720px;

    font-size: clamp(48px, 5vw, 62px);
  }

  .hero-sun {
    width: 105px;

    right: 320px;
  }

  .hero-meta {
    top: 30px;
    right: 25px;

    gap: 20px;

    font-size: 16px;
  }


  /* Dashboard */

  .dashboard-panel {
    width: 97%;

    margin-top: -55px;

    padding: 22px;
  }

  .cards-grid {
    gap: 18px;
  }

  .info-card {
    min-height: 400px;

    padding: 17px;
  }

  .card-title h2 {
    font-size: 21px;
  }


  /* Temperature */

  .weather-main-icon {
    width: 80px;
    height: 80px;
  }

  .temperature-body h3 {
    font-size: 46px;
  }

  .temperature-body p {
    font-size: 17px;
  }

  .status-text {
    font-size: 31px;
  }


  /* AQI */

  .aqi-wrap,
  .aqi-gauge {
    width: 120px;
    height: 120px;
  }

  .aqi-wrap span {
    font-size: 31px;
  }

  .air-body {
    gap: 22px;
  }

  .air-body h4 {
    font-size: 34px;
  }

  .air-body p {
    font-size: 17px;
  }


  /* Glance */

  .glance-row {
    grid-template-columns: 38px 1fr 58px 34px;

    gap: 10px;

    font-size: 17px;
  }

  .glance-row img {
    width: 34px;
    height: 34px;
  }


  /* Footer */

  .footer-logos img {
    max-height: 70px;
    max-width: 160px;
  }
}


/* =====================================================
   TABLET / IPAD
   701px — 1100px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  html,
  body {
    width: 100%;
    max-width: 100%;

    overflow-x: hidden;
  }

  .app {
    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 14px;
  }

/* =====================================================
   IPAD HAMBURGER STYLE
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  .mobile-menu-btn {
    display: flex !important;

    position: fixed;
    top: 18px;
    left: 18px;

    width: 64px;
    height: 64px;

    padding: 0;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    background: #ffffff;

    border: none;
    border-radius: 18px;

    box-shadow:
      0 6px 16px rgba(0, 0, 0, 0.18);

    z-index: 10001;

    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block !important;

    width: 30px !important;
    height: 4px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #6d3f22 !important;

    border-radius: 10px;

    opacity: 1 !important;
    visibility: visible !important;

    flex-shrink: 0;
  }
}

  /* ===================================================
     SIDEBAR BECOMES SLIDE-OUT MENU
  =================================================== */

  .sidebar {
    position: fixed;

    top: 0;
    left: -300px;

    z-index: 10000;

    width: 270px;
    min-width: 270px;
    max-width: 270px;

    height: 100vh;

    padding: 95px 18px 25px;

    overflow-y: auto;

    border-radius: 0 28px 28px 0;

    transition:
      left 0.3s ease,
      box-shadow 0.3s ease;
  }

  .sidebar.open {
    left: 0;

    box-shadow:
      14px 0 35px rgba(0, 0, 0, 0.24);
  }

  .nav-link {
    padding: 13px;

    font-size: 18px;
  }

  .nav-link img {
    width: 30px;
    height: 30px;
  }


  /* ===================================================
     MAIN CONTENT
  =================================================== */

  .main-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;

    padding: 10px;
  }


  /* ===================================================
     HERO
  =================================================== */

  .hero {
    width: 100%;

    height: auto;
    min-height: 390px;

    padding: 45px 30px;

    border-radius: 26px 26px 0 0;
  }

  .hero-text {
    padding: 10px 0 0;
  }

  .hero-text h2 {
    margin: 0 0 8px;

    padding-top: 10px;

    font-size: 30px;
  }

  .hero-text h1 {
    max-width: 650px;

    margin: 0;

    font-size: clamp(45px, 7vw, 60px);
    line-height: 1.1;
  }


  /* Move weather metadata lower */

  .hero-meta {
    position: relative;

    top: auto;
    right: auto;

    display: flex;
    flex-wrap: wrap;

    gap: 16px;

    margin-top: 25px;

    font-size: 16px;
  }

  .hero-sun {
    width: 95px;

    top: 15px;
    right: 30px;
  }


  /* ===================================================
     DASHBOARD PANEL
  =================================================== */

  .dashboard-panel {
    width: 96%;
    max-width: 100%;

    margin-top: -45px;

    padding: 22px;

    border-radius: 30px;
  }

  .cards-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 20px;
  }

  .info-card {
    width: 100%;
    min-width: 0;
    min-height: 390px;

    padding: 18px;
  }

  .info-card:nth-child(3) {
    grid-column: 1 / -1;
  }


  /* ===================================================
     CARD TEXT
  =================================================== */

  .card-title h2 {
    font-size: 21px;
  }

  .temperature-body h3 {
    font-size: 45px;
  }

  .temperature-body p {
    font-size: 17px;
  }

  .status-text {
    font-size: 30px;
  }


  /* ===================================================
     MINI CARDS
  =================================================== */

  .mini-grid,
  .pollutant-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 10px;
  }

  .mini-card,
  .pollutant-card {
    min-width: 0;

    padding: 11px 6px;

    font-size: 14px;
  }

  .mini-card strong,
  .pollutant-card strong {
    font-size: 18px;
  }


  /* ===================================================
     AQI
  =================================================== */

  .air-body {
    gap: 22px;

    margin: 20px 0;
  }

  .aqi-wrap,
  .aqi-gauge {
    width: 115px;
    height: 115px;
  }

  .aqi-wrap span {
    font-size: 30px;
  }

  .air-body h3 {
    font-size: 22px;
  }

  .air-body h4 {
    font-size: 34px;
  }

  .air-body p {
    max-width: none;

    font-size: 17px;
  }


  /* ===================================================
     GLANCE CARD
  =================================================== */

  .glance-list {
    gap: 15px;
  }

  .glance-row {
    grid-template-columns:
      38px minmax(0, 1fr) 65px 38px;

    gap: 10px;

    font-size: 18px;
  }

  .glance-row img {
    width: 35px;
    height: 35px;
  }


  /* ===================================================
     FOOTER
  =================================================== */

  .footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 20px;
  }

  .footer-logos img {
    max-width: 150px;
    max-height: 70px;
  }
}


/* =====================================================
   IPAD PORTRAIT
===================================================== */

@media screen and (min-width: 701px) and (max-width: 850px) {

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .info-card:nth-child(3) {
    grid-column: auto;
  }

  .info-card {
    min-height: auto;
  }

  .hero {
    min-height: 430px;
  }

  .hero-text h1 {
    max-width: 520px;

    font-size: 48px;
  }

  .hero-text h2 {
    font-size: 27px;
  }

  .hero-sun {
    width: 80px;

    right: 20px;
  }

  .mini-grid,
  .pollutant-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


/* =====================================================
   PREVENT BACKGROUND PAGE SCROLL
   WHEN MENU IS OPEN
===================================================== */

body.sidebar-menu-open {
  overflow: hidden;
}



/* =====================================================
   PHONE / IPHONE HAMBURGER MENU
   700px AND BELOW
===================================================== */

@media screen and (max-width: 700px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Hamburger button */
  .mobile-menu-btn {
    display: flex !important;

    position: fixed;
    top: 16px;
    right: 16px;

    width: 58px;
    height: 58px;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    background: white;
    border: none;
    border-radius: 18px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);

    z-index: 10001;

    cursor: pointer;
  }

  .mobile-menu-btn span {
    display: block;

    width: 30px;
    height: 4px;

    background: #6d3f22;
    border-radius: 10px;
  }


  /* Sidebar hidden off-screen */
  .sidebar {
    position: fixed;

    top: 0;
    left: -290px;

    width: 270px;
    min-width: 270px;
    max-width: 270px;

    height: 100dvh;

    padding: 25px 18px;

    border-radius: 0 28px 28px 0;

    overflow-y: auto;

    transition: left 0.3s ease;

    z-index: 10000;
  }


  /* Sidebar appears */
  .sidebar.open {
    left: 0;
  }


  /* Navigation */
  .nav-menu {
    margin-top: 65px;
  }

  .nav-link {
    font-size: 17px;
    padding: 12px;
  }

  .nav-link img {
    width: 28px;
    height: 28px;
  }
}



/* =====================================================
   FIX HAMBURGER 3 LINES
===================================================== */

.mobile-menu-btn span {
  display: block !important;

  width: 28px !important;
  height: 4px !important;

  margin: 0 !important;
  padding: 0 !important;

  background-color: #6d3f22 !important;

  border: none !important;
  border-radius: 10px;

  opacity: 1 !important;
  visibility: visible !important;

  flex: 0 0 4px;
}




/* ==========================================
   COOLING PAGE HEADER BALANCE
========================================== */

.resources-header {
  width: 100%;
  padding: 55px 40px 35px;
}

.resources-header > div {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  padding: 0;

  text-align: left;
}

.resources-header h2,
.resources-header h1 {
  margin-left: 0;
  margin-right: 0;
}


/* ==========================================
   QUICK LINKS
========================================== */

.cooling-quick-links {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;

  width: 100%;
  max-width: 1100px;

  margin: 32px auto 0;
}

.cooling-quick-links a {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 64px;

  padding: 14px 18px;

  text-align: center;

  background: rgba(255, 255, 255, 0.72);

  border: 2px solid #9bcaf2;
  border-radius: 14px;

  color: #2268a8;

  font-size: 18px;
  font-weight: 800;

  text-decoration: none;

  box-shadow: 0 5px 12px rgba(0,0,0,.08);
}




@media screen and (max-width: 1100px) {

  .resources-header {
    padding: 70px 28px 30px;
  }

  .resources-header > div {
    max-width: 900px;
  }

  .cooling-quick-links {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    max-width: 800px;
  }

  .cooling-quick-links a:last-child {
    grid-column: 1 / -1;

    width: min(420px, 100%);

    justify-self: center;
  }
}






@media screen and (max-width: 700px) {

  .resources-header {
    padding: 80px 18px 25px;
  }

  .cooling-quick-links {
    grid-template-columns: 1fr;

    max-width: 100%;
  }

  .cooling-quick-links a,
  .cooling-quick-links a:last-child {
    width: 100%;

    grid-column: auto;

    justify-self: stretch;
  }
}






/* =====================================================
   COOLING PAGE HEADER — CLEANER LAYOUT
===================================================== */

.resources-page .resources-header {
  display: block !important;

  width: 100% !important;
  min-height: 0 !important;

  margin: 0 !important;

  padding: 70px 55px 35px !important;

  box-sizing: border-box;
}

.resources-page .resources-header > div {
  width: 100% !important;
  max-width: 1350px !important;

  margin: 0 auto !important;
  padding: 0 !important;
}


/* Heading */

.resources-page .resources-header h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;

  font-size: 34px;

  text-align: left;
}

.resources-page .resources-header h1 {
  margin: 0 !important;
  padding: 0 !important;

  font-size: clamp(52px, 5vw, 72px);
  line-height: 1.05;

  font-weight: 900;

  text-align: left;

  color: #9b3400;
}


/* =====================================================
   SECTION NAVIGATION
===================================================== */

.resources-page .cooling-quick-links {
  display: flex !important;

  align-items: center;
  justify-content: center;

  flex-wrap: wrap;

  gap: 12px;

  width: 100%;
  max-width: 2500px;

  margin: 100px auto 0 !important;

  padding: 5px;

  background: rgba(255,255,255,.20);

  border: 1px solid rgba(255,255,255,.35);

}


/* Links */

.resources-page .cooling-quick-links a {
  flex: 1 1 260px;

  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 54px;

  padding: 10px 18px;

  background: transparent !important;

  border: none !important;
  border-radius: 12px;

  box-shadow: none !important;

color: #6b2b08 !important;

  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;

  text-align: center;
  text-decoration: none;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}


/* Hover */

.resources-page .cooling-quick-links a:hover {


  transform: translateY(-1px);
}


/* Add separators between links */

.resources-page .cooling-quick-links a + a {
  border-left: 1px solid rgba(45,105,173,.25) !important;
}





/* =====================================================
   TABLET / IPAD
   701px — 1100px
===================================================== */

@media screen and (min-width: 701px) and (max-width: 1100px) {

  /* ===================================================
     PAGE HEADER
  =================================================== */

  .resources-page .resources-header {
    display: block !important;

    width: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;

    /*
      Extra top space keeps the title clear
      of the hamburger button.
    */
    padding:
      90px 32px
      20px !important;

    box-sizing: border-box;
  }

  .resources-page .resources-header > div {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: left;
  }


  /* Beat the Heat */

  .resources-page .resources-header h2 {
    margin: 0 0 14px !important;
    padding: 0 !important;

    font-size: 27px;
    line-height: 1.15;

    text-align: left;
  }


  /* Find a Cooling Facility */

  .resources-page .resources-header h1 {
    width: 100%;
    max-width: none;

    margin: 0 !important;
    padding: 0 !important;

    font-size: clamp(42px, 6vw, 54px);
    line-height: 1.08;

    font-weight: 900;

    text-align: left;

    color: #9b3400;
  }


  /* ===================================================
     SECTION NAVIGATION
     STACKED LIKE YOUR SCREENSHOT
  =================================================== */

  .resources-page .cooling-quick-links {
    display: flex !important;
    flex-direction: column;

    align-items: stretch;
    justify-content: flex-start;

    gap: 0;

    width: calc(100% - 30px) !important;
    max-width: 760px !important;

    /*
      Large gap ABOVE the box
    */
    margin:
      105px auto
      0 !important;

    padding: 14px 10px;

    background: rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.42);

    border-radius: 0;
    box-sizing: border-box;
  }


  /* Individual navigation links */

  .resources-page .cooling-quick-links a {
    display: flex;

    width: 100%;
    min-height: 58px;

    flex: none;

    align-items: center;
    justify-content: flex-start;

    padding: 14px 20px;

    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    color: #2764a8;

    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;

    text-align: left;
    text-decoration: none;

    box-sizing: border-box;
  }


  /* Horizontal separator between links */

  .resources-page .cooling-quick-links a + a {
    border-left: none !important;

    border-top:
      1px solid
      rgba(45, 105, 173, 0.16) !important;
  }


  .resources-page .cooling-quick-links a:hover {
    background:
      rgba(255, 255, 255, 0.15) !important;

    transform: none;
  }


  /* ===================================================
     FIRST COOLING SECTION
  =================================================== */

  .resources-page
  .cooling-section:first-of-type {
    margin-top: 55px !important;
  }


  .cooling-section {
    width: 100%;

    padding:
      15px 22px
      35px !important;

    box-sizing: border-box;
  }


  /* ===================================================
     COOLING SECTION HEADER
  =================================================== */

  .cooling-header {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: flex-start;

    gap: 18px;

    width: 100%;

    margin-bottom: 26px;
  }


  .cooling-header > div {
    width: 100%;
  }


  .cooling-header h2 {
    margin: 0 0 12px;

    font-size: 32px;
    line-height: 1.15;

    text-align: left;
  }


  .cooling-header p {
    width: 100%;
    max-width: 760px;

    margin: 0;

    font-size: 17px;
    line-height: 1.5;

    text-align: left;
  }


  /* View Full Map button underneath */

  .cooling-header .map-button {
    align-self: flex-start;

    margin-top: 4px;

    padding: 10px 18px;

    font-size: 16px;
  }


  /* ===================================================
     LIST + MAP
  =================================================== */

  .cooling-content {
    display: grid;

    grid-template-columns: 1fr;

    gap: 24px;

    width: 100%;
    max-width: 820px;

    margin: 0 auto;
  }


  .cooling-list,
  .clean-list {
    width: 100%;
    max-width: 100%;

    height: 520px;

    margin: 0 auto;

    padding: 24px;

    box-sizing: border-box;
  }


  .cooling-map {
    width: 100%;

    height: 470px !important;
    min-height: 470px !important;

    margin: 0 auto;

    border-radius: 22px;
  }


  /* ===================================================
     LIST HEADER
  =================================================== */

  .list-title-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 18px;
  }


  .list-title-row h3 {
    font-size: 26px;
  }


  .list-title-row select {
    max-width: 190px;

    padding: 11px 14px;

    font-size: 14px;
  }


  /* ===================================================
     LIST ITEMS
  =================================================== */

  .clean-place {
    grid-template-columns:
      minmax(0, 1fr)
      125px;

    gap: 15px;

    padding: 22px 0;
  }


  .clean-details h4 {
    font-size: 20px;
  }


  .clean-details p {
    font-size: 15px;
    line-height: 1.4;
  }


  .clean-action a {
    padding: 8px 12px;

    font-size: 15px;
  }
}





@media screen and (max-width: 700px) {

  .resources-page .resources-header {
    padding: 85px 18px 25px !important;
  }

  .resources-page .resources-header h2 {
    font-size: 25px;
  }

  .resources-page .resources-header h1 {
    font-size: 42px;
  }

  .resources-page .cooling-quick-links {
    flex-direction: column;

    gap: 4px;

    padding: 8px;
  }

  .resources-page .cooling-quick-links a {
    width: 100%;
    min-height: 48px;

    flex: none;

    justify-content: flex-start;

    text-align: left;
  }

  .resources-page .cooling-quick-links a + a {
    border-left: none !important;

    border-top: 1px solid rgba(45,105,173,.20) !important;
  }
}






/* =====================================================
   FINAL IPAD PRO OVERRIDE
   MUST BE THE LAST RESPONSIVE BLOCK IN style.css
===================================================== */

@media screen and (min-width: 900px) and (max-width: 1100px) {

  /* ==========================================
     PAGE
  ========================================== */

  .resources-page {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  /* ==========================================
     HEADER
  ========================================== */

  .resources-page .resources-header {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    padding:
      90px 42px
      25px !important;
  }

  .resources-page .resources-header > div {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .resources-page .resources-header h2 {
    margin: 0 0 10px !important;

    font-size: 30px;

    text-align: left;
  }

  .resources-page .resources-header h1 {
    margin: 0 !important;

    font-size: 50px;
    line-height: 1.08;

    text-align: left;
  }


  /* ==========================================
     QUICK LINKS
     RESET TABLET COLUMN LAYOUT
  ========================================== */

  .resources-page .cooling-quick-links {
    display: grid !important;

    /* IMPORTANT: undo flex-direction: column */
    flex-direction: initial !important;

    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;

    gap: 14px !important;

    width: calc(100% - 40px) !important;
    max-width: 900px !important;

    margin:
      65px auto
      0 !important;

    padding: 10px !important;

    box-sizing: border-box;
  }


  .resources-page .cooling-quick-links a,
  .resources-page .cooling-quick-links a:last-child {
    width: 100% !important;

    min-width: 0 !important;
    min-height: 58px;

    grid-column: auto !important;

    flex: none !important;

    justify-self: stretch !important;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 10px 12px;

    font-size: 15px;
    line-height: 1.25;

    text-align: center;

    border: none !important;
  }


  /* Restore vertical dividers */

  .resources-page .cooling-quick-links a + a {
    border-top: none !important;

    border-left:
      1px solid
      rgba(45, 105, 173, 0.20) !important;
  }


  /* ==========================================
     FIRST SECTION
  ========================================== */

  .resources-page
  .cooling-section:first-of-type {
    margin-top: 35px !important;
  }


  .cooling-section {
    width: 100% !important;
    max-width: none !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding:
      20px 32px
      40px !important;

    box-sizing: border-box;
  }


  /* ==========================================
     COOLING HEADER
  ========================================== */

  .cooling-header {
    display: grid !important;

    grid-template-columns:
      minmax(0, 1fr)
      auto !important;

    align-items: end !important;

    gap: 25px !important;

    width: 100%;

    margin-bottom: 24px;
  }


  .cooling-header > div {
    width: 100%;
  }


  .cooling-header h2 {
    margin: 0 0 10px;

    font-size: 31px;
    line-height: 1.15;

    text-align: left;
  }


  .cooling-header p {
    margin: 0;

    max-width: 680px;

    font-size: 16px;
    line-height: 1.45;
  }


  .cooling-header .map-button {
    align-self: end !important;

    margin: 0 !important;

    white-space: nowrap;
  }


  /* ==========================================
     LIST + MAP
     IMPORTANT: TWO COLUMNS ON IPAD PRO
  ========================================== */

  .cooling-content {
    display: grid !important;

    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr) !important;

    gap: 22px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 auto !important;

    align-items: stretch;
  }


  /* Facility list */

  .cooling-list,
  .clean-list {
    width: 100% !important;
    max-width: none !important;

    height: 500px !important;

    margin: 0 !important;

    padding: 20px !important;

    box-sizing: border-box;
  }


  /* Map */

  .cooling-map {
    width: 100% !important;
    max-width: none !important;

    height: 500px !important;
    min-height: 500px !important;

    margin: 0 !important;

    border-radius: 22px;
  }


  /* ==========================================
     LIST HEADER
  ========================================== */

  .list-title-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 10px;
  }


  .list-title-row h3 {
    font-size: 23px;
  }


  .list-title-row select {
    width: auto;
    max-width: 170px;

    padding: 9px 10px;

    font-size: 13px;
  }


  /* ==========================================
     LIST ITEMS
  ========================================== */

  .clean-place {
    display: grid;

    grid-template-columns:
      minmax(0, 1fr)
      100px !important;

    gap: 10px;

    padding: 18px 0;
  }


  .clean-details h4 {
    font-size: 18px;
  }


  .clean-details p {
    font-size: 14px;
  }


  .clean-action a {
    padding: 7px 9px;

    font-size: 13px;
  }
}



/* 
   TOOLTIPS
*/

.tooltip {
    position: relative;
    cursor: default;
    z-index: 9999;
}

.tooltip-text {
    position: absolute;

    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);

    width: 260px;
    padding: 12px 14px;

    background: #222;
    color: #fff;

    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.2);

    font-size: 14px;
    line-height: 1.5;
    text-align: left;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .2s ease, visibility .2s ease;

    z-index: 9999;
}

.tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

.tooltip-text::after {
    content: "";
    position: absolute;

    top: 100%;
    left: 50%;
    transform: translateX(-50%);

    border-width: 8px;
    border-style: solid;
    border-color: #222 transparent transparent transparent;
}

.sensitive-box{

    margin-top:24px;

    padding:18px;

    border-radius:16px;

    background:#EEF5FF;

    border:1px solid #C9DFFF;
}

.sensitive-box h3{

    color:#4A78D4;

    margin-bottom:10px;

    font-size:20px;
}

.sensitive-box p{

    font-size:15px;

    line-height:1.5;

    color:#444;
}
