@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
    --blue-primary: #1a5276;
    --blue-secondary: #2980b9;
    --blue-light: #3498db;
    --cream: #f5f5dc;
    --cream-dark: #e8e4c9;
    --cream-light: #faf8f0;
    --ink: #2c3e50;
    --ink-light: #5d6d7e;
    --gold: #c9a962;
    --gold-light: #d4b978;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', serif;
    background-color: var(--cream);
    color: var(--ink);
    line-height: 1.8;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2.5L25 20l-5 4.5V22h20v2H20v2.5L15 20l5-4.5V18H0v2h20z' fill='none' stroke='%231a5276' stroke-opacity='0.05' stroke-width='0.5'/%3E%3C/svg%3E");
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--blue-primary);
    font-weight: normal;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 245, 220, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(26, 82, 118, 0.15);
    border-bottom: 1px solid rgba(26, 82, 118, 0.1);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--blue-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo::before {
    content: '🏮';
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-light), var(--blue-primary));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--blue-primary);
    padding: 0.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 0.3rem 0.5rem;
    box-shadow: 0 2px 15px rgba(26, 82, 118, 0.1);
    border: 1px solid rgba(26, 82, 118, 0.1);
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.25);
    border-color: var(--blue-light);
    transform: translateY(-2px);
}

.search-input {
    border: none;
    background: transparent;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: var(--ink);
    width: 180px;
    outline: none;
    font-family: 'Noto Serif SC', serif;
}

.search-input::placeholder {
    color: var(--ink-light);
}

.search-btn {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 1rem;
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.slideshow-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 10s ease-in-out infinite;
}

@keyframes zoomIn {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.7) 0%, rgba(26, 82, 118, 0.35) 50%, rgba(26, 82, 118, 0.55) 100%);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    max-width: 85%;
}

.slide-content h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.slide-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.slide-btn:hover {
    background: white;
    color: var(--blue-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slide-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40L40 0z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1.5'/%3E%3C/svg%3E");
    pointer-events: none;
}

.slide-indicators {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, var(--cream-light) 100%);
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-light), var(--gold));
    border-radius: 2px;
}

.intro p {
    font-size: 1.1rem;
    color: var(--ink-light);
    line-height: 2;
    text-align: justify;
    text-indent: 2rem;
}

.categories {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
    position: relative;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.categories-container {
    max-width: 1400px;
    margin: 0 auto;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.categories h2::after {
    content: '🎭';
    margin-left: 0.5rem;
    font-size: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(26, 82, 118, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-light), var(--blue-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--blue-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: right;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(26, 82, 118, 0.2);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card-content {
    padding: 1.8rem;
    position: relative;
}

.category-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.8rem;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.category-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-card-content p {
    color: var(--ink-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

footer {
    background: linear-gradient(135deg, var(--blue-primary) 0%, #16425b 100%);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
}

footer p {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

footer .copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}

.category-page {
    padding: 7rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-page h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.category-page h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-light), var(--gold));
    border-radius: 2px;
}

.category-page-subtitle {
    color: var(--ink-light);
    font-size: 1.05rem;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.8rem;
    background: white;
    border: 2px solid var(--blue-light);
    border-radius: 40px;
    color: var(--blue-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Serif SC', serif;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 82, 118, 0.05), transparent);
    transition: left 0.5s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn:hover {
    background: var(--blue-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.tab-btn.active {
    background: var(--blue-primary);
    border-color: var(--blue-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(26, 82, 118, 0.3);
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.item-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(26, 82, 118, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--blue-light));
    transition: width 0.4s ease;
    z-index: 2;
}

.item-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-light), var(--blue-primary));
    transition: width 0.4s ease;
    z-index: 2;
}

.item-card:hover::before {
    width: 100%;
}

.item-card:hover::after {
    width: 100%;
}

.item-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 22px 45px rgba(26, 82, 118, 0.18);
}

.item-card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.item-card-image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-card:hover .item-card-image-wrapper img {
    transform: scale(1.08);
}

.item-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.item-card:hover .item-card-overlay {
    opacity: 1;
}

.item-card-content {
    padding: 1.5rem;
    position: relative;
}

.item-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.item-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: var(--blue-primary);
}

.item-level {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-secondary));
    color: white;
    border-radius: 25px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.item-card:hover .item-level {
    transform: scale(1.05);
}

.item-level.national {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 3px 12px rgba(231, 76, 60, 0.3);
}

.item-level.provincial {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-secondary));
}

.item-card-content p {
    color: var(--ink-light);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.item-card-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(26, 82, 118, 0.1);
}

.item-region {
    font-size: 0.8rem;
    color: var(--ink-light);
    transition: all 0.3s ease;
}

.item-card:hover .item-region {
    color: var(--blue-primary);
}

.region-page {
    padding: 7rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.region-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.region-page h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.region-page h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-light), var(--gold));
    border-radius: 2px;
}

