/* site.css — ส่วนหัว/ท้ายเว็บ ย้ายมาจาก header.php + footer.php เดิม (inline style) */
    :root{
      --pcshs-navy:#0b2a52;
      --pcshs-navy-2:#123c73;
      --pcshs-blue:#2f6fbe;
      --pcshs-sky:#5ea8ff;
      --pcshs-soft:#f5f9ff;
      --pcshs-gold:#f0b44c;
      --pcshs-text:#1e293b;
      --pcshs-muted:#64748b;
      --pcshs-line:rgba(12,42,82,.10);
      --pcshs-line-soft:rgba(12,42,82,.06);
      --pcshs-shadow-lg:0 24px 60px rgba(11,42,82,.12);
      --header-h:90px;
      --topbar-h:42px;
      --all-header-h:132px;
      --brand-max-w:520px;
    }

    *{
      box-sizing:border-box;
    }

    body{
      font-family:"Inter","Prompt",sans-serif;
      color:var(--pcshs-text);
    }

    .site-header-wrap{
      position:fixed;
      inset:0 0 auto 0;
      z-index:1100;
      transition:transform .28s ease;
    }

    /* เลื่อนลงแล้วซ่อน topbar เหลือแค่เมนู (site-header.js ใส่ .is-scrolled) */
    html.is-scrolled .site-header-wrap{
      transform:translateY(calc(-1 * var(--topbar-h)));
    }

    @media (prefers-reduced-motion:reduce){
      .site-header-wrap{ transition:none; }
    }

    #headerSpacer{
      height:var(--all-header-h);
    }

    /* =========================================================
       Topbar
    ========================================================= */
    .topbar{
      height:var(--topbar-h);
      background:linear-gradient(90deg, rgba(11,42,82,.98), rgba(18,60,115,.96));
      color:rgba(255,255,255,.88);
      border-bottom:1px solid rgba(255,255,255,.08);
    }

    .topbar .container-fluid{
      height:100%;
      padding-left:1.25rem;
      padding-right:1.25rem;
    }

    .topbar-inner{
      height:100%;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:1rem;
      min-width:0;
    }

    .topbar-left,
    .topbar-right{
      display:flex;
      align-items:center;
      min-width:0;
    }

    .topbar-left{
      gap:.75rem;
      flex:1 1 auto;
      overflow:hidden;
    }

    .topbar-right{
      gap:.55rem;
      flex:0 0 auto;
      flex-shrink:0;
    }

    /* ไอคอนเครือข่ายหน้าข้อความแถบบน (เดิมเป็นป้าย "PCSHS Network" ซ้ำกับชื่อเว็บ) */
    .topbar-icon{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      flex:0 0 auto;
      color:rgba(255,255,255,.85);
      font-size:.8rem;
    }

    .topbar-badge{
      display:inline-flex;
      align-items:center;
      gap:.5rem;
      background:rgba(255,255,255,.08);
      border:1px solid rgba(255,255,255,.08);
      color:#fff;
      padding:.38rem .8rem;
      border-radius:999px;
      font-size:.78rem;
      font-weight:600;
      white-space:nowrap;
      flex:0 0 auto;
    }

    .topbar-text{
      font-size:.8rem;
      color:rgba(255,255,255,.78);
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      min-width:0;
      flex:1 1 auto;
      max-width:none;
    }

    .topbar-social{
      width:30px;
      height:30px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:0;
      border-radius:50%;
      color:rgba(255,255,255,.84);
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.08);
      transition:all .18s ease;
      flex:0 0 30px;
      text-decoration:none;
    }

    .topbar-social i{
      display:flex;
      align-items:center;
      justify-content:center;
      width:16px;
      height:16px;
      line-height:1;
      font-size:.9rem;
    }

    .topbar-social:hover{
      color:#fff;
      background:rgba(255,255,255,.14);
      transform:translateY(-1px);
    }

    /* =========================================================
       Language Switch
    ========================================================= */
    .lang-switch{
      display:inline-flex;
      align-items:center;
      gap:.28rem;
      margin-left:.2rem;
      padding:.22rem;
      border-radius:999px;
      background:rgba(255,255,255,.08);
      border:1px solid rgba(255,255,255,.10);
      backdrop-filter:blur(8px);
      -webkit-backdrop-filter:blur(8px);
      box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
      flex:0 0 auto;
    }

    .lang-switch-icon{
      width:28px;
      height:28px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border-radius:50%;
      color:rgba(255,255,255,.90);
      background:rgba(255,255,255,.06);
      border:1px solid rgba(255,255,255,.08);
      flex:0 0 28px;
    }

    .lang-switch-icon i{
      font-size:.82rem;
      line-height:1;
    }

    .lang-link{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      min-width:42px;
      height:30px;
      padding:0 .7rem;
      border-radius:999px;
      font-size:.76rem;
      font-weight:800;
      letter-spacing:.02em;
      text-decoration:none;
      color:rgba(255,255,255,.88);
      background:transparent;
      border:1px solid transparent;
      transition:all .18s ease;
      line-height:1;
    }

    .lang-link:hover{
      color:#fff;
      background:rgba(255,255,255,.12);
    }

    .lang-link.active{
      color:var(--pcshs-navy);
      background:#fff;
      border-color:#fff;
      box-shadow:0 4px 12px rgba(0,0,0,.10);
    }

    .lang-code{
      line-height:1;
    }

    /* =========================================================
       Main Header
    ========================================================= */
    .main-header{
      background:rgba(255,255,255,.88);
      backdrop-filter:blur(16px);
      -webkit-backdrop-filter:blur(16px);
      border-bottom:1px solid var(--pcshs-line-soft);
      box-shadow:0 10px 30px rgba(11,42,82,.05);
    }

    #mainNavbar{
      min-height:var(--header-h);
      padding:0;
      background:transparent;
    }

    #mainNavbar .container-fluid{
      padding-left:1.25rem;
      padding-right:1.25rem;
    }

    .header-shell{
      width:100%;
      min-height:var(--header-h);
      display:flex;
      align-items:center;
      gap:1.25rem;
      min-width:0;
    }

    /* =========================================================
       Brand
    ========================================================= */
    .navbar-brand{
      display:flex;
      align-items:center;
      gap:.65rem;
      min-width:0;
      max-width:var(--brand-max-w);
      width:100%;
      margin:0;
      padding:0;
      flex:0 1 var(--brand-max-w);
      text-decoration:none;
      overflow:visible;
    }

    .brand-logo-wrap{
      position:relative;
      width:62px;
      height:62px;
      flex:0 0 62px;
      border-radius:20px;
      display:grid;
      place-items:center;
      background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.95), rgba(255,255,255,.55)),
        linear-gradient(145deg, rgba(47,111,190,.12), rgba(11,42,82,.08));
      border:1px solid rgba(47,111,190,.12);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.8),
        0 10px 26px rgba(17,55,104,.10);
      overflow:hidden;
    }

    .brand-logo-wrap::before{
      content:"";
      position:absolute;
      inset:6px;
      border-radius:16px;
      background:linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0));
      pointer-events:none;
    }

    .brand-logo-wrap img{
      position:relative;
      z-index:1;
      width:44px;
      height:44px;
      object-fit:contain;
      display:block;
    }

    .brand-text{
      min-width:0;
      flex:1 1 auto;
      line-height:1.05;
    }

    .brand-title{
      position:relative;
      margin:0;
      padding-left:20px;
      font-size:1.28rem;
      font-weight:800;
      color:var(--pcshs-navy);
      letter-spacing:.01em;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
    }

    .brand-title .dot{
      position:absolute;
      left:5px;
      top:50%;
      transform:translateY(-48%);
      width:6px;
      height:6px;
      border-radius:50%;
      background:var(--pcshs-gold);
      box-shadow:0 0 0 6px rgba(240,180,76,.15);
    }

    .brand-subtitle{
      margin-top:.3rem;
      color:var(--pcshs-muted);
      font-size:.82rem;
      line-height:1.3;
      /* ไม่ตัดเป็น "..." — ถ้ายาวเกินให้ขึ้นบรรทัดที่ 2 (สูงสุด 2 บรรทัด) */
      white-space:normal;
      overflow:hidden;
      display:-webkit-box;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
      line-clamp:2;
      text-wrap:balance;
      max-width:100%;
    }

    html[lang="en"] .brand-subtitle{
      font-size:.78rem;
    }

    /* =========================================================
       Nav
    ========================================================= */
    .navbar-collapse{
      min-width:0;
      flex:1 1 auto;
    }

    /* Bootstrap ตั้ง .navbar-collapse flex-basis:100% → ไปบีบชื่อเว็บให้แคบทั้งที่ยังมีที่ว่าง
       ให้เมนูกินที่เท่าที่ใช้จริง ชื่อเว็บจะหดก็ต่อเมื่อจอแคบจริง ๆ */
    @media (min-width:1200px){
      #mainNavbar .navbar-collapse{
        flex-basis:auto;
        justify-content:flex-end;
      }
    }

    .navbar-nav{
      align-items:center;
      gap:.1rem;
      min-width:0;
    }

    .navbar .nav-item{
      position:relative;
    }

    .navbar .nav-link{
      position:relative;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:.45rem;
      padding:.9rem .78rem;
      color:var(--pcshs-text);
      font-size:.95rem;
      font-weight:600;
      white-space:nowrap;
      background:transparent !important;
      border:none;
      box-shadow:none !important;
      transition:color .18s ease, opacity .18s ease;
      text-decoration:none;
    }

    .navbar .nav-link::before,
    .navbar .nav-link::after{
      display:none !important;
      content:none !important;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link:focus{
      color:var(--pcshs-navy-2);
    }

    .navbar .nav-link.active{
      color:var(--pcshs-navy-2);
      font-weight:700;
    }

    @media (min-width:1200px){
      .navbar .nav-link.active{
        border-bottom:2px solid var(--pcshs-navy-2);
      }
    }

    /* =========================================================
       Dropdown caret
    ========================================================= */
    .nav-link.dropdown-toggle{
      padding-right:.8rem;
    }

    .navbar .dropdown-toggle::after{
      display:none !important;
    }

    .nav-caret{
      position:relative;
      width:11px;
      height:11px;
      flex:0 0 11px;
      margin-left:.1rem;
    }

    .nav-caret::before{
      content:"";
      position:absolute;
      top:1px;
      right:1px;
      width:6px;
      height:6px;
      border-right:1.8px solid currentColor;
      border-bottom:1.8px solid currentColor;
      transform:rotate(45deg);
      transform-origin:center;
      transition:transform .2s ease, top .2s ease;
      border-radius:1px;
    }

    .dropdown.show > .nav-link .nav-caret::before,
    .dropdown .nav-link[aria-expanded="true"] .nav-caret::before{
      transform:rotate(-135deg);
      top:4px;
    }

    /* =========================================================
       Dropdown menu
    ========================================================= */
    #mainNavbar .dropdown-menu{
      margin-top:.45rem;
      min-width:260px;
      border:none;
      border-radius:18px;
      padding:.42rem;
      background:rgba(255,255,255,.98);
      backdrop-filter:blur(16px);
      -webkit-backdrop-filter:blur(16px);
      box-shadow:var(--pcshs-shadow-lg);
      border:1px solid rgba(12,42,82,.08);
      overflow:hidden;
    }

    #mainNavbar .dropdown-menu::before{
      content:"";
      position:absolute;
      top:0;
      left:0;
      right:0;
      height:3px;
      background:linear-gradient(90deg, var(--pcshs-blue), var(--pcshs-sky));
    }

    #mainNavbar .dropdown-item{
      position:relative;
      padding:.58rem .82rem;
      border-radius:12px;
      font-size:.92rem;
      line-height:1.35;
      color:var(--pcshs-text);
      transition:all .16s ease;
      white-space:normal;
    }

    #mainNavbar .dropdown-item:hover,
    #mainNavbar .dropdown-item:focus{
      color:var(--pcshs-navy-2);
      background:var(--pcshs-soft);
      transform:translateX(2px);
    }

    @media (min-width:1200px){
      .navbar-collapse{
        justify-content:flex-end;
      }

      .navbar .dropdown::before{
        content:"";
        position:absolute;
        left:0;
        right:0;
        top:100%;
        height:14px;
      }
    }

    /* =========================================================
       Toggler
    ========================================================= */
    .navbar-toggler{
      width:44px;
      height:44px;
      padding:0;
      margin-left:auto;
      border:none !important;
      background:transparent !important;
      box-shadow:none !important;
      display:none;
      align-items:center;
      justify-content:center;
      position:relative;
      flex-shrink:0;
    }

    .navbar-toggler:focus,
    .navbar-toggler:active{
      outline:none !important;
      box-shadow:none !important;
      background:transparent !important;
    }

    .navbar-toggler .burger{
      width:24px;
      height:18px;
      position:relative;
      display:block;
    }

    .navbar-toggler .burger span{
      position:absolute;
      left:0;
      width:100%;
      height:2.4px;
      border-radius:999px;
      background:var(--pcshs-navy);
      transition:transform .24s ease, opacity .18s ease, top .24s ease, bottom .24s ease;
    }

    .navbar-toggler .burger span:nth-child(1){ top:0; }
    .navbar-toggler .burger span:nth-child(2){ top:50%; transform:translateY(-50%); }
    .navbar-toggler .burger span:nth-child(3){ bottom:0; }

    .navbar-toggler[aria-expanded="true"] .burger span:nth-child(1){
      top:50%;
      transform:translateY(-50%) rotate(45deg);
    }

    .navbar-toggler[aria-expanded="true"] .burger span:nth-child(2){
      opacity:0;
    }

    .navbar-toggler[aria-expanded="true"] .burger span:nth-child(3){
      bottom:auto;
      top:50%;
      transform:translateY(-50%) rotate(-45deg);
    }

    /* =========================================================
       Responsive
    ========================================================= */
    @media (max-width:1499.98px){
      :root{
        --brand-max-w:460px;
      }

      .topbar-text{
        max-width:none;
      }
    }

    @media (max-width:1399.98px){
      :root{
        --brand-max-w:420px;
      }

      .navbar .nav-link{
        padding:.88rem .66rem;
        font-size:.92rem;
      }

      .brand-title{
        font-size:1.2rem;
      }

      .brand-subtitle{
        font-size:.77rem;
      }

      html[lang="en"] .brand-subtitle{
        font-size:.74rem;
      }

      .topbar-text{
        max-width:none;
      }
    }

    @media (max-width:1299.98px){
      :root{
        --brand-max-w:380px;
      }

      .topbar-text{
        max-width:none;
      }
    }

    @media (max-width:1199.98px){
      :root{
        --header-h:84px;
        --topbar-h:40px;
        --all-header-h:124px;
        --brand-max-w:100%;
      }

      .navbar-toggler{
        display:inline-flex;
      }

      #mainNavbar .container-fluid{
        padding-left:1rem;
        padding-right:1rem;
      }

      .header-shell{
        gap:.85rem;
      }

      .navbar-brand{
        max-width:calc(100% - 56px);
        flex:1 1 auto;
      }

      .navbar-collapse{
        position:absolute;
        top:calc(100% + 10px);
        left:1rem;
        right:1rem;
        background:rgba(255,255,255,.97);
        backdrop-filter:blur(16px);
        -webkit-backdrop-filter:blur(16px);
        border:1px solid rgba(12,42,82,.08);
        border-radius:24px;
        box-shadow:var(--pcshs-shadow-lg);
        padding:.65rem;
      }

      .navbar-nav{
        align-items:stretch;
        gap:.05rem;
      }

      .navbar .nav-link{
        justify-content:space-between;
        width:100%;
        padding:.88rem .9rem;
        border-radius:14px;
      }

      .navbar .nav-link:hover,
      .navbar .nav-link:focus{
        background:rgba(47,111,190,.05) !important;
      }

      .navbar .nav-link.active{
        border-bottom:none;
        background:rgba(47,111,190,.08) !important;
      }

      #mainNavbar .dropdown-menu{
        position:static !important;
        transform:none !important;
        min-width:100%;
        margin:.18rem 0 .35rem;
        border-radius:16px;
        box-shadow:none;
        background:var(--pcshs-soft);
        border:1px solid rgba(47,111,190,.08);
        padding:.28rem;
      }

      #mainNavbar .dropdown-menu::before{
        display:none;
      }

      #mainNavbar .dropdown-item{
        padding:.56rem .78rem;
        border-radius:10px;
        font-size:.9rem;
      }

      #mainNavbar .dropdown-item:hover,
      #mainNavbar .dropdown-item:focus{
        transform:none;
      }

      .dropdown.show > .nav-link .nav-caret::before,
      .dropdown .nav-link[aria-expanded="true"] .nav-caret::before{
        top:4px;
      }

      .topbar-right{
        gap:.45rem;
        flex-wrap:nowrap;
        justify-content:flex-end;
      }

      .topbar-text{
        max-width:none;
      }
    }

    @media (max-width:991.98px){
      .topbar-text{
        display:none;
      }
    }

    @media (max-width:767.98px){
      :root{
        --header-h:80px;
        --topbar-h:38px;
        --all-header-h:118px;
      }

      .topbar .container-fluid,
      #mainNavbar .container-fluid{
        padding-left:.9rem;
        padding-right:.9rem;
      }

      .topbar-right{
        gap:.4rem;
      }

      .topbar-social{
        width:28px;
        height:28px;
        flex:0 0 28px;
      }

      .topbar-social i{
        width:15px;
        height:15px;
        font-size:.84rem;
      }

      .lang-switch{
        gap:.2rem;
        padding:.18rem;
      }

      .lang-switch-icon{
        width:26px;
        height:26px;
        flex-basis:26px;
      }

      .lang-link{
        min-width:40px;
        height:28px;
        padding:0 .58rem;
        font-size:.72rem;
      }

      .navbar-brand{
        gap:.58rem;
        max-width:calc(100% - 54px);
      }

      .brand-logo-wrap{
        width:54px;
        height:54px;
        flex-basis:54px;
        border-radius:18px;
      }

      .brand-logo-wrap img{
        width:38px;
        height:38px;
      }

      .brand-title{
        font-size:1.05rem;
        padding-left:16px;
      }

      .brand-title .dot{
        width:5px;
        height:5px;
        box-shadow:0 0 0 5px rgba(240,180,76,.15);
      }

      .brand-subtitle{
        font-size:.72rem;
        line-height:1.35;
        white-space:normal;
        overflow:visible;
        text-overflow:unset;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        max-width:220px;
      }

      html[lang="en"] .brand-subtitle{
        font-size:.7rem;
      }

      .navbar-collapse{
        left:.9rem;
        right:.9rem;
      }
    }

    @media (max-width:575.98px){
      .topbar-badge{
        padding:.34rem .7rem;
        font-size:.72rem;
      }

      .brand-subtitle{
        max-width:180px;
      }

      .navbar-collapse{
        left:.75rem;
        right:.75rem;
      }

      .lang-link{
        min-width:38px;
        padding:0 .5rem;
      }
    }

    @media (max-width:480px){
      .topbar-right .topbar-social:nth-child(1),
      .topbar-right .topbar-social:nth-child(2){
        display:none;
      }
    }

