:root {
    --primary: #b12b28;
    --primary-dark: #8e1f1d;
    --accent: #f8ede3;
    --text: #2d2d2d;
    --muted: #6c757d;
    --border: #e8e1db;
}

/* Month page (calendar-month.php) */
.month-page-main {
    padding: 18px 0 40px;
}

.month-hero {
    text-align: center;
    margin: 4px 0 18px;
}

.month-hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #1f2f4d;
    margin: 0;
}

.month-hero-badge {
    margin-top: 10px;
    display: inline-block;
    background: linear-gradient(90deg, #0a8f1f, #06740f);
    color: #fff;
    padding: 6px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(9, 101, 30, 0.24);
}

.month-hero-badge:hover {
    color: #fff;
    filter: brightness(1.03);
}

.month-desc-box {
    background: #fff;
    border-radius: 18px;
    padding: 22px 24px;
    margin: 18px 0 16px;
    border-left: 4px solid #2e7d32;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.month-desc-box h2 {
    font-size: 22px;
    font-weight: 800;
    color: #e67e22;
    margin-bottom: 12px;
}

.month-desc-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

.month-desc-box p:last-child {
    margin-bottom: 0;
}

.month-breadcrumb-tabs {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.month-breadcrumb-tabs a,
.month-breadcrumb-tabs span {
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    color: #263446;
    background: #fff;
    border: 1px solid #cfd7df;
    padding: 10px 24px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
    margin-right: 6px;
}

.month-breadcrumb-tabs span.active {
    background: #0c7a1a;
    border-color: #0c7a1a;
    color: #fff;
}

.month-calendar-section {
    margin-bottom: 28px;
}

.month-calendar-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #d0d8e0;
    background: #fff;
}

.month-calendar-head {
    background: #057a08;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 12px;
}

.month-calendar-head h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
}

.month-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.month-nav-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.32);
}

.month-calendar-table th {
    text-align: center;
    background: #f5f6f8;
    border: 1px solid #dbe1e8;
    font-size: 17px;
    font-weight: 700;
    color: #1f2f47;
}

.month-day-cell {
    border: 1px solid #d7dde4;
    vertical-align: top;
    height: 108px;
    min-width: 110px;
    position: relative;
    background: #fff;
}

.month-day-cell::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: absolute;
    top: 6px;
    right: 6px;
    background: #c4c9d0;
}

.month-day-cell.dot-good::after {
    background: #ff6a00;
}

.month-day-cell.dot-bad::after {
    background: #0b8a2f;
}

.month-day-cell.dot-normal::after {
    background: #bfc5cc;
}

.month-day-cell.is-today {
    background: #eaf3eb;
    box-shadow: inset 0 0 0 2px #2f7d37;
}

.month-day-cell.is-other-month .month-day-link {
    opacity: 0.58;
}

.month-day-link {
    display: block;
    text-decoration: none;
    color: #1b2533;
    padding: 8px 8px 6px;
}

.month-day-link:hover {
    color: #1b2533;
    background: #f8fafb;
}

.month-day-link .solar-day {
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.month-day-link .lunar-day {
    margin-top: 8px;
    display: block;
    font-size: 14px;
    color: #67768a;
}

.month-day-link .chi-day {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #596980;
}

.month-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 22px;
    border-top: 1px solid #dbe1e8;
    padding: 12px 10px;
    font-size: 16px;
    color: #344054;
}

.month-legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}

.month-legend-good {
    background: #ff6a00;
}

.month-legend-bad {
    background: #0b8a2f;
}

.month-legend-normal {
    background: #bfc5cc;
}

.month-good-bad-section {
    margin: 8px 0 20px;
}

.month-good-bad-section h3 {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #1f2f47;
}

.month-good-bad-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 16px;
    color: #3d4d63;
    margin-bottom: 14px;
}

.month-good-bad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.month-good-card,
.month-bad-card {
    background: #f6f8fb;
    border-radius: 14px;
    padding: 14px 14px 16px;
}

.month-good-card {
    border-left: 3px solid #ff6a00;
}

.month-bad-card {
    border-left: 3px solid #0b8a2f;
}

.month-good-card h4,
.month-bad-card h4 {
    text-align: center;
    font-size: 17px;
    margin: 0 0 10px;
    color: #2f3d4f;
    font-weight: 800;
}

.month-day-pills {
    display: grid;
    gap: 8px;
}

.good-pill,
.bad-pill {
    border-radius: 8px;
    display: block;
    padding: 7px 10px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.good-pill {
    background: #ff6a00;
}

.bad-pill {
    background: #057a35;
}

.good-pill:hover,
.bad-pill:hover {
    color: #fff;
    filter: brightness(1.03);
}

.month-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 26px;
}

.month-info-card {
    background: #f6f8fb;
    border-radius: 14px;
    padding: 14px 14px 16px;
}

.holiday-card {
    border-left: 3px solid #ff6a00;
}

.history-card {
    border-left: 3px solid #0b8a2f;
}

.month-info-card h4 {
    text-align: center;
    font-size: 17px;
    margin: 0 0 10px;
    color: #2f3d4f;
    font-weight: 800;
}

.month-info-list {
    display: grid;
    gap: 8px;
}

.month-info-item {
    background: #fff;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    color: #38485d;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.month-info-item .item-icon {
    color: #4e9d5d;
    font-weight: 700;
    line-height: 1.4;
}

