body { font-family: 'Noto Sans Thai', sans-serif; }

/* Header */
.site-header {
  background: #002941;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.header-top {
  padding: 4px 0 0;
}
.header-nav {
  padding: 0 0 4px;
  position: relative;
}
.header-nav .nav-link {
  color: #EEEEEF;
  font-size: 20px;
  font-weight: 400;
  padding: 6px 14px;
  transition: color .2s;
}
/* Mobile horizontal scroll nav */
.mobile-nav-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}
.mobile-nav-scroll::-webkit-scrollbar { display: none; }
.mobile-nav-scroll .nav-link {
  flex-shrink: 0;
  color: #EEEEEF;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 12px;
  transition: color .2s;
  text-decoration: none;
}
.mobile-nav-scroll .nav-link:hover { color: #fff; }

/* Mobile Filter Button */
.mobile-filter-btn-wrap {
  padding: 10px 24px;
  background: #fff;
}
.mobile-filter-toggle {
  background: #002941;
  color: #FDD400;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

/* Mobile Filter Panel (slide-in) */
.mobile-filter-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 9999;
  transition: left .3s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.mobile-filter-panel.open { left: 0; }
.mobile-filter-header {
  background: #002941;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-filter-hamburger {
  width: 28px;
  height: 3px;
  background: #FDD400;
  border-radius: 2px;
  display: block;
  margin: 4px 0;
}
.mobile-filter-header-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}
.mobile-filter-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.mobile-filter-body {
  padding: 20px 24px;
}
.mobile-filter-body h6 {
  color: #A3A3A3;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
}
.mobile-filter-body hr {
  border-color: #A3A3A3;
  margin: 0 0 16px;
}
.mobile-filter-body .form-check { padding-left: 2.2em; }
.mobile-filter-body .form-check-input {
  width: 22px;
  height: 22px;
  border: 1.5px solid #A3A3A3;
  border-radius: 6px;
}
.mobile-filter-body .form-check-input:checked {
  background-color: #1976d2;
  border-color: #1976d2;
}
.mobile-filter-body .form-check-label {
  color: #A3A3A3;
  font-size: 16px;
  padding-top: 2px;
}

.header-nav .nav-link:hover {
  color: #fff;
}

/* Logo gradient */
.logo-img {
  height: 40px;
  width: auto;
}
.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(180.8deg, #5EE0F5 -38.39%, #30A5FD 99.84%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header account area */
.header-pkg-link {
  color: #FFFFFF;
  font-size: 16px;
  text-decoration: underline;
  transition: opacity .2s;
}
.header-pkg-link:hover {
  color: #FFFFFF;
  opacity: 0.8;
}
.header-lang-btn {
  background: #FFFFFF;
  border: none;
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0D0C0C;
  line-height: 18px;
}
.header-lang-btn:hover {
  background: #f0f0f0;
  color: #0D0C0C;
}
.header-account-text {
  color: #FDD400;
  font-size: 14px;
  font-weight: 400;
}
.header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #D9D9D9;
}
.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero */
.hero-section {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: #FFFFFF;
  z-index: 2;
}
.hero-inner {
  position: relative;
  background: linear-gradient(180deg, #e8edf5 0%, #d5dced 40%, #FFFFFF 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 20px;
  overflow: visible;
}
/* Decorative blur ellipses */
.hero-inner::before {
  content: '';
  position: absolute;
  width: 810px;
  height: 880px;
  left: -328px;
  top: -413px;
  background: linear-gradient(180deg, #FFFDFE 0%, #2785FF 53.37%);
  opacity: 0.2;
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner::after {
  content: '';
  position: absolute;
  width: 668px;
  height: 727px;
  right: -100px;
  top: -100px;
  background: linear-gradient(180deg, #5467F2 0%, #FFFFFF 100%);
  opacity: 0.2;
  filter: blur(50px);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  color: #052F64;
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.2;
}
.hero-subtitle {
  color: #052F64;
  font-size: 23px;
  font-weight: 600;
}
.hero-float {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 3;
}
.hero-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Left side */
.hero-float-1 { width:130px;height:130px;top:130px;left:4%;border-radius:18px; }
.hero-float-2 { width:150px;height:108px;top:40px;left:14%;border-radius:18px; }
.hero-float-3 { width:190px;height:260px;bottom:-80px;left:8%;border-radius:16px; }
/* Right side */
.hero-float-4 { width:120px;height:120px;top:40px;right:4%;border-radius:16px; }
.hero-float-5 { width:120px;height:155px;top:30px;right:16%;border-radius:12px; }
.hero-float-6 { width:200px;height:240px;bottom:-70px;right:5%;border-radius:16px; }
.hero-search-box {
  position: relative;
  max-width: 680px;
  width: 100%;
}
.hero-search-input {
  border: 1px solid #A3A3A3;
  border-radius: 50px;
  padding: 14px 50px 14px 24px;
  font-size: 15px;
  width: 100%;
  height: 65px;
  background: #F5F5F5;
  outline: none;
}
.hero-search-input:focus {
  background: #fff;
  border-color: #85A4D3;
}
.hero-search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #4a5e7a;
  font-size: 22px;
}
.hero-filter-btn {
  width: 72px;
  height: 65px;
  border-radius: 12px;
  background: #002941;
  border: none;
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-filter-btn:hover {
  background: #001f33;
}
.hero-tag {
  background: #66A3F2;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 6px 0;
  width: 130px;
  height: 36px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.hero-tag:hover {
  background: #5090e0;
  color: #fff;
}
.hero-tag-label {
  font-size: 16px;
  font-weight: 600;
  color: #002941;
}

/* Stats + Categories combined blue section */
.blue-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #0069A7 0%, #002941 100%);
  min-height: 578px;
  padding: 120px 0 60px;
}
.blue-section .stat-label {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 400;
}
.blue-section .stat-number {
  color: #fff;
  font-weight: 700;
}
.blue-section h2 {
  color: #fff;
  font-size: 50px;
  font-weight: 500;
  line-height: 59px;
}
.cat-card {
  background: linear-gradient(180deg, #66A3F2 0%, #2785FF 100%);
  border: none;
  border-radius: 15px;
  width: 183px;
  height: 126px;
  padding: 16px 12px;
  text-align: center;
  transition: transform .2s, background .2s;
  cursor: pointer;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cat-card:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}
.cat-card-icon {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
}
/* การ์ดหมวดพื้นน้ำเงิน — บังคับ icon เป็นสีขาวเสมอ (กันกรณีบางเครื่อง/cache ไม่แสดง) */
.cat-card-icon svg { color: #fff; display: block; }
.cat-card-icon svg path[stroke]:not([stroke="none"]) { stroke: #fff; }
.cat-card-icon svg path[fill]:not([fill="none"]) { fill: #fff; }
.cat-card-label {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}

/* Category icons */
.cat-tab-icon {
  width:90px;height:90px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 15px rgba(0,0,0,0.1);
}
.cat-tab:hover { transform:translateY(-4px); }

/* Template card */
.template-card { transition:transform .2s,box-shadow .2s;cursor:pointer;background:transparent;border:none; }
.template-card:hover { transform:translateY(-4px);box-shadow:none!important; }
.template-card-img {
  width:100%;max-width:350px;height:240px;border-radius:22px;overflow:hidden;
  background-size:cover;background-position:center;margin:0 auto;cursor:pointer;
}
.card-heart {
  position:absolute;top:14px;right:14px;width:34px;height:34px;
  background:#FFFFFF;border-radius:50%;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  z-index:2;
}
.card-heart i { color:#333;font-size:0.95rem; }
.card-heart:hover { background:#f0f0f0; }
.card-view-more {
  position:absolute;bottom:14px;left:14px;
  background:rgba(255,255,255,0.95);border-radius:30px;
  padding:5px 14px;font-size:14px;font-weight:600;
  color:#0D0C0C;text-decoration:none;display:inline-flex;
  align-items:center;gap:6px;z-index:2;
  transition:background .2s;    }
.card-view-more:hover { background:#fff;color:#111; }
.card-duration {
  position:absolute;bottom:14px;right:14px;
  background:rgba(0,0,0,0.7);border-radius:8px;
  padding:3px 10px;font-size:17px;font-weight:600;
  color:#FFFDFD;z-index:2;    }
.template-card .card-info {
  text-align:center;padding:12px 8px 4px;
}
.template-card .card-info .card-title-text {
  font-size:18px;font-weight:600;color:#0D0C0C;
  margin-bottom:2px;    }
.template-card .card-info .card-price {
  font-size:18px;font-weight:600;color:#0D0C0C;
      }
.whats-new-pagination {
  display:flex;justify-content:center;align-items:center;
  gap:8px;margin-top:32px;
}
.whats-new-pagination .page-btn {
  width:38px;height:38px;border-radius:10px;border:1px solid #e0e0e0;
  background:#fff;display:flex;align-items:center;justify-content:center;
  font-size:0.88rem;color:#555;cursor:pointer;transition:all .2s;
}
.whats-new-pagination .page-btn:hover { border-color:#1976d2;color:#1976d2; }
.whats-new-pagination .page-btn.active {
  background:#1976d2;color:#fff;border-color:#1976d2;
}

/* Topic card */
.topic-card { height:228px;cursor:pointer;transition:transform .2s;border-radius:22px;overflow:hidden; }
.topic-card:hover { transform:translateY(-3px); }
.topic-card .card-heart { position:absolute;top:14px;right:14px; }
.topic-card .card-view-more { position:absolute;bottom:14px;left:14px; }
.topic-card-label { text-align:center;padding:10px 0 4px;font-size:18px;font-weight:600;color:#0D0C0C; }

/* About + FAQ combined */
.about-faq-section {
  background: linear-gradient(180deg, #0069A7 0%, #002941 100%);
}
.about-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
}
.about-text {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  line-height: 2;
  max-width: 960px;
  margin: 0 auto;
}
.faq-heading {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 48px;
}
.about-faq-section .accordion {
  max-width: 960px;
  margin: 0 auto;
}
.about-faq-section .accordion-item {
  border: none;
  border-radius: 16px !important;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.about-faq-section .accordion-button {
  font-size: 18px;
  font-weight: 600;
  color: #0D0C0C;
  padding: 24px 32px;
  background: #fff;
  border-radius: 16px !important;
}
.about-faq-section .accordion-button:not(.collapsed) {
  background: #fff;
  color: #0D0C0C;
  box-shadow: none;
}
.about-faq-section .accordion-button:focus {
  box-shadow: none;
}
.about-faq-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  width: 24px;
  height: 24px;
  background-size: 24px;
}
.about-faq-section .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 15 12 9 6 15'%3E%3C/polyline%3E%3C/svg%3E");
  transform: none;
}
.about-faq-section .accordion-body {
  padding: 0 32px 24px;
  color: #666;
  font-size: 16px;
  line-height: 1.8;
}

/* Testimonials */
.testimonials-bg {
  background: radial-gradient(88.75% 280.49% at 68.44% 69.26%, #66A3F2 0%, #FFFFFF 100%);
}
.testimonials-bg h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
}
.testimonial-card {
  background: #FFFFFF;
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform .2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial-card:hover { transform: translateY(-3px); }
.testimonial-card .testimonial-text {
  color: #0D0C0C;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}
.testimonial-card .testimonial-role {
  color: #7AABDB;
  font-size: 15px;
  font-weight: 400;
}

/* Blog / Updates */
.blog-section {
  background: linear-gradient(180deg, #0069A7 0%, #002941 100%);
  padding: 60px 0 80px;
}
.blog-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 16px;
}
.blog-section .blog-view-all {
  color: #FFFFFF;
  font-size: 20px;
  text-decoration: none;
  font-weight: 600;
}
.blog-section .blog-view-all:hover {
  opacity: 0.8;
}
.blog-card {
  transition: transform .2s;
  cursor: pointer;
  background: #fff;
  border: none;
  border-radius: 20px;
  overflow: hidden;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-img { height: 240px; }
.blog-card .card-title { font-size:18px; color:#0D0C0C; }
.blog-card .card-text { font-size:15px; line-height:1.7; }
.view-all-link { color:#052F64; font-size:20px; font-weight:600; }
.section-heading-lg { font-size:50px; font-weight:600; }
.view-all-wrap { padding-right:40px; }

/* CTA */
.cta-bg {
  background: radial-gradient(88.75% 280.49% at 68.44% 69.26%, #566FF2 0%, #66A2F2 100%);
}
.cta-bg p {
  font-size: 36px;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 50px;
  text-align: center;
}
.cta-btn-custom {
  width: 200px;
  height: 52px;
  background: #FFFFFF;
  box-shadow: 0px 4px 10px 6px rgba(188, 188, 188, 0.25);
  border-radius: 50px;
  color: #0A0A0A;
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cta-btn-custom:hover {
  background: #F0F0F0;
  color: #0A0A0A;
  transform: translateY(-2px);
  box-shadow: 0px 4px 14px 8px rgba(188, 188, 188, 0.35);
}

/* Footer */
.footer-bg { background: #0A0A0A; }
.footer-logo-area {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-divider-top {
  border: none;
  border-top: 3px solid #FFFFFF;
  margin: 0;
  flex: none;
  width: 40%;
}
.footer-social-icon {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .2s; color: #fff; font-size: 20px;
}
.footer-social-icon:hover { opacity: 0.7; color: #fff; }
.footer-col-title {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-link {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: color .2s;
}
.footer-link:hover { color: #FFFFFF; }
.footer-copyright {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.footer-copyright span { color: #FFFFFF; }

/* Sidebar (sticky within section) */
.sidebar-inline {
  width: 71px;
  min-width: 71px;
  background: #FFFFFF;
  box-shadow: 0px 4px 4px 5px rgba(163, 163, 163, 0.06);
  transition: width .3s ease, min-width .3s ease;
  align-self: flex-start;
  padding: 0;
  margin: 16px 0 16px 16px;
  overflow: hidden;
}
.sidebar-inline.expanded { width: 300px; min-width: 300px; padding: 0; }
.sidebar-header {
  background: #002941;
  padding: 13px 17px;
  cursor: pointer;
  min-height: 57px;
  display: flex;
  align-items: center;
}
.sidebar-hamburger {
  width: 37px; height: 3px; background: #FDD400; border-radius: 1.5px;
  display: block; margin: 5.5px 0;
}
.sidebar-header-title {
  color: #fff; font-size: 18px; font-weight: 600; margin-left: 16px;
  white-space: nowrap; opacity: 0; transition: opacity .2s;
}
.sidebar-inline.expanded .sidebar-header-title { opacity: 1; }
.sidebar-icon {
  width: 44px; height: 44px;
  color: #A3A3A3;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s, box-shadow .2s;
}
/* บังคับทุกไอคอนกล่องเท่ากัน — กัน viewBox aspect ratio ทำให้ดูเล็ก/ใหญ่ไม่เท่ากัน */
.sidebar-icon svg { width: 26px !important; height: 26px !important; display: block; flex-shrink: 0; }
.sidebar-icon:hover {
  background: #eef4fb !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(25,118,210,0.18);
}
.sidebar-icon:hover svg path,
.sidebar-icon:hover svg line,
.sidebar-icon:hover svg circle { stroke: #1976d2; fill: #1976d2; }
.sidebar-icon.is-active { background: #1976d2 !important; }
.sidebar-icon.is-active svg path,
.sidebar-icon.is-active svg line,
.sidebar-icon.is-active svg circle { stroke: #fff; fill: #fff; }
.sidebar-divider { width: 28px; height: 0; border: none; border-top: 1px solid #e0e4e8; margin: 10px auto; opacity: 1; }
.sidebar-filter { display: none; overflow-y: auto; }
.sidebar-inline.expanded .sidebar-filter { display: block; }
.sidebar-inline.expanded .sidebar-icons-compact { display: none!important; }
.sidebar-filter .form-check { padding-left: 2.2em; }
.sidebar-filter .form-check-input { width: 18px; height: 18px; border: 1px solid #A3A3A3; border-radius: 5px; }
.sidebar-filter .form-check-input:checked { background-color: #1976d2; border-color: #1976d2; }
.sidebar-filter .form-check-label { color: #A3A3A3; font-size: 16px; }
.sidebar-filter h6 { color: #A3A3A3; font-size: 18px; font-weight: 400; }

/* Main content area with sidebar */
.content-with-sidebar {
  display: flex;
  min-height: 100vh;
}
.content-main {
  flex: 1;
  min-width: 0;
}

/* Account dropdown */
.account-dropdown-menu {
  width:260px;border:none;border-radius:14px;
  box-shadow:0 8px 30px rgba(0,0,0,0.18);
}
.account-dropdown-menu .px-4 { padding-left:14px!important; padding-right:14px!important; }
.account-dropdown-menu .pt-4 { padding-top:12px!important; }
.account-dropdown-menu .pb-3 { padding-bottom:8px!important; }
.dropdown-avatar-lg {
  width:40px;height:40px;background:linear-gradient(135deg,#6c63ff,#e91e63);
  font-size:15px!important;
}
.dropdown-pro-btn {
  background:#0071ff;transition:background .2s;
  font-size:15px!important;
  padding:6px 0!important;
}
.dropdown-pro-btn:hover { background:#005ad4; }
.dropdown-menu-item {
  transition:background .15s;
  font-size:14px;
  padding-top:8px!important;
  padding-bottom:8px!important;
  padding-left:14px!important;
}
.dropdown-menu-item .fs-5 { font-size:15px!important; }
.dropdown-menu-item:hover { background:#f7f7f7; }
.dropdown-logout { font-size:14px; }
.dropdown-logout:hover { color:#e53935!important; }
.account-dropdown-menu .py-3 { padding-top:8px!important; padding-bottom:8px!important; }

/* Placeholder backgrounds */
.bg-warm,.bg-cool,.bg-purple,.bg-green,.bg-orange,.bg-pink,.bg-teal,.bg-amber,.bg-red,.bg-indigo,.bg-lime,.bg-deep,.bg-blog1,.bg-blog2,.bg-blog3{background:url('no-image.jpg') center/cover no-repeat;}

/* ===== TABLET BREAKPOINT ===== */
@media(max-width:991.98px){
  /* Hero */
  .hero-inner { min-height:380px; padding:40px 0 20px; }
  .hero-inner::before { width:400px; height:440px; left:-160px; top:-200px; }
  .hero-inner::after { width:340px; height:370px; right:-60px; top:-60px; }
  .hero-subtitle { font-size:19px; }
  .hero-search-input { height:55px; font-size:14px; }
  .hero-filter-btn { width:60px; height:55px; font-size:22px; }
  .hero-tag { width:110px; height:32px; font-size:14px; }

  /* Blue section */
  .blue-section { height:auto; padding:48px 0; }
  .blue-section h2 { font-size:32px; line-height:1.3; }
  .blue-section .stat-number { font-size:2.5rem!important; }
  .cat-card { width:160px; height:110px; padding:14px 10px; }
  .cat-card-label { font-size:13px; }

  /* Section headings with inline styles */
  .section-heading-lg { font-size:36px; }

  /* Template cards */
  .template-card-img { height:200px; }
  .card-view-more { font-size:13px; padding:5px 12px; }

  /* Topic cards */
  .topic-card { height:180px; }
  .topic-card-label { font-size:17px; }

  /* About + FAQ */
  .about-faq-section .accordion-button { font-size:16px; padding:18px 24px; }
  .about-faq-section .accordion-body { padding:0 24px 20px; font-size:15px; }
  .about-text { font-size:15px; line-height:1.8; }

  /* Testimonials */
  .testimonials-bg h2 { font-size:32px; }
  .testimonial-card .testimonial-text { font-size:15px; }

  /* Blog */
  .blog-card-img { height:200px; }

  /* CTA */
  .cta-bg p { font-size:28px; line-height:40px; }

  /* Footer */
  .footer-divider-top { width:60%; }
}

/* ===== MOBILE BREAKPOINT ===== */
@media(max-width:767.98px){
  /* Hero */
  .hero-float { display:none; }
  .hero-inner { min-height:320px; padding:32px 0 16px; }
  .hero-inner::before { width:250px; height:270px; left:-100px; top:-130px; }
  .hero-inner::after { width:200px; height:220px; right:-40px; top:-40px; }
  .hero-title { font-size:24px!important; line-height:1.3; }
  .hero-subtitle { font-size:16px; }
  .hero-search-box { max-width:100%; }
  .hero-search-input { height:48px; padding:10px 44px 10px 16px; font-size:14px; }
  .hero-search-icon { font-size:18px; right:16px; }
  .hero-filter-btn { width:48px; height:48px; font-size:20px; border-radius:10px; }
  .hero-tag { width:100px; height:30px; font-size:13px; padding:4px 0; }
  .hero-tag-label { font-size:13px; }
  .hero-content.px-3 { padding-left:16px!important; padding-right:16px!important; }

  /* Sidebar */
  .sidebar-inline { display:none!important; }
  .content-with-sidebar { display:block; }

  /* Blue section (stats + categories) */
  .blue-section { height:auto; padding:36px 0; }
  .blue-section h2 { font-size:24px; line-height:1.3; margin-bottom:20px!important; }
  .blue-section .stat-label { font-size:13px; }
  .blue-section .stat-number { font-size:2rem!important; }
  .blue-section .row.g-4.mb-5 { margin-bottom:1.5rem!important; }
  .cat-card { width:140px; height:100px; padding:12px 8px; border-radius:12px; }
  .cat-card-icon { height:44px; margin-bottom:6px; }
  .cat-card-icon svg { width:36px; height:36px; }
  .cat-card-label { font-size:12px; }

  /* "What's new" section heading */
  .content-main .py-5 { padding-top:2rem!important; padding-bottom:2rem!important; }

  /* Section headings with inline font-size:50px */
  .section-heading-lg { font-size:28px; }

  /* Template cards */
  .template-card-img { max-width:100%; height:180px; border-radius:16px; }
  .card-view-more { font-size:12px; padding:4px 10px; bottom:10px; left:10px; border-radius:24px; }
  .card-heart { width:28px; height:28px; top:10px; right:10px; }
  .card-heart i { font-size:0.8rem; }
  .card-duration { font-size:13px; padding:2px 8px; bottom:10px; right:10px; }
  .template-card .card-info { padding:8px 4px 2px; }
  .template-card .card-info .card-title-text { font-size:13px; }
  .template-card .card-info .card-price { font-size:13px; }
  .whats-new-pagination { margin-top:20px; gap:6px; }
  .whats-new-pagination .page-btn { width:32px; height:32px; font-size:0.8rem; border-radius:8px; }

  /* Topic cards (search other topics) */
  .topic-card { height:150px; border-radius:16px; }
  .topic-card .card-view-more { font-size:13px; padding:4px 10px; bottom:8px; left:8px; }
  .topic-card .card-heart { top:8px; right:8px; }
  .topic-card-label { font-size:15px; padding:6px 0 2px; }

  /* About + FAQ section */
  .about-faq-section .container.text-white.text-center.py-5 { padding:2rem 0!important; }
  .about-heading { font-size:24px!important; margin-bottom:1.5rem!important; }
  .about-text { font-size:14px; line-height:1.7; }
  .about-text br { display:none; }
  .faq-heading { font-size:24px!important; margin-bottom:28px; }
  .about-faq-section .accordion-button { font-size:15px; padding:16px 20px; }
  .about-faq-section .accordion-body { padding:0 20px 16px; font-size:14px; line-height:1.7; }
  .about-faq-section .accordion-item { margin-bottom:12px; border-radius:12px!important; }

  /* Testimonials */
  .testimonials-bg { padding-top:2rem!important; padding-bottom:2rem!important; }
  .testimonials-bg .container.py-4 { padding-top:0.5rem!important; padding-bottom:0.5rem!important; }
  .testimonials-bg h2 { font-size:24px!important; margin-bottom:1.5rem!important; }
  .testimonial-card { border-radius:12px; }
  .testimonial-card.p-4 { padding:1rem!important; }
  .testimonial-card .testimonial-text { font-size:14px; line-height:1.6; margin-bottom:0.75rem!important; }
  .testimonial-card .testimonial-role { font-size:13px; }

  /* Blog / Updates */
  .blog-section { padding:36px 0 48px; }
  .blog-section h2 { font-size:24px!important; margin-bottom:10px; }
  .blog-section .blog-view-all { font-size:15px; }
  .blog-card-img { height:180px; }
  .blog-card { border-radius:14px; }
  .blog-card .card-body.p-4 { padding:1rem!important; }
  .blog-card .card-title { font-size:16px!important; }
  .blog-card .card-text { font-size:14px!important; }

  /* CTA section */
  .cta-bg .container.py-4 { padding-top:0.5rem!important; padding-bottom:0.5rem!important; }
  .cta-bg p { font-size:20px; line-height:30px; }
  .cta-btn-custom { width:170px; height:44px; font-size:17px; }

  /* Footer */
  .footer-bg .d-flex.align-items-start.gap-4.mb-5 {
    flex-direction:column;
    gap:16px!important;
    margin-bottom:2rem!important;
  }
  .footer-bg .d-flex.align-items-start.gap-4.mb-5 .flex-grow-1 { padding-top:0!important; }
  .footer-divider-top { width:80%; }
  .footer-bg .d-flex.gap-4 { gap:1rem!important; }
  .footer-col-title { font-size:15px; margin-bottom:14px; }
  .footer-link { font-size:13px; }
  .footer-bg .row.mb-5 { margin-bottom:1.5rem!important; }
  .footer-copyright { font-size:13px; }
  .footer-bg.pt-5.pb-5 { padding-top:2rem!important; padding-bottom:2rem!important; }

  /* Header adjustments */
  .header-nav .nav-link { font-size:14px; padding:6px 10px; }
  .logo-text svg { width:160px; height:auto; }

  /* Mobile dropdown - compact & themed */
  .account-dropdown-menu { box-shadow:0 8px 30px rgba(0,0,0,0.2); }
  .account-dropdown-menu .px-4 { padding-left:16px!important; padding-right:16px!important; }
  .account-dropdown-menu .pt-4 { padding-top:14px!important; }
  .account-dropdown-menu .pb-3 { padding-bottom:10px!important; }
  .dropdown-avatar-lg { width:42px; height:42px; font-size:16px!important; }
  .account-dropdown-menu .fw-semibold[style*="font-size:17px"] { font-size:15px!important; }
  .account-dropdown-menu .text-muted[style*="font-size:14px"] { font-size:12px!important; }
  .account-dropdown-menu .badge { font-size:11px!important; }
  .dropdown-pro-btn { font-size:16px!important; padding:8px 0!important; }
  .dropdown-menu-item.py-3 { padding-top:10px!important; padding-bottom:10px!important; }
  .dropdown-menu-item .fs-5 { font-size:16px!important; }
  .account-dropdown-menu .py-3:last-child { padding-top:10px!important; padding-bottom:10px!important; }

  /* General spacing - เพิ่ม padding ด้านข้างทุกส่วน */
  .container,
  .container-fluid.px-4,
  .container-fluid.px-5 { padding-left:24px!important; padding-right:24px!important; }
  .about-heading,
  .about-text { padding-left:8px; padding-right:8px; }

  /* "ดูทั้งหมด" ลด padding-right บนมือถือ */
  .view-all-wrap { padding-right:0; }
}

/* ===== SMALL MOBILE ===== */
@media(max-width:479.98px){
  .hero-title { font-size:20px!important; }
  .hero-subtitle { font-size:14px; }
  .hero-search-input { height:44px; padding:8px 40px 8px 14px; }
  .hero-filter-btn { width:44px; height:44px; font-size:18px; }
  .hero-tag { width:85px; height:28px; font-size:12px; }
  .hero-tag-label { font-size:12px; }

  .section-heading-lg { font-size:22px; }
  .blue-section h2 { font-size:20px; }
  .cat-card { width:120px; height:90px; padding:10px 6px; }
  .cat-card-icon { height:36px; }
  .cat-card-icon svg { width:28px; height:28px; }
  .cat-card-label { font-size:11px; }

  .template-card-img { height:150px; border-radius:12px; }
  .card-view-more { font-size:11px; padding:3px 8px; }

  .topic-card { height:120px; border-radius:12px; }
  .topic-card-label { font-size:13px; }

  .about-heading { font-size:20px!important; }
  .faq-heading { font-size:20px!important; }
  .about-faq-section .accordion-button { font-size:14px; padding:14px 16px; }

  .testimonials-bg h2 { font-size:20px!important; }
  .testimonial-card .testimonial-text { font-size:13px; }

  .blog-section h2 { font-size:20px!important; }
  .blog-card-img { height:150px; }

  .cta-bg p { font-size:17px; line-height:26px; }
  .cta-btn-custom { width:150px; height:42px; font-size:15px; }
}

/* ============================================================ */
/* Animations (GSAP storefront system — resources/js/storefront.js) */
/* ============================================================ */

/* Hide reveal targets only once JS has booted with motion allowed.
   If the bundle fails or prefers-reduced-motion is on, content stays visible. */
html.js-anim-ready [data-animate]:not([data-anim-bound]) { opacity: 0; }

/* Header shrinks slightly + deepens shadow after scrolling */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }

/* Scroll progress bar (element injected by storefront.js) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FDD400, #5EE0F5);
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 10000;
  pointer-events: none;
}

/* CTA button idle pulse ring */
.cta-btn-custom { animation: ctaPulse 2.6s ease-out infinite; }
@keyframes ctaPulse {
  0%   { box-shadow: 0px 4px 10px 6px rgba(188, 188, 188, 0.25), 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%  { box-shadow: 0px 4px 10px 6px rgba(188, 188, 188, 0.25), 0 0 0 18px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0px 4px 10px 6px rgba(188, 188, 188, 0.25), 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* CTA button shine sweep on hover */
.cta-btn-custom { position: relative; overflow: hidden; }
.cta-btn-custom::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.cta-btn-custom:hover::after { left: 130%; }

/* Product card: image zoom inside rounded mask + deeper lift */
.template-card { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.template-card:hover { transform: translateY(-6px); }
.template-card-img {
  transition: transform .5s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
}
.template-card:hover .template-card-img {
  transform: scale(1.03);
  box-shadow: 0 14px 30px rgba(0, 41, 65, 0.18);
}

/* Topic card: image zoom + reveal "view more" */
.topic-card > div:first-child { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.topic-card:hover > div:first-child { transform: scale(1.06); }
.topic-card .card-view-more {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.topic-card:hover .card-view-more { opacity: 1; transform: translateY(0); }

/* Category card: icon pop + gold glow */
.cat-card { transition: transform .3s ease, box-shadow .3s ease; }
.cat-card .cat-card-icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.cat-card:hover .cat-card-icon { transform: scale(1.12) rotate(-3deg); }
.cat-card:hover { box-shadow: 0 10px 26px rgba(253, 212, 0, 0.25); }

/* Heart: pop on hover */
.card-heart { transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s; }
.card-heart:hover { transform: scale(1.15); }
.card-heart:hover i { color: #e0245e; }

/* Testimonial / blog cards: slightly richer lift */
.testimonial-card { transition: transform .3s ease, box-shadow .3s ease; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10); }
.blog-card { transition: transform .3s ease, box-shadow .3s ease; overflow: hidden; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12); }
.blog-card .blog-card-img { transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.blog-card:hover .blog-card-img { transform: scale(1.05); }

/* Pricing card: keep existing lift, add shadow depth */
.pricing-card:hover { box-shadow: 0 16px 34px rgba(0, 41, 65, 0.14); }

/* Reduced motion: kill CSS-driven movement, keep things visible */
@media (prefers-reduced-motion: reduce) {
  .cta-btn-custom { animation: none; }
  .scroll-progress { display: none; }
  .cta-btn-custom::after { display: none; }
  .template-card, .template-card-img, .topic-card > div:first-child,
  .cat-card, .cat-card .cat-card-icon, .card-heart,
  .testimonial-card, .blog-card, .blog-card .blog-card-img,
  .topic-card .card-view-more {
    transition: none !important;
    transform: none !important;
  }
  .topic-card .card-view-more { opacity: 1; }
}

/* ===== Wishlist buttons (collection-toggle) ===== */
.btn-wishlist {
    background: #e63956;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: background .2s, transform .2s, box-shadow .2s;
}

.btn-wishlist:hover {
    background: #c92745;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 57, 86, 0.35);
}

.btn-wishlist.is-saved {
    background: #c92745;
    color: #fff;
}

.btn-wishlist-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #6c757d;
    padding: 0;
    font-size: 16px;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.btn-wishlist-icon:hover {
    background: #e63956;
    border-color: #e63956;
    color: #fff;
    transform: scale(1.08);
}

.btn-wishlist-icon.is-saved {
    color: #e63956;
    border-color: #e63956;
    background: rgba(230, 57, 86, 0.08);
}

/* Icon-only toggle inside an existing .card-heart circle: fill it, no double ring */
.card-heart .d-inline-flex,
.card-heart .btn-wishlist-icon {
    width: 100%;
    height: 100%;
}

.card-heart .btn-wishlist-icon {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #333;
}

.card-heart .btn-wishlist-icon:hover {
    background: transparent;
    color: #e63956;
    transform: scale(1.12);
}

.card-heart .btn-wishlist-icon.is-saved {
    background: transparent;
    color: #e63956;
}

/* ===== License selector rows (purchase page) ===== */
.license-rows {
    border-top: 1px solid #E5E7EB;
}
.license-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #E5E7EB;
    text-align: left;
    cursor: pointer;
    transition: background .2s;
}
.license-row:hover { background: rgba(48, 165, 253, 0.04); }
.license-row.is-active { background: rgba(48, 165, 253, 0.06); }
.license-row-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 600;
    color: #1A1A1A;
}
.license-row.is-active .license-row-name { color: #002941; }
.license-row-price {
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 700;
    color: #1A1A1A;
    flex-shrink: 0;
}
.license-help { position: relative; display: inline-flex; }
.license-help-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #C7CCD1;
    color: #9AA0A6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: border-color .2s, color .2s;
}
.license-help-btn:hover { border-color: #30A5FD; color: #30A5FD; }
.license-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background: #002941;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    z-index: 30;
}
.license-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) rotate(45deg) translateY(-4px);
    width: 8px;
    height: 8px;
    background: #002941;
}

/* ===== Custom Request form (customize page) ===== */
.cr-section-title {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 20px;
}
.cr-field { margin-bottom: 22px; }
.cr-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(15px, 1.4vw, 17px);
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 10px;
}
.cr-input,
.cr-textarea,
.cr-select {
    width: 100%;
    background: #F4F5F7;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 13px 18px;
    font-size: 15px;
    color: #1A1A1A;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.cr-input::placeholder,
.cr-textarea::placeholder { color: #B6BBC2; }
.cr-input:focus,
.cr-textarea:focus,
.cr-select:focus {
    outline: none;
    background: #fff;
    border-color: #5467F2;
    box-shadow: 0 0 0 3px rgba(84, 103, 242, 0.12);
}
.cr-textarea { resize: vertical; min-height: 120px; }
.cr-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.cr-input-group .cr-input { flex: 1; }
.cr-select {
    width: auto;
    min-width: 96px;
    flex-shrink: 0;
    cursor: pointer;
}
.cr-error {
    display: block;
    color: #e63956;
    font-size: 13px;
    margin-top: 6px;
}

/* help tooltip */
.cr-help { position: relative; display: inline-flex; }
.cr-help-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #C7CCD1;
    color: #9AA0A6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}
.cr-help-btn:hover { border-color: #5467F2; color: #5467F2; }
.cr-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    background: #F4F5F7;
    color: #333;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 30;
}

/* template image (purchase-page style) */
.cr-img-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #ffcdd2, #ef5350, #c62828);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}
.cr-thumb { cursor: pointer; transition: transform .2s; }
.cr-thumb:hover { transform: translateY(-2px); }
@media(max-width:991.98px) {
    .cr-img-placeholder { height: 360px; }
    .cr-thumbnails .cr-thumb { height: 80px !important; }
}

/* upload button */
.cr-upload { display: inline-block; cursor: pointer; }
.cr-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EDEFF1;
    color: #6B7280;
    border-radius: 12px;
    padding: 11px 22px;
    font-size: 15px;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.cr-upload:hover .cr-upload-btn { background: #5467F2; color: #fff; }
.cr-upload-name {
    display: inline-block;
    margin-left: 12px;
    font-size: 13px;
    color: #198754;
    vertical-align: middle;
}

/* checkbox / radio */
.cr-check,
.cr-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(15px, 1.4vw, 17px);
    color: #1A1A1A;
    cursor: pointer;
    margin-bottom: 12px;
}
.cr-check input[type="checkbox"],
.cr-radio input[type="radio"] {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #5467F2;
}

.cr-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 32px 0;
}

/* submit */
.cr-submit {
    background: #5467F2;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 60px;
    font-size: 18px;
    font-weight: 700;
    transition: background .2s, transform .2s, box-shadow .2s;
}
/* ปุ่มเวอร์ชันเล็ก (ใช้ใน confirm modal) */
.cr-submit--sm { padding: 8px 32px; font-size: 15px; }
.cr-submit:hover:not(:disabled) {
    background: #3f51b5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(84, 103, 242, 0.35);
}
.cr-submit:disabled { opacity: .7; cursor: not-allowed; }

/* ===== Custom Request — confirm modal ===== */
.cr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: crFade .2s ease;
}
@keyframes crFade { from { opacity: 0; } to { opacity: 1; } }
.cr-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: crPop .22s ease;
}
@keyframes crPop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.cr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #EEF0F2;
}
.cr-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}
.cr-modal-close {
    background: none;
    border: none;
    color: #9AA0A6;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color .2s;
}
.cr-modal-close:hover { color: #1A1A1A; }
.cr-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    color: #333;
}
.cr-modal-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 18px 0 8px;
}
.cr-modal-body h4:first-child { margin-top: 0; }
.cr-modal-body ul {
    margin: 0 0 4px;
    padding-left: 22px;
}
.cr-modal-body li {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}
.cr-modal-body ul ul { margin-top: 2px; }
.cr-modal-footer {
    padding: 18px 24px 22px;
    border-top: 1px solid #EEF0F2;
}
.cr-modal-agree {
    font-size: 15px;
    font-weight: 500;
}
.cr-btn-cancel {
    background: #EDEFF1;
    color: #555;
    border: none;
    border-radius: 30px;
    padding: 8px 32px;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s;
}
.cr-btn-cancel:hover { background: #DFE2E6; }

/* ===== Mega Dropdown (contained panel) ===== */
[x-cloak] { display: none !important; }

.nav-caret { font-size: 12px; margin-left: 4px; transition: transform .2s; opacity: .7; }
.header-nav .nav-link.is-active { color: #fff; }
.header-nav .nav-link.is-active .nav-caret { transform: rotate(180deg); }

.mega-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  z-index: 999;
  width: min(900px, calc(100vw - 48px));
}
/* Slide-down transition (เลื่อนลงมาจากเมนู) — easeOutExpo ให้ลื่นนุ่ม */
.mega-trans { transition: opacity .3s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.mega-hidden { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.98); }
.mega-shown  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.mega-panel {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,41,65,0.22);
  padding: 22px;
}

/* Left featured image */
.mega-feature {
  position: relative;
  flex: 0 0 38%;
  border-radius: 16px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 280px;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
}
.mega-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,41,65,0) 35%, rgba(0,41,65,0.78) 100%);
}
.mega-feature-overlay {
  position: relative;
  z-index: 1;
  padding: 18px;
  width: 100%;
}
.mega-feature-label {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}
.mega-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #FDD400;
  font-size: 14px;
  font-weight: 600;
}

/* Right body */
.mega-body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.mega-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a9bac;
  margin-bottom: 14px;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mega-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f7fa;
  text-decoration: none;
  color: #2b3a47;
  font-size: 15px;
  font-weight: 600;
  transition: background .16s, color .16s, box-shadow .16s, transform .16s;
}
.mega-card:hover {
  background: #eef4fb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,41,65,0.1);
}
.mega-card-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #4a6075;
  transition: color .16s;
}
.mega-card-label { line-height: 1.25; }

/* Active / highlighted card (matches reference's selected state) */
.mega-card--active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37,99,235,0.35);
}
.mega-card--active .mega-card-icon { color: #fff; }
.mega-card--active:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff;
}

@media (max-width: 991px) { .mega-dropdown { display: none !important; } }
