:root{
      --primary: #12B614; /* NGO green */
      --secondary: #2fa4d9; /* NGO blue */
      --light: white;
    }

    body{
      background: var(--light);
      
    }

    .history-card{
      background: #fff;
      border-radius: 1.5rem;
      box-shadow: 0 20px 40px rgba(0,0,0,0.08);
      overflow: hidden;
    }

    .image-stack{
      position: relative;
      height: 100%;
      min-height: 320px;
    }

    .image-frame{
      position: absolute;
      border-radius: 1.2rem;
      overflow: hidden;
      border: 4px solid #fff;
      box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    }

    .image-frame img{
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .frame-one{
      width: 75%;
      height: 60%;
      top: 0;
      left: 0;
    }

    .frame-two{
      width: 70%;
      height: 55%;
      bottom: 0;
      right: 0;
    }

    .history-content h2{
      color: var(--primary);
      font-weight: 700;
    }

    .history-content p{
      color: #000;
      line-height: 1.5;
    }

    .badge-history{
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      font-size: 0.85rem;
    }

    @media (max-width: 768px){
      .image-stack{
        min-height: 260px;
        margin-bottom: 1.5rem;
      }

      .frame-one,
      .frame-two{
        width: 80%;
        height: 55%;
      }
    }
/* ===============================
   FLIP CARD SECTION (NEW DESIGN)
   =============================== */

.flip-card-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f4f9f7, #e6f4ef);
}

/* ===== CONTAINER ===== */
.flip-card-container {
  max-width: 1200px;
  margin: 0 auto 80px;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* ===== CARD WRAPPER ===== */
.flip-wrapper {
  width: 420px;
  height: 320px;
  perspective: 1200px;
  flex-shrink: 0;
  cursor: pointer;
}

/* ===== FLIP CARD ===== */
.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* Hover + Tap */
.flip-wrapper:hover .flip-card,
.flip-card.is-flipped {
  transform: rotateY(180deg);
}

/* ===== CARD FACES ===== */
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 22px;
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.flip-front {
  background: white;
  color: #fff;
}

.flip-front h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #12B614;
}

.flip-back {
  background: #ffffff;
  color: #1f2937;
  transform: rotateY(180deg);
  border: 2px solid #12B614;
}

.flip-back p {
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ===== CONTENT ===== */
.flip-content {
  flex: 1;
}

.flip-list p {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 14px;
  padding-left: 22px;
  position: relative;
  color: #374151;
}



/* ===============================
   OPPOSITE SIDEWAYS LAYOUT
   =============================== */

/* FIRST ROW → CARD LEFT */
.flip-card-container:first-of-type {
  flex-direction: row;
}

/* SECOND ROW → CARD RIGHT */
.flip-card-container:nth-of-type(2) {
  flex-direction: row-reverse;
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 992px) {
  .flip-card-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .flip-wrapper {
    width: 100%;
    max-width: 360px;
    height: 280px;
  }

  .flip-list p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .flip-wrapper {
    height: 240px;
  }

  .flip-front h2 {
    font-size: 1.6rem;
  }

  .flip-back p,
  .flip-list p {
    font-size: 1rem;
  }
}
@media (max-width: 768px) {

  .flip-card-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 24px;
  }

  /* FORCE CARD FIRST */
  .flip-wrapper {
    order: -1 !important;
    width: 100%;
    height: 260px;
  }

  /* FORCE CONTENT AFTER CARD */
  .flip-content {
    order: 2 !important;
    width: 100%;
  }

  .flip-list {
    padding-left: 0;
  }

  .flip-list p {
    text-align: left;
    font-size: 1rem;
  }
}
/* ===============================
   CONTENT SIDE – PREMIUM STYLING
   =============================== */

.flip-content {
  background: #ffffff;
  border-radius: 22px;
  padding: 40px 45px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Soft accent border */
.flip-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border-left: 3px solid #12B614;
  pointer-events: none;
}

/* Content list container */
.flip-list {
  max-width: 520px;
  margin: auto;
}

/* Each item */
.flip-list p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1f2937;
  margin-bottom: 16px;
  padding-left: 32px;
  position: relative;
}



/* Subtle hover polish */
.flip-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  transition: all 0.35s ease;
}

/* ===============================
   RESPONSIVE POLISH
   =============================== */

@media (max-width: 768px) {

  .flip-content {
    padding: 28px;
    border-radius: 18px;
  }

  .flip-content::before {
    border-left: none;
    border-top: 3px solid #12B614;
  }

  .flip-list p {
    font-size: 1rem;
    padding-left: 28px;
  }
}
