 :root{
    --ink:#142433;
    --slate:#4b5a67;
    --paper:#f1f3f0;
    --panel:#ffffff;
    --teal:#1f6f63;
    --teal-dim:#e4efec;
    --amber:#d98b2b;
    --amber-dim:#f7ecdc;
    --line: #5d6c7b24;
  }


/* =========================================================
   BODY
========================================================= */

body {
    overflow: hidden;
}


/* =========================================================
   OVERLAY
========================================================= */

.disable-embed {
    /* background-color: rgba(0, 0, 0, 0.5); */
    z-index: 10;
    width: 100%;
    height: 100%;
    position: fixed;
}


/* =========================================================
   NAVBAR
========================================================= */

.is-navbar {
    z-index: 40;
}


/* =========================================================
   MODAL
========================================================= */


.modal-content {
    position: relative;

    width: 80%;
    height: 80%;

    margin: 80px auto auto auto;

    z-index: 50;

    border-radius: 20px;

    overflow-y: auto;
    overflow-x: hidden;

    /* -----------------------------------------------------
       LIQUID GLASS
    ----------------------------------------------------- */

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82),
            rgba(255, 255, 255, 0.55)
        );

    backdrop-filter:
        blur(30px)
        saturate(180%);

    -webkit-backdrop-filter:
        blur(30px)
        saturate(180%);

    border:
        1px solid rgba(255, 255, 255, 0.45);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.18),
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.75);

    /* -----------------------------------------------------
       OPEN ANIMATION
    ----------------------------------------------------- */

    transform-origin: top center;

    animation:
        scrollBook
        1.2s
        cubic-bezier(0.16, 1, 0.3, 1)
        both;

    will-change:
        transform,
        opacity;
}


/* =========================================================
   LIQUID GLASS LIGHT
========================================================= */

.modal-content::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.28),
            transparent 35%,
            transparent 70%,
            rgba(255, 255, 255, 0.08)
        );
}


/* =========================================================
   MODAL OPEN ANIMATION
   Kiểu mở như cuốn sổ
========================================================= */

@keyframes scrollBook {

    0% {
        opacity: 0;

        transform:
            perspective(1200px)
            rotateX(-75deg)
            scaleY(0.05);
    }

    40% {
        opacity: 1;
    }

    70% {
        transform:
            perspective(1200px)
            rotateX(8deg)
            scaleY(1.02);
    }

    100% {
        opacity: 1;

        transform:
            perspective(1200px)
            rotateX(0deg)
            scaleY(1);
    }
}






/* =========================================================
   ARTICLE HEADER
========================================================= */

.article-header {
    max-width: 90%;

    margin: 0 auto;

    padding:
        20px
        40px
        35px
		10px;
}


/* Category */

.article-category {
    font-size: 13px;

    font-weight: 600;

    letter-spacing: 0.08em;

    color:
        rgba(0, 0, 0, 0.48);

    margin-bottom: 14px;
}


/* Title */

.article-header h1 {
    margin: 0;

    font-size: clamp(26px, 5vw, 38px);

    line-height: 1.08;

    letter-spacing: -0.035em;

    font-weight: 700;

    color: #111;
}


/* Description */

.article-description {
    margin-top: 22px;

    max-width: 90%px;

    font-size: 18px;

    line-height: 1.55;

    color:
        rgba(0, 0, 0, 0.58);
}


/* Meta */

.article-meta {
    display: flex;

    gap: 10px;

    margin-top: 22px;

    font-size: 14px;

    color:
        rgba(0, 0, 0, 0.42);
}


/* =========================================================
   TABS
========================================================= */

.article-tabs {

    position: sticky;

    top: 10px;

    z-index: 20;

    /* -----------------------------------------------------
       Chỉ rộng bằng nội dung
    ----------------------------------------------------- */

    width: fit-content;

    margin:
        0 auto;

    padding: 6px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 5px;

    border-radius: 999px;

    background: transparent;

    /*
       Biến này sẽ được JavaScript điều khiển
       từ 0 → 1
    */
    --glass-opacity: 0;

    isolation: isolate;
}


/* =========================================================
   LIQUID GLASS BACKGROUND CỦA CỤM TAB
========================================================= */

