.visible-xs,.visible-xs-legend {display: none;}

.container-breakcrumb {
    max-width: 1396px;
    min-width: 1263px;
    margin: 0 auto;
    padding-left: 8px;
    padding-right: 8px;
}

.container {
    margin: 15px auto 0;
    padding: 0 12px;
}

.main-content {
    /* position: relative;
    overflow-x: hidden; */
}
@media screen and (min-width:768px) {
   .container {
        width: 1090px;
        margin: 0 auto 0;
        position: relative;
    }
}

.breakcrumb {
    padding: 12px 10px;
    margin: 0 auto;
    height: 42px;
    overflow: hidden;
}

.breakcrumb ul {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    overflow-x: auto;
    padding-bottom: 20px;
}

@media screen and (min-width:768px) {
   .breakcrumb {
        padding: 15px 0 19px;
        height: 48px;
        max-width: 1350px;
    }
}

.breakcrumb li {display: inline-block; }
.breakcrumb a {
    color: #333;
    font-size: 11px;
    position: relative;
    padding-right: 28px;
}

.breakcrumb a:hover {
    color: #05C;
}

.breakcrumb a {
    /* color: #05C; */
}

.breakcrumb a::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 12px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #B5B5B5;
}

@media screen and (min-width:768px) {
   .keyvisual,
   .keyvisual-item1 {
    line-height: 0;
   }
}

.title-general {
    font-weight: 700;
    line-height: normal;
    padding-left: 14px;
    font-size: 20px;
    margin: 0 0 15px;
    position: relative;
}

.title-general::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 3px;
    width: 4px;
    background: #2b7cd8;
    border-radius: 2px;
}

.sub-title-general {
    font-weight: 700;
    line-height: normal;
    font-size: 16px;
    margin: 0 0 15px;
    border-bottom: 1px solid #2b7cd8;
}

.news-content ul li {
    font-weight: bold;
}

