/*
Theme Name: Magazilla
Theme URI: http://cmsmasters.net/newsmag/
Author: cmsmasters
Author URI: http://cmsmasters.net/
Description: Magazilla WordPress Theme is amazing. Unlimited design solutions can be created due to a great flexibility of settings and shortcode options. 99+ Custom Shortcodes are added through a Visual content composer with drag'n'drop function. You can set a completely custom layout that stretches to any width, set your content in many columns and assign animation many parts of your content. Magazilla theme has a Portfolio that can be set to any sort of a grid or a Masonry puzzle with variable paddings for elemens, while Blog can have several different layouts too. Custom Profiles and Articles post types offer an optimal way to present your content, while valid code, SEO-optimized structure and microformats guarantee this content is easily crawled and indexed by search engines. Magazilla comes with a Custom Mega Menu plugin, premium Revolution and Layer Slider plugins included for free. Multilanguage, RTL-ready, plugin-compatible and professionally-supported theme.
Version: 1.1.5
License:
License URI:
Text Domain: magazilla
Domain Path: /theme-vars/languages
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/*-------------------------------------------------------------------------*/
/* Browser Reset
/*-------------------------------------------------------------------------*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
figure,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  vertical-align: baseline;
  outline: none;
}
html {
  height: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
object,
video,
audio,
embed,
canvas,
iframe,
main,
summary {
  display: block;
}
video,
audio,
progress,
canvas {
  vertical-align: baseline;
}
video {
  background-color: #000000;
}
template,
[hidden],
audio:not([controls]) {
  display: none;
}
audio:not([controls]) {
  height: 0;
}
iframe {
  max-width: 100%;
}
abbr,
address,
progress {
  display: inline-block;
  text-decoration: none;
}
abbr:not([class]),
acronym {
  text-decoration: underline;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
}
#middle ul:after,
#bottom ul:after,
#middle ol:after,
#bottom ol:after {
  content: ".";
  display: block;
  clear: both;
  height: 0;
  visibility: hidden;
  overflow: hidden;
}
dl {
  display: block;
  overflow: hidden;
}
dt {
  display: block;
  font-weight: bold;
  overflow: hidden;
}
dd {
  display: block;
  overflow: hidden;
}
q:before,
q:after {
  content: none;
}
del {
  text-decoration: line-through;
}
table {
  width: 100%;
}
img {
  display: inline-block;
  color: transparent;
  height: auto;
  font-size: 0;
  vertical-align: middle;
  max-width: 100%;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: auto;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}
img.wp-smiley,
img.emoji {
  font-size: 1em;
}
a {
  background: transparent;
}
a:active,
a:hover {
  outline: 0;
}
img {
  border: 0;
}
figure {
  background-image: none !important;
}
fieldset {
  margin: 25px 2px 30px;
  padding: 1.5em 1em 0.5em;
  border-width: 0;
  border-style: solid;
}
fieldset legend {
  padding: 3px 10px;
  margin-top: -25px;
}
input {
  line-height: normal;
}
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}
textarea {
  resize: vertical;
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
}
optgroup {
  font-weight: bold;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
input[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
}
input[type="submit"],
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
input[type="checkbox"],
input[type="radio"] {
  padding: 0;
}
button {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
select {
  cursor: pointer;
}
button[disabled],
html input[disabled] {
  cursor: default;
  pointer-events: none;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
input[type="text"]::-ms-clear {
  display: none;
}
p:empty {
  display: none;
}
:focus {
  outline: 0;
}
pre,
code,
kbd,
samp {
  background-color: transparent;
  color: inherit;
  font-family: monospace;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: 1px;
}
pre {
  white-space: pre-wrap;
}
pre a {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
}
code {
  display: inline-block;
}
code a {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
}
svg:not(:root) {
  overflow: hidden;
}
sub,
sup,
small {
  font-size: 75%;
}
sub,
sup {
  line-height: 0;
  position: relative;
}
sup {
  vertical-align: super;
}
sub {
  vertical-align: sub;
}
b,
strong {
  font-weight: bold;
}
th,
td,
caption {
  font-weight: normal;
}
dfn {
  font-style: italic;
}
hr {
  height: 0;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}
mark {
  color: #000000;
}
.sticky,
.bypostauthor,
.screen-reader-text {
  outline: none;
}

/* Related posts slider excerpt */
.cmsmasters_single_slider .cmsmasters_single_slider_item_excerpt {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #555555;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 768px) {
  .cmsmasters_single_slider .cmsmasters_single_slider_item_excerpt {
    font-size: 12.5px;
  }
}

/* === LESSON BRIEF CSS - START === */

/* =========================================================
   Lesson Brief - Pre-article summary box
   ========================================================= */