.article-tabs::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    border-radius: inherit;


    /* -----------------------------------------------------
       Background thay đổi opacity theo scroll
    ----------------------------------------------------- */

    background:
        rgba(
            255,
            255,
            255,
            calc(0.48 * var(--glass-opacity))
        );


    /* -----------------------------------------------------
       Border
    ----------------------------------------------------- */

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            calc(0.45 * var(--glass-opacity))
        );


    /* -----------------------------------------------------
       Shadow
    ----------------------------------------------------- */

    box-shadow:

        0 8px 25px
        rgba(
            0,
            0,
            0,
            calc(0.06 * var(--glass-opacity))
        ),

        inset 0 1px 0
        rgba(
            255,
            255,
            255,
            calc(0.65 * var(--glass-opacity))
        );


    /*
       Blur luôn có,
       nhưng background ban đầu trong suốt
    */

    backdrop-filter:
        blur(25px)
        saturate(180%);

    -webkit-backdrop-filter:
        blur(25px)
        saturate(180%);


    /* -----------------------------------------------------
       Quan trọng:
       background xuất hiện từ từ
    ----------------------------------------------------- */

    opacity:
        var(--glass-opacity);

    transition:
        opacity 0.08s linear;
}


/* =========================================================
   TAB BUTTON
========================================================= */

.tab {

    border: 0;

    padding:
        9px 18px;

    border-radius: 999px;

    background: transparent;

    color:
        rgba(0, 0, 0, 0.55);

    font-size: 14px;

    font-weight: 500;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}


/* Hover */

.tab:hover {

    background:
        rgba(255, 255, 255, 0.38);

    color: #111;
}


/* Active */

.tab.active {

    background:
        rgba(255, 255, 255, 0.72);

    color: #111;

    box-shadow:

        0 2px 10px
        rgba(0, 0, 0, 0.08),

        inset 0 1px 1px
        rgba(255, 255, 255, 0.8);
}


/* Click */

.tab:active {

    transform:
        scale(0.96);
}


/* =========================================================
   ARTICLE BODY
========================================================= */

.article-body {

    max-width: 90%;

    margin: 0 auto;

    padding:
        0px
        0px
        0px;
}


/* Heading */


.article-body h2 {

    margin-top: 15px;

    margin-bottom: 18px;

    font-size: 30px;

    letter-spacing: -0.025em;

    color: #111;
}


.article-body h2:first-child {

    margin-top: 0;
}


/* Paragraph */

.article-body p {

    margin:
        0 0 22px;

    font-size: 17px;

    line-height: 1.75;

    color:
        rgba(0, 0, 0, 0.68);
}


/* =========================================================
   HIGHLIGHT
========================================================= */

.article-highlight {

    margin:
        35px 0;

    padding:
        22px 25px;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.38);

    border:
        1px solid
        rgba(255, 255, 255, 0.45);

    box-shadow:

        inset 0 1px 1px
        rgba(255, 255, 255, 0.65),

        0 8px 25px
        rgba(0, 0, 0, 0.05);

    backdrop-filter:
        blur(20px);

    -webkit-backdrop-filter:
        blur(20px);
}


.article-highlight strong {

    font-size: 15px;
}


.article-highlight p {

    margin:
        8px 0 0;

    font-size: 15px;
}


/* =========================================================
   SCROLLBAR
========================================================= */

.modal-content::-webkit-scrollbar {

    width: 8px;
}


.modal-content::-webkit-scrollbar-track {

    background: transparent;
}


.modal-content::-webkit-scrollbar-thumb {

    background:
        rgba(0, 0, 0, 0.15);

    border-radius: 999px;
}


.modal-content::-webkit-scrollbar-thumb:hover {

    background:
        rgba(0, 0, 0, 0.25);
}