.research-items {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.research-item {width: calc(50% - 7px);}

@media screen and (min-width:768px) {
    .research-items {
        flex-wrap: nowrap;
        gap: 25px;
        padding-bottom: 25px;
        /* border-bottom: 1px solid #e0e0e0; */
    }
   
    .research-item {
        width: calc(33.33333% - 14.5px);
    }
}

.research-item a {
    display: block;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}

@media screen and (min-width:768px) {
   .research-item a {
        font-size: 18px;
        text-align: center;
    }
}

.research-item a:hover {
    opacity: 0.9;
    color: #05c;
}

.research-item a img {width: 100%;}

.heading {
    color: #a6acb4;
    padding: 12px 0;
    background: #3f4a5c;
    /* border-top: 1px solid #D9D9D9; */
}

.heading h1 {color: #fff;}
.heading h1 span {color: #ffd54f;}
.heading p span {padding-right: 20px;}
.heading p.desc-title {margin: 8px 0;}

.tip-note {
    display: flex;
    align-items: center;
}

.tip-note-btn {
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 10px;
    white-space: nowrap;
    background: #4a7dff;
}

.blue-title {
    font-size: 14px;
    /* color: #4a7dff; */
    font-weight: bold;
    position: relative;
    margin: 50px 0 10px;
    padding: 8px 10px 8px 20px;
    /* border-left: 4px solid #7499f5; */
    background: linear-gradient(90deg,rgba(235, 235, 235, 1) 30%, rgba(248, 249, 251, 1) 100%);
}
.blue-title::before {
    position: absolute;
    content: '';
    left: 11px;
    width: 3px;
    height: 20px;
    background: #023e8a;
    border-radius: 4px;
}

.finding-wrap {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}

/* card */
.finding-card {
    /* width: 250px; */
    background: #f3f4f6;
    border-radius: 10px;
    padding: 14px;
    position: relative;
    border: 1px solid #bcbcbc;
    border-top: 4px solid transparent;
}


.finding-card.purple {border-top-color: #7c3aed;}
.finding-card.green {border-top-color: #008000;}
.finding-card.red {border-top-color: #cc0202;}
.finding-card.orange {border-top-color: #f97316;}
.finding-card.blue {border-top-color: #312d8a;}
.finding-card.brown {border-top-color: #9f6a6a;}

/* tag */
.tag-item {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* title */
.title-item {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* desc */
.desc-item {
    font-size: 11px;
    color: #666;
    margin-bottom: 12px;
}

/* value */
.value-item {
    font-weight: bold;
    color: inherit;
}

.big-font {
    font-size: 26px;
    animation: popIn 0.5s ease;
}

.small {
    font-size: 12px;
    margin-left: 2px;
}

/* màu chữ theo card */
.purple .tag-item,
.purple .value-item {
    color: #7c3aed;
}

.green .tag-item,
.green .value-item {
    color: #008000;
}

.blue .tag-item,
.blue .value-item {
    color: #023e8a;
}

.orange .tag-item,
.orange .value-item {
    color: #f97316;
}

.red .tag-item,
.red .value-item {
    color: #ff0000;
}

.brown .tag-item,
.brown .value-item {
    color: #9f6a6a;
}

/* ======== */
.chart-card {
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #bdbdbd;
}

.chart-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.chart-sub {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

/* chart */
.chart-card .chart {
    position: relative;
    padding-right: 45px;
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rank {
    width: 20px;
    font-size: 12px;
}

/* bar */
.bar-wrap {
    position: relative;
    flex: 1;
    background: #e5e7eb;
    height: 16px;
    border-radius: 0 4px 4px 0;
    overflow: visible;
}

.bar {
    height: 100%;
    color: #fff;
    font-size: 10px;
    padding-left: 5px;
    border-radius:0 4px 4px 0;
    transform-origin: left;
    animation: growBar 1.2s ease forwards;
}

.bar.red { background: #ff0000; }
.bar.green { background: #008000; }
.bar.blue { background: #023e8a; }
.bar.brown { background: #9f6a6a; }

.chart-row:nth-child(1) .bar {animation-delay: 0.1s;}
.chart-row:nth-child(2) .bar {animation-delay: 0.2s;}
.chart-row:nth-child(3) .bar {animation-delay: 0.3s;}
.chart-row:nth-child(4) .bar {animation-delay: 0.4s;}
.chart-row:nth-child(5) .bar {animation-delay: 0.5s;}
.chart-row:nth-child(6) .bar {animation-delay: 0.6s;}
.chart-row:nth-child(7) .bar {animation-delay: 0.7s;}
.chart-row:nth-child(8) .bar {animation-delay: 0.8s;}

.value {
    position: absolute;
    right: -45px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
}

.line-100 {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 64%;
    border-left: 2px dashed #9ca3af;
}

.legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    margin-top: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background: #ff0000; }
.dot.green { background: #008000; }
.dot.blue { background: #023e8a; }
.dot.brown { background: #9f6a6a; }

.legend .line {
    width: 1px;
    height: 20px;
    border-left: 2px dashed #9ca3af;
}

.area-item-container {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
}
.area-item {
    /* width: 250px; */
    border-radius: 10px;
    padding: 15px 20px;
    border: 1px solid #bdbdbd;
}

.area-item.purple {border-left: 4px solid #7c3aed;}
.area-item.green {border-left: 4px solid #008000;}
.area-item.yellow {border-left: 4px solid #f97316;}

.title-area {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    
}

.area-item.purple .title-area {color: #7c3aed;}
.area-item.green .title-area {color: #008000;}
.area-item.yellow .title-area {color: #f97316;}
.area-item.green {border-left: 4px solid #008000;}
.area-item.blue {border-left: 4px solid #023e8a;}
.area-item.red {border-left: 4px solid #ff0000;}

.area-item .title-area span {
    width: 12px;
    height: 12px;
    margin-right: 5px;
    border-radius: 20px;
    display: inline-block;
    animation: pulseDot 1.5s ease-in-out infinite;
}

.area-item.purple .title-area span {background: #7c3aed;}
.area-item.green .title-area span {background: #008000;}
.area-item.yellow .title-area span {background: #f97316;}



.area-item.green .title-area {color: #008000;}
.area-item.green .title-area span {background: #008000;}

.area-item.blue .title-area {color: #023e8a;}
.area-item.blue .title-area span {background: #023e8a;}

.area-item.red .title-area {color: #ff0000;}
.area-item.red .title-area span {background: #ff0000;}

.related-reports .card {
    padding: 0;
    border: 1px solid #bdbdbd;
}

.related-reports .card-thumb.survey {background: #edf0f5;}
.related-reports .card-thumb {max-height: 110px;}
.related-reports .card-body {height: 100px;}
/* ======== */

@media screen and (min-width:768px) {
   .heading .container {
        width: 1350px;
        padding: 0;
    }
}

.title-h1 {
    font-size: 14px;
    font-weight: bold;
}

@media screen and (min-width:768px) {
   .title-h1 {font-size: 16px;}
}


@media screen and (min-width:768px) {
    .table {
        display: grid;
        gap: 24px;
        grid-template-columns: repeat(2, 1fr);
    }
}

.table h2,
.table-desc h2 {
    font-size: 15px;
    margin-bottom: 10px;
}

.table table {
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-collapse: collapse;
}

.table table thead tr {
    background: #2d589a;
}

.table table thead tr td {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.table table td {
    padding: 5px;
    border: 1px solid #ccc;
}

.table table tbody tr td:first-child {text-align: right;}
.table table tbody tr td:last-child {text-align: right;}

.table-desc {
    padding-top: 30px;
}

@media screen and (min-width:768px) {
    .table-desc {
        width: 60%;
        float: left;
        padding-left: 35px;
    }
}

.table-desc table {
    width: 100%;
    border: 1px solid #ccc;
    border-collapse: collapse;
}

.table-desc table td {
    padding: 5px;
    border: 1px solid #ccc;
}

.no-warap {white-space: nowrap;}

.category-nav {
    background: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
@media (min-width: 768px) {
    .category-nav {
        padding: 14px 24px;
    }
}

.category-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

@media (min-width: 768px) {
    .category-nav-inner {
        justify-content: center;
        gap: 10px;
    }
}

a.pill {
    flex-shrink: 0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1.5px solid #2b7cd8;
    color: #2b7cd8;
    background: #fff;
}
a.pill:first-child {margin-left: 10px;}
a.pill:last-child {margin-right: 10px;}

@media screen and (min-width:768px) {
   a.pill {
        padding: 8px 18px;
   }
}

a.pill:hover {
    background: #eef5fc;
    text-decoration: none;
}

a.pill.active {
    background: #2b7cd8;
    color: #fff;
    border-color: #2b7cd8;
}

@media (min-width: 768px) {
    .pill {
        padding: 9px 24px;
        font-size: 14px;
    }
}

.section {padding: 25px 0;}
@media (min-width: 768px) {
    .section {padding: 35px 0 0;}
}

/* .section + .section {border-top: 1px solid #e0e0e0;} */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-more {
    font-size: 12px;
    color: #2b7cd8;
    text-decoration: none;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.news-item:last-child {
    border-bottom: none;
}
.news-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    flex-shrink: 0;
}

.news-tag.ranking {
    background: #fbe2d7;
    color: #f5733a;
}


.news-tag.route {
    background: #eef5fc;
    color: #2b7cd8;
}

.news-tag.price {
    background: #fef9e7;
    color: #b8860b;
}

.news-tag.trend {
    background: #eafaf1;
    color: #27ae60;
}

.news-tag.user {
    background: #e8daef;
    color: #ab00ff;
}

.card-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, 1fr);
}

/* .card-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
} */


#survey .card-grid {border-bottom: none;}
.related-reports .card-thumb.survey {font-size: 30px;}

@media (min-width: 768px) {
    .card-grid {
        gap: 16px;
        grid-template-columns: repeat(3, 1fr);
        /* padding-bottom: 35px;
        
        border-bottom: 1px solid #e0e0e0; */
    }
    .related-reports .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
    transition: 0.3s;
    border: 3px solid #51d18a;
}

.card:hover {
  /* transform: translateY(-6px); */
}

.card a {text-decoration: none;}
.card a:hover {opacity: 0.85;}

.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #d0e4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #6a9fd8;
    border-radius: 8px 8px 0 0;
    max-height: 180px;
    overflow: hidden;
}

.card-thumb img {width: 120%;}

.card-thumb.chart {background: linear-gradient(135deg, #e8f4fd, #d0e8f8);}
.card-thumb.price {background: linear-gradient(135deg, #fef9e7, #fdebd0);}
.card-thumb.trend {background: linear-gradient(135deg, #eafaf1, #d5f5e3);}
.card-thumb.survey {background: linear-gradient(135deg, #f4ecf7, #e8daef);}

.card-body {padding: 10px 12px;}

.card-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 4px;
}

.card-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.5px;
}

.card-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    background: #eef5fc;
    color: #2b7cd8;
}

.container.rosen {
    margin: 35px auto;
}



/* ======================= */
/* ===== RESET nhẹ ===== */
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #f8fbff;
}

/* ===== GLOBAL BACKGROUND ===== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

/* pattern chấm nhẹ */
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#dfe9ff 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
}

/* ===== SECTION ===== */
.section {
  position: relative;
  padding: 50px 20px;
  /* overflow: hidden; */
}

#news.section {padding: 30px 20px;}
#data.section {padding: 0 20px 20px;}

.container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ===== VARIANTS ===== */
.section--white {
  background: #ffffff;
}

.section--soft {
    background: linear-gradient(135deg, #f0f6ff, #ffffff);
}

.section--hero {
    position: relative;
    background: linear-gradient(135deg, #bdd1f1, #ffffff);
}

/* ===== DECOR SHAPES ===== */
.bg-decor {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.decor-1 {
    background: #97e7bb;
    top: -100px;
    left: -100px;
}

.decor-2 {
    background: #d6f0ff;
    bottom: -120px;
    right: 0;
}

/* animation nhẹ */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.wave-top {
  position: relative;
}

.wave-top::before {
  content: "";
  position: absolute;
  top: -70px;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M0,160L60,154.7C120,149,240,139,360,122.7C480,107,600,85,720,106.7C840,128,960,192,1080,208C1200,224,1320,192,1380,176L1440,160V320H0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center/cover;
}

#ranking .card {border-color: #2471c7;}
#price .card {border-color: #d9b66c;}
#survey .card {border-color: #a953d7}

/* ===== TEXT ACCENT ===== */
.gradient-text {
  background: linear-gradient(90deg, #4facfe, #6a85ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clearfix::before,
.clearfix::after {
    content: '';
    display: table;
    width: 100%;
}

.relink {margin-left: 25px;}
.relink li {margin-bottom: 5px;}
.relink a {color: #023e8a;}

.style-disc {padding-left: 19px;}
.style-disc li {list-style-type: disc;}
/* ======================= */
@media screen and (max-width:767px) {
    .dot {margin-top: 3px;}
    .legend {align-items: self-start;}
    .legend .line {height: 26px;}

    .container {
        margin: 0 auto 0;
        padding: 0 10px;
    }
    .container.rosen {margin: 15px 0;}
    .section {padding: 5px 0;}

    #ranking.section,
    #price.section,
    #trend.section,
    #survey.section {
        padding: 5px 10px;
    }


    #ranking .container,
    #price .container,
    #trend .container,
    #survey .container {
        padding: 20px 10px;
        border-radius: 4px;
    }

    #news.section {
        padding-top: 25px;
        padding: 25px 0 0;
    }

    #data.section {
        padding: 5px 0 10px;
    }

    /* #ranking .container {background: #a0c7f3;} */
    #ranking .title-general::before {background: #2b74c7;}
    #price .section-more {color: #0068df;}

    /* #price .container {background: #ffd387;} */
    #price .title-general::before {background: #ff8300fa;}
    #price .section-more {color: #ff8300;}

    /* #trend .container {background: #aae7c5;} */
    #trend .title-general::before {background: #2e9b5e;}
    #trend .section-more {color: #0c9f4d;}

    /* #survey .container {background: #d6a5ed;} */
    #survey .title-general::before {background: #9900df;}
    #survey .section-more {color: #9900df;}

    .bg {
        top: 67%;
        left: 28%;
        width: 300px;
        background: url(../images/bg2.png) no-repeat;
        background-size: 100%;
        transform: unset;
    }
    
    #price .bg,
    #trend .bg,
    #survey .bg {display: none;}

    .card {padding: 5px;}
    .card-body {padding: 10px 5px;}

    .blue-title {
        background: #e8e8e8;
        margin: 30px -10px 10px;        
    }

    .finding-wrap {gap: 10px;}
    .tag-item {font-size: 12px;}

    .legend {
        gap: 8px;
        font-size: 10px;
    }

    .area-item-container {grid-template-columns: repeat(2, 1fr);}
    .card-grid {grid-template-columns: repeat(2, 1fr);}
    .rosen .card-grid {
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(3, 1fr);
    }
    .related-reports .card-thumb.survey {font-size: 20px;}
    .visible-xs {display: block;}
    .keyvisual-item1 img {height: 110px;}
    .heading p.desc-title {margin: 15px 0 50px;}
    .desc-title {font-size: 12px;}
    .decor-2 {display: none;}
    .title-h1 {font-size: 22px;}
    .table tr.visible-xs {display: table-row;}
    .big-font {font-size: 18px;}
    .relink {margin-left: 16px;}
    .line-100 {left: 56%;}
}

@media screen and (max-width:414px) {
    .visible-xs-legend {display: block;}
}

@media screen and (max-width:390px) {
    .tag-item {font-size: 11px;}
    .visible-small {display: block;}
    .big-font {font-size: 15px;}
}

@media screen and (max-width:375px) {
    .tag-item {font-size: 11px;}
    .title-item {font-size: 12px;}
}

@keyframes growBar {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseDot {
    0% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0px var(--dot-color);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.15);
        box-shadow: 0 0 8px var(--dot-color);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0px var(--dot-color);
    }
}