:root {
    --color-red-950: #450a0a;
    --color-gold-950: #4a2c00;
    --color-red-900: #7f1d1d;
    --color-red-800: #991b1b;
    --color-red-700: #b91c1c;
    --color-red-200: #fecaca;
    --color-red-100: #fee2e2;
    --color-amber-600: #d97706;
    --color-amber-500: #f59e0b;
    --color-amber-400: #fbbf24;
    --color-amber-300: #fcd34d;
    --color-white: #ffffff;

    /* Element colors */
    --color-wood: #4d7c0f;
    --color-fire: #b91c1c;
    --color-earth: #92400e;
    --color-metal: #a8a29e;
    --color-water: #1e40af;
}

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

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ffc107;
}

/* Header styles */
.header {
    width: 100%;
    padding: 20px 40px;
    position: relative;
}
figure>img{
    aspect-ratio: 626 / 417;
    width: 100%;
    object-fit: cover;
    height: auto;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo styles */
.logo {
    font-family: 'Times New Roman', serif;
    font-size: 24px;
    font-weight: bold;
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%); */
}

/* Navigation styles */
.nav-left,
.nav-right {
    display: flex;
    align-items: center;
}

.nav-left {
    margin-right: auto;
}

.nav-right {
    margin-left: auto;
}

.nav-item {
    margin: 0 12px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.5px;
    text-decoration: none;
    font-weight: bold;
    color: #1a1a1a;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1;
    padding: 10px 0;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.nav-right .dropdown-content {
    left: auto;
    right: 0;
}

.dropdown-content a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 8px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* Shop button */
.shop-button {
    padding: 6px 16px;
    border-radius: 50px;
    margin-left: 12px;
    transition: all 0.3s ease;
    background-color: rgba(255, 102, 0, 255);
    color: white;
    font-weight: 400;
}

.shop-button:hover {
    background-color: rgba(208, 74, 10, 255);
    color: #fff;
    font-weight: 400;
}

/* Cart icon */
.cart-icon {
    margin-left: 12px;
}

/* Bottom border */
.header-border {
    border-bottom: 1px solid #816a6a;
    width: 100%;
}

/* Mobile menu */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.w1 {
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {

    .nav-left,
    .nav-right {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .logo {
        position: static;
        transform: none;
    }

    .header-container {
        justify-content: space-between;
    }
}

@media (min-width: 1200px) {
    .container-fluid {
        padding: 0 auto;
        align-items: center;
    }
}

.headimg {
    object-fit: contain;
    height: 520px;
}

.section {
    flex: 1;
    text-align: center;
}

.category {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 500;
}

.title {
    font-family: 'Times New Roman', serif;
    font-size: 48px;
    margin-bottom: 20px;
    color: #333;
    font-weight: normal;
}

.description {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 20px;
}

.imageshow {
    width: 100%;
    height: 330px;
    margin-bottom: 30px;
    border-radius: 4px;
    object-fit: contain;
}

.read-more {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #333;
    color: #FFD700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background-color: #b22222;

}

.read-more:hover {
    background-color: #961b1b;
    color: #FFD700;
}

.container-2 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo img {
        width: 180px !important;
    }
    .header {
        width: 100%;
        padding: 10px 10px;
        position: relative;
    }

    .container-2 {
        flex-direction: column;
        gap: 60px;
    }

    .title {
        font-size: 36px;
    }

    .description {
        padding: 0;
    }
}

.title-display {
    font-size: 40px;
    font-weight: bold;
    color: gold;
}

.hperlink {
    color: #C62828;
}

.flex-column p {
    color: #5C4033;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #FFD700;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    color: #FFD700;
    font-size: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.copyright a {
    color: #FFD700;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.footer-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.footer-column h3 {
    color: #FFD700;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

.footer-column ul {
    list-style: none;
    padding-left: 0 !important;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #FFD700;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }
}


.main-article {
    position: relative;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-red-950), var(--color-red-900));
    padding: 4rem 1rem;
}

.decorative-elements {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}


/* Border pattern */
.top-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.5rem;
    background-color: var(--color-amber-500);
}

.bottom-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.5rem;
    background-color: var(--color-amber-500);
}

/* Hero content */
.hero-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Hero text */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--color-amber-400);
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--color-amber-300);
    font-size: 0.875rem;
    font-weight: 500;
}

.compass-icon {
    margin-right: 0.5rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Noto Serif SC', serif;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title .highlight {
    display: block;
    color: var(--color-amber-300);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-red-100);
    max-width: 28rem;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.primary-btn {
    background-color: #f59e0b;
    border: none;
}

.primary-btn:hover {
    background-color: #c98106;
}

.secondary-btn {
    background-color: #f59e0b;
}

