/* ==========================================================================
   XÚC TIẾN DU LỊCH - HANOI TOURISM PROMOTION COMPONENT
   Style sang trọng, hiện đại, chuẩn nhận diện du lịch Hà Nội
   ========================================================================== */

/* 1. KHUNG SECTION VÀ TIÊU ĐỀ */
.promotion-section {
    padding: 72px 0 80px;
    background-color: #faf6ef;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.85) 0%, transparent 50%),
        linear-gradient(180deg, #fdfbf7 0%, #f6f1e7 100%);
    position: relative;
    border-top: 1px solid rgba(228, 219, 206, 0.7);
    border-bottom: 1px solid rgba(228, 219, 206, 0.7);
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
}

/* Lớp hình vẽ minh họa chạy nền ở trên và ở dưới giúp nổi bật khung */
.promotion-bg-illustration {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    mix-blend-mode: multiply;
}

.promotion-bg-top {
    top: 0;
    height: 320px;
    opacity: 0.5;
}

.promotion-bg-top img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 1350px;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    object-position: center top;
}

.promotion-bg-bottom {
    bottom: 0;
    height: 300px;
    opacity: 0.55;
}

.promotion-bg-bottom img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 1200px;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: center bottom;
}

.promotion-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Hàng tiêu đề chính */
.promotion-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.promotion-heading-left {
    max-width: 820px;
}

.promotion-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
    color: #8b181b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.promotion-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b181b;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(139, 24, 27, 0.18);
}

.promotion-title,
.promotion-heading-row h2 {
    margin: 0;
    font-family: var(--font-primary), 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
    color: #61181c !important;
    font-size: clamp(34px, 3.8vw, 44px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.25;
}

.promotion-intro {
    margin: 10px 0 0 0;
    color: #556057;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 680px;
}

/* Nút Xem tất cả */
.promotion-all-btn,
.promotion-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
    border-radius: 99px;
    background: #ffffff;
    color: #61181c !important;
    border: 1.5px solid #dfd3c7;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    margin-bottom: 6px;
}

.promotion-all-btn i,
.promotion-all i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

.promotion-all-btn:hover,
.promotion-all:hover {
    background: #61181c;
    color: #ffffff !important;
    border-color: #61181c;
    box-shadow: 0 6px 18px rgba(97, 24, 28, 0.25);
    transform: translateY(-2px);
}

.promotion-all-btn:hover i,
.promotion-all:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   2. BENTO GRID LAYOUT TRANG CHỦ (.promotion-home)
   ========================================================================== */
.promotion-home .promotion-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: 310px 310px;
    gap: 22px;
}

/* Card chung */
.promotion-card {
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 218, 206, 0.85);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.promotion-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #1f2937;
    text-decoration: none !important;
    position: relative;
}

.promotion-card-link:hover {
    color: #61181c;
    text-decoration: none !important;
}

/* ==========================================================================
   3. CARD TIÊU ĐIỂM (CỘT TRÁI - HERO CARD)
   ========================================================================== */
.promotion-home .promotion-card.is-featured,
.promotion-home .promotion-card:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
    border-radius: 20px;
    background: #111a14;
    border: 1px solid rgba(214, 201, 185, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.promotion-home .promotion-card.is-featured .promotion-card-image,
.promotion-home .promotion-card:first-child .promotion-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    z-index: 1;
}

.promotion-home .promotion-card.is-featured .promotion-card-image img,
.promotion-home .promotion-card:first-child .promotion-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.promotion-home .promotion-card.is-featured:hover .promotion-card-image img,
.promotion-home .promotion-card:first-child:hover .promotion-card-image img {
    transform: scale(1.06);
}

/* Gradient nền phủ lên ảnh tiêu điểm - mượt mà, sâu lắng */
.promotion-home .promotion-card.is-featured .promotion-image-gradient,
.promotion-home .promotion-card:first-child .promotion-image-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(10, 20, 16, 0.12) 0%,
        rgba(10, 20, 16, 0.25) 30%,
        rgba(10, 20, 16, 0.78) 70%,
        rgba(8, 16, 12, 0.96) 100%
    );
    transition: background 0.4s ease;
}