.month-empty-text {
    margin: 6px 0 0;
    font-size: 14px;
    color: #6b7686;
}

.month-navigation-section {
    background: #06730d;
    border-radius: 24px;
    padding: 18px;
    color: #fff;
    margin-bottom: 16px;
}

.month-navigation-section h3 {
    text-align: center;
    margin: 0;
    font-size: 38px;
    font-weight: 800;
}

.month-navigation-section > p {
    text-align: center;
    margin: 4px 0 12px;
    color: #dff5e4;
    font-size: 18px;
}

.month-navigation-grid {
    background: #0b7c13;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.month-tile {
    min-height: 104px;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #137b22;
    gap: 8px;
    text-align: center;
}

.month-tile .month-number {
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
}

.month-tile .month-label {
    font-size: 14px;
    font-weight: 700;
    color: #2f3f53;
}

.month-tile.active {
    background: linear-gradient(90deg, #ff6f1b, #ff9e43);
    color: #fff;
}

.month-tile.active .month-label {
    color: #fff;
}

.month-year-nav {
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.month-year-nav a {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    border-radius: 8px;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.month-year-nav a.active {
    background: #fff;
    color: #2a7b2f;
}

.year-nav-arrow {
    font-size: 24px;
    line-height: 1;
}

.month-travel-days-section {
    margin: 18px 0 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #d7dde6;
    border-top: 4px solid #2f7d32;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    padding: 16px 18px;
}

.month-travel-days-section h3 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: #b03a2e;
}

.month-travel-days-intro {
    margin: 0 0 12px;
    font-size: 16px;
    color: #4b5b70;
}

.month-travel-days-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.travel-day-item {
    background: #f7f9fc;
    border: 1px solid #dde4ed;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.55;
    color: #314155;
}

.travel-day-item strong {
    color: #1d2f46;
}

@media (max-width: 991.98px) {
    .month-hero h1 {
        font-size: 36px;
    }

    .month-hero-badge {
        font-size: 19px;
    }

    .month-desc-box h2 {
        font-size: 22px;
    }

    .month-desc-box p {
        font-size: 16px;
    }

    .month-breadcrumb-tabs a,
    .month-breadcrumb-tabs span {
        font-size: 17px;
        padding: 8px 16px;
    }

    .month-calendar-head h2 {
        font-size: 26px;
    }

    .month-day-link .solar-day {
        font-size: 28px;
    }

    .month-good-bad-section h3 {
        font-size: 30px;
    }

    .month-navigation-section h3 {
        font-size: 30px;
    }

    .month-navigation-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .month-year-nav a {
        font-size: 22px;
    }

    .year-nav-arrow {
        font-size: 20px;
    }

    .month-travel-days-section h3 {
        font-size: 24px;
    }
}

@media (max-width: 767.98px) {
    .month-page-main {
        padding-top: 12px;
    }

    .month-hero h1 {
        font-size: 30px;
    }

    .month-hero-badge {
        font-size: 16px;
        padding: 6px 14px;
    }

    .month-breadcrumb-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 6px;
    }

    .month-breadcrumb-tabs a,
    .month-breadcrumb-tabs span {
        clip-path: none;
        margin-right: 0;
        text-align: center;
        padding: 8px 10px;
        font-size: 14px;
        border-radius: 8px;
    }

    .month-calendar-head {
        gap: 12px;
    }

    .month-calendar-head h2 {
        font-size: 20px;
    }

    .month-nav-btn {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .month-day-cell {
        min-width: 92px;
        height: 92px;
    }

    .month-day-link .solar-day {
        font-size: 23px;
    }

    .month-day-link .lunar-day,
    .month-day-link .chi-day {
        font-size: 12px;
    }

    .month-calendar-legend,
    .month-good-bad-legend {
        flex-wrap: wrap;
        gap: 8px 16px;
        font-size: 13px;
    }

    .month-good-bad-grid,
    .month-info-grid {
        grid-template-columns: 1fr;
    }

    .month-navigation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .month-tile {
        min-height: 86px;
    }

    .month-tile .month-number {
        font-size: 34px;
    }

    .month-year-nav {
        gap: 8px;
    }

    .month-year-nav a {
        font-size: 16px;
        padding: 7px 10px;
    }

    .year-nav-arrow {
        font-size: 16px;
    }

    .month-travel-days-grid {
        grid-template-columns: 1fr;
    }

    .month-travel-days-section h3 {
        font-size: 20px;
    }
}

body {
    font-family: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background-color: #f4ead2;
    background-image: url("../images/site-background.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

.site-header {
    position: relative;
    background-color: #8f1f1f;
    background-image: url("../images/header-background.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-top: 1px solid #c99e57;
    border-bottom: 1px solid #c99e57;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(120, 20, 20, 0.4);
    pointer-events: none;
}

.site-header > .container {
    position: relative;
    z-index: 1;
}

.header-inner {
    min-height: 58px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-decoration: none;
}

.site-logo picture {
    display: block;
    flex-shrink: 0;
}

.site-logo-image {
    height: 42px;
    width: auto;
    display: block;
}

.site-logo-domain {
    display: none;
}

.seo-logo-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .site-logo {
        gap: 8px;
        max-width: 100%;
    }

    .site-logo-image {
        height: 30px;
        width: auto;
        flex-shrink: 0;
    }

    .site-logo-domain {
        display: inline-block;
        font-size: 15px;
        font-weight: 700;
        color: #f5e6c8;
        line-height: 1;
        white-space: nowrap;
        max-width: calc(100vw - 140px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.header-nav {
    gap: 26px;
}

.header-time-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.time-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8e5de7;
}

.nav-link-custom {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.25px;
    transition: color 0.2s ease;
}

.nav-link-custom:hover {
    color: #e8f5eb;
}

.nav-link-custom.active {
    color: #ffe9b8;
}

.dropdown-toggle-custom::after {
    display: none;
}

.dropdown-indicator {
    font-size: 12px;
    margin-left: 3px;
}

.header-dropdown-menu {
    min-width: 190px;
    border-radius: 10px;
    border: 1px solid #d8e3da;
    padding: 6px;
}

.header-dropdown-menu .dropdown-item {
    font-size: 15px;
    padding: 7px 10px;
    border-radius: 7px;
}

.header-dropdown-menu .dropdown-item:hover {
    background: #eef8f0;
    color: #b03a2e;
}

.mobile-menu-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background: transparent;
    padding: 9px 8px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #ffffff;
}

.mobile-menu-btn:hover {
    border-color: rgba(255, 255, 255, 0.9);
}

.today-overview-section {
    background: transparent;
}

.today-main-title {
    text-align: center;
    font-size: 48px;
    line-height: 1.15;
    color: #1d2f4e;
    margin: 6px 0 14px;
    font-weight: 800;
}

.today-main-cta {
    display: inline-block;
    background: #2d8529;
    color: #fff;
    border-radius: 999px;
    padding: 10px 24px;
    font-size: 22px;
    line-height: 1.1;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    font-weight: 700;
}

.today-main-cta:hover {
    color: #fff;
    background: #246d22;
}

.today-search-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 14px;
}

.today-search-icon {
    font-size: 18px;
    line-height: 1;
}

.today-search-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: #70757a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.today-search-tag:hover {
    background: #5f6469;
    color: #fff;
}

.today-info-board {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #d4d9e0;
}

.info-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.info-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row-canchi {
    flex-wrap: wrap;
}

.info-card .icon {
    font-size: 16px;
}

.info-card .label {
    font-weight: 600;
    color: #555;
}

.info-card .label.small {
    margin-left: 10px;
}

.info-card .value {
    margin-left: auto;
    font-weight: 600;
}

.info-card .value.highlight {
    color: #e67e22;
}

.info-card .value.green {
    color: #2e7d32;
}

.info-card .tag {
    background: #f1f1f1;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #e67e22;
}

.info-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.status-box {
    background: #eef5ea;
    border-left: 4px solid #2e7d32;
    padding: 12px 14px;
    border-radius: 10px;
}

.status-box.bad {
    background: #fbeaea;
    border-left-color: #c0392b;
}

.status-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.status-desc {
    font-size: 14px;
    color: #666;
}

.good-hours-box {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 10px;
}

.good-hours-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.good-hours-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.info-card .hour-chip {
    background: #2e7d32;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Refactor date card to match sample #1 */
.date-card-container {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-top: 24px;
}

.date-card-header {
    background: #b03a2e;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 14px 18px;
    font-weight: 700;
}

.date-card-header .header-left {
    justify-self: start;
    font-size: 16px;
    text-transform: uppercase;
}

.date-card-header .header-center {
    justify-self: center;
    font-size: 24px;
    font-weight: 800;
}

.date-card-header .header-right {
    justify-self: end;
    font-size: 16px;
    font-weight: 700;
}

.date-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px 8px;
}

.date-card-container .today-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1f7a1f;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(31, 122, 31, 0.18);
}

.top-meta {
    display: flex;
    gap: 14px;
    color: #777;
    font-size: 14px;
}

.main-date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    padding: 10px 20px 18px;
}

.main-date-number {
    font-size: 98px;
    line-height: 1;
    font-weight: 800;
    color: #b03a2e;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.date-card-container .nav-arrow {
    text-decoration: none;
    color: #777;
    font-size: 56px;
    line-height: 1;
    transition: 0.2s ease;
}

.date-card-container .nav-arrow:hover {
    color: #444;
    transform: scale(1.05);
}

.good-hours-block {
    padding: 0 18px 14px;
}

.good-hours-title {
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
    color: #555;
    margin-bottom: 10px;
}

.good-hours-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hour-chip {
    display: inline-flex;
    align-items: center;
    background: #2f8b2f;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.solar-term-box {
    margin: 0 18px 18px;
    background: #eef5ea;
    border-left: 4px solid #2f8b2f;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.solar-term-text {
    color: #666;
    font-size: 16px;
}

.solar-term-text strong {
    color: #2f8b2f;
}

.solar-term-icon {
    color: #e0a35a;
    font-size: 22px;
    white-space: nowrap;
}

.date-card-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 0 18px 22px;
    align-items: start;
    text-align: center;
}

