:root{
      --primary:#0B3D91;
      --primary-dark:#072d6d;
      --accent:#0891B2;
      --accent-soft:#ecfeff;
      --ink:#172033;
      --muted:#64748b;
      --line:#dbe4ee;
      --surface:#ffffff;
      --surface-soft:#f5f8fc;
      --shadow:0 18px 46px rgba(15,41,78,.12);
      --radius:18px;
    }

    *{
      box-sizing:border-box;
    }

    html{
      scroll-behavior:smooth;
    }

    body{
      margin:0;
      color:var(--ink);
      background:#fff;
      font-family:"Noto Sans Thai","Leelawadee UI",Tahoma,Arial,sans-serif;
      line-height:1.65;
      overflow-x:hidden;
    }

    body.drawer-lock{
      overflow:hidden;
    }

    img{
      display:block;
      max-width:100%;
    }

    a{
      color:inherit;
      text-decoration:none;
    }

    button,
    input,
    select{
      font:inherit;
    }

    button{
      cursor:pointer;
    }

    .container{
      width:min(1240px,calc(100% - 40px));
      margin:0 auto;
    }

    .topbar{
      color:#dbeafe;
      background:#071f49;
      font-size:13px;
    }

    .topbar-inner{
      min-height:38px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:24px;
    }

    .topbar-welcome{
      margin:0;
    }

    .topbar-contact{
      display:flex;
      align-items:center;
      gap:20px;
    }

    .topbar-contact a{
      transition:color .2s ease;
    }

    .topbar-contact a:hover{
      color:#67e8f9;
    }

    .header{
      position:relative;
      z-index:50;
      background:rgba(255,255,255,.98);
      border-bottom:1px solid var(--line);
      box-shadow:0 8px 24px rgba(15,23,42,.04);
    }

    .header-inner{
      min-height:82px;
      display:flex;
      align-items:center;
      gap:22px;
    }

    .logo{
      display:inline-flex;
      align-items:center;
      gap:10px;
      flex:none;
      color:var(--primary);
      font-size:19px;
      font-weight:800;
      line-height:1.2;
    }

    .logo img{
      width:42px;
      height:42px;
      object-fit:contain;
      border-radius:10px;
    }

    .main-nav{
      min-width:0;
      margin-left:auto;
    }

    .nav-list{
      display:flex;
      align-items:stretch;
      gap:2px;
      margin:0;
      padding:0;
      list-style:none;
    }

    .nav-item{
      position:relative;
      display:flex;
      align-items:center;
    }

    .nav-link{
      min-height:82px;
      display:flex;
      align-items:center;
      padding:0 10px;
      color:#26344d;
      font-size:14px;
      font-weight:700;
      white-space:nowrap;
      transition:color .2s ease,background .2s ease;
    }

    .nav-link:hover,
    .nav-item:focus-within > .nav-link{
      color:var(--primary);
      background:#f7faff;
    }

    .has-arrow::after{
      content:"";
      width:6px;
      height:6px;
      margin-left:7px;
      border-right:2px solid currentColor;
      border-bottom:2px solid currentColor;
      transform:rotate(45deg) translateY(-2px);
    }

    .dropdown-panel,
    .mega-menu{
      position:absolute;
      top:100%;
      left:0;
      z-index:80;
      visibility:hidden;
      opacity:0;
      transform:translateY(10px);
      pointer-events:none;
      transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
      color:var(--ink);
      background:#fff;
      border:1px solid var(--line);
      border-radius:0 0 18px 18px;
      box-shadow:var(--shadow);
    }

    .dropdown-panel::before,
    .mega-menu::before{
      content:"";
      position:absolute;
      left:0;
      right:0;
      top:-12px;
      height:12px;
    }

    .nav-item:hover > .dropdown-panel,
    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .dropdown-panel,
    .nav-item:focus-within > .mega-menu{
      visibility:visible;
      opacity:1;
      transform:translateY(0);
      pointer-events:auto;
    }

    .dropdown-panel{
      width:330px;
      padding:20px;
    }

    .dropdown-title,
    .mega-title{
      margin:0 0 13px;
      color:var(--primary);
      font-size:14px;
      font-weight:800;
    }

    .dropdown-list{
      display:grid;
      gap:5px;
    }

    .dropdown-list a{
      padding:9px 10px;
      border-radius:9px;
      font-size:14px;
      transition:background .2s ease,color .2s ease;
    }

    .dropdown-list a:hover{
      color:var(--primary);
      background:#eff6ff;
    }

    .dropdown-all{
      display:block;
      margin-top:12px;
      padding-top:12px;
      color:var(--primary);
      border-top:1px solid var(--line);
      font-size:14px;
      font-weight:800;
    }

    .mega-menu{
      width:680px;
      padding:22px;
    }

    .mega-wide{
      width:830px;
    }

    .nav-item:nth-last-child(-n+3) .mega-menu{
      right:0;
      left:auto;
    }

    .mega-grid{
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:10px;
    }

    .mega-card{
      min-width:0;
      display:flex;
      align-items:flex-start;
      gap:11px;
      padding:11px;
      background:#f8fafc;
      border:1px solid #edf2f7;
      border-radius:12px;
      transition:transform .2s ease,border-color .2s ease,background .2s ease;
    }

    .mega-card:hover{
      transform:translateY(-2px);
      background:#fff;
      border-color:#93c5fd;
    }

    .mega-card > img{
      width:48px;
      height:48px;
      flex:none;
      object-fit:cover;
      border-radius:10px;
      background:#fff;
    }

    .mega-card-body{
      min-width:0;
      display:block;
    }

    .mega-card-body strong,
    .mega-card-body small,
    .mega-card-body p{
      display:block;
    }

    .mega-card-body strong{
      overflow:hidden;
      color:#172033;
      font-size:14px;
      line-height:1.4;
      text-overflow:ellipsis;
      white-space:nowrap;
    }

    .mega-card-body small{
      margin-top:3px;
      color:var(--muted);
      font-size:11px;
      line-height:1.45;
    }

    .mega-card-body p{
      display:-webkit-box;
      overflow:hidden;
      margin:4px 0 0;
      color:var(--muted);
      font-size:12px;
      line-height:1.45;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
    }

    .mega-category-list{
      display:flex;
      flex-wrap:wrap;
      gap:8px;
      margin-bottom:16px;
    }

    .mega-category-list a{
      padding:7px 11px;
      color:var(--primary);
      background:#eff6ff;
      border:1px solid #dbeafe;
      border-radius:999px;
      font-size:12px;
      font-weight:700;
    }

    .mega-category-list a:hover{
      color:#fff;
      background:var(--primary);
    }

    .mega-footer{
      display:block;
      margin-top:16px;
      padding:12px 14px;
      color:#fff;
      background:var(--primary);
      border-radius:10px;
      text-align:center;
      font-size:14px;
      font-weight:800;
    }

    .header-btns{
      display:flex;
      align-items:center;
      gap:9px;
      flex:none;
    }

    .header-btns > a:not(.account-link){
      color:var(--primary);
      font-size:14px;
      font-weight:800;
    }

    .account-link{
      padding:10px 14px;
      color:#fff;
      background:var(--primary);
      border-radius:10px;
      font-size:14px;
      font-weight:800;
      box-shadow:0 8px 18px rgba(11,61,145,.2);
    }

    .account-link:hover{
      background:var(--primary-dark);
    }

    .hamburger{
      width:44px;
      height:44px;
      display:none;
      align-items:center;
      justify-content:center;
      flex-direction:column;
      gap:5px;
      padding:0;
      background:#eff6ff;
      border:1px solid #dbeafe;
      border-radius:11px;
    }

    .hamburger span{
      width:20px;
      height:2px;
      background:var(--primary);
      transition:transform .2s ease,opacity .2s ease;
    }

    .hamburger.active span:nth-child(1){
      transform:translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2){
      opacity:0;
    }

    .hamburger.active span:nth-child(3){
      transform:translateY(-7px) rotate(-45deg);
    }

    .drawer-overlay{
      position:fixed;
      inset:0;
      z-index:90;
      visibility:hidden;
      opacity:0;
      background:rgba(3,15,36,.62);
      backdrop-filter:blur(3px);
      transition:opacity .25s ease,visibility .25s ease;
    }

    .drawer-overlay.open{
      visibility:visible;
      opacity:1;
    }

    .mobile-drawer{
      position:fixed;
      top:0;
      right:0;
      z-index:100;
      width:min(390px,90vw);
      height:100%;
      overflow-y:auto;
      color:var(--ink);
      background:#fff;
      box-shadow:-24px 0 60px rgba(2,18,45,.24);
      transform:translateX(105%);
      transition:transform .28s ease;
    }

    .mobile-drawer.open{
      transform:translateX(0);
    }

    .drawer-head{
      min-height:76px;
      display:flex;
      align-items:center;
      gap:12px;
      padding:15px 18px;
      color:#fff;
      background:var(--primary);
    }

    .drawer-head > a{
      font-size:14px;
      font-weight:800;
    }

    .drawer-close{
      width:40px;
      height:40px;
      margin-left:auto;
      color:#fff;
      background:rgba(255,255,255,.12);
      border:1px solid rgba(255,255,255,.28);
      border-radius:10px;
      font-size:27px;
      line-height:1;
    }

    .drawer-menu{
      padding:15px 18px 30px;
    }

    .drawer-link,
    .drawer-toggle{
      width:100%;
      min-height:48px;
      display:flex;
      align-items:center;
      color:#1e293b;
      background:transparent;
      border:0;
      border-bottom:1px solid #e8eef5;
      text-align:left;
      font-weight:800;
    }

    .drawer-toggle{
      justify-content:space-between;
      padding:0;
    }

    .drawer-toggle::after{
      content:"+";
      color:var(--primary);
      font-size:22px;
      font-weight:400;
    }

    .drawer-toggle.active::after{
      content:"−";
    }

    .drawer-submenu{
      display:none;
      padding:8px 0 12px 13px;
      border-bottom:1px solid #e8eef5;
    }

    .drawer-submenu.open{
      display:grid;
    }

    .drawer-submenu a{
      padding:8px 10px;
      color:var(--muted);
      border-radius:8px;
      font-size:14px;
    }

    .drawer-submenu a:hover{
      color:var(--primary);
      background:#eff6ff;
    }

    .video-page{
      min-height:620px;
      padding-bottom:82px;
      background:linear-gradient(180deg,#f1f7ff 0,#fff 420px);
    }

    .video-page .video-heading{
      position:relative;
      overflow:hidden;
      padding:70px 0 54px;
      color:#fff;
      background:
        radial-gradient(circle at 12% 15%,rgba(8,145,178,.42),transparent 28%),
        radial-gradient(circle at 85% 12%,rgba(56,189,248,.22),transparent 31%),
        linear-gradient(135deg,#061d46 0%,#0B3D91 58%,#075a78 100%);
    }

    .video-page .video-heading::after{
      content:"";
      position:absolute;
      right:-80px;
      bottom:-170px;
      width:440px;
      height:300px;
      border:1px solid rgba(255,255,255,.14);
      border-radius:50%;
      box-shadow:0 0 0 42px rgba(255,255,255,.035),0 0 0 84px rgba(255,255,255,.025);
      transform:rotate(-12deg);
    }

    .video-page .heading-inner{
      position:relative;
      z-index:1;
      max-width:850px;
      text-align:center;
    }

    .video-page .eyebrow{
      display:inline-flex;
      align-items:center;
      gap:8px;
      margin-bottom:14px;
      padding:7px 13px;
      color:#cffafe;
      background:rgba(8,145,178,.22);
      border:1px solid rgba(103,232,249,.34);
      border-radius:999px;
      font-size:13px;
      font-weight:800;
    }

    .video-page .eyebrow::before{
      content:"";
      width:8px;
      height:8px;
      background:#67e8f9;
      border-radius:50%;
      box-shadow:0 0 0 5px rgba(103,232,249,.13);
    }

    .video-page .video-heading h1{
      margin:0;
      font-size:clamp(35px,5vw,62px);
      line-height:1.15;
      letter-spacing:-.02em;
    }

    .video-page .video-heading p{
      max-width:760px;
      margin:18px auto 0;
      color:#dbeafe;
      font-size:17px;
    }

    .video-page .video-category-bar{
      position:relative;
      z-index:4;
      margin-top:-24px;
    }

    .video-page .category-panel{
      display:flex;
      align-items:center;
      gap:12px;
      padding:16px;
      background:#fff;
      border:1px solid var(--line);
      border-radius:17px;
      box-shadow:0 16px 40px rgba(11,61,145,.13);
    }

    .video-page .category-label{
      flex:none;
      padding:8px 12px;
      color:#fff;
      background:var(--primary);
      border-radius:9px;
      font-size:13px;
      font-weight:800;
    }

    .video-page .category-links{
      display:flex;
      align-items:center;
      gap:8px;
      overflow-x:auto;
      padding-bottom:2px;
      scrollbar-width:thin;
    }

    .video-page .category-links a{
      flex:none;
      padding:8px 13px;
      color:#334155;
      background:#f4f7fb;
      border:1px solid #e4eaf2;
      border-radius:999px;
      font-size:13px;
      font-weight:700;
      transition:color .2s ease,background .2s ease,border-color .2s ease;
    }

    .video-page .category-links a:hover{
      color:#fff;
      background:var(--accent);
      border-color:var(--accent);
    }

    .video-page .video-content{
      padding-top:52px;
    }

    .video-page .section-head{
      display:flex;
      align-items:end;
      justify-content:space-between;
      gap:24px;
      margin-bottom:24px;
    }

    .video-page .section-head h2{
      margin:0;
      color:#10213d;
      font-size:30px;
      line-height:1.25;
    }

    .video-page .section-head p{
      margin:7px 0 0;
      color:var(--muted);
    }

    .video-page .section-badge{
      flex:none;
      padding:8px 13px;
      color:var(--accent);
      background:var(--accent-soft);
      border:1px solid #a5f3fc;
      border-radius:999px;
      font-size:13px;
      font-weight:800;
    }

    .video-page .video-grid{
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:24px;
    }

    .video-page .video-card{
      min-width:0;
      overflow:hidden;
      background:#fff;
      border:1px solid var(--line);
      border-radius:var(--radius);
      box-shadow:0 12px 32px rgba(15,41,78,.07);
      transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
    }

    .video-page .video-card:hover{
      transform:translateY(-6px);
      border-color:#93c5fd;
      box-shadow:0 22px 45px rgba(11,61,145,.14);
    }

    .video-page .video-cover{
      position:relative;
      display:block;
      aspect-ratio:16/9;
      overflow:hidden;
      background:#0f2548;
    }

    .video-page .video-cover img{
      width:100%;
      height:100%;
      object-fit:cover;
      transition:transform .35s ease;
    }

    .video-page .video-card:hover .video-cover img{
      transform:scale(1.045);
    }

    .video-page .video-cover::after{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(180deg,transparent 42%,rgba(3,15,36,.7));
    }

    .video-page .play-button{
      position:absolute;
      top:50%;
      left:50%;
      z-index:2;
      width:54px;
      height:54px;
      display:grid;
      place-items:center;
      color:var(--primary);
      background:rgba(255,255,255,.94);
      border:1px solid rgba(255,255,255,.65);
      border-radius:50%;
      box-shadow:0 12px 28px rgba(0,0,0,.2);
      transform:translate(-50%,-50%);
      transition:transform .2s ease,background .2s ease;
    }

    .video-page .play-button::before{
      content:"";
      width:0;
      height:0;
      margin-left:4px;
      border-top:8px solid transparent;
      border-bottom:8px solid transparent;
      border-left:13px solid currentColor;
    }

    .video-page .video-card:hover .play-button{
      color:#fff;
      background:var(--accent);
      transform:translate(-50%,-50%) scale(1.08);
    }

    .video-page .video-duration{
      position:absolute;
      right:12px;
      bottom:11px;
      z-index:3;
      padding:4px 8px;
      color:#fff;
      background:rgba(3,15,36,.82);
      border-radius:6px;
      font-size:12px;
      font-weight:800;
    }

    .video-page .video-card-body{
      padding:19px 19px 21px;
    }

    .video-page .video-type{
      display:inline-flex;
      margin-bottom:9px;
      color:var(--accent);
      font-size:12px;
      font-weight:800;
    }

    .video-page .video-card h3{
      display:-webkit-box;
      overflow:hidden;
      min-height:54px;
      margin:0;
      color:#15233b;
      font-size:19px;
      line-height:1.42;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:2;
    }

    .video-page .video-card h3 a:hover{
      color:var(--primary);
    }

    .video-page .video-summary{
      display:-webkit-box;
      overflow:hidden;
      min-height:72px;
      margin:11px 0 0;
      color:var(--muted);
      font-size:14px;
      line-height:1.7;
      -webkit-box-orient:vertical;
      -webkit-line-clamp:3;
    }

    .video-page .video-card-footer{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-top:16px;
      padding-top:14px;
      border-top:1px solid #edf2f7;
    }

    .video-page .watch-link{
      display:inline-flex;
      align-items:center;
      gap:8px;
      color:var(--primary);
      font-size:14px;
      font-weight:800;
    }

    .video-page .watch-link::after{
      content:"→";
      transition:transform .2s ease;
    }

    .video-page .watch-link:hover::after{
      transform:translateX(4px);
    }

    .video-page .duration-text{
      color:#64748b;
      font-size:12px;
      white-space:nowrap;
    }

    .video-page .pagination{
      display:flex;
      align-items:center;
      justify-content:center;
      flex-wrap:wrap;
      gap:8px;
      margin-top:42px;
    }

    .video-page .pagination a{
      min-width:42px;
      height:42px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:0 13px;
      color:#334155;
      background:#fff;
      border:1px solid var(--line);
      border-radius:10px;
      font-size:14px;
      font-weight:800;
      box-shadow:0 7px 18px rgba(15,41,78,.05);
      transition:color .2s ease,background .2s ease,border-color .2s ease;
    }

    .video-page .pagination a:hover,
    .video-page .pagination a.active,
    .video-page .pagination a.current{
      color:#fff;
      background:var(--primary);
      border-color:var(--primary);
    }

    .video-page .video-note{
      display:grid;
      grid-template-columns:1fr auto;
      align-items:center;
      gap:30px;
      margin-top:58px;
      padding:30px 34px;
      color:#fff;
      background:linear-gradient(120deg,#082b68,#0B3D91 55%,#087f9d);
      border-radius:22px;
      box-shadow:0 22px 50px rgba(11,61,145,.18);
    }

    .video-page .video-note h2{
      margin:0;
      font-size:25px;
    }

    .video-page .video-note p{
      margin:7px 0 0;
      color:#dbeafe;
    }

    .video-page .video-note a{
      padding:12px 19px;
      color:var(--primary);
      background:#fff;
      border-radius:11px;
      font-weight:800;
      white-space:nowrap;
    }

    .footer{
      color:#cbd5e1;
      background:#071a38;
    }

    .footer-grid{
      display:grid;
      grid-template-columns:1.45fr .8fr .8fr 1fr;
      gap:42px;
      padding:62px 0 42px;
    }

    .footer .logo{
      color:#fff;
    }

    .footer-brand p{
      max-width:430px;
      margin:18px 0;
      color:#aebdd1;
      font-size:14px;
    }

    .footer-social{
      color:#fff;
    }

    .footer h3{
      margin:7px 0 17px;
      color:#fff;
      font-size:16px;
    }

    .footer-links,
    .footer-contact{
      display:grid;
      gap:10px;
    }

    .footer-links a,
    .footer-contact a{
      color:#b9c7d9;
      font-size:14px;
      transition:color .2s ease,transform .2s ease;
    }

    .footer-links a:hover,
    .footer-contact a:hover{
      color:#67e8f9;
      transform:translateX(3px);
    }

    .footer-contact span{
      color:#8ea1ba;
      font-size:13px;
    }

    .footer-bottom{
      min-height:72px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:20px;
      padding:18px 0;
      color:#8295ae;
      border-top:1px solid rgba(255,255,255,.1);
      font-size:13px;
    }

    @media (max-width:1180px){
      .main-nav{
        display:none;
      }

      .hamburger{
        display:flex;
      }

      .header-btns{
        margin-left:auto;
      }

      .video-page .video-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
      }
    }

    @media (max-width:900px){
      .footer-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
      }

      .video-page .video-note{
        grid-template-columns:1fr;
      }

      .video-page .video-note a{
        justify-self:start;
      }
    }

    @media (max-width:680px){
      .container{
        width:min(100% - 28px,1240px);
      }

      .topbar-inner{
        min-height:54px;
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:2px;
        padding:7px 0;
      }

      .topbar-contact{
        gap:12px;
        flex-wrap:wrap;
      }

      .header-inner{
        min-height:72px;
      }

      .header .logo span{
        max-width:128px;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
      }

      .header-btns > a:not(.account-link){
        display:none;
      }

      .account-link{
        display:none;
      }

      .video-page .video-heading{
        padding:53px 0 47px;
      }

      .video-page .video-heading p{
        font-size:15px;
      }

      .video-page .category-panel{
        align-items:flex-start;
        flex-direction:column;
      }

      .video-page .category-links{
        width:100%;
      }

      .video-page .video-content{
        padding-top:40px;
      }

      .video-page .section-head{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
      }

      .video-page .video-grid{
        grid-template-columns:1fr;
      }

      .video-page .video-card h3{
        min-height:auto;
      }

      .video-page .video-note{
        padding:26px 22px;
      }

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

      .footer-bottom{
        align-items:flex-start;
        flex-direction:column;
        justify-content:center;
        gap:5px;
      }
    }