/*
Theme Name: EazyTrade
Description: Theme doc lap, phong cach lay cam hung tu javisos.com (nen kem am, cam gradient chu dao, chu nhan gradient cam-hong-tim, card bo tron mem, mot font Be Vietnam Pro duy nhat) ap dung cho noi dung kien thuc giao dich Vang.
Author: EazyTrade
Version: 2.1.0
Text Domain: eazytrade
*/

:root {
  --accent: #e85d1f;
  --accent-light: #ff9a5c;
  --accent-dark: #c2410c;
  --accent-soft: #fdeee0;
  --rose: #e11d48;
  --rose-soft: #fde4e8;
  --violet: #7c3aed;
  --violet-soft: #ede6fd;
  --ink: #08060e;
  --ink-2: #1c1a24;
  --muted: #5d5868;
  --bg: #fbf9f7;
  --surface: #ffffff;
  --surface-alt: #f5f1ec;
  --line: #ece5db;
  --line-soft: #f1ece4;
  --header-bg: #ffffff;
  --header-ink: #5d5868;
  --header-search-bg: #f5f1ec;
  --footer-bg: #ffffff;
  --footer-ink: var(--muted);
  --accent-gradient: linear-gradient(135deg, var(--accent-light), var(--accent) 45%, var(--accent-dark));
  --text-gradient: linear-gradient(100deg, var(--accent-light) 0%, var(--accent) 35%, var(--rose) 62%, var(--violet) 92%);
  --font-head: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgb(8 6 14 / 0.04), 0 10px 30px rgb(8 6 14 / 0.07);
  --measure: 680px;
  --container: 1200px;
  --placeholder: repeating-linear-gradient(135deg, #f3ede3 0 8px, #f8f3ec 8px 16px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--bg) !important;
  color: var(--ink-2);
  font-family: var(--font-body) !important;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-dark);
}

h1, h2 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#page, .site { background: var(--bg); }

.site-main { min-height: 60vh; }