.bottom-col {
    color: #666;
}

.mini-line {
    font-size: 15px;
    line-height: 1.8;
}

.center-col .lunar-day-big {
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
    color: #1f7a1f;
    margin: 10px 0 8px;
}

.left-col,
.right-col {
    padding-top: 8px;
}

.content-card,
.quick-info-card,
.calendar-card,
.detail-card {
    background-color: #fdfbf5;
    background-image: url("../images/card-background.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.content-card {
    padding: 24px;
}

.section-title {
    font-size: 30px;
}

.utility-card {
    height: 100%;
    border: 1px solid #efdfcf;
    border-radius: 12px;
    padding: 20px;
    background: #fffdf9;
}

.utility-card-link {
    display: block;
    text-decoration: none;
}

.utility-card-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.utility-card h3 {
    font-size: 20px;
    color: var(--primary);
}

.utility-card p {
    color: #575757;
    margin: 0;
}

#tien-ich .section-title {
    font-size: 30px;
    font-weight: 800;
    color: #2e7d32;
    text-transform: uppercase;
    border-left: 4px solid #2e7d32;
    padding-left: 10px;
    line-height: 1.2;
}

.calendar-card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #d7dde7;
}

.calendar-section-title {
    margin: 20px 0 10px;
}

.calendar-section-title h3 {
    font-size: 18px;
    font-weight: 800;
    color: #2e7d32;
    text-transform: uppercase;
    border-left: 4px solid #2e7d32;
    padding-left: 10px;
    margin: 0;
}