.promotion-home .promotion-card.is-featured:hover .promotion-image-gradient,
.promotion-home .promotion-card:first-child:hover .promotion-image-gradient {
    background: linear-gradient(
        180deg,
        rgba(10, 20, 16, 0.08) 0%,
        rgba(10, 20, 16, 0.2) 30%,
        rgba(97, 24, 28, 0.75) 75%,
        rgba(40, 10, 12, 0.98) 100%
    );
}

/* Badge Tiêu điểm góc trên */
.promotion-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #8b181b;
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(139, 24, 27, 0.4);
}

.promotion-featured-badge i {
    color: #f7d896;
    font-size: 11px;
}

/* Nội dung của card tiêu điểm */
.promotion-home .promotion-card.is-featured .promotion-card-content,
.promotion-home .promotion-card:first-child .promotion-card-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px 30px;
    color: #ffffff;
}

.promotion-home .promotion-card.is-featured .promotion-card-meta,
.promotion-home .promotion-card:first-child .promotion-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.promotion-home .promotion-card.is-featured .promotion-cat-text,
.promotion-home .promotion-card:first-child .promotion-cat-text {
    color: #f7d896;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promotion-home .promotion-card.is-featured .promotion-meta-sep,
.promotion-home .promotion-card:first-child .promotion-meta-sep {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.promotion-home .promotion-card.is-featured .promotion-date,
.promotion-home .promotion-card:first-child .promotion-date {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    font-weight: 500;
}

.promotion-home .promotion-card.is-featured .promotion-card-title,
.promotion-home .promotion-card:first-child .promotion-card-title,
.promotion-home .promotion-card:first-child h3 {
    margin: 0 0 12px 0;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: clamp(22px, 2.1vw, 26px);
    font-weight: 800;
    color: #ffffff !important;
    line-height: 1.35;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promotion-home .promotion-card.is-featured .promotion-card-desc,
.promotion-home .promotion-card:first-child .promotion-card-desc,
.promotion-home .promotion-card:first-child p {
    margin: 0 0 22px 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Nút CTA khám phá nổi bật */
.promotion-home .promotion-card.is-featured .promotion-card-action,
.promotion-home .promotion-card:first-child .promotion-card-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 99px;
    background: #ffffff;
    color: #61181c;
    font-size: 13.5px;
    font-weight: 700;
    width: fit-content;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.promotion-home .promotion-card.is-featured:hover .promotion-card-action,
.promotion-home .promotion-card:first-child:hover .promotion-card-action {
    background: #8b181b;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(139, 24, 27, 0.4);
    transform: translateY(-2px);
}

.promotion-home .promotion-card.is-featured .promotion-action-circle,
.promotion-home .promotion-card:first-child .promotion-action-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.promotion-home .promotion-card.is-featured:hover .promotion-action-circle,
.promotion-home .promotion-card:first-child:hover .promotion-action-circle {
    transform: translateX(4px);
}

.promotion-home .promotion-card.is-featured .promotion-tag-badge,
.promotion-home .promotion-card:first-child .promotion-tag-badge {
    display: none; /* Ẩn tag nhỏ trên ảnh vì đã có badge to */
}

/* ==========================================================================
   4. 4 CARD BÊN PHẢI (LƯỚI 2x2 - COMPACT CARDS)
   ========================================================================== */
.promotion-home .promotion-card:not(:first-child),
.promotion-home .promotion-card:not(.is-featured) {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.promotion-home .promotion-card:not(:first-child):hover,
.promotion-home .promotion-card:not(.is-featured):hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(97, 24, 28, 0.1);
    border-color: rgba(184, 27, 36, 0.35);
}

/* Khung ảnh của 4 card */
.promotion-home .promotion-card:not(:first-child) .promotion-card-image,
.promotion-home .promotion-card:not(.is-featured) .promotion-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #ece7df;
}

.promotion-home .promotion-card:not(:first-child) .promotion-card-image img,
.promotion-home .promotion-card:not(.is-featured) .promotion-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.promotion-home .promotion-card:not(:first-child):hover .promotion-card-image img,
.promotion-home .promotion-card:not(.is-featured):hover .promotion-card-image img {
    transform: scale(1.08);
}

/* Tag danh mục gắn trên góc ảnh */
.promotion-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #61181c;
    font-size: 11px;
    font-weight: 700;
    padding: 3.5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
}

.promotion-tag-badge i {
    font-size: 10px;
    color: #8b181b;
}

/* Nội dung của 4 card nhỏ */
.promotion-home .promotion-card:not(:first-child) .promotion-card-content,
.promotion-home .promotion-card:not(.is-featured) .promotion-card-content {
    padding: 14px 16px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.promotion-home .promotion-card:not(:first-child) .promotion-card-meta,
.promotion-home .promotion-card:not(.is-featured) .promotion-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 11.5px;
    color: #7b887e;
    font-weight: 500;
}

.promotion-home .promotion-card:not(:first-child) .promotion-cat-text,
.promotion-home .promotion-card:not(.is-featured) .promotion-cat-text {
    display: none; /* Ẩn bớt text danh mục vì đã có tag badge trên ảnh */
}

.promotion-home .promotion-card:not(:first-child) .promotion-meta-sep,
.promotion-home .promotion-card:not(.is-featured) .promotion-meta-sep {
    display: none;
}

.promotion-home .promotion-card:not(:first-child) .promotion-date,
.promotion-home .promotion-card:not(.is-featured) .promotion-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.promotion-home .promotion-card:not(:first-child) .promotion-date i,
.promotion-home .promotion-card:not(.is-featured) .promotion-date i {
    font-size: 11px;
    color: #9aa59d;
}

/* Tiêu đề 4 card nhỏ */
.promotion-home .promotion-card:not(:first-child) .promotion-card-title,
.promotion-home .promotion-card:not(.is-featured) .promotion-card-title,
.promotion-home .promotion-card:not(:first-child) h3 {
    margin: 0 0 10px 0;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 14.5px;
    line-height: 1.45;
    font-weight: 700;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.promotion-home .promotion-card:not(:first-child):hover .promotion-card-title,
.promotion-home .promotion-card:not(.is-featured):hover .promotion-card-title {
    color: #8b181b;
}

/* Footer chân card có link & icon tròn */
.promotion-home .promotion-card:not(:first-child) .promotion-card-action,
.promotion-home .promotion-card:not(.is-featured) .promotion-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    margin-top: auto;
    border-top: 1px dashed rgba(226, 218, 206, 0.7);
}

.promotion-home .promotion-card:not(:first-child) .promotion-action-text,
.promotion-home .promotion-card:not(.is-featured) .promotion-action-text {
    font-size: 12px;
    font-weight: 700;
    color: #61181c;
    letter-spacing: 0.2px;
}

.promotion-home .promotion-card:not(:first-child) .promotion-action-circle,
.promotion-home .promotion-card:not(.is-featured) .promotion-action-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f7f3ee;
    color: #61181c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.promotion-home .promotion-card:not(:first-child):hover .promotion-action-circle,
.promotion-home .promotion-card:not(.is-featured):hover .promotion-action-circle {
    background: #61181c;
    color: #ffffff;
    transform: translateX(3px);
}

.promotion-home .promotion-card:not(:first-child) .promotion-card-desc,
.promotion-home .promotion-card:not(.is-featured) .promotion-card-desc {
    display: none; /* Ẩn mô tả dài để card vuông vức, gọn gàng */
}

/* ==========================================================================
   5. TRANG DANH SÁCH BÀI VIẾT (.promotion-list)
   ========================================================================== */
.promotion-list .promotion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.promotion-list .promotion-card {
    display: flex;
    flex-direction: column;
}

.promotion-list .promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(97, 24, 28, 0.1);
    border-color: rgba(184, 27, 36, 0.35);
}

.promotion-list .promotion-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ece7df;
}

