
/* --------- MediaCard.css (responsive, clean, updated) --------- */

.container-mediacards {
  max-width: 1280px;
  /* margin: 0 auto; */
   padding-top: 80px;
    padding-left: 35px;
}

.border-line-media {
  border: 1px solid rgb(235, 233, 233);
  width: 100%;
  margin: 50px 0;
  /* removed min-width so divider is responsive */
}

/* Heading */
.Tous-heading {
 
  font-family: 'Acumin Pro Bold';
  font-size: clamp(1.2rem, 2vw, 1.2rem);
  color: #000;
  padding-bottom: 10px;
}

/* Outer padding */
.cards-container-media {
  
  padding-right: 35px;
  box-sizing: border-box;
}

/* Card root */
.card-media {
  display: flex;
  flex-direction: row; /* horizontal on wide screens */
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  box-sizing: border-box;
}

/* Left side: image + actions */
.card-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

/* Image containers */
.card-image-container,
.card-image-container-two {
  position: relative;
  width: 320px;         /* keep image width on wide screens */
  height: 180px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}

.card-image-container img,
.card-image-container-two img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Actions column (plus, remove, edit) */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: 8px;
  align-items: center;
}

/* Circular action buttons */
.action-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px; /* small adjustment so +/× fit nicely */
  transition: transform 0.2s;
  line-height: 1;
  padding: 0;
}

.action-btn:hover { transform: scale(1.08); }

.btn-add { background-color: #009145; color: #fff; }
.btn-remove { background-color: #e72028; color: #fff; }

/* edit icon alignment */
.edit-icon {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding-top: 87px;
}

/* Right/content side */
.card-content {
  width: 42.7%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
}

/* Keep inner info horizontal on wide screens */
.card-main-info { flex: 1; }

.card-header {
  margin-bottom: 15px;
}

/* Title row: keep spacing & fonts as original */
.card-title-input {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border: 1px solid #e0e0e0;
  font-size: clamp(0.99rem, 2vw, 1.1rem);
  font-family: "Acumin Pro Medium";
  color: #000;
}

/* title and edit label */
.card-title-text { flex: 1; }

.edit-label {
  font-family: "Acumin Pro Medium";
  color: #000;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
}
.edit-label:hover { background-color: #e0e0e0; }

/* IMPORTANT: info area is ROW by default (horizontal on wide screens) */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px; /* spacing between info items horizontally */
 
  flex-wrap: wrap; /* allow wrapping if space gets tight */
}

.info-item {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #000;
  font-family: "Acumin Pro Medium";
  white-space: nowrap;
}
.card-footer{
    margin-top: -40px;
}

/* Footer styles */
.card-footer,
.card-footer-two {
  display: flex;
  flex-direction: column;
  padding-left: 4.3rem;
 
  box-sizing: border-box;
}

.footer-title {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #000;
  font-family: "Acumin Pro Medium";
  margin-bottom: 10px;
}

.footer-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-item {
  font-size: clamp(0.97rem, 2vw, 1rem);
  color: #000;
  font-family: "Acumin Pro Medium";
}
.footer-title-item{
  
  font-size: clamp(0.97rem, 2vw, 1rem);
  color: #000;
  font-family: "Acumin Pro Medium";
}

/* ---------- Responsive breakpoints ---------- */

/* For medium screens: keep same layout but ensure things don't overflow */

@media (max-width: 1425px) {
.card-media {
     gap: 30px;
}

.card-footer, .card-footer-two {
    padding-left: 0rem;
  }
.card-left {
    gap: 2px;
}


}



@media (max-width: 1280px) {
    .card-content {
    width: 33.96%;
} 
   .card-media {
     gap: 15px;
}
.cards-container-media {
 padding-right: 0px;
}
  }

/* MAIN: under 1024px — show cards side-by-side (two per row).
   Each .card-media becomes a stacked card (image -> actions -> content),
   and inner card data stays vertical. */
@media (max-width: 1023px) {
    .card-footer{
    margin-top: -0px;
}
    .edit-icon {
        cursor: pointer;
    
    width: 30px;
    height: 30px;
  margin-left: auto; /* <-- Add this to push edit icon to right */
  padding-top: 0px;
  
    }
    .container-mediacards {
 
    padding-left: 100px;
    }
  .cards-container-media { 
    /* padding-top: 40px; */
    display: flex;
    gap: 6px;
    box-sizing: border-box;
  }

  /* Each card takes half the available width (2 per row). Adjust gap via .cards-container-media gap. */
  .card-media {
    width: calc(50% - 12px);
    flex-direction: column; /* image on top, content below */
    gap: 12px;
    align-items: stretch;
    box-sizing: border-box;
  }

  /* Left block becomes full width and stacks internally */
  .card-left {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  /* Make image fluid */
  .card-image-container,
  .card-image-container-two {
    width: 100%;
    height: auto;
  }

  .card-image-container img,
  .card-image-container-two img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Actions row under image (horizontal) */
  .card-actions {
    flex-direction: row;
    gap: 6px;
    margin-left: 0;
    padding-left: 4px;
  }

  /* Content full width */
  .card-content {
    width: 100%;
    padding: 0;
    margin-top: 3px;
  }

  /* Inner info remains vertical */
  .card-info {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  /* Footer padding reduction for small screens */
  .card-footer,
  .card-footer-two {
    padding-left: 0rem;
    
    
  }

  .border-line-media {
            margin: 10px 0px;
        border: 1px solid #ebe9e9;
        width: 100%;
  
  }
}
@media (max-width: 992px) {
    .container-mediacards {
 padding-top: 40px;
    padding-left: 20px;
    }
}
@media (max-width: 589px) {

    .cards-container-media {
        flex-direction: column;
    }
        .card-media {
        width: calc(100% - 12px);
        }
}

@media (max-width: 589px) {
    .container-mediacards {
 
    padding-left: 0px;
    }
}
/* Small phones adjustments */
/* Keep two-in-row until narrow; switch to single-column below 420px for readability */
@media (max-width: 480px) {
 

  .action-btn { width: 28px; height: 28px; font-size: 18px; }
  /* .card-image-container { height: 160px; } */
}

/* Single-column cards for very small screens */
@media (max-width: 420px) {
  .card-media { width: 100%; }
}