/*CONTENT*/

  img{ max-width:100%; display:block; }
  a{ color:inherit; }

  .wrap-content{ max-width:1120px; margin:0 auto; padding:0 24px; }

  /* cá nhân hoá riêng cho từng khối — thêm style tuỳ chỉnh tại đây */
  .wrap-hero{}
  .wrap-problem{}
  .wrap-services{}
  .wrap-gallery{}
  .wrap-why{}
  .wrap-process{}
  .wrap-cta{}

  .accent-bar{
    width: 100px; 
	height:4px; border-radius:2px;
    background:var(--teal);
    margin-bottom:18px;
  }
  .accent-bar.amber{ background:var(--teal); }

  h1,h2,h3{ font-weight:700; letter-spacing:-0.01em; margin:0; }
  p{ margin:0; }

  .btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:14px 26px;
    border-radius:6px;
    font-weight:600;
    font-size:0.98rem;
    text-decoration:none;
    border:1px solid transparent;
    cursor:pointer;
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .btn:focus-visible{ outline:2px solid var(--amber); outline-offset:3px; }
  .btn-primary{ 
  background: rgba(255, 255, 255, 0.2);
   
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  }
  .btn-primary:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(31,111,99,0.28); }
  .btn-ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,0.4); }
  .btn-ghost:hover{ border-color:#fff; }

  /* ---------- HERO ---------- */
  .hero{ padding:88px 0 76px; }
  .hero-grid{
    display:grid;
    grid-template-columns:1.15fr 0.85fr;
    gap:64px;
    align-items:center;
  }
  .hero h1{
    font-size:clamp(2.05rem, 3.6vw, 3rem);
    max-width:15ch;
    margin-bottom:20px;
  }
  .hero .lead{
    color:var(--slate);
    font-size:1.1rem;
    max-width:46ch;
    margin-bottom:32px;
  }
  .hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }
  .btn-outline{
    background:transparent; color:var(--ink);
    border-color:var(--ink);
  }
  .btn-outline:hover{ background:var(--ink); color:#fff; }

  .status-card{
   /* background:var(--panel);*/
    border:0;
    border-radius:10px;
    padding:26px 26px 22px;
  }
  .status-card .status-label{
    font-size:0.8rem; color:var(--slate); margin-bottom:16px;
  }
  .status-row{
    display:flex; align-items:center; justify-content:space-between;
    padding:12px 0;
    border-bottom:0;
  }
  .status-row:last-of-type{ border-bottom:none; }
  .status-row .name{ font-weight:600; font-size:0.95rem; }
  .status-pill{
    display:inline-flex; align-items:center; gap:7px;
    font-size:0.82rem; color:var(--teal); font-weight:600;
  }
  .dot{ width:8px; height:8px; border-radius:50%; background:var(--teal); flex:none; }
  .status-card .foot-note{
    margin-top:16px; font-size:0.78rem; color:var(--slate);
  }

  /* ---------- SECTION SHELL ---------- */


  /* ---------- PROBLEM ---------- */
  .problem{  border-top:0; border-bottom:0; }
  .problem-grid{
    display:grid;
    grid-template-columns:1fr 0.85fr;
    gap:56px;
    align-items:center;
  }
  .check-list{ list-style:none; margin:24px 0 0; padding:0; }
  .check-list li{
    display:flex; gap:12px; align-items:flex-start;
    padding: 2px 0;
    font-size:1rem;
  }
  .mark{
    width:9px; height:9px; margin-top:8px; flex:none;
    background:var(--teal);
  }
  .problem-grid img{ border-radius:10px; }

  /* ---------- SERVICES / BENEFITS ---------- */
  .cols{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:56px;
  }
  .list-row{
    padding:0;
    margin: 15px 0;
	border-bottom: var(--line) solid 1px;
  }
  .list-row:first-of-type{ padding-top:0; }
  .list-row .row-head{
    display:flex; align-items:center; gap:10px;
    font-weight:600; font-size:1.02rem;
    margin-bottom:6px;
  }
  .row-head .mark{ margin-top:0; }
  .list-row p{ color:var(--slate); font-size:0.95rem; margin-left:0px; }
  .col-label{
    font-weight:700; font-size:1.05rem; margin-bottom:6px;
  }
  .col-sub{ color:var(--slate); font-size:0.92rem; margin-bottom:22px; }

  /* ---------- GALLERY ---------- */
  .gallery{ padding-top:0; }
  .gallery-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:16px;
  }
  .gallery-grid img{
    border-radius:8px;
    aspect-ratio:4/3;
    object-fit:cover;
    width:100%;
    filter:saturate(1.02);
    transition:filter .2s ease;
  }
  .gallery-grid img:hover{ filter:saturate(1.15) brightness(1.03); }

  /* ---------- WHY US ---------- */
  .why{ 
  /*background:var(--panel); */
  border-top:0; 
  border-bottom:0; }
  .why-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap: 12px 56px;
	
  }
  .why-item{ 
    padding:0;
    margin: 15px 0;
	border-bottom: var(--line) solid 1px;
  
  }
  .why-item h3{ font-size:1.02rem; margin-bottom:8px; }
  .why-item p{ color:var(--slate); font-size:0.95rem; }
  .why-item.span-2{ grid-column:1 / -1; max-width:640px; }

  /* ---------- PROCESS ---------- */
  .process-track{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:22px;
    margin-top:8px;
    position:relative;
  }
  .process-track::before{
    content:"";
    position:absolute;
    top:19px; left:8%; right:8%;
    height:1px;
    background:var(--line);
  }
  .step{ position:relative; }
  .step-num{
    width:38px; height:38px; border-radius:50%;
    background:var(--ink); color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-weight:700; font-size:0.95rem;
    position:relative; z-index:1;
    margin-bottom:16px;
  }
  .step h3{ font-size:0.98rem; margin-bottom:8px; }
  .step p{ color:var(--slate); font-size:0.88rem; }

  /* ---------- CTA ---------- */
  .cta{
    background:var(--ink); color:#fff;
    border-radius:14px;
    padding:52px;
    display:grid;
    grid-template-columns:1.3fr 0.7fr;
    gap:32px;
    align-items:center;
    margin-bottom:80px;
  }
  .cta h2{ color:#fff; font-size:clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom:12px; max-width:20ch; }
  .cta p{ color:rgba(255,255,255,0.72); max-width:44ch; }
  .cta-actions{ display:flex; flex-direction:column; gap:12px; align-items:flex-start; }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 860px){
    .hero-grid, .problem-grid, .cols, .why-grid, .cta{
      grid-template-columns:1fr;
    }
    .problem-grid{ gap:32px; }
    .problem-grid > *:first-child{ order:2; }
    .problem-grid > *:last-child{ order:1; }
    .gallery-grid{ grid-template-columns:repeat(2, 1fr); }
    .process-track{ grid-template-columns:1fr; gap:28px; }
    .process-track::before{ display:none; }
    .why-item.span-2{ max-width:none; }
    .cta{ padding:36px 28px; }
  }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    .btn, .gallery-grid img{ transition:none; }
  }
  
  .article-body section{
	  margin-top: 40px
  }
  
