/* ===============================
Global Styles
=============================== */
.logo-img {
  /* Set a fixed height that looks good in a navbar */
  height: 50px; 
  width: auto; 
  max-width: 100%; 
  vertical-align: middle; 
}
html {
  scroll-behavior: smooth;
}

/* Optional: Add some padding to the links so they look nice */
.case-study-nav a {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}

.case-study-nav a:hover {
  color: #000000; /* Change this to your preferred hover color */
}

:root {
  --primary-color: #87CEEB; 
  --background-color: #000000;
  --text-color: #FFFFFF;
  --font-family-primary: 'Arial', sans-serif;
}

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background-color: #ffffff;
  color: #000000;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none; 
  transition: color .3s;
}

a:hover {
  color: var(--primary-color);
}

/* Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 50px;
  height: 90px;
  background: #fff;
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #000;
}

.navbar a {
  color: #000;
}

.navbar a:hover {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  transition: all 0.3s ease;
}

.nav-links a {
  padding: 8px 10px;
}

.contact-button {
  border: 1px solid #000;
  color: #000;
  padding: 10px 20px;
}

.contact-button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #000;
  margin: 6px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* Hamburger transform animation */
.navbar.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar.open .hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===============================
Header Section
=============================== */
.case-study-header {
  text-align: center;
  padding: 100px 0 40px;
  background-color: #ffffff;
}

.case-study-header h1 {
  font-size: 2.8em;
  font-weight: 800;
  margin-bottom: 10px;
}

.case-study-header p {
  color: #6fa3ef;
  font-weight: 600;
  font-size: 1.1em;
  letter-spacing: 1px;
}

/* ===============================
Main Content
=============================== */
.case-study-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 4vw;
}

.content-section h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: #6fa3ef;
  margin-top: 80px;
  border-bottom: 2px solid #6fa3ef;
  padding-bottom: 5px;
}

.content-section h3 {
  font-size: 1.2em;
  color: #000000;
  margin-top: 40px;
}

.content-section h4 {
  font-size: 1.2em;
  color: #000000;
  margin-top: 40px;
  font-weight: 400;
}

p {
  color: #000000;
  font-size: 1.05em;
  margin-bottom: 20px;
}

/* Highlight Box */
.section-box {
  background-color: #6fa3ef;
  color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  margin: 40px 0;
}

.section-box h3 {
  color: #ffffff;
  margin-top: 0;
  font-size: 1.3em;
}

/* Lists */
ol, ul {
  padding-left: 20px;
  color: #000000;
}

ul li, ol li {
  margin-bottom: 6px;
  font-size: 1em;
}

/* Images */
img {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.3;
  letter-spacing: 0.3px;
  scroll-margin-top: 80px;
}

strong, b {
  color: #000000;
}

em {
  color: #6fa3ef;
}

.case-intro {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 4vw;
  text-align: left;
  font-size: 1.05em;
}

.case-intro p {
  margin-bottom: 8px;
  color: #000000;
  line-height: 1.6;
}

/* Research Results Grid */
.research-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 20px;
  text-align: center;
  margin-top: 50px;
  padding: 0 50px;
}

.finding {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.finding h3 {
  margin: 15px 0 5px 0; 
  font-size: 1.3em;
  font-weight: 700;
}

.finding p {
  color: #000000;
  font-size: 1em;
  line-height: 1.4;
  margin-bottom: 0;
}

.finding i {
  font-size: 2.5rem;
}

/* ===============================
Persona Section
=============================== */
.persona-section {
  margin-top: 80px;
}

.persona-header {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.persona-image-wrapper {
  background-color: #6fa3ef;
  border-radius: 32px;
  padding: 24px 24px 0;
  max-width: 280px;
  flex: 0 0 auto;
}

.persona-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 0;
}

.persona-summary {
  flex: 1 1 280px;
}

.persona-tag {
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6fa3ef;
  margin-bottom: 8px;
}

.persona-name {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.persona-bio-card {
  background-color: #6fa3ef;
  border-radius: 32px;
  padding: 40px 40px 32px;
  margin-top: 60px;
}

.persona-bio-card h3,
.persona-bio-card h4 {
  color: #FFFFFF;
}

/* ===============================
Image Carousel
=============================== */
.carousel-container {
  position: relative;
  margin: 40px auto;
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 24px;
  transition: 0.6s ease;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
  user-select: none;
}

.next {
  right: 0;
}

.prev:hover, .next:hover {
  background-color: var(--primary-color);
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
}

.active, .dot:hover {
  background-color: #6fa3ef;
}

.fade {
  animation: fade 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/*================================
WIREFRAME STUFF
=================================*/
.container {
    text-align: center;
    max-width: 800px; /* Adjust based on your layout */
    margin: 0 auto;
  }

  .wireframe-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-family: sans-serif; /* Matches your image font style */
    color: #000;
    background-color: #fff;
    border: 1.5px solid #000;
    text-decoration: none;
    cursor: pointer;
    
    /* This creates the solid shadow effect seen in your image */
    box-shadow: 4px 4px 0px 0px #000;
    
    /* Transition for a nice click feel */
    transition: all 0.1s ease;
    margin-top: 20px;
  }

  /* Optional: "Press" effect when clicking */
  .wireframe-btn:active {
    box-shadow: 0px 0px 0px 0px #000;
    transform: translate(4px, 4px);
  }

  .content-row {
  display: flex;
  align-items: flex-start; /* keeps text and image aligned at the top */
  gap: 2rem;               /* space between text and image */
}
.text-column{
  flex: 1;
}

.text-column { flex: 0 0 50%; } 

.image-column { flex: 0 0 50%; }

.image-column img{
    width: 220px
}

.iteration-row{
  display: flex;
  gap: 10px;
  justify-content: center;   /* center the row on desktop */
  flex-wrap: wrap;           /* allows wrapping if needed */
}


/* ===============================
Mobile Navigation Fix
=============================== */
@media (max-width: 768px) {
  .logo-img {
    /* Smaller height for mobile devices */
    height: 35px; 
  }

  .iteration-row{
    flex-direction: column;  /* top-to-bottom */
    align-items: center;     /* center images */
  }

  .iteration-row img{
    width: 220px;            /* optional: keep a consistent size */
    max-width: 100%;         /* prevent overflow on tiny screens */
    height: auto;
  }

  /* Show hamburger */
  .hamburger {
    display: inline-block;
  }

  /* Hide normal nav links on mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  /* Show nav when menu is open */
  .navbar.open .nav-links {
    display: flex;
  }

  .persona-header {
    gap: 24px;
  }

  .persona-image-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }

  .content-row{
    flex-direction: column;
  }


  .image-column img{
    width: 220px;       /* keep size if you want */
    max-width: 100%;    /* prevents overflow on very small screens */
    height: auto;
  }

  .image-column {
    align-self: center;
  }
}