.calendar-head {
    padding: 13px 18px;
    background: #b03a2e;
    color: #fff;
}

.calendar-title {
    font-size: 28px;
    font-weight: 700;
}

.calendar-nav-btn {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.95;
}

.calendar-nav-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.calendar-table th {
    text-align: center;
    background: #f2f3f5;
    border: 1px solid #dcdfe4;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 700;
}

.calendar-day {
    width: 14.285%;
    min-width: 110px;
    height: 96px;
    border: 1px solid #e1e4ea;
    padding: 0 !important;
    vertical-align: top;
    position: relative;
}

.calendar-day-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, transform 0.2s ease;
}

.calendar-day-link:hover {
    background: #f7fbf7;
    transform: translateY(-1px);
    text-decoration: none;
}

.solar-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #2a2a2a;
}

.lunar-day {
    font-size: 12px;
    color: #79808a;
}

.day-canchi {
    font-size: 11px;
    color: #6a7078;
}

.calendar-day.is-other-month .solar-day,
.calendar-day.is-other-month .lunar-day {
    opacity: 0.5;
}

.calendar-day.is-today .calendar-day-link {
    background: #edf7ee;
    box-shadow: inset 0 0 0 2px #b03a2e;
}

.calendar-day.is-good .solar-day {
    color: #237937;
}

.calendar-day.is-bad .solar-day {
    color: #9a3e37;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 14px 14px;
    border-top: 1px solid #eceff4;
    background: #fff;
    font-size: 14px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.legend-good {
    background: #237937;
}

.legend-bad {
    background: #9a3e37;
}

.legend-normal {
    background: #6c7684;
}

.calendar-main-wrap {
    margin-top: 8px;
}

.fortune-detail-section {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d4d9e1;
    background: #fff;
}

.fortune-head {
    background: #b03a2e;
    color: #fff;
    padding: 12px 18px;
}

.fortune-head h2 {
    margin: 0;
    font-size: 27px;
    font-weight: 700;
}

.fortune-table th {
    width: 220px;
    background: #f4f6f8;
    color: #c45b20;
}

.fortune-table td,
.fortune-table th {
    padding: 12px 14px;
    border-color: #e2e5ea;
    vertical-align: top;
}

.fortune-line {
    margin: 0 0 6px;
    line-height: 1.55;
}

.fortune-line:last-child {
    margin-bottom: 0;
}

.origin-content .content-card h2 {
    font-size: 28px;
    font-weight: 700;
}

.origin-content .content-card p {
    color: #38404b;
    line-height: 1.7;
}

.quick-info-card {
    padding: 20px;
}

.quick-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed #ebdfd2;
}

.quick-list li:last-child {
    border-bottom: 0;
}

.quick-list span {
    color: #666;
}

.site-footer {
    position: relative;
    background-color: #7c2620;
    background-image: url("../images/footer-background.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #f1e8dc;
    border-top: 3px solid #c99e57;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(44, 10, 10, 0.42);
    pointer-events: none;
}

.site-footer > * {
    position: relative;
    z-index: 1;
}

.site-footer .footer-col {
    background: rgba(58, 15, 13, 0.58);
    border: 1px solid rgba(222, 190, 138, 0.28);
    border-radius: 12px;
    padding: 16px;
    height: 100%;
}

.footer-title,
.footer-subtitle {
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 14px;
    position: relative;
}

.footer-title::after,
.footer-subtitle::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: #e67e22;
    margin-top: 8px;
}

.footer-links a {
    color: #f5ecdf;
    text-decoration: none;
    font-size: 17px;
    line-height: 1.75;
}

.footer-links a:hover {
    color: #ffffff;
}

.site-footer p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 1;
}

.footer-intro {
    color: #f0e5d8;
    margin: 0 0 10px;
}

.footer-intro a,
.footer-seo-text a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: underline;
}

.footer-intro a:hover,
.footer-seo-text a:hover {
    color: #ffe3cf;
}

.footer-social-list {
    margin-top: 10px;
}

.footer-social-link {
    color: #f5ecdf;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-social-link:hover {
    color: #ffffff;
}

.footer-social-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 18px;
    filter: invert(92%) sepia(8%) saturate(265%) hue-rotate(175deg) brightness(93%) contrast(87%);
}

.footer-social-link:hover .footer-social-icon {
    filter: invert(100%) brightness(100%);
}

.footer-bottom {
    background: rgba(35, 8, 8, 0.48);
    border-top: 1px solid rgba(231, 206, 164, 0.3);
    color: #f1e8dc;
    font-size: 15px;
}

.footer-seo-text {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.85;
}

