/* --- VARIABLES --- */
:root {
  --mv-teal: #004B58;
  --mv-beige: #EEECE9;
  --mv-border: rgba(238, 236, 233, 0.2);
}

/* --- GRID CONTAINER --- */
.mv-grid-module {
  display: grid;
  /* 4 Equal Columns */
  grid-template-columns: repeat(4, 1fr);
  
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  
  /* ALIGNMENT FIX: 'center' makes the small cards float in the middle 
     of the big card, instead of hanging from the top. */
  align-items: center; 
  
  gap: 0;
  background-color: transparent;
}

/* --- SHARED CARD STYLES --- */
.mv-card {
  position: relative;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  
  /* Height for Small Cards */
  min-height: 300px; 
  
  background-color: var(--mv-teal); 
  border-right: 1px solid var(--mv-border);
}

.mv-card:last-child { border-right: none;
  
  /* Top-Right and Bottom-Right Radius */
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* --- CARD 1: THE BIG FEATURE CARD --- */
.mv-brand-card {
  /* TALLER: 500px */
  min-height: 350px; 
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block; 
  
  /* Rounded Corners on ALL sides */
  border-radius: 20px;
  
  /* Overlap Fix */
  margin-right: -2px;
  z-index: 10; 
  border-right: none;
  
  /* Shadow to make it pop */
  box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
}

.mv-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 75, 88, 0.4); 
  z-index: 1;
  border-radius: 20px;
}

/* --- LOGO: Top Left --- */
.mv-logo-img {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 30px;
  width: clamp(100px, 12vw, 180px);
  height: auto;
  object-fit: contain;
}

/* --- TEXT CARDS (Mission / Vision) --- */
.mv-text-card {
  z-index: 1; 
  
  /* Vertical Alignment: Keep content centered vertically in the box */
  justify-content: center;
  
  /* Horizontal Alignment: Push to the Left */
  align-items: flex-start; 
  text-align: left;
}

.mv-title {
  color: #EEECE9 !important;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
  text-transform: capitalize;
}

.mv-body {
  color: #EEECE9 !important;
  font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  line-height: 1.6;
  opacity: 0.9;
}
.mv-body p { margin: 0; }

/* --- STATEMENT CARD (Last One) --- */
.mv-statement-card {
  /* Vertical: Center */
  justify-content: center;
  
  /* Horizontal: Left */
  align-items: flex-start;
  text-align: left;
}

.mv-big-text {
  color: #EEECE9 !important;
  font-size: clamp(1.5625rem, 1.455rem + 0.53vw, 1.875rem);
  line-height: 1.2;
  margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .mv-grid-module {
    grid-template-columns: 1fr 1fr; /* 2x2 Grid */
  }
  
  .mv-brand-card {
    min-height: 400px; 
    border-radius: 20px 20px 0 0; 
    margin-right: 0;
    box-shadow: none;
  }
  
  .mv-card { border-bottom: 1px solid var(--mv-border); }
  .mv-card:nth-child(2) { border-right: none; }
}

/* --- MOBILE (Portrait / Stacked) --- */
@media (max-width: 767px) {
  .mv-grid-module {
    grid-template-columns: 1fr; /* Stacked */
    
    /* 1. SQUEEZE EFFECT: 
       We add padding to the container to make the bottom cards narrower (inset). */
    padding: 0 20px; 
  }

  /* --- CARD 1: THE WIDE FEATURE CARD --- */
  .mv-brand-card {
    /* Height Fix: Increased so it's not squeezed */
    min-height: 500px;
    
    /* 2. BREAK OUT EFFECT: 
       Make this card wider than the container by pulling it left and right 
       using negative margins matching the container padding. */
    width: calc(100% + 40px); /* 100% + Left Pad + Right Pad */
    margin-left: -20px;
    margin-right: -20px;
    
    /* Radius: Round Top Only */
    border-radius: 20px 20px 0 0;
    
    /* Visual Pop */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Shadow helps show the width difference */
    margin-bottom: 0;
    z-index: 10;
  }
  
 /* --- MOBILE (Portrait / Stacked) --- */
@media (max-width: 767px) {
  .mv-grid-module {
    grid-template-columns: 1fr; /* Stacked */
    padding: 0;
    gap: 0;
  }

  /* 1. MIDDLE CARDS (Generic Rules) 
     We put this FIRST so it can be overridden by the specific cards below. */
  .mv-card { 
    width: 100%;
    border-right: none; 
    border-bottom: 1px solid var(--mv-border);
    padding: 40px 20px;
    min-height: auto; 
    border-radius: 0; /* Square corners */
  }

  /* 2. CARD 1: TOP CARD (Brand) 
     Targeting .mv-card.mv-brand-card makes this rule STRONGER. */
  .mv-card.mv-brand-card {
    /* HEIGHT FIX: This will now definitely apply! */
    min-height: 200px;
    
    width: 100%;
    margin: 0; 
    
    /* RADIUS: Round Top Only */
    border-radius: 20px 20px 0 0;
    
    box-shadow: none; 
    z-index: 1;
  }
  
  /* Fix Overlay */
  .mv-overlay { border-radius: 20px 20px 0 0; }

  /* 3. CARD 4: BOTTOM CARD 
     Targeting .mv-card:last-child ensures this applies to the bottom only. */
  .mv-card:last-child {
    border-bottom: none;
    
    /* RADIUS: Round Bottom Only */
    border-radius: 0 0 20px 20px;
  }
}
  
  