/* =========================================
   1. CÀI ĐẶT CƠ BẢN (RESET)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    padding-top: 80px;
}





/* =========================================
   4. PHẦN HIỂN THỊ BANNER & NỘI DUNG DƯỚI
   ========================================= */
.hero-banner {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease;
    object-position: center 90%;
}

.slide.active {
    opacity: 1;
}

.intro-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.intro-section h1 {
    color: #c89c3a;
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

.intro-section p.subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

.intro-section p.description {
    text-align: justify;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* DESTINATIONS */
.destinations {
    padding: 70px 5%;
    text-align: center;
    background: #f8f8f8;
}

.destinations h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.destination-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.destination-card:hover {
    transform: translateY(-8px);
}

.destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-info {
    padding: 15px;
}

.destination-info h3 {
    margin-bottom: 10px;
    color: #c0392b;
}

/* ACTIVITIES */
.activities {
    padding: 70px 5%;
    text-align: center;
    background: #f8f8f8;
}

.activities h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.activity-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
}

.activity-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.activity-item h3 {
    margin: 15px 0;
    font-size: 18px;
    transition: color 0.3s;
}

.activity-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.activity-item:hover img {
    transform: scale(1.1);
}

.activity-item:hover h3 {
    color: #e74c3c;
}

/* GALLERY */
.gallery {
    padding: 70px 5%;
    background: #f8f8f8;
    text-align: center;
    margin-bottom: 120px;
}

.gallery h2 {
    margin-bottom: 15px;
    font-size: 28px;
}

.gallery-desc {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.gallery-history {
    margin-top: 50px;
    padding: 32px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    text-align: left;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-history h3 {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin: 0 auto 18px;
    color: #1f1f1f;
    text-align: center;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    display: block;
    max-width: 860px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
    padding-bottom: 10px;
    border-bottom: 4px solid rgba(200, 156, 58, 0.35);
}

.gallery-history h3 .no-break {
    white-space: nowrap;
}

.history-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 24px;
}

.history-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    border-radius: 22px;
    padding: 26px;
    border: 1px solid #f0f0f0;
    min-height: 220px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.history-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-weight: 700;
    color: #2c2c2c;
    font-size: 1.04rem;
}

.history-card-header span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fde4c8;
    color: #c47229;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(196, 114, 41, 0.18);
}

.history-card p,
.history-card ul {
    margin: 0;
    color: #555;
    line-height: 1.8;
    font-size: 0.96rem;
}

.history-card-featured {
    grid-column: span 2;
    background: #fff8f0;
    border-color: #f4dcc7;
}

.history-card-featured ul {
    padding-left: 20px;
}

.history-card-featured li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}

.history-card-featured li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #c47229;
    font-size: 1.2rem;
    line-height: 1;
}

@media (max-width: 860px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA */
.cta {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 80px 20px;
    text-align: center;
    margin-top: 110px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/anh1.jpg') center/cover no-repeat;
    color: white;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta button {
    margin-top: 20px;
    padding: 12px 25px;
    border: none;
    background: #c0392b;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.cta button:hover {
    background: #e74c3c;
    transform: scale(1.05);
}

/* FOOTER */
footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: #222;
    color: #ddd;
    padding: 50px 5%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    text-align: center;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: white;
}

.footer-col p {
    margin-bottom: 8px;
    font-size: 14px;
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    border-top: 1px solid #444;
    padding-top: 20px;
}

/* =========================================
   5. ANIMATIONS & TRANSITIONS
   ========================================= */

.intro-section {
    animation: fadeIn 0.8s ease-out;
}

/* =========================================
   6. SMOOTH SCROLL & PADDING FIX
   ========================================= */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html,
body {
    height: 100%;
}

/* ===== CHỈ ANIMATE NỘI DUNG ===== */
#page-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

#page-content.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

/* Hiệu ứng vào trang */
#page-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

    