.secondary-btn:hover {
    background-color: #c98106;
}

.arrow-icon {
    margin-left: 0.5rem;
}

/* Hero image */
.hero-image {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 28rem;
    margin: 0 auto;
}

.image-glow {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.2), rgba(185, 28, 28, 0.2));
    border-radius: 50%;
    filter: blur(1.5rem);
}

.image-border {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid rgba(245, 158, 11, 0.5);
    animation: pulse 2s infinite;
}

.bagua-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 0.5rem;
    object-fit: cover;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Element cards */
.element-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .element-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.element-card {
    padding: 1rem;
    border: 1px solid rgba(185, 28, 28, 0.5);
    border-radius: 0.5rem;
    background-color: rgba(153, 27, 27, 0.2);
    backdrop-filter: blur(4px);
    text-align: center;
}

.element-card h3 {
    color: var(--color-amber-300);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.element-card p {
    font-size: 0.875rem;
    color: var(--color-red-200);
}

.logo img {
    width: 250px;
}

.breadcrumb img {
    width: 100px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .quote-box blockquote {
        font-size: 1.1rem;
    }

    .bagua-text h3,
    .cta-container h3 {
        font-size: 1.5rem;
    }

    .cta-container {
        padding: 2rem 1rem;
    }
}

.about-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--color-gold-950), var(--color-red-900));
    position: relative;
    overflow: hidden;
}

.news2-section {
    background: linear-gradient(to bottom, var(--color-gold-950), var(--color-red-900));
    position: relative;
    overflow: hidden;
    color: #fff;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-amber-500), transparent);
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--color-amber-300);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.divider-line {
    height: 1px;
    width: 100px;
    background-color: var(--color-amber-500);
    opacity: 0.6;
}

.divider-symbol {
    font-size: 1.5rem;
    color: var(--color-amber-300);
    margin: 0 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-amber-400);
    font-weight: 300;
}


@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-text strong {
    color: var(--color-amber-300);
}

.quote-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--color-amber-500);
    background-color: rgba(245, 158, 11, 0.05);
    border-radius: 0 0.5rem 0.5rem 0;
}

.quote-box blockquote {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.25rem;
    color: var(--color-amber-300);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.quote-box cite {
    font-size: 0.9rem;
    color: var(--color-amber-400);
    font-style: normal;
}

.elements-container {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.elements-title {
    text-align: center;
    font-family: 'Noto Serif SC', serif;
    color: var(--color-amber-300);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .elements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .elements-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.element-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.element-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.element-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: 'Noto Serif SC', serif;
}

.element-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.element-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Element specific styles */
.element-card.wood {
    background-color: rgba(77, 124, 15, 0.2);
    border: 1px solid rgba(77, 124, 15, 0.4);
}

.element-card.wood .element-icon {
    color: #86efac;
}

.element-card.fire {
    background-color: rgba(185, 28, 28, 0.2);
    border: 1px solid rgba(185, 28, 28, 0.4);
}

.element-card.fire .element-icon {
    color: #fca5a5;
}

.element-card.earth {
    background-color: rgba(146, 64, 14, 0.2);
    border: 1px solid rgba(146, 64, 14, 0.4);
}

.element-card.earth .element-icon {
    color: #fcd34d;
}

.element-card.metal {
    background-color: rgba(168, 162, 158, 0.2);
    border: 1px solid rgba(168, 162, 158, 0.4);
}

.element-card.metal .element-icon {
    color: #e5e7eb;
}

.element-card.water {
    background-color: rgba(30, 64, 175, 0.2);
    border: 1px solid rgba(30, 64, 175, 0.4);
}

.element-card.water .element-icon {
    color: #93c5fd;
}

.logo-img {
    width: 50px;
}

.news-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--color-red-950), var(--color-red-900));
    position: relative;
    overflow: hidden;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-amber-300);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--color-amber-400);
    font-size: 1.1rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* News Card */
.news-card {
    background: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: var(--card-hover);
}

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--color-red-950);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
}

.card-image {
    position: relative;
    padding-top: 66.67%;
    /* 3:2 Aspect Ratio */
    overflow: hidden;
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    line-height: 1.4;
}

.card-content p {
    font-size: 0.875rem;
    color: var(--color-amber-300);
    opacity: 0.9;
}

/* Hover Effects */
.news-card::after {
    content: '';
    /* position: absolute; */
    inset: 0;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    display: block;
}

.news-card:hover::after {
    border-color: var(--color-amber-500);
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }
}

/* Article Layout */
.article-wrapper {
    min-height: 100vh;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, var(--color-red-950), var(--color-red-900));
}

.article-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .article-container {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}

/* Article Main Content */
.article-category {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;

    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .article-title {
        font-size: 3.5rem;
    }
}

