/* =========================================================
   HOROSCOPE YEARLY 2026 - MAGAZINE STYLE (FULL FIX)
   ========================================================= */

/* --- 1. GLOBAL SETTINGS --- */
.yearly-wrapper {
    width: 100%;
    overflow-x: hidden;
    background: #fdfdfd;
    font-family: 'Lato', sans-serif; /* Hoặc font theme của bạn */
    padding-bottom: 80px;
    color: #333;
}

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

.y-section { margin-bottom: 90px; }

.sec-heading { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 10px; 
    color: #2c3e50; 
    font-weight: 800; 
}
.sec-sub { 
    text-align: center; 
    color: #7f8c8d; 
    margin-bottom: 50px; 
    font-size: 1.1rem; 
}

/* --- 2. HERO COVER --- */
.y-hero {
    position: relative; 
    min-height: 85vh; /* Cao gần hết màn hình */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    color: #fff; 
    margin-bottom: 60px;
    padding: 40px 20px;
}
.y-hero-bg {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-size: cover; background-position: center;
    filter: brightness(0.5); /* Làm tối ảnh nền */
}
.y-hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}
.y-hero-content { position: relative; z-index: 2; width: 100%; }

/* Badge & Title */
.y-year-badge {
    background: var(--y-theme); 
    padding: 6px 25px; 
    border-radius: 50px;
    font-weight: 800; 
    font-size: 1.1rem; 
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.y-sign-name { 
    font-size: 4.5rem; 
    margin: 20px 0 10px 0; 
    line-height: 1.1; 
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4); 
}

/* [MỚI] Meta Info Row (Ngày sinh, nguyên tố...) */
.y-meta-row {
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
    margin-bottom: 30px; font-size: 0.95rem; font-weight: 500; opacity: 0.95;
}
.y-meta-row span {
    background: rgba(255,255,255,0.15);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}
.y-meta-row .kw-tag {
    background: #fff; color: var(--y-theme); font-weight: 800; border: none;
}

.y-slogan { 
    font-size: 2rem; 
    font-weight: 300; 
    margin-bottom: 25px; 
    font-style: italic; 
    font-family: 'Playfair Display', serif;
}
.y-desc { 
    font-size: 1.15rem; 
    max-width: 750px; 
    margin: 0 auto 40px auto; 
    opacity: 0.9; 
    line-height: 1.6; 
}

/* Lucky Indices (Chấm điểm) */
.y-lucky-indices {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
    background: rgba(255,255,255,0.1); padding: 25px 40px; border-radius: 16px;
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1);
}
.idx-item { text-align: center; }
.idx-lbl { display: block; font-size: 0.75rem; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; opacity: 0.8; }
.idx-dots .dot {
    display: inline-block; width: 10px; height: 10px; background: rgba(255,255,255,0.2);
    border-radius: 50%; margin: 0 3px; transition: 0.3s;
}
.idx-dots .dot.on { background: var(--y-theme); box-shadow: 0 0 8px var(--y-theme); transform: scale(1.2); }

