/* HOME PAGE LAYOUT
   -------------------------------------------------- */

.page-container.home-page {
  background: #ffffff;        /* white background for the top block */
  padding: 0px;
}

/* Top white content block */
.home-top-block {
/* was 960px */
  max-width: 1100px;
/* was 0, auto 48px auto */
  margin: 20px auto 48px auto;
}

.home-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 16px;
}

/* Use your existing paragraph styling if you have it;
   this is just a reminder: */
/*
.content-section p, 
.home-top-block p,
.home-hero-inner p {
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
*/





/* Full-width faded background image section */
.home-hero-section {
  position: relative;
  width: 100%;
  min-height: 350px;
  padding: 60px 24px;

  background-image: url("../art/casestudy_1.png"); /* adjust path/name */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* image does NOT scroll with content */

  color: #0b3b59;
  overflow: hidden;
}

.home-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75); /* fade strength */
  pointer-events: none;
  z-index: 0;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;   /* matches your top content width */
  margin: 0 auto;
}

/* Layout: paragraphs left, blue panel right */
.home-hero-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: 16px;
}

/* Left column (existing paragraphs) */
.home-hero-left {
  flex: 1 1 60%;
}

/* Make sure these paragraphs keep your shared look */
.home-hero-left p {
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

/* Right column: blue panel */
.home-hero-panel {
  flex: 0 0 34%;          /* width of the blue area; tweak if you like */
  background-color: var(--brand-blue);
  color: var(--text-light);
  border-radius: 12px;
  padding: 18px 20px;
}


.home-hero-panel a {
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
}

.home-hero-panel a:hover, 
.home-hero-panel a:focus {
  text-decoration: underline;
}

/* Panel paragraphs, two font sizes */
.home-hero-panel p {
  margin: 0 0 12px 0;
  line-height: 1.5;
}

/* Larger paragraph style */
.hero-panel-large {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Smaller paragraph style */
.hero-panel-small {
  font-size: 0.95rem;
  font-weight: 400;
}

/* White separation lines between paragraphs */
.home-hero-panel p + p {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding-top: 10px;
  margin-top: 10px;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .home-hero-layout {
    flex-direction: column;
  }

  .home-hero-panel {
    flex: 1 1 auto;
  }
}


/* --- Home top block layout with image + text --- */

.home-top-block {
  max-width: 960px;
  margin: 0 auto 48px auto;
}

/* Layout: image left, text right */
.home-intro-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;

  gap: 24px;
  margin-top: 20px;

  /* prevents wrapping unless on mobile */
  flex-wrap: nowrap;
}

/* Circular image */
.home-photo-wrapper {
  flex: 0 0 auto;
}

.home-photo {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Right side content */
.home-intro-right {
  flex: 1 1 auto;
  min-width: 0;
}

/* Grey block with subtitle + tagline */
.home-subtitle-box {
  background-color: #f0f0f0;
  padding: 16px 18px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.home-subtitle {
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.home-tagline {
  margin: 0;
  font-size: 1rem;
}

/* Paragraph under the grey block – match About Us look */
.home-intro-paragraph {
  line-height: 1.6;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Responsive: stack image above text on small screens */
@media (max-width: 600px) {
  .home-intro-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-intro-right {
    width: 100%;
  }

  .home-subtitle-box {
    text-align: left; /* change to center if you prefer */
  }

  .home-intro-paragraph {
    text-align: left;
  }
}