.scroll-top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #b03a2e;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
    display: none;
}

.scroll-top-btn:hover {
    background: #8f2e24;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1035;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 320px);
    height: 100%;
    background: #ffffff;
    z-index: 1040;
    padding: 20px 16px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -5px 0 22px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #ededed;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mobile-clock-box {
    font-size: 14px;
    color: #525252;
    margin: 0 4px 8px;
}

.mobile-menu-panel a {
    display: block;
    padding: 12px 6px;
    color: #3e3e3e;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-panel a:hover {
    color: #b03a2e;
}

.mobile-menu-panel a.active {
    color: #b03a2e;
    font-weight: 700;
}

.convert-page {
    margin-top: 18px;
}

.convert-page .page-header h1 {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: #25324a;
    margin: 0 0 16px;
}

.convert-page-intro {
    background: #fff;
    border: 1px solid #d6dee8;
    border-top: 4px solid #2e7d32;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    padding: 18px 20px;
    margin: 0 0 16px;
}

.convert-page-intro p {
    margin: 0 0 10px;
    color: #334155;
    line-height: 1.72;
}

.convert-page-intro p:last-child {
    margin-bottom: 0;
}

.convert-breadcrumb {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.convert-breadcrumb a,
.convert-breadcrumb span {
    display: inline-block;
    background: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #d5dde7;
    line-height: 1.25;
}

.convert-breadcrumb a {
    color: #1f2f47;
}

.convert-breadcrumb span {
    background: #2f7d32;
    border-color: #2f7d32;
    color: #fff;
    box-shadow: 0 4px 10px rgba(47, 125, 50, 0.22);
}

.convert-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
    align-items: stretch;
}

.convert-left,
.convert-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.convert-left {
    gap: 20px;
}

.convert-right .date-card-container {
    height: 100%;
    margin-top: 0;
}

.result-header {
    margin: 20px 0 10px;
    border-left: 4px solid #2e7d32;
    padding-left: 10px;
}

.result-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.convert-knowledge-block {
    margin-top: 30px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #cfd8e3;
    border-top: 4px solid #2e7d32;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    padding: 20px 22px;
    overflow: hidden;
}

.convert-knowledge-block h3 {
    font-size: 24px;
    font-weight: 800;
    color: #b03a2e;
    margin: 0 0 12px;
}

.convert-knowledge-block p {
    margin: 0 0 12px;
    color: #364152;
    line-height: 1.7;
}

.convert-knowledge-block p:last-child {
    margin-bottom: 0;
}

.convert-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.convert-title {
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 12px;
    font-size: 22px;
}

.convert-type {
    background: #f4f4f4;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 14px;
}

.convert-type strong {
    display: block;
}

.convert-type p {
    margin: 4px 0 0;
    color: #66717f;
    font-size: 14px;
}

.convert-box .form-group {
    margin-bottom: 14px;
}

.convert-box .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #444;
}

.convert-box .form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.convert-box .form-actions {
    display: flex;
    gap: 10px;
}

.convert-box .btn-primary {
    background: #2e7d32;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    border: 0;
    font-weight: 700;
}

.convert-box .btn-secondary {
    background: #9aa5b1;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    border: 0;
    font-weight: 700;
}

.mobile-dropdown-menu {
    list-style: none;
    margin: 0 0 8px;
    padding: 0 0 0 12px;
    display: none;
}

.mobile-dropdown-menu li a {
    font-weight: 500;
    font-size: 14px;
    padding: 9px 2px;
    border-bottom: 1px dashed #ececec;
}