/*END CONTENT*/

/*MENU*/
/* =========================================================
   MENU TABS
========================================================= */

.menu-tabs {
    position: fixed;

    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin: 0 auto;

    padding: 6px;

    gap: 4px;

    border-radius: 999px;

    /* Biến opacity có thể điều khiển bằng JS */
    --glass-opacity: 1;

    isolation: isolate;
	z-index: 1000
}


/* =========================================================
   LIQUID GLASS BACKGROUND
========================================================= */

.menu-tabs::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: -1;

    border-radius: inherit;

    background:
        rgba(
            255,
            255,
            255,
            calc(0.48 * var(--glass-opacity))
        );

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            calc(0.45 * var(--glass-opacity))
        );

    backdrop-filter:
        blur(25px)
        saturate(180%);

    -webkit-backdrop-filter:
        blur(25px)
        saturate(180%);

    box-shadow:

        0 8px 25px
        rgba(
            0,
            0,
            0,
            calc(0.06 * var(--glass-opacity))
        ),

        inset 0 1px 0
        rgba(
            255,
            255,
            255,
            calc(0.65 * var(--glass-opacity))
        );

    opacity:
        var(--glass-opacity);

    transition:
        opacity .35s ease;
}


/* =========================================================
   LINK
========================================================= */

.menu-tabs .categorie {

    display: flex;

    text-decoration: none;

    color: inherit;
}


/* =========================================================
   TAB
========================================================= */

.menu-tabs .tab {

    border: 0;

    margin: 0;

    padding:
        9px 18px;

    min-height: 38px;

    border-radius: 999px;

    background: transparent;

    color:
        rgba(0, 0, 0, 0.55);

    font-size: 14px;

    font-weight: 500;

    line-height: 1;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        box-shadow .25s ease,
        transform .18s ease;
}


/* =========================================================
   HOVER
========================================================= */

.menu-tabs .tab:hover {

    background:
        rgba(255, 255, 255, 0.35);

    color: #111;
	
}


/* =========================================================
   ACTIVE
========================================================= */

.menu-tabs .tab.active {

     background:
        rgba(255, 255, 255, 0.6);

    color: #111;

    box-shadow:

        0 2px 10px
        rgba(0, 0, 0, 0.08),

        inset 0 1px 1px
        rgba(255, 255, 255, 0.9);
}


/* =========================================================
   CLICK
========================================================= */

.menu-tabs .tab:active {

    transform:
        scale(0.96);
}


.menu-tabs span.fa, .menu-tabs span.fas {
	margin-right: 5px
}

/*END MENU*/

.list-inline{
	display: flex;
	list-style: none
}