/* Main container - purple left border accent */
.lesson-brief {
  border-left: 4px solid #3d0e78;
  background-color: #f5f5f5;
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  margin: 0px 0px 40px 0px;
}

/* ---- Header Row ---- */
.lesson-brief__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* "What You'll Learn" label */
.lesson-brief__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3d0e78;
}

/* Listening duration - yellow pill, waveform icon + text */
.lesson-brief__duration {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #3d0e78;
  line-height: 1;
  background: #fbcd39;
  border-radius: 999px;
  padding: 5px 12px;
}

.lesson-brief__duration svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #3d0e78;
  display: block;
}

.lesson-brief__duration-label {
  display: inline-block;
  line-height: 1;
}

.lesson-brief__duration strong {
  color: #3d0e78;
  font-weight: 600;
  line-height: 1;
}

/* ---- Summary Text ---- */
.lesson-brief__summary {
  font-style: italic;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ---- Footer Row ---- */
.lesson-brief__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.lesson-brief__footer .lb-feat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
}

.lesson-brief__footer .lb-feat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #3d0e78;
}

.lesson-brief__footer .lb-feat + .lb-feat::before {
  content: "\2022";
  color: #bbb;
  margin-right: 6px;
  font-weight: 700;
}

.lesson-brief__footer .lb-level {
  display: inline-flex;
  align-items: center;
  background: var(--lb-level-light, #f3eef9);
  border: 1px solid var(--lb-level-accent, #3d0e78);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--lb-level-dark, #3d0e78);
  line-height: 1;
  margin-right: 4px;
}

.lesson-brief__footer .lb-level::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lb-level-accent, currentColor);
  margin-right: 6px;
  opacity: 0.7;
}

.lesson-brief__footer .lb-level svg {
  display: none;
}

@media (max-width: 768px) {
  .lesson-brief__summary {
    font-size: 15px;
  }
  .lesson-brief__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    font-size: 11px;
  }
  .lesson-brief__footer .lb-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-right: 0;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    color: #666;
    justify-self: start;
  }
  .lesson-brief__footer .lb-level::before {
    display: none;
  }
  .lesson-brief__footer .lb-level svg {
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--lb-level-accent, #3d0e78);
  }
  .lesson-brief__footer .lb-feat {
    white-space: normal;
  }
  .lesson-brief__footer .lb-feat + .lb-feat::before {
    content: none;
  }
}

/* ---- Ad Slot ---- */
.ad-slot {
  margin: 0 0 24px;
  min-height: 10px;
}

/* === LESSON BRIEF CSS - END === */

/* === VOCABULARY TABLE CSS - START === */

/* =========================================================
   Vocabulary Table - Level-Aware Styling
   Fonts: Inter (body), Poppins (headings), Merriweather (examples)
   ACF fields: vocabulary_words, vocabulary_level
   ========================================================= */

.vt-divider {
  width: 50%;
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 40px auto;
}

.vt-wrap {
  margin: 0;
  font-family: "Inter", sans-serif;
}

.vt-vocab-title {
  padding-top: 10px;
}

/* ---- Section Title (H2) ---- */
.vt-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1.25rem;
}

.vt-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2.vt-title {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vt-dark);
  white-space: nowrap;
  margin: 0;
  padding: 0;
  line-height: 1;
  border: none;
}

h3.vt-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: capitalize;
  color: var(--vt-dark);
  white-space: nowrap;
  margin: 0;
  padding: 0;
  line-height: 1;
  border: none;
}

.vt-title-line {
  flex: 1;
  height: 1px;
  background: var(--vt-accent);
  opacity: 0.25;
}

.vt-level-badge {
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--vt-accent);
  padding: 0.28em 0.7em;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1;
  align-self: flex-start;
}

/* ---- Table ---- */
.vt-table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vt-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 0 !important;
}

.vt-table th,
.vt-table td {
  border: 0 !important;
}

.vt-table tbody tr,
.vt-table thead tr,
.vt-table tfoot tr {
  border: 0 !important;
}

.vt-table thead th {
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--vt-accent);
  opacity: 0.75;
  padding: 0.6rem 1rem;
  text-align: left;
  background: var(--vt-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
}

.vt-table thead th:first-child {
  text-align: center;
  width: 52px;
}

.vt-table tbody tr {
  border-bottom: 1px solid #f2f2f2 !important;
  transition: background 0.15s;
}

.vt-table tbody tr:last-child {
  border-bottom: 0 !important;
}

.vt-table tbody tr:hover {
  background: var(--vt-light);
}

.vt-table td {
  padding: 0.9rem 1rem;
  vertical-align: top;
}