/* Author Info */
.article-meta {
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 500;
    color: var(--color-heading);
}

.article-date {
    font-size: 0.875rem;
    color: var(--color-accent-light);
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Content */
.article-intro {
    font-size: 1.25rem;
    color: var(--color-heading);
    margin-bottom: 2rem;
}

.article-link {
    color: var(--color-link);
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: border-color 0.3s ease;
}

.article-link:hover {
    border-color: var(--color-link);
}

.article-divider {
    text-align: center;
    margin: 2rem 0;
    color: var(--color-accent);
    font-size: 1.5rem;
}

.article-text {
    font-size: 1.125rem;
}

.article-text h2 {
    font-family: var(--font-serif);
    color: var(--color-heading);
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.article-text p {
    margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar-section {
    position: sticky;
    top: 2rem;
}

.sidebar-title {
    font-family: var(--font-serif);
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.related-article {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.related-article:hover {
    transform: translateY(-4px);
}

.related-article-category {
    font-size: 0.75rem;
    color: var(--color-amber-300);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.related-article h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.related-article img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .article-wrapper {
        padding: 1rem;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-intro {
        font-size: 1.125rem;
    }

    .article-text {
        font-size: 1rem;
    }

    .article-text h2 {
        font-size: 1.5rem;
    }
}

.discover-section {
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--color-gold-950), var(--color-red-900));
}

.discover-container {
    max-width: 1200px;
    margin: 0 auto;
}

.discover-heading {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
}

/* Grid Layout */
.discover-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .discover-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Featured Post */
.featured-post {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .featured-post {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
}

.featured-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.featured-post-link:hover {
    transform: translateY(-4px);
}

.featured-image-wrapper {
    position: relative;
    padding-bottom: 100%;
    /* margin-bottom: 1rem; */
    border-radius: 1rem;
    overflow: hidden;
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 1rem 0;
    color: white;
}

.featured-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-heading);
    margin: 0.5rem 0;
    line-height: 1.3;
}

/* Post Grid */
.post-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .post-grid {
        grid-column: 2;
        grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr);
    }
}

.post-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.post-item:hover {
    transform: translateY(-4px);
}

.post-image-wrapper {
    position: relative;
    padding-bottom: 75%;
    /* margin-bottom: 1rem; */
    border-radius: 0.5rem;
    overflow: hidden;
}

.post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 0.5rem 0;
}

.topic-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-amber-300);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: white;
    margin: 0.5rem 0;
    line-height: 1.3;
}

.post-author {
    font-size: 0.875rem;
    color: white;
}

/* Hover Effects */
.featured-post-link:hover .featured-image,
.post-item:hover .post-image {
    transform: scale(1.05);
    transition: transform 0.6s ease;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .discover-section {
        padding: 2rem 1rem;
    }

    .discover-heading {
        font-size: 1.75rem;
    }

    .featured-title {
        font-size: 1.25rem;
    }

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

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Category Header */
.category-header {
    padding: 3rem 0 2rem;
    background: linear-gradient(to bottom, var(--color-red-950), var(--color-red-900));
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    position: relative;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--color-amber-300);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--color-amber-400);
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: var(--color-amber-500);
}

.breadcrumb-current {
    color: var(--color-amber-400);
}

.category-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 1.125rem;
    color: var(--color-amber-300);
    max-width: 700px;
}

/* Category Main */
.category-main {
    flex: 1;
    padding: 2rem 0 4rem;
    position: relative;
    background: linear-gradient(to bottom, var(--color-gold-950), var(--color-red-900));
}

@media (min-width: 1024px) {
    .category-layout {
        grid-template-columns: 250px 1fr;
    }
}

@media (max-width:768px) {
    .category-main {
        position: relative;
        overflow: hidden;
    }
}

/* Sidebar */
.category-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.sidebar-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.25rem;
    color: var(--color-amber-300);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-item a {
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    color: white;
}

.category-item a:hover {
    color: var(--color-amber-300);
}

