/* style/blog-cap-nhat-khuyen-mai-jun88.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --bg-color: #F5F7FA;
    --border-color: #E0E0E0;
    --header-offset: 120px; /* Default, will be overridden by shared.css if present */
}

.page-blog-cap-nhat-khuyen-mai-jun88 {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* General image responsiveness */
.page-blog-cap-nhat-khuyen-mai-jun88 img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* General button styles */
.page-blog-cap-nhat-khuyen-mai-jun88__btn-primary,
.page-blog-cap-nhat-khuyen-mai-jun88__btn-secondary,
.page-blog-cap-nhat-khuyen-mai-jun88__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-blog-cap-nhat-khuyen-mai-jun88__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
}

.page-blog-cap-nhat-khuyen-mai-jun88__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-blog-cap-nhat-khuyen-mai-jun88__btn-secondary {
    background-color: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-blog-cap-nhat-khuyen-mai-jun88__btn-secondary:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-blog-cap-nhat-khuyen-mai-jun88__btn-link {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-blog-cap-nhat-khuyen-mai-jun88__btn-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-blog-cap-nhat-khuyen-mai-jun88__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-blog-cap-nhat-khuyen-mai-jun88__sub-section-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Hero Carousel Section */
.page-blog-cap-nhat-khuyen-mai-jun88__hero-carousel-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    margin-bottom: 40px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-slide.is-active {
    opacity: 1;
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-slider-prev,
.page-blog-cap-nhat-khuyen-mai-jun88__hero-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    border-radius: 5px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-slider-prev {
    left: 10px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-slider-next {
    right: 10px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-slider-prev::before {
    content: '<';
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-slider-next::before {
    content: '>';
}

.page-blog-cap-nhat-khuyen-mai-jun88__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    color: #ffffff;
}

.page-blog-cap-nhat-khuyen-mai-jun88__main-title {
    font-size: clamp(2em, 3.5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-blog-cap-nhat-khuyen-mai-jun88__sub-title {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-blog-cap-nhat-khuyen-mai-jun88__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Guide Box Section */
.page-blog-cap-nhat-khuyen-mai-jun88__guide-box {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f5e6d3; /* Specific background color from example */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-blog-cap-nhat-khuyen-mai-jun88__guide-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__guide-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-blog-cap-nhat-khuyen-mai-jun88__guide-card {
    flex: 0 0 calc(20% - 12px); /* 5 cards per row, accounting for gap */
    max-width: calc(20% - 12px);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.page-blog-cap-nhat-khuyen-mai-jun88__guide-card img {
    width: 100%;
    height: 350px; /* Fixed height for vertical cards */
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog-cap-nhat-khuyen-mai-jun88__guide-card:hover {
    transform: translateY(-5px);
}

.page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-1,
.page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-5 {
    padding-top: 50px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-2,
.page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-4 {
    padding-top: 25px;
}

/* Content Section */
.page-blog-cap-nhat-khuyen-mai-jun88__content-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.page-blog-cap-nhat-khuyen-mai-jun88__home-content-box {
    max-width: 91%; /* Approx 700px in a 1200px container */
    margin: 0 auto;
    padding: 10px 16px;
    border: 5px solid #3477c9;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(52, 119, 201, 0.5);
    height: 700px;
    background-color: var(--card-bg-color);
}

.page-blog-cap-nhat-khuyen-mai-jun88__home-content-inner {
    height: 100%;
    overflow-y: auto;
    padding-right: 15px; /* For scrollbar */
}

.page-blog-cap-nhat-khuyen-mai-jun88__home-content-inner h2,
.page-blog-cap-nhat-khuyen-mai-jun88__home-content-inner h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__home-content-inner p {
    margin-bottom: 15px;
    color: var(--text-main-color);
}

.page-blog-cap-nhat-khuyen-mai-jun88__home-content-inner ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-main-color);
}

.page-blog-cap-nhat-khuyen-mai-jun88__home-content-inner li {
    margin-bottom: 8px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__content-image {
    margin: 25px 0;
    text-align: center;
}

.page-blog-cap-nhat-khuyen-mai-jun88__content-image img {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 800px;
    height: 450px;
    object-fit: cover;
}

.page-blog-cap-nhat-khuyen-mai-jun88__content-image figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__content-cta {
    text-align: center;
    margin-top: 30px;
}

/* Blog Section */
.page-blog-cap-nhat-khuyen-mai-jun88__blog-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__blog-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-blog-cap-nhat-khuyen-mai-jun88__blog-card:hover {
    transform: translateY(-5px);
}

.page-blog-cap-nhat-khuyen-mai-jun88__blog-card a {
    text-decoration: none;
    color: inherit;
}

.page-blog-cap-nhat-khuyen-mai-jun88__blog-card img {
    width: 100%;
    height: 200px; /* Fixed height for blog card images */
    object-fit: cover;
}

.page-blog-cap-nhat-khuyen-mai-jun88__blog-card-title {
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__blog-card-meta {
    font-size: 0.85em;
    color: #666;
    padding: 0 15px;
    margin-bottom: 10px;
}

.page-blog-cap-nhat-khuyen-mai-jun88__blog-card-excerpt {
    font-size: 0.95em;
    padding: 0 15px 15px;
    flex-grow: 1;
}

.page-blog-cap-nhat-khuyen-mai-jun88__blog-card .page-blog-cap-nhat-khuyen-mai-jun88__btn-link {
    margin: 0 15px 15px;
    align-self: flex-start;
}

.page-blog-cap-nhat-khuyen-mai-jun88__view-all-posts {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-blog-cap-nhat-khuyen-mai-jun88__hero-slider {
        height: 500px;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card {
        flex: 0 0 calc(33.333% - 10px); /* 3 cards per row */
        max-width: calc(33.333% - 10px);
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-1,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-5 {
        padding-top: 0;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-2,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-4 {
        padding-top: 0;
    }
    
    .page-blog-cap-nhat-khuyen-mai-jun88__home-content-box {
        max-width: 95%;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__content-image img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    /* General mobile styles for images and containers */
    .page-blog-cap-nhat-khuyen-mai-jun88 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__section,
    .page-blog-cap-nhat-khuyen-mai-jun88__card,
    .page-blog-cap-nhat-khuyen-mai-jun88__container,
    .page-blog-cap-nhat-khuyen-mai-jun88__hero-carousel-section,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-box,
    .page-blog-cap-nhat-khuyen-mai-jun88__content-section,
    .page-blog-cap-nhat-khuyen-mai-jun88__blog-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }

    /* Hero Carousel Section */
    .page-blog-cap-nhat-khuyen-mai-jun88__hero-carousel-section {
        padding-top: 10px !important;
        margin-bottom: 20px;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__hero-slider {
        height: 300px;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__hero-content {
        padding: 15px;
        max-width: 90%;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__main-title {
        font-size: 1.8em;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__sub-title {
        font-size: 0.9em;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__btn-primary,
    .page-blog-cap-nhat-khuyen-mai-jun88__btn-secondary,
    .page-blog-cap-nhat-khuyen-mai-jun88 a[class*="button"],
    .page-blog-cap-nhat-khuyen-mai-jun88 a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Guide Box Section (上二下三 layout) */
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-box {
        padding: 20px 15px;
        margin: 20px auto;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* Base grid for flexible column spans */
        gap: 10px;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card {
        padding-top: 0 !important; /* Reset desktop specific padding-top */
        flex: unset; /* Reset flex properties */
        max-width: unset; /* Reset max-width */
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-1,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-2 {
        grid-column: span 3; /* First two cards span 3 columns each (2 per row) */
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-3,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-4,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-5 {
        grid-column: span 2; /* Remaining three cards span 2 columns each (3 per row) */
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card img {
        height: 250px; /* Adjust height for mobile */
        object-fit: contain;
    }

    /* Home Content Box */
    .page-blog-cap-nhat-khuyen-mai-jun88__home-content-box {
        max-width: 100% !important;
        height: auto !important;
        padding: 10px;
        margin: 0 auto;
        box-shadow: none;
        border: none;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__home-content-inner {
        height: auto !important;
        overflow: visible !important;
        padding-right: 0;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__section-title {
        font-size: 1.8em;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__sub-section-title {
        font-size: 1.4em;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__content-image img {
        width: 100% !important;
        height: auto !important;
    }

    /* Blog Section */
    .page-blog-cap-nhat-khuyen-mai-jun88__blog-section {
        padding: 15px;
        margin: 20px auto;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__blog-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__blog-card img {
        
    }
}

@media (max-width: 480px) {
    .page-blog-cap-nhat-khuyen-mai-jun88__hero-slider {
        height: 250px;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__hero-slider-prev,
    .page-blog-cap-nhat-khuyen-mai-jun88__hero-slider-next {
        padding: 10px 5px;
        font-size: 1.2em;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__main-title {
        font-size: 1.5em;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__sub-title {
        font-size: 0.8em;
    }
    
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-1,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-2,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-3,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-4,
    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card--pos-5 {
        grid-column: span 1; /* All cards 1 per column */
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__guide-card img {
        height: 200px; /* Further adjust height for smaller screens */
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__section-title {
        font-size: 1.5em;
    }

    .page-blog-cap-nhat-khuyen-mai-jun88__sub-section-title {
        font-size: 1.2em;
    }
}