@charset "utf-8";

/* =========================================
   Products Details Page Design
   ========================================= */

body.simple-shell.products-detail[data-page="products"] {
  background-color: #f9fafb;
}

body.simple-shell[data-page="products"] .simple-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.simple-shell[data-page="products"] .products-nav-sep {
  width: 1px;
  height: 22px;
  background: rgba(148, 163, 184, 0.4);
}

body.simple-shell[data-page="products"] .products-nav-logo {
  height: 24px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  display: block;
}

body.simple-shell[data-page="products"]:not(.products-detail) main.container {
  max-width: none;
  width: 100%;
  padding: 10px 0 0 !important;
  overflow-x: hidden;
}

body.simple-shell[data-page="products"] .study-hero {
  width: 100vw;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-top: 8px;
  margin-bottom: 20px;
  background: #fff;
  padding: 0;
}

body.simple-shell[data-page="products"] .study-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-hero {
  width: min(1200px, calc(100vw - 32px));
  aspect-ratio: 3 / 1;
  margin: 10px auto 20px;
  background: #fff;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-hero-img {
  height: 100%;
  object-fit: contain;
  object-position: center;
}

@media (prefers-reduced-motion: no-preference) {
  body.simple-shell[data-page="products"]:not(.products-detail) .study-hero-img {
    animation: fadeUp .50s var(--easing-out) both;
    animation-delay: 40ms;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-section {
    animation: fadeUp .56s var(--easing-out) both;
    animation-delay: 90ms;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) #list {
    animation: fadeUp .56s var(--easing-out) both;
    animation-delay: 140ms;
  }
}

body.simple-shell.products-detail[data-page="products"] .simple-header .header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.simple-shell.products-detail[data-page="products"] .products-nav-sep {
  width: 1px;
  height: 22px;
  background: rgba(148, 163, 184, 0.4);
}

body.simple-shell.products-detail[data-page="products"] .products-nav-logo {
  height: 24px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  display: block;
}

body.simple-shell.products-detail[data-page="products"] .study-hero {
  width: min(1200px, calc(100vw - 32px));
  aspect-ratio: 3 / 1;
  position: relative;
  margin: 10px auto 20px;
  background: #fff;
  padding: 0;
}

