/* Sub-featured card for HVMT */
.sub-featured-card {
  margin-top: 2.2rem;
  background: #fffbe9;
  border: 1px solid #f46c04;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(244, 108, 4, 0.08);
  padding: 1.2rem 1.2rem 1.2rem 1.2rem;
}

.sub-featured-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

.sub-featured-img-wrap {
  flex: 0 0 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 340px;
}

.sub-featured-img {
  width: 100%;
  max-width: 340px;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(244, 108, 4, 0.1);
}

.sub-featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 180px;
}

.sub-featured-content .project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.sub-featured-content p {
  font-size: 1rem;
  margin-bottom: 0.7rem;
  color: #333;
}
.sub-featured-content a {
  font-weight: 700;
  color: #f46c04;
  font-size: 1rem;
}
.mega-featured-card {
  background: #fffbe9;
  border: 2.5px solid #f46c04;
  box-shadow: 0 6px 32px rgba(244, 108, 4, 0.18), 0 2px 12px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 3rem 2.5rem 2.5rem 2.5rem;
  margin-bottom: 3rem;
}
.mega-featured-img {
  max-width: 100%;
  max-height: 320px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(244, 108, 4, 0.12);
  object-fit: contain;
}
.prominent-theme {
  font-size: 1.45rem;
  font-weight: 500;
  color: #1c4f8a;
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  text-align: left;
}
.center-kicker {
  text-align: start;
  margin-bottom: 2rem;
}
/* Featured Beat the Heat card styles */
.featured-card {
  box-shadow: 0 4px 24px rgba(244, 108, 4, 0.15),
    0 1.5px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid #f46c04;
  background: #fffbe9;
  padding: 2.5rem 2rem 2rem 2rem;
}
.featured-card .featured-img {
  max-width: 100%;
  max-height: 350px;
  width: 100%;
  height: auto;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(244, 108, 4, 0.12);
  object-fit: contain;
}
h3 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
}
/* Support logos row for aboutus.html */
.support-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0;
}
.support-logos img {
  height: 75px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* Import a clean, modern sans with solid hinting */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

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

html,
body {
  height: 100%;
}

/* Base body styles - default for index.html */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background-color: #0c2a4a;
  color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Override body styles for ourwork.html */
body.ourwork-page {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  color: #333;
}

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

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

/* Ourwork page link styles */
body.ourwork-page a {
  color: #0056b3;
  text-decoration: none;
}

body.ourwork-page a:hover {
  text-decoration: underline;
}

/* Layout helpers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ourwork page container */
body.ourwork-page .container {
  max-width: 900px;
  margin: auto;
  padding: 4rem 2rem;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 300;
}

/* Ourwork page specific typography */
body.ourwork-page h2 {
  font-size: 2.2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

body.ourwork-page p {
  margin-bottom: 1rem;
}

/* Header over video (index.html) */
.video-header-wrapper {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.video-header-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

/* Credit overlay on hero video */
.video-credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 6;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
}
.video-credit:hover {
  text-decoration: underline;
}

/* Header - default styles for index.html */
.main-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 0;
  z-index: 5;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ourwork page header styles */
body.ourwork-page .main-header {
  position: relative;
  background: #fff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
}

body.ourwork-page .main-header .logo-link {
  text-decoration: none;
  color: #333;
}

.logo {
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 20px;
}

/* Ourwork page logo */
body.ourwork-page .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  letter-spacing: normal;
  text-transform: none;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

/* Ourwork page navigation */
body.ourwork-page .main-nav ul {
  padding: 0;
  margin: 0;
}

body.ourwork-page .main-nav ul li {
  margin-left: 20px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.75;
}

/* Ourwork page navigation links */
body.ourwork-page .main-nav a {
  color: #999;
  font-weight: bold;
  transition: color 0.3s;
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
  opacity: 1;
}

body.ourwork-page .main-nav a:hover {
  color: #333;
  text-decoration: none;
  opacity: 1;
}

body.ourwork-page .main-nav a.active {
  color: #333;
}

/* Hero (index.html only) */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content-grid {
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero h1 {
  font-weight: 300;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  text-align: center;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.btn:hover {
  background: #fff;
  color: #0c2a4a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

/* Mission section */
.mission {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(180deg, #123761 0%, #1c4f8a 100%);
  background-image: linear-gradient(
      180deg,
      rgba(18, 55, 97, 0.85) 0%,
      rgba(28, 79, 138, 0.85) 100%
    ),
    url("../img/streets_bloomington.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mission .container {
  position: relative;
  z-index: 1;
}

.mission-grid-3 {
  display: grid;
  grid-template-columns: 1.3fr 1.6fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.mission-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mission-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.mission-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100%;
}

.mission-title {
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 16px;
  margin-top: -8px;
  letter-spacing: -0.01em;
}

.mission-image-card {
  width: 110%;
  max-width: 110%;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1c30;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  height: 100%;
}

.mission-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-body p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
}

.mission-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.mission-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.iu-logo-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.iu-shield {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.iu-shield svg {
  width: 48px;
  height: 48px;
  display: block;
}

.iu-text-block {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.iu-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-bottom: 6px;
  opacity: 0.95;
}

.lab-name {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
}

/* Our Work section (index.html) */
.our-work {
  background: linear-gradient(180deg, #f46c04 0%, #cc7d07 100%);
  background-image: linear-gradient(
      180deg,
      rgba(244, 108, 4, 0.85) 0%,
      rgba(204, 125, 7, 0.85) 100%
    ),
    url("../img/streets_bloomington.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;
  color: #fff;
}

.work-header {
  text-align: left;
  margin-bottom: 36px;
}

.work-kicker {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ourwork-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.work-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work-diagram-img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.work-themes-line {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.work-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
  opacity: 0.95;
}

.work-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.work-card img,
.work-img-link img {
  width: 108px;
  height: 88px;
  min-width: 108px;
  min-height: 88px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: block;
}

.work-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 600;
}

.work-meta a .work-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.work-meta a:hover .work-title {
  opacity: 0.8;
}

.work-desc {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
}

.work-cta {
  margin-top: 8px;
}

/* Our Work section (ourwork.html) */
.our-work-section {
  margin-top: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 2.5rem;
}

.project-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 240px;
}

.project-card img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  border-radius: 6px;
  object-fit: contain;
}

.project-card .project-title {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.project-card .project-category {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.2rem;
}

.project-card p {
  font-size: 0.89rem;
  color: #444;
}

.project-card a {
  margin-top: auto;
  font-size: 0.85rem;
  color: #0056b3;
  font-weight: bold;
}

/* Sensors page */
.content-section {
  margin: 2rem 0 3rem;
}
.section-sub {
  color: #666;
  margin: 0.25rem 0 1rem;
}

/* Sensors: airy intro */
.page-intro {
  margin: 1rem 0 2rem;
}
.intro-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.intro-sub {
  color: #444;
  margin-bottom: 0.8rem;
}
.stat-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0.75rem;
}
.stat {
  background: #f6f7fb;
  border: 1px solid #e6e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.stat-num {
  font-weight: 800;
  color: #0c2a4a;
}
.stat-label {
  font-size: 0.9rem;
  color: #555;
}
.intro-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.chip-link {
  background: #0c2a4a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.chip-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Sensors: strip */
.sensor-strip {
  margin: 1.2rem 0 2.2rem;
}
.strip-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  animation: autoScroll 20s ease-in-out infinite;
}
.strip-scroll:hover {
  animation-play-state: paused;
}
.strip-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.strip-card:hover {
  transform: translateY(-2px);
}
.strip-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.strip-card figcaption {
  padding: 12px 14px;
  font-size: 0.94rem;
  color: #444;
  line-height: 1.4;
}

@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Timeline/Journey: horizontal with arrows */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
}
.timeline-item {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.timeline-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.timeline-item::after {
  content: "→";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #f46c04;
  z-index: 2;
}
.timeline-item:last-child::after {
  display: none;
}
.timeline-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.timeline-card {
  padding: 16px 18px;
}
.timeline-card h4 {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #333;
}
.timeline-card .muted {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #888;
  font-weight: 500;
}
.timeline-card p:not(.muted) {
  margin: 0;
  line-height: 1.5;
  color: #555;
}

/* Responsive timeline adjustments */
@media (max-width: 768px) {
  .timeline-list {
    grid-template-columns: 1fr;
  }
  .timeline-item::after {
    content: "↓";
    right: 50%;
    transform: translateX(50%);
    bottom: -20px;
    top: auto;
  }
}

/* CTA band */
.cta-band {
  background: linear-gradient(90deg, #f46c04 0%, #cc7d07 100%);
  color: #fff;
  border-radius: 12px;
  padding: 28px;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.cta-inner {
  display: grid;
  gap: 10px;
}

/* Data access and visualization pages */
.map-container {
  margin: 1rem 0 1.5rem;
}
.map-description {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}
.section-desc {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}
.data-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.access-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.access-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.access-card h4 {
  margin: 0 0 8px;
  font-weight: 700;
  color: #333;
}
.access-card p {
  margin: 0 0 16px;
  line-height: 1.5;
  color: #555;
}
.embed-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  padding: 0 4px;
}
.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cta-btn {
  background: #fff;
  color: #0c2a4a;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.cta-btn.alt {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}
.cta-btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

@media (max-width: 920px) {
  .intro-title {
    font-size: 1.8rem;
  }
  .strip-card img {
    height: 140px;
  }
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.sensor-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.sensor-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.sensor-card figcaption {
  padding: 0.9rem 1rem 1.1rem;
}
.sensor-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.muted {
  color: #777;
  font-size: 0.9rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.journey-item {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0.75rem;
}
.journey-img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.journey-meta h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.journey-meta p {
  margin: 0 0 0.35rem;
}

.embed-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.embed-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0.5rem;
  overflow: hidden;
}

@media (max-width: 920px) {
  .sensor-grid {
    grid-template-columns: 1fr;
  }
  .sensor-card img {
    height: 200px;
  }
  .journey-item {
    flex-direction: column;
  }
  .journey-img {
    width: 100%;
    height: 180px;
  }
}

/* Footer - shared between both pages */

.main-footer {
  background: #000;
  color: #fff;
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Ourwork page footer */
.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.footer-main a {
  color: #fff;
}

.footer-newsletter {
  flex: 1;
}

.footer-newsletter h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-newsletter input[type="email"] {
  padding: 0.8rem;
  border: 1px solid #555;
  background: #222;
  color: #fff;
  width: 60%;
}

/* Index page footer form */
.footer-form {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}

.footer-form input[type="email"] {
  flex: 1;
  padding: 14px 12px;
  border: none;
  font-size: 16px;
  border-radius: 2px 0 0 2px;
  width: auto;
  background: #fff;
  color: #000;
}

.footer-newsletter button,
.footer-form button {
  padding: 0.8rem 1.5rem;
  background: #fff;
  color: #111;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

.footer-form button {
  padding: 14px 18px;
  background: #d0d0d0;
  color: #000;
  letter-spacing: 1px;
  border-radius: 0 2px 2px 0;
  transition: background 0.2s ease;
}

.footer-form button:hover {
  background: #b9b9b9;
}

.footer-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-right {
  flex: 1;
  text-align: left;
}

.footer-info {
  text-align: right;
}

.footer-info .logo-text,
.logo-text {
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
  text-align: right;
}

/* Ourwork page logo text */
body.ourwork-page .logo-text {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: right;
  text-transform: none;
  letter-spacing: normal;
}

.footer-info a {
  color: #79b1ff;
  display: block;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-newsletter h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-form {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}
.footer-form input[type="email"] {
  flex: 1;
  padding: 14px 12px;
  border: none;
  font-size: 16px;
  border-radius: 2px 0 0 2px;
  width: auto;
  background: #fff;
  color: #000;
}
.footer-form button {
  padding: 14px 18px;
  background: #d0d0d0;
  color: #000;
  letter-spacing: 1px;
  border-radius: 0 2px 2px 0;
  transition: background 0.2s ease;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.footer-form button:hover {
  background: #b9b9b9;
}
.footer-info {
  text-align: right;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem 1.5rem;
}

.team-member {
  text-align: center;
}

.team-member .profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  margin-bottom: 1rem;
}

.team-member .name {
  font-weight: bold;
  display: block;
  margin-bottom: 0.25rem;
}

.team-member .title {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.3;
}

@media (max-width: 768px) {
  body.ourwork-page .container {
    padding: 2rem 1rem;
  }
  .footer-main {
    flex-direction: column;
    text-align: center;
  }
  .footer-right {
    text-align: center;
    margin-top: 2rem;
  }
  body.ourwork-page .footer-right {
    text-align: center;
  }
  .footer-newsletter input[type="email"] {
    width: 80%;
    margin-bottom: 1rem;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .mission-grid-3 {
    grid-template-columns: 1fr 1.3fr 0.8fr;
    gap: 36px;
  }
  .hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 920px) {
  .hero-content-grid {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .mission-grid-3 {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .mission-right {
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-info {
    text-align: center;
  }
  .ourwork-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 36px;
  }
  .logo {
    font-size: 18px;
  }
  .iu-shield {
    width: 60px;
    height: 60px;
  }
  .lab-name {
    font-size: 22px;
  }
  .work-kicker {
    font-size: 28px;
  }
  .work-diagram-img {
    max-width: 320px;
  }
  .work-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .work-card img {
    width: 100%;
    height: 180px;
  }
}

/* =============================================
   Styles for Unified Featured Cards
   ============================================= */

/* Base style for both featured cards */
.featured-card {
  display: grid;
  /* This makes both cards the same size */
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background-color: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.card-image img {
  width: 100%;
  border-radius: 8px;
}

/* Text content styling */
.card-content h2,
.card-content h3 {
  margin-top: 0;
  border: none;
  padding: 0;
}

.card-content h2 {
  font-size: 2.2rem;
}

.card-content h3 {
  font-size: 1.4rem;
}

.card-content p {
  font-size: 1.05rem;
  color: #444;
}

.card-content a {
  font-weight: 700;
}

.program-details {
  margin: 1.5rem 0;
}

.program-details ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

/* Responsive styles for both cards */
@media (max-width: 820px) {
  .featured-card {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    text-align: center;
  }

  .card-image {
    max-width: 320px;
    margin: 0 auto;
  }

  .program-details {
    display: inline-block; /* Allows block to be centered */
    text-align: left;
  }
}
