/*
Theme Name: MBE
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* CASE STUDIES LAYOUT */
:root {
  --mbe-blue: #003a63;
  --mbe-blue-dark: #002745;
  --mbe-light-grey: #f5f5f5;
  --mbe-mid-grey: #e0e0e0;
  --mbe-text: #222222;
  --mbe-white: #ffffff;
  --mbe-max-width: 1140px;
  --border-radius: 8px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mbe-text);
  background: var(--mbe-white);
  line-height: 1.5;
}

main {
  min-height: 100vh;
}

.cs-wrapper {
  max-width: var(--mbe-max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero / banner */

.cs-hero {
  position: relative;
  color: var(--mbe-white);
  overflow: hidden;
}

.cs-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("PATH-TO-HERO-IMAGE.jpg"); /* replace */
  background-size: cover;
  background-position: center;
  filter: grayscale(40%);
  transform: scale(1.03);
}

.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 42, 80, 0.75),
    rgba(0, 42, 80, 0.88)
  );
}

.cs-hero-inner {
  position: relative;
  max-width: var(--mbe-max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cs-hero-title {
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.cs-hero-subtitle {
  max-width: 640px;
  font-size: 1rem;
  opacity: 0.9;
}

/* Filter bar */

.cs-filters {
  background: var(--mbe-blue);
  color: var(--mbe-white);
  padding: 1.5rem 0;
}

.cs-filters-inner {
  max-width: var(--mbe-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.cs-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cs-filter-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.cs-filter-select,
.cs-filter-search {
  border-radius: 4px;
  border: none;
  padding: 0.55rem 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.cs-filter-select {
  appearance: none;
  background: var(--mbe-white);
}

.cs-filter-search {
  width: 100%;
}

/* Featured case study */

.cs-featured {
  padding: 3rem 0 2rem;
}

.cs-section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mbe-blue);
  margin-bottom: 1rem;
}

.cs-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  gap: 2rem;
  align-items: stretch;
  background: var(--mbe-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.cs-featured-media {
  position: relative;
  min-height: 220px;
  background-image: url("PATH-TO-FEATURED-IMAGE.jpg"); /* replace */
  background-size: cover;
  background-position: center;
}

.cs-featured-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--mbe-white);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cs-featured-content {
  padding: 1.75rem 1.75rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-featured-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mbe-blue);
  font-weight: 600;
}

.cs-featured-title {
  font-size: 1.4rem;
  margin: 0;
  color: var(--mbe-blue-dark);
}

.cs-featured-meta {
  font-size: 0.85rem;
  color: #666666;
}

.cs-featured-excerpt {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.cs-featured-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--mbe-blue);
  font-weight: 600;
}

.cs-featured-link span {
  font-size: 1rem;
  transform: translateY(1px);
}

/* Grid of other case studies */

.cs-grid-section {
  padding: 1rem 0 3rem;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.case-study-card {
  background: var(--mbe-blue);
  color: var(--mbe-white);
  padding: 1.5rem 1.4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
  background: var(--mbe-blue-dark);
}

.case-study-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.case-study-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.case-study-meta {
  font-size: 0.8rem;
  opacity: 0.9;
}

.case-study-link {
  margin-top: auto;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  color: var(--mbe-white);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.case-study-link span {
  font-size: 0.95rem;
  transform: translateY(1px);
}

.case-study-card[data-visible="false"] {
  display: none !important;
}

/* MBE logo band */

.cs-logo-band {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.cs-logo-band img {
  max-width: 220px;
  height: auto;
}

/* Contact / form section */

.cs-contact {
  background: var(--mbe-light-grey);
  padding: 2.5rem 1.5rem 3rem;
}

.cs-contact-inner {
  max-width: var(--mbe-max-width);
  margin: 0 auto;
  background: #fdfdfd;
  border-radius: var(--border-radius);
  border: 1px solid var(--mbe-mid-grey);
  padding: 1.75rem 1.75rem 1.9rem;
}

.cs-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 1.5rem;
}

.cs-contact h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--mbe-blue-dark);
}

.cs-contact .field-group {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.cs-contact label {
  font-weight: 500;
}

.cs-contact input[type="text"],
.cs-contact input[type="email"],
.cs-contact textarea {
  padding: 0.55rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--mbe-mid-grey);
  font: inherit;
}

.cs-contact textarea {
  min-height: 120px;
  resize: vertical;
}

.cs-contact .required {
  color: #c62828;
}

.cs-contact-options {
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.cs-contact-options label {
  display: block;
  margin-top: 0.25rem;
  font-weight: 400;
}

.cs-contact small {
  font-size: 0.7rem;
  color: #666666;
}

.cs-contact button[type="submit"] {
  border: none;
  border-radius: 4px;
  padding: 0.7rem 1.5rem;
  background: var(--mbe-blue);
  color: var(--mbe-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  cursor: pointer;
}

.cs-contact button[type="submit"]:hover {
  background: var(--mbe-blue-dark);
}

/* Responsiveness */

@media (max-width: 960px) {
  .cs-filters-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-featured-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-featured-media {
    min-height: 200px;
  }

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

  .cs-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .cs-filters-inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .cs-featured-card {
    border-radius: 0;
  }

  .cs-contact-inner {
    padding: 1.25rem;
  }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}