/* ---- Number Badge ---- */
.vt-col-num {
  text-align: center;
  width: 52px;
  padding-top: 1rem !important;
}

.vt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vt-light);
  color: var(--vt-accent);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--vt-accent);
  flex-shrink: 0;
}

/* ---- Word Cell ---- */
.vt-col-word {
  width: 18%;
  min-width: 120px;
}

.vt-word-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.vt-word {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--vt-dark);
  line-height: 1.3;
}

.vt-pos {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 12px;
  color: var(--vt-accent);
  margin-top: 3px;
  display: block;
}

/* ---- Definition Cell ---- */
.vt-col-def {
  width: 40%;
}

.vt-definition {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

/* ---- Example Cell - Merriweather for a dictionary/book feel ---- */
.vt-col-ex {
  width: 34%;
}

.vt-example {
  font-family: "Merriweather", serif;
  font-style: italic;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

/* ---- Single Word Copy Button ---- */
.vt-copy-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--vt-accent);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s,
    background 0.2s;
  vertical-align: middle;
  flex-shrink: 0;
}

.vt-table tbody tr:hover .vt-copy-word {
  opacity: 0.45;
}

.vt-copy-word:hover {
  opacity: 1 !important;
  background: var(--vt-light);
}

.vt-copy-word--copied {
  opacity: 1 !important;
  color: #27ae60;
}

/* ---- Article Word Targets ---- */
.vt-vocab-row {
  cursor: pointer;
}

.vt-vocab-row:focus-visible {
  outline: 2px solid var(--vt-accent);
  outline-offset: -2px;
  background: var(--vt-light);
}

.vt-vocab-row--missing-target {
  cursor: default;
}