body.simple-shell.products-detail[data-page="products"] .study-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-section,
body.simple-shell[data-page="products"]:not(.products-detail) #list {
  width: min(1200px, calc(100vw - 32px));
  margin-left: auto;
  margin-right: auto;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-section {
  margin-top: 18px;
  margin-bottom: 24px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-section-lead {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-card {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.simple-shell[data-page="products"]:not(.products-detail) .study-card-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background-color: #c73e4a;
  border-radius: 2px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-card-sub {
  font-size: 13px;
  color: #4b5563;
  margin-top: 6px;
  font-weight: 500;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-card-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-card-list li {
  position: relative;
  padding-left: 18px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #c73e4a;
  opacity: 0.8;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-step {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-step .k {
  display: block;
  font-size: 12px;
  color: #be123c;
  font-weight: 800;
}

body.simple-shell[data-page="products"]:not(.products-detail) .study-step .t {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: #1f2937;
  font-weight: 700;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list {
  display: grid;
  gap: 14px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-row {
  display: grid;
  grid-template-columns: 240px minmax(0,1fr) 42px;
  gap: 14px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 14px;
  overflow: hidden;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-media img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  display: block;
  background: #f8fafc;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-main {
  padding: 14px 0 12px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.simple-shell[data-page="products"]:not(.products-detail) .target-pill {
  font-size: 12px;
  font-weight: 700;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 2px 8px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .target-pill-plain {
  color: #334155;
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-title {
  margin-top: 8px;
  font-size: 22px;
  color: #0b132b;
  font-weight: 900;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-sub {
  margin-top: 6px;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-points {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.8;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-bottom {
  margin-top: 8px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-cta {
  font-size: 13px;
  font-weight: 700;
  color: #be123c;
}

body.simple-shell[data-page="products"]:not(.products-detail) .list-right {
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: 22px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .qa-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .qa-item {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

body.simple-shell[data-page="products"]:not(.products-detail) .qa-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: #0f172a;
  font-weight: 700;
}

body.simple-shell[data-page="products"]:not(.products-detail) .qa-q-icon,
body.simple-shell[data-page="products"]:not(.products-detail) .qa-a-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #c73e4a;
}

body.simple-shell[data-page="products"]:not(.products-detail) .qa-toggle-icon::before {
  content: '+';
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
}

body.simple-shell[data-page="products"]:not(.products-detail) .qa-question[aria-expanded="true"] .qa-toggle-icon::before {
  content: '−';
}

body.simple-shell[data-page="products"]:not(.products-detail) .qa-answer {
  border-top: 1px solid #f1f5f9;
}

body.simple-shell[data-page="products"]:not(.products-detail) .qa-answer-inner {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}

body.simple-shell[data-page="products"]:not(.products-detail) .qa-a-text {
  color: #475569;
  line-height: 1.8;
  font-size: 14px;
}

body.simple-shell.products-detail[data-page="products"] .product-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* --- Section Container --- */
body.simple-shell.products-detail[data-page="products"] .product-section {
  margin-bottom: 32px;
}

body.simple-shell.products-detail[data-page="products"] .product-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.simple-shell.products-detail[data-page="products"] .product-section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: #c73e4a;
  border-radius: 2px;
  display: block;
}

/* --- Module Card Design --- */
body.simple-shell.products-detail[data-page="products"] .module-briefs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.simple-shell.products-detail[data-page="products"] .module-brief {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  padding: 24px;
  border: 1px solid rgba(229, 231, 235, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
body.simple-shell.products-detail[data-page="products"] .module-brief:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

body.simple-shell.products-detail[data-page="products"] .module-brief-title {
  margin: 0 0 16px;
  font-size: 18px;
  color: #111827;
  font-weight: 800;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

body.simple-shell.products-detail[data-page="products"] .module-brief-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* --- Survey Grid (Updated) --- */
.survey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.survey-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.survey-text {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.survey-text strong {
  color: #c73e4a;
  font-size: 18px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.survey-bar-bg {
  width: 100%;
  height: 10px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}
.survey-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #c73e4a, #e11d48);
  border-radius: 999px;
}

/* --- Plan Block & Timeline (Updated) --- */
.plan-block {
  margin-bottom: 32px;
}
.plan-block:last-child {
  margin-bottom: 0;
}

/* --- Plan Block List Enhancement --- */
.plan-block ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-block ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.plan-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #c73e4a;
  box-shadow: 0 0 0 2px rgba(199, 62, 74, 0.2);
}

.plan-block h4 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 20px 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-block h4:first-child {
  margin-top: 0;
}

.plan-block h4::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background-color: #c73e4a;
  border-radius: 2px;
}

.plan-block p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 16px 0;
  padding: 12px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
}

.plan-header {
  display: none;
}
.plan-icon {
  display: none;
}
.plan-info {
  flex: 1;
}
.plan-title {
  font-size: 18px;
  font-weight: 800;
  color: #881337;
  line-height: 1.2;
}
.plan-sub {
  font-size: 13px;
  color: #be123c;
  margin-top: 4px;
}

.plan-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.plan-switch-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
}

.plan-switch-btn.is-active {
  background: #c73e4a;
  color: #fff;
}

@media (max-width: 640px) {
  .plan-switcher {
    gap: 6px;
  }

  .plan-switch-btn {
    min-height: 44px;
    padding: 10px 14px;
  }
}

.edu-plan-panel {
  margin-top: 12px;
}

/* Timeline 2.0 */
.guide-timeline {
  position: relative;
  padding-left: 12px;
}
.guide-timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 27px; /* Adjusted for marker center */
  width: 2px;
  background: #e5e7eb;
  z-index: 0;
}
.guide-timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: 24px;
}
.guide-timeline-item:last-child {
  margin-bottom: 0;
}

.gt-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.gt-num {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 2px solid #c73e4a;
  color: #c73e4a;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #fff; /* Gap effect */
}
/* Dot inside marker is removed in 2.0, using number directly */

.gt-content {
  background: #f9fafb;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #f3f4f6;
  transition: background 0.2s;
}
.guide-timeline-item:hover .gt-content {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.gt-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gt-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.gt-meta span {
  font-size: 12px;
  font-weight: 600;
  color: #9f1239;
  background: #fff1f2;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #fecdd3;
}

.gt-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* Horizontal Timeline */
.ht-container {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 120px 20px; /* Space for top and bottom events/phases */
  margin-top: 16px;
}
.ht-inner {
  position: relative;
  min-width: 800px;
  height: 60px;
}
.ht-track {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  height: 4px;
  background: #c73e4a;
  border-radius: 2px;
}
.ht-arrow {
  position: absolute;
  right: -2px;
  top: 24px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #c73e4a;
}
.ht-phase {
  position: absolute;
  height: 32px;
  line-height: 32px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(199,62,74,0.2);
}
.ht-phase-line {
  position: absolute;
  top: 100%;
  left: 0;
  width: 2px;
  background: inherit;
}
.ht-node {
  position: absolute;
  top: 15px;
  width: 30px;
  margin-left: -15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ht-month {
  width: 30px;
  height: 30px;
  background: #c73e4a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 0 3px #fff;
}
.ht-event {
  position: absolute;
  width: 120px;
  left: 50%;
  margin-left: -60px;
  text-align: center;
}
.ht-event-top {
  bottom: 60px;
}
.ht-event-bottom {
  top: 60px;
}
.ht-event-line {
  position: absolute;
  width: 2px;
  background: #fecdd3;
  left: 50%;
  margin-left: -1px;
}
.ht-event-top .ht-event-line {
  bottom: -15px;
  height: 15px;
}
.ht-event-bottom .ht-event-line {
  top: -15px;
  height: 15px;
}
.ht-event-text {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.5;
}
.ht-event-box {
  background: #c73e4a;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(199,62,74,0.2);
}

/* --- Table Design (Updated) --- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.guide-table {
  width: 100%;
  border-collapse: separate; /* Changed for border-radius */
  border-spacing: 0;
  min-width: 600px;
  font-size: 14px;
  background: #fff;
}
.guide-table th {
  background: #c73e4a;
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  border-right: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid #9f1239;
  text-align: center;
}
.guide-table th:last-child {
  border-right: none;
}
.guide-table td {
  padding: 12px 16px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  line-height: 1.5;
}
.guide-table tr:last-child td {
  border-bottom: none;
}
.guide-table td:last-child {
  border-right: none;
}
.guide-table tbody tr:hover td {
  background-color: #fdf2f8 !important; /* Highlight row on hover */
}
.guide-table td.bg-light {
  background-color: #f9fafb;
  font-weight: 600;
  color: #111827;
}

/* --- Core Grid (Keep minimal if shown) --- */
.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.core-card {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.core-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.core-value {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

/* --- Floating Contact Button --- */
.study-float-btn {
  position: fixed;
  right: 24px;
  bottom: 120px;
  background: linear-gradient(135deg, #c73e4a, #e11d48);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(199, 62, 74, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  z-index: 999;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.study-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(199, 62, 74, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.8);
}
.sfb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sfb-icon svg {
  width: 18px;
  height: 18px;
}

.study-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.study-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.study-modal-content {
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  width: auto;
  background: transparent;
  box-shadow: none;
}
.study-modal-overlay.active .study-modal-content {
  transform: scale(1);
}
.study-modal-close {
  position: absolute;
  top: -16px;
  right: -48px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1;
}
.study-modal-close:hover {
  background: rgba(255,255,255,0.4);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .study-float-btn {
    position: sticky;
    left: auto;
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 20;
    width: min(100% - 24px, 360px);
    margin: 18px auto max(12px, env(safe-area-inset-bottom));
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(199, 62, 74, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.5);
  }
  .sfb-icon svg {
    width: 16px;
    height: 16px;
  }
  .study-modal-close {
    right: 0;
    top: -48px;
  }

  body.simple-shell[data-page="products"] .products-nav-logo {
    height: 20px;
    max-width: 46vw;
  }
  body.simple-shell[data-page="products"] .study-hero {
    margin-top: 6px;
    margin-bottom: 14px;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-hero {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-hero-img {
    height: 100%;
    object-fit: contain;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-section,
  body.simple-shell[data-page="products"]:not(.products-detail) #list {
    width: calc(100vw - 24px);
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-section {
    margin: 16px auto 18px;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-section-title {
    font-size: 18px;
    line-height: 1.35;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-section-lead {
    font-size: 13px;
    line-height: 1.7;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-card {
    padding: 14px 14px 12px;
    scroll-snap-align: none;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-card-title {
    font-size: 16px;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-card-sub {
    font-size: 12px;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-card-list {
    margin-top: 10px;
    gap: 6px;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-card-list li {
    font-size: 13px;
    line-height: 1.5;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .study-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-row {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
    align-items: start;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-media {
    align-self: stretch;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-media img {
    height: 100%;
    min-height: 108px;
    border-radius: 10px;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-main {
    padding: 0;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-top {
    gap: 6px;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-right {
    display: none;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-title {
    margin-top: 6px;
    font-size: 17px;
    line-height: 1.3;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-sub {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-points {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-points li:nth-child(n + 3) {
    display: none;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .list-bottom {
    margin-top: 8px;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .qa-list {
    gap: 12px;
    margin-top: 10px;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .qa-question {
    padding: 14px 12px;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    line-height: 1.6;
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .qa-answer-inner {
    padding: 14px 12px;
    grid-template-columns: 22px minmax(0, 1fr);
  }
  body.simple-shell[data-page="products"]:not(.products-detail) .qa-a-text {
    line-height: 1.85;
  }
  body.simple-shell.products-detail[data-page="products"] .products-nav-logo {
    height: 20px;
    max-width: 46vw;
  }
  body.simple-shell.products-detail[data-page="products"] .study-hero {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 6px;
    margin-bottom: 14px;
  }
  body.simple-shell.products-detail[data-page="products"] .product-main {
    padding: 16px 12px 96px;
  }
  body.simple-shell.products-detail[data-page="products"] .table-responsive,
  body.simple-shell.products-detail[data-page="products"] .ht-container{
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  body.simple-shell.products-detail[data-page="products"] .guide-table{
    width:max-content;
  }
  body.simple-shell.products-detail[data-page="products"] .ht-inner{
    min-width:720px;
  }
  .module-brief {
    padding: 16px;
  }
  .guide-timeline {
    padding-left: 0;
  }
  .guide-timeline::before {
    left: 15px;
  }
  .gt-marker {
    width: 32px;
    height: 32px;
  }
  .gt-num {
    width: 24px;
    height: 24px;
    font-size: 14px;
    box-shadow: 0 0 0 3px #fff;
  }
  .guide-timeline-item {
    padding-left: 40px;
  }
}

.sgu-highlight {
  background: #b73041 !important;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.sgu-highlight h3 {
  font-size: 1.17em !important;
  margin: 0 0 8px !important;
  color: #fff !important;
  font-weight: bold;
}
.sgu-highlight p {
  margin: 0 !important;
  font-size: 14px !important;
  opacity: 0.9 !important;
}

/* SGU Module Content Enhancements */
.sgu-intro-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #fecdd3;
  box-shadow: 0 4px 12px rgba(199, 62, 74, 0.05);
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}
.sgu-intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #c73e4a;
}
.sgu-intro-card p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin: 0;
  text-indent: 2em;
}

.sgu-adv-card {
  background: transparent;
  padding: 0;
  border: none;
}
.sgu-adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .sgu-adv-grid {
    grid-template-columns: 1fr;
  }
}
.sgu-adv-item {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
}
.sgu-adv-item:hover {
  border-color: #fecdd3;
  box-shadow: 0 4px 12px rgba(199, 62, 74, 0.08);
  transform: translateY(-2px);
}
.sgu-adv-icon {
  font-size: 32px;
  font-weight: 900;
  color: #fff1f2;
  -webkit-text-stroke: 1px #fecdd3;
  line-height: 1;
  opacity: 0.8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.sgu-adv-content h4 {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
}
.sgu-adv-content p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.module-brief-raw h4 {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin: 24px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.module-brief-raw h4::before {
  content: '';
  display: block;
  width: 4px;
  height: 16px;
  background-color: #c73e4a;
  border-radius: 2px;
}
.module-brief-raw > p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 20px;
  background: #fff;
}

/* SGU FAQ Styling */
.sgu-faq {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 16px;
}
.faq-item {
  background: #fdfdfd;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #f3f4f6;
  transition: all 0.2s ease;
}
.faq-item:hover {
  border-color: #fecdd3;
  box-shadow: 0 4px 12px rgba(199, 62, 74, 0.05);
}
.faq-item h4 {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin: 0 0 12px 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}
.faq-item h4::before {
  display: none !important;
}
.faq-item h4 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #c73e4a;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: -4px;
}
.faq-item p {
  margin: 0 0 0 44px !important;
  font-size: 14px !important;
  color: #4b5563 !important;
  line-height: 1.7 !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

.sgu-faq-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.faq-page-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.faq-page-btn:hover {
  border-color: #fecdd3;
  color: #c73e4a;
}
.faq-page-btn.active {
  background: #c73e4a;
  color: #fff;
  border-color: #c73e4a;
}

/* --- Compare Layout --- */
.compare-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}
@media (max-width: 768px) {
  .compare-layout {
    grid-template-columns: 1fr;
  }
}
.compare-col {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #f3f4f6;
}
.compare-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}
.compare-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 800;
}
.compare-col-primary {
  background: #fff1f2;
  border-color: #fecdd3;
}
.compare-col-primary .compare-col-title {
  color: #be123c;
  border-bottom-color: #fecdd3;
}
.compare-col-primary .compare-list li::before {
  color: #e11d48;
}
