/* --- General Styling --- */
body {
    font-family: Arial, sans-serif;
    background-color: #333;
    color: #333;
    margin: 0;
    
}

/* --- Promotions Section --- */
.promotions-section {
    max-width: 100%;
    padding: 5px 15%;
    margin: 0 auto;
    background-color: #fff;
        /* Màu nền card */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #e83e8c; 
        /* Pink color for the title */
    margin-bottom: 2rem;
    font-weight: bold;
    padding-top: 20px;
}

/* --- Grid Layout for Cards --- */
.promotions-grid {
   display: grid;
   grid-template-columns: repeat(4, 280px);
   gap: 1.5rem; 
   justify-content: center;
}

/* --- Individual Card Styling --- */
.promo-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; 
        /* Ensures image stays within rounded corners */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #5c5c5c;
}

.promo-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    color: #e83e8c; 
    transform: translateY(-2px);
}

.promo-image {
    width: 100%;
    max-height: 130px;
    min-height: 130px;
    height: auto;
    display: block;
    object-fit: cover;
        /* Cho ảnh ko móp */
}

.promo-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
        /* Allows content to fill the card height */
}

.promo-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    flex-grow: 1; 
        /* Pushes the date to the bottom */
}

.promo-date {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* --- "View More" Button --- */
.view-more-container {
    text-align: center;
    margin: 2.5rem;
}

.view-more-btn {
    background-color: transparent;
    border: 2px solid #e83e8c; 
        /* Pink border */
    color: #e83e8c; 
        /* Pink text */
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.view-more-btn:hover {
    background-color: #e83e8c;
    color: #fff;
}

/* --- Responsive Design --- */
/* For tablets: 2 columns */
@media (max-width: 992px) {
    .promotions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For mobile phones: 1 column */
@media (max-width: 576px) {
    .promotions-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}