	 .card2-wrapper {
	  width: calc(100% - 40px); /* 20px margin on left + 20px on right = 40px */
	  margin: 20px;            /* top/bottom 0, left/right 20px */
	  padding: 0 20px;
	  box-sizing: border-box;
	  background-color: #141414;
	}


section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}


    .card-2 {
      flex: 1 1 45%;
      background-size: cover;
      background-position: center;
      border-radius: 6px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
      overflow: hidden;
      position: relative;
      display: flex;
      flex-direction: column;
    }

    .card-2::before {
      content: '';
      display: block;
      padding-top: 56.25%; /* Optional aspect ratio (16:9) */
    }

 .card-2-content {
  position: absolute;   /* child is locked to bottom */
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 20px;
}

    .card-2-title {
      font-size: 20px;
      font-weight: bold;
      margin-bottom: 10px;
    }

    .card-2-description {
      line-height: 1.5;
    }
	
	.view-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ff6600;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin:10px;
}

    .view-more:hover {
      background-color: rgba(255, 255, 255, 0.2);
    }

	 .view-all-btn {
	  display: inline-block;
	  padding: 10px 20px;
	  border: 1px solid #007bff;
	  color: #007bff;
	  background-color: transparent;
	  text-decoration: none;
	  border-radius: 4px;
	  transition: all 0.3s ease;
	}

	.view-all-btn:hover {
	  background-color: #007bff;
	  color: #fff;
	}



        /* Mobile-specific scrollable description */
@media (max-width: 768px) {
  .card-2 {
    flex: 1 1 100%;              /* full width */
    height: auto;                 /* auto height */
    background-size: cover;       /* show image */
    background-position: center;
    border-radius: 6px;
    position: relative;           /* relative for any overlay positioning */
    overflow: hidden;
    padding-top: 56.25%;          /* optional: reserve space for image */
  }

  /* Remove pseudo-element height restriction */
  .card-2::before {
    display: none;
  }

  /* Overlay / content styling */
  .card-2-content {
    position: relative;           /* stack below image naturally */
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 15px;
    margin-top: -60px;            /* optional: pull overlay slightly up */
  }

  /* Make description expand */
  .card-2-description {
    max-height: none;
    overflow: visible;
  }

  /* Headers inside overlay */
  .card-2-title {
    font-size: 1.5rem;            /* smaller font for mobile */
    font-weight: bold;
    margin-bottom: 10px;
  }

  .card-2-description {
    font-size: 1rem;
    line-height: 1.4;
  }
}