.eazytrade-grad-text {
  background-image: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ===================== Buttons & forms ===================== */
.btn {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font: 600 16px/1 var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background-image: var(--accent-gradient);
  color: #fff;
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--outline { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.btn--outline:hover { background: var(--surface-alt); border-color: var(--accent); color: var(--ink); }

input[type="text"], input[type="search"], textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: 400 15px/1.5 var(--font-body);
  color: var(--ink-2);
  background: var(--surface);
}
input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* ===================== Header ===================== */
.site-header {
  background: var(--header-bg);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 30;
}
@media (min-width: 960px) { .site-header { height: 76px; } }
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  height: 64px;
  padding: 0 var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 960px) {
  .site-header__inner { height: 76px; padding: 0 40px; }
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header__leaf {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background-image: var(--accent-gradient);
  flex: 0 0 auto;
}
@media (min-width: 960px) { .site-header__leaf { width: 32px; height: 32px; } }
.site-header__logo { display: flex; align-items: center; flex: 0 0 auto; }
.site-header__logo img {
  height: 30px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 9px;
}
@media (min-width: 960px) { .site-header__logo img { height: 34px; } }
.site-header__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
@media (min-width: 960px) { .site-header__name { font-size: 21px; } }
.site-header__desktop-group { display: flex; align-items: center; gap: 32px; }
.site-header__nav { display: none; }
@media (min-width: 960px) {
  .site-header__nav { display: flex; gap: 8px; font-size: 15px; font-weight: 500; }
  .site-header__nav a { color: var(--header-ink); text-decoration: none; padding: 8px 14px; border-radius: 10px; }
  .site-header__nav a:hover { color: var(--ink); background: var(--surface-alt); }
  .site-header__nav a.is-active { color: var(--ink); background: var(--accent-soft); font-weight: 600; }
}
.site-header__search { display: none; }
@media (min-width: 960px) {
  .site-header__search {
    display: flex; align-items: center; gap: 10px; width: 240px; height: 42px;
    background: var(--header-search-bg); border-radius: var(--r-pill); padding: 0 16px;
  }
  .site-header__search input { background: transparent; border: 0; height: auto; padding: 0; color: var(--ink-2); font-size: 14px; }
  .site-header__search input::placeholder { color: var(--muted); }
}
.site-header__menu-btn {
  width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; background: none; border: 0; cursor: pointer;
}
@media (min-width: 960px) { .site-header__menu-btn { display: none; } }
.site-header__menu-btn span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
.site-header__menu-btn span:last-child { width: 14px; align-self: flex-end; }
.site-header__mobile-panel {
  display: none; flex-direction: column; background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--s-4) var(--s-5); gap: 2px;
}
.site-header__mobile-panel.is-open { display: flex; }
.site-header__mobile-panel a {
  color: var(--ink-2); text-decoration: none; padding: 12px 4px;
  border-top: 1px solid var(--line-soft); font-size: 15px; font-weight: 500;
}
.site-header__mobile-search {
  margin-top: var(--s-3); height: 44px; background: var(--header-search-bg); border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 10px; padding: 0 16px;
}
.site-header__mobile-search input { background: transparent; border: 0; height: auto; padding: 0; color: var(--ink-2); font-size: 14px; }
.site-header__mobile-search input::placeholder { color: var(--muted); }
@media (min-width: 960px) { .site-header__mobile-panel { display: none !important; } }

/* ===================== Hero ===================== */
.hero { display: flex; flex-direction: column; gap: var(--s-4); padding: 28px var(--s-4) var(--s-6); }
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; padding: 64px 40px 56px; max-width: var(--container); margin-inline: auto; }
}
.hero__content { display: flex; flex-direction: column; gap: var(--s-4); }
@media (min-width: 960px) { .hero__content { gap: 20px; } }
.hero h1 { font-size: 32px; line-height: 1.15; font-weight: 700; }
@media (min-width: 960px) { .hero h1 { font-size: 48px; line-height: 1.1; } }
.hero__desc { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
@media (min-width: 960px) { .hero__desc { font-size: 18px; line-height: 1.7; max-width: 480px; } }
.hero__search {
  height: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--muted);
}
@media (min-width: 960px) { .hero__search { display: none; } }
.hero__search input { border: 0; height: auto; padding: 0; font-size: 15px; }
.hero__media {
  height: 190px; border-radius: var(--r-lg); background: var(--placeholder); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); overflow: hidden; position: relative;
}
.hero__media::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 20% 10%, rgba(255, 154, 92, 0.35), transparent 60%),
              radial-gradient(90% 90% at 90% 100%, rgba(124, 58, 237, 0.18), transparent 60%);
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
@media (min-width: 960px) { .hero__media { height: 380px; font-size: 13px; } }
.hero__actions { display: none; }
@media (min-width: 960px) { .hero__actions { display: flex; gap: 12px; margin-top: 8px; } }

/* ===================== Section titles / category cards ===================== */
.section { padding: 8px var(--s-4) 28px; }
@media (min-width: 960px) { .section { max-width: var(--container); margin-inline: auto; padding: 0 40px 56px; } }
.section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-4); }
.section__head h3 { margin: 0; font-family: var(--font-head); font-size: 21px; font-weight: 700; color: var(--ink); }
@media (min-width: 960px) { .section__head h3 { font-size: 28px; } }
.section__head a { font-size: 14px; font-weight: 600; text-decoration: none; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 960px) { .category-grid { gap: var(--s-5); } }
.category-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink-2);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.category-card:hover { box-shadow: var(--shadow-card); border-color: transparent; }
@media (min-width: 960px) {
  .category-card { flex-direction: row; align-items: center; gap: 16px; border-radius: var(--r-lg); padding: var(--s-5); }
}
.category-card__icon {
  width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
@media (min-width: 960px) { .category-card__icon { width: 52px; height: 52px; border-radius: 16px; } }
.category-card__name { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink); }
@media (min-width: 960px) { .category-card__name { font-size: 17px; } }
.category-card__sub { font-size: 12px; color: var(--muted); }
@media (min-width: 960px) { .category-card__sub { font-size: 14px; } }
.category-card__sub--desktop { display: none; }
@media (min-width: 960px) {
  .category-card__sub--desktop { display: block; }
  .category-card__sub--mobile { display: none; }
}

.home-latest-grid { display: flex; flex-direction: column; gap: var(--s-5); }
@media (min-width: 960px) { .home-latest-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; } }