.wp-block-group.listenglish-article .word.vt-article-word {
  color: var(--vt-accent, #2980b9);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  border-radius: 3px;
  scroll-margin-top: 130px;
  transition:
    background-color 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}

.wp-block-group.listenglish-article .word.vt-article-word-start[data-vt-definition] {
  cursor: help;
}

.vt-article-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999999;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--vt-accent, #2980b9);
  border-radius: 8px;
  background: var(--vt-light, #ebf5fb);
  color: var(--vt-dark, #154360);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  text-decoration: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.vt-article-tooltip--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wp-block-group.listenglish-article .word.vt-article-word-start::after {
  content: attr(data-vt-word-index);
  display: inline-block;
  margin-left: 1px;
  font-size: 0.65em;
  font-weight: 600;
  line-height: 1;
  vertical-align: super;
  text-decoration: none;
}

.wp-block-group.listenglish-article .word.vt-article-word--active {
  background: var(--vt-light, #ebf5fb);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.22);
  color: var(--vt-dark, #154360);
}

/* ---- Table Footer - Export Row ---- */
.vt-table tfoot tr {
  border: 0 !important;
}

.vt-tfoot-cell {
  background: transparent !important;
  border-top: 1px solid rgba(0, 0, 0, 0.07) !important;
  padding: 0 !important;
}

.vt-tfoot-export {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0.9rem 1rem 1rem;
}

.vt-export-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.vt-export-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.vt-export-hint {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #718096;
  line-height: 1.4;
  text-align: left;
}

.vt-tfoot-tip {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  padding: 0;
}

.vt-tfoot-tip-label {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  padding: 3px 8px;
  border: 1.5px solid var(--vt-accent);
  border-radius: 8px;
  background: var(--vt-light);
  color: var(--vt-accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.vt-export-select {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  height: 34px;
  padding: 0 32px 0 12px;
  border: 1.5px solid #dde3ea;
  border-radius: 8px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: #374151;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  min-width: 210px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vt-export-select:focus {
  border-color: var(--vt-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.vt-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  height: 34px;
  padding: 0 16px;
  border: 1.5px solid var(--vt-accent);
  border-radius: 8px;
  background: var(--vt-light);
  color: var(--vt-accent);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vt-export-btn:hover {
  background: var(--vt-accent);
  color: #fff;
}

.vt-export-btn--copied {
  background: #27ae60 !important;
  border-color: #27ae60 !important;
  color: #fff !important;
}

/* =========================================================
   Notes & Synonyms Card Grid
   ========================================================= */

.vt-cards-section {
  margin-top: 40px;
}

.vt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.vt-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.vt-card-word {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--vt-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.vt-card-note {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #334155;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.vt-card-synonym {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  align-self: end;
  min-height: 70px;
}

.vt-card-synonym em {
  font-style: italic;
  margin-right: 0.25rem;
  font-weight: 600;
}

/* =========================================================
   PDF Download Resource
   ========================================================= */

.vt-download-resource {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.65rem 1.75rem;
  background: #fafafa;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.vt-download-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fce8e6;
  border-radius: 8px;
  color: #c62828;
}

.vt-download-content {
  flex: 1;
}

.vt-download-title {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--vt-dark);
  margin: 0 0 6px;
  padding: 0;
  border: none;
  line-height: 1.3;
}

.vt-download-desc {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.vt-download-desc strong {
  color: var(--vt-dark);
  font-weight: 600;
}

.vt-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--vt-accent);
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.vt-download-btn:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Mobile - Card Layout
   ========================================================= */
@media (max-width: 768px) {
  .vt-table-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
  }

  .vt-table,
  .vt-table thead,
  .vt-table tbody,
  .vt-table tfoot,
  .vt-table tr,
  .vt-table th,
  .vt-table td {
    display: block;
  }

  .vt-table {
    background: transparent;
  }

  .vt-table thead {
    display: none;
  }

  .vt-table .vt-tfoot-cell {
    display: block;
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 1rem 1.25rem !important;
    margin-bottom: 1rem;
    box-sizing: border-box;
  }

  .vt-tfoot-export {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 0;
  }

  .vt-export-text {
    gap: 0.5rem;
  }

  .vt-export-controls {
    width: 100%;
  }

  .vt-export-select {
    flex: 1 1 auto;
    min-width: 0;
  }

  .vt-export-btn {
    flex: 0 0 auto;
    justify-content: center;
  }

  .vt-export-hint {
    font-size: 12px;
  }

  .vt-table tbody tr {
    background: #fff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    margin-bottom: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .vt-table tbody tr:last-child {
    border: 1px solid #e2e8f0 !important;
  }

  .vt-table tbody tr:hover {
    background: #fff;
  }

  .vt-table td {
    padding: 0.2rem 0;
    width: 100% !important;
  }

  .vt-col-num {
    text-align: left;
    margin-bottom: 0.4rem;
  }

  .vt-badge {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .vt-col-word {
    padding-bottom: 0.5rem !important;
  }

  .vt-col-def {
    padding-top: 0.4rem !important;
    border-top: 1px dashed #eee;
    margin-top: 0.4rem;
  }

  .vt-col-ex {
    padding-top: 0.3rem !important;
  }

  h2.vt-title {
    font-size: 20px;
    white-space: normal;
  }

  h3.vt-subtitle {
    font-size: 18px;
    white-space: normal;
  }

  .vt-definition {
    font-size: 14px;
  }

  .vt-card-note {
    font-size: 13.5px;
  }

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

@media (max-width: 480px) {
  .vt-cards-grid {
    grid-template-columns: 1fr;
  }
  .vt-card-synonym {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .vt-download-resource {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .vt-download-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
  }
}

/* === VOCABULARY TABLE CSS - END ===  */

/* === READING COMPREHENSION CSS - START === */
/* ACF fields: comprehension_questions_json, vocabulary_level */

.vt-comprehension-section {
  font-family: "Inter", sans-serif;
  margin: 80px 0 0;
  max-width: 100%;
  overflow: hidden;
}

.vt-grammar-section.vt-accordion-section
  + .vt-comprehension-section.vt-accordion-section {
  margin-top: 34px;
}

/* ---- Accordion Title ---- */
.vt-comprehension-section.vt-accordion-section {
  display: block;
}

.vt-comprehension-section .vt-accordion-summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
  outline: none;
  user-select: none;
}

.vt-comprehension-section[open] .vt-accordion-summary {
  margin-bottom: 1.25rem;
}

.vt-comprehension-section .vt-accordion-summary::-webkit-details-marker {
  display: none;
}

.vt-comprehension-section .vt-accordion-summary::marker {
  content: "";
}

.vt-comprehension-section .vt-accordion-summary .vt-title-row {
  width: 100%;
}

.vt-comprehension-section .vt-accordion-icon {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--vt-accent);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vt-comprehension-section .vt-accordion-icon::before,
.vt-comprehension-section .vt-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--vt-accent);
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.vt-comprehension-section .vt-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.vt-comprehension-section .vt-accordion-summary:hover .vt-accordion-icon,
.vt-comprehension-section .vt-accordion-summary:focus-visible .vt-accordion-icon,
.vt-comprehension-section[open] .vt-accordion-icon {
  background: var(--vt-accent);
}

.vt-comprehension-section .vt-accordion-summary:hover .vt-accordion-icon::before,
.vt-comprehension-section .vt-accordion-summary:hover .vt-accordion-icon::after,
.vt-comprehension-section .vt-accordion-summary:focus-visible .vt-accordion-icon::before,
.vt-comprehension-section .vt-accordion-summary:focus-visible .vt-accordion-icon::after,
.vt-comprehension-section[open] .vt-accordion-icon::before,
.vt-comprehension-section[open] .vt-accordion-icon::after {
  background: #fff;
}

.vt-comprehension-section[open] .vt-accordion-icon::after {
  opacity: 0;
}

.vt-comprehension-section .vt-accordion-summary:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(61, 14, 120, 0.16);
}

/* ---- Question Card ---- */
.vt-question-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.vt-question-card:last-child {
  margin-bottom: 0;
}

.vt-question-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.vt-q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vt-light);
  color: var(--vt-accent);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--vt-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.vt-question-text {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a202c;
  line-height: 1.65;
  margin: 0;
}

/* ---- Multiple Choice Options ---- */
.vt-options-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vt-options-list li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.vt-options-list li::before,
.vt-options-list li::after,
.vt-options-list li::marker {
  display: none !important;
  content: none !important;
}

.vt-option-btn {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  background: #fff;
  border: 1.5px solid #dde3ea;
  border-radius: 8px;
  padding: 0.8rem 1.1rem;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #334155 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.55;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-appearance: none;
  appearance: none;
  opacity: 1;
}

.vt-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: var(--vt-light);
  color: var(--vt-accent);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0;
  transition: all 0.2s ease;
}

.vt-option-btn.vt-correct .vt-option-letter {
  background: #27ae60 !important;
  color: #fff !important;
}

.vt-option-btn.vt-wrong .vt-option-letter {
  background: #e53e3e !important;
  color: #fff !important;
}

@media (hover: hover) {
  .vt-option-btn:hover:not(:disabled) .vt-option-letter {
    background: var(--vt-accent);
    color: #fff;
  }

  .vt-option-btn:hover:not(:disabled) {
    border-color: var(--vt-accent);
    background: var(--vt-light);
    color: var(--vt-dark);
  }
}

.vt-option-btn.vt-correct,
.vt-option-btn.vt-correct:disabled {
  border-color: #27ae60 !important;
  background-color: #eafaf1 !important;
  background-image: none !important;
  color: #1b5e20 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.vt-option-btn.vt-wrong,
.vt-option-btn.vt-wrong:disabled {
  border-color: #e53e3e !important;
  background-color: #fff5f5 !important;
  background-image: none !important;
  color: #c53030 !important;
  opacity: 1 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.vt-option-btn:disabled {
  cursor: default;
  opacity: 1;
}

/* ---- Explanation Box ---- */
.vt-explanation-box {
  background: #f8fafc;
  border-left: 3px solid var(--vt-accent);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vt-explanation-box[hidden] {
  display: none;
}

.vt-explanation-box.vt-visible {
  opacity: 1;
  transform: translateY(0);
}

.vt-explanation-label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vt-accent);
  margin-bottom: 0.4rem;
}

.vt-explanation-box p {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
}

/* ---- Show Answer Button ---- */
.vt-show-answer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--vt-light);
  color: var(--vt-accent);
  border: 1.5px solid var(--vt-accent);
  border-radius: 8px;
  height: 34px;
  padding: 0 16px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
  box-sizing: border-box;
  white-space: nowrap;
}

.vt-show-answer-btn:hover {
  background: var(--vt-accent);
  color: #fff;
}

/* ---- Answer Box ---- */
.vt-answer-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.25rem;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.vt-answer-box[hidden] {
  display: none;
}

.vt-answer-box.vt-visible {
  opacity: 1;
  transform: translateY(0);
}

.vt-answer-section {
  margin-bottom: 0;
}

.vt-answer-label {
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vt-accent);
  margin: 0 0 0.4rem;
}

.vt-answer-text {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
  margin: 0;
}

.vt-teachers-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .vt-grammar-section.vt-accordion-section
    + .vt-comprehension-section.vt-accordion-section {
    margin-top: 28px;
  }

  .vt-question-card {
    padding: 1.25rem 1.15rem;
  }

  .vt-question-header {
    gap: 0.6rem;
  }

  .vt-q-num {
    width: 26px;
    height: 26px;
    font-size: 11px;
    margin-top: 1px;
  }

  .vt-question-text {
    font-size: 14px;
  }

  .vt-option-btn {
    font-size: 13.5px;
    padding: 0.7rem 0.9rem;
  }

  .vt-explanation-box p,
  .vt-answer-text {
    font-size: 13.5px;
  }
}

/* === READING COMPREHENSION CSS - END === */

/* === DISCUSSION SECTION CSS - START === */
/* ACF fields: discussion_questions_json, further_discussion_questions_json */

.vt-discussion-section {
  font-family: "Inter", sans-serif;
  margin: 80px 0 0;
  max-width: 100%;
}

.vt-comprehension-section.vt-accordion-section
  + .vt-discussion-section.vt-accordion-section {
  margin-top: 34px;
}

/* ---- Accordion Title ---- */
.vt-discussion-section.vt-accordion-section {
  display: block;
}

.vt-discussion-section .vt-accordion-summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
  outline: none;
  user-select: none;
}

.vt-discussion-section[open] .vt-accordion-summary {
  margin-bottom: 1.25rem;
}

.vt-discussion-section .vt-accordion-summary::-webkit-details-marker {
  display: none;
}

.vt-discussion-section .vt-accordion-summary::marker {
  content: "";
}

.vt-discussion-section .vt-accordion-summary .vt-title-row {
  width: 100%;
}

.vt-discussion-section .vt-accordion-icon {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--vt-accent);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vt-discussion-section .vt-accordion-icon::before,
.vt-discussion-section .vt-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--vt-accent);
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.vt-discussion-section .vt-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.vt-discussion-section .vt-accordion-summary:hover .vt-accordion-icon,
.vt-discussion-section .vt-accordion-summary:focus-visible .vt-accordion-icon,
.vt-discussion-section[open] .vt-accordion-icon {
  background: var(--vt-accent);
}

