/* ==========================================================================
   Windowedu blog — modern look v2 (header, chips, magazine home, footer).
   Loaded with site.css whenever the modern look is active.
   ========================================================================== */
.wlp-modern {
  --v2-blue: #1B7FC4; --v2-navy: #0B2E5A; --v2-lime: #A6CE39; --v2-ink: #0F1B2D;
  --v2-muted: #5B6B80; --v2-line: #E6ECF3; --v2-bg: #F4F6FB;
}
.wlp-modern .v2-wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.wlp-modern a { text-decoration: none; }

/* ---------- Header ---------- */
.wlp-modern .v2-header { position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--v2-line); box-shadow: 0 2px 14px rgba(15,27,45,.05); }
.admin-bar.wlp-modern .v2-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.wlp-modern .v2-header { top: 0; } }
.wlp-modern .v2-hd { display: flex; align-items: center; gap: 18px; height: 68px; }
.wlp-modern .v2-logo { display: flex; align-items: center; flex-shrink: 0; }
.wlp-modern .v2-logo img { height: 40px; width: auto; display: block; }
.wlp-modern .v2-logo b { font-size: 24px; font-weight: 800; color: var(--v2-blue); }
.wlp-modern .v2-logo i, .wlp-modern .v2-ft-brand i { font-style: normal; color: var(--v2-lime); }
.wlp-modern .v2-menu { display: flex; gap: 2px; min-width: 0; overflow: hidden; }
.wlp-modern .v2-menu a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #334155; white-space: nowrap; }
.wlp-modern .v2-menu a:hover { color: var(--v2-blue); }
.wlp-modern .v2-menu a.is-on { background: #E8F2FB; color: var(--v2-blue); }
.wlp-modern .v2-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wlp-modern .v2-ib { width: 40px; height: 40px; border-radius: 12px; border: 0; padding: 0; background: var(--v2-bg) !important; color: #334155 !important; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wlp-modern .v2-ib:hover { color: var(--v2-blue) !important; }
.wlp-modern .v2-tg { background: #E5F5FD !important; color: #1E88D0 !important; }
.wlp-modern .v2-cta { padding: 10px 16px; border-radius: 12px; background: var(--v2-lime); color: #1D2B00 !important; font-size: 14px; font-weight: 700; white-space: nowrap; }
.wlp-modern .v2-cta:hover { filter: brightness(1.05); }
.wlp-modern .v2-burger { display: none; }
.wlp-modern .v2-searchbar { border-top: 1px solid var(--v2-line); background: #fff; }
.wlp-modern .v2-searchbar form { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.wlp-modern .v2-searchbar input[type="search"] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--v2-line) !important; border-radius: 12px; font-size: 16px; box-shadow: none !important; }
.wlp-modern .v2-searchbar input[type="search"]:focus { border-color: var(--v2-blue) !important; outline: none; }
.wlp-modern .v2-searchbar button { height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--v2-blue) !important; color: #fff !important; font-weight: 700; cursor: pointer; }
.wlp-modern .v2-drawer { border-top: 1px solid var(--v2-line); background: #fff; }
.wlp-modern .v2-drawer .v2-wrap { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 12px; }
.wlp-modern .v2-drawer a { display: flex; align-items: center; gap: 10px; padding: 12px 4px; font-size: 15px; font-weight: 600; color: var(--v2-ink); border-bottom: 1px solid #F1F4F9; }
.wlp-modern .v2-drawer a:last-child { border-bottom: 0; }

/* ---------- Category chips (every page) ---------- */
.wlp-modern .v2-chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wlp-modern .v2-chips::-webkit-scrollbar { display: none; }
.wlp-modern .v2-chips a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--v2-line); font-size: 13.5px; font-weight: 600; color: var(--v2-ink); }
.wlp-modern .v2-chips a:hover { border-color: var(--v2-blue); color: var(--v2-blue); }
.wlp-modern .v2-chips a.is-on { background: var(--v2-ink); border-color: var(--v2-ink); color: #fff; }

/* ---------- Home ---------- */
.wlp-modern .v2-home { padding-top: 14px; padding-bottom: 20px; }
.wlp-modern .v2-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.wlp-modern .v2-feat { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg,#0E3F73,#0B2E5A); box-shadow: 0 18px 40px rgba(15,27,45,.18); color: #fff !important; }
.wlp-modern .v2-feat-img .v2-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.wlp-modern .v2-feat-t { display: block; padding: 18px 24px 22px; }
.wlp-modern .v2-feat h1 { margin: 10px 0 6px !important; font-size: 26px !important; line-height: 1.35 !important; font-weight: 700 !important; color: #fff !important; }
.wlp-modern .v2-feat small { font-size: 13.5px; opacity: .85; }
.wlp-modern .v2-new { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--v2-lime); color: #1D2B00; font-size: 12px; font-weight: 700; }
.wlp-modern .v2-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wlp-modern .v2-side-h { font-size: 13px; font-weight: 700; letter-spacing: .4px; color: var(--v2-muted); }

/* Small tile: the thumbnail floats left and the full heading wraps around it into the space below. */
.wlp-modern .v2-li { display: flow-root; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--v2-line); color: var(--v2-ink) !important; transition: transform .15s ease, box-shadow .15s ease; }
.wlp-modern .v2-li:hover, .wlp-modern .v2-big:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,127,196,.14); }
.wlp-modern .v2-li-img { float: left; width: 128px; margin: 3px 12px 6px 0; }
.wlp-modern .v2-li-img .v2-img { width: 128px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; display: block; }
.wlp-modern .v2-li-t { display: block; }
.wlp-modern .v2-li-t b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; overflow-wrap: anywhere; }
.wlp-modern .v2-li-t .v2-tags { display: block; margin-bottom: 2px; }
.wlp-modern .v2-li-t .v2-tags > * { display: inline-block; margin: 0 4px 4px 0; vertical-align: middle; }
.wlp-modern .v2-li-t small { display: block; }
.wlp-modern .v2-li small, .wlp-modern .v2-big small { font-size: 12px; color: var(--v2-muted); }

.wlp-modern .v2-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wlp-modern .v2-chip { display: inline-block; max-width: 100%; padding: 2px 9px; border-radius: 999px; background: #E8F2FB; color: var(--v2-blue); font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlp-modern .v2-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.wlp-modern .v2-badge.is-quiz { background: #EEF6D8; color: #3D5A06; }
.wlp-modern .v2-badge.is-video { background: #FDECEC; color: #B42318; }
.wlp-modern .v2-feat .v2-badge.is-quiz { background: rgba(166,206,57,.22); color: #DDF1A6; }
.wlp-modern .v2-feat .v2-badge.is-video { background: rgba(255,255,255,.14); color: #fff; }

.wlp-modern .v2-ph { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(135deg,#EAF2FB,#F4F8FD); color: var(--v2-muted); font-size: 11px; font-weight: 700; }

.wlp-modern .v2-trust { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.wlp-modern .v2-tr { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--v2-line); }
.wlp-modern .v2-tr svg { flex-shrink: 0; }
.wlp-modern .v2-tr b { display: block; font-size: 19px; font-weight: 800; color: var(--v2-ink); line-height: 1.2; }
.wlp-modern .v2-tr small { font-size: 12.5px; color: var(--v2-muted); }

.wlp-modern .v2-cat { margin-top: 34px; }
.wlp-modern .v2-cat-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wlp-modern .v2-cat-h h2 { margin: 0 !important; font-size: 24px !important; font-weight: 700 !important; }
.wlp-modern .v2-cat-h h2 a { color: var(--v2-ink); }
.wlp-modern .v2-count { font-size: 13px; color: var(--v2-muted); }
.wlp-modern .v2-all { margin-left: auto; padding: 7px 14px; border-radius: 999px; background: #E8F2FB; color: var(--v2-blue) !important; font-size: 13px; font-weight: 700; white-space: nowrap; }
.wlp-modern .v2-mag { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
.wlp-modern .v2-big { display: block; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--v2-line); color: var(--v2-ink) !important; transition: transform .15s ease, box-shadow .15s ease; }
.wlp-modern .v2-big-img .v2-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 0; }
.wlp-modern .v2-big-t { display: block; padding: 14px 18px 18px; }
.wlp-modern .v2-big-t b { display: block; margin: 8px 0 6px; font-size: 19px; font-weight: 700; line-height: 1.45; }
.wlp-modern .v2-col { display: flex; flex-direction: column; gap: 12px; }
.wlp-modern .v2-home .wlp-promo { margin-top: 34px; }
.wlp-modern .v2-older { text-align: center; margin: 30px 0 0; }
.wlp-modern .v2-older a { display: inline-block; padding: 11px 24px; border-radius: 999px; background: #fff; border: 1px solid var(--v2-line); color: var(--v2-blue); font-weight: 700; }

/* ---------- Footer ---------- */
.wlp-modern .v2-footer { position: relative; margin-top: 130px; background: #0B1F3F; color: #C8D5E8; }
.wlp-modern .v2-skyline { position: absolute; left: 0; bottom: calc(100% - 1px); display: block; width: 100%; height: 110px; margin: 0; pointer-events: none; }
.wlp-modern .v2-ft { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-top: 30px; padding-bottom: 26px; }
.wlp-modern .v2-ft-brand { font-size: 24px; font-weight: 800; color: #fff; }
.wlp-modern .v2-ft p { margin: 10px 0 14px; font-size: 14px; line-height: 1.75; color: #C8D5E8; }
.wlp-modern .v2-ft h4 { margin: 0 0 12px !important; font-size: 15px !important; color: #fff !important; }
.wlp-modern .v2-ft a { display: block; margin: 7px 0; font-size: 14px; color: #C8D5E8 !important; }
.wlp-modern .v2-ft a:hover { color: #fff !important; }
.wlp-modern .v2-soc { display: flex; gap: 10px; }
.wlp-modern .v2-soc a { width: 40px; height: 40px; margin: 0; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.wlp-modern .v2-cp { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .wlp-modern .v2-menu { display: none; }
  .wlp-modern .v2-burger { display: inline-flex; }
}
@media (max-width: 760px) {
  .wlp-modern .v2-wrap { padding-left: 16px; padding-right: 16px; }
  .wlp-modern .v2-hd { height: 62px; gap: 10px; }
  .wlp-modern .v2-logo img { height: 34px; }
  .wlp-modern .v2-cta, .wlp-modern .v2-tg { display: none !important; }
  .wlp-modern .v2-hero, .wlp-modern .v2-mag { grid-template-columns: 1fr; }
  .wlp-modern .v2-feat h1 { font-size: 21px !important; }
  .wlp-modern .v2-feat-t { padding: 14px 16px 18px; }
  .wlp-modern .v2-trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wlp-modern .v2-tr { padding: 12px; }
  .wlp-modern .v2-li-img { width: 112px; }
  .wlp-modern .v2-li-img .v2-img { width: 112px; }
  .wlp-modern .v2-cat-h h2 { font-size: 20px !important; }
  .wlp-modern .v2-count { display: none; }
  .wlp-modern .v2-ft { grid-template-columns: 1fr 1fr; }
  .wlp-modern .v2-ft > div:first-child { grid-column: 1 / -1; }
}

/* Theme search widget button in brand blue */
.wlp-modern .widget_search button, .wlp-modern .widget_search input[type="submit"], .wlp-modern .searchform button, .wlp-modern .searchform input[type="submit"] { background: var(--v2-blue) !important; border-color: var(--v2-blue) !important; color: #fff !important; border-radius: 0 10px 10px 0; }
