/* =========================================================
   Thánh Ca Tin Lành — Frontend Design System
   ========================================================= */
:root {
    --color-primary: #8b1d1d;
    --color-primary-dark: #6f1515;
    --color-primary-soft: #a33a3a;
    --color-teal: #3a6b62;
    --color-teal-dark: #2d554e;
    --color-gold: #b08a4a;
    --color-gold-dark: #8f6f38;
    --color-cream: #f5f0e6;
    --color-cream-dark: #ebe4d6;
    --color-bg: #f5f0e6;
    --color-text: #2c2c2c;
    --color-text-muted: #6b6560;
    --color-border: #e6dfd3;
    --color-white: #ffffff;
    --font-sans: "Times New Roman", Times, serif;
    --font-serif: "Times New Roman", Times, serif;
    --font-script: "Times New Roman", Times, serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;
    --shadow-soft: 0 8px 24px rgba(59, 36, 28, 0.08);
    --header-height: 76px;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.page-frontend {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: #f5f0e6;
    line-height: 1.5;
}

.site-main {
    background-color: #f5f0e6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

a:hover {
    text-decoration: none;
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn-primary-brand {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white) !important;
    border-radius: var(--radius-pill);
    font-weight: 600;
    padding: 0.55rem 1.35rem;
    transition: background var(--transition), transform var(--transition);
}

.btn-primary-brand:hover,
.btn-primary-brand:focus {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

/* ---------- Header ---------- */
.site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1040;
}

.site-header .navbar {
    padding: 0.65rem 0;
}

.header-inner {
    align-items: center;
}

@media (max-width: 767.98px) {
    .site-header .navbar {
        padding: 0.55rem 0;
    }

    .site-header .header-inner {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
    }

    .site-brand {
        margin-right: 0.5rem;
        max-width: calc(100% - 56px);
    }

    .brand-name {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 1rem;
}

.brand-logo {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.main-nav .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--color-text) !important;
    padding: 0.55rem 0.95rem !important;
    font-size: 1rem;
}

.main-nav .nav-link .fa {
    font-size: 0.95rem;
    line-height: 1;
}

.main-nav .nav-item.active .nav-link,
.main-nav .nav-link:hover {
    color: var(--color-primary) !important;
}

.main-nav .nav-item.active .nav-link::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.header-actions {
    gap: 0.85rem;
}

.header-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 190px;
    height: 40px;
    padding: 0 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--color-text);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.header-lang__toggle span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-lang__toggle .fa-globe {
    color: var(--color-primary);
}

.header-lang__toggle:hover,
.header-lang__toggle:focus,
.header-lang.show .header-lang__toggle {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
}

.header-lang__menu {
    min-width: 210px;
    margin-top: 0.4rem;
    padding: 0.35rem 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    background: #fff;
}

.header-lang__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
}

.header-lang__item .fa-check {
    color: var(--color-primary);
}

.header-lang__item:hover,
.header-lang__item:focus {
    background: var(--color-cream);
    color: var(--color-primary);
}

.header-lang__item.is-active {
    color: var(--color-primary);
    background: rgba(139, 29, 29, 0.06);
}

.btn-create {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-create .fa-plus {
    font-size: 0.8rem;
}

.header-create__menu {
    min-width: 220px;
    margin-top: 0.4rem;
    padding: 0.4rem 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    background: var(--color-white);
}

.header-create__menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text);
}

.header-create__menu .dropdown-item .fa {
    width: 1.1rem;
    text-align: center;
    color: var(--color-primary);
}

.header-create__menu .dropdown-item:hover,
.header-create__menu .dropdown-item:focus {
    background: var(--color-cream);
    color: var(--color-primary);
}

/* ---------- Footer ---------- */
.footer-main {
    position: relative;
    background-color: #f5f0e6;
    padding: 3.25rem 0 2.75rem;
    overflow: hidden;
}

.footer-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(180deg, rgba(245, 240, 230, 0.55) 0%, rgba(245, 240, 230, 0.35) 40%, rgba(245, 240, 230, 0.7) 100%),
        url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1600&h=600&fit=crop&q=60");
    background-size: cover;
    background-position: center bottom;
    opacity: 0.45;
    filter: sepia(0.35) saturate(0.7) brightness(1.15);
}

