/*Section: Home Hero */
.home-hero .bg-hero-overlay {
    background: var(--color-brand-wine);

}
.hero-content {
    display: block;
    padding: 80px 50px;
 }

.hero-actions{
    gap: 40px;
}
/* ===== HOME INTRO ===== */
.home-intro {
    background-color: #F9F5FC;
    position: relative;
    z-index: 2;
}
.intro-content{
    padding-left: 10%;
}
.intro-text {
    color: #3a3a3a;
}
.intro-text span{
    color: var(--color-brand-purple);
}
/* ===== REVIEWS PARALLAX ===== */

/* Background image */
.home-reviews .reviews-bg {
    top: -75%;
    left: 0;
    height: 150%;
}

/* Overlay tối + brand */
.home-reviews .reviews-overlay {
    background: var(--color-brand-wine);
}
/* Stars */
.reviews-stars i {
    font-size: 20px;
    color: #FFD700;
    margin-right: 2px;
}

.reviews-stars span {
    margin-left: 8px;
    font-size: 16px;
    font-weight: 600;
}
.reviews-swiper{
    width: 88%;
}
.reviews-swiper .swiper-wrapper {
    padding: 10px 0;
}
/* Card */
.review-card {
    background: #fff;
    color: #222;
    border-radius: 16px;
    padding: 20px;
    transition: all .2s;
}
.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
/* Head */
.avatar {
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-brand-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.review-meta .name{
    font-weight: 600;
    font-size: 15px;
    overflow: hidden;
    padding-right: 25px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.review-time {
    font-size: 13px;
    color: #888;
}

/* Stars */
.review-stars {
    font-size: 13px;
    color: #FFD700;
    margin: 8px 0;
}
/* Review text clamp */
.review-text {
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    max-height: calc(1.6em * 3);
    transition: max-height 1s ease;
}

.review-text.is-expanded {
    -webkit-line-clamp: unset;
    max-height: 500px; /* đủ lớn cho review dài */
}

/* Read more button */
.review-more {
    background: none;
    border: 0;
    padding: 0;
    margin-top: 10px;
    font-size: 14px;
    color: #1B5ECD;
    cursor: pointer;
}
.review-more:hover {
    text-decoration: underline;
}

/* Nav */
.home-reviews .swiper-button-next,
.home-reviews .swiper-button-prev {
    width: 50px;
    height: 50px;
    --swiper-navigation-size: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    --swiper-navigation-color: #fff;
    padding: 10px;
    border-radius: 50%;
}
.home-reviews .swiper-button-next:hover,
.home-reviews .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
/* ===== STATS SECTION ===== */

.home-stats {
    background: #faf6fb;
}

/* Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.stat-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 260px;
    display: flex;
}

/* Overlay */
.stat-overlay {
    background: var(--color-brand-wine);
}

/* Content */
.stat-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #fff;
}

.stat-number {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
}

.stat-number span {
    font-size: 0.9em;
}

.stat-title {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 900;
}

.stat-desc {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.5;
    font-weight: 500;
    margin-top: 80px;
}


/* Background */
.forecast-bg {
    position: absolute;
    inset: -120% 0;
    width: 100%;
    height: 160%;
    object-fit: cover;
    z-index: 1;
}

.forecast-overlay {
    background: var(--color-brand-wine);
}
.forecast-content p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    opacity: 0.95;
}

/* Form card */
.forecast-form {
    background: rgba(242, 247, 248, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(100px);
    backdrop-filter: blur(100px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 0;
}

.compare-head{
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr;
    background:#f3f4f6;
    border-radius:999px;
    padding:14px 0;
    text-align:center;
    font-weight:600;
    margin-bottom:30px;
}

.compare-list{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.compare-row{
    display:grid;
    grid-template-columns:1.5fr 2fr;
    align-items:center;
    background:white;
    border-radius:18px;
    padding:24px;
    border:1px solid #eef0f3;
}

.compare-label{
    font-weight:600;
    font-size:17px;
}
.compare-cells{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}
.compare-cell{
    text-align:center;
    color:#475569;
}

.compare-cell span{
    display:block;
    font-size:12px;
    color:#94a3b8;
}

.compare-cell.highlight{
    color:var(--color-brand-purple);
    font-weight:700;
}

/* MOBILE */
@media(max-width:768px){

    .compare-head div:nth-child(1){
        display:none;
    }
    .compare-head{
        grid-template-columns:1fr 1fr;
    }

    .compare-row{
        grid-template-columns:1fr;
        gap:14px;
    }

    .compare-cell{
        text-align:left;
        background:#f8fafc;
        padding:12px 14px;
        border-radius:10px;
    }

    .compare-cell:before{
        content:attr(data-title);
        display:block;
        font-size:11px;
        color:#94a3b8;
        margin-bottom:4px;
        text-transform:uppercase;
    }
}