/* ===================== Cards & post grid/list ===================== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow 0.15s ease; }
.card:hover { box-shadow: var(--shadow-card); }
.card--featured { border: 0; box-shadow: var(--shadow-card); border-radius: var(--r-lg); }
.post-grid { display: grid; gap: var(--s-3); }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

.featured-card__media { height: 180px; }
@media (min-width: 960px) { .featured-card__media { height: 300px; } }
.featured-card__media, .grid-card__media {
  position: relative; background: var(--placeholder); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.card-media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-card__media { height: 190px; }
.featured-card__body, .grid-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 960px) { .featured-card__body { padding: var(--s-5); gap: 10px; } }
.card-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft);
  padding: 4px 10px; border-radius: var(--r-pill); text-decoration: none;
}
.featured-card__title { font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); }
@media (min-width: 960px) { .featured-card__title { font-size: 26px; } }
.grid-card__title { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--ink); }
.card-excerpt { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.card-meta { font-size: 13px; color: var(--muted); }

.post-row-list { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) { .post-row-list { gap: 20px; } }
.post-row { display: flex; gap: 14px; text-decoration: none; color: inherit; padding-bottom: 14px; }
@media (min-width: 960px) { .post-row { gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); } }
.post-row__thumb { position: relative; overflow: hidden; flex: 0 0 96px; height: 96px; border-radius: var(--r-sm); background: var(--placeholder); }
@media (min-width: 960px) { .post-row__thumb { flex-basis: 128px; height: 96px; } }
.post-row__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post-row__cat { font-size: 12px; font-weight: 700; color: var(--accent); }
.post-row__title { font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--ink); }
.post-row__meta { font-size: 13px; color: var(--muted); }

.empty-state { color: var(--muted); padding: var(--s-6) 0; }

/* ===================== Footer ===================== */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); border-top: 1px solid var(--line); padding: 24px var(--s-4) 32px; font-size: 13px; line-height: 1.6; margin-top: var(--s-7); }
@media (min-width: 960px) { .site-footer { padding: 40px 0; } }
.site-footer__inner { max-width: var(--container); margin-inline: auto; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 960px) { .site-footer__inner { flex-direction: row; justify-content: space-between; gap: var(--s-8); padding-inline: 40px; } }
.site-footer__brand { font-family: var(--font-head); font-size: 18px; color: var(--ink); font-weight: 700; }
.site-footer__disclosure { max-width: 520px; }
.site-footer__links { display: none; }
@media (min-width: 960px) {
  .site-footer__links { display: flex; gap: var(--s-7); }
  .site-footer__links b { color: var(--ink); display: block; margin-bottom: 6px; }
  .site-footer__links a { display: block; color: var(--footer-ink); text-decoration: none; padding: 2px 0; }
  .site-footer__links a:hover { color: var(--accent); }
}

/* ===================== Breadcrumbs ===================== */
.breadcrumbs { font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ===================== Article (post detail) ===================== */
.post-header { display: flex; flex-direction: column; gap: var(--s-4); padding: 24px var(--s-4) 0; }
@media (min-width: 960px) {
  .post-header { max-width: var(--container); margin-inline: auto; padding: 48px 40px 0; display: grid; grid-template-columns: minmax(0, var(--measure)) 280px; gap: 80px; justify-content: center; align-items: start; }
}
.post-header__content { display: flex; flex-direction: column; gap: 18px; }
.post-mobile-tag { align-self: flex-start; }
@media (min-width: 960px) { .post-mobile-tag { display: none; } }
.breadcrumbs-desktop { display: none; }
@media (min-width: 960px) { .breadcrumbs-desktop { display: block; } }
.post-header h1 { font-size: 28px; line-height: 1.2; font-weight: 700; }
@media (min-width: 960px) { .post-header h1 { font-size: 42px; line-height: 1.15; } }
.post-author { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.post-author__avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); display: flex;
  align-items: center; justify-content: center; flex: 0 0 auto;
}
.post-author__name { color: var(--ink); font-weight: 700; }

.post-cover-wrap { padding: 16px var(--s-4) 0; }
@media (min-width: 960px) { .post-cover-wrap { padding: 28px 40px 0; display: flex; justify-content: center; } }
.post-cover { width: calc(100% + var(--s-4) * 2); margin: 0 calc(var(--s-4) * -1); height: 220px; object-fit: cover; }
@media (min-width: 960px) { .post-cover { width: 1040px; max-width: 100%; margin: 0; height: 440px; border-radius: var(--r-lg); } }