.list-inline li{
	padding: 5px; margin: 5px
}

/* =========================================================
   APPLE STYLE - POST GRID
========================================================= */

#postDivBoxAjax {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 24px;

    margin: 0;
    padding: 10px 0 30px;

    width: 100%;
}


/* =========================================================
   BỎ ẢNH HƯỞNG BOOTSTRAP COL-MD-3
========================================================= */

#postDivBoxAjax > .col-md-3 {
    width: 100%;
    max-width: 100%;

    padding: 0;
    margin: 0;

    float: none;
}


/* =========================================================
   POST CARD
========================================================= */

#postDivBoxAjax .post-card {

    position: relative;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.72),
            rgba(255,255,255,.48)
        );

    border: 1px solid rgba(255,255,255,.65);

    box-shadow:
        0 10px 30px rgba(0,0,0,.06),
        0 2px 8px rgba(0,0,0,.04),
        inset 0 1px 1px rgba(255,255,255,.85);

    backdrop-filter:
        blur(22px)
        saturate(160%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(160%);

    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        box-shadow .45s cubic-bezier(.22,1,.36,1);

    will-change: transform;
}


/* =========================================================
   CARD HOVER
========================================================= */

#postDivBoxAjax .post-card:hover {

    transform:
        translateY(-5px)
        scale(1.008);

    box-shadow:
        0 20px 45px rgba(0,0,0,.10),
        0 5px 15px rgba(0,0,0,.05),
        inset 0 1px 1px rgba(255,255,255,.9);
}


/* =========================================================
   IMAGE
========================================================= */

#postDivBoxAjax .post-card-image {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #f2f2f2;
}


/* =========================================================
   IMAGE
========================================================= */

#postDivBoxAjax .post-card-image img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .7s cubic-bezier(.22,1,.36,1),
        filter .5s ease;
}


/* =========================================================
   IMAGE HOVER
========================================================= */

#postDivBoxAjax .post-card:hover
.post-card-image img {

    transform: scale(1.035);

    filter: brightness(1.03);
}


/* =========================================================
   IMAGE LIGHT
========================================================= */

#postDivBoxAjax .post-card-image::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,.08),
            transparent 35%,
            rgba(0,0,0,.03)
        );
}


/* =========================================================
   CONTENT
========================================================= */

#postDivBoxAjax .post-card-content {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 17px 18px 18px;
}


/* =========================================================
   CATEGORY
========================================================= */

#postDivBoxAjax .post-card-content .categorie {

    display: inline-flex;

    width: fit-content;

    align-items: center;

    margin: 0;

    padding: 0;

    border-radius: 999px;

    background:
        rgba(255,255,255,.55);

    border:
        1px solid rgba(255,255,255,.55);

    color:
        rgba(0,0,0,.58);

    font-size: 11px;

    font-weight: 500;

    line-height: 1.2;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease;
}


#postDivBoxAjax .post-card-content
.categorie:hover {

    background:
        rgba(255,255,255,.85);

    color: #111;
}


/* =========================================================
   TITLE
========================================================= */

#postDivBoxAjax .entry-title {

    margin: 5px 0 14px;

    padding: 0 !important;

    font-size: 17px;

    line-height: 1.38;

    font-weight: 600;

    letter-spacing: -.25px;
}


#postDivBoxAjax .entry-title a {

    color: #111;

    text-decoration: none;

    transition:
        color .25s ease;
}


#postDivBoxAjax .entry-title a:hover {

    color: #007aff;
}


/* =========================================================
   META
========================================================= */

#postDivBoxAjax .post-card-info {

    margin-top: auto;

    padding-top: 12px;

    border-top:
        1px solid rgba(0,0,0,.055);
}


#postDivBoxAjax .entry-meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin: 0;

    padding: 0;

    list-style: none;
}


#postDivBoxAjax .entry-meta li {

    margin: 0;

    padding: 0;

    color:
        rgba(0,0,0,.45);

    font-size: 11px;
}


#postDivBoxAjax .entry-meta a {

    color:
        rgba(0,0,0,.48);

    text-decoration: none;
}


#postDivBoxAjax .entry-meta i {

    margin-right: 4px;

    font-size: 10px;
}


/* =========================================================
   DOT
========================================================= */

#postDivBoxAjax .entry-meta .dot {

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background:
        rgba(0,0,0,.25);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    #postDivBoxAjax {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    #postDivBoxAjax {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px;
    }

    #postDivBoxAjax .post-card {

        border-radius: 18px;
    }

    #postDivBoxAjax .post-card-content {

        padding: 14px;
    }

    #postDivBoxAjax .entry-title {

        font-size: 15px;

        line-height: 1.35;
    }

}