.category-item.active a {
    color: var(--color-amber-500);
    font-weight: 500;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.sidebar-text {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subscribe-input {
    padding: 0.75rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    color: var(--color-white);
}

.subscribe-button {
    padding: 0.75rem;
    background: var(--color-amber-500);
    color: var(--color-red-950);
    border: none;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-button:hover {
    background: var(--color-amber-600);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

.filter-count {
    color: white;
}

.filter-count span {
    color: var(--color-amber-300);
    font-weight: 500;
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-options label {
    color: white;
}

.sort-select {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 0.25rem;
    color: var(--color-white);
    cursor: pointer;
}

.sort-select option {
    background: rgba(0, 0, 0, 0.2);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.card-tag.fire {
    background-color: var(--color-fire);
    color: var(--color-white);
}

.card-tag.water {
    background-color: var(--color-water);
    color: var(--color-white);
}

.card-tag.wood {
    background-color: var(--color-wood);
    color: var(--color-white);
}

.card-tag.earth {
    background-color: var(--color-earth);
    color: var(--color-white);
}

.card-tag.metal {
    background-color: var(--color-metal);
    color: var(--color-white);
}

.card-tag.bagua,
.card-tag.bedroom,
.card-tag.office,
.card-tag.wealth,
.card-tag.crystals,
.card-tag.relationships,
.card-tag.career {
    background-color: var(--color-amber-500);
    color: var(--color-red-950);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination-item,
.pagination-next,
.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.pagination-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.pagination-item:hover {
    background: rgba(245, 158, 11, 0.1);
}

.pagination-item.active {
    background: var(--color-amber-500);
    color: var(--color-red-950);
    font-weight: 500;
}

.pagination-next {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.1);
    padding: 0 1rem;
}

.pagination-next:hover {
    background: rgba(245, 158, 11, 0.1);
}

.pagination-ellipsis {
    color: var(--color-amber-300);
}

.pagination a {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-title {
        font-size: 2rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }
}

.header-content {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .header-content {
        grid-template-columns: 1fr 1fr;
    }
}


.category-description {
    font-size: 1.25rem;
    color: var(--color-amber-300);
    max-width: 500px;
    margin-top: 1rem;
}

/* Header Image */
.header-image {
    position: relative;
    height: 383px;
}

.image-container {
    position: relative;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 1rem;
}

.image-overlay {
    position: absolute;
    inset: 0;
    border-radius: 1rem;
}

/* Decorative Elements */
.decorative-elements {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-amber-300);
}

.circle-2 {
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    border: 2px solid var(--color-amber-500);
}

.symbol {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 4rem;
    color: var(--color-amber-300);
    opacity: 0.2;
}

/* Breadcrumbs (existing styles) */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--color-amber-300);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--color-amber-400);
}

.breadcrumb-separator {
    color: var(--color-amber-500);
}

.breadcrumb-current {
    color: var(--color-amber-400);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .category-header {
        padding: 3rem 0;
    }

    .category-title {
        font-size: 2.5rem;
    }

    .category-description {
        font-size: 1.125rem;
    }

    .header-image {
        min-height: 250px;
    }
}

@media (max-width: 640px) {
    .category-title {
        font-size: 2rem;
    }

    .category-description {
        font-size: 1rem;
    }

    .header-image {
        min-height: 200px;
    }
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
}

.mobile-menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: #1a1a1a;
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
}

.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #222;
}

.mobile-dropdown-item {
    display: block;
    padding: 1rem 1.5rem 1rem 3rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.mobile-nav-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-footer .join-button {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
}

/* Show mobile navigation when active */
.mobile-nav-active .mobile-nav {
    right: 0;
}

.mobile-nav-active .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu button animation when active */
.mobile-nav-active .mobile-menu-button span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.mobile-nav-active .mobile-menu-button span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-active .mobile-menu-button span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

.popup-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
}

.popup-banner.small {
    width: 300px;
}

.popup-banner.medium {
    width: 500px;
}

.popup-banner.large {
    width: 800px;
    max-width: 95%;
}

.popup-content img {
    display: block;
    width: 100%;
    height: auto;
}

.close-popup {
    position: absolute;
    top: 3px;
    right: 4px;
    background: #ff0018;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    line-height: 30px;
    text-align: center;
    z-index: 1;
    border: 1px solid;
}

.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: #f59e0b;
    --bs-pagination-bg: #742017;
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: var(--bs-border-color);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: #ffffff;
    --bs-pagination-hover-bg: #f59e0b;
    --bs-pagination-hover-border-color: var(--bs-border-color);
    --bs-pagination-focus-color: var(--bs-link-hover-color);
    --bs-pagination-focus-bg: var(--bs-secondary-bg);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #f59e0b;
    --bs-pagination-active-border-color: #f59e0b;
    --bs-pagination-disabled-color: #ffffff;
    --bs-pagination-disabled-bg: #752017;
    --bs-pagination-disabled-border-color: #dde3ef;
    display: flex;
    padding-left: 0;
    list-style: none;
}
.search-form {
    display: none; /* Initially hidden */
    flex: align-items center;
    margin-left: 10px;
}

.search-input {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    width: 150px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 5px;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
}
#searchForm{
    display: none;
}
.card-image video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
@media (max-width: 1024px) {

    .nav-items,
    .nav-right {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .navbar-content {
        justify-content: space-between;
    }
}

.layout2 {
    display: grid;
    gap: 2rem;
}
