/* Disable Flatsome Back To Top */
#top-link,
a.back-to-top,
.back-to-top.button{
  display: none !important;
}
/* --- nhấn mạnh về địa lý, địa danh, quốc gia --- */
.apini-highligh-geo{
  color:#1976D2;
}
/* --- nhấn mạnh ý chính, ý nổi bật --- */
.apini-highligh-primary{
  color:#ff6a00;
}
/* --- nhấn mạnh về số liệu --- */
.apini-highligh-data{
  color:#e10600;
}

/* ===================================================== */  
/* --- Nội dung trong slide --- */
.weather-title{
  /* từ block sau: giữ style gradient + stroke + glow */
  color:#000;                         /* chữ đen */
  text-align:center;
  font-weight:700;

  padding:6px 12px;
  border:3px solid #800000;
  border-radius:1px;

  /* gradient nền (trái -> phải) */
  background-image:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.22) 0 1px, rgba(255,255,255,0) 2px 6px),
    linear-gradient(to right, #de575b, #ffe3b3);

  /* Viền trắng (WebKit/Chromium/Safari) */
  -webkit-text-stroke:2px #fff;
  paint-order: stroke fill;

  /* Hào quang trắng */
  text-shadow:
    0 0 2px rgba(255,255,255,.9),
    0 0 4px rgba(255,255,255,.75),
    0 0 8px rgba(255,255,255,.55),
    0 0 12px rgba(255,255,255,.35);

  /* ưu tiên “code ở sau” */
  margin:0 0 2px;
  margin-top:-17px !important;

  z-index:5 !important;
}

.weather-image{
  width:100%;
  height:auto;
  display:block;
  margin:0 0 10px; /* đã có đoạn “giữ khoảng cách” -> giữ y nguyên */
}

.weather-info{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:8px;
}
.weather-info p{ margin:0 0 6px; }

/* --- Parent + tham số peeking --- */
.weather-slider{
  position: relative;
  --peek: 56px;      /* phần hé bên phải */
  --gap : 6px;       /* khoảng cách giữa 2 slide */
}


/* --- Viewport/Track --- */
.weather-viewport{ position:relative; overflow:hidden; width:100%; }
.weather-track{
  display:flex; gap: var(--gap);
  will-change: transform;
  transition: transform .5s ease;
}
.weather-track.no-anim{ transition:none; }  /* dùng khi snap clone */

/* Mỗi slide chiếm <100% để lộ slide kế tiếp */
.weather-track .weather-slide{
  flex: 0 0 calc(100% - var(--peek));
  display:block;
}


/* --- Nút điều hướng ở giữa + dạ quang --- */
.weather-viewport .apini-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border:0; border-radius:999px;
  background:#111827cc; color:#fff; font-size:22px; line-height:42px;
  cursor:pointer; z-index:15;
  box-shadow: 0 0 0 3px #00ffa055, 0 0 18px #00ffa0aa;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.apini-prev{ left:10px } .apini-next{ right:10px }
.weather-viewport .apini-arrow:hover{
  background:#10b981;
  box-shadow: 0 0 0 3px #34d39988, 0 0 20px #34d399cc;
  transform:translateY(-50%) scale(1.04);
}
.weather-viewport .apini-arrow:active{
  transform:translateY(-50%) scale(0.97);
}
/* Desktop: thu nhỏ toàn bộ slider ~10% và căn giữa */
@media (min-width:1024px){
  .weather-slider{
    width:100% !important;
    max-width:var(--apini-container,1100px) !important;
    margin:0 auto !important;
  }
}


/* Giữ khoảng cách trên/dưới đúng yêu cầu */
.weather-title{ margin: 0 0 2px; }
.weather-image{ margin: 0 0 10px; }