.promotion-list .promotion-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promotion-list .promotion-card:hover .promotion-card-image img {
    transform: scale(1.06);
}

.promotion-list .promotion-card-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promotion-list .promotion-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #7b887e;
    font-weight: 500;
}

.promotion-list .promotion-cat-text {
    color: #8b181b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11.5px;
}

.promotion-list .promotion-card-title {
    margin: 0 0 10px 0;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    font-size: 16.5px;
    line-height: 1.45;
    font-weight: 700;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.promotion-list .promotion-card:hover .promotion-card-title {
    color: #8b181b;
}

.promotion-list .promotion-card-desc {
    margin: 0 0 18px 0;
    color: #5d6760;
    font-size: 13.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promotion-list .promotion-card-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed rgba(226, 218, 206, 0.7);
}

.promotion-list .promotion-action-text {
    font-size: 13px;
    font-weight: 700;
    color: #61181c;
}

.promotion-list .promotion-action-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f7f3ee;
    color: #61181c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.25s ease;
}

.promotion-list .promotion-card:hover .promotion-action-circle {
    background: #61181c;
    color: #ffffff;
    transform: translateX(4px);
}

/* Form tìm kiếm trang danh sách */
.promotion-search {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 680px;
}

.promotion-search input {
    min-width: 0;
    flex: 1;
    padding: 13px 18px;
    border: 1.5px solid #dfd8cc;
    border-radius: 99px;
    background: #ffffff;
    color: #1e293b;
    font: inherit;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    outline: none;
    transition: border-color 0.2s ease;
}

