* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.card-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2%;
    height: 100;
}
    .card{
        width: 550px;
        min-height: 800px;
        height: auto;
        background-color: #351516e8;
        border-radius: 8px;
        overflow: visible;
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
        margin: 10px;
        display: flex;
  flex-direction: column;
        
    }
    .card img {
    width: 100%;
    max-height: 45vh;
    height: auto;
    object-fit: cover;
    object-position: center top;}
    
.card-content h1{
    text-align: center;
}
.card-content p{
    margin-left: 10px;
    margin-right: 15px;
    text-align: justify;
}
/* SLIDER */
.slider-container {
    width: 33%;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
    margin-left: 20px;
}

.slider {
    display: flex;
    transition: transform 0.6s ease;
    padding: 0;    /* 🔥 important */
}

/* CARD SLIDE */
.card {
    min-width: 100%;
    max-width: 100%;
    margin: 0;
    background: #550606;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
    
}

/* IMAGE */
.card img {
    width: 100%;
    max-height: 100vh;
    height: auto;

    object-fit: cover;
    object-position: center top;
}

/* CONTENT */
.card-content {
    padding: 20px;
    text-align: center;
    
}

/* DOTS */
.dots {
    text-align: center;
    margin-top: 12px;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: #333;
}
.card-content h1 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    line-height: 1.2;
    color: aliceblue;
    margin-top: 0%;
  
}

.card-content p {
    font-size: clamp(0.85rem, 3.2vw, 1rem);
    line-height: 1.5;
color: aliceblue;}
.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 20px;
  margin-left: 20px;
}
.card-content {
  flex: 1;
  overflow-y: auto;   /* ensures full text readable */
}
.card {
  display: flex;
  flex-direction: column;
}
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