/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 480px) {

    #postDivBoxAjax {

        grid-template-columns:
            1fr;

        gap: 15px;
    }

}



/* =========================================================
   PAGINATION — APPLE STYLE
========================================================= */

/* =========================================================
   PAGINATION — LIQUID GLASS
========================================================= */

.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", Helvetica, Arial, sans-serif;
}

.pagination .list-inline {
    display: flex;
    align-items: center;
    gap: 4px;

    list-style: none;
    margin: 0;
    padding: 6px;

    border-radius: 980px;

    /* kính mờ cho thanh chứa */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.55),
        rgba(255, 255, 255, 0.28)
    );

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.45);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.pagination .list-inline li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;
    padding: 0 4px;

    border-radius: 50%;
    cursor: pointer;
    user-select: none;

    transition:
        background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination .list-inline li a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;

    text-decoration: none;
    outline: none;
}

.pagination .list-inline li a i {
    font-size: 12px;
    color: rgba(29, 29, 31, 0.55);
    transition: color 0.25s ease;
}

/* Hover — lớp kính mờ nhẹ nổi lên */
.pagination .list-inline li:hover {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.pagination .list-inline li:hover a i {
    color: #1d1d1f;
}

.pagination .list-inline li:active {
    transform: scale(0.88);
}

/* Trang đang active — viên kính "nổi" rõ nhất, có glow nhẹ */
.pagination .list-inline li.active {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.65)
    );

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.pagination .list-inline li.active a {
    color: #1d1d1f;
    font-weight: 600;
}

/* Ánh sáng chéo trên viên active, giống modal-content::before */
.pagination .list-inline li.active::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.5),
        transparent 60%
    );
}

.pagination .list-inline li.paginate_button a i {
    color: rgba(29, 29, 31, 0.55);
}

.pagination .list-inline li.disabled {
    cursor: not-allowed;
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 480px) {
    .pagination .list-inline li {
        min-width: 30px;
        height: 30px;
    }
    .pagination .list-inline li a {
        font-size: 13px;
    }
}



/* =========================================================
   APPLE LOADING — LIQUID GLASS
========================================================= */

.apple-loading {
	
	  position: fixed;   /* thêm dòng này */
    z-index: 100;            /* thêm dòng này — cao hơn ::before (mặc định z-index auto) */

	top: 0;
	left: 0;
	
    display: flex;
    align-items: center;
    justify-content: center;

  
    width: 100%;
    height: 100%;
  
}

/* ---------- vòng kính bao quanh spinner ---------- */
.apple-spinner-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    width: 80%;
    height: 80%;
    margin: 90px auto auto auto;
    border-radius: 20px;

    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1)
    );

    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border: 1px solid rgba(255, 255, 255, 0.45);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.10),
        inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

/* ---------- spinner 12 cánh kiểu Apple ---------- */
.apple-spinner {
    position: relative;
    width: 34px;
    height: 34px;
}

.apple-spinner div {
    position: absolute;
    top: 0;
    left: 50%;

    width: 3px;
    height: 9px;
    margin-left: -1.5px;

    border-radius: 2px;

    background: rgba(29, 29, 31, 0.85);

    transform-origin: 1.5px 17px;

    animation: apple-fade 1s linear infinite;
}

/* 12 cánh, mỗi cánh cách nhau 30deg, delay lệch nhau tạo hiệu ứng đuổi nhau */
.apple-spinner div:nth-child(1)  { transform: rotate(0deg);   animation-delay: -1.1s; }
.apple-spinner div:nth-child(2)  { transform: rotate(30deg);  animation-delay: -1.0s; }
.apple-spinner div:nth-child(3)  { transform: rotate(60deg);  animation-delay: -0.9s; }
.apple-spinner div:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.8s; }
.apple-spinner div:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.7s; }
.apple-spinner div:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.6s; }
.apple-spinner div:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.5s; }
.apple-spinner div:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.4s; }
.apple-spinner div:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.3s; }
.apple-spinner div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.apple-spinner div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.apple-spinner div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes apple-fade {
    0%   { opacity: 1; }
    100% { opacity: 0.15; }
}

@media (prefers-reduced-motion: reduce) {
    .apple-spinner div { animation: none; opacity: 0.5; }
}