/* Reset + base styles */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #001d33;
  }
  
  /* Zigzag section wrapper */
  .zigzag-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem;
    background-color: #f9f9f9;
    box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
  }
  
  /* Each row is a card */
  .zigzag-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    vertical-align: top;
    overflow: hidden;
  }
  
  /* Alternate layout */
  .zigzag-card.reverse {
    flex-direction: row-reverse;
  }
  
  /* Split into 2 columns */
  .card-text, .card-image {
    flex: 1 1 50%;
    margin: 0;
    padding: 0;
  }
  
  /* Text box styles */
  .card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    box-sizing: border-box;
    vertical-align: top;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
  }
  
/* When it enters view */
.card-text.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .zigzag-card.light .card-text {
    background-color: #f6f6f6;
  }
  
  .zigzag-card.dark .card-text {
    background-color: #eaeaea;
  }
  
  .card-text h4 {
    font-size: 0.85rem;
    color: #193442;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
  }
  
  .card-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .card-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #333;
  }
  
  .card-button {
    display: inline-block;
    background-color: #f3c623;
    color: #000;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    font-weight: bold;
    border-radius: 4px;
  }
  
  /* Image block */
  .card-image {
    width: 100%;
  height: auto;
  aspect-ratio: 1.5; /* optional: maintain shape */
  object-fit: cover;
  display: block;
  border: none;
  margin: 0;
  padding: 0;
  }
  
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
  }
  
  /* Optional: Divider between cards */
  .zigzag-card:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .zigzag-card,
    .zigzag-card.reverse {
      flex-direction: column;
    }
  
    .card-text,
    .card-image {
      width: 100%;
      padding: 2rem 1.5rem;
    }
  
    /* ✅ Center image on mobile */
    .card-image {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 1rem 0;
    }
  
    .card-image img {
      width: 90%;
      height: auto;
      object-fit: cover;
    }
  
    /* Modern center for zigzag-cards heading on mobile */
    .zigzag-cards > h2 {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      font-size: 1.5rem;
      max-width: 90vw;
      line-height: 1.3;
      font-weight: 700;
      letter-spacing: 0.5px;
      padding: 0.5em 0;
      display: block;
    }
  }
  