
:root {
  --bg-main: #f8fafc;
  --panel-bg: #ffffff;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #f59e0b;
  --success: #10b981;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  padding-bottom: 80px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  padding: 16px 5%;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-main {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-divider {
  color: #cbd5e1;
  font-size: 18px;
}

.logo-sub {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.site-badge {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.panel-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 10px;
}

/* Item List / Cards with Thumbnail Left & Content Right */
.item-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.item-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.item-thumb {
  width: 105px;
  height: 148px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  object-fit: cover;
  background: #f1f5f9;
  box-shadow: var(--shadow-sm);
}

.item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.item-title {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
  word-break: break-word;
}

.item-title a:hover {
  color: var(--primary);
}

.item-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  align-self: flex-start;
}

/* Search Bar */
.search-wrapper {
  max-width: 850px;
  margin: 20px auto 35px auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 30px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: var(--text-main);
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

/* Detail Page Layout: 2 Columns */
.detail-layout {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.main-column {
  flex: 2.2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.side-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

/* Video & PDF Containers */
.video-embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  background: #0f172a;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-container {
  width: 100%;
  height: 680px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f1f5f9;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Action Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  font-size: 16.5px;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
  text-align: center;
  gap: 8px;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* Section Box */
.content-box {
  margin-bottom: 18px;
}

.content-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.check-list {
  list-style: none;
  margin-top: 10px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 900;
}

.note-box {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 14px;
  color: #92400e;
  line-height: 1.55;
}

/* FAQs Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.faq-question {
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  gap: 10px;
}

.faq-answer {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ======================================================= */
/* 📱 MOBILE OPTIMIZATIONS & RESPONSIVE BREAKPOINTS */
/* ======================================================= */
@media (max-width: 1024px) {
  .detail-layout {
    flex-direction: column;
  }
  .main-column, .side-column {
    width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand-wrapper {
    gap: 8px;
  }
  .logo-main {
    font-size: 18px;
  }
  .logo-divider {
    font-size: 15px;
  }
  .logo-sub {
    font-size: 15px;
  }
  .site-badge {
    font-size: 11.5px;
    padding: 4px 10px;
  }
  .container {
    padding: 18px 12px;
  }
  .panel {
    padding: 18px 15px;
    border-radius: 10px;
    margin-bottom: 16px;
  }
  .panel-title {
    font-size: 17px;
  }
  h1.page-title {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin-bottom: 15px !important;
  }
  h1.hero-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  .search-wrapper {
    margin: 15px auto 25px auto;
  }
  .search-input {
    padding: 13px 18px;
    font-size: 14.5px;
  }
  .item-card {
    padding: 12px;
    gap: 12px;
  }
  .item-thumb {
    width: 80px;
    height: 112px;
  }
  .item-title {
    font-size: 15px;
    line-height: 1.3;
  }
  .item-desc {
    font-size: 13px;
    -webkit-line-clamp: 2;
    margin-bottom: 6px;
  }
  .pdf-container {
    height: 450px;
  }
}

@media (max-width: 480px) {
  .item-card {
    gap: 10px;
  }
  .item-thumb {
    width: 70px;
    height: 98px;
  }
  .item-title {
    font-size: 14px;
  }
  .pdf-container {
    height: 380px;
  }
}