/* =========================================================
   Topbar ปรับใหม่ (2026-12-04)
   - คอม: ปุ่มภาษาเป็นตัวหนังสือ TH | EN, ปุ่มเข้าสู่ระบบเล็กลงพอดีแถบ
   - จอที่มีปุ่ม ☰ (<1200px): ซ่อนแถบบน ย้ายภาษา/เข้าสู่ระบบไปท้ายเมนู
========================================================= */
.topbar-right{ gap:.9rem; }
/* ปุ่มภาษา: แคปซูลกระจกเล็ก ลูกโลก + TH/EN ภาษาที่เลือกเป็นเม็ดสีขาว */
.lang-switch{
  gap:2px; margin:0; padding:2px 2px 2px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.lang-switch-icon{
  width:auto; height:auto; flex:0 0 auto; margin-right:4px;
  background:none; border:0; border-radius:0;
  color:rgba(255,255,255,.7);
}
.lang-switch-icon i{ font-size:.72rem; }
.lang-link{
  min-width:0; height:22px; padding:0 .6rem;
  border:0; border-radius:999px;
  font-size:.7rem; font-weight:700; letter-spacing:.06em;
  color:rgba(255,255,255,.78);
}
.lang-link:hover{ color:#fff; background:rgba(255,255,255,.1); }
.lang-link.active{
  color:#1d4f91;
  background:#fff;
  border:0;
  box-shadow:0 1px 3px rgba(4,20,60,.18);
}
.topbar .topbar-login{
  height:26px; padding:0 .85rem; gap:.35rem;
  font-size:.76rem; font-weight:600;
  box-shadow:none !important;
}

@media (min-width:1200px){
  .nav-mobile-extra{ display:none !important; }
}

@media (max-width:1199.98px){
  :root, .page-home{ --topbar-h:0px; --all-header-h:var(--header-h); }
  .topbar{ display:none !important; }
  html.is-scrolled .site-header-wrap{ transform:none; }
  /* พื้นเมนูทึบ 100% — เดิม .97 ทำให้ตัวหนังสือขาวของ hero ด้านหลังเห็นเป็นเงาจาง ๆ */
  .navbar-collapse{ background:#fff; }
  /* คำอธิบายใต้ชื่อเว็บ: ใช้ที่ว่างถึงปุ่ม ☰ ได้เต็ม สูงสุด 2 บรรทัด ไม่ล้นลงมา */
  .brand-subtitle{ max-width:none; overflow:hidden; }

  .nav-mobile-extra{
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.6rem;
    margin-top:.5rem; padding:.75rem .35rem .25rem;
    border-top:1px solid rgba(12,42,82,.08);
  }
  .nav-mobile-lang{
    display:inline-flex; padding:3px; border-radius:999px;
    background:rgba(12,42,82,.06);
  }
  .nav-mobile-lang a{
    padding:.38rem .95rem; border-radius:999px;
    font-size:.84rem; font-weight:600; text-decoration:none;
    color:var(--pcshs-muted);
  }
  .nav-mobile-lang a.active{
    color:#fff; background:var(--pcshs-navy);
  }
  .nav-mobile-user{ display:flex; flex-wrap:wrap; gap:.4rem; }
  .nav-mobile-user form{ margin:0; }
  .nav-mobile-btn{
    display:inline-flex; align-items:center; gap:.4rem;
    padding:.45rem .95rem; border-radius:999px;
    font-size:.86rem; font-weight:600; text-decoration:none;
    color:var(--pcshs-navy); background:rgba(12,42,82,.06); border:0;
  }
  .nav-mobile-login{
    color:#fff; background:linear-gradient(95deg, #2b8cff, #0b63e5);
  }
}

/* ---- footer ---- */
/* ==============================
   Footer
============================== */
.site-footer{
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.06), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255,255,255,.05), transparent 24%),
    linear-gradient(135deg, #0a2850 0%, #0c2f5f 45%, #0a2345 100%);
  color:#ffffff;
  padding:70px 0 24px;
  margin-top:90px;
  position:relative;
  overflow:hidden;
}

.site-footer::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  opacity:.9;
}

