:root {
    --primary: #8c5a2b;
    /* nâu gỗ cổ kính */
    --primary-dark: #5e3a16;
    --accent: #d4a24e;
    /* vàng đồng */
    --accent-light: #f3e2c2;
    --bg: #faf6ef;
    --ink: #2b2118;
    --muted: #7a6a58;
    --green: #2e6b4f;
    /* xanh lá cờ */
    --red: #c8102e;
    /* đỏ cờ */
    --radius: 14px;
    --shadow: 0 10px 30px rgba(60, 40, 15, .12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6
}

a {
    text-decoration: none;
    color: inherit
}

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto
}

/* ============ TOP BAR ============ */
.topbar {
    background: var(--primary-dark);
    color: #f5e8d5;
    font-size: .85rem
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .4rem 0;
    gap: 1rem
}

.topbar span {
    opacity: .9
}

.lang-switch {
    display: flex;
    gap: .5rem;
    align-items: center
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .15rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #f5e8d5;
    cursor: pointer;
    font-size: .8rem;
    transition: .2s
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent)
}

.flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    overflow: hidden;
    position: relative
}

.flag.vn {
    background: linear-gradient(180deg, var(--red) 50%, var(--red) 50%)
}

.flag.vn::after {
    content: "★";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffdf00;
    font-size: 8px
}

.flag.en {
    background: linear-gradient(180deg, #b31942 0 20%, #fff 20% 40%, #0a3161 40% 60%, #fff 60% 80%, #b31942 80% 100%)
}

/* ============ HEADER ============ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 239, .95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 0;
    gap: 1rem
}

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

.logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: var(--shadow)
}

.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary-dark);
    line-height: 1.25
}

.brand-sub {
    font-size: .72rem;
    color: var(--muted);
    letter-spacing: .5px;
    text-transform: uppercase
}

.menu {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    list-style: none
}

.user-dropdown {
    position: relative;
}

.avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid var(--accent-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    transition: .2s;
}

.avatar-btn:hover {
    transform: scale(1.05);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    width: 220px;
    padding: .8rem 0;
    display: none;
    z-index: 200;
    border: 1px solid #eadfca;
}

.user-menu-dropdown.show {
    display: block;
    animation: fadeIn .2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info {
    padding: .4rem 1.2rem .8rem;
    border-bottom: 1px solid #eee2cf;
    margin-bottom: .4rem;
}

.user-name {
    font-weight: 700;
    font-size: .95rem;
    color: var(--primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: .78rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item {
    width: 100%;
    padding: .6rem 1.2rem;
    text-align: left;
    background: transparent;
    border: none;
    font-size: .88rem;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .6rem;
    transition: .2s;
}

.dropdown-item:hover {
    background: var(--bg);
    color: var(--primary);
}

.logout-item {
    color: #c8102e;
}

.logout-item:hover {
    background: #fff0f0;
    color: #c8102e;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    border: none;
    transition: .25s
}

.btn-primary {
    background: var(--primary);
    color: #fff
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(94, 58, 22, .3)
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--primary-dark)
}

/* Overlay for Mobile Menu */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.show {
    display: block;
    opacity: 1;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(212, 162, 78, .35), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(140, 90, 43, .4), transparent 55%),
        linear-gradient(160deg, #3a2410 0%, #5e3a16 45%, #8c5a2b 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><path d="M60 8 L112 60 L60 112 L8 60 Z" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="1.5"/></svg>');
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(212, 162, 78, .18);
    border: 1px solid rgba(212, 162, 78, .5);
    color: var(--accent-light);
    padding: .35rem 1rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase
}

.hero h1 {
    font-size: clamp(1.9rem, 4.2vw, 3.2rem);
    color: #fff;
    line-height: 1.2;
    margin: 1.1rem 0;
    font-weight: 800
}

.hero h1 .gold {
    background: linear-gradient(90deg, var(--accent), #ffe9b8, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.hero p {
    color: #efe2cd;
    max-width: 34rem;
    font-size: 1.05rem
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1.8rem;
    flex-wrap: wrap
}

.btn-vr {
    background: linear-gradient(135deg, var(--accent), #e9c169);
    color: var(--primary-dark);
    font-size: 1.05rem;
    padding: .9rem 1.9rem;
    box-shadow: 0 12px 32px rgba(212, 162, 78, .4)
}

.btn-vr:hover {
    transform: translateY(-3px) scale(1.02)
}

.btn-ghost {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .5)
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .22)
}

.hero-stats {
    display: flex;
    gap: 2.2rem;
    margin-top: 2.4rem;
    flex-wrap: wrap
}

.stat b {
    display: block;
    font-size: 1.7rem;
    color: var(--accent)
}

.stat span {
    color: #d8c7ab;
    font-size: .85rem
}

/* Thẻ xem trước VR360 */
.vr-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    padding: 1rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35)
}