/* --- 3. FORECAST GRID (Dự báo 4 mặt) --- */
.forecast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.forecast-card {
    background: #fff; padding: 40px; border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-top: 5px solid var(--y-theme);
    transition: transform 0.3s;
}
.forecast-card:hover { transform: translateY(-5px); }
.fc-title { font-size: 1.6rem; color: #2c3e50; margin-bottom: 15px; font-weight: 700; }
.fc-highlight {
    font-size: 1.1rem; font-style: italic; color: var(--y-theme);
    margin-bottom: 20px; font-weight: 600; font-family: 'Playfair Display', serif;
}
.fc-content { font-size: 1.05rem; line-height: 1.8; color: #555; text-align: justify; }

/* --- 4. FASHION TIMELINE --- */
.fashion-timeline-box { background: #fafafa; padding: 60px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.fashion-seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season-card {
    background: #fff; padding: 25px 20px; border-radius: 16px; text-align: center;
    border: 1px solid #eee; transition: 0.3s;
}
.season-card:hover { transform: translateY(-8px); border-color: var(--y-theme); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.ss-icon { font-size: 3rem; margin-bottom: 15px; }
.ss-name { color: var(--y-theme); margin-bottom: 15px; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; }
.ss-tips p { font-size: 0.95rem; margin-bottom: 10px; color: #666; text-align: left; line-height: 1.5; }

/* --- 5. [MỚI] LUCKY LIFESTYLE (Phong thủy) --- */
.lucky-grid-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.lucky-cell {
    background: #fff; padding: 35px; border-radius: 20px;
    border: 1px solid #f0f0f0; text-align: center; transition: 0.3s;
}
.lucky-cell:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.08); border-color: var(--y-theme); transform: translateY(-5px); }

.lc-icon { font-size: 3rem; display: block; margin-bottom: 20px; }
.lucky-cell h4 { font-size: 1.3rem; color: #333; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

.lc-list { list-style: none; padding: 0; margin: 0; text-align: left; display: inline-block; }
.lc-list li { margin-bottom: 10px; font-size: 1.05rem; color: #555; }
.lc-list li strong { color: var(--y-theme); }

.gem-name { font-size: 1.4rem; font-weight: 800; color: var(--y-theme); margin-bottom: 8px; }
.gem-desc { font-size: 1rem; font-style: italic; color: #777; }

.scent-name { font-weight: 700; font-size: 1.2rem; margin-bottom: 5px; color: #444; }
.scent-notes { font-size: 0.95rem; color: #888; margin-bottom: 10px; }
.scent-vibe { font-style: italic; color: var(--y-theme); font-weight: 600; font-family: serif; font-size: 1.1rem; }

.decor-tip { 
    background: #fffdeb; color: #d68f00; 
    padding: 12px; border-radius: 10px; margin-top: 15px; 
    font-size: 0.95rem; border: 1px dashed #ffe082;
}

/* --- 6. TRAVEL POSTER --- */
.travel-poster {
    position: relative; background: #e0f7fa; padding: 80px 20px; border-radius: 40px;
    overflow: hidden; text-align: center; margin-top: 80px;
}
.poster-bg { 
    position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg');
    background-size: cover; opacity: 0.08;
}
.poster-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.p-icon { font-size: 4rem; display: block; margin-bottom: 15px; }
.poster-head h3 { font-size: 3rem; color: #006064; margin-bottom: 25px; font-family: 'Courier New', monospace; font-weight: bold; }
.p-style { font-size: 1.3rem; margin-bottom: 15px; font-weight: 500; }
.p-sug { font-style: italic; font-size: 1.2rem; color: #555; margin-bottom: 35px; line-height: 1.6; }
.dest-list { background: #fff; display: inline-block; padding: 15px 30px; border-radius: 50px; box-shadow: 0 10px 30px rgba(0,188,212,0.2); }
.dest-tag { display: inline-block; background: #00bcd4; color: #fff; padding: 8px 20px; border-radius: 25px; margin: 0 5px; font-weight: 700; }

/* --- 7. ROADMAP TIMELINE (ĐÃ FIX LỖI CHỒNG ĐÈ) --- */
.roadmap-box { position: relative; }
.roadmap-container {
    position: relative; 
    /* Padding lớn để tránh thẻ bài bị cắt hoặc đè */
    padding: 140px 0; 
    max-width: 960px; 
    margin: 0 auto;
    
    /* [FIX CHÍNH] Sử dụng Flexbox thay vì float */
    display: flex;
    justify-content: space-between;
}

/* Đường kẻ ngang */
.roadmap-line {
    position: absolute; top: 50%; left: 0; width: 100%; height: 4px;
    background: #e0e0e0; transform: translateY(-50%); z-index: 1;
    border-radius: 2px;
}

/* Điểm mốc */
.rm-point {
    position: relative; 
    z-index: 2; 
    flex: 1; /* Chia đều không gian */
    text-align: center;
    /* Xóa float: left cũ đi */
}

/* Chấm tròn */
.rm-dot {
    width: 24px; height: 24px; background: #fff; 
    border: 6px solid var(--y-theme);
    border-radius: 50%; margin: 0 auto; 
    /* Căn giữa theo chiều dọc của flex container thì không cần top 50% nữa, 
       nhưng để chắc chắn nằm trên line thì giữ nguyên */
    position: relative; z-index: 3;
    transition: 0.3s;
    box-shadow: 0 0 0 4px #fff; /* Viền trắng tách khỏi line */
}

/* Thẻ bài (Tháng + Nội dung) */
.rm-card {
    position: absolute; 
    width: 180px; /* Độ rộng cố định của thẻ */
    left: 50%; 
    transform: translateX(-50%); /* Căn giữa so với chấm */
    transition: 0.3s;
}

/* Vị trí trên/dưới */
.rm-point.top .rm-card { 
    bottom: 40px; /* Cách chấm tròn 1 đoạn */
}
.rm-point.bottom .rm-card { 
    top: 40px; 
}

.rm-month { display: block; font-weight: 800; color: var(--y-theme); margin-bottom: 8px; text-transform: uppercase; font-size: 0.9rem; }
.rm-text { 
    font-size: 0.85rem; color: #666; background: #fff; 
    padding: 15px; border-radius: 10px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); 
    border: 1px solid #f0f0f0; line-height: 1.5;
}

/* Hiệu ứng Hover */
.rm-point:hover .rm-dot { transform: scale(1.3); border-color: #333; }
.rm-point:hover .rm-card { z-index: 10; transform: translateX(-50%) scale(1.1); }
.rm-point.top:hover .rm-card { bottom: 50px; }
.rm-point.bottom:hover .rm-card { top: 50px; }

/* --- 8. SPIRITUAL BOX --- */
.spiritual-box { text-align: center; margin-top: 50px; }
.mantra-card {
    background: linear-gradient(135deg, #fff 0%, #f9f3fc 100%);
    padding: 60px; border-radius: 50% 50% 20px 20px / 20% 20% 20px 20px;
    border-bottom: 6px solid var(--y-theme);
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.om-symbol { font-size: 5rem; opacity: 0.15; display: block; margin-bottom: 20px; color: #9c27b0; }
.the-mantra { 
    font-size: 2.2rem; font-family: 'Playfair Display', serif; 
    color: #6a1b9a; margin: 20px 0 30px 0; font-style: italic; line-height: 1.4;
}
.the-advice { 
    font-size: 1.2rem; color: #555; max-width: 700px; margin: 0 auto; 
    background: rgba(255,255,255,0.6); padding: 15px; border-radius: 10px;
}

/* --- 9. NAV BUTTONS --- */
.y-nav-bottom { text-align: center; margin-top: 80px; }
.y-btn {
    display: inline-block; padding: 16px 45px; margin: 10px;
    background: #fff; border: 2px solid var(--y-theme); color: var(--y-theme);
    font-weight: 800; border-radius: 50px; text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.y-btn:hover { background: var(--y-theme); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }

/* --- 10. RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .container-limit { padding: 0 15px; }
    
    /* Hero Mobile */
    .y-hero { min-height: auto; padding: 80px 15px; }
    .y-sign-name { font-size: 3rem; }
    .y-slogan { font-size: 1.4rem; }
    .y-lucky-indices { gap: 15px; padding: 20px; }
    .idx-item { width: 45%; }
    
    /* Forecast & Grid */
    .forecast-grid { grid-template-columns: 1fr; gap: 30px; }
    .forecast-card { padding: 25px; }
    .fashion-seasons { grid-template-columns: 1fr 1fr; gap: 15px; }
    .lucky-grid-layout { grid-template-columns: 1fr; }
    
    /* Timeline Dọc cho Mobile (Quan trọng) */
    .roadmap-container { 
        display: block; /* Quay về block */
        padding: 0; margin-top: 30px;
    }
    .roadmap-line { 
        width: 4px; height: 100%; top: 0; left: 20px; 
        transform: none; background: #eee;
    }
    .rm-point { 
        display: block; width: 100%; height: auto; 
        text-align: left; margin-bottom: 30px; 
        padding-left: 60px; /* Chừa chỗ cho line */
    }
    .rm-dot {
        position: absolute; left: 14px; top: 0; 
        margin: 0; transform: none;
    }
    .rm-card {
        position: static; width: auto; transform: none; 
        text-align: left;
    }
    .rm-point.top .rm-card, .rm-point.bottom .rm-card { 
        top: auto; bottom: auto; 
    }
    .rm-month { display: inline-block; margin-right: 10px; }
    .rm-text { display: block; margin-top: 5px; }
    
    /* Hover mobile tắt hiệu ứng */
    .rm-point:hover .rm-card { transform: none; }
    .y-btn { width: 100%; display: block; margin: 10px 0; }
}