.site-footer a{
  text-decoration:none;
}

/* ==============================
   Grid
============================== */
.footer-grid{
  display:grid;
  grid-template-columns:minmax(300px, 1.5fr) 1fr 1fr 1fr;
  gap:48px 34px;
  align-items:start;
  position:relative;
  z-index:1;
}

/* ==============================
   Brand
============================== */
.footer-brand{
  max-width:460px;
}

.footer-brand-top{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:18px;
}

.footer-logo{
  flex:0 0 auto;
  width:90px;
  height:90px;
  padding:10px 8px;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  box-shadow:0 12px 30px rgba(0,0,0,.14);
  overflow:hidden;
}

.footer-logo img{
  width:48px;
  height:auto;
  display:block;
}

.footer-brand-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.footer-brand-title{
  font-size:2rem;
  font-weight:800;
  color:#ffffff;
  line-height:1.15;
  letter-spacing:-0.02em;
  margin:0 0 6px;
}

.footer-brand-sub{
  font-size:.96rem;
  color:rgba(255,255,255,.82);
  line-height:1.55;
  margin:0;
}

.footer-desc{
  font-size:1rem;
  color:rgba(255,255,255,.84);
  line-height:1.8;
  margin:0;
  max-width:430px;
}

/* ==============================
   Columns
============================== */
.footer-col h4{
  position:relative;
  font-size:1.02rem;
  font-weight:700;
  margin:0 0 18px;
  color:#ffffff;
  padding-bottom:10px;
}