/* khu vực địa lý và khí hậu của trang quốc gia */
/* 1) Cùng bề rộng cho Địa lý & Khí hậu */
:root{ --apini-container: 980px; }              /* chỉnh 980/1080/1180 nếu muốn */
:root{ --apini-title-pad: 200px; }
:root{ --apini-card-pad: 16px; }  /* biến kéo tràn nền của tiêu đề phụ  */
/* Bọc nội dung trong 2 section về cùng 1 max-width */
.apini-geo .apini-section,
.apini-climate .apini-section{
  max-width: var(--apini-container)  !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/*kích thước Đường viền xanh dương và xanh lá ngoài của địa lý và khí hậu */
.apini-geo .apini-card{
  max-width: 97.8% !important;
}

.apini-climate .apini-card{
  max-width: 100% !important;
}

@media (max-width: 767px){
    .apini-geo .apini-card{
  max-width: 97.8% !important;
}


}
/* 2) Border khung (nếu bạn đang bọc nội dung bằng .apini-card) */
.apini-card{
  padding: var(--apini-card-pad) !important;
  position: relative;  
  border: 2.5px solid var(--apini-accent, #00ff99);
  border-radius: 14px;
  background: rgba(17,22,27,.18);
}



.apini-climate .weather-viewport,
.apini-climate .weather-track{
  position: relative; z-index: 10; overflow: visible;
}
.apini-climate .weather-viewport .apini-arrow{ z-index: 15; }

/* Flush khi đặt slider trong card */

.apini-card--flush > *{ border-radius: 12px; overflow: hidden; }
.apini-card--flush .slick-list,
.apini-card--flush .flickity-viewport,
.apini-card--flush .swiper{ border-radius: 12px; overflow: hidden; }



/* 4) Tiêu đề phụ – khung (chưa gán màu) */
.apini-dlkh-title{                    /* base cho cả 2 loại */
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .3px;
  color: var(--apini-title-fg, #111);
  
}



/* 4) Tiêu đề CHÍNH: có vệt sáng ở phải */
.apini-title--main{
  /* giữ 2 khe trái/phải */
  margin:10px 200px !important;

  /* khung */
  position:relative;
  box-sizing:border-box;
  width:100% !important;

  /* cỡ chữ/chiều cao tối thiểu */
  font-size:18px;
  line-height:1.2;
  /* dùng grid để giữa dọc + ngang */
  display:grid;
  place-items:center;

  /* cao tối thiểu & đệm nhẹ để nhìn thoáng */
  min-height:2.6em;
  padding-block:6px;
  text-align:center;
}

/* reset các thẻ con (p/span) do UX Builder sinh ra */
.apini-title--main > *{
  margin: 0 !important;
  line-height: 1.2 !important;
}
/* ===== Text đặt class trực tiếp trên tiêu đề ===== */
.apini-title--main .text-khihau,
.apini-title--main .text-dialy{
  /* ép ghi đè mọi style inline của UX Builder */
  display: flex !important;
  align-items: center !important;     /* GIỮA dọc */
  justify-content: center !important; /* GIỮA ngang */
  gap: .5em;
  
  width: 100%;
  margin: 0px !important;
  line-height: 1.5 !important;
  min-height: 2.6em;                  /* khớp với khung cha */
  text-align: center !important;
}



/* vệt sáng bên phải */
.apini-title--main::after{
  content:"";
  position:absolute; inset:auto 0 0 auto;   /* right:0; top:0; bottom:0; */
  right:0; top:0; bottom:0; width:3px;
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.35));
  opacity:.55; pointer-events:none;
}
 
 /*mobile thì cách 2 bên giảm  */
 @media (max-width: 1024px)
{
    .apini-title--main{
    margin: 10px 20px !important;
  }
}
   

/* 5) Màu theo mục (biến viền) – chỉ cho border .apini-card */
.apini-geo     { --apini-accent:#00ff99; }   /* Địa lý */
.apini-climate { --apini-accent:#1976D2; }   /* Khí hậu */

/* 6) Mở khóa “text trắng tuyệt đối” trước đây */
.apini-card .apini-title,
.apini-card .apini-dlkh-title{ color: var(--apini-title-fg, #111) !important; }

/* 7) Responsive tinh gọn */
@media (max-width: 768px){
  .weather-slide-inner .apini-section{ margin:16px auto; }
  .apini-card{ border-radius:12px; padding:14px; }
}


.apini-geo .apini-card{
  margin-bottom: 32px !important; /* khoảng cách giữa 2 khung */
  margin-top: 22px !important; /* kéo khung địa lý hở phía trên */
}


@media (max-width:767px){
  .weather-slider{ --peek: 40px; --gap: 6px; }
  .weather-info{ grid-template-columns:1fr; }
}

/* --- Viewport/Track --- */
.weather-viewport{ position:relative; overflow:hidden; width:100%; }
.weather-track{
  display:flex; gap: var(--gap);
  will-change: transform;
  transition: transform .5s ease;
}
.weather-track.no-anim{ transition:none; }  /* dùng khi snap clone */

/* Mỗi slide chiếm <100% để lộ slide kế tiếp */
.weather-track .weather-slide{
  flex: 0 0 calc(100% - var(--peek));
  display:block;
}


/* --- Nút điều hướng ở giữa + dạ quang --- */
.weather-viewport .apini-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border:0; border-radius:999px;
  background:#111827cc; color:#fff; font-size:22px; line-height:42px;
  cursor:pointer; z-index:5;
  box-shadow: 0 0 0 3px #00ffa055, 0 0 18px #00ffa0aa;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.apini-prev{ left:10px } .apini-next{ right:10px }
.weather-viewport .apini-arrow:hover{
  background:#10b981;
  box-shadow: 0 0 0 3px #34d39988, 0 0 20px #34d399cc;
  transform:translateY(-50%) scale(1.04);
}
.weather-viewport .apini-arrow:active{
  transform:translateY(-50%) scale(0.97);
}
/* Desktop: thu nhỏ toàn bộ slider ~10% và căn giữa */
@media (min-width:1024px){
  .weather-slider{
    max-width: 1180px;   /* chỉnh để khớp phần khác của trang */
    margin: 0 auto;
  }
}

/* 3) THU NHỎ NỘI DUNG TRONG MỖI SLIDE ~10–15% so với slide
      => ảnh, tiêu đề, mô tả cùng canh theo ảnh, tạo chỗ trống bên phải để 'hé' nhiều hơn */
.weather-track .weather-slide > .weather-title,
.weather-track .weather-slide > .weather-image,
.weather-track .weather-slide > .weather-info{
  max-width: 84%;         /* trước 100% -> nhỏ tổng thể ~16% */
  margin-left: auto;
  margin-right: auto;
}


/* Mobile: nội dung full width, hé ít hơn để dễ xem */
@media (max-width: 767px){

    .weather-viewport .apini-arrow{
        background: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(8px);
        top: 25%;
}
  .weather-slider{ --peek: 48px; --gap: 6px; }
    /* ❗ Thu nhỏ NỘI DUNG bên trong slide (không dùng selector > nữa) */
    .weather-track .weather-slide .weather-title,
    .weather-track .weather-slide .weather-image,
    .weather-track .weather-slide .weather-info{
      max-height: 64%;
      margin-left:auto; margin-right:auto;
    }
    .weather-title{
    font-size: 18px;           /* tùy chỉnh */
    line-height: 1.25;
    min-height: 2.6em;         /* ≈ 2 dòng -> ảnh luôn bắt đầu cùng 1 cao độ */
    margin: 0 0 6px;
  }
    .weather-info{
    margin-left: 5px !important;
    grid-template-columns: 1fr;   /* 1 cột như bạn đang dùng */
    font-size: 16px;               /* nhỏ hơn */
    gap: 10px;
  }
  .weather-info p{ margin: 0 0 4px; }

  .apini-prev{ left: 22px; }
  .apini-next{ right: 10px; }
}
.weather-viewport{ touch-action: pan-y; cursor: grab; }
.weather-viewport.is-dragging{ cursor: grabbing; }
.apini-card--flush { 
    padding-top: 10px !important;  
    padding-left: 0 !important; padding: 0 !important; 
    min-width: 100% !important;
}
.apini-dlkh-title{
min-width: 101% !important;
}
/* 1) Card Địa lý: cắt mọi thứ vượt viền */
.apini-geo .apini-card{
  overflow: hidden;                    /* clip phần nền/gradient thừa */
}
/* ADD (global) — cần cho mọi slider */
.weather-slider .weather-track{
  transition: transform 500ms ease;
  will-change: transform;
}
.weather-slider .weather-track.no-anim{
  transition: none !important;
}
.weather-highlight{
  color:#1976D2 !important;
  font-size:1.18rem;
  font-weight:600;
}
/* Base mặc định */
.weather-highlight{
  color:#1976D2 !important;
  font-size:1.18rem;
  font-weight:600;
  transition: font-size .45s ease, font-weight .45s ease, text-shadow .45s ease, transform .45s ease;
}

/* Trạng thái được “pump” tạm thời khi slide đổi */
.weather-highlight.is-pumped{
  font-size:2.18rem;
  font-weight:800;
  text-shadow:
    0 0 6px rgba(25,118,210,.85),
    0 0 18px rgba(25,118,210,.45);
  transform: translateZ(0); /* hint GPU để mượt */
}



/* =============== GEO: xếp lớp tiêu đề vs slider =============== */
/* Card bao tiêu đề/slider phải có position để tạo mặt phẳng stacking */
.apini-geo .apini-card { position: relative; }

/* MẶC ĐỊNH: slider nằm TRÊN, tiêu đề nằm DƯỚI */
.apini-geo :where(.apini-card) :where(.weather-slider){ position: relative; z-index: 10; }
.apini-geo :where(.apini-card) :where(.apini-dlkh-title){ position: relative; z-index: 2; }

/* KHI HOVER TIÊU ĐỀ: tiêu đề nhảy LÊN TRÊN slider */
.apini-geo :where(.apini-dlkh-title:hover){ z-index: 30 !important; }

/* ====== Tuỳ chọn A: làm mờ CHÍNH TIÊU ĐỀ khi hover (theo yêu cầu “làm mờ tiêu đề”) ====== */
.apini-geo :where(.apini-dlkh-title:hover){
  opacity: .72;
  filter: saturate(.95) contrast(.95);
  transition: opacity .25s ease, filter .25s ease, box-shadow .25s ease;
}

/* ====== Tuỳ chọn B (đổi ý): làm mờ SLIDER phía sau khi hover tiêu đề ======
   Bật block dưới và TẮT block Tuỳ chọn A phía trên nếu muốn mờ slider thay vì mờ tiêu đề.
   Overlay này nằm TRÊN slider (z-index:20) nhưng DƯỚI tiêu đề (z-index:30).
*/
/*
.apini-geo .apini-card:has(.apini-dlkh-title:hover)::after{
  content:"";
  position:absolute;
  inset: var(--glass-gap, 0);
  border-radius: inherit;
  background: rgba(0,0,0,.15);
  pointer-events: none;
  z-index: 20;
}
*/

/* Đảm bảo các nút điều hướng slider vẫn dùng được khi KHÔNG hover tiêu đề */
.apini-geo .weather-viewport .apini-arrow{ position: absolute; z-index: 15; }

.apini-title-outline-glow-red{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.apini-title-outline-glow-red img{
  height: 1.2em;
  width: auto;
  vertical-align: middle;
}


/* Chỉ mobile: thêm đệm phải cho tiêu đề phụ */
@media (max-width: 767px){
  .text-tieude-phu{
    padding-right: 16px;   /* chỉnh 12px / 16px / 20px tùy mắt */
  }
}

.icon-number-apini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  padding:0 3px;
  box-sizing:border-box;
  
  margin-right:4px;
  line-height:1;
  color:#ffffff;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  font-family:Arial, Helvetica, sans-serif;

  background:#4da3ff;
  border:none;
  border-radius:0px;
  position:relative;  
  text-shadow:0 1px 1px rgba(0,0,0,0.18);
  box-shadow:none;
}