/* === PREMIUM REDESIGN - Lịch Vạn Niên Detail Page === */
/* Version: 3.0 — Modern, clean, premium aesthetic */

/* === GLOBAL === */
.section {
    display: block;
}

.detail-container,
.detail-container * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* === BODY === */
body:has(.detail-container),
html body {
    padding: 0;
    margin: 0;
    background: #f0f2f5;
    text-align: center;
}

/* === UTILITIES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === BREADCRUMB === */
.detail-breadcrumb {
    padding: 14px 24px;
    background: #FFFFFF;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    border-radius: 12px;
    font-size: 13px;
    max-width: 920px;
    margin: 0 auto 12px;
    color: #666;
}

.detail-breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.detail-breadcrumb a:hover {
    color: #174ea6;
    text-decoration: underline;
}

.detail-breadcrumb .breadcrumb-separator {
    margin: 0 8px;
    color: #bbb;
}

.detail-breadcrumb .breadcrumb-current {
    color: #333;
    font-weight: 600;
}

/* === PAGE WRAPPER === */
.detail-page-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 20px 16px;
    padding-top: 120px;
    padding-bottom: 100px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* === CONTAINER === */
.detail-container {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    border: none;
    text-align: left;
    color: #1a1a1a;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-container>* {
    text-align: left;
}

