
:root {
    --text-main: #2c3e50;
    --text-muted: #596b7d;
    --bg-color: #faf8f5;
    --bg-secondary: #ffffff;
    --accent-orange: #d35400;
    --accent-teal: #16a085;
    --border-color: #e0dcd3;
    
    --font-serif: 'Lora', serif;
    --font-sans: 'Inter', sans-serif;
    --transition-speed: 0.4s;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-serif);
    color: var(--text-main);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .ui-text {
    font-family: var(--font-sans);
}

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
}
.progress-bar {
    height: 100%;
    background: var(--accent-orange);
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Fullscreen Hero Cover */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    background-image: url('https://static01.nyt.com/images/2026/04/09/multimedia/09things-to-do-hoi-an-hqgt/09things-to-do-hoi-an-hqgt-superJumbo-v2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}
.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-style: italic;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.5);
}

/* Disclaimer Box */
.author-box {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-orange);
    padding: 25px 30px;
    margin: -60px auto 50px;
    max-width: 800px;
    width: 90%;
    font-style: italic;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-radius: 4px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
}

.wide-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Intro Text */
.intro-container {
    margin-bottom: 60px;
}
.intro-p {
    font-size: 1.25rem;
    margin-bottom: 25px;
    color: #34495e;
    transition: color 0.3s ease, transform 0.3s ease;
}
/* Interactive drop-cap & hover for intro */
.intro-p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--accent-orange);
    float: left;
    margin-right: 8px;
    line-height: 1;
    font-family: var(--font-sans);
}
.intro-p:hover {
    color: #000;
}

a {
    color: var(--accent-teal);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent-teal);
    transition: all 0.3s ease;
}
a:hover {
    color: var(--accent-orange);
    border-bottom: 1px solid var(--accent-orange);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headings */
h2.section-hed {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--accent-orange);
    text-align: center;
    margin: 80px 0 40px;
    position: relative;
}
h2.section-hed::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-teal);
    margin: 15px auto 0;
}

/* Interactive Accordion - FIX: Sử dụng Grid để không bị cắt chữ */
.accordion-wrapper {
    margin-bottom: 50px;
}
.accordion-item {
    margin-bottom: 15px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease;
}
.accordion-item:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.06);
}
.accordion-header {
    background-color: transparent;
    color: var(--text-main);
    cursor: pointer;
    padding: 20px 25px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header .icon {
    transition: transform 0.4s ease;
    font-size: 1.5rem;
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(22, 160, 133, 0.1);
}
.accordion-header.active .icon {
    transform: rotate(180deg);
    background: var(--accent-orange);
    color: white;
}

/* Trick CSS Grid để accordion mượt và không giới hạn chiều cao */
.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}
.accordion-content.open {
    grid-template-rows: 1fr;
}
.accordion-inner {
    overflow: hidden; /* Quan trọng để grid hoạt động */
}
.accordion-inner-pad {
    padding: 0 25px 25px 25px;
}

.rec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rec-list li {
    margin-bottom: 20px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1rem;
}
.rec-list li:last-child {
    margin-bottom: 0;
}
.rec-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Itinerary Timeline - Layout du lịch hiện đại */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.day-hed {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    color: var(--bg-color);
    background: var(--accent-teal);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 30px;
    margin: 60px auto 40px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 4px 10px rgba(22, 160, 133, 0.3);
}

.itinerary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.itinerary-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-orange);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(211, 84, 0, 0.2);
}

.itinerary-item:nth-child(even) {
    flex-direction: row-reverse;
}
.itinerary-content {
    width: 45%;
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}
.itinerary-content:hover {
    transform: translateY(-5px);
}
.itinerary-media {
    width: 45%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.itinerary-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.itinerary-media:hover img {
    transform: scale(1.08); /* Interactive Image Zoom on Hover */
}
.time {
    display: inline-block;
    font-family: var(--font-sans);
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.item-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.3;
}
.item-desc {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
}

.full-width-image {
    margin: 80px auto;
    position: relative;
}
.full-width-image figure {
    margin: 0;
    position: relative;
    overflow: hidden;
}
.full-width-image img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}
.full-width-image:hover img {
    transform: scale(1.04);
}
.caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-align: center;
}

footer {
    text-align: center; 
    padding: 40px 20px; 
    font-family: var(--font-sans); 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    border-top: 1px solid var(--border-color); 
    margin-top: 80px;
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    h2.section-hed { font-size: 1.8rem; }
    
    .timeline-container::before {
        left: 20px;
    }
    .day-hed {
        left: 20px;
        transform: translateX(0);
        margin-left: 0;
    }
    .itinerary-item::after {
        left: 20px;
    }
    .itinerary-item, .itinerary-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    .itinerary-content, .itinerary-media {
        width: 100%;
    }
    .itinerary-media {
        order: -1;
        margin-bottom: 20px;
    }
}