.vr-screen {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: radial-gradient(circle at 50% 55%, #e8c37e 0%, #a06a2c 35%, #3a2410 75%, #1c1006 100%);
}

.vr-screen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0 40deg, rgba(255, 255, 255, .05) 40deg 80deg)
}

.vr-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(255, 255, 255, .6);
    border-radius: 50%;
    animation: spin 14s linear infinite
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

.vr-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(212, 162, 78, .95);
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    font-size: 1.4rem;
    box-shadow: 0 0 0 12px rgba(212, 162, 78, .25);
    transition: .25s;
    cursor: pointer
}

.vr-card:hover .vr-play {
    box-shadow: 0 0 0 20px rgba(212, 162, 78, .18)
}

.vr-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(0, 0, 0, .55);
    color: #ffe9b8;
    padding: .25rem .8rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px
}

.vr-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .9rem .4rem .2rem;
    color: #efe2cd;
    font-size: .85rem
}

.vr-meta b {
    color: #fff
}

/* ============ SECTION ============ */
section {
    padding: 4.5rem 0
}

.sec-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem
}

.sec-head .eyebrow {
    color: var(--primary);
    border-color: rgba(140, 90, 43, .35);
    background: rgba(140, 90, 43, .07)
}

.sec-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--primary-dark);
    margin: .8rem 0 .5rem
}

.sec-head p {
    color: var(--muted)
}

/* Features */
.features {
    background: #fff
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem
}

.feat {
    background: var(--bg);
    border: 1px solid #eee2cf;
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: .3s;
    position: relative
}

.feat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent)
}

.feat .ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-light), #fff);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    margin-bottom: 1.1rem
}

.feat h3 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: .4rem
}

.feat p {
    font-size: .86rem;
    color: var(--muted)
}

/* Heritage list */
.search-bar {
    display: flex;
    gap: .6rem;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    background: #fff;
    padding: .35rem;
    border-radius: 999px;
    border: 1.5px solid #e3d5bd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04)
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 1.2rem;
    font-size: .92rem;
    background: transparent;
    color: var(--ink)
}

.heritage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem
}

.site-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eee2cf;
    box-shadow: 0 6px 20px rgba(60, 40, 15, .06);
    transition: .3s;
    display: flex;
    flex-direction: column
}

.site-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--accent)
}

.site-thumb {
    position: relative;
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 1rem
}

.site-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(20, 10, 0, .75) 100%)
}

.site-thumb.t1 {
    background: radial-gradient(circle at 30% 30%, #b8860b, #3a2410)
}

.site-thumb.t2 {
    background: radial-gradient(circle at 70% 30%, #8c5a2b, #241708)
}

.site-thumb.t3 {
    background: radial-gradient(circle at 50% 70%, #a06a2c, #1f1407)
}

.site-thumb.t4 {
    background: radial-gradient(circle at 40% 40%, #c8963e, #331e0a)
}

.site-thumb.t5 {
    background: radial-gradient(circle at 60% 40%, #9e642d, #2b1808)
}

.site-thumb.t6 {
    background: radial-gradient(circle at 30% 60%, #b57a38, #261506)
}

.site-thumb h4 {
    color: #fff;
    z-index: 2;
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .5)
}

.site-thumb .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, .9);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: .72rem;
    padding: .2rem .65rem;
    border-radius: 999px
}

.site-thumb .fav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: .2s
}

.site-thumb .fav.on,
.site-thumb .fav:hover {
    background: var(--red);
    color: #fff
}

.site-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1
}

.site-body p {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1rem;
    flex: 1
}

.site-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    font-weight: 700;
    border-top: 1px solid #f0e6d6;
    padding-top: .8rem
}