/* === HEADER WRAPPER === */
.detail-header-wrapper {
    flex: 0 0 auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* === HEADER SECTION === */
.header-section {
    text-align: center;
    padding: 48px 32px 40px;
    position: relative;
    background: linear-gradient(160deg, #fff9e6 0%, #fff5cc 25%, #fffef5 55%, #f0faf0 100%);
    width: 100%;
    border: none;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c41200 0%, #ffd700 50%, #c41200 100%);
}

.header-section::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

/* Navigation Arrows */
.nav-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: rgba(0,0,0,0.25);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
}

.nav-arrows.prev {
    left: 16px;
}

.nav-arrows.next {
    right: 16px;
}

.nav-arrows:hover {
    color: #c41200;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transform: translateY(-50%) scale(1.08);
}

/* Month Year */
.month-year {
    font-size: 15px;
    font-weight: 800;
    color: #c41200;
    margin: 0 auto 16px auto;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: inline-block;
    padding: 8px 24px;
    background: #FFFFFF;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    border-radius: 100px;
    backdrop-filter: blur(4px);
}

/* Day Number */
.day-number {
    font-size: 200px;
    font-weight: 900;
    color: #c41200;
    line-height: 0.85;
    margin: 20px auto;
    text-shadow: 0 4px 16px rgba(196,18,0,0.15);
    display: block;
    letter-spacing: -8px;
}

/* Day of Week */
.day-of-week {
    font-size: 20px;
    font-weight: 700;
    color: #1a73e8;
    margin: 0 auto 20px auto;
    display: inline-block;
    padding: 6px 24px;
    background: rgba(26,115,232,0.06);
    border-radius: 100px;
    letter-spacing: 1px;
}

/* Special Day */
.special-day {
    color: #c41200;
    margin: 16px 0;
    font-size: 16px;
    font-weight: 700;
    background: #FEF3C7;
    padding: 10px 24px;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.special-day .star {
    color: #d97706;
    margin-right: 4px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
}

/* Quote */
.quote {
    font-style: italic;
    color: #5a3e1b;
    margin: 32px auto 0;
    font-size: 14px;
    font-weight: 500;
    padding: 24px 28px;
    line-height: 2;
    border: none;
    background: #FFFFFF;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    border-radius: 12px;
    position: relative;
    max-width: 55%;
}

.quote::before,
.quote::after {
    font-size: 60px;
    font-family: Georgia, serif;
    line-height: 1;
    position: absolute;
    opacity: 0.12;
}

.quote::before {
    content: '\201C';
    top: 4px;
    left: 12px;
    color: #c41200;
}

.quote::after {
    content: '\201D';
    bottom: -12px;
    right: 16px;
    color: #ffd700;
}

.quote-author {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #1a73e8;
    text-align: right;
    font-style: normal;
    letter-spacing: 1px;
    padding-right: 8px;
    padding-top: 10px;
    border: none;
}

.quote-author::before {
    content: '\2014';
    margin-right: 6px;
    color: #ffd700;
}

/* === BOTTOM SECTION === */
.bottom-section {
    display: flex;
    background: linear-gradient(160deg, #fff9e6 0%, #fffef5 50%, #f0faf0 100%);
    border: none;
    gap: 12px;
    padding: 16px;
}

.lunar-date {
    flex: 0 0 200px;
    text-align: center;
    padding: 32px 20px;
    background: #FFFFFF;
    position: relative;
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
}

.lunar-number {
    font-size: 100px;
    font-weight: 900;
    color: #c41200;
    line-height: 1;
    display: block;
}

.lunar-month {
    font-size: 16px;
    color: #333;
    margin-top: 8px;
    font-weight: 700;
}

.zodiac-icon {
    position: absolute;
    left: 14px;
    top: 14px;
    font-size: 32px;
    opacity: 0.6;
}

/* Info Columns */
.info-columns {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-column {
    padding: 28px 24px;
    border: none;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
}

.info-column:last-child {
    border: none;
}

.info-column h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 800;
    color: #1a73e8;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.info-column p {
    margin: 8px 0;
    line-height: 1.8;
    color: #333;
    font-size: 14px;
}

.info-column strong {
    font-weight: 700;
}

/* === NAVIGATION BAR === */
.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #FAF6F0;
    width: 100%;
    box-sizing: border-box;
    border: none;
}

.nav-bar a {
    padding: 10px 18px;
    text-decoration: none;
    color: #444;
    background: #FFFFFF;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    white-space: nowrap;
    text-align: center;
    border: none;
}

.nav-bar a .nav-label {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 3px;
}

.nav-bar a .nav-date {
    font-size: 11px;
    color: #888;
    font-weight: 500;
}

.nav-bar a.nav-back {
    margin-right: auto;
    color: #666;
    font-size: 13px;
}

.nav-bar a.nav-back:hover {
    color: #1a73e8;
    background: #e8f0fe;
}

.nav-bar a.active,
.nav-bar a:hover {
    background: #1a73e8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26,115,232,0.25);
    border: none;
}

.nav-bar a:hover {
    transform: translateY(-1px);
}

/* === DETAIL SECTIONS === */
.detail-sections {
    padding: 24px;
    display: block;
    visibility: visible;
    opacity: 1;
    overflow: visible;
    margin-top: 0;
    flex: 1;
}

.section {
    margin: 0 0 16px 0;
    padding: 20px 24px;
    background: #FFFFFF;
    border: none;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
}

.section:last-child {
    border: none;
}

.section h3,
.section h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 800;
    padding-bottom: 12px;
    border: none;
    display: inline-block;
}

.section h5 {
    font-size: 15px;
    font-weight: 700;
    color: #444;
    margin: 24px 0 12px 0;
    padding: 8px 14px;
    background: #FAF6F0;
    border-radius: 8px;
    border: none;
}

.section p {
    margin: 10px 0;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}

.section strong {
    color: #1a1a1a;
    font-weight: 700;
}

.section em {
    font-weight: 700;
    color: #c41200;
}

/* === TABLES === */
table,
.comparison-table,
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin: 16px 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    background: #FAF6F0;
    padding: 8px;
}

table th,
.comparison-table th,
.info-table th {
    background: #F7F4EF;
    color: #444;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    border: none;
    font-size: 14px;
    letter-spacing: 0.01em;
}

table td,
.comparison-table td,
.info-table td {
    padding: 12px 16px;
    border: none;
    background: #FFFFFF;
    font-size: 14px;
    vertical-align: top;
}

table tr:last-child td,
.info-table tr:last-child td {
    border: none;
}

table tr:hover td,
.info-table tr:hover td {
    background: #FEF3C7;
}

