/* ITF — Blog (light page, loaded after style.css). Measured from the 1440px mockup. */

:root { --container: 1250px; --bl-blue: #1688f3; --bl-navy: #0c1a3a; --bl-text: #4a5b74; --bl-line: #e6eef7; }
body { background: #f5f9fe; }

/* Blog is a top-level item: same pill as an active dropdown parent */
.light-head .desktop-nav > a.active { height: 40px; align-self: center; padding: 0 14px; border-radius: 8px; background: #e3f0fd; color: #1260c9; }
.light-head .desktop-nav > a.active::after { display: none; }

.bl-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: #33415a; }
.bl-eyebrow.blue { color: var(--bl-blue); font-size: 12px; }

/* ---------- Hero ---------- */
.bl-hero { min-height: 0; background: #eaf3fd; color: var(--bl-navy); }
.bl-hero-bg { background: url("../assets/hero-light.svg?v=20261008171438") center 70% / cover no-repeat; }
.bl-hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 250, 255, .97), rgba(246, 250, 255, .85) 42%, rgba(246, 250, 255, .15) 65%, transparent), linear-gradient(0deg, #f5f9fe, transparent 18%); }
.bl-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 520px; gap: 20px; align-items: end; padding: 34px 0 20px; }
.bl-hero .hero-copy { padding: 0 0 24px; }
.bl-hero h1 { margin: 10px 0 10px; font-family: var(--head); font-size: 56px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--bl-navy); text-shadow: none; }
.bl-hero .hero-copy > p { max-width: 560px; font-size: 20px; line-height: 1.4; color: #1f2d45; }
.bl-search { display: flex; align-items: center; gap: 12px; max-width: 735px; height: 54px; margin-top: 24px; padding: 0 6px 0 18px; border-radius: 8px; background: #fff; border: 1px solid #e3ecf6; box-shadow: 0 14px 34px rgba(20, 60, 120, .1); }
.bl-search > .ic { font-size: 20px; color: #1260c9; }
.bl-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; color: var(--bl-navy); }
.bl-search input::placeholder { color: #8a97ab; }
.bl-search .btn { height: 44px; min-width: 108px; }
.bl-search:focus-within { border-color: #9cc8f5; }
.bl-laptop { width: 540px; margin: 0 -40px -10px 0; justify-self: end; filter: drop-shadow(0 20px 30px rgba(12, 40, 90, .14)); animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-6px); } }

/* ---------- Chips ---------- */
.bl-body { padding: 26px 0 40px; }
.bl-chips { display: flex; flex-wrap: wrap; gap: 14px; scroll-margin-top: 100px; }
.bl-chips button { height: 40px; padding: 0 18px; border: 1px solid var(--bl-line); border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 500; color: #33415a; box-shadow: 0 4px 10px rgba(20, 60, 120, .04); transition: border-color .2s, color .2s, background .2s; }
.bl-chips button:first-child { min-width: 72px; }
.bl-chips button:hover { border-color: #b7d4f3; color: var(--bl-navy); }
.bl-chips button.active { background: linear-gradient(180deg, #1d8ff5, #0b74e5); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 8px 18px rgba(16, 116, 229, .25); }

.bl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 362px; gap: 20px; align-items: start; margin-top: 26px; }
.bl-result { margin-bottom: 14px; font-size: 14px; color: var(--bl-text); }
.bl-result b { color: var(--bl-navy); }
.bl-result button { margin-left: 8px; border: 0; background: none; color: #1260c9; font-weight: 600; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; perspective: 1400px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 12px 12px 0; border-radius: 10px; background: #fff; border: 1px solid #edf2f8; box-shadow: 0 10px 26px rgba(20, 60, 120, .06); }
.post-card:hover { box-shadow: 0 18px 36px rgba(20, 60, 120, .12); }
.pc-cover { position: relative; display: block; height: 168px; border-radius: 6px 6px 0 0; background: #061633 center / cover no-repeat; }
.pc-cover.light { background-color: #e9f1fb; background-size: 86% auto; background-position: center 30%; }
.pc-cat { position: absolute; left: 14px; bottom: -1px; padding: 6px 14px 5px; border-radius: 8px 8px 0 0; background: #fff; font-size: 12px; font-weight: 500; color: var(--bl-navy); }
.mt-badge { position: absolute; right: 18px; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translateY(-50%); font-family: var(--head); font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.mt-badge svg { width: 52px; height: 52px; }
.pc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 10px 18px; }
.pc-body h3 { font-family: var(--head); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--bl-navy); }
.pc-body h3 a { transition: color .2s; }
.pc-body h3 a:hover { color: #1260c9; }
.pc-body p { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--bl-text); }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; font-size: 12.5px; color: #4a5b74; }
.pc-meta .by { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bl-navy); }
.pc-meta .by img { width: 18px; height: auto; }
.pc-meta .rd { display: flex; align-items: center; gap: 6px; }
.pc-meta .ic { font-size: 14px; }
.bl-empty { grid-column: 1 / -1; padding: 40px 20px; border-radius: 10px; background: #fff; border: 1px dashed #c9d9ec; text-align: center; font-size: 14px; color: var(--bl-text); }
.bl-empty b { display: block; margin-bottom: 6px; font-size: 16px; color: var(--bl-navy); }

/* Pagination */
.bl-pages { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.bl-pages button { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--bl-line); border-radius: 6px; background: #fff; font-size: 13px; font-weight: 600; color: var(--bl-navy); transition: border-color .2s, color .2s; }
.bl-pages button:hover { border-color: #9cc8f5; color: #1260c9; }
.bl-pages button[aria-current] { background: linear-gradient(180deg, #1d8ff5, #0b74e5); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(16, 116, 229, .25); }
.bl-pages .ic { font-size: 15px; color: #1260c9; }
.bl-pages .gap { padding: 0 4px; color: #6b7a90; }

/* ---------- Sidebar ---------- */
.bl-side { display: grid; gap: 16px; }
.side-box { padding: 18px 16px 18px; border-radius: 10px; background: #fff; border: 1px solid #edf2f8; box-shadow: 0 10px 26px rgba(20, 60, 120, .06); }
.side-box h2 { font-family: var(--head); font-size: 18px; font-weight: 800; color: var(--bl-navy); }
.cat-list { margin-top: 12px; }
.cat-list button { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 2px; border: 0; background: none; font-size: 13.5px; color: #33415a; text-align: left; transition: color .2s; }
.cat-list button:hover, .cat-list button.active { color: #1260c9; }
.cat-list button.active { font-weight: 600; }
.cat-list b { margin-left: auto; font-weight: 500; color: #33415a; }
.ci { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font-size: 15px; }
.feat-cover { position: relative; display: block; height: 100px; margin-top: 14px; border-radius: 6px 6px 0 0; background: #061633 center / cover no-repeat; }
.side-box > h3 { margin-top: 16px; font-family: var(--head); font-size: 16.5px; font-weight: 800; line-height: 1.3; color: var(--bl-navy); }
.side-box > h3 a:hover { color: #1260c9; }
.side-box > p { margin-top: 10px; font-size: 13px; line-height: 1.55; color: var(--bl-text); }
.feat-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: #4a5b74; }
.feat-meta i { width: 3px; height: 3px; border-radius: 50%; background: #4a5b74; }
.feat-go { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border-radius: 50%; background: #eaf4ff; color: #1260c9; font-size: 16px; transition: background .2s; }
.feat-go:hover { background: #d6eafe; }
.feat-go .ic { transition: transform .2s; }
.feat-go:hover .ic { transform: translateX(2px); }
.pop-list { display: grid; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.pop-list a { display: flex; gap: 12px; }
.pop-thumb { position: relative; flex: none; width: 66px; height: 50px; margin: 6px 0 0 6px; border-radius: 4px; background: #061633 center / cover no-repeat; }
.pop-thumb i { position: absolute; left: -7px; top: -7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bl-blue); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; box-shadow: 0 0 0 2px #fff; }
.pop-txt b { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--bl-navy); transition: color .2s; }
.pop-list a:hover b { color: #1260c9; }
.pop-txt time { display: block; margin-top: 4px; font-size: 12px; color: #6b7a90; }

/* ---------- Newsletter ---------- */
.bl-news { position: relative; overflow: hidden; background: linear-gradient(90deg, #eaf3fd, #f2f8fe); }
.news-art { position: absolute; left: 0; top: 0; bottom: 0; width: 22%; background: url("../assets/cd-snow.svg?v=20261008171438") 18% bottom / auto 140% no-repeat; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.news-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 0 40px 15%; }
.news-copy h2 { margin-top: 8px; font-family: var(--head); font-size: 27px; font-weight: 800; letter-spacing: -.01em; color: var(--bl-navy); }
.news-copy p { max-width: 430px; margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--bl-text); }
.news-form small { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 11.5px; color: #6b7a90; }
.news-form small .ic { font-size: 12px; }
.news-sub { display: flex; align-items: center; gap: 10px; height: auto; overflow: visible; border: 0; border-radius: 0; background: none; }
.news-sub button.btn { display: inline-flex; width: auto; padding: 0 22px; font-size: 14px; }
.news-sub > .ic { position: absolute; margin-left: 16px; font-size: 18px; color: #1260c9; pointer-events: none; }
.news-sub input { flex: none; width: 310px; height: 50px; padding: 0 16px 0 46px; border: 1px solid var(--bl-line); border-radius: 6px; background: #fff; outline: 0; font-size: 14px; color: var(--bl-navy); }
.news-sub input:focus { border-color: #9cc8f5; }
.news-sub .btn { height: 50px; min-width: 132px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .bl-hero-inner { grid-template-columns: 1fr 420px; }
  .bl-laptop { width: 440px; }
  .bl-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1000px) {
  .bl-hero-inner { grid-template-columns: 1fr; }
  .bl-laptop { display: none; }
  .bl-layout { grid-template-columns: 1fr; }
  .bl-side { grid-template-columns: repeat(2, 1fr); }
  .news-art { display: none; }
  .news-inner { flex-direction: column; align-items: flex-start; padding-left: 0; }
}
@media (max-width: 760px) {
  .bl-hero h1 { font-size: 40px; }
  .bl-hero .hero-copy > p { font-size: 16px; }
  .bl-search .btn { min-width: 0; padding: 0 16px; }
  .bl-chips { flex-wrap: nowrap; gap: 10px; margin-inline: -16px; padding: 0 16px 6px; overflow-x: auto; scrollbar-width: none; }
  .bl-chips::-webkit-scrollbar { display: none; }
  .bl-chips button { flex: none; }
  .post-grid, .bl-side { grid-template-columns: 1fr; }
  .news-form, .news-sub { width: 100%; }
  .news-sub { flex-direction: column; align-items: stretch; }
  .news-sub > .ic { margin-top: 16px; align-self: flex-start; }
  .news-sub input { width: 100%; }
}