.footer-main::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220' preserveAspectRatio='none'%3E%3Cpath fill='%23d9c9ad' d='M0 220V110l90-28 130 38 150-48 120 34 170-42 140 30 180-36 130 26 130-22 100 20 100-16V220z'/%3E%3Cpath fill='%23cdb996' d='M0 220V135l80-20 120 26 140-34 130 28 160-36 130 24 160-28 140 20 110-16 90 14 80-10V220z'/%3E%3Cpath fill='%23c2a87f' d='M0 220v-48l90-16 110 20 130-24 120 18 150-22 120 16 140-20 130 14 110-12 140 14V220z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 100%;
}

.footer-main > .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand > span {
    min-width: 0;
}

.footer-brand strong {
    display: block;
    font-family: var(--font-serif);
    color: var(--color-primary);
    font-size: 1.15rem;
    line-height: 1.2;
    white-space: nowrap;
}

.footer-brand small {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin-top: 0.2rem;
    white-space: nowrap;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: var(--color-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-connect {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-connect li {
    margin-bottom: 0.55rem;
}

.footer-connect a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-connect a:hover {
    color: var(--color-primary);
}

.footer-connect__icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.footer-newsletter-desc {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.newsletter-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.newsletter-form__row .form-control {
    flex: 1 1 140px;
    min-width: 0;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: #fff;
    font-size: 0.88rem;
    padding: 0.55rem 0.85rem;
    height: auto;
}

.newsletter-form__row .btn {
    border-radius: 10px;
    white-space: nowrap;
    padding: 0.55rem 1.1rem;
}

.footer-verse {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-primary);
    font-size: 1.05rem;
    line-height: 1.45;
    margin: 0;
    border: 0;
    padding: 0;
}

.footer-verse__text {
    display: block;
}

.footer-verse cite {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    margin-top: 0.45rem;
    opacity: 0.9;
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .footer-verse,
    .footer-verse cite {
        white-space: normal;
    }
}

@media (min-width: 992px) {
    .footer-verse {
        font-size: 0.95rem;
    }

    .footer-verse__text {
        white-space: nowrap;
    }
}

.footer-bar {
    background: #5a2a24;
    color: rgba(255, 255, 255, 0.88);
    padding: 0.85rem 0;
}

.footer-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bar__copy {
    margin: 0;
    font-size: 0.84rem;
}

.footer-bar__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-bar__links li {
    display: flex;
    align-items: center;
}

.footer-bar__links li:not(:last-child)::after {
    content: "|";
    margin: 0 0.65rem;
    opacity: 0.55;
}

.footer-bar__links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.84rem;
}

.footer-bar__links a:hover {
    color: #fff;
}

@media (max-width: 767.98px) {
    .footer-bar__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-bar__links {
        justify-content: center;
    }
}

/* ---------- Shared section pieces ---------- */
.section-block {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.15rem 1.2rem 0.75rem;
    box-shadow: 0 6px 20px rgba(59, 36, 28, 0.05);
    height: 100%;
}

.section-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.section-block__title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.section-block__icon {
    color: var(--color-primary);
    font-size: 1.05rem;
    line-height: 1;
    flex-shrink: 0;
}

.section-block__more {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.section-block__more:hover {
    color: var(--color-primary);
}

.section-block--song-scroll {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.song-list--scroll {
    flex: 1 1 auto;
    max-height: 21rem;
    min-height: 21rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.songs-fav--panel .song-list--scroll .songs-fav-empty {
    min-height: 21rem;
}

/* ---------- Song item ---------- */
.song-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.35rem;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
}

.song-item:last-child {
    border-bottom: none;
}

.song-item:hover {
    background: rgba(139, 29, 29, 0.03);
}

.song-rank {
    width: 22px;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
    text-align: center;
    flex-shrink: 0;
}

.song-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.song-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.song-title {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.song-views {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.song-duration {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    min-width: 36px;
    text-align: right;
}

.song-play,
.song-more,
.song-fav {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.95rem;
    line-height: 1;
    flex-shrink: 0;
}

.song-play:hover,
.song-more:hover,
.song-fav:hover {
    color: var(--color-primary);
}

.song-fav.is-active {
    color: var(--color-primary);
}

.song-fav.is-active .fa-heart-o:before {
    content: "\f004"; /* fa-heart */
}

/* ---------- Product item ---------- */
.product-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.35rem;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition);
    color: inherit;
    text-decoration: none;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item:hover {
    background: rgba(139, 29, 29, 0.03);
    color: inherit;
    text-decoration: none;
}

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.product-title {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.product-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- Video card ---------- */
.video-card {
    display: block;
    color: inherit;
}

.video-thumb {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #ddd;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

.video-play-overlay i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding-left: 3px;
}

.video-meta {
    padding-top: 0.7rem;
}

.video-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.video-artist {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ---------- Feature cards ---------- */
.feature-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    color: #ffffff !important;
    text-decoration: none !important;
    min-height: 108px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 10px 28px rgba(59, 36, 28, 0.12);
    transition: transform var(--transition), box-shadow var(--transition);
    background-color: #8b1d1d;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--feature-bg);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(139, 29, 29, 0.82);
}

.feature-card:hover,
.feature-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(59, 36, 28, 0.16);
    color: #ffffff !important;
    text-decoration: none !important;
}

.feature-card--songs {
    background-color: #8b1d1d;
}

.feature-card--songs::after {
    background: linear-gradient(135deg, rgba(139, 29, 29, 0.88) 0%, rgba(163, 58, 58, 0.78) 100%);
}

.feature-card--videos {
    background-color: #2f5c54;
}

.feature-card--videos::after {
    background: linear-gradient(135deg, rgba(45, 85, 78, 0.88) 0%, rgba(58, 107, 98, 0.78) 100%);
}

.feature-card--store {
    background-color: #a67c3d;
}

.feature-card--store::after {
    background: linear-gradient(135deg, rgba(143, 111, 56, 0.88) 0%, rgba(176, 138, 74, 0.78) 100%);
}

.feature-card__icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.feature-card--songs .feature-card__icon {
    color: #8b1d1d;
}

.feature-card--videos .feature-card__icon {
    color: #2f5c54;
}

.feature-card--store .feature-card__icon {
    color: #a67c3d;
}

.feature-card__body {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.feature-card__title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    margin: 0 0 0.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
}

.feature-card__subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    display: block;
    line-height: 1.4;
}

.feature-card__arrow {
    position: relative;
    z-index: 1;
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #5a4638;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .main-nav {
        padding: 0.75rem 0;
    }

    .main-nav .nav-item.active .nav-link::after {
        display: none;
    }

    .header-actions {
        margin-top: 0.75rem;
        padding-bottom: 0.5rem;
        width: 100%;
        justify-content: space-between;
    }

    .header-lang {
        flex: 0 0 auto;
    }

    .header-lang__toggle {
        max-width: 150px;
    }

    .header-create {
        flex: 1;
        width: auto;
    }

    .btn-create {
        width: 100%;
    }

    .header-create__menu {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    /* Mobile/tablet: full-width card, tỉ lệ giống design */
    .feature-card {
        gap: 0.85rem;
        padding: 1rem 1.1rem;
        min-height: 96px;
    }

    .feature-card__icon {
        width: 52px;
        height: 52px;
        font-size: 1.35rem;
    }

    .feature-card__title {
        font-size: 1.35rem;
        white-space: nowrap;
    }

    .feature-card__subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
        white-space: normal;
    }

    .feature-card__arrow {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* ---------- Shared banner hero ---------- */
.hero-section {
    position: relative;
    display: block;
    color: #fff;
}

.hero-section__banner {
    position: relative;
    overflow: hidden;
}

.hero-swiper {
    position: relative;
    z-index: 0;
    width: 100%;
}

.hero-swiper .swiper-slide {
    height: auto;
}

.hero-slide {
    display: block;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    line-height: 0;
}

.hero-slide__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

.hero-slide--empty {
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 520px;
    background: linear-gradient(135deg, #3a2018 0%, #6f1515 100%);
}

.hero-section--search,
.hero-search-panel {
    color: var(--color-text);
}

.hero-section--search .hero-content,
.hero-search-panel .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.1rem 15px 1.35rem;
}

.hero-section--search .hero-search__box,
.hero-search-panel .hero-search__box {
    border-color: var(--color-border);
    box-shadow: var(--shadow-soft);
}

.hero-section--search .hero-tags__label,
.hero-search-panel .hero-tags__label {
    color: var(--color-text-muted);
    opacity: 1;
}

.hero-section--search .hero-tag,
.hero-search-panel .hero-tag {
    border-color: var(--color-border);
    box-shadow: none;
}

.hero-nav {
    position: absolute;
    top: 50%;
    z-index: 20;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: auto;
    outline: none;
}

.hero-nav:hover,
.hero-nav:focus {
    background: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.hero-nav--prev {
    left: 1rem;
}

.hero-nav--next {
    right: 1rem;
}

.hero-pagination {
    position: absolute;
    left: 0;
    right: 0;
    top: 1.25rem;
    z-index: 20;
    text-align: center;
    pointer-events: auto;
}

.hero-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.45;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

.hero-search {
    width: 100%;
    max-width: none;
    margin: 0 0 0.85rem;
}

.hero-search__box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-pill);
    padding: 0.22rem 0.22rem 0.22rem 0.85rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    gap: 0.4rem;
}

.hero-search__box i {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.hero-search__box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.88rem;
    padding: 0.32rem 0.2rem;
    background: transparent;
    color: var(--color-text);
    min-width: 0;
}

.hero-search__box input::placeholder {
    color: var(--color-text-muted);
}

.hero-search__box .btn {
    flex-shrink: 0;
    padding: 0.32rem 0.9rem;
    font-size: 0.82rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.hero-tags__label {
    font-size: 0.72rem;
    opacity: 0.85;
    margin-right: 0.15rem;
}

.hero-tag {
    display: inline-block;
    padding: 0.16rem 0.65rem;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: var(--color-text) !important;
    font-size: 0.72rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    transition: background var(--transition), transform var(--transition), color var(--transition);
}

.hero-tag:hover {
    background: var(--color-cream);
    color: var(--color-primary) !important;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .hero-swiper .swiper-slide--desktop-only,
    .hero-slide--desktop-only,
    .banner-popup__item--desktop-only {
        display: none !important;
    }

    .hero-slide,
    .hero-slide--empty {
        max-height: 240px;
    }

    .hero-slide--mobile-art {
        aspect-ratio: 16 / 9;
        max-height: none;
    }

    .hero-slide--mobile-art .hero-slide__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-slide picture {
        display: block;
        width: 100%;
        line-height: 0;
    }
}

@media (max-width: 767.98px) {
    .hero-nav {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .hero-nav--prev {
        left: 0.5rem;
    }

    .hero-nav--next {
        right: 0.5rem;
    }

    .hero-section--search .hero-content,
    .hero-search-panel .hero-content {
        padding: 0.85rem 15px 1rem;
    }

    .hero-search {
        margin-bottom: 0.45rem;
    }

    .hero-search__box {
        flex-wrap: nowrap;
        border-radius: var(--radius-pill);
        padding: 0.18rem 0.18rem 0.18rem 0.6rem;
        gap: 0.2rem;
    }

    .hero-search__box i {
        flex: 0 0 auto;
        font-size: 0.75rem;
    }

    .hero-search__box input {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        font-size: 0.78rem;
        padding: 0.18rem 0.15rem;
    }

    .hero-search__box .btn {
        flex: 0 0 auto;
        width: auto;
        margin-top: 0;
        padding: 0.28rem 0.7rem;
        font-size: 0.75rem;
    }

    .hero-tags {
        flex-wrap: nowrap;
        gap: 0.12rem;
    }

    .hero-tags__label,
    .hero-tag {
        font-size: clamp(0.42rem, 2.05vw, 0.58rem);
        white-space: nowrap;
    }

    .hero-tags__label {
        margin-right: 0;
    }

    .hero-tag {
        padding: 0.04rem 0.28rem;
    }

    .brand-tagline {
        display: none;
    }
}

/* =========================================================
   Banner popup announcements (image only)
   ========================================================= */
.banner-popup {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.banner-popup[hidden] {
    display: none !important;
}

.banner-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.banner-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    max-height: min(90vh, 800px);
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.banner-popup__close {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-popup__close:hover {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}

.banner-popup__item[hidden] {
    display: none !important;
}

.banner-popup__link {
    display: block;
}

.banner-popup__item img {
    width: 100%;
    height: auto;
    max-height: min(90vh, 800px);
    object-fit: contain;
    display: block;
}
