/* style/promotions.css */

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: #F8F8F8; /* Light gray for general text on dark background */
    line-height: 1.6;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-promotions__hero {
    background: linear-gradient(135deg, #0A2239 0%, #304C6E 100%); /* Dark blue gradient */
    padding: 100px 0;
    text-align: center;
    color: #F8F8F8;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #E0B400; /* Gold for emphasis */
    font-weight: bold;
}

.page-promotions__hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
}

.page-promotions__btn--primary {
    background-color: #E0B400; /* Gold */
    color: #0A2239; /* Dark blue text */
    border: 2px solid #E0B400;
}

.page-promotions__btn--primary:hover {
    background-color: #F1C40F; /* Lighter gold */
    border-color: #F1C40F;
    transform: translateY(-2px);
}

.page-promotions__btn--secondary {
    background-color: transparent;
    color: #E0B400; /* Gold text */
    border: 2px solid #E0B400;
}

.page-promotions__btn--secondary:hover {
    background-color: #E0B400;
    color: #0A2239;
    transform: translateY(-2px);
}

.page-promotions__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    background-color: #E0B400;
    color: #0A2239;
    border: none;
}

.page-promotions__btn--small:hover {
    background-color: #F1C40F;
}

.page-promotions__section {
    padding: 60px 0;
    background-color: #0A2239; /* Dark blue background */
}

.page-promotions__section:nth-of-type(even) {
    background-color: #1A3A5C; /* Slightly lighter dark blue for alternating sections */
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #E0B400; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions__intro p, .page-promotions__offer-types p, .page-promotions__detail-list p, .page-promotions__cta p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #D0D0D0;
}

.page-promotions__intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__intro-item {
    background-color: #1A3A5C;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-promotions__intro-item:hover {
    transform: translateY(-5px);
}

.page-promotions__intro-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(1.2);
}

.page-promotions__intro-item h3 {
    color: #E0B400;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-promotions__intro-item p {
    color: #F8F8F8;
    font-size: 1em;
    text-align: center;
}

.page-promotions__offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__offer-card {
    background-color: #1A3A5C;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-promotions__offer-card:hover {
    transform: translateY(-5px);
}

.page-promotions__offer-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-promotions__offer-card h3 {
    color: #E0B400;
    font-size: 1.4em;
    margin: 20px 15px 10px;
}

.page-promotions__offer-card p {
    color: #F8F8F8;
    font-size: 0.95em;
    padding: 0 15px;
    flex-grow: 1;
    text-align: center;
}

.page-promotions__offer-card .page-promotions__btn {
    margin: 20px auto;
}

.page-promotions__detail-list .page-promotions__list-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-promotions__list-item {
    background-color: #1A3A5C;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__list-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #E0B400;
}

.page-promotions__list-item h3 a {
    color: #E0B400;
    text-decoration: none;
}

.page-promotions__list-item h3 a:hover {
    text-decoration: underline;
}

.page-promotions__list-item p {
    color: #F8F8F8;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

.page-promotions__list-item .page-promotions__btn {
    align-self: flex-start;
}

.page-promotions__cta {
    background-color: #0A2239;
    text-align: center;
    padding: 80px 0;
}

.page-promotions__cta .page-promotions__section-title {
    color: #F8F8F8;
}

.page-promotions__cta .page-promotions__btn {
    margin-top: 30px;
}

/* Floating Promotion */
.page-promotions__floating-promo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #E0B400;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-promotions__floating-promo.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-promotions__floating-promo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: #0A2239;
}

.page-promotions__floating-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.page-promotions__floating-text {
    padding: 15px;
    text-align: center;
}

.page-promotions__floating-text h4 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #0A2239;
}

.page-promotions__floating-text p {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #333;
}

.page-promotions__floating-text span {
    display: inline-block;
    font-weight: bold;
    color: #CC0000; /* A distinct color for 'Nhận Ngay' */
    border-bottom: 1px solid #CC0000;
}

.page-promotions__floating-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #F8F8F8;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}

.page-promotions__floating-close:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }

    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero {
        padding: 80px 0;
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
    }

    .page-promotions__hero-subtitle {
        font-size: 1em;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__intro-grid, .page-promotions__offer-grid, .page-promotions__detail-list .page-promotions__list-items {
        grid-template-columns: 1fr;
    }

    .page-promotions__floating-promo {
        width: 90%;
        left: 5%;
        right: 5%;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }

    .page-promotions__btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-promotions__hero {
        padding: 60px 0;
    }
}