.mobile-dropdown-menu.is-open {
    display: block;
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.mobile-menu-open .mobile-menu-panel {
    transform: translateX(0);
}

body.mobile-menu-open {
    overflow: hidden;
    touch-action: none;
}

.detail-card {
    padding: 24px;
}

.detail-title {
    font-size: 32px;
}

.detail-item {
    border: 1px solid #efe4d9;
    border-radius: 10px;
    padding: 14px;
    height: 100%;
}

.detail-item span {
    display: block;
    color: #6d6d6d;
    font-size: 13px;
    margin-bottom: 4px;
}

@media (max-width: 991.98px) {
    .calendar-day {
        min-width: 90px;
        height: 84px;
    }
    .solar-day {
        font-size: 19px;
    }
}

@media (max-width: 767.98px) {
    .site-header {
        position: sticky;
        top: 0;
        z-index: 9999;
    }

    .header-inner {
        min-height: 58px;
    }
    .header-nav {
        gap: 16px;
    }

    .mobile-menu-panel {
        top: 58px;
        height: calc(100% - 58px);
    }

    .mobile-clock-box {
        margin-top: 6px;
    }

    .today-main-title {
        font-size: 34px;
    }
    .today-main-cta {
        font-size: 24px;
    }
    .today-search-tags {
        margin: 10px 0 12px;
    }
    .today-search-tag {
        font-size: 13px;
        padding: 5px 10px;
    }
    .today-info-board {
        padding: 16px;
    }
    .calendar-title {
        font-size: 18px;
    }
    .calendar-nav-btn {
        font-size: 13px;
    }
    .calendar-day {
        min-width: 74px;
        height: 76px;
    }

    .convert-page .page-header h1 {
        font-size: 34px;
    }

    .convert-layout {
        grid-template-columns: 1fr;
    }

    .info-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .info-left,
    .info-right {
        gap: 10px;
    }

    .info-row {
        gap: 8px;
        padding-bottom: 9px;
    }

    .info-row .label {
        font-size: 15px;
    }

    .info-row .value {
        font-size: 15px;
    }

    .info-row-canchi .icon {
        margin-top: 1px;
    }

    .info-row-canchi .label.small {
        margin-left: 4px;
    }

    .info-row-canchi .tag {
        font-size: 14px;
        padding: 3px 8px;
    }

    .status-title {
        font-size: 17px;
    }

    .status-desc {
        font-size: 14px;
        line-height: 1.55;
    }

    .good-hours-box {
        padding: 10px;
    }

    .good-hours-title {
        margin-bottom: 6px;
    }

    .info-card .hour-chip {
        font-size: 12px;
        padding: 4px 7px;
    }

    .date-card-header {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: center;
    }

    .date-card-header .header-left,
    .date-card-header .header-center,
    .date-card-header .header-right {
        justify-self: center;
    }

    .date-card-top {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .main-date-display {
        gap: 18px;
    }

    .main-date-number {
        font-size: 72px;
    }

    .date-card-container .nav-arrow {
        font-size: 42px;
    }

    .date-card-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .solar-term-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Fortune detail section (standalone include) */
.fortune-detail-pro {
    border: 1px solid #d9dde3;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.fortune-detail-pro__head {
    background: #b03a2e;
    padding: 10px 16px;
}

.fortune-detail-pro__head h2 {
    color: #fff;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.fortune-detail-pro__table {
    width: 100%;
    margin: 0;
}

.fortune-detail-pro__table th,
.fortune-detail-pro__table td {
    border: 1px solid #dee3ea;
    padding: 12px 14px;
    vertical-align: top;
}

.fortune-detail-pro__table th {
    width: 24%;
    min-width: 210px;
    color: #d06026;
    font-weight: 700;
    background: #fbfcfd;
}

.fortune-table .label-cell,
.fortune-detail-pro__table .label-cell {
    width: 240px;
    min-width: 220px;
    max-width: 260px;
    background: #fafafa;
    vertical-align: top;
    padding: 14px 12px;
}

.fortune-table .label-title,
.fortune-detail-pro__table .label-title {
    font-size: 16px;
    font-weight: 700;
    color: #d35400;
    margin-bottom: 6px;
    line-height: 1.3;
}

.fortune-table .label-sub,
.fortune-detail-pro__table .label-sub {
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.fortune-table .label-desc,
.fortune-detail-pro__table .label-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    word-break: normal;
    overflow-wrap: break-word;
}

.fortune-rich-cell {
    background: #fff;
}

.fortune-analysis {
    margin: 0 0 9px;
    padding: 7px 10px;
    border-left: 3px solid #e4b383;
    background: #fff9f3;
    color: #4a4f57;
    font-size: 14px;
    line-height: 1.55;
}

.fortune-kpi-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.fortune-kpi {
    display: inline-flex;
    align-items: center;
    background: #f6f8fb;
    border: 1px solid #dce3ec;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    color: #485566;
    line-height: 1.4;
}

.fortune-compact-list {
    margin: 0 0 8px 18px;
    padding: 0;
}

.fortune-compact-list li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.fortune-detail-pro__table td {
    color: #2f3b4a;
    font-size: 15.5px;
    line-height: 1.62;
}

.fortune-detail-pro__table td p {
    margin: 0 0 8px;
}

.fortune-detail-pro__table td p:last-child {
    margin-bottom: 0;
}

.fortune-detail-pro__table td ul {
    margin: 0 0 8px 18px;
    padding: 0;
}

.fortune-detail-pro__table td li {
    margin-bottom: 6px;
}

.fortune-table .fortune-poem,
.fortune-detail-pro__table .fortune-poem {
    display: block;
    color: #444;
    font-style: italic;
    line-height: 1.8;
    white-space: normal;
}

.fortune-detail-pro__table td strong,
.fortune-detail-pro__table th strong,
.fortune-table td strong,
.fortune-table th strong {
    color: #c0392b !important;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .fortune-detail-pro__head h2 {
        font-size: 18px;
    }

    .fortune-detail-pro__table th,
    .fortune-detail-pro__table td {
        display: block !important;
        width: 100% !important;
        min-width: unset;
    }

    .fortune-detail-pro__table,
    .fortune-detail-pro__table tbody,
    .fortune-detail-pro__table tr {
        display: block !important;
        width: 100% !important;
    }

    .fortune-detail-pro__table th {
        border-bottom: 0;
        background: #f5f7fb;
        padding-bottom: 8px;
    }

    .fortune-table .label-cell,
    .fortune-detail-pro__table .label-cell {
        width: 100% !important;
        max-width: none;
        min-width: unset;
        padding: 12px 12px 10px;
        border-bottom: 0;
    }

    .fortune-table .label-sub,
    .fortune-detail-pro__table .label-sub {
        font-size: 11.5px;
        letter-spacing: 0.2px;
    }

    .fortune-table .label-title,
    .fortune-detail-pro__table .label-title {
        font-size: 15px;
    }

    .fortune-table .label-desc,
    .fortune-detail-pro__table .label-desc {
        font-size: 12.5px;
    }

    .fortune-analysis {
        font-size: 13px;
        padding: 7px 9px;
    }

    .fortune-kpi {
        font-size: 12.5px;
        padding: 4px 9px;
    }

    .fortune-detail-pro__table td {
        border-top: 0;
        padding-top: 8px;
        font-size: 15px;
    }

    .fortune-table .fortune-rich-cell,
    .fortune-detail-pro__table .fortune-rich-cell {
        border-top: 0;
        padding-top: 8px;
        padding-bottom: 12px;
    }
}

/* Shared breadcrumb style across pages */
.site-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

ol.site-breadcrumb {
    list-style: none;
}

ol.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: none;
}

ol.site-breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}