.site-actions a {
    color: var(--primary)
}

.site-actions a:hover {
    color: var(--primary-dark)
}

.site-actions .vr-link {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: .3rem
}

/* News */
.news {
    background: #fff
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem
}

.news-card {
    background: var(--bg);
    border: 1px solid #eee2cf;
    border-radius: 16px;
    overflow: hidden;
    transition: .3s;
    display: flex;
    flex-direction: column
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent)
}

.news-card.main {
    grid-column: span 2;
    grid-row: span 2
}

.news-thumb {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #d8c7ab
}

.news-thumb.t1 {
    background: linear-gradient(135deg, #7c4d25, #3a2410)
}

.news-thumb.t2 {
    background: linear-gradient(135deg, #a06a2c, #5e3a16)
}

.news-thumb.t3 {
    background: linear-gradient(135deg, #6b441f, #2b1808)
}

.news-card.main .news-thumb {
    aspect-ratio: 16/10
}

.news-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1
}

.news-card.main .news-body {
    padding: 1.8rem
}

.news-body time {
    font-size: .78rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .4rem
}

.news-body h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: .5rem;
    line-height: 1.35
}

.news-card.main .news-body h4 {
    font-size: 1.45rem
}

.news-body p {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.55
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin: .6rem 0 1rem
}

.contact-info p {
    color: var(--muted);
    margin-bottom: 1.8rem
}

.c-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: flex-start
}

.c-item .ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--primary-dark);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0
}

.c-item b {
    display: block;
    color: var(--primary-dark);
    font-size: .95rem
}

.c-item span {
    color: var(--muted);
    font-size: .88rem
}

.coords {
    margin-top: 1.4rem;
    background: var(--primary-dark);
    color: #f3e2c2;
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    font-size: .85rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap
}

.coords b {
    color: var(--accent)
}

form.contact {
    background: #fff;
    border: 1px solid #eee2cf;
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow)
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.field {
    margin-bottom: 1rem
}

.field label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: .35rem
}

.field input,
.field textarea {
    width: 100%;
    border: 1.5px solid #e3d5bd;
    border-radius: 10px;
    padding: .7rem .9rem;
    font-size: .92rem;
    font-family: inherit;
    outline: none;
    transition: .2s;
    background: var(--bg)
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 162, 78, .2)
}

.form-note {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .7rem
}

/* Footer */
footer {
    background: #241708;
    color: #d8c7ab
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
    padding: 3.4rem 0 2.4rem
}

footer h5 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1rem
}

footer a {
    display: block;
    font-size: .88rem;
    margin-bottom: .55rem;
    opacity: .85
}

footer a:hover {
    color: var(--accent);
    opacity: 1
}

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.1rem 0;
    font-size: .82rem;
    text-align: center;
    opacity: .75
}

/* Back to top + toast */
#toTop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 99
}

#toTop.show {
    opacity: 1;
    pointer-events: auto
}

#toast {
    position: fixed;
    left: 50%;
    top: 28px;
    transform: translate(-50%, -120px);
    background: var(--green);
    color: #fff;
    padding: .8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: .35s;
    z-index: 900
}

#toast.error {
    background: var(--red);
}

#toast.show {
    transform: translate(-50%, 0)
}

/* Modal login */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 5, .6);
    display: none;
    place-items: center;
    z-index: 300;
    padding: 1rem
}

.modal.open {
    display: grid
}

.modal-box {
    background: #fff;
    border-radius: 18px;
    width: min(420px, 100%);
    padding: 2rem;
    position: relative;
    animation: pop .25s
}