.region-page-subtitle {
    color: var(--ink-light);
    font-size: 1.05rem;
}

.regions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.region-card {
    background: white;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 6px 25px rgba(26, 82, 118, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-light), var(--gold));
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: top;
}

.region-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--blue-light));
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.region-card:hover::before {
    transform: scaleY(1);
}

.region-card:hover::after {
    transform: scaleY(1);
}

.region-card:hover {
    transform: translateY(-6px) rotateY(2deg);
    box-shadow: 0 18px 40px rgba(26, 82, 118, 0.15);
}

.region-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--blue-light);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.region-card h3::after {
    content: '📍';
    font-size: 1.2rem;
}

.region-card ul {
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
}

.region-card ul::-webkit-scrollbar {
    width: 4px;
}

.region-card ul::-webkit-scrollbar-track {
    background: rgba(26, 82, 118, 0.05);
    border-radius: 2px;
}

.region-card ul::-webkit-scrollbar-thumb {
    background: var(--blue-light);
    border-radius: 2px;
}

.region-card li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(26, 82, 118, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.region-card li::before {
    content: '▸';
    color: var(--gold);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.region-card li:hover::before {
    opacity: 1;
}

.region-card li:hover {
    color: var(--blue-primary);
    padding-left: 0.8rem;
    background: rgba(26, 82, 118, 0.03);
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    margin-left: -0.8rem;
    margin-right: -0.8rem;
    border-radius: 8px;
}

.region-card li:last-child {
    border-bottom: none;
}

.region-item-count {
    font-size: 0.8rem;
    color: var(--ink-light);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(26, 82, 118, 0.1);
    text-align: right;
}

.detail-page {
    padding: 7rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.back-link:hover {
    background: rgba(26, 82, 118, 0.08);
    padding-left: 1.5rem;
    transform: translateX(-5px);
}

.detail-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 12px 45px rgba(26, 82, 118, 0.18);
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.65) 0%, rgba(26, 82, 118, 0.35) 50%, rgba(26, 82, 118, 0.55) 100%);
}

.detail-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30L30 0z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    pointer-events: none;
}

.detail-hero-content {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    right: 2.5rem;
    color: white;
}

.detail-hero-content h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.detail-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.detail-section {
    background: white;
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 25px rgba(26, 82, 118, 0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-section:hover {
    box-shadow: 0 10px 35px rgba(26, 82, 118, 0.12);
    transform: translateY(-2px);
}

.detail-section.expanded {
    padding-bottom: 3rem;
}

.detail-section-content {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.2s ease-out, opacity 0.2s ease-out;
}

.detail-section.expanded .detail-section-content {
    max-height: 3000px;
}

.detail-section-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.detail-section.expanded .detail-section-content::after {
    display: none;
}

.detail-section-toggle {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    opacity: 1;
}

.detail-section-toggle:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.detail-section.expanded .detail-section-toggle {
    transform: translateX(-50%);
}

.detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-light), var(--gold));
}

.detail-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--blue-light);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.detail-section p {
    color: var(--ink-light);
    line-height: 2;
    font-size: 1rem;
    text-align: justify;
}

.related-section {
    margin-top: 3rem;
}

.related-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.related-section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-light), var(--gold));
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(26, 82, 118, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-light), var(--gold));
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: top;
}

.related-card:hover::before {
    transform: scaleY(1);
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(26, 82, 118, 0.12);
}