ol.site-breadcrumb .breadcrumb-item {
    display: inline-flex;
}

.site-breadcrumb a,
.site-breadcrumb span,
ol.site-breadcrumb .breadcrumb-item a,
ol.site-breadcrumb .breadcrumb-item.active {
    display: inline-block;
    background: #fff;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #cfd7e0;
    line-height: 1.25;
    color: #1f2f47;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
}

.site-breadcrumb span.active,
ol.site-breadcrumb .breadcrumb-item.active {
    background: #2f7d32;
    border-color: #2f7d32;
    color: #fff;
    box-shadow: 0 4px 10px rgba(47, 125, 50, 0.22);
}

@media (max-width: 767.98px) {
    .site-breadcrumb {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .site-breadcrumb a,
    .site-breadcrumb span,
    ol.site-breadcrumb .breadcrumb-item a,
    ol.site-breadcrumb .breadcrumb-item.active {
        font-size: 13px;
        padding: 7px 11px;
        clip-path: none;
    }
}

/* Year page (calendar-year.php) */
.year-page-main {
    padding: 16px 0 34px;
}

.year-hero {
    text-align: center;
    margin-bottom: 18px;
}

.year-hero h1 {
    margin: 0;
    font-size: 44px;
    font-weight: 800;
    color: #1d2f4a;
}

.year-hero-badge {
    margin-top: 10px;
    display: inline-block;
    background: linear-gradient(90deg, #0a8f1f, #06740f);
    color: #fff;
    border-radius: 999px;
    padding: 6px 18px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(9, 101, 30, 0.24);
}

.year-hero-badge:hover {
    color: #fff;
}

.year-description-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    padding: 18px;
    margin-bottom: 14px;
}

.year-description-card h2 {
    margin: 0 0 10px;
    text-align: center;
    color: #2f7d32;
    font-size: 30px;
    font-weight: 800;
}

.year-description-card p {
    margin: 0;
    color: #334155;
    line-height: 1.72;
    font-size: 18px;
    background: #f6f8fb;
    border: 1px solid #dbe3ec;
    border-left: 4px solid #2f7d32;
    border-radius: 10px;
    padding: 12px 14px;
}

.year-desc-box {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 14px;
    border-left: 4px solid #2e7d32;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.year-desc-box h2 {
    text-align: center;
    color: #2e7d32;
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
}

.year-desc-box p {
    line-height: 1.7;
    margin-bottom: 10px;
    color: #555;
    font-size: 17px;
}

.year-desc-box p:last-child {
    margin-bottom: 0;
}

.year-search-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.year-search-icon {
    font-size: 18px;
    line-height: 1;
}

.year-search-tag {
    display: inline-flex;
    align-items: center;
    background: #6f747a;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
    padding: 6px 11px;
}

.year-search-tag:hover {
    background: #5e6369;
    color: #fff;
}

.year-breadcrumb {
    margin-bottom: 10px;
}

.year-main-calendar {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #d5ddea;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    padding: 14px;
    margin-bottom: 18px;
}

.year-main-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.year-main-head h2 {
    margin: 0;
    color: #2f7d32;
    font-size: 34px;
    font-weight: 800;
}

.year-main-nav {
    display: flex;
    gap: 8px;
}

.year-main-nav a {
    border: 1px solid #adc5b0;
    border-radius: 8px;
    padding: 7px 12px;
    background: #fff;
    color: #2a7b2f;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.year-main-nav a:hover {
    background: #f2faf3;
}

.year-month-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.year-month-card {
    border: 1px solid #dbe2eb;
    border-radius: 16px;
    background: #f8fafc;
    padding: 14px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.year-month-card h3 {
    margin: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
}

.year-month-card h3 a {
    color: #2f7d32;
    text-decoration: none;
}

.year-month-title-link {
    display: inline-block;
    padding-bottom: 8px;
    width: 100%;
    border-bottom: 2px solid #2f9a47;
}

.year-mini-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-top: 10px;
}

.year-mini-table th {
    text-align: center;
    font-size: 12px;
    color: #2f7d32;
    font-weight: 700;
    padding: 8px 0;
    border: 0;
    background: #eef2f6;
    border-radius: 6px;
}

.year-mini-table td {
    border: 1px solid #e8edf3;
    height: 72px;
    padding: 0;
    vertical-align: top;
    background: #fff;
}

.mini-day a {
    display: block;
    text-decoration: none;
    color: #263445;
    position: relative;
    padding: 4px 5px;
    min-height: 70px;
}

.mini-day a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #c8ced6;
}

.mini-day.mini-dot-good a::after {
    background: #ff7b1e;
}

.mini-day.mini-dot-bad a::after {
    background: #07803e;
}

.mini-day.mini-dot-good {
    background: #f6ebe3;
}

.mini-day.mini-dot-bad {
    background: #dfece6;
}

.mini-day.is-today {
    box-shadow: inset 0 0 0 2px #2f7d32;
    background: #edf8ef;
}

.mini-day.is-other-month {
    opacity: 0.5;
    background: #f9fbfd;
}