.promotion-search input:focus {
    border-color: #8b181b;
}

.promotion-search button {
    border: 0;
    border-radius: 99px;
    padding: 12px 24px;
    background: #61181c;
    color: white;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(97, 24, 28, 0.25);
    transition: all 0.2s ease;
}

.promotion-search button:hover {
    background: #8b181b;
    transform: translateY(-1px);
}

.promotion-result-count {
    color: #6c786e;
    font-size: 13.5px;
    margin-bottom: 24px;
    font-weight: 500;
}

.promotion-empty {
    background: white;
    padding: 48px 24px;
    border-radius: 16px;
    text-align: center;
    color: #6c786e;
    border: 1px dashed #dfd8cc;
}

.promotion-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .promotion-home .promotion-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 18px;
    }

    .promotion-home .promotion-card.is-featured,
    .promotion-home .promotion-card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 420px;
    }

    .promotion-home .promotion-card.is-featured .promotion-card-content,
    .promotion-home .promotion-card:first-child .promotion-card-content {
        min-height: 420px;
        padding: 28px 24px;
    }

    .promotion-list .promotion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .promotion-section {
        padding: 48px 0 54px;
    }

    .promotion-heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .promotion-title,
    .promotion-heading-row h2 {
        font-size: 26px;
    }

    .promotion-intro {
        font-size: 14px;
    }

    .promotion-home .promotion-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .promotion-home .promotion-card.is-featured,
    .promotion-home .promotion-card:first-child {
        min-height: 380px;
    }

    .promotion-home .promotion-card.is-featured .promotion-card-content,
    .promotion-home .promotion-card:first-child .promotion-card-content {
        min-height: 380px;
        padding: 24px 20px;
    }

    .promotion-home .promotion-card:not(:first-child) .promotion-card-image,
    .promotion-home .promotion-card:not(.is-featured) .promotion-card-image {
        height: 180px;
    }

    .promotion-list .promotion-grid {
        grid-template-columns: 1fr;
    }

    .promotion-search {
        flex-direction: column;
    }

    .promotion-search button {
        width: 100%;
    }
}
