    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      /* font-family: 'Kanit', sans-serif; */
      /* font-family: 'Noto Sans Thai', sans-serif !important; */
      font-family: 'Noto Sans Thai', sans-serif;

    }

    /* body {
      background: linear-gradient(120deg, #ffe9f4, #e5f6ff);
      color: #333;

    } */

    body {
      background: linear-gradient(120deg, #fff7fb, #f0faff);
      color: #333;

    }

        header {
      background: linear-gradient(to right, #ff90b3, #90caff);
      padding: 20px;
      text-align: center;
      color: white;
      font-weight: bold;
      font-size: 1.5rem;
      animation: fadeDown 1s ease-in-out;

    }

    .menu-toggle {
      display: none;
      background: none;
      border: 2px solid white;
      color: white;
      font-size: 18px;
      padding: 6px 16px;
      border-radius: 10px;
      cursor: pointer;
      position: absolute;
      top: 20px;
      right: 20px;
    }


    .mobile-menu {
    background: linear-gradient(to bottom, #ffe0f0, #e0f3ff);
    border-radius: 20px;
    padding: 10px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .mobile-menu a:hover {
    background-color: #ffd6f3;
    color: #000;
    }


    .header-logo {
    height: 90px;
    object-fit: contain;
    }

    @media (max-width: 768px) {
    .header-logo {
        height: 45px;
        margin-right: auto; 
        display: flex;

    }

    header {
        flex-direction: row-reverse; 
    }
    }

    nav {
      display: flex;
      justify-content: center;
      gap: 20px;
      background-color: white;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
      padding: 10px 0;
      position: sticky;
      top: 0;
      z-index: 999;
    }

    nav a {
      color: #333;
      text-decoration: none;
      font-weight: 500;
      padding: 8px 16px;
      border-radius: 999px;
      transition: all 0.3s ease;
    }

    nav a:hover {
      background-color: #ffd6f3;
    }

    @media (max-width: 768px) {
      .menu-toggle {
        display: block;
      }

      nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: white;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
      }

      nav.show {
        display: flex;
      }

      nav a {
        color: #444;
        padding: 10px;
        border-bottom: 1px solid #eee;
      }
    }

    /* @keyframes fadeDown {
      from {
        transform: translateY(-10px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    } */


.nav-links a.active {
  background: rgba(49, 190, 255, 0.15);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 16px;
  border-radius: 999px;
}

#mainNav .nav-inner{
  max-width:1200px;
  width:100%;           
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  justify-content:flex-start;   
  align-items:center;
  gap:16px;
}

.nav-links{
  display:flex;
  gap:24px;
  align-items:center;
}

.nav-buttons{
  margin-left:auto;      /* ← ดันทั้งกลุ่มไปชิดขวา */
  display:flex;
  align-items:center;
  gap:12px;
}



/* มือถือ: ซ่อนบนแถบ (ไปใช้เมนูเต็มจอแทน) */
@media (max-width:768px){
  .nav-buttons{ display:none; }
}

/* ปุ่ม "การเรียนของฉัน" */
.btn-my-learning,
.fullscreen-menu .btn-my-learning {
  color: #fff;
  background: linear-gradient(90deg, #014f8f, #8a2be2);
}

/* ปุ่ม "สมัครสมาชิก" */
.btn-register,
.fullscreen-menu .btn-register {
  color: #000;
  background: #fff;
  border: 2px solid #014f8f;
}

.btn-my-learning:hover,
.fullscreen-menu .btn-my-learning:hover {
  filter: brightness(1.1);
}

.btn-register:hover,
.fullscreen-menu .btn-register:hover {
  background: #f5f5f5;
}




    .hero {
      padding: 60px 20px;
      text-align: center;
      animation: fadeUp 1s ease-out;
    }

    .hero h1 {
      font-size: 2.5rem;
      font-weight: 700;
      color: #333;
    }

    .hero p {
      font-size: 1.2rem;
      margin-top: 10px;
      color: #555;
    }

    .btn {
      margin-top: 30px;
      background: linear-gradient(to right, #ff8db3, #94c8ff);
      color: rgb(44, 44, 44);
      padding: 12px 30px;
      font-size: 1rem;
      font-weight: 700;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transition: transform 0.2s;
    }

    .btn:hover {
      transform: translateY(-3px);
    }

    .cards {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 30px;
      padding: 20px 20px 80px; 
    }

    .card {
      background: white;
      border-radius: 30px;
      padding: 20px;
      width: 260px;
      text-align: center;
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transition: transform 0.3s;
    }

    .card:hover {
      transform: scale(1.05);
    }

    /* .card-icon {
      font-size: 3rem;
      margin-bottom: 15px;
    } */

    .card-icon img {
      width: 80px;
      height: 80px;
      object-fit: contain;
      display: block;
      margin: 20px auto; 
    }

    .card-icon {
      padding: 15px 0; 
    }

    /* ====== STEP LAYOUT & EFFECTS ====== */
.cards.steps{
  position: relative;
  gap: 34px;
}

/* เส้นไทม์ไลน์ (โชว์เฉพาะจอกว้าง) */
@media (min-width: 900px){
  .cards.steps::before{
    content:"";
    position:absolute;
    top: calc(50% + 6px);
    left: 6%;
    right: 6%;
    height: 4px;
    background: linear-gradient(90deg,#ff8db3,#94c8ff);
    opacity:.25;
    border-radius: 4px;
    z-index: 0;
  }
}

/* การ์ดพื้นฐาน */
.card{
  position: relative;
  z-index: 1;                    /* ให้อยู่เหนือเส้น */
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

/* สี accent ของแต่ละขั้น */
.card.step-1{ --accent:#5b9bff; }
.card.step-2{ --accent:#7f6cff; }
.card.step-3{ --accent:#ff8ab3; }

.card:hover{
  transform: translateY(-6px);
  border-color: color-mix(in oklab, var(--accent) 40%, #ffffff);
  box-shadow: 0 16px 36px color-mix(in oklab, var(--accent) 22%, transparent);
}

/* หมายเลขขั้น (badge) */
.step-badge{
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg,#ff8db3,#94c8ff);
  color:#fff;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing:.2px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  white-space: nowrap;
}

/* ลูกศรเชื่อมระหว่างการ์ด */
@media (min-width: 900px){
  .card:not(:last-child)::after{
    content:"›";
    position:absolute;
    right:-22px; top:50%;
    transform: translateY(-50%);
    font-size:30px;
    color: color-mix(in oklab, var(--accent) 55%, #bcd2ff);
    opacity:.7;
  }
}

/* วงแหวนไฮไลต์รอบไอคอน (ดูทันสมัย) */
.card-icon{
  position: relative;
  padding: 18px 0;
}
.card-icon::before{
  content:"";
  position:absolute;
  inset: 0;
  margin:auto;
  width:108px; height:108px;
  border-radius:50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 65%);
  filter: blur(10px);
  opacity:.15;
  animation: spin-slow 10s linear infinite;
}
@keyframes spin-slow{ to{ transform: rotate(360deg);} }

/* ขยาย padding รูป + ระยะห่าง */
.card-icon img{
  width: 86px; height: 86px;
  display:block; margin: 24px auto 18px;
  object-fit: contain;
}

/* เน้น “เริ่มที่นี่” ขั้นตอนที่ 1 */
/* .card.step-1{
  outline: 3px solid color-mix(in oklab, var(--accent) 28%, transparent);
  animation: pulse-1 1.8s ease-in-out infinite;
}
@keyframes pulse-1{
  0%,100%{ box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 26%, transparent); }
  50%    { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%, transparent); }
} */

/* การ์ดที่ active จะมี pulse */
.card.active{
  outline: 3px solid color-mix(in oklab, var(--accent) 28%, transparent);
  animation: pulse-1 1.8s ease-in-out infinite;
}

@keyframes pulse-1{
  0%,100%{ box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 26%, transparent); }
  50%    { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 0%, transparent); }
}


/* มือถือ: จัดเป็นแนวตั้ง, ซ่อนเส้น/ลูกศร */
@media (max-width: 899px){
  .cards.steps{ gap:18px; }
  .cards.steps::before, .card::after{ display:none; }
  .step-badge{ top:-12px; }
}



    .site-footer {
    background: linear-gradient(to right, #f8bbd0, #b2ebf2); /* ชมพู-ฟ้า */
    color: #333;
    padding: 3rem 1rem 1rem;
    font-family: 'Sarabun', sans-serif;
    }

    .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    }

    .footer-column {
    flex: 1 1 250px;
    }

    .footer-column h4 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #494949;
    }

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

    .footer-column ul li {
    margin-bottom: 0.5rem;
    }

    .footer-column ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    }

    .footer-column ul li a:hover {
    color: #00796b;
    }

    .footer-social a {
    font-size: 1.4rem;
    margin-right: 1rem;
    color: #333;
    }

    .footer-logo {
    max-width: 60px;
    margin-bottom: 1rem;
    }

    .footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 2rem;
    font-size: 0.9rem;
    }

    .line-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    }

    .line-logo {
    height: 32px;
    width: 32px;
    }

    .line-link {
    color: #19914b; /* สีเขียว LINE */
    font-weight: bold;
    text-decoration: none;
    }

    .line-link:hover {
    text-decoration: underline;
    }

    .line-qr-img {
    height: 100px;
    width: 100px;
    border-radius: 8px; /* มุมโค้ง QR */
    border: 2px solid #06C755;
    }



    .hero-autism {
    position: relative;
    background: linear-gradient(135deg, #e3f2fd, #f8bbd0); /* ฟ้า-ชมพูอ่อน */
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    }

    .hero-autism h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #0d47a1;
    margin-bottom: 20px;
    }

    .hero-autism h1 span {
    color: #d81b60; /* ชมพูเข้ม */
    }

    .hero-autism p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 30px;
    }

    .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    }

.news-section{
  position: relative;
  background: linear-gradient(135deg, #fff2f8 0%, #f1faff 100%);
  padding: 70px 20px;
  text-align: center;
  overflow: hidden;            
}

.news-section h1{
  font-size: 2.5rem;
  font-weight: 700;
  color: #31014d;              
  margin-bottom: 22px;
  position: relative;
  animation: newsFadeDown .7s ease-out both;
}
.news-section h1::after{
  content:"";
  display:block;
  width: 120px;
  height: 6px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8db3, #94c8ff);
  box-shadow: 0 4px 12px rgba(148,200,255,.45);
}

/* รูปโปรโมท */
.news-image{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.news-image img{
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  animation: newsPopIn .9s .15s ease-out forwards; /* หน่วงนิดให้ตามหัวข้อ */
}

/* ฟองสีลอย ๆ ให้เข้ากับ hero */
.news-section .bubble{
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: .35;
  animation: float 8s ease-in-out infinite;
}
.news-section .bubble.b1{ width:56px;height:56px; background:#94c8ff; top:18%; left:8%;  animation-delay:0s; }
.news-section .bubble.b2{ width:34px;height:34px; background:#a37bff; top:65%; right:10%; animation-delay:.8s; }
.news-section .bubble.b3{ width:22px;height:22px; background:#ff8db3; bottom:16%; left:46%; animation-delay:1.4s; }

/* Hover effect เล็กน้อยเวลาเอาเมาส์อยู่บนรูป */
.news-image img:hover{
  transform: translateY(10px) scale(1);
  box-shadow: 0 18px 36px rgba(0,0,0,.16);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Responsive tuning */
@media (min-width: 768px){
  .news-section{ padding: 90px 40px; }
  .news-section h1{ font-size: 2.6rem; }
}

/* ลดการเคลื่อนไหวถ้าผู้ใช้ขอ */
@media (prefers-reduced-motion: reduce){
  .news-section *{ animation: none !important; transition: none !important; }
}

/* ===== Keyframes ===== */
@keyframes newsFadeDown{
  from{ opacity:0; transform: translateY(-14px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes newsPopIn{
  0%  { opacity:0; transform: translateY(18px) scale(.98); }
  100%{ opacity:1; transform: translateY(0)    scale(1); }
}
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(-14px); }
}



    .btn-primary,
    .btn-secondary {
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
    }

    .btn-primary {
    background: linear-gradient(to right, #7e57c2, #64b5f6);
    color: white;
    }

    .btn-primary:hover {
    opacity: 0.9;
    }

    .btn-secondary {
    background: white;
    border: 2px solid #64b5f6;
    color: #0d47a1;
    }

    .btn-secondary:hover {
    background: #e3f2fd;
    }

    /* Dots animation */
    .circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
    }

    .circle-1 {
    width: 50px;
    height: 50px;
    background-color: #64b5f6;
    top: 30%;
    left: 10%;
    }

    .circle-2 {
    width: 30px;
    height: 30px;
    background-color: #ba68c8;
    top: 60%;
    right: 12%;
    }

    .circle-3 {
    width: 20px;
    height: 20px;
    background-color: #f06292;
    bottom: 20%;
    left: 45%;
    }

    @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    }



    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(40px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeDown {
      from { opacity: 0; transform: translateY(-40px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .fullscreen-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    backdrop-filter: blur(10px); /* ✅ ใส + ขุ่น */
    background-color: rgba(255, 255, 255, 0.3); /* ✅ สีขาวขุ่น */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    font-size: 1.0rem;
    animation: fadeIn 0.3s ease-in-out;
    border-radius: 0;
    }

    .fullscreen-menu a {
    text-decoration: none;
    color: #333;
    padding: 14px 24px;
    border-radius: 50px; /* ✅ ขอบมนมากๆ */
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    border: 1px solid rgba(99, 99, 99, 0.8); 
    width: 80%;
    max-width: 300px;
    text-align: center;
    transition: all 0.3s;
    font-weight: 600;
    /* backdrop-filter: blur(4px); */
    }

    /* .fullscreen-menu a:hover {
    background: rgba(255, 240, 250, 0.9);
    transform: translateY(-2px);
    } */

    .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px 16px;
    font-size: 1.1rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    }


    .hidden {
    display: none;
    }

    @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
    }

    /* ---------- Register Card ---------- */
.register-wrapper{
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px;
  animation: fadeUp .6s ease-out;
}
.form-card{
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.form-title{
  font-weight: 700;
  font-size: 2.0rem;
  margin-bottom: 16px;
  color: #2b2b2b;
}

/* Alert */
.alert-warning{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fffadd;
  border: 1px solid #fffadd;
  color: #7a4b00;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.alert-icon{ font-size: 1.2rem; }
.alert-close{
  border: 0; background: transparent; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: #7a4b00;
}

/* Layout */
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* ชื่อ-สกุล + คำนำหน้า */
  gap: 14px;
}
@media (max-width: 900px){
  .form-row{ grid-template-columns: 1fr; }
}
.form-group{ margin-bottom: 14px; }
.form-group label{
  display: block;
  margin-bottom: 6px;
  color: #444;
  font-weight: 600;
}

/* Inputs */
.form-card input,
.form-card select{
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  background: #fff;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
}
.form-card input::placeholder{ color:#999; }
.form-card input:focus,
.form-card select:focus{
  border-color: #90caff;
  box-shadow: 0 0 0 4px rgba(144,202,255,.25);
}

/* Actions */
.form-actions{ text-align: center; margin-top: 8px; }
.btn-next{
  min-width: 220px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: #165c2b;
  background: #d7f2df;
  border: 2px solid #bfe8cc;
  transition: transform .15s ease, filter .15s ease;
}
.btn-next:hover{ transform: translateY(-1px); filter: brightness(1.02); }

.form-footnote{
  text-align: center;
  margin-top: 14px;
  color: #666;
}
.form-footnote .login-link{
  color: #d81b60;
  text-decoration: none;
}
.form-footnote .login-link:hover{ text-decoration: underline; }

.form-card label {
  font-size: 1.05rem; /* ป้าย label ใหญ่ขึ้น */
}

.form-card input,
.form-card select {
  height: 50px; /* เดิม 44px → สูงขึ้น */
  font-size: 1.05rem;
  padding: 12px 16px; /* padding มากขึ้น */
}

.btn-next {
  min-width: 260px; 
  height: 56px; 
  font-size: 1.15rem; 
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  color: #ffffff;
  background: #31014d;
  border: 2px solid #31014d;
  transition: transform .15s ease, filter .15s ease;
}

.btn-next:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}


/* กริด 2/3 คอลัมน์แบบ responsive */
.form-row-2{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.form-row-3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:14px; }
@media (max-width: 900px){
  .form-row-2, .form-row-3{ grid-template-columns: 1fr; }
}

/* อัปโหลดรูป */
.upload-row{ display:flex; align-items:center; gap:12px; }
.avatar-preview{
  width:56px; height:56px; border-radius:10px; object-fit:cover;
  border:1px solid #e6e6e6; box-shadow:0 2px 6px rgba(0,0,0,.06);
}
.hint{ color:#777; }

/* ปรับ popup ให้โค้ง/นุ่ม */
.sa-soft.swal2-popup{
  border-radius: 22px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.12) !important;
  padding: 22px 22px 18px !important;
}
.sa-icon.swal2-icon{ margin: 10px auto 6px !important; }
.sa-title{
  font-weight: 700 !important;
  color: #333 !important;
  margin: 4px 0 10px !important;
  font-size: 1.25rem !important;
}
.sa-body{ color:#666 !important; font-size: .98rem !important; }

/* ปุ่ม */
.sa-btn-primary.swal2-confirm{
  background: #ff2f8f !important;
  border: none !important;
  color: #fff !important;
  border-radius: 14px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  min-width: 160px;
}
.sa-btn-primary.swal2-confirm:hover{ filter: brightness(1.05); }

.sa-btn-ghost.swal2-cancel{
  background: #fff !important;
  border: 2px solid #e1e1e1 !important;
  color: #333 !important;
  border-radius: 14px !important;
  padding: 9px 16px !important;
  font-weight: 700 !important;
  min-width: 120px;
}
.sa-btn-ghost.swal2-cancel:hover{ background:#f7f7f7 !important; }

/* จัดแนวปุ่ม */
.swal2-actions{ gap:12px !important; }


/* ===== Theme base (เข้ากับของเดิม) ===== */
:root{
  --pink:#ff8db3;
  --blue:#94c8ff;
  --ink:#2b2b2b;
  --soft:#f6f8ff;
  --glass: rgba(255,255,255,.65);
}
.profile-wrap{
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
  animation: fadeUp .6s ease-out;
}

/* ===== Profile Card ===== */
.profile-card{
  background: linear-gradient(135deg, #fff, #f7fbff);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(13,38,76,.06);
  padding: 22px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  backdrop-filter: blur(6px);
}
.profile-left{ display:flex; gap:16px; align-items:center; }
.profile-avatar{
  width:84px; height:84px; border-radius:18px; object-fit:cover;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.profile-name{ margin:0 0 4px; font-size:1.25rem; color:var(--ink); }
.profile-meta{ color:#556; font-size:.95rem; }
.badge-row{ margin-top:6px; display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  padding:6px 12px; border-radius:999px; font-weight:700; font-size:.82rem; color:#fff;
}
.chip-pink{ background:linear-gradient(90deg,#ff7fb0,#ffa6c9); }
.chip-blue{ background:linear-gradient(90deg,#7fb5ff,#a6d2ff); }

.profile-right{ display:flex; align-items:center; gap:18px; }
.stat{ text-align:center; }
.stat-num{ font-size:1.6rem; font-weight:800; background:linear-gradient(90deg,var(--pink),var(--blue)); -webkit-background-clip:text; color:transparent; }
.stat-label{ font-size:.9rem; color:#667; }
.btn-ghost{
  border:2px solid #dde6ff; background:#fff; color:#333;
  padding:10px 16px; border-radius:12px; font-weight:700; cursor:pointer;
  transition:.2s;
}
.btn-ghost:hover{ background:#f7faff; }

/* ===== Course Cards ===== */
.section-title{
  margin: 24px 4px 12px; color:#344; font-size:1.2rem; font-weight:800;
}
.course-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px){ .course-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .course-grid{ grid-template-columns: 1fr;} }

.course-card{
  position:relative;
  background: var(--glass);
  border:1px solid rgba(0,0,0,.06);
  border-radius:22px;
  padding:16px;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
  backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.course-card:hover{
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--blue) 35%, #fff);
  box-shadow: 0 20px 40px rgba(148,200,255,.18);
}

.course-top{ display:flex; gap:12px; align-items:center; }
.course-icon{
  width:52px;height:52px;border-radius:14px;flex:0 0 52px;
  background: radial-gradient(100% 100% at 20% 0%, #fff 0%, #e8f1ff 100%);
  display:grid;place-items:center;
  box-shadow: 0 8px 18px rgba(148,200,255,.35);
}
.course-title{ font-weight:800; color:#233; margin:0; font-size:1rem; }
.course-sub{ color:#667; font-size:.9rem; }

.progress{
  margin:12px 0 8px; height:10px; background:#eef3ff; border-radius:999px; overflow:hidden;
}
.progress > span{
  display:block; height:100%; width:0;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  border-radius:inherit; transition: width .45s ease;
}

.course-actions{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:space-between; align-items:center;
  margin-top:10px;
}
.btn-play{
  background: linear-gradient(90deg, #014f8f, #8a2be2);
  color:#fff; border:0; border-radius:12px; padding:10px 14px; font-weight:700; cursor:pointer;
}
.btn-cert{
  background:#fff; color:#333; border:2px solid #e6e6e6;
  border-radius:12px; padding:10px 14px; font-weight:700; cursor:pointer;
}
.btn-cert[disabled]{ opacity:.4; cursor:not-allowed; }

/* มุมบนซ้าย “วิชา n/5” */
.corner-badge{
  position:absolute; top:10px; right:10px;
  background: linear-gradient(90deg,#ffb2cc,#c6dcff);
  color:#fff; font-weight:800; font-size:.8rem; padding:6px 10px; border-radius:999px;
}

/* ป้าย “ได้รับเกียรติบัตรแล้ว” */
.badge-done{
  position:absolute; left:10px; top:10px;
  background: #e7fff1; color:#0b7a3d; border:1px solid #c7f2d9; font-weight:800;
  padding:6px 10px; border-radius:10px; font-size:.78rem;
}

/* ไอคอนเล็ก ๆ ในกล่องไอคอน */
.course-icon i{ font-style: normal; font-size: 22px; }

/* ใช้อนิเมชันที่มีอยู่แล้วของคุณ */
@keyframes fadeUp{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:translateY(0)}
}

/* ---------- Profile Card ---------- */

/* ขนาดตัวอักษรสำหรับชื่อและข้อมูล */
.profile-name { 
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); 
  line-height: 1.35; 
}
.profile-meta { 
  font-size: clamp(.95rem, 1.8vw, 1.02rem); 
  line-height: 1.6; 
}
.stat-num { 
  font-size: clamp(1.3rem, 4vw, 1.8rem); 
}
.stat-label { 
  font-size: clamp(.85rem, 1.7vw, .95rem); 
}

/* แท็บเล็ตและมือถือ: ปรับให้เรียงแนวตั้ง */
@media (max-width: 768px) {
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 18px;
  }
  .profile-left { justify-content: center; }
  .profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }
  .badge-row { justify-content: center; }
  .profile-right {
    justify-content: center;
    gap: 24px;
  }
}

/* มือถือจอเล็กมาก */
@media (max-width: 480px) {
  .profile-card { padding: 18px 14px; }
  .profile-avatar { width: 88px; height: 88px; }
  .stat { min-width: 96px; }
}

/* เพิ่มคอนทราสต์ข้อความเล็กน้อย */
.profile-meta { color: #425466; }


/* ===== Lessons Section ===== */
.lessons-section{
  position: relative;
  background: linear-gradient(135deg, #f1faff 0%, #fff2f8 100%);
  padding: 72px 20px;
  overflow: hidden;
}

.lessons-inner{
  max-width: 1200px;
  margin: 0 auto;
}

.lessons-title{
  font-size: 2.5rem;
  font-weight: 700;
  color: #31014d;
  text-align: center;
  margin: 0;
}
.lessons-title::after{
  content:"";
  display:block;
  width: 120px;
  height: 6px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8db3, #94c8ff);
  box-shadow: 0 4px 12px rgba(148,200,255,.45);
}

.lessons-sub{
  text-align:center;
  color:#596276;
  margin: 12px 0 28px;
  font-size: clamp(.95rem, 1.6vw, 1.15rem);
}

/* ===== Lessons (scoped & animated) ===== */
#lessons { position: relative; }

/* กรอบรวม + ระยะ */
#lessons .lessons-inner{
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* รายการบทเรียน */
#lessons .course-list{ padding: 16px 0; }

/* Grid 5 คอลัมน์บนจอใหญ่ */
#lessons .course-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(260px,1fr));
  gap:28px;
  align-items:stretch;
  position:relative;
  z-index:1;
}

/* Card base – ใช้ตัวแปรเดียวกับระบบหลัก */
#lessons .course-card{
  background: var(--card,#fff);
  border: 1px solid var(--line,#e7ecf3);
  border-radius: 30px;
  overflow: hidden;                 /* ให้ปกถูกตัดตามกรอบ */
  box-shadow: var(--shadow,0 12px 28px rgba(20,40,90,.08));
  display:flex; flex-direction:column;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: lessonsCardIn .5s ease both;
}

/* เฟดอินแบบสเต็ปเล็กน้อย */
#lessons .course-card:nth-child(1){ animation-delay:.02s; }
#lessons .course-card:nth-child(2){ animation-delay:.06s; }
#lessons .course-card:nth-child(3){ animation-delay:.10s; }
#lessons .course-card:nth-child(4){ animation-delay:.14s; }
#lessons .course-card:nth-child(5){ animation-delay:.18s; }

@keyframes lessonsCardIn{
  from{ opacity:0; transform: translateY(10px) scale(.98); }
  to  { opacity:1; transform: translateY(0)   scale(1); }
}

#lessons .course-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(20,40,90,.12);
}

/* ปก – โค้งเฉพาะด้านบน + ซูมภาพเล็กน้อยเมื่อ hover */
#lessons .cover{
  position:relative;
  aspect-ratio: 14/9;
  background:#f3f7fc;
  border-radius:16px 16px 0 0;
  overflow:hidden;
}
#lessons .cover img{
  width:100%; height:100%;
  object-fit:cover; display:block;
  transform: scale(1);
  transition: transform .35s ease;
}
#lessons .course-card:hover .cover img{ transform: scale(1.04); }

/* ป้ายมุม (ถ้าต้องการใช้) */
#lessons .badge{
  position:absolute; top:10px; right:10px;
  padding:6px 10px; border-radius:10px; color:#fff; font-weight:800; font-size:.85rem;
  background: var(--grad,linear-gradient(90deg,#ff8db3,#94c8ff));
  box-shadow: 0 8px 16px rgba(255,141,179,.25);
}

/* เนื้อหาในการ์ด */
#lessons .body{
  padding:14px 16px 16px;
  display:flex; flex-direction:column; gap:10px;
}
#lessons .title{
  margin:0; font-size:1.05rem; line-height:1.25;
  color: var(--ink,#263238); font-weight:800;
}
#lessons .subtitle{ margin:0; color: var(--muted,#6b7a90); font-size:.92rem; }

/* Action chips */
#lessons .actions{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
#lessons .chip{
  width:34px; height:34px; border-radius:50%;
  display:grid; place-items:center;
  border:1px solid var(--line,#e7ecf3);
  background:#fff; cursor:pointer;
  transition: transform .15s, background .15s, box-shadow .15s;
}
#lessons .chip:hover{
  background:#f3f7ff; transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(148,200,255,.25);
}
#lessons .chip-icon{ width:18px; height:18px; display:block; }

/* ตัวนับ/ป้ายเล็กด้านขวา */
#lessons .count{
  margin-left:auto; font-weight:800; color:#3a55b1;
  background:#eef3ff; border:1px solid #dbe6ff; padding:4px 10px;
  border-radius:999px; font-size:.85rem;
}

/* ส่วนล่าง (วัน/ยอดดู) */
#lessons .foot{
  display:flex; gap:10px; align-items:center;
  color:#8b98ad; font-size:.88rem;
  border-top:1px dashed var(--line,#e7ecf3);
  padding-top:10px;
}
#lessons .foot .date{ white-space:nowrap; }
#lessons .foot .views{ margin-left:auto; }
#lessons .foot .views i{ color:#9aa9c2; margin-right:6px; }

/* ปุ่มเข้าเรียนติดก้นการ์ดเสมอ */
#lessons .cta{
  margin-top:6px;
  display:inline-block; text-align:center; font-weight:800;
  padding:10px 14px; border-radius:12px; color:#fff; text-decoration:none;
  background: var(--grad,linear-gradient(90deg,#6b11e2,#2734a8));
  box-shadow: 0 8px 18px rgba(148,200,255,.35);
  transition: filter .15s, transform .15s;
}
#lessons .cta:hover{ filter:brightness(1.05); transform: translateY(-1px); }

/* --- Responsive เฉพาะบทเรียน --- */
@media (max-width:1500px){
  #lessons .course-grid{ grid-template-columns: repeat(4, minmax(260px,1fr)); }
}
@media (max-width:1200px){
  #lessons .course-grid{ grid-template-columns: repeat(3, minmax(260px,1fr)); }
}
@media (max-width:900px){
  #lessons .course-grid{ grid-template-columns: repeat(2, minmax(240px,1fr)); }
}
@media (max-width:560px){
  #lessons .course-grid{ grid-template-columns: 1fr; }
}

.chip {
  display: flex;
  align-items: center;      /* จัดกลางแนวตั้ง */
  justify-content: center;  /* จัดกลางแนวนอน */
  width: 40px;               /* ขนาดปุ่ม */
  height: 40px;
  border-radius: 50%;
  background: #fff;          /* หรือสีพื้นหลังที่ต้องการ */
  padding: 0;                /* ลบ padding ค่าเริ่มต้น */
  border: none;              /* เอาเส้นขอบออกถ้าไม่ต้องการ */
}

.chip-icon {
  width: 18px;
  height: 18px;
}

/* === ทำให้ section .cards.steps บนมือถือเลื่อนแนวนอนแบบสไลด์ === */
@media (max-width: 768px){
  .cards.steps{
    display: flex !important;             /* ชนะของเดิม */
    flex-wrap: nowrap !important;          /* ไม่ให้ตัดบรรทัด */
    justify-content: flex-start !important;
    align-items: stretch;
    gap: 14px;
    padding: 8px 16px 18px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;         /* เลื่อนแบบ snap */
    -webkit-overflow-scrolling: touch;     /* นุ่มบน iOS */
    position: relative;
    
  }

  /* การ์ดแต่ละใบกิน ~85% ของจอ และ snap ตรงกลาง */
  .cards.steps > .card{
    flex: 0 0 clamp(78%, 85vw, 520px);      /* ✅ ความกว้างยืดหยุ่น */
    max-width: 520px;
    min-height: 280px;                      /* สูงขั้นต่ำให้ไอคอน/ข้อความไม่อัด */
    padding: clamp(18px, 4vw, 26px);
    border-radius: 24px;
    scroll-snap-align: center;              /* ✅ snap ตรงกลาง */
    scroll-snap-stop: always;
    overflow: visible;                      /* ✅ badge ไม่โดนตัด */
    position: relative;
    margin: 6px 0 12px;                     /* เว้นบนล่างนิดให้หายอึดอัด */
  }

  /* ซ่อนสกรอลบาร์ */
  .cards.steps::-webkit-scrollbar{ display: none; }

  /* (ไม่บังคับ) เงาไล่สีขอบซ้าย/ขวาให้รู้ว่ายังเลื่อนได้ */
  .cards.steps::before,
  .cards.steps::after{
    content:"";
    position:absolute; top:0; bottom:0; width:24px; pointer-events:none;
  }
  .cards.steps::before{
    left:0;
    background: linear-gradient(to right, rgba(255,255,255,.9), rgba(255,255,255,0));
  }
  .cards.steps::after{
    right:0;
    background: linear-gradient(to left, rgba(255,255,255,.9), rgba(255,255,255,0));
  }
}


/* ================= TOPBAR ================= */
.topbar {
  background: linear-gradient(135deg, #fff0f7, #f2f9ff);
  border-bottom: 2px solid rgba(0,0,0,0.05);
  padding: 40px 20px 30px;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  border-radius: 0 0 24px 24px;
}

.topbar .hero span.soft {
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  color: #6b6b6b;
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.topbar .hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(90deg, #ff8db3, #94c8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.topbar .hero p {
  color: #596276;
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  margin-top: 8px;
}



/* ====== LESSON VIEW (หน้าดูวิดีโอ) ====== */
.lesson-view{
  max-width: 980px;
  margin: 0 auto;
}

.video-card{
  background:#fff;
  border:1px solid #e9edf7;
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(20,40,90,.08);
  padding: 18px;
}

.video-title{
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  color:#2e2f45;
}

/* กล่องวิดีโอ */
.video-wrap{
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.video-wrap .plyr,
.video-wrap video{
  width:100%;
  height:auto;
  display:block;
}

/* เนื้อหาใต้คลิป */
.info-card{
  margin-top: 18px;
  background:#fff;
  border:1px solid #eef1f7;
  border-radius:20px;
  box-shadow: 0 10px 26px rgba(20,40,90,.06);
  padding: 18px 20px;
  width: fit-content;   /* การ์ดกว้างตามเนื้อหา */
  text-align: left;
}


.info-card .k{
  font-weight:800; color:#1f2544; margin-right:6px;
}

.info-card p{ line-height:1.8; color:#3d415c; }
.info-card .muted{ color:#707892; }

/* Chips คำสำคัญ */
.tag-list{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:8px;
}
.tag{
  padding:6px 12px; border-radius:999px; font-weight:700; font-size:.86rem;
  background:#f3f6ff; color:#3650b7; border:1px solid #dfe6ff;
}

/* หัวข้อย่อย */
.section-head{
  font-weight:800; color:#2b3057; margin:14px 0 6px;
}

/* Responsive */
@media (max-width:768px){
  .video-card{ padding:14px; border-radius:16px; }
  .info-card{ padding:14px; border-radius:16px; }
  .video-title{ font-size:1.05rem; }
}

/* ===== LESSON VIEW – shell ===== */
.lv-wrap{ max-width:1100px; margin:0 auto; }
.lv-head{
  display:flex; gap:16px; align-items:flex-start; justify-content:space-between;
  padding: 10px 2px 6px;
}
.lv-title{
  margin:0 0 4px; font-weight:800;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); color:#2b2f42;
}
.lv-meta{ display:flex; gap:8px; flex-wrap:wrap; }
.lv-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px; font-weight:700; font-size:.86rem;
  background:#f3f6ff; color:#3149b2; border:1px solid #dfe6ff;
}
.lv-badge-soft{ background:#fff3f8; color:#b12b6a; border-color:#ffd6ea; }

.lv-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.lv-btn{
  border:0; border-radius:12px; padding:10px 14px; font-weight:800; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px; transition:transform .15s, filter .15s;
}
.lv-btn-primary{
  color:#fff; background:linear-gradient(90deg,#014f8f,#8a2be2);
  box-shadow:0 10px 20px rgba(1,79,143,.18);
}
.lv-btn-primary:hover{ transform:translateY(-1px); filter:brightness(1.05); }
.lv-btn-ghost{
  color:#2e2f45; background:#fff; border:2px solid #e9edf7;
}
.lv-btn-ghost:hover{ background:#f6f9ff; }

/* ===== video + side ===== */
.lv-main{
  display:grid; grid-template-columns: 1fr 320px; gap:18px;
}
@media (max-width: 992px){ .lv-main{ grid-template-columns: 1fr; } }

.lv-video-card{
  background:#fff; border:1px solid #e9edf7; border-radius:20px;
  box-shadow:0 14px 32px rgba(20,40,90,.08); padding:16px;
}
.lv-player{ border-radius:14px; overflow:hidden; }
.lv-player video, .lv-player .plyr{ width:100%; display:block; }

/* side card */
.lv-side{ position:relative; }
.lv-side-card{
  position: sticky; top:14px;
  background:#fff; border:1px solid #eef1f7; border-radius:18px; padding:14px;
  box-shadow:0 10px 26px rgba(20,40,90,.06);
}
.lv-side-row{
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 0; border-bottom:1px dashed #edf1fb;
}
.lv-side-row:last-child{ border-bottom:0; }
.lv-side-key{ color:#556; display:flex; align-items:center; gap:8px; font-weight:700; }
.lv-side-val{ font-weight:800; color:#223; }
.lv-side-tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.lv-tag{ padding:6px 10px; border-radius:999px; background:#f7f9ff; color:#3a55b1; font-weight:700; border:1px solid #e4ebff; }

/* info */
.lv-info{ margin-top:14px; }
.lv-subhead{ margin:10px 0 6px; font-weight:800; color:#2b3057; }

/* ===== list / accordion (สไตล์รูป 2) ===== */
.lv-list{ margin-top:18px; }
.lv-list-title{ font-weight:800; color:#2b2f46; margin-bottom:10px; }

.lv-accordion{ display:flex; flex-direction:column; gap:10px; }

.lv-acc{
  background:#fff; border:1px solid #d7e6fb; border-radius:14px; overflow:hidden;
  box-shadow:0 10px 20px rgba(0,0,0,.04);
}
.lv-acc-head{
  list-style:none; cursor:pointer; user-select:none;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 16px; background:linear-gradient(90deg,#ffe9f4,#e5f6ff);
  color:#fff; font-weight:800;
}
.lv-acc-head::-webkit-details-marker{ display:none; }
.lv-acc-left{ display:flex; align-items:center; gap:12px; }
.lv-acc-unit{
  background:rgba(135, 177, 255, 0.18); border:1px solid rgba(255,255,255,.28);
  padding:6px 10px; border-radius:10px;
}
.lv-acc-title{ font-weight:800; }
.lv-acc-chevron::after{
  content:"\f078"; font-family:"Font Awesome 6 Free"; font-weight:900; opacity:.85; color: black !important;
}
.lv-acc[open] .lv-acc-chevron::after{ content:"\f077"; }

.lv-acc-body{ padding:8px; background:#f6f9ff; }

.lv-item{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 10px; border-radius:10px; text-decoration:none; color:#223;
  background:#fff; border:1px solid #e8eefb; margin:8px 4px;
  transition:transform .12s, box-shadow .12s, border-color .12s;
}
.lv-item:hover{
  transform:translateY(-1px);
  border-color:#cfe1ff; box-shadow:0 8px 18px rgba(148,200,255,.22);
}
.lv-item-left{ display:flex; align-items:center; gap:10px; min-width:0; }
.lv-item-thumb{
  width:44px; height:44px; border-radius:10px;
  background:linear-gradient(135deg,#ff8db3,#94c8ff);
  box-shadow:0 6px 12px rgba(148,200,255,.35);
}
.lv-item-title{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lv-item-meta{ color:#617; font-weight:700; }

/* ========== Polish / Layout spacing ========== */
.lv-wrap{ padding: 8px 16px 48px; }
.lv-head{ row-gap: 10px; flex-wrap: wrap; }
.lv-head-left{ min-width: 260px; }

/* Title line height และระยะ */
.lv-title{ line-height: 1.25; }

/* ระยะห่างของ badge ให้ดูโปร */
.lv-meta .lv-badge{ box-shadow: 0 6px 16px rgba(49,73,178,.10); }

/* ปุ่ม action ให้คล้ายปุ่มบนแอป */
.lv-btn{ box-shadow: 0 8px 18px rgba(1,79,143,.14); }
.lv-btn-ghost{ box-shadow: 0 6px 14px rgba(0,0,0,.04); }

/* ========== Video card gloss border ========== */
.lv-video-card{
  position: relative;
  background: linear-gradient(180deg,#ffffff, #f8fbff);
  border: 1px solid #e6ecf8;
}
.lv-video-card::before{
  content:""; position:absolute; inset:0; border-radius:20px;
  padding:1px; background: linear-gradient(120deg,#d7e7ff, #ffe0f3);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0); 
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events:none;
}

/* Plyr theme (สีหลัก) – ไม่ยุ่ง CSS เดิมของคุณ */
.plyr--full-ui{ --plyr-color-main:#5a7dff; }
.plyr__controls{ border-top: 0; }

/* ========== Side card highlighting ========== */
.lv-side-card{ background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }
.lv-side-key i{ color:#5a7dff; }
.lv-side-tags .lv-tag{ background:#f2f6ff; }

/* ========== Info card alignment ========== */
.lv-info.info-card{
  width: 100%;
  text-align: left;
  margin-left: 0; margin-right: 0;
}

/* ========== Accordion UX (ลื่นตา) ========== */
.lv-acc-head{ position: relative; }
.lv-acc-head:hover{ filter: brightness(1.03); }
.lv-acc-body{
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
  padding: 0 8px;
}
.lv-acc[open] .lv-acc-body{
  padding: 8px; 
  max-height: 600px;                 /* เพียงพอสำหรับหลายรายการ */
  background: #f7faff;
  border-top: 1px dashed #d6e4ff;
}
.lv-item-thumb{
  background: linear-gradient(135deg,#784bff,#ff7fb0);
  box-shadow: 0 8px 16px rgba(120,75,255,.20);
}
.lv-item-meta{ color:#425466; }

/* Active/กำลังเล่น */
.lv-item.is-active{
  border-color:#bcd2ff;
  box-shadow: 0 10px 20px rgba(148,200,255,.28);
  background: linear-gradient(0deg,#ffffff 0%, #f7fbff 100%);
}

/* ========== Sticky CTA (มือถือ) ========== */
.lv-stickcta{
  position: fixed; left:0; right:0; bottom:10px; z-index: 50;
  margin: 0 auto; max-width: 980px;
  display:none; gap:10px; align-items:center;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
  border:1px solid #e8ecf8; border-radius: 16px;
  box-shadow: 0 14px 30px rgba(20,40,90,.16);
  padding: 10px 12px;
}
.lv-stickcta .lv-txt{
  font-weight:800; color:#2b2f42; font-size:.98rem; flex:1; 
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.lv-stickcta .lv-btn{ padding:10px 12px; }
@media (max-width: 992px){
  .lv-stickcta{ display:flex; }
}

/* ========== Breadcrumb (option) ========== */
.lv-breadcrumb{
  display:flex; gap:8px; align-items:center; color:#6b7280;
  font-size:.92rem; margin: 4px 0 6px;
}
.lv-breadcrumb a{ color:#475569; text-decoration:none; }
.lv-breadcrumb a:hover{ text-decoration:underline; }

/* ========== micro polish for headings/sections ========== */
.lv-list-title{
  display:flex; align-items:center; gap:10px;
}
.lv-list-title::before{
  content:""; width:10px; height:10px; border-radius:50%;
  background: linear-gradient(135deg,#5a7dff,#ff79b0);
  box-shadow: 0 6px 12px rgba(90,125,255,.28);
}

/* เว้นระยะหัวข้อด้านบน */
.lv-head {
  margin-top: 24px;   /* เดิมอาจไม่มี margin-top → เพิ่มให้ห่างขอบ */
}

/* ปุ่มเรียนเนื้อหานี้ (gradient ใหม่) */
.lv-btn-primary {
  background: linear-gradient(90deg, #6a5af9, #00c3ff);
  color: #fff;
  border: none;
  transition: all .25s ease;
}
.lv-btn-primary:hover {
  background: linear-gradient(90deg, #5848e5, #00aee6);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,195,255,.3);
}

.lv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 6px;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
}

.lv-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* สถานะ */
.lv-item-meta {
  font-size: 14px;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.status.done {
  background: #e6f7ec;
  color: #28a745;
}

.status.not-start {
  background: #fdecea;
  color: #f44336;
}

.status.in-progress {
  background: #fff4e5;
  color: #ff9800;
}

.status.completed {
  background: #e8f4fd;
  color: #2196f3;
}

/* ===== WATCH PAGE (หน้าดูวิดีโอจริง) ===== */
:root{
  --watch-grad: linear-gradient(90deg,#1a1c97,#3882f0);
  --watch-ink: #2b2f42;
  --watch-line:#e8ecf8;
}

/* shell */
.watch-wrap{
  max-width: 1100px;
  margin: 28px auto 64px;
  padding: 0 16px;
}

/* breadcrumb + หัวเรื่อง */
.watch-breadcrumb{
  display:flex; gap:8px; align-items:center;
  color:#6b7280; font-size:.92rem; margin-bottom: 8px;
}
.watch-breadcrumb a{ color:#475569; text-decoration:none; }
.watch-breadcrumb a:hover{ text-decoration:underline; }

.watch-head{
  display:flex; gap:16px; justify-content:space-between; align-items:flex-start;
  flex-wrap:wrap; margin-bottom: 12px;
}
.watch-title{
  margin:0; line-height:1.25;
  font-weight:800; font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--watch-ink);
}
.watch-meta{ display:flex; gap:8px; flex-wrap:wrap; }
.watch-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px; font-weight:700; font-size:.86rem;
  background:#f3f6ff; color:#3149b2; border:1px solid #dfe6ff;
}
.watch-badge.soft{ background:#fff3f8; color:#b12b6a; border-color:#ffd6ea; }

/* player card */
.watch-card{
  position: relative;
  /* background: transparent;   */
  background:linear-gradient(180deg,#fff,#f8fbff);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 14px 32px rgba(20,40,90,.08);
  overflow: hidden; 
}

.watch-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:20px;
  padding:1px;
  background: linear-gradient(120deg,#d7e7ff,#ffe0f3); 
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
}

.watch-player{ border-radius:14px; overflow:hidden; }
.watch-player video, .watch-player .plyr{ width:100%; display:block; }

/* ปุ่มนำทางใต้คลิป */
.watch-actions{
  display:flex; gap:10px; justify-content:center; margin: 14px 0 4px;
}
.watch-btn{
  border:0; border-radius:999px; padding:12px 18px; font-weight:800; cursor:pointer;
  display:inline-flex; align-items:center; gap:10px; transition:transform .15s,filter .15s;
}
.watch-btn.primary{
  color:#fff; background: var(--watch-grad); box-shadow:0 8px 18px rgba(0,195,255,.25);
}
.watch-btn.ghost{
  color:#2e2f45; background:#fff; border:2px solid var(--watch-line);
  box-shadow:0 6px 14px rgba(0,0,0,.04);
}
.watch-btn:hover{ transform:translateY(-2px); filter:brightness(1.03); }

/* แถบความคืบหน้า */
.watch-progress{
  margin: 10px auto 0; max-width: 520px; height: 10px; overflow: hidden;
  background:#eef3ff; border-radius:999px;
}
.watch-progress > span{
  display:block; height:100%; width:40%;   /* ← set ด้วย JS/inline */
  background: var(--watch-grad);
}

/* กล่องทางลัด/เนื้อหาถัดไป */
.watch-next{
  margin-top: 18px;
  display:flex; gap:12px; align-items:center; justify-content:center; flex-wrap:wrap;
  color:#556; font-weight:700;
}
.watch-next .pill{
  padding:8px 12px; border-radius:999px; background:#f2f6ff; border:1px solid #dfe6ff;
}

/* mobile */
@media (max-width: 768px){
  .watch-wrap{ margin-bottom: 86px; }
  .watch-actions{ position:sticky; bottom:8px; z-index:3;
    /* background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
    border:1px solid var(--watch-line); border-radius: 16px; padding:10px 12px;
    box-shadow: 0 14px 30px rgba(20,40,90,.16); */
  }
}

/* ===== WATCH BREADCRUMB ===== */
.watch-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, #fdfbfb, #ebedee);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  color: #4b5563;
  font-weight: 500;
}

.watch-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.watch-breadcrumb a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.watch-breadcrumb span {
  color: #374151;
  font-weight: 600;
}

.watch-breadcrumb i {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ===== WATCH BREADCRUMB – clean, non-floating, responsive ===== */
.watch-wrap .watch-breadcrumb{
  position: static;
  background: transparent;      /* ไม่ลอย ไม่มีกล่อง */
  box-shadow: none;
  padding: 0;
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  flex-wrap: wrap;               /* แตกบรรทัดได้ */
}

/* ลิงก์ + ตัวคั่นอัตโนมัติ */
.watch-wrap .watch-breadcrumb a{
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.watch-wrap .watch-breadcrumb a:hover{ color:#1d4ed8; text-decoration:underline; }

/* สร้างลูกศรคั่นด้วย CSS ไม่ต้องใส่ <i class="fa-angle-right"> */
.watch-wrap .watch-breadcrumb a::after{
  content: "›";
  margin: 0 4px;
  color: #9ca3af;
  font-weight: 700;
}
.watch-wrap .watch-breadcrumb a:last-of-type::after{ content: none; }

.watch-wrap .watch-breadcrumb span{
  color:#0f172a;                 /* “หน่วยที่ 1” */
  font-weight: 700;
}
.watch-wrap .watch-breadcrumb i{ color:#94a3b8; font-size:.9rem; }

/* Mobile: ให้เลื่อนในแนวนอนแทนการบัง */
@media (max-width: 640px){
  .watch-wrap .watch-breadcrumb{
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent);
  }
  .watch-wrap .watch-breadcrumb::-webkit-scrollbar{ display:none; }
  /* ปุ่มใต้คลิปไม่ sticky เพื่อไม่บัง */
  .watch-actions{ position: static !important; }
}

/* ============ QUIZ – not conflicting ============ */
:root{
  --q-ink:#1f2937;
  --q-muted:#6b7280;
  --q-line:#e8eef6;
  --q-soft:#f6f9ff;
  --q-grad:linear-gradient(90deg,#0ea5e9,#6366f1);
  --q-yes:#10b981;
  --q-no:#ef4444;
}
.quiz-wrap{
  max-width: 920px; margin: 0 auto; padding: 18px 14px 42px;
  color: var(--q-ink); font-family: 'Noto Sans Thai', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Kanit', sans-serif;
}

/* top bar */
.quiz-top{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background: linear-gradient(180deg,#ffffff,#f5f8ff);
  border:1px solid var(--q-line); border-radius:16px;
  padding:12px 14px; box-shadow:0 8px 24px rgba(20,40,90,.05);
  position:sticky; top:0; z-index:5; backdrop-filter: blur(6px);
}
.quiz-brand{ display:flex; align-items:center; gap:10px; }
.quiz-logo{
  width:38px; height:38px; border-radius:10px;
  background: radial-gradient(100% 100% at 20% 0%, #fff 0%, #e9f2ff 100%);
  display:grid; place-items:center; color:#3b82f6; font-size:18px; box-shadow:0 6px 14px rgba(59,130,246,.18);
}
.quiz-title{ margin:0; line-height:1.35; font-weight:800; font-size:1.1rem; }
.quiz-sub{ color:var(--q-muted); font-size:.85rem; margin-top:2px; }

.quiz-right{ display:flex; align-items:center; gap:8px; }
.quiz-badge{
  padding:8px 12px; border-radius:999px; font-weight:800; color:#334155; background:#eef4ff; border:1px solid #dbe6ff;
}
.quiz-ghost{
  border:1px solid var(--q-line); background:#fff; color:#334155; font-weight:800;
  padding:8px 12px; border-radius:10px; cursor:pointer;
}
.quiz-ghost:hover{ background:#f7fbff; }

/* sheet */
.quiz-sheet{
  margin-top:16px; background:#fff; border:1px solid var(--q-line); border-radius:18px;
  box-shadow:0 14px 28px rgba(20,40,90,.06);
  padding: 14px 14px 18px;
}

/* question card */
.quiz-q{
  border:1px solid #eaf0fb; border-radius:14px; padding:12px; margin:14px 0;
  background: var(--q-soft);
}
.quiz-qhead{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px;
}
.quiz-qtitle{ font-weight:800; }
.quiz-num{ color:#64748b; font-weight:700; }

.quiz-opts{ display:grid; gap:10px; }
.quiz-opt{
  position:relative; border:1px solid #e3ebfb; border-radius:12px; background:#fff;
  padding:12px 14px; cursor:pointer; display:flex; align-items:center; gap:10px;
  transition: border-color .15s, transform .1s, box-shadow .15s;
}
.quiz-opt:hover{ border-color:#cfe1ff; box-shadow:0 8px 18px rgba(148,200,255,.18); transform: translateY(-1px); }
.quiz-opt input{ position:absolute; inset:0; opacity:0; cursor:pointer; }
.quiz-opt .quiz-dot{
  width:22px; height:22px; border-radius:50%; border:2px solid #c7d7ff; display:inline-block;
  display:grid; place-items:center; flex:0 0 22px;
}
.quiz-opt .quiz-dot::after{
  content:""; width:12px; height:12px; background:#c7d7ff; border-radius:50%; transform:scale(0); transition:transform .15s;
}
.quiz-opt.selected{ border-color:#b2c6ff; background:linear-gradient(180deg,#ffffff,#f4f7ff); }
.quiz-opt.selected .quiz-dot{ border-color:#4f7cff; }
.quiz-opt.selected .quiz-dot::after{ transform:scale(1); background:#4f7cff; }
.quiz-text{ font-weight:700; color:#1f2937; }

/* footer */
.quiz-foot{
  text-align:center; margin-top:18px;
}
.quiz-submit{
  border:0; border-radius:999px; padding:12px 20px; font-weight:900; cursor:pointer;
  color:#fff; background: var(--q-grad); box-shadow:0 10px 26px rgba(99,102,241,.28);
}
.quiz-submit i{ margin-right:8px; }

/* result toast */
.quiz-toast{
  position:fixed; right:16px; bottom:16px; background:#111827; color:#fff;
  padding:10px 14px; border-radius:10px; font-weight:700; box-shadow:0 14px 30px rgba(0,0,0,.25);
  opacity:0; transform: translateY(6px); transition:.25s; z-index:99;
}
.quiz-toast.show{ opacity:1; transform:translateY(0); }

/* mobile */
@media (max-width: 620px){
  .quiz-top{ border-radius:14px; }
  .quiz-badge{ display:none; }    /* ให้เหลือพื้นที่ */
}

.quiz-opt.selected .quiz-text {
  color: #4f7cff;  /* ฟ้าเข้มที่ใช้ในวงกลม */
  font-weight: 800;
}

/* =============== CONTACTX (scoped, no conflict) =============== */
.contactx-wrap{
  --cx-ink:#1f2a44;
  --cx-muted:#6b7a90;
  --cx-grad:linear-gradient(120deg,#ff9ec9,#94c8ff);
  --cx-line:#e7eef9;
  --cx-soft:#f6f9ff;
  --cx-primary:#0ebe5a; /* โทน LINE */
  padding: 24px 18px 60px;
  background: linear-gradient(180deg,#fff0f7, #eef6ff);
  position: relative;
  overflow: hidden;
}

.contactx-hero{
  text-align:center;
  padding: 36px 10px 12px;
  position: relative;
}
.contactx-title{
  margin:0;
  font-weight:900;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: #222;    
  /* background: var(--cx-grad);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; */
  letter-spacing:.3px;
  animation: cxDrop .6s ease-out both;
}
.contactx-sub{
  color:var(--cx-muted);
  margin:8px 0 0;
  animation: cxFade .8s .1s ease-out both;
}

.contactx-bubbles span{
  position:absolute; border-radius:50%; filter: blur(1px); opacity:.35; animation: cxFloat 9s ease-in-out infinite;
}
.contactx-bubbles .b1{ width:38px;height:38px; left:10%; top:8%; background:#94c8ff; }
.contactx-bubbles .b2{ width:28px;height:28px; right:12%; top:22%; background:#a37bff; animation-delay:.7s; }
.contactx-bubbles .b3{ width:22px;height:22px; left:50%; top:30%; background:#ff9ec9; animation-delay:1.2s; }

.contactx-card{
  max-width: 1080px; margin: 18px auto 0;
  background:#fff;
  border:1px solid var(--cx-line);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(20,40,90,.08);
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 10px;
  padding: clamp(16px, 2.5vw, 22px);
}

.contactx-left{ padding: 6px clamp(4px,1.2vw,10px); }
.contactx-right{ display:grid; place-items:center; }

.contactx-line-badge{
  display:inline-flex; align-items:center; gap:10px;
  background:#eafff1; border:1px solid #d9f7e6; color:#0b7a3d;
  padding:6px 12px; border-radius:999px; font-weight:800; font-size:.9rem;
}
.contactx-line-badge img{ width:20px;height:20px; object-fit:contain; }

.contactx-h2{
  margin:12px 0 2px;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color:var(--cx-ink); font-weight:900; letter-spacing:.2px;
}
.contactx-desc{ color:var(--cx-muted); margin:4px 0 14px; }

.contactx-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.contactx-btn{
  border:0; border-radius:12px; padding:10px 14px; font-weight:800; cursor:pointer;
  display:inline-flex; align-items:center; gap:10px; transition: transform .15s, filter .15s;
}
.contactx-btn:hover{ transform: translateY(-2px); filter: brightness(1.03); }
.contactx-primary{ color:#fff; background: linear-gradient(90deg,#00b14f,#07c46c); box-shadow: 0 10px 22px rgba(11,191,101,.25); }
.contactx-ghost{ color:#2b2f45; background:#fff; border:2px solid var(--cx-line); }

.contactx-list{ margin:14px 0 0; padding:0; list-style:none; color:#44536a; display:grid; gap:8px; }
.contactx-list li{ display:flex; align-items:center; gap:10px; }

.contactx-qr{
  position:relative; padding:12px; border-radius:18px; background:var(--cx-soft);
  border:1px solid var(--cx-line); box-shadow: inset 0 0 0 1px #fff;
  animation: cxPop .45s ease-out both;
}
.contactx-qr img{
  width: 280px; height: 280px; display:block; border-radius:12px; background:#fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.contactx-qr-tip{
  position:absolute; bottom:-12px; left:50%; transform:translateX(-50%);
  background:#fff; border:1px solid var(--cx-line); color:#2b2f45; font-weight:800;
  padding:6px 12px; border-radius:999px; box-shadow:0 8px 16px rgba(148,200,255,.25);
}

.contactx-footnote{
  text-align:center; margin:16px auto 0; color:var(--cx-muted); font-weight:700;
}

/* icons (pure-css) */
.contactx-ico{ width:16px; height:16px; display:inline-block; position:relative; }
.contactx-ico.copy::before{
  content:""; position:absolute; inset:2px 2px 2px 2px; border:2px solid #fff; border-radius:3px; box-shadow: 5px -5px 0 0 #fff;
}
.contactx-ico.chat{ border-radius:4px; background:var(--cx-primary); }
.contactx-ico.mail::before{
  content:""; position:absolute; inset:0; border:2px solid #76839a; border-radius:4px;
}
.contactx-ico.mail::after{
  content:""; position:absolute; left:2px; right:2px; top:6px; height:0; border-top:2px solid #76839a; transform:skewY(-18deg);
}
.contactx-ico.phone::before{
  content:""; position:absolute; width:14px; height:14px; border:2px solid #76839a; border-radius:3px; transform: rotate(45deg);
  left:1px; top:1px; border-top-color:transparent; border-left-color:transparent;
}

/* toast */
.contactx-toast{
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px);
  background:#111; color:#fff; padding:10px 14px; border-radius:10px;
  opacity:0; pointer-events:none; transition: .25s ease; z-index: 50;
}
.contactx-toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }

/* responsive */
@media (max-width: 960px){
  .contactx-card{ grid-template-columns:1fr; }
  .contactx-right{ order:-1; }
}

/* animations */
@keyframes cxDrop{ from{opacity:0; transform: translateY(-8px);} to{opacity:1; transform:none;} }
@keyframes cxFade{ from{opacity:0;} to{opacity:1;} }
@keyframes cxFloat{ 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-12px);} }
@keyframes cxPop{ from{opacity:0; transform:scale(.98);} to{opacity:1; transform:scale(1);} }


/* อินพุตผิดพลาด */
.is-invalid{
  border-color:#ff2f8f !important;
  box-shadow:0 0 0 3px rgba(255,47,143,.15);
}

/* ปุ่ม Swal โทนระบบ */
.sa-btn-primary{
  background:#ff2f8f !important;
  color:#fff !important;
  border:none !important;
  border-radius:10px !important;
  padding:10px 16px !important;
}
.sa-btn-ghost{
  background:#fff !important;
  color:#ff2f8f !important;
  border:1px solid #ff2f8f !important;
  border-radius:10px !important;
  padding:10px 16px !important;
}
.sa-soft .swal2-title{ font-weight:700; }
.sa-icon{ margin-bottom:8px; }



/* ปุ่ม "เข้าสู่ระบบ" */
.btn-login,
.fullscreen-menu .btn-login {
  color: #000;
  background: #fff;
  border: 2px solid #014f8f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 30px;
  transition: 0.3s ease;
  text-decoration: none;
}

/* Hover Effect */
.btn-login:hover,
.fullscreen-menu .btn-login:hover {
  background-color: #f5f5f5;
  color: #000;
}

/* Responsive บนจอเล็ก */
@media (max-width: 576px) {
  .btn-login,
  .fullscreen-menu .btn-login {
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    margin-top: 10px;
  }
}



  .hidden {
    display: none !important;
  }

.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.login-modal-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.4s ease;
}

/* .login-modal-card img.header-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
} */

.login-modal-card img.header-logo {
  display: block;
  margin: 0 auto 1rem auto;  /* ชิดกลางและมี margin ด้านล่าง */
  max-width: 180px;
  width: 100%;
  height: auto;
}


.input-icon {
  position: relative;
  margin-bottom: 1.2rem;
}

.input-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

input.form-control {
  border-radius: 30px;
  padding-left: 2.5rem;
  border: 1px solid #ccc;
  width: 100%;          /* ✅ ทำให้ input กว้างเต็ม */
  font-size: 1rem;       /* ✅ ขนาดตัวอักษรชัดเจน */
  height: 48px;          /* ✅ (เสริม) ทำให้สูงสวยพอดีมือ */
}


button[type="submit"] {
  border-radius: 30px;
  padding: 12px 20px;
  background: linear-gradient(to right, #64b5f6, #f06292);
  border: none;
  color: #fff;
  font-weight: bold;
  width: 100%;
  box-shadow: 0 4px 10px rgba(240, 98, 146, 0.3);
  transition: 0.3s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(240, 98, 146, 0.5);
}

.footer-text {
  font-size: 0.85rem;
  color: #888;
}

.btn-login,
.btn-register,
.btn-my-learning {
  cursor: pointer;
}