.mini-solar {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.mini-lunar {
    display: block;
    font-size: 12px;
    color: #4b5a70;
    margin-top: 4px;
    line-height: 1.1;
}

.mini-can-chi {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #5f6f84;
    line-height: 1.2;
}

.year-other-years-section {
    margin-bottom: 18px;
    background: #06730d;
    border-radius: 20px;
    padding: 16px;
    color: #fff;
}

.year-other-years-section h3 {
    margin: 0;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
}

.year-other-years-section > p {
    text-align: center;
    margin: 4px 0 12px;
    color: #dff5e4;
    font-size: 16px;
}

.year-other-years-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.year-tile {
    position: relative;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #1f7b2d;
}

.year-tile-number {
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
}

.year-tile-label {
    font-size: 12px;
    font-weight: 700;
    color: #3d4b5f;
}

.year-tile.active {
    background: #0b7e19;
    color: #fff;
}

.year-tile.active .year-tile-label {
    color: #fff;
}

.year-active-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ff7c1e;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 6px;
}

.year-holidays-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.year-holiday-card {
    background: #f7f9fc;
    border-radius: 14px;
    padding: 12px;
}

.solar-holiday-card {
    border-left: 3px solid #ff7b1e;
}

.lunar-holiday-card {
    border-left: 3px solid #0b8a2f;
}

.year-holiday-card h4 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #2c3a4f;
}

.year-holiday-list {
    display: grid;
    gap: 8px;
}

.year-holiday-item {
    background: #fff;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 14px;
    color: #37485d;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.holiday-icon {
    color: #3f9f4d;
    font-weight: 700;
}

.year-historical-events-section {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #d8e0ea;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    padding: 14px;
    margin-bottom: 16px;
}

.year-historical-events-section h3 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: #2f7d32;
}

.year-historical-events-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.year-historical-item {
    display: flex;
    gap: 8px;
    background: #f7f9fc;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    padding: 8px 10px;
}

.historical-icon {
    color: #2f7d32;
    font-weight: 700;
    line-height: 1.3;
}

.year-historical-item strong {
    display: block;
    font-size: 13px;
    color: #1f2f47;
}

.year-historical-item p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #425268;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .year-hero h1 {
        font-size: 34px;
    }

    .year-hero-badge {
        font-size: 18px;
    }

    .year-description-card h2 {
        font-size: 24px;
    }

    .year-description-card p {
        font-size: 15px;
    }

    .year-desc-box h2 {
        font-size: 24px;
    }

    .year-desc-box p {
        font-size: 15px;
    }

    .year-search-tag {
        font-size: 13px;
        padding: 6px 9px;
    }

    .year-main-head h2 {
        font-size: 28px;
    }

    .year-other-years-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .year-historical-events-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .year-main-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .year-month-grid,
    .year-holidays-grid {
        grid-template-columns: 1fr;
    }

    .year-month-card h3 {
        font-size: 22px;
    }

    .year-mini-table th {
        font-size: 11px;
        padding: 6px 0;
    }

    .year-mini-table td {
        height: 58px;
    }

    .mini-day a {
        min-height: 56px;
    }

    .mini-solar {
        font-size: 21px;
    }

    .mini-lunar {
        font-size: 10px;
    }

    .mini-can-chi {
        font-size: 9px;
    }

    .year-other-years-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .year-other-years-section h3 {
        font-size: 24px;
    }

    .year-holiday-card h4 {
        font-size: 18px;
    }

    .year-historical-events-section h3 {
        font-size: 21px;
    }
}

/* Day page */
.day-page-main {
    padding-top: 12px;
}

.day-page .info-card {
    margin-bottom: 10px;
}

.day-hero {
    margin: 4px 0 16px;
}

.day-hero h1 {
    margin: 0;
    font-size: 50px;
    font-weight: 800;
    color: #1f2f47;
}

.day-hero-badge {
    margin-top: 10px;
    display: inline-block;
    background: linear-gradient(90deg, #0a8f1f, #06740f);
    color: #fff;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(9, 101, 30, 0.24);
}

.day-breadcrumb-tabs {
    margin-bottom: 14px;
}

.day-page .date-card-container {
    margin-top: 0;
    margin-bottom: 18px;
}

.calendar-nav-btn.is-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    font-size: 30px;
    line-height: 1;
    padding: 0;
    text-decoration: none;
}

.calendar-day.is-selected-day {
    background: #fff3cd;
    box-shadow: inset 0 0 0 2px #f1c40f;
}

.calendar-day.is-selected-day .calendar-day-link {
    background: transparent;
}

.calendar-day.is-selected-day .solar-day {
    color: #2b2b2b;
}

@media (max-width: 991.98px) {
    .day-hero h1 {
        font-size: 36px;
    }

    .day-hero-badge {
        font-size: 18px;
    }
}

@media (max-width: 767.98px) {
    .day-hero h1 {
        font-size: 28px;
    }

    .day-hero-badge {
        font-size: 14px;
        padding: 6px 12px;
    }

    .calendar-nav-btn.is-circle {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
}

/* Utility menu + pages */
.utility-dropdown-menu {
    min-width: 220px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
}

.utility-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.utility-dropdown-menu .dropdown-item:hover {
    background: #f3f7f2;
    color: #1f7a1f;
}

.utility-dropdown-menu .dropdown-item.active {
    background: #e9f6ea;
    color: #1f7a1f;
}