.footer-col h4::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:38px;
  height:2px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
}

.footer-col ul{
  list-style:none;
  padding:0;
  margin:0;
}

.footer-col li{
  margin-bottom:10px;
}

.footer-col a{
  color:rgba(255,255,255,.82);
  font-size:.95rem;
  line-height:1.65;
  transition:all .22s ease;
}

.footer-col a:hover{
  color:#ffffff;
  opacity:1;
  padding-left:4px;
}

/* ==============================
   Contact
============================== */
.footer-contact li{
  font-size:.95rem;
  color:rgba(255,255,255,.82);
  line-height:1.8;
  word-break:break-word;
}

.footer-contact a{
  color:rgba(255,255,255,.82);
  transition:all .22s ease;
}

.footer-contact a:hover{
  color:#ffffff;
  padding-left:4px;
}

/* ==============================
   Bottom
============================== */
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.14);
  margin-top:46px;
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  position:relative;
  z-index:1;
}

.footer-copy{
  font-size:.9rem;
  color:rgba(255,255,255,.72);
  line-height:1.6;
}

.footer-links{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
}

.footer-links a{
  color:rgba(255,255,255,.80);
  font-size:.9rem;
  transition:all .2s ease;
}

.footer-links a:hover{
  color:#ffffff;
}

/* ==============================
   Responsive
============================== */
@media (max-width:1199.98px){
  .footer-grid{
    grid-template-columns:1.4fr 1fr 1fr;
  }

  .footer-col:last-child{
    grid-column:1 / -1;
    max-width:480px;
  }
}