.vt-discussion-section .vt-accordion-summary:hover .vt-accordion-icon::before,
.vt-discussion-section .vt-accordion-summary:hover .vt-accordion-icon::after,
.vt-discussion-section .vt-accordion-summary:focus-visible .vt-accordion-icon::before,
.vt-discussion-section .vt-accordion-summary:focus-visible .vt-accordion-icon::after,
.vt-discussion-section[open] .vt-accordion-icon::before,
.vt-discussion-section[open] .vt-accordion-icon::after {
  background: #fff;
}

.vt-discussion-section[open] .vt-accordion-icon::after {
  opacity: 0;
}

.vt-discussion-section .vt-accordion-summary:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(61, 14, 120, 0.16);
}

/* ---- Tip / Info Box ---- */
.vt-discussion-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--vt-light);
  border-left: 4px solid var(--vt-accent);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.vt-discussion-tip-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.vt-discussion-tip-icon img.emoji {
  width: 18px;
  height: 18px;
  display: block;
}

.vt-discussion-tip-body {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--vt-dark);
  line-height: 1.65;
}

.vt-discussion-tip-body strong {
  color: var(--vt-accent);
  font-weight: 600;
}

/* ---- Group (Discussion / Further Discussion) ---- */
.vt-discussion-group {
  margin-bottom: 0;
}

