/* Reset cơ bản */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    margin-top:calc(5rem - 40px);
    gap: 4px; /* khoảng cách giữa các item */
    margin-bottom:0;
}

.pagination li {
    display: inline-flex;
}

/* Style chung cho số & icon */
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width:48px;
    height:48px;
    padding: 12px 4px;
    border: 1px solid #01933E1A; /* viền xanh nhạt */
    background: #fff;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    font-weight:600;
    color:var(--ts-black);
}

/* Trang đang active */
.pagination li.active span,
.pagination li.active a {
    background: var(--ts-green);      /* xanh chính */
    border-color: var(--ts-green);
    color: #fff;
}

/* Hover */
.pagination a:hover {
  background: var(--ts-green);
    color: #fff;
}

/* Dấu ... nếu có */
.pagination li.pagination-dots span {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

/* Mũi tên trái/phải (tùy bạn dùng &lt; &gt; hay icon) */
@media (min-width:1500px){
    .pagination a,
    .pagination span {
        font-size:18px;
        line-height:24px;
    }
}

/*common page*/
.page .page__title{
        margin: 0;
    font-size: 48px;
    line-height: 64px;
}
.page__description{
    font-weight:300;
}
.page__description p{
    margin-bottom:20px;
}
.pg_page{
    padding-top:120px;
    padding-bottom:120px;
}
@media (max-width:1199px){
    .page .page__title{
        font-size:36px;
        line-height:52px;
    }
}
/* BLOCK */
.ts-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    list-style: none;
    margin-top:4px;
    margin-bottom:0;
}

/* ITEM */
.ts-breadcrumb__item {
    display: inline-flex;
    align-items: center;
}

/* Separator "/" giữa các item */
.ts-breadcrumb__item + .ts-breadcrumb__item::before {
    content: "/";
    display: inline-block;
    margin:0 12px;
}

/* LINK */
.ts-breadcrumb__link {
    text-decoration: none;
    color: var(--ts_black);
    transition: color 0.2s ease;
}

.ts-breadcrumb__link:hover,
.ts-breadcrumb__link:focus {
    color: var(--ts-green-dark); /* màu primary site, tùy bạn chỉnh */
}

/* TEXT */
.ts-breadcrumb__text {
    white-space: nowrap;
}

/* CURRENT (item cuối) */
.ts-breadcrumb__item--current .ts-breadcrumb__current {
    font-weight: 300;
    color: #1C1C1C99
}