.related-card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.related-card-image-wrapper img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-image-wrapper img {
    transform: scale(1.08);
}

.related-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.related-card:hover .related-card-overlay {
    opacity: 1;
}

.related-card-content {
    padding: 1rem;
}

.related-card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--blue-primary);
}

.related-card-content .item-level {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
}

.team-page,
.about-page {
    padding: 7rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-page h1,
.about-page h1 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.team-page h1::after,
.about-page h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-light), var(--gold));
    border-radius: 2px;
}

.team-content,
.about-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 35px rgba(26, 82, 118, 0.1);
    position: relative;
    overflow: hidden;
}

.team-content::before,
.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--blue-light), var(--gold));
}

.team-content p,
.about-content p {
    color: var(--ink-light);
    font-size: 1.05rem;
    line-height: 2;
    text-align: justify;
    margin-bottom: 1.5rem;
}

.team-content p:first-child {
    text-indent: 2rem;
}

.team-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.team-content li {
    padding: 1rem 1.5rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.03) 0%, rgba(26, 82, 118, 0.06) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--blue-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-content li:hover {
    background: linear-gradient(135deg, rgba(26, 82, 118, 0.06) 0%, rgba(26, 82, 118, 0.1) 100%);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(26, 82, 118, 0.1);
}

.team-content li:last-child {
    margin-bottom: 0;
}

.team-content strong {
    color: var(--blue-primary);
    font-size: 1rem;
    min-width: 120px;
    display: inline-block;
}

.team-content li span {
    color: var(--ink-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .team-page,
    .about-page {
        padding: 6rem 1.5rem 3rem;
    }

    .team-page h1,
    .about-page h1 {
        font-size: 2.2rem;
    }

    .team-content,
    .about-content {
        padding: 1.5rem;
    }

    .team-content li {
        padding: 0.8rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .team-content strong {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .team-page h1,
    .about-page h1 {
        font-size: 1.8rem;
    }

    .team-content,
    .about-content {
        padding: 1.2rem;
        border-radius: 15px;
    }

    .team-content p,
    .about-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 1024px) {
    .slide-content h1 {
        font-size: 3rem;
    }

    .category-tabs {
        gap: 0.8rem;
    }

    .tab-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .search-container {
        display: none;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--cream);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 15px 30px rgba(26, 82, 118, 0.15);
        padding: 2rem 0;
        z-index: 999;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .burger {
        display: block;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.1rem;
    }

    .intro h2 {
        font-size: 2rem;
    }

    .category-page h1,
    .region-page h1 {
        font-size: 2.2rem;
    }

    .detail-hero-content h1 {
        font-size: 2rem;
    }

    .detail-meta {
        gap: 0.8rem;
    }

    .detail-section {
        padding: 1.5rem;
    }

    .items-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .regions-list {
        gap: 1.5rem;
    }

    .category-tabs {
        gap: 0.6rem;
    }

    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .detail-hero {
        height: 40vh;
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .intro h2 {
        font-size: 1.8rem;
    }

    .category-page h1,
    .region-page h1 {
        font-size: 1.8rem;
    }

    .detail-hero-content h1 {
        font-size: 1.6rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .detail-hero {
        height: 35vh;
        min-height: 250px;
        border-radius: 15px;
    }

    .detail-hero-content {
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
    }

    .detail-section {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
        border-radius: 15px;
    }

    .detail-section h2 {
        font-size: 1.3rem;
    }

    .detail-section p {
        font-size: 0.95rem;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .regions-list {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .related-card-image-wrapper img {
        height: 120px;
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.left {
    transform: translateX(-50px);
}

.scroll-animate.left.visible {
    transform: translateX(0);
}

.scroll-animate.right {
    transform: translateX(50px);
}

.scroll-animate.right.visible {
    transform: translateX(0);
}

.scroll-animate.scale {
    transform: scale(0.8);
}

.scroll-animate.scale.visible {
    transform: scale(1);
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.tilt-card {
    perspective: 1000px;
}

.tilt-card-inner {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.lazy-image {
    opacity: 1;
    transition: opacity 0.5s ease;
}