.vt-discussion-group-title {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: capitalize;
  color: var(--vt-dark);
  white-space: nowrap;
  margin: 0 0 1rem;
  padding: 0;
  line-height: 1;
  border: none;
}

.vt-discussion-group--further {
  margin-top: 2.5rem;
}

/* ---- Single Card Container ---- */
.vt-discussion-list {
  list-style: none !important;
  padding: 0 1.75rem !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.vt-discussion-group--further .vt-discussion-list {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ---- List Items ---- */
.vt-discussion-item,
.vt-discussion-list .vt-discussion-item:first-child {
  list-style: none !important;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: none !important;
  box-sizing: border-box;
}

.vt-discussion-group--further .vt-discussion-item {
  border-bottom: 1px solid #e2e8f0;
}

.vt-discussion-item:last-child {
  border-bottom: none !important;
}

.vt-discussion-item::before,
.vt-discussion-item::after,
.vt-discussion-item::marker {
  display: none !important;
  content: none !important;
}

/* ---- Question Number ---- */
.vt-discussion-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--vt-light);
  color: var(--vt-accent);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid var(--vt-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Question Text ---- */
.vt-discussion-text {
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  word-break: break-word;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .vt-comprehension-section.vt-accordion-section
    + .vt-discussion-section.vt-accordion-section {
    margin-top: 28px;
  }

  .vt-discussion-list {
    padding: 0 1.15rem !important;
  }

  .vt-discussion-item {
    padding: 1rem 0;
    gap: 0.75rem;
  }

  .vt-discussion-num {
    width: 26px;
    height: 26px;
    font-size: 10px;
    margin-top: 1px;
  }

  .vt-discussion-text {
    font-size: 14px;
  }
}

/* === DISCUSSION SECTION CSS - END === */

/* === GRAMMAR FOCUS CSS - START === */
/* ACF field: grammar_focus (group: structure, explanation) */

.vt-grammar-section {
  font-family: "Inter", sans-serif;
  margin: 80px 0 0;
  max-width: 100%;
}

/* ---- Accordion Title ---- */
.vt-grammar-section.vt-accordion-section {
  display: block;
}

.vt-grammar-section .vt-accordion-summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
  outline: none;
  user-select: none;
}

.vt-grammar-section[open] .vt-accordion-summary {
  margin-bottom: 1.25rem;
}

.vt-grammar-section .vt-accordion-summary::-webkit-details-marker {
  display: none;
}

.vt-grammar-section .vt-accordion-summary::marker {
  content: "";
}

.vt-grammar-section .vt-accordion-summary .vt-title-row {
  width: 100%;
}

.vt-grammar-section .vt-accordion-icon {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--vt-accent);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vt-grammar-section .vt-accordion-icon::before,
.vt-grammar-section .vt-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--vt-accent);
  transform: translate(-50%, -50%);
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.vt-grammar-section .vt-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.vt-grammar-section .vt-accordion-summary:hover .vt-accordion-icon,
.vt-grammar-section .vt-accordion-summary:focus-visible .vt-accordion-icon,
.vt-grammar-section[open] .vt-accordion-icon {
  background: var(--vt-accent);
}