@keyframes pop {
    from {
        transform: scale(.92);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.modal-box h3 {
    color: var(--primary-dark);
    margin-bottom: .3rem
}

.modal-box .sub {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.3rem
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--muted)
}

.tabs {
    display: flex;
    background: var(--bg);
    border-radius: 999px;
    padding: .25rem;
    margin-bottom: 1.3rem
}

.tabs button {
    flex: 1;
    border: none;
    background: transparent;
    padding: .55rem;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted)
}

.tabs button.on {
    background: var(--primary);
    color: #fff
}


/* ===== SVG ICONS ===== */
.ic {
    width: 1.05em;
    height: 1.05em;
    display: inline-block;
    vertical-align: -0.16em;
    flex-shrink: 0
}

.vr-badge {
    display: inline-flex;
    color: var(--accent)
}

.vr-badge .ic {
    width: 1.7em;
    height: 1.7em
}

.logo-mark .ic {
    width: 24px;
    height: 24px
}

.hamburger .ic {
    width: 26px;
    height: 26px
}

.vr-play .ic {
    width: 26px;
    height: 26px;
    margin-left: 3px
}

#toTop .ic {
    width: 20px;
    height: 20px
}

.fav {
    display: grid;
    place-items: center
}

.fav .ic {
    width: 17px;
    height: 17px;
    fill: none
}

.fav.on .ic {
    fill: currentColor
}

.ico .ic {
    width: 26px;
    height: 26px
}

#toast .ic {
    width: 18px;
    height: 18px;
    vertical-align: -0.22em
}

.eyebrow .ic {
    width: 14px;
    height: 14px
}

.btn .ic {
    width: 1.15em;
    height: 1.15em
}

/* ============ RESPONSIVE ============ */
@media(max-width:1000px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2.2rem
    }

    .feat-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .heritage-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .news-grid {
        grid-template-columns: 1fr 1fr
    }

    .news-card.main {
        grid-column: span 2;
        grid-row: auto
    }

    .news-card.main .news-thumb {
        min-height: 200px
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr
    }

    .contact-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:768px) {
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        gap: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
        transition: right .3s ease-in-out;
        z-index: 150;
    }

    .menu.open {
        right: 0
    }

    .menu li {
        width: 100%;
    }

    .menu li a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--primary-dark);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: 0.2s;
    }

    .menu li a:hover {
        background: var(--bg);
        color: var(--primary);
    }

    .menu li .btn {
        margin: 1rem 2rem;
        width: calc(100% - 4rem);
        text-align: center;
        justify-content: center;
    }

    .hamburger {
        display: block;
        z-index: 160
    }

    .feat-grid,
    .heritage-grid,
    .news-grid,
    .form-row,
    .foot-grid {
        grid-template-columns: 1fr
    }

    .news-card.main {
        grid-column: span 1
    }

    .topbar .container span {
        display: none
    }

    .hero-stats {
        gap: 1.2rem
    }

    section {
        padding: 3.2rem 0
    }

    .user-dropdown {
        padding: 1.5rem;
        background: #fdfaf5;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        width: 100%;
        position: relative;
    }

    .user-menu-dropdown {
        display: block !important;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
        background: transparent;
    }

    .avatar-btn {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        margin: 0;
        pointer-events: none;
    }

    .user-info {
        padding: 0 0 0 3.5rem;
        border: none;
        margin: 0;
        min-height: 42px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        pointer-events: none;
    }

    /* Make profile link an invisible overlay covering the avatar and info */
    a.dropdown-item {
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        width: calc(100% - 3rem);
        height: 50px;
        opacity: 0;
        padding: 0;
        margin: 0;
        z-index: 10;
        cursor: pointer;
    }
    
    .logout-item {
        margin-top: 1.5rem;
        border-top: 1px solid rgba(0,0,0,0.05);
        border-bottom: none;
        padding: 1rem 0 0.5rem;
        color: var(--red);
        width: 100%;
    }
}