/* === HIGHLIGHT BOX === */
.highlight-box {
    border: none;
    padding: 20px;
    margin: 16px 0;
    background: #FAF6F0;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
}

.highlight-box h5 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 800;
    color: #c41200;
    padding-bottom: 8px;
}

/* === COLOR CLASSES === */
.color-canchi {
    color: #1a73e8;
    font-weight: 700;
}

.color-am,
.color-napam {
    color: #8b4513;
    font-weight: 700;
}

.color-good {
    color: #0d7c3f;
    font-weight: 700;
}

.color-bad {
    color: #d93025;
    font-weight: 700;
}

.color-gray {
    color: #888;
}

/* Score Colors */
.color-score-excellent {
    color: #0d7c3f;
    font-weight: bold;
    font-size: 18px;
}

.color-score-good {
    color: #1a73e8;
    font-weight: bold;
    font-size: 18px;
}

.color-score-average {
    color: #e8710a;
    font-weight: bold;
    font-size: 18px;
}

.color-score-bad {
    color: #d93025;
    font-weight: bold;
    font-size: 18px;
}

/* Text Sizes */
.text-large {
    font-size: 15px;
    font-weight: 700;
}

.text-xlarge {
    font-size: 16px;
    font-weight: 700;
}

.text-bold {
    font-weight: 700;
}

/* === BOX STYLES === */
.box-highlight {
    padding: 20px;
    background: #FEF3C7;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    line-height: 1.9;
    border-radius: 12px;
}

.box-blue {
    padding: 20px;
    background: #FAF6F0;
    line-height: 1.9;
    border-radius: 12px;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
}

.box-brown {
    padding: 20px;
    background: #F7F4EF;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    line-height: 1.9;
    border-radius: 12px;
}

.box-text {
    padding: 20px;
    background: #FEF3C7;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    line-height: 1.9;
    font-size: 15px;
    border-radius: 12px;
}

.box-conclusion {
    padding: 28px 32px;
    background: #FAF6F0;
    border: none;
    border-radius: 12px;
    line-height: 2.1;
    font-size: 15px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    margin: 20px 0;
    text-align: justify;
    letter-spacing: 0.01em;
    position: relative;
}

.box-conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffd700 0%, #c41200 50%, #ffd700 100%);
    border-radius: 12px 12px 0 0;
}

.box-detail {
    line-height: 1.8;
    padding: 20px;
    font-size: 15px;
}

.box-detail p {
    margin: 0.8em 0;
    padding: 0;
    line-height: 1.8;
}

.box-detail p:first-child {
    margin-top: 0;
}

.box-detail p:last-child {
    margin-bottom: 0;
}

/* Events Boxes */
.box-events-vn {
    padding: 20px;
    background: #FAF6F0;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    border-radius: 12px;
    margin-bottom: 12px;
}

.box-events-world {
    padding: 20px;
    background: #F7F4EF;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    border-radius: 12px;
    margin-bottom: 12px;
}

.box-events-notable {
    padding: 20px;
    background: #FEF3C7;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    border-radius: 12px;
    margin-bottom: 12px;
}

.events-title-vn {
    color: #1a73e8;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border: none;
}

.events-title-world {
    color: #444;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border: none;
}

.events-title-notable {
    color: #e8710a;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border: none;
}

.events-list {
    margin: 0;
    padding-left: 24px;
    list-style-type: disc;
}

.events-item {
    margin: 8px 0;
    line-height: 1.8;
    font-size: 14px;
    color: #444;
}

/* === SUMMARY BOX === */
.summary-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    margin: 20px 0;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    position: relative;
    overflow: hidden;
    border: none;
}

.summary-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8 0%, #ffd700 40%, #c41200 70%, #1a73e8 100%);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
    border: none;
}

.summary-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a73e8;
    margin: 0;
    line-height: 1.3;
}

/* Score Badge */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    position: relative;
    overflow: hidden;
    border: none;
}

.score-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