.vt-grammar-section .vt-accordion-summary:hover .vt-accordion-icon::before,
.vt-grammar-section .vt-accordion-summary:hover .vt-accordion-icon::after,
.vt-grammar-section .vt-accordion-summary:focus-visible .vt-accordion-icon::before,
.vt-grammar-section .vt-accordion-summary:focus-visible .vt-accordion-icon::after,
.vt-grammar-section[open] .vt-accordion-icon::before,
.vt-grammar-section[open] .vt-accordion-icon::after {
  background: #fff;
}

.vt-grammar-section[open] .vt-accordion-icon::after {
  opacity: 0;
}

.vt-grammar-section .vt-accordion-summary:focus-visible {
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(61, 14, 120, 0.16);
}

/* ---- Card ---- */
.vt-grammar-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-top: 3px solid var(--vt-accent);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  padding: 1.75rem 1.75rem 2rem;
  box-sizing: border-box;
}

/* ---- Structure Label + Text ---- */
.vt-grammar-structure {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.vt-grammar-structure-label {
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--vt-accent);
  border-radius: 4px;
  padding: 3px 8px;
  flex-shrink: 0;
  line-height: 1;
}

.vt-grammar-structure-text {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--vt-dark);
  line-height: 1.4;
}

/* ---- Divider ---- */
.vt-grammar-divider {
  height: 1px;
  background: #F1F5F9;
  margin: 0 0 1.5rem 0;
}

