/* ============================================================
   Orient Futures Singapore – DCE Page 1:1 Clone
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  line-height: 1.65;
  color: #1e1e1e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #1e1e1e; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f5f4f0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 80px;
}

.logo-link { display: flex; align-items: center; }
.logo { height: 50px; width: auto; }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-list li a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #1e1e1e;
  white-space: nowrap;
  transition: color .2s;
}
.nav-list li a:hover { color: #ccbe96; text-decoration: none; }

.arrow-icon { transition: transform .2s; }

.nav-cta {
  background: #1e1e1e !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 24px !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: #333 !important; }

/* Language Switch */
.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 10px;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 3px;
  color: #888;
}
.lang-switch .lang-active {
  color: #1e1e1e;
  background: #f0ede4;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e1e1e;
  transition: .3s;
}

/* ---------- Article Hero / Title ---------- */
.article-hero {
  background: #f5f4f0;
  padding: 60px 30px 50px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}
.meta-list { display: flex; gap: 8px; }
.meta-divider { color: #bbb; }

h1 {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.02em;
}

/* ---------- Article Content ---------- */
.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Toolbar (back + share) */
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 40px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #1e1e1e;
}
.back-link:hover { color: #ccbe96; text-decoration: none; }

.share-section {
  display: flex;
  align-items: center;
  gap: 12px;
}
.share-label { font-size: 14px; color: #888; }
.share-icons { display: flex; gap: 10px; }
.share-icons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e1e1e;
  font-size: 14px;
  transition: background .2s;
}
.share-icons a:hover { background: #ccbe96; color: #fff; }

/* Article Body */
.article-body {
  padding-bottom: 50px;
}

.article-hero-image {
  margin-bottom: 36px;
  border-radius: 4px;
  overflow: hidden;
}

.article-text p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.75;
  color: #333;
}

.article-text h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 44px 0 16px;
  color: #1e1e1e;
}

.article-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: #1e1e1e;
}

.article-text ul {
  list-style: disc;
  padding-left: 28px;
  margin-bottom: 20px;
}
.article-text ul li {
  font-size: 18px;
  line-height: 1.75;
  color: #333;
  margin-bottom: 6px;
}

.article-text a {
  color: #b8a56a;
  text-decoration: underline;
}
.article-text a:hover { color: #9a8a54; }

.article-text strong { font-weight: 700; }
.article-text em { font-style: italic; color: #555; }

/* Inline image */
.article-inline-image {
  margin: 24px 0;
  border-radius: 4px;
  overflow: hidden;
}

/* ---------- Table ---------- */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0 30px;
  border-radius: 4px;
  border: 1px solid #e0ddd3;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

thead th {
  background: #ccbe96;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid #b8a56a;
  font-size: 15px;
  white-space: nowrap;
}

tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid #e8e5dc;
  vertical-align: top;
  color: #333;
}

tbody tr:nth-child(even) td { background: #faf9f6; }
tbody tr:hover td { background: #f5f3ec; }

td.access-channel {
  background: #f5f4f0 !important;
  font-size: 15px;
  line-height: 1.5;
  border-right: 1px solid #e8e5dc;
  width: 200px;
  vertical-align: top;
}
td.access-channel strong { display: block; margin-bottom: 6px; }
td.access-channel .note {
  font-size: 13px;
  color: #888;
  line-height: 1.4;
}
td.access-channel .note a { color: #b8a56a; }

/* ---------- Disclaimer (in‑article) ---------- */
.disclaimer {
  margin-top: 40px;
  padding: 28px;
  background: #faf9f6;
  border-left: 3px solid #ccbe96;
  border-radius: 4px;
}
.disclaimer p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #777 !important;
  margin-bottom: 10px !important;
}
.disclaimer p:last-child { margin-bottom: 0 !important; }

/* ---------- Subscribe CTA ---------- */
.subscribe-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 28px 30px;
  background: #f5f4f0;
  border-radius: 4px;
  margin: 20px 0 60px;
}
.subscribe-text {
  font-size: 17px;
  font-weight: 600;
  color: #1e1e1e;
}
.subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ccbe96;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s;
}
.subscribe-btn:hover { background: #b8a56a; text-decoration: none; color: #fff; }
.subscribe-btn svg { flex-shrink: 0; }

/* ---------- Featured Articles ---------- */
.featured-articles {
  background: #f5f4f0;
  padding: 60px 30px;
}

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

.featured-inner h4 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 36px;
  color: #1e1e1e;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.article-card { overflow: hidden; }

.article-card a {
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow .25s;
  height: 100%;
}
.article-card a:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); text-decoration: none; }

.card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.card-content h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: #1e1e1e;
  margin-bottom: 12px;
}

.card-date {
  font-size: 13px;
  color: #999;
}

/* ---------- Footer Disclaimer ---------- */
.footer-disclaimer {
  background: #f5f4f0;
  padding: 50px 30px 40px;
  border-top: 1px solid #e5e2d8;
}

.disclaimer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.disclaimer-inner p {
  font-size: 12px;
  line-height: 1.7;
  color: #888;
  margin-bottom: 14px;
}
.disclaimer-inner p:first-child { font-size: 14px; color: #555; }
.disclaimer-inner a { color: #b8a56a; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: #414042;
  color: #ccc;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 30px 40px;
}

.footer-logo { margin-bottom: 40px; }
.footer-logo img { height: 40px; }

.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  font-size: 13px;
  color: #aaa;
  transition: color .2s;
}
.footer-col ul li a:hover { color: #ccbe96; }

/* Social */
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.social-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 14px;
  transition: .2s;
}
.social-icons a:hover { background: #ccbe96; border-color: #ccbe96; color: #fff; }

/* Footer Bottom */
.footer-bottom {
  background: #333;
  padding: 30px 30px;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom-inner p {
  font-size: 11px;
  line-height: 1.7;
  color: #999;
  margin-bottom: 12px;
}
.footer-bottom-inner p:last-child { margin-bottom: 0; }
.footer-bottom-inner a { color: #ccbe96; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 32px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; height: 64px; }
  .logo { height: 36px; }

  .nav-list { display: none; }
  .mobile-menu-toggle { display: flex; }

  .article-hero { padding: 36px 16px 30px; }
  h1 { font-size: 26px; }

  .article-content { padding: 0 16px; }
  .article-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }

  .article-text p, .article-text ul li { font-size: 16px; }
  .article-text h2 { font-size: 22px; }
  .article-text h3 { font-size: 18px; }

  table { font-size: 14px; }
  thead th, tbody td { padding: 10px 12px; }
  td.access-channel { width: 140px; }

  .subscribe-cta { flex-direction: column; text-align: center; }

  .articles-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); }

  .lang-switch { margin-left: 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 22px; }
  .footer-columns { grid-template-columns: 1fr; }
}