.disclosure-line {
  font-size: 13px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 10px 0;
}

.read-progress { height: 3px; background: var(--line); position: sticky; top: 0; z-index: 20; }
.read-progress > span { display: block; height: 100%; background-image: var(--accent-gradient); width: 0%; transition: width 0.1s linear; }

.article-layout { padding: 24px var(--s-4) var(--s-7); display: grid; gap: var(--s-6); min-width: 0; }
.article-layout > article { min-width: 0; }
@media (min-width: 960px) {
  .article-layout { max-width: var(--container); margin-inline: auto; padding: 48px 40px 72px; grid-template-columns: minmax(0, var(--measure)) 280px; gap: 80px; justify-content: center; align-items: start; }
  .article-layout .toc--desktop { position: sticky; top: 24px; }
}

.toc { background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.toc--mobile summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc--mobile summary::-webkit-details-marker { display: none; }
.toc--mobile .toc__links { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
@media (min-width: 960px) { .toc--mobile { display: none; } }
.toc--desktop { display: none; }
@media (min-width: 960px) {
  .toc--desktop { display: flex; flex-direction: column; gap: 20px; }
  .toc--desktop .toc__title { font-weight: 700; color: var(--ink); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
  .toc--desktop .toc__links { display: flex; flex-direction: column; gap: 8px; }
}
.toc__link { text-decoration: none; color: var(--muted); }
.toc__link.is-active { font-weight: 700; color: var(--accent); }
.toc__link:hover { color: var(--accent); }

.prose { max-width: var(--measure); font-size: 17px; line-height: 1.75; display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; color: var(--ink-2); }
@media (min-width: 960px) { .prose { font-size: 18px; } }
.prose h2 { font-size: 23px; line-height: 1.3; margin-top: var(--s-6); scroll-margin-top: 80px; font-weight: 700; }
.prose h3 { font-family: var(--font-body); font-size: 19px; line-height: 1.4; font-weight: 700; color: var(--ink); margin-top: var(--s-5); }
@media (min-width: 960px) { .prose h2 { font-size: 28px; } .prose h3 { font-size: 21px; } }
.prose ul, .prose ol { padding-left: 22px; margin: 0; }
.prose li + li { margin-top: 6px; }
.prose img { width: 100%; height: auto; border-radius: var(--r-md); }
.prose p { margin: 0 0 var(--s-4); }
.prose blockquote {
  margin-inline: 0; padding: 4px 0 4px 20px; box-shadow: inset 3px 0 0 var(--accent);
  font-style: italic; color: var(--ink);
}

.table-wrap { overflow-x: auto; margin-block: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; line-height: 1.45; }
.table-wrap th { background: var(--ink); color: #fff; text-align: left; font-weight: 700; padding: 12px 16px; }
.table-wrap td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.table-wrap tr:nth-child(even) td { background: var(--surface-alt); }

.prose blockquote.aff {
  font-style: normal; color: var(--ink-2); background: var(--violet-soft);
  border: 1px solid var(--line); box-shadow: none; border-radius: var(--r-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.5;
}
.aff__label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet); }
.aff__btn {
  height: 48px; width: 100%; border-radius: var(--r-md); background-image: var(--accent-gradient); color: #fff !important;
  text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
}
.aff__btn:hover { filter: brightness(1.05); }
.aff__note { font-size: 12px; color: var(--muted); text-align: center; }
@media (min-width: 960px) {
  .prose blockquote.aff { padding: 24px; }
  .aff__btn { width: auto; padding: 0 20px; font-size: 15px; }
}

.related-posts { border-top: 1px solid var(--line); margin-top: var(--s-4); padding-top: var(--s-6); display: flex; flex-direction: column; gap: 14px; }
.related-posts__title { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); }
.related-posts__item { display: flex; gap: 12px; text-decoration: none; color: inherit; }
.related-posts__thumb { position: relative; overflow: hidden; flex: 0 0 72px; height: 72px; border-radius: var(--r-sm); background: var(--placeholder); }
.related-posts__item-title { font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--ink); }