/* ---- Explanation Text ---- */
.vt-grammar-explanation {
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.8;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .vt-grammar-card {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .vt-grammar-structure {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .vt-grammar-structure-text,
  .vt-grammar-explanation {
    font-size: 14px;
  }
}

/* === GRAMMAR FOCUS CSS - END === */

/* Post navigation lesson level badge */
.post_nav .post_nav_cont {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.post_nav .cmsmasters_next_post .post_nav_cont {
  align-items: flex-end;
  text-align: right;
}

.post_nav .post_nav_level {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 4px 10px;
  border: 1px solid var(--le-post-nav-level-accent, #3d0e78);
  border-radius: 999px;
  background: var(--le-post-nav-level-light, #f3eef9);
  color: var(--le-post-nav-level-dark, #3d0e78) !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.post_nav .post_nav_level::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--le-post-nav-level-accent, #3d0e78);
  flex: 0 0 auto;
}

.post_nav .cmsmasters_next_post .post_nav_level::before {
  order: 2;
  margin-right: 0;
  margin-left: 6px;
}

@media (max-width: 600px) {
  .post_nav .post_nav_level {
    white-space: normal;
  }
}

/* Single post meta level badge */
.cmsmasters_open_post .cmsmasters_post_cont_level {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 3px 9px;
  border: 1px solid var(--le-post-nav-level-accent, #3d0e78);
  border-radius: 999px;
  background: var(--le-post-nav-level-light, #f3eef9);
  color: var(--le-post-nav-level-dark, #3d0e78) !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}

.cmsmasters_open_post .cmsmasters_post_cont_level::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--le-post-nav-level-accent, #3d0e78);
  flex: 0 0 auto;
}

.cmsmasters_open_post .cmsmasters_post_cont_mobile_level_row {
  display: none;
}

@media (max-width: 600px) {
  .cmsmasters_open_post .cmsmasters_post_cont_info_top > .cmsmasters_post_cont_info_meta,
  .cmsmasters_open_post .cmsmasters_post_cont_level_desktop {
    display: none;
  }

  .cmsmasters_open_post .cmsmasters_post_cont_info_bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .cmsmasters_open_post .cmsmasters_post_cont_mobile_level_row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    gap: 8px;
    width: 100%;
    margin-top: 5px;
    clear: both;
  }

  .cmsmasters_open_post .cmsmasters_post_cont_mobile_level_row .cmsmasters_post_cont_info_meta {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    gap: 0 4px;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    min-width: 0;
    line-height: 1;
    float: none !important;
  }

  .cmsmasters_open_post .cmsmasters_post_cont_mobile_level_row .cmsmasters_post_cont_info_meta > * {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0 !important;
    line-height: 1;
    float: none !important;
  }

  .cmsmasters_open_post .cmsmasters_post_cont_mobile_level_row .cmsmasters_post_cont_info_meta a,
  .cmsmasters_open_post .cmsmasters_post_cont_mobile_level_row .cmsmasters_post_cont_info_meta span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }

  .cmsmasters_open_post .cmsmasters_post_cont_level {
    align-self: center;
    flex: 0 0 auto;
    margin-top: 0;
    margin-left: auto !important;
    padding: 3px 8px;
    font-size: 10px;
    white-space: nowrap;
  }
}

@media only screen and (max-width: 540px) {
  .cmsmasters_open_post .cmsmasters_post_cont_mobile_level_row > .cmsmasters_post_cont_info_meta {
    margin: 0 !important;
    padding: 0 !important;
  }
}

/* Related posts slider level badge */
.cmsmasters_single_slider .cmsmasters_single_slider_item_meta_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}

.cmsmasters_single_slider .cmsmasters_single_slider_item_meta_row .cmsmasters_post_date {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.cmsmasters_single_slider .cmsmasters_single_slider_item_level {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 48%;
  padding: 3px 8px;
  border: 1px solid var(--le-post-nav-level-accent, #3d0e78);
  border-radius: 999px;
  background: var(--le-post-nav-level-light, #f3eef9);
  color: var(--le-post-nav-level-dark, #3d0e78) !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.cmsmasters_single_slider .cmsmasters_single_slider_item_level::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--le-post-nav-level-accent, #3d0e78);
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .cmsmasters_single_slider .cmsmasters_single_slider_item_meta_row {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .cmsmasters_single_slider .cmsmasters_single_slider_item_level {
    max-width: 52%;
    padding: 3px 7px;
    font-size: 10px;
  }
}

/* Home/default post card level badge */
.cmsmasters_post_default .cmsmasters_post_info {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  float: none !important;
  box-sizing: border-box;
}

.cmsmasters_post_default .cmsmasters_post_info .cmsmasters_post_date {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  float: none !important;
}

.middle_inner .cmsmasters_post_cont_wrap .cmsmasters_post_info .cmsmasters_home_post_level,
.cmsmasters_post_default .cmsmasters_post_info .cmsmasters_home_post_level {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  max-width: 52%;
  margin-left: auto !important;
  padding: 3px 8px !important;
  border: 1px solid var(--le-post-nav-level-accent, #3d0e78) !important;
  border-radius: 999px;
  background: var(--le-post-nav-level-light, #f3eef9) !important;
  color: var(--le-post-nav-level-dark, #3d0e78) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
  float: none !important;
}

.middle_inner .cmsmasters_post_cont_wrap .cmsmasters_post_info .cmsmasters_home_post_level::before,
.cmsmasters_post_default .cmsmasters_post_info .cmsmasters_home_post_level::before {
  content: "" !important;
  display: inline-block !important;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--le-post-nav-level-accent, #3d0e78) !important;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .cmsmasters_post_default .cmsmasters_post_info {
    gap: 8px;
  }

  .cmsmasters_post_default .cmsmasters_home_post_level {
    max-width: 56%;
    padding: 3px 7px;
    font-size: 10px;
  }
}

/*-------------------------------------------------------------------------*/
/* Category Intro
/*
/* Intro text block shown above the post list on category archive pages.
/* The H1 itself is the theme headline title (filtered in functions.php);
/* this block only styles the description text under it.
/*-------------------------------------------------------------------------*/

.listenglish-category-intro {
	margin: 0 0 40px;
	padding: 0 0 30px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.listenglish-category-intro h2,
.listenglish-category-intro h3 {
	margin: 0px 0px 25px 0px;
	font-size: 30px;
}

.listenglish-category-intro p {
	margin: 0 0 15px;
	font-size: 17px;
	line-height: 1.7;
}

.listenglish-category-intro p:last-child {
	margin-bottom: 0;
}

.listenglish-category-intro ul,
.listenglish-category-intro ol {
	margin: 0 0 15px 20px;
}

@media only screen and (max-width: 767px) {
	.listenglish-category-intro {
		margin-bottom: 30px;
		padding-bottom: 22px;
	}

	.listenglish-category-intro p {
		font-size: 16px;
	}
}