.score-badge.color-score-excellent {
    background: linear-gradient(135deg, #34a853 0%, #5cb85c 100%);
    color: #ffffff;
    border: none;
}

.score-badge.color-score-good {
    background: linear-gradient(135deg, #1a73e8 0%, #4a9af5 100%);
    color: #ffffff;
    border: none;
}

.score-badge.color-score-average {
    background: linear-gradient(135deg, #e8710a 0%, #f5a623 100%);
    color: #ffffff;
    border: none;
}

.score-badge.color-score-bad {
    background: linear-gradient(135deg, #d93025 0%, #ea4335 100%);
    color: #ffffff;
    border: none;
}

.score-icon {
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.score-number {
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.score-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 140px;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.summary-item {
    background: #FAF6F0;
    padding: 20px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    transition: all 0.2s ease;
}

.summary-item:hover {
    background: #FEF3C7;
    border: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.summary-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* CTA Compact */
.cta-compact {
    text-align: center;
    padding: 24px;
    background: #FAF6F0;
    border-radius: 12px;
    font-size: 15px;
    margin-top: 24px;
    border: none;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    position: relative;
}

.cta-compact::before {
    display: none;
}

.cta-compact .cta-brand {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.cta-compact .cta-hotline {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-top: 8px;
    color: #1a73e8;
}

/* Intro Box */
.intro-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 28px;
    margin: 16px 0;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    border: none;
}

.intro-title {
    font-size: 20px;
    font-weight: 800;
    color: #c41200;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border: none;
}

.intro-text {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin: 12px 0;
    text-align: justify;
}

/* === LISTS === */
.list-style {
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

.list-item {
    margin: 6px 0;
    padding: 4px 0 4px 20px;
    line-height: 1.8;
    position: relative;
}

.list-item:empty {
    display: none;
}

.good-list,
.bad-list {
    margin: 8px 0;
    padding-left: 20px;
}

.good-list li {
    margin: 6px 0;
    color: #0d7c3f;
    line-height: 1.7;
}

.bad-list li {
    margin: 6px 0;
    color: #d93025;
    line-height: 1.7;
}

/* Utility Classes */
.line-height-normal {
    line-height: 1.8;
}

.margin-10 {
    margin: 10px 0;
}

.margin-15 {
    margin: 15px 0;
}

.padding-15 {
    padding: 15px;
}

.font-16 {
    font-size: 16px;
}

.font-18 {
    font-size: 18px;
}

.table-th-top {
    vertical-align: top;
    padding-top: 15px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .detail-page-wrapper {
        padding: 8px 4px;
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .detail-container {
        border-radius: 12px;
    }

    .header-section {
        padding: 28px 16px 24px;
    }

    .day-number {
        font-size: 100px;
        letter-spacing: -4px;
    }

    .lunar-number {
        font-size: 60px;
    }

    .month-year {
        font-size: 12px;
        padding: 6px 16px;
        letter-spacing: 2px;
    }

    .day-of-week {
        font-size: 15px;
    }

    .quote {
        font-size: 12px;
        padding: 16px;
        line-height: 1.7;
        margin: 16px auto 0;
        max-width: 90%;
    }

    .nav-arrows {
        display: none;
    }

    .bottom-section {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lunar-date {
        flex: 0 0 130px;
        padding: 16px 10px;
    }

    .info-columns {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .info-column {
        padding: 14px 10px;
        font-size: 0.85em;
    }

    .summary-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .summary-title {
        font-size: 18px;
    }

    .summary-box {
        padding: 20px 16px;
    }

    .score-badge {
        font-size: 14px;
        padding: 10px 20px;
        min-width: 160px;
    }

    .score-number {
        font-size: 28px;
    }

    .detail-sections {
        padding: 16px 12px;
    }

    .section {
        padding: 16px;
    }

    .section h3,
    .section h4 {
        font-size: 16px;
    }

    .box-conclusion {
        padding: 20px;
        font-size: 14px;
        line-height: 2;
    }

    table,
    .comparison-table,
    .info-table {
        display: table;
        overflow-x: auto;
    }

    table th,
    .info-table th,
    table td,
    .info-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .cta-compact {
        padding: 16px;
    }

    .summary-item {
        padding: 14px;
    }
}

/* === INTERNAL LINKS === */
a.internal-link {
    color: #e8710a !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-style: normal !important;
    transition: all 0.2s ease;
    border: none;
    padding-bottom: 1px;
}

a.internal-link:hover {
    color: #c76000 !important;
    text-decoration: none !important;
    border: none;
}

/* === RELATED DAYS SECTION === */
.related-days-section {
    max-width: 920px;
    margin: 16px auto;
    padding: 20px 24px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.045);
    border: none;
}

.related-days-section h3 {
    text-align: center;
    color: #1a73e8;
    font-size: 15px;
    margin: 0 0 16px 0;
    font-weight: 700;
    border: none;
    display: block;
}

.related-days-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.related-days-column h4 {
    color: #444;
    font-size: 13px;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border: none;
    text-align: center;
    display: block;
}

.related-days-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.related-days-list li {
    margin: 0;
    flex: 1 1 45%;
}

.related-days-list a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 12px;
    padding: 8px 12px;
    display: block;
    background: #FAF6F0;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    border: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.related-days-list a:hover {
    background: #1a73e8;
    color: #fff;
    border: none;
}

/* Tablet */
@media (max-width: 768px) {
    .related-days-section {
        margin: 12px 8px;
        padding: 16px;
    }

    .related-days-list li {
        flex: 1 1 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .related-days-section h3 {
        font-size: 14px;
    }

    .related-days-list a {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* === DETAIL NAVIGATION FOOTER === */
.detail-navigation-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 32px auto 50px;
    padding: 0 16px;
    max-width: 500px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 150px;
    font-size: 15px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    color: #fff !important;
}

.btn-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.btn-home {
    background: linear-gradient(135deg, #1a73e8 0%, #4a9af5 100%);
}

.btn-home:hover {
    background: linear-gradient(135deg, #174ea6 0%, #1a73e8 100%);
}

.btn-calendar {
    background: linear-gradient(135deg, #c41200 0%, #ea4335 100%);
}

.btn-calendar:hover {
    background: linear-gradient(135deg, #a11000 0%, #c41200 100%);
}

@media (max-width: 480px) {
    .detail-navigation-footer {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 30px;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 14px;
        min-width: unset;
        flex: 1;
    }
}

/* === ZODIAC ICONS SVG === */
.zodiac-svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    color: #c41200;
    display: inline-block;
    transition: transform 0.3s ease;
}

.zodiac-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.lunar-date:hover .zodiac-svg {
    transform: scale(1.15) rotate(5deg);
}

/* === UNIFIED LAYOUT SHELL & ZERO HORIZONTAL OVERFLOW === */
html,
body {
    max-width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}

.detail-layout-shell,
.detail-layout-shell * {
    box-sizing: border-box;
}

.detail-layout-shell {
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 12px 40px;
    overflow-x: clip;
}

.detail-layout-shell > .detail-container,
.detail-layout-shell > .related-days-section,
.detail-layout-shell > .insight-section,
.detail-layout-shell > #hoi-ai {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 16px !important;
    text-align: left;
}

.detail-layout-shell > .related-days-section,
.detail-layout-shell > .insight-section,
.detail-layout-shell > #hoi-ai {
    margin-top: 20px !important;
}

.detail-layout-shell details {
    border-radius: 14px;
    overflow: hidden;
}

.detail-layout-shell details > summary {
    border-radius: 0 !important;
}

@media (max-width: 768px) {
    .detail-layout-shell {
        padding: 10px 8px 32px;
    }

    .detail-layout-shell > .detail-container,
    .detail-layout-shell > .related-days-section,
    .detail-layout-shell > .insight-section,
    .detail-layout-shell > #hoi-ai {
        border-radius: 14px !important;
    }

    .nav-bar {
        flex-wrap: wrap;
    }

    .nav-bar a {
        min-width: 0;
        flex: 1 1 auto;
    }
}
