.title {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-image: url("./Assets/photo7.jpg");
    height: 60vh;
    background-size: cover;
    background-position: center; 
    color: white;
}

.title h2 {
    margin: 0;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6); 
    padding: 15px 30px; 
    font-size: 2rem;
    text-align: center;
}

.movieGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; 
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.movieBox {
    display: flex;
    flex-direction: column; 
    background-color: #a3bf50; 
    border-radius: 15px;
    overflow: hidden; 
    height: 100%; 
}

.movieImg { 
    width: 100%;
    height: 300px; 
    object-fit: cover; 
    display: block; 
}

.movieText { 
    padding: 20px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column; 
    flex-grow: 1; 
    justify-content: space-between; 
}

button {
    display: block;
    margin: 15px auto 5px auto;
    padding: 10px 30px;
    font-size: 1.5rem; 
    color: #ffffff;
    background-color: #901b22;
    border-radius: 20px;
    border: 2px solid #901b22;
    cursor: pointer; 
    transition: 0.3s;
}

button:hover {
    background-color: white;
    color: #901b22;
}

/* =================================== */
/* 2. MEDIA QUERY BREAKPOINTS          */
/* =================================== */

/* --- MOBILE DEVICES (Portrait) --- */
/* Max-width: 600px */
@media only screen and (max-width: 600px) {

    .title {
        height: 40vh; 
    }

    .title h2 {
        font-size: 1.5rem; 
        padding: 10px 20px;
        width: 80%; 
    }

    .movieGrid {
        grid-template-columns: 1fr; 
        gap: 20px; 
        padding: 20px; 
    }

    .movieImg {
        height: 200px; 
    }
}

/* --- TABLETS --- */
/* 601px - 992px */
@media only screen and (min-width: 601px) and (max-width: 992px) {
    
    .movieGrid {
        padding: 30px;
        gap: 30px;
        /* Adjust column sizing for tablets if 300px is too wide */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}