/* Giới hạn chiều dài item cuối và ellipsis cho title dài */
.ts-breadcrumb__current {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== RESPONSIVE ========== */
@media (min-width:992px){
    .page__description{
        font-size:18px;
        line-height:24px;
    }
}
@media (min-width:1500px){
    .page__description h2{
        font-size:40px;
        line-height:56px;
    }
}
/* Tablet */
@media (max-width: 991.98px) {
    .ts-breadcrumb {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .ts-breadcrumb__current {
        max-width: 320px;
    }
    .page__description p{
    margin-bottom:1rem;
}
}
@media (max-width:767px){
    .page__description{
        font-size:14px;
    }
    .page__description h2,
    .page__description h3,
    .page__description h4,
    .page__description h5,
    .page__description h6{
        font-size:20px;
        line-height:36px;
    }
}
/* Mobile */
@media (max-width: 575.98px) {
    .ts-breadcrumb {
        font-size: 12px;
        margin-bottom: 10px;
    }

    /* Cho phép tổng breadcrumb tràn ngang nhưng vẫn dễ xem */
    .ts-breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ts-breadcrumb__item {
        flex-shrink: 0;
    }

    /* Item cuối ưu tiên ellipsis để không quá dài */
    .ts-breadcrumb__current {
        max-width: 60vw;
    }

    /* Ẩn scrollbar trên 1 số trình duyệt (optional) */
    .ts-breadcrumb::-webkit-scrollbar {
        display: none;
    }
    .ts-breadcrumb {
        scrollbar-width: none; /* Firefox */
    }
}
@media (max-width:1600px){
    .pg_page{
        padding-top:3rem;
        padding-bottom:3rem;
    }
}
@media (max-width:991px){
    .pagination a,
    .pagination span {
        width:36px;
        height:36px;
         padding: 8px 4px;
    }
}
@media (max-width:767px){
     .pagination a,
    .pagination span {
        font-size:14px;
        line-height:20px;
    }
}

/*products*/
.product__grid .row > [class*="col-"] {
    margin-bottom: 40px;
}
@media (max-width:991px){
    .product__grid .row > [class*="col-"] {
    margin-bottom: 20px;
}
}


/* =========================
   SECTION NEW (VERTICAL SLIDER)
   ========================= */

.section-new {
    position: relative;
    padding: 80px 0;
    background: #00652d;
    color: #fff;
    overflow: hidden;
}

.section-new__overlay {
   position: absolute;
    inset: 0;
    pointer-events: none;
    background: #005825;
    opacity: .95;
}

.section-new__container {
    position: relative;
    z-index: 1;
}

/* Khung card – cao cố định để slider dọc hoạt động ổn định */
.section-new__frame {
    margin: 0 auto;
}

/* SLIDER chính */
.section-new__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.section-new__slider .swiper-wrapper {
    height: 100%;
}

/* CARD CHÍNH */
.section-new__inner {
    display: flex;
    align-items: stretch;
    gap: 40px;
    width: 100%;
    padding:40px;
    background: #FFFFFF0A;
    backdrop-filter: blur(4px)
}

/* ẢNH BÊN TRÁI */
.section-new__media {
    flex: 0 0 50%;
    max-width: 50%;
    height: 100%;
}

.section-new__thumb {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.section-new__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.section-new__thumb:hover img {
    transform: scale(1.04);
}

/* NỘI DUNG BÊN PHẢI */
.section-new__content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.section-new__title {
       font-size: 40px;
    line-height: 56px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 0;
 
}
.section-new__title a{
    color:#fff;
        display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Giới hạn số dòng mô tả để mọi slide gần bằng nhau, giống thiết kế */
.section-new__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-weight: 300;
}

/* BUTTON */
.section-new__button {
    align-self: flex-start;
    margin-top:auto;
}

/* PAGINATION DỌC BÊN PHẢI */
/* Pagination dọc chiếm full chiều cao card */
.section-new__pagination {
    position: absolute;
    transform: none;
}

/* Mỗi bullet chiếm 1 phần bằng nhau của chiều cao */
.section-new__pagination .swiper-pagination-bullet {
    margin: 0 !important;
    border-radius: 999px;
    background: #FFFFFF33;
backdrop-filter: blur(20px);
    opacity: 1;
    transition: background .25s ease, transform .25s ease;
}

/* Bullet active nổi bật hơn nhưng vẫn giữ tỷ lệ */
.section-new__pagination .swiper-pagination-bullet-active {
    background: #ffffff;
}

/* Con trỏ khi kéo dọc */
.section-new__slider,
.section-new__slider .swiper-slide {
    cursor: grab;
}

.section-new__slider.swiper-grabbing,
.section-new__slider.swiper-grabbing .swiper-slide {
    cursor: grabbing;
}
@media (min-width:992px){
    .section-new__desc {
     font-size: 18px;
    line-height: 24px;
}
    .section-new__pagination {
    right: 40px !important;
    transform: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    height:calc(100% - 80px);
}

    .section-new__pagination .swiper-pagination-bullet {
    flex: 1 1 0;                    /* <-- chia đều 100% / số bullet */
    width: 2px;
}
.section-new__pagination .swiper-pagination-bullet:not(:last-child){
    margin-bottom:20px !important;
}
    .section-new__slider .swiper-slide {
    height: 100%;
    display: flex;
}
.section-new__frame {
    height: 480px;              /* chỉnh nhẹ nếu muốn cao hơn/thấp hơn */
}
.section-new__content {
    padding-right:40px;
}
}
/* =========== RESPONSIVE =========== */

@media (max-width: 1499.98px) {
    .section-new__title{
        font-size:32px;
        line-height:48px;
    }
}

/* TABLET: 768–991px */
@media (max-width:991px) {

  .section-new__frame {
      max-width: 100%;
  }

  .section-new__inner {
      flex-direction:column;
      padding-bottom:60px;
  }

  .section-new__media {
      flex: 0 0 100%;
      max-width: 100%;
  }

  .section-new__thumb,
  .section-new__thumb img {
      height: 100%;
  }
  .section-new__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    bottom:20px !important;
}
.section-new__pagination .swiper-pagination-bullet:not(:last-child){
    margin-right:1rem !important;
}
.section-new__button{
    margin-top:2rem;
}
}
@media (max-width:767px){
    .section-new__inner{
        padding:20px 20px 60px 20px;
    }
    .section-new__inner{
        gap:20px;
    }
        .section-new__title {
        font-size: 20px;
        line-height: 36px;
    }
    .section-new__desc{
        font-size:14px;
        line-height:20px;
    }
    .section-new__pagination{
        bottom:10px !important;
    }
}
@media (max-width:575px){
        .section-new__inner {
        padding: 0.5rem 0.5rem 40px 0.5rem;
    }
}


/* ================== FOOTER BASE ================== */
.ts-footer {
    background: #F8FFF6
}

/* thanh xanh trên đầu + mũi nhọn */


/* ================== BODY (3 CỘT) ================== */
.ts-footer{
    padding: 120px 0;
    position:relative;
}
.ts-footer__body{
    margin-bottom:5rem;
}
.ts-footer__col {
}

/* text cột 1 */
.ts-footer__brand-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ts-footer__brand-desc {
      font-size: 18px;
    line-height: 24px;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* newsletter */
.ts-footer__newsletter-label {
    font-size: 20px;
    line-height:26px;
    font-weight: 600;
    color:var(--ts-green-dark);
    margin-bottom: 12px;
}

.ts-footer__newsletter-form {
    margin: 0;
        padding: 8px 8px 8px 24px;
        border: 1px solid var(--ts-green-light);
        background:#fff;
}

.ts-footer__newsletter-inner {
    display: flex;
}

.ts-footer__newsletter-input {
    flex: 1;
    border: none;
    font-size: 18px;
    line-height:24px;
    outline: none;
    background: transparent;
    font-weight:300;
}

.ts-footer__newsletter-input::placeholder {
    color: #1C1C1C99;
}

/* (tuỳ chọn) hỗ trợ trình duyệt cũ hơn */
.ts-footer__newsletter-input::-webkit-input-placeholder {
    color: #1C1C1C99;
}
.ts-footer__newsletter-input::-moz-placeholder {
    color: #1C1C1C99;
}
.ts-footer__newsletter-input:-ms-input-placeholder {
    color: #1C1C1C99;
}
.ts-footer__newsletter-input:-moz-placeholder {
    color: #1C1C1C99;
}

.ts-footer__newsletter-btn {
    width: 52px;
    border: none;
    background: var(--ts-green, #01933E);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.ts-footer__newsletter-btn:hover {
    background: #007f33;
}

.ts-footer__newsletter-icon svg {
    display: block;
}

/* ================== CỘT 2: MENU ================== */
.ts-footer__title {
      font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    margin-bottom: 1rem;
    color:var(--ts-green-dark);
    margin-top:0;
}

.ts-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-footer__menu-item + .ts-footer__menu-item {
    margin-top: 0.5rem;
}

.ts-footer__menu a {
    text-decoration: none;
    color:var(--ts-black);
    font-weight:300;
}

.ts-footer__menu a:hover {
    text-decoration: underline;
    color:var(--ts-green);
}

/* ================== CỘT 3: CONTACT ================== */
.ts-footer__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight:300;
}
.ts-footer__contact-item a{
    color:var(--ts-black);
}
.ts-footer__contact-item a:hover{
    color:var(--ts-green);
}
.ts-footer__contact-item:not(:last-child) {
    margin-bottom: 8px;
}

.ts-footer__contact-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ts-footer__contact-icon rect{
    fill:var(--ts-green)
}

/* ================== BOTTOM: SOCIAL + ĐIỀU KHOẢN ================== */
.ts-footer__bottom {
   
}

/* social left */
.ts-footer__social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-footer__social-link {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--ts-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* điều khoản bên phải */
.ts-footer__legal {
    font-weight:300;
}

.ts-footer__legal-link {
    text-decoration: none;
    color: #024E1F;
}

.ts-footer__legal-link:hover {
    text-decoration: underline;
}

.ts-footer__legal-separator {
    width: 1px;
    height: 14px;
    background: rgba(2, 78, 31, 0.4);
}
    .ts-footer__legal-link:not(:last-child){
    border-right: 1px solid var(--ts-green-dark);
}
@media (min-width:992px){
    .ts-footer__col--brand-inner{
     max-width:480px;   
    }
    .ts-footer__menu a,
    .ts-footer__contact-item a,
    .ts-footer__contact-item{
        font-size:18px;
        line-height:24px;
    }
}
@media (max-width:1500px){
     .ts-footer__legal-link:not(:last-child){
            margin-right: 2rem;
    padding-right: 2rem;
    }
}
@media (min-width:1500px){
     .ts-footer__legal-link:not(:last-child){
        margin-right: 50px;
    padding-right: 50px;
}
}
@media (max-width:1500px){
    .ts-footer{
        padding:5rem 0;
    }
    .ts-footer__body{
        margin-bottom:3rem;
    }
    .ts-footer__title{
        font-size:20px;
        line-height:28px;
    }
}
@media (max-width:1199px){
    .ts-footer{
        padding:3rem 0;
    }
        .ts-footer__body {
        margin-bottom: 2rem;
    }
}
/* ================== RESPONSIVE ================== */
@media (max-width: 991.98px) {
    .ts-footer__col--brand-inner{
        margin-bottom:2rem;
    }
    .ts-footer__brand-desc,
    .ts-footer__newsletter-input{
        font-size:16px;
        line-height:22px;
    }
    .ts-footer__title br{
        display:none;
    }
     .ts-footer__title,
     .ts-footer__newsletter-label{
        font-size:18px;
        line-height:24px;
    }
    .ts-footer__brand-desc,
    .ts-footer__menu a,
    .ts-footer__contact-item{
        font-weight:400;
    }
}

@media (max-width: 767px) {
    .ts-footer__brand-desc,
    .ts-footer__newsletter-input,
    .ts-footer__menu a,
    .ts-footer__contact-item,
    .ts-footer__legal-link{
        font-size:14px;
        line-height:20px;
    }
    .ts-footer__col--contact{
        margin-top:2rem;
    }
    .ts-footer__social {
        justify-content: center;
        margin-bottom: 12px;
    }

    .ts-footer__legal {
        justify-content: center;
    }

    .ts-footer__bottom {
        text-align: center;
    }
    .ts-footer__legal{
        display:flex;
    }
        .ts-footer__legal-link:not(:last-child) {
        margin-right: 0.5rem;
        padding-right: 0.5rem;
    }
}