@media (max-width:991.98px){
  .site-footer{
    padding:60px 0 22px;
    margin-top:72px;
  }

  .footer-grid{
    grid-template-columns:1fr 1fr;
    gap:34px 28px;
  }

  .footer-brand{
    max-width:none;
    grid-column:1 / -1;
  }
}

@media (max-width:575.98px){
  .site-footer{
    padding:52px 0 20px;
    margin-top:56px;
  }

  .footer-grid{
    grid-template-columns:1fr;
    gap:28px;
  }

  .footer-brand,
  .footer-col:last-child{
    grid-column:auto;
    max-width:none;
  }

  .footer-brand-top{
    gap:14px;
    align-items:center;
  }

  .footer-logo{
    width:78px;
    height:88px;
    padding:8px 6px;
    border-radius:20px;
  }

  .footer-logo img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
  }

  .footer-brand-title{
    font-size:1.7rem;
  }

  .footer-brand-sub{
    font-size:.92rem;
  }

  .footer-desc{
    font-size:.95rem;
    line-height:1.75;
  }

  .footer-col h4{
    margin-bottom:14px;
  }

  .footer-bottom{
    flex-direction:column;
    text-align:center;
    align-items:center;
    gap:10px;
  }

  .footer-links{
    justify-content:center;
    gap:12px 16px;
  }
}
