/* ==========================================================================
   K.I.S.S. IELTS — Blog Articles Stylesheet
   Ported from EasyBlog custom.css → Joomla native article selectors
   See reference/easyblog/css-analysis.md for full mapping documentation
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --kiss-blue: #4ba3db;
  --kiss-purple: #9448EF;
  --kiss-pink: #fb02bd;
  --kiss-pink-alpha: #fb02bdab;
  --kiss-yellow: #F9F905;
  --kiss-red: #D41C1C;
  --kiss-body: #393939;
  --kiss-body-alt: #0a0a0ade;
  --kiss-quote-blue: #0f61f6;
  --kiss-jumbotron-bg: #9448EF4A;

  /* Typography */
  --kiss-font: "Microsoft YaHei", sans-serif;
  --kiss-body-size: 18px;
  --kiss-body-line-height: 30px;
  --kiss-h1-size: 38px;
  --kiss-h2-size: 30px;
  --kiss-h3-size: 28px;
  --kiss-title-size: 34px;
  --kiss-date-size: 12px;
}

/* --------------------------------------------------------------------------
   Article Container
   -------------------------------------------------------------------------- */
.com-content-article .item-page {
  font-family: var(--kiss-font);
  font-size: var(--kiss-body-size);
  line-height: var(--kiss-body-line-height);
  color: var(--kiss-body);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Article Header
   -------------------------------------------------------------------------- */
.item-page .page-header {
  text-align: center;
  text-transform: uppercase;
  margin: 5px 0 0;
  padding: 0 0 15px;
}

.item-page .page-header h2 {
  font-family: var(--kiss-font);
  font-size: var(--kiss-title-size);
  color: var(--kiss-blue);
  margin: 10px 0;
}

/* --------------------------------------------------------------------------
   Article Meta (Date, Author)
   -------------------------------------------------------------------------- */
.item-page .article-info time {
  font-size: var(--kiss-date-size);
  text-align: center;
}

.item-page .article-info .createdby {
  text-transform: uppercase;
  width: auto;
  margin: 0 auto;
  display: inline;
}

.item-page .article-info .createdby img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  padding: 2px;
}

/* --------------------------------------------------------------------------
   Article Body — Typography
   -------------------------------------------------------------------------- */
.item-page .item-content p {
  font-family: var(--kiss-font);
  font-size: inherit;
  line-height: var(--kiss-body-line-height);
  color: var(--kiss-body-alt);
  font-weight: 400;
  margin-bottom: 0.6em;
}

.item-page .item-content ol,
.item-page .item-content ul {
  font-family: var(--kiss-font);
  font-size: inherit;
  line-height: var(--kiss-body-line-height);
  color: var(--kiss-body-alt);
  font-weight: 400;
  margin-bottom: 1.6em;
}

/* --------------------------------------------------------------------------
   Headings
   -------------------------------------------------------------------------- */
.item-page .item-content h1 {
  font-size: var(--kiss-h1-size);
  color: var(--kiss-blue);
}

.item-page .item-content h2 {
  font-size: var(--kiss-h2-size);
  color: var(--kiss-blue);
}

.item-page .item-content h3 {
  font-size: var(--kiss-h3-size);
  color: var(--kiss-blue);
}

/* --------------------------------------------------------------------------
   Hyperlinks
   -------------------------------------------------------------------------- */
.item-page .item-content a {
  text-decoration: none;
  background-position: 0 1.2em;
  background-repeat: repeat-x;
  background-size: 100% 1px;
  color: var(--kiss-blue);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Images
   -------------------------------------------------------------------------- */
.item-page .blog-image {
  text-align: center;
  margin: 1.5em 0;
}

.item-page .blog-image img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}

.item-page .blog-image figcaption {
  font-weight: bolder;
  margin-top: 0.5em;
  font-size: 0.9em;
  color: var(--kiss-body);
}

/* --------------------------------------------------------------------------
   Cover Image
   -------------------------------------------------------------------------- */
@media screen and (min-width: 938px) {
  .item-page .blog-cover-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
  }
}

/* --------------------------------------------------------------------------
   CTA Buttons
   -------------------------------------------------------------------------- */
.item-page .blog-cta {
  display: inline-block;
  background-color: var(--kiss-pink-alpha);
  font: normal bold 20px/30px var(--kiss-font);
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.item-page .blog-cta:hover {
  background-color: var(--kiss-pink);
}

/* --------------------------------------------------------------------------
   Blockquotes
   -------------------------------------------------------------------------- */
.item-page blockquote {
  text-align: right;
  border-right: 5px solid var(--kiss-quote-blue);
  border-left: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--kiss-quote-blue);
  padding: 1em 1.5em;
  margin: 1.5em 0;
}

.item-page blockquote p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--kiss-quote-blue);
}

/* --------------------------------------------------------------------------
   Jumbotron (Featured Content Sections)
   -------------------------------------------------------------------------- */
.item-page .blog-jumbotron {
  background-color: var(--kiss-jumbotron-bg);
  padding: 2em;
  text-align: center;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* --------------------------------------------------------------------------
   Video Embeds (YouTube)
   -------------------------------------------------------------------------- */
.item-page .video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: 1.5em 0;
}

.item-page .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.item-page .item-content table {
  width: 100%;
  table-layout: fixed;
  margin: 1em 0;
}

.item-page .item-content .table-responsive {
  overflow-x: inherit;
}

/* --------------------------------------------------------------------------
   Horizontal Rules (Blog Dividers)
   -------------------------------------------------------------------------- */
.item-page .blog-divider,
.item-page hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2em 0;
}

/* --------------------------------------------------------------------------
   Columns (CSS Grid)
   -------------------------------------------------------------------------- */
.item-page .blog-columns {
  display: grid;
  gap: 1.5em;
  margin: 1.5em 0;
}

.item-page .blog-columns[data-cols="2"] {
  grid-template-columns: 1fr 1fr;
}

.item-page .blog-columns[data-cols="3"] {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 767px) {
  .item-page .blog-columns {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.item-page .blog-section {
  margin: 1.5em 0;
}

/* --------------------------------------------------------------------------
   Accordion (Details/Summary)
   -------------------------------------------------------------------------- */
.item-page details {
  margin: 0.5em 0;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 0.5em 1em;
}

.item-page details summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5em 0;
}

.item-page details[open] summary {
  margin-bottom: 0.5em;
  border-bottom: 1px solid #e5e5e5;
}

/* --------------------------------------------------------------------------
   Custom Highlight Elements (ported from <m1> and <m2>)
   -------------------------------------------------------------------------- */

/* kiss-highlight-1: Large highlighted text (was <m1>) */
.item-page .kiss-highlight-1 {
  color: #1b1313;
  text-transform: inherit;
  font-size: 1.9em;
  line-height: 1.4;
  font-weight: bolder;
}

@media (min-width: 40em) {
  .item-page .kiss-highlight-1 {
    background: none;
  }
}

.item-page .kiss-highlight-1 span {
  margin-bottom: 0.5em;
  padding: 0.5em;
}

@media (min-width: 40em) {
  .item-page .kiss-highlight-1 span {
    display: inline-block;
    background: var(--kiss-yellow);
  }
}

/* kiss-highlight-2: Uppercase highlighted text (was <m2>) */
.item-page .kiss-highlight-2 {
  color: white;
  background: var(--kiss-yellow);
  text-transform: uppercase;
  font-size: 1.6em;
  line-height: 1.1;
  font-weight: 900;
}

@media (min-width: 40em) {
  .item-page .kiss-highlight-2 {
    background: none;
  }
}

.item-page .kiss-highlight-2 span {
  margin-bottom: 0.1em;
  padding: 0.1em;
  background: var(--kiss-red);
}

@media (min-width: 40em) {
  .item-page .kiss-highlight-2 span {
    display: inline-block;
    background: var(--kiss-red);
  }
}

/* --------------------------------------------------------------------------
   Drop Cap
   -------------------------------------------------------------------------- */
@media (min-width: 767px) {
  .item-page .blog-dropcap {
    font-family: var(--kiss-font);
    font-weight: 600;
    font-style: normal;
    font-size: 5.3em;
    color: #000000;
    float: left;
    line-height: 0.7em;
    margin: 0 0.05em 0.1em 0;
  }
}

.item-page .blog-dropcap-auto:first-letter {
  font-family: var(--kiss-font);
  font-weight: 600;
  font-style: normal;
  font-size: 5em;
  color: #000000;
  float: left;
  line-height: 0.9em;
  margin: 0 0.05em 0 0;
}

/* --------------------------------------------------------------------------
   Hide EasySocial widgets (Share, Reactions, Comments)
   -------------------------------------------------------------------------- */
.item-page > #es,
.item-page .es-sharer-btn,
.item-page .es-reactions-btn,
.item-page .es-comments-blk {
  display: none !important;
}

/* ==========================================================================
   Listing page card styles have been moved to custom.css
   to avoid CSS conflicts with T3 template.css global selectors
   (.image-wrap, .intro-wrap, .article-wrap, .items-row .item)
   See: theme/listing-cards.css (source) → custom.css (deployed)
   ========================================================================== */

/* ==========================================================================
   K.I.S.S. IELTS — Success Story Article Template
   Phase 1: CSS-only redesign for article detail pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   MODULE 1 — Additional Design Tokens
   (Existing brand tokens are in blog-articles.css — do NOT redefine)
   -------------------------------------------------------------------------- */
:root {
  --kiss-green: #22c55e;
  --kiss-green-bg: #f0fdf4;
  --kiss-amber: #f59e0b;
  --kiss-amber-bg: #fef3c7;
  --kiss-charcoal: #1a1a2e;
  --kiss-bilibili: #fb7299;
  --kiss-card-radius: 16px;
  --kiss-card-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --kiss-article-max: 760px;
}

/* --------------------------------------------------------------------------
   MODULE 2 — Hero Image
   Phase 2: PHP sets .kiss-hero-image (catid=23). Fallback .pull-left rules
   keep non-success-story articles working unchanged.
   -------------------------------------------------------------------------- */

/* Phase 2 hero (catid=23 only — set by fulltext_image.php override) */
.item-page .kiss-hero-image {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.item-page .kiss-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Fallback: non-catid-23 articles still use pull-left from Joomla core */
.item-page div.pull-left.item-image.article-image-full {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 0 0 !important;
  padding: 0 !important;
}

.item-page div.pull-left.item-image.article-image-full img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* Title styling below the hero image */
.item-page header.article-header h1.article-title {
  font-size: 2em;
  font-weight: 800;
  color: var(--kiss-charcoal);
  margin: 0.75em 0 0.5em;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   MODULE 3 — Score Comparison Table
   Premium styled panel for before/after IELTS scores
   -------------------------------------------------------------------------- */
.item-page .article-content table.table-hover {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--kiss-card-radius);
  overflow: hidden;
  box-shadow: var(--kiss-card-shadow);
  border-top: 4px solid var(--kiss-purple);
  margin: 1.5em 0;
  table-layout: fixed;
}

.item-page .article-content table.table-hover td {
  padding: 14px 16px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: middle;
}

/* Label column */
.item-page .article-content table.table-hover td:first-child {
  font-weight: 600;
  color: #555;
  width: 38%;
  background: transparent;
}

/* Value column */
.item-page .article-content table.table-hover td:last-child {
  color: var(--kiss-body);
}

/* Row 1: Before score — light grey */
.item-page .article-content table.table-hover tr:first-child td {
  background: #f8f9fa;
}

/* Row 2: After score — green highlight */
.item-page .article-content table.table-hover tr:nth-child(2) td {
  background: var(--kiss-green-bg);
}

.item-page .article-content table.table-hover tr:nth-child(2) td:last-child {
  color: var(--kiss-green);
  font-weight: 700;
  font-size: 1.05em;
}

/* Remaining rows: clean white */
.item-page .article-content table.table-hover tr:nth-child(n+3) td {
  background: #fff;
}

/* Last row: remove bottom border */
.item-page .article-content table.table-hover tr:last-child td {
  border-bottom: none;
}

/* Coach link → purple pill button */
.item-page .article-content table.table-hover a {
  display: inline-block;
  background: var(--kiss-purple);
  color: white !important;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.item-page .article-content table.table-hover a:hover {
  opacity: 0.85;
  color: white !important;
}

.item-page .article-content table.table-hover a::after {
  content: " \2192";
}

/* --------------------------------------------------------------------------
   MODULE 4 — Evidence Gallery (Score Sheet Images)
   -------------------------------------------------------------------------- */

/* Single image — centered card */
.item-page .article-content .blog-image {
  max-width: 100%;
  margin: 1.5em auto;
  display: block;
  text-align: center;
}

.item-page .article-content .blog-image img {
  border-radius: 8px;
  box-shadow: var(--kiss-card-shadow);
  width: 100%;
  height: auto;
}

.item-page .article-content .blog-image figcaption {
  font-size: 0.9em;
  color: #888;
  margin-top: 0.5em;
  font-style: italic;
}

/* Phase 2: PHP wraps consecutive score-sheet figures in .kiss-gallery */

/* Second image: tighter top margin since it follows a divider + label */
.item-page .article-content figure.blog-image ~ figure.blog-image {
  margin-top: 0.5em;
}

/* --------------------------------------------------------------------------
   MODULE 4b — Kiss Gallery (Phase 2: PHP wraps 2 consecutive figures)
   Stacked vertically for maximum readability of score sheets
   -------------------------------------------------------------------------- */
.item-page .kiss-gallery {
  margin: 1.5em 0;
}
.item-page .kiss-gallery .blog-image {
  max-width: 100%;
  margin: 0 0 1.5em 0;
}
.item-page .kiss-gallery .blog-image:last-child {
  margin-bottom: 0;
}
/* Hide section labels inside gallery — figcaption already describes each image */
.item-page .kiss-gallery .blog-section {
  display: none;
}

/* --------------------------------------------------------------------------
   MODULE 5 — Video Section
   -------------------------------------------------------------------------- */

/* Light themed jumbotron heading */
.item-page .blog-jumbotron {
  background: linear-gradient(135deg, #f3e8ff, #fce7f3);
  color: var(--kiss-charcoal);
  padding: 1.5em 2em;
  border-radius: 12px 12px 0 0;
  border-left: 4px solid var(--kiss-purple);
  margin-bottom: 0;
}

.item-page .blog-jumbotron h2 {
  color: var(--kiss-purple);
  font-size: 1.25em;
  margin: 0 0 0.5em 0;
}

.item-page .blog-jumbotron h2::before {
  content: "\25B6 ";
  color: var(--kiss-purple);
}

.item-page .blog-jumbotron p,
.item-page .blog-jumbotron li {
  color: #4a4a5a;
  font-size: 0.95em;
}

.item-page .blog-jumbotron ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.item-page .blog-jumbotron li {
  background: rgba(148,72,239,0.12);
  border: 1px solid rgba(148,72,239,0.3);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  color: var(--kiss-purple);
}

/* Video embed — premium wrapper */
.item-page .video-embed {
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(148,72,239,0.2), var(--kiss-card-shadow);
  margin-bottom: 2em;
  background: #000;
}

.item-page .video-embed iframe {
  display: block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   MODULE 6 — Bilibili Pill Button
   -------------------------------------------------------------------------- */
.item-page .article-content a[href*="bilibili.com"] {
  display: inline-block;
  background: var(--kiss-bilibili);
  color: white !important;
  padding: 0.4em 1.2em;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95em;
  margin: 0.5em 0;
  transition: opacity 0.2s;
}

.item-page .article-content a[href*="bilibili.com"]:hover {
  opacity: 0.85;
  color: white !important;
}

.item-page .article-content a[href*="bilibili.com"]::before {
  content: "\1F4FA ";
}

/* --------------------------------------------------------------------------
   MODULE 7 — HR Dividers
   -------------------------------------------------------------------------- */
.item-page .article-content hr.blog-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(148,72,239,0.3), transparent);
  margin: 2em 0;
}

/* --------------------------------------------------------------------------
   MODULE 8 — Premium 3-Card CTA Panel (Phase 2: PHP injects .kiss-cta-panel)
   -------------------------------------------------------------------------- */

/* CSS Houdini: animate conic-gradient angle (Chrome/Edge) */
@property --kiss-cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes kiss-border-spin {
  to { --kiss-cta-angle: 360deg; }
}

@keyframes kiss-card-enter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes kiss-shimmer {
  from { left: -100%; }
  to   { left: 200%; }
}

@keyframes kiss-icon-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* Outer wrapper: animated gradient border */
.item-page .kiss-cta-panel {
  margin: 2.5em 0 1em;
  padding: 2px;
  border-radius: 20px;
  background: conic-gradient(from var(--kiss-cta-angle, 0deg), #9448EF, #fb02bd, #4ba3db, #9448EF);
  animation: kiss-border-spin 4s linear infinite;
}

/* Static fallback for browsers without @property support (Firefox/Safari) */
@supports not (background: conic-gradient(from 0deg, red, red)) {
  .item-page .kiss-cta-panel {
    background: linear-gradient(135deg, #9448EF, #fb02bd, #4ba3db);
    animation: none;
  }
}

/* Glassmorphism inner panel */
.item-page .kiss-cta-panel__inner {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 2em 2em 1.75em;
}

/* Header: bilingual title */
.item-page .kiss-cta-panel__header {
  text-align: center;
  margin-bottom: 1.5em;
}

.item-page .kiss-cta-panel__title {
  font-size: 1.35em;
  font-weight: 800;
  color: var(--kiss-charcoal);
  margin: 0 0 0.25em;
  line-height: 1.4;
}

.item-page .kiss-cta-panel__subtitle {
  font-size: 0.85em;
  color: #888;
  margin: 0;
  letter-spacing: 0.3px;
}

/* 3-column card grid */
.item-page .kiss-cta-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

/* Individual card */
.item-page .kiss-cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 1.5em 1em;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  animation: kiss-card-enter 0.5s ease both;
}

/* Staggered entrance */
.item-page .kiss-cta-card:nth-child(1) { animation-delay: 0s; }
.item-page .kiss-cta-card:nth-child(2) { animation-delay: 0.1s; }
.item-page .kiss-cta-card:nth-child(3) { animation-delay: 0.2s; }

/* Hover: lift + shadow */
.item-page .kiss-cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

/* Shimmer light-sweep on hover */
.item-page .kiss-cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: none;
  pointer-events: none;
}

.item-page .kiss-cta-card:hover::after {
  animation: kiss-shimmer 0.7s ease forwards;
}

/* Icon container */
.item-page .kiss-cta-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 0.75em;
  transition: transform 0.3s ease;
}

.item-page .kiss-cta-card:hover .kiss-cta-card__icon {
  transform: scale(1.12);
}

.item-page .kiss-cta-card__icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* Label text */
.item-page .kiss-cta-card__label {
  font-size: 1em;
  font-weight: 700;
  color: var(--kiss-charcoal);
  margin-bottom: 0.3em;
  transition: color 0.3s ease;
  line-height: 1.4;
}

/* Description text */
.item-page .kiss-cta-card__desc {
  font-size: 0.82em;
  color: #888;
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* === Per-card variants === */

/* Course card — purple */
.item-page .kiss-cta-card--course .kiss-cta-card__icon {
  background: linear-gradient(135deg, #9448EF, #7b3fe4);
}
.item-page .kiss-cta-card--course:hover {
  border-color: rgba(148, 72, 239, 0.25);
}
.item-page .kiss-cta-card--course:hover .kiss-cta-card__label {
  color: #9448EF;
}

/* Trial card — pink + emphasis */
.item-page .kiss-cta-card--trial {
  background: rgba(251, 2, 189, 0.03);
}
.item-page .kiss-cta-card--trial .kiss-cta-card__icon {
  background: linear-gradient(135deg, #fb02bd, #d946a8);
  animation: kiss-icon-pulse 2.5s ease-in-out infinite;
}
.item-page .kiss-cta-card--trial:hover {
  border-color: rgba(251, 2, 189, 0.25);
}
.item-page .kiss-cta-card--trial:hover .kiss-cta-card__label {
  color: #fb02bd;
}

/* AI card — blue */
.item-page .kiss-cta-card--ai .kiss-cta-card__icon {
  background: linear-gradient(135deg, #4ba3db, #3b8ec5);
}
.item-page .kiss-cta-card--ai:hover {
  border-color: rgba(75, 163, 219, 0.25);
}
.item-page .kiss-cta-card--ai:hover .kiss-cta-card__label {
  color: #4ba3db;
}

/* --------------------------------------------------------------------------
   MODULE 9 — Narrative Typography
   -------------------------------------------------------------------------- */
.item-page .article-content p {
  line-height: 1.9;
  color: var(--kiss-body-alt, #0a0a0ade);
}

.item-page .article-content h2 {
  border-left: 4px solid var(--kiss-purple);
  padding-left: 0.75em;
  margin-top: 1.5em;
}

.item-page .article-content h3 {
  border-left: 3px solid var(--kiss-blue);
  padding-left: 0.6em;
  margin-top: 1.25em;
}

/* --------------------------------------------------------------------------
   MODULE 10 — Admin Notice (Phase 2)
   -------------------------------------------------------------------------- */
.item-page .kiss-admin-notice {
  background: var(--kiss-amber-bg);
  border-left: 4px solid var(--kiss-amber);
  padding: 1em 1.5em;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5em;
}

.item-page .kiss-admin-notice p {
  margin: 0.25em 0;
  font-size: 0.9em;
  color: #92400e;
}

/* --------------------------------------------------------------------------
   Responsive — Mobile (max-width: 767px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* CTA panel: slightly smaller on tablet */
  .item-page .kiss-cta-panel__inner { padding: 1.5em 1.25em 1.25em; }
  .item-page .kiss-cta-card { padding: 1.25em 0.75em; }
  .item-page .kiss-cta-card__icon { width: 48px; height: 48px; }
  .item-page .kiss-cta-card__icon svg { width: 24px; height: 24px; }
}

@media (max-width: 767px) {
  /* CTA panel: single-column horizontal rows */
  .item-page .kiss-cta-panel__grid {
    grid-template-columns: 1fr;
    gap: 0.75em;
  }
  .item-page .kiss-cta-panel__inner { padding: 1.25em 1em 1em; }
  .item-page .kiss-cta-panel__title { font-size: 1.15em; }
  .item-page .kiss-cta-panel__header { margin-bottom: 1em; }
  .item-page .kiss-cta-card {
    flex-direction: row;
    text-align: left;
    padding: 1em;
    gap: 0.75em;
  }
  .item-page .kiss-cta-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .item-page .kiss-cta-card__icon svg { width: 22px; height: 22px; }
  .item-page .kiss-cta-card__text { flex: 1; }
  .item-page .kiss-cta-card:hover { transform: none; }

  /* Score table: stacked rows */
  .item-page .article-content table.table-hover tr {
    display: block;
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 0;
  }

  .item-page .article-content table.table-hover td {
    display: block;
    width: 100%;
  }

  .item-page .article-content table.table-hover td:first-child {
    padding-bottom: 4px;
    font-size: 0.85em;
    color: #888;
    border-bottom: none;
  }

  .item-page .article-content table.table-hover td:last-child {
    padding-top: 4px;
    font-size: 1em;
  }

  /* Images: full width on mobile */
  .item-page .article-content figure.blog-image {
    max-width: 100%;
  }

  /* Jumbotron: tighter padding */
  .item-page .blog-jumbotron {
    padding: 1em 1.25em;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Small phones (max-width: 400px)
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  .item-page .article-content table.table-hover td {
    padding: 8px 10px;
  }

  .item-page .blog-jumbotron {
    padding: 0.75em 1em;
  }

  /* CTA panel: smallest screens */
  .item-page .kiss-cta-panel__inner { padding: 1em 0.75em 0.75em; }
  .item-page .kiss-cta-panel__title { font-size: 1.05em; }
  .item-page .kiss-cta-card__icon { width: 40px; height: 40px; border-radius: 10px; }
  .item-page .kiss-cta-card__icon svg { width: 20px; height: 20px; }
  .item-page .kiss-cta-card__label { font-size: 0.92em; }
  .item-page .kiss-cta-card__desc { font-size: 0.78em; }
}
/* ==========================================================================
   K.I.S.S. IELTS — Success Stories Listing Page Cards
   Appended to custom.css (loaded last, highest cascade priority)
   All selectors scoped under #t3-content div.blog for specificity
   ========================================================================== */

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes kissCardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes kissGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* --------------------------------------------------------------------------
   Page container — soft gradient background
   -------------------------------------------------------------------------- */
#t3-content div.blog {
  background: linear-gradient(180deg, #f5f0ff 0%, #fafbff 50%, #f8f9fc 100%) !important;
  padding: 36px 0 20px !important;
}

/* --------------------------------------------------------------------------
   Page header — purple hero banner
   -------------------------------------------------------------------------- */
#t3-content div.blog > .page-header {
  text-align: center !important;
  margin: 0 0 36px !important;
  padding: 32px 20px 28px !important;
  background: linear-gradient(135deg, #9448EF 0%, #7b3fe4 40%, #4ba3db 100%) !important;
  background-size: 200% 200% !important;
  animation: kissGradient 8s ease infinite;
  border-radius: 18px !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(148, 72, 239, 0.22) !important;
  position: relative;
  overflow: hidden;
}

#t3-content div.blog > .page-header h2 {
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  margin: 0 !important;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   GRID RESET — Override Bootstrap .row + .col-md-6 float layout
   -------------------------------------------------------------------------- */

/* Kill .row clearfix pseudo-elements (they break CSS Grid) */
#t3-content div.blog div.items-row.row::before,
#t3-content div.blog div.items-row.row::after {
  display: none !important;
  content: none !important;
}

/* Force CSS Grid on .items-row */
#t3-content div.blog div.items-row {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  margin: 0 0 24px 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Kill Bootstrap .col-md-6 float and fixed width */
#t3-content div.blog div.items-row > div {
  float: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  min-height: 0 !important;
  animation: kissCardIn 0.5s ease both;
}

/* Stagger entrance animation per card */
#t3-content div.blog div.items-row > div:nth-child(1) { animation-delay: 0.05s; }
#t3-content div.blog div.items-row > div:nth-child(2) { animation-delay: 0.12s; }

/* KEY FIX: .item must fill its grid cell (was 367px in 598px cell) */
#t3-content div.blog div.items-row div.item {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  border-radius: 0 !important;
  min-height: 0 !important;
}

/* .system-unpublished wrapper — kill its styling */
#t3-content div.blog .system-unpublished {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  width: 100% !important;
}

/* --------------------------------------------------------------------------
   Card container — clean white card with rounded corners
   -------------------------------------------------------------------------- */
#t3-content div.blog article.article-wrap {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  background: #fff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  overflow: hidden !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
  position: relative !important;
}

#t3-content div.blog article.article-wrap:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(148, 72, 239, 0.13), 0 4px 10px rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(148, 72, 239, 0.12) !important;
}

/* Gradient accent bar — visible on hover */
#t3-content div.blog article.article-wrap::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  width: auto !important;
  background: linear-gradient(90deg, #9448EF, #fb02bd, #4ba3db) !important;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
  display: block !important;
  clear: none !important;
}

#t3-content div.blog article.article-wrap:hover::before {
  opacity: 1;
}

/* .article-inner flex column */
#t3-content div.blog .article-inner {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

/* --------------------------------------------------------------------------
   Featured Image — fixed aspect ratio for uniform card sizing
   -------------------------------------------------------------------------- */

/* Kill T3 .image-wrap clearfix and margin */
#t3-content div.blog div.image-wrap::before {
  display: none !important;
}

#t3-content div.blog div.image-wrap {
  position: relative !important;
  overflow: hidden !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #ede5ff 0%, #e8f0ff 100%) !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 0 !important;
  border-bottom: none !important;
}

/* Gradient overlay on image for depth */
#t3-content div.blog div.image-wrap::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.06) 100%) !important;
  pointer-events: none !important;
  z-index: 1;
  display: block !important;
  clear: none !important;
  width: auto !important;
  height: auto !important;
}

/* Image — fill the aspect-ratio box */
#t3-content div.blog div.image-wrap .pull-left.item-image {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

#t3-content div.blog div.image-wrap .pull-left.item-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 0 !important;
}

#t3-content div.blog div.image-wrap .pull-left.item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  transition: transform 0.45s ease;
}

#t3-content div.blog article.article-wrap:hover div.image-wrap img {
  transform: scale(1.05);
}

/* Category badge — override T3 green/bottom with purple/top */
#t3-content div.blog div.image-wrap .category-name {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  bottom: auto !important;
  background: rgba(148, 72, 239, 0.9) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  box-shadow: 0 2px 8px rgba(148, 72, 239, 0.3) !important;
  z-index: 2 !important;
  line-height: 1.5 !important;
  height: auto !important;
  display: inline-block !important;
}

#t3-content div.blog div.image-wrap .category-name a,
#t3-content div.blog div.image-wrap .category-name a span {
  color: #fff !important;
  text-decoration: none !important;
  padding: 0 !important;
  height: auto !important;
  line-height: inherit !important;
  font-size: inherit !important;
}

/* --------------------------------------------------------------------------
   Card body — title + intro text
   -------------------------------------------------------------------------- */

/* Override T3 .intro-wrap padding: 36px */
#t3-content div.blog div.intro-wrap {
  padding: 18px 20px 0 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Title */
#t3-content div.blog .article-header {
  margin-bottom: 6px !important;
}

#t3-content div.blog .article-header .article-title {
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin: 0 0 6px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

#t3-content div.blog .article-header .article-title a {
  color: #1a1a2e !important;
  text-decoration: none !important;
  transition: color 0.25s ease;
}

#t3-content div.blog .article-header .article-title a:hover {
  color: #9448EF !important;
}

/* h2 fallback */
#t3-content div.blog div.intro-wrap h2 {
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin: 0 0 6px !important;
}

#t3-content div.blog div.intro-wrap h2 a {
  color: #1a1a2e !important;
  text-decoration: none !important;
}

#t3-content div.blog div.intro-wrap h2 a:hover {
  color: #9448EF !important;
}

/* --------------------------------------------------------------------------
   Intro content — clip to 3 lines, hide all complex blocks
   -------------------------------------------------------------------------- */
#t3-content div.blog .article-intro {
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: #666 !important;
  max-height: 66px !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
  flex: 1;
}

/* Fade-out gradient */
#t3-content div.blog .article-intro::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 26px !important;
  background: linear-gradient(transparent, #fff) !important;
  pointer-events: none !important;
}

/* Normalize all inner text */
#t3-content div.blog .article-intro p,
#t3-content div.blog .article-intro span,
#t3-content div.blog .article-intro div,
#t3-content div.blog .article-intro td,
#t3-content div.blog .article-intro th,
#t3-content div.blog .article-intro li {
  font-size: 13px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #666 !important;
  font-weight: 400 !important;
}

/* Hide all complex/rich blocks in card preview */
#t3-content div.blog .article-intro table,
#t3-content div.blog .article-intro .blog-columns,
#t3-content div.blog .article-intro .blog-section,
#t3-content div.blog .article-intro .blog-jumbotron,
#t3-content div.blog .article-intro .video-embed,
#t3-content div.blog .article-intro .blog-image,
#t3-content div.blog .article-intro .blog-cta,
#t3-content div.blog .article-intro figure,
#t3-content div.blog .article-intro img,
#t3-content div.blog .article-intro iframe,
#t3-content div.blog .article-intro hr,
#t3-content div.blog .article-intro .blog-divider,
#t3-content div.blog .article-intro details,
#t3-content div.blog .article-intro ul,
#t3-content div.blog .article-intro ol,
#t3-content div.blog .article-intro .kiss-highlight-1,
#t3-content div.blog .article-intro .kiss-highlight-2 {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Read More button — pink pill
   -------------------------------------------------------------------------- */
#t3-content div.blog section.readmore {
  padding: 14px 20px 18px !important;
  margin-top: auto !important;
}

#t3-content div.blog section.readmore a.link-readmore {
  display: inline-block !important;
  background: linear-gradient(135deg, #fb02bd 0%, #d946a8 100%) !important;
  color: #fff !important;
  font-family: "Microsoft YaHei", sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  letter-spacing: 0.3px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 3px 10px rgba(251, 2, 189, 0.2) !important;
}

#t3-content div.blog section.readmore a.link-readmore:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(251, 2, 189, 0.3) !important;
}

/* Replace Chinese readmore text with short label */
#t3-content div.blog section.readmore a.link-readmore span {
  display: none !important;
}

#t3-content div.blog section.readmore a.link-readmore::after {
  content: "Continue reading \2192" !important;
}

/* --------------------------------------------------------------------------
   Card footer — date
   -------------------------------------------------------------------------- */

/* Override T3 .article-wrap .article-footer { padding: 24px 36px; border-top: 1px solid #d8e1e4 } */
#t3-content div.blog article.article-wrap .article-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 10px 20px 14px !important;
  margin: 0 !important;
}

#t3-content div.blog .article-footer .article-info {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

#t3-content div.blog .article-footer time {
  font-size: 12px !important;
  color: #b0b0b0 !important;
  font-weight: 400 !important;
}

#t3-content div.blog .article-footer .article-info-term {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
#t3-content div.blog .pagination li.active span {
  background: #9448EF !important;
  border-color: #9448EF !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Lone last card — same width as paired cards (span 1 column, not full width)
   -------------------------------------------------------------------------- */
#t3-content div.blog div.items-row > div:only-child {
  width: calc(50% - 12px) !important;
  max-width: calc(50% - 12px) !important;
  flex: none !important;
}

/* --------------------------------------------------------------------------
   Responsive — tablet (768–991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) and (min-width: 768px) {
  #t3-content div.blog div.items-row {
    gap: 18px !important;
  }

  #t3-content div.blog div.intro-wrap {
    padding: 14px 16px 0 !important;
  }

  #t3-content div.blog .article-header .article-title,
  #t3-content div.blog div.intro-wrap h2 {
    font-size: 14px !important;
  }

  #t3-content div.blog section.readmore {
    padding: 12px 16px 14px !important;
  }

  #t3-content div.blog article.article-wrap .article-footer {
    padding: 8px 16px 12px !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive — mobile (≤767px) single column
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  #t3-content div.blog {
    padding: 16px 0 10px !important;
  }

  #t3-content div.blog > .page-header {
    margin: 0 10px 20px !important;
    padding: 22px 16px !important;
    border-radius: 14px !important;
  }

  #t3-content div.blog > .page-header h2 {
    font-size: 20px !important;
    letter-spacing: 1px !important;
  }

  #t3-content div.blog div.items-row {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 10px !important;
  }

  #t3-content div.blog div.image-wrap {
    aspect-ratio: 16 / 9 !important;
  }

  #t3-content div.blog .article-header .article-title,
  #t3-content div.blog div.intro-wrap h2 {
    font-size: 15px !important;
  }

  #t3-content div.blog div.intro-wrap {
    padding: 16px 16px 0 !important;
  }

  #t3-content div.blog section.readmore {
    padding: 12px 16px 16px !important;
  }

  #t3-content div.blog article.article-wrap .article-footer {
    padding: 8px 16px 12px !important;
  }

  /* Disable hover effects on touch */
  #t3-content div.blog article.article-wrap:hover {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive — small mobile (≤400px)
   -------------------------------------------------------------------------- */
@media (max-width: 400px) {
  #t3-content div.blog div.items-row {
    padding: 0 6px !important;
    gap: 14px !important;
  }

  #t3-content div.blog .article-header .article-title,
  #t3-content div.blog div.intro-wrap h2 {
    font-size: 14.5px !important;
  }

  #t3-content div.blog .article-intro {
    font-size: 12.5px !important;
  }
}
/* ==========================================================================
   K.I.S.S. IELTS — Course Introduction Landing Page Styles
   All selectors scoped under .kiss-landing to prevent conflicts
   ========================================================================== */

/* --------------------------------------------------------------------------
   MODULE 1 — Landing Container & Base Typography
   -------------------------------------------------------------------------- */
.kiss-landing {
  background: radial-gradient(ellipse at 50% 0%, rgba(148,72,239,0.04) 0%, transparent 70%);
  line-height: 2.0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px; /* space for sticky CTA bar */
}

/* --------------------------------------------------------------------------
   MODULE 2 — Section Headers (.kiss-section-header)
   PHP transforms <header><span class="kiss-highlight-1"> into these
   -------------------------------------------------------------------------- */
.kiss-landing .kiss-section-header {
  text-align: center;
  margin: 2.5em 0 1.5em;
  animation: kiss-card-enter 0.6s ease both;
}

.kiss-landing .kiss-section-header__title {
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.4;
  background: linear-gradient(135deg, #9448EF, #4ba3db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin: 0;
  padding: 0 0.25em;
  /* Override article-template.css h2 border-left */
  border-left: none;
  padding-left: 0.25em;
}

/* Decorative underline */
.kiss-landing .kiss-section-header__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #9448EF, #fb02bd);
  margin: 0.5em auto 0;
  border-radius: 2px;
}

/* Fallback for browsers without background-clip text support */
@supports not (-webkit-background-clip: text) {
  .kiss-landing .kiss-section-header__title {
    color: #9448EF;
  }
}

/* Override article-template.css h2/h3 border-left for landing pages
   Must match specificity of .item-page .article-content h2 (0,2,1) */
.item-page .kiss-landing h2,
.item-page .kiss-landing h3 {
  border-left: none !important;
  padding-left: 0;
}

/* --------------------------------------------------------------------------
   MODULE 3 — Hero Video (.kiss-hero-video)
   First video embed on the page gets premium treatment
   -------------------------------------------------------------------------- */
.kiss-landing .kiss-hero-video {
  max-width: 720px;
  margin: 1.5em auto 2em;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 3px rgba(148,72,239,0.3),
    0 8px 40px rgba(148,72,239,0.2);
}

.kiss-landing .kiss-hero-video > div {
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   MODULE 4 — CTA Buttons (.kiss-landing .blog-cta)
   -------------------------------------------------------------------------- */
.kiss-landing .blog-cta {
  display: inline-block;
  background: linear-gradient(135deg, #fb02bd, #9448EF) !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(251,2,189,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer;
}

.kiss-landing .blog-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(251,2,189,0.45);
  background: linear-gradient(135deg, #fb02bd, #9448EF) !important;
}

/* Pulse animation on first CTA */
@keyframes kiss-cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(251,2,189,0.35); }
  50% { box-shadow: 0 4px 30px rgba(251,2,189,0.55); }
}

.kiss-landing .blog-cta:first-of-type {
  animation: kiss-cta-pulse 2.5s ease-in-out infinite;
}

.kiss-landing .blog-cta:first-of-type:hover {
  animation: none;
}

/* --------------------------------------------------------------------------
   MODULE 5 — Images (.kiss-landing .blog-image)
   -------------------------------------------------------------------------- */
.kiss-landing .blog-image {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kiss-landing .blog-image img {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kiss-landing .blog-image:hover img {
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* --------------------------------------------------------------------------
   MODULE 6 — Pricing Tables
   Only targets tables with <thead> (proper pricing tables).
   Tables with inline styles (content/study tables) are left untouched.
   -------------------------------------------------------------------------- */

/* Card wrapper — only tables that have thead get premium treatment */
.kiss-landing table:has(thead) {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  margin: 1.5em 0;
}

/* Header row: purple gradient — only in thead */
.kiss-landing table thead th {
  background: linear-gradient(135deg, #9448EF, #7b3fe4) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: none;
  font-size: 1.05em;
}

/* Body rows — only in tables with thead */
.kiss-landing table:has(thead) tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0ecf7;
  vertical-align: middle;
}

/* Alternating row colors — only in tables with thead */
.kiss-landing table:has(thead) tbody tr:nth-child(odd) td {
  background: #fff;
}

.kiss-landing table:has(thead) tbody tr:nth-child(even) td {
  background: #f8f5ff;
}

/* Last row: remove bottom border */
.kiss-landing table:has(thead) tbody tr:last-child td {
  border-bottom: none;
}

/* tfoot styling for total/deal rows */
.kiss-landing table:has(thead) tfoot td {
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid #f0ecf7;
}

/* --------------------------------------------------------------------------
   MODULE 7 — Testimonial Columns (.kiss-testimonial)
   4-column blog-columns used for student quotes in article 216.
   Each "testimonial" spans multiple columns (col1=quote mark, col2=photo,
   col3=text, col4=empty), NOT one testimonial per column.
   Keep the grid but add subtle card styling without per-cell quote marks.
   -------------------------------------------------------------------------- */
.kiss-landing .kiss-testimonial {
  gap: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.25em;
  margin: 1.5em 0;
}

/* Links inside testimonials: small purple pills */
.kiss-landing .kiss-testimonial a {
  display: inline-block;
  background: rgba(148,72,239,0.1);
  color: #9448EF !important;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: 0.5em;
}

.kiss-landing .kiss-testimonial a:hover {
  background: rgba(148,72,239,0.2);
}

/* --------------------------------------------------------------------------
   MODULE 8 — FAQ Accordion (.kiss-landing details)
   -------------------------------------------------------------------------- */
.kiss-landing details {
  border: 1px solid rgba(148,72,239,0.15);
  border-left: 3px solid #9448EF;
  border-radius: 12px;
  padding: 0;
  margin: 0.75em 0;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.kiss-landing details:hover {
  box-shadow: 0 4px 16px rgba(148,72,239,0.1);
}

.kiss-landing details summary {
  font-weight: 700;
  color: #9448EF;
  padding: 1em 1.25em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.kiss-landing details summary::-webkit-details-marker {
  display: none;
}

.kiss-landing details summary::after {
  content: "\25B8";
  font-size: 1.1em;
  color: #9448EF;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 0.5em;
}

.kiss-landing details[open] summary::after {
  transform: rotate(90deg);
}

.kiss-landing details[open] summary {
  border-bottom: 1px solid rgba(148,72,239,0.1);
  background: rgba(148,72,239,0.03);
}

.kiss-landing details > *:not(summary) {
  padding: 0 1.25em;
}

.kiss-landing details > :last-child {
  padding-bottom: 1em;
}

/* --------------------------------------------------------------------------
   MODULE 9 — Section Dividers
   Subtle gradient — not too different from original
   -------------------------------------------------------------------------- */
.kiss-landing .blog-divider,
.kiss-landing hr,
.item-page .kiss-landing hr.blog-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent) !important;
  margin: 2.5em 0;
}

/* --------------------------------------------------------------------------
   MODULE 10 — Blog Columns
   -------------------------------------------------------------------------- */
.kiss-landing .blog-columns {
  gap: 2em;
}

.kiss-landing .blog-columns > div {
  min-height: 0;
}

.kiss-landing .blog-columns .blog-image img {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* 4-column grid — explicit */
.kiss-landing .blog-columns[data-cols="4"] {
  grid-template-columns: repeat(4, 1fr);
}

/* --------------------------------------------------------------------------
   MODULE 11 — Sticky CTA Bar (.kiss-sticky-cta)
   -------------------------------------------------------------------------- */
@keyframes kiss-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.kiss-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #9448EF, #fb02bd, #4ba3db) 1;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  animation: kiss-slide-up 0.5s ease 0.5s both;
}

.kiss-sticky-cta__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kiss-sticky-cta__text {
  font-family: var(--kiss-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--kiss-charcoal, #1a1a2e);
}

.kiss-sticky-cta__btn {
  display: inline-block;
  background: linear-gradient(135deg, #9448EF, #fb02bd);
  color: #fff !important;
  font-family: var(--kiss-font);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(148,72,239,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kiss-sticky-cta__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(148,72,239,0.4);
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   MODULE 13 — Info Headers (.kiss-info-header)
   Used inside related-courses and info-card blocks
   -------------------------------------------------------------------------- */
.kiss-landing .kiss-info-header {
  position: relative;
  padding-left: 16px;
  margin-bottom: 1em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.kiss-landing .kiss-info-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #9448EF, #fb02bd);
}

.kiss-landing .kiss-info-header span {
  font-size: 1.1em;
  font-weight: 700;
  color: #9448EF;
}

/* --------------------------------------------------------------------------
   MODULE 14 — Related Courses (.kiss-related-courses)
   -------------------------------------------------------------------------- */
.kiss-landing .kiss-related-courses {
  background: #fff;
  border-radius: 16px;
  padding: 1.5em;
  margin: 2em 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  border: 1px solid rgba(148,72,239,0.1);
}

.kiss-landing .kiss-related-courses p {
  margin: 0;
}

/* Empty spacer paragraphs (br-only) between header and links */
.kiss-landing .kiss-related-courses > p:empty,
.kiss-landing .kiss-related-courses > p:has(> br:only-child) {
  display: none;
}

.kiss-landing .kiss-related-courses p a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 12px 20px;
  margin: 4px 0;
  border-radius: 10px;
  border-left: 3px solid transparent;
  color: #333 !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.25s ease;
}

.kiss-landing .kiss-related-courses p a:hover {
  background: rgba(148,72,239,0.06);
  border-left-color: #9448EF;
  color: #9448EF !important;
  transform: translateX(4px);
}

.kiss-landing .kiss-related-courses p a::after {
  content: "→";
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.5em;
}

.kiss-landing .kiss-related-courses p a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   MODULE 15 — Info Cards (.kiss-info-card)
   For requirements (上课条件) and notice (注意) sections
   -------------------------------------------------------------------------- */
.kiss-landing .kiss-info-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5em;
  margin: 2em 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

/* Top accent bar */
.kiss-landing .kiss-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9448EF, #fb02bd);
}

.kiss-landing .kiss-info-card p {
  margin: 0.3em 0;
  line-height: 1.75;
}

.kiss-landing .kiss-info-card p:first-of-type {
  margin-top: 0;
}

.kiss-landing .kiss-info-card p:last-of-type {
  margin-bottom: 0;
}

/* Requirements variant — blue accent */
.kiss-landing .kiss-info-card--requirements::before {
  background: linear-gradient(90deg, #4ba3db, #9448EF);
}

.kiss-landing .kiss-info-card--requirements .kiss-info-header span {
  color: #4ba3db;
}

.kiss-landing .kiss-info-card--requirements .kiss-info-header::before {
  background: linear-gradient(180deg, #4ba3db, #9448EF);
}

/* Notice variant — amber accent */
.kiss-landing .kiss-info-card--notice::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.kiss-landing .kiss-info-card--notice .kiss-info-header span {
  color: #d97706;
}

.kiss-landing .kiss-info-card--notice .kiss-info-header::before {
  background: linear-gradient(180deg, #f59e0b, #ef4444);
}

/* Highlight refund/extension keywords in notice */
.kiss-landing .kiss-info-card--notice strong {
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   MODULE 16 — Bold Callouts (.kiss-callout)
   Standalone bold paragraphs between images
   -------------------------------------------------------------------------- */
.kiss-landing .kiss-callout {
  text-align: center;
  margin: 1.5em 0;
}

.kiss-landing .kiss-callout strong {
  font-size: 1.15em;
  font-weight: 800;
  color: #9448EF;
}

/* --------------------------------------------------------------------------
   MODULE 17 — Video Wrapper (.kiss-video-wrap)
   Consistent sizing for non-hero Cloudflare Stream videos
   -------------------------------------------------------------------------- */
.kiss-landing .kiss-video-wrap {
  max-width: 720px;
  margin: 1.5em auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* --------------------------------------------------------------------------
   MODULE 18 — Adjacent Spacing
   Reduce HR margins between info cards (cards provide own visual separation)
   -------------------------------------------------------------------------- */
.kiss-landing .kiss-info-card + hr,
.kiss-landing .kiss-info-card + .blog-divider,
.kiss-landing hr + .kiss-info-card,
.kiss-landing .kiss-related-courses + hr,
.kiss-landing hr + .kiss-related-courses {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.kiss-landing .kiss-info-card + .kiss-info-card,
.kiss-landing .kiss-info-card + .kiss-related-courses,
.kiss-landing .kiss-related-courses + .kiss-info-card {
  margin-top: 1em;
}

/* --------------------------------------------------------------------------
   MODULE 19 — Visual Enhancement Pass (Phase 4)
   Merges best of AI agent design + our refinements.
   Overrides base modules with richer gradients, animations, and depth.
   -------------------------------------------------------------------------- */

/* Card entrance animation */
@keyframes kiss-card-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Hero Video: full width, flush with banner, inset glow --- */
.kiss-landing .kiss-hero-video {
  max-width: 100%;
  width: 100%;
  margin: 0 0 2em;
  border-radius: 0 0 20px 20px;
  box-shadow:
    inset 0 0 0 4px rgba(148,72,239,0.4),
    0 12px 60px rgba(148,72,239,0.25);
  overflow: hidden;
}

/* Ensure nested video-wrap fills hero without extra margins/radius */
.kiss-landing .kiss-hero-video .kiss-video-wrap {
  max-width: 100%;
  width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.kiss-landing .kiss-hero-video > div {
  border-radius: 0;
}

/* --- Callouts: gradient banner with shimmer --- */
.kiss-landing .kiss-callout {
  position: relative;
  text-align: center;
  margin: 2em 0;
  padding: 36px 48px;
  background: linear-gradient(135deg, #9448EF 0%, #c044d4 40%, #fb02bd 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(148,72,239,0.35), 0 4px 12px rgba(251,2,189,0.2);
  border: none;
}

/* Shimmer overlays */
.kiss-landing .kiss-callout::before {
  content: "";
  position: absolute;
  top: -40%; left: -15%;
  width: 50%; height: 200%;
  background: rgba(255,255,255,0.07);
  transform: rotate(15deg);
  pointer-events: none;
}

.kiss-landing .kiss-callout::after {
  content: "";
  position: absolute;
  bottom: -30%; right: -10%;
  width: 40%; height: 150%;
  background: rgba(255,255,255,0.05);
  transform: rotate(-10deg);
  pointer-events: none;
}

/* Both the <p> and inner <strong> must be white */
.kiss-landing p.kiss-callout,
.kiss-landing .kiss-callout strong {
  font-size: 1.5em;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
}

/* --- Related Courses: richer card with rainbow top bar --- */
.kiss-landing .kiss-related-courses {
  background: linear-gradient(145deg, #fff 0%, #faf7ff 100%);
  border-radius: 20px;
  padding: 1.75em 2em;
  box-shadow: 0 6px 28px rgba(148,72,239,0.13), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid rgba(148,72,239,0.12);
  position: relative;
  overflow: hidden;
  animation: kiss-card-enter 0.5s ease both;
}

/* Rainbow top accent bar */
.kiss-landing .kiss-related-courses::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9448EF, #fb02bd, #4ba3db);
  border-radius: 20px 20px 0 0;
}

.kiss-landing .kiss-related-courses p a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 14px 24px;
  margin: 6px 0;
  border-radius: 12px;
  border-left: 3px solid transparent;
  background: rgba(148,72,239,0.04);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: #333;
}

.kiss-landing .kiss-related-courses p a:hover {
  background: linear-gradient(135deg, rgba(148,72,239,0.1) 0%, rgba(75,163,219,0.06) 100%);
  border-left-color: #9448EF;
  color: #7a00d4 !important;
  transform: translateX(6px);
}

/* --- Info Cards: polished with colored gradient backgrounds --- */
.kiss-landing .kiss-info-card {
  border-radius: 20px;
  padding: 2em;
  position: relative;
  overflow: hidden;
  animation: kiss-card-enter 0.5s ease both;
}

/* Requirements variant: blue gradient bg + accent bar */
.kiss-landing .kiss-info-card--requirements {
  background: linear-gradient(145deg, #f0f7ff 0%, #e8f4ff 100%);
  border: 1px solid rgba(75,163,219,0.2);
  box-shadow: 0 4px 20px rgba(75,163,219,0.12);
}

.kiss-landing .kiss-info-card--requirements::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4ba3db, #9448EF);
  border-radius: 20px 20px 0 0;
}

.kiss-landing .kiss-info-card--requirements .kiss-info-header span {
  color: #1a6fa8;
}

/* Notice variant: amber gradient bg + accent bar */
.kiss-landing .kiss-info-card--notice {
  background: linear-gradient(145deg, #fffbf0 0%, #fff8e7 100%);
  border: 1px solid rgba(245,158,11,0.25);
  box-shadow: 0 4px 20px rgba(245,158,11,0.1);
}

.kiss-landing .kiss-info-card--notice::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #dc2626);
  border-radius: 20px 20px 0 0;
}

.kiss-landing .kiss-info-card--notice .kiss-info-header span {
  color: #b45309;
}

/* Info header: bolder */
.kiss-landing .kiss-info-header span {
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* --- Video Wraps (non-hero): full width + deep shadow --- */
.kiss-landing .kiss-video-wrap {
  max-width: 100%;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* --- Dividers: purple-pink gradient, tighter spacing --- */
.kiss-landing .blog-divider,
.kiss-landing hr,
.item-page .kiss-landing hr.blog-divider {
  background: linear-gradient(90deg, transparent, rgba(148,72,239,0.2), rgba(251,2,189,0.15), transparent) !important;
  margin: 1.5em 0;
}

/* --- Sticky CTA: dark branded gradient with glow --- */
.kiss-sticky-cta {
  background: linear-gradient(90deg, rgba(15,15,25,0.97), rgba(40,15,65,0.97));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-image: none;
  border-top: 1px solid rgba(148,72,239,0.3);
}

.kiss-sticky-cta__text {
  color: rgba(255,255,255,0.9);
}

.kiss-sticky-cta__btn {
  box-shadow: 0 4px 16px rgba(148,72,239,0.4);
}

.kiss-sticky-cta__btn:hover {
  box-shadow: 0 6px 24px rgba(148,72,239,0.55), 0 0 40px rgba(251,2,189,0.15);
}

/* --- Section Headers: deeper gradient --- */
.kiss-landing .kiss-section-header {
  animation: kiss-card-enter 0.6s ease both;
}

.kiss-landing .kiss-section-header__title {
  background: linear-gradient(135deg, #9448EF 0%, #c044d4 40%, #4ba3db 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* --- Images: subtle lift on hover --- */
.kiss-landing .blog-image {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.kiss-landing .blog-image:hover {
  transform: translateY(-2px);
}

.kiss-landing .blog-image:hover img {
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

/* --------------------------------------------------------------------------
   MODULE 20 — Dual Video Embed (.kiss-video-dual)
   Tabbed YouTube/Bilibili player replacing plain text links
   -------------------------------------------------------------------------- */
.item-page .kiss-video-dual {
  margin: 2em 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 36px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  background: #1a1a2e;
}

/* Tab bar */
.item-page .kiss-video-dual__tabs {
  display: flex;
  background: linear-gradient(90deg, #1a1a2e, #2d1b4e);
  padding: 0;
}

.item-page .kiss-video-dual__tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: var(--kiss-font, "Microsoft YaHei", sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
  position: relative;
  letter-spacing: 0.02em;
}

.item-page .kiss-video-dual__tab:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
}

/* Active tab: gradient underline */
.item-page .kiss-video-dual__tab--active {
  color: #fff;
}

.item-page .kiss-video-dual__tab--active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 3px;
  background: linear-gradient(90deg, #9448EF, #fb02bd);
  border-radius: 3px 3px 0 0;
}

/* Panels */
.item-page .kiss-video-dual__panel {
  display: none;
}

.item-page .kiss-video-dual__panel--active {
  display: block;
}

/* ==========================================================================
   MODULE 21 — Hook Box (.kiss-hook-box)
   Pre-video value-prop / benefit bullets on landing pages
   ========================================================================== */
.kiss-landing .kiss-hook-box {
  position: relative;
  background: linear-gradient(135deg, rgba(75,163,219,0.07) 0%, rgba(148,72,239,0.09) 100%);
  border: 1px solid rgba(148,72,239,0.18);
  border-left: 4px solid #9448EF;
  border-radius: 16px;
  padding: 1.4em 1.75em 1.6em;
  margin: 1.25em 0 2em;
  overflow: hidden;
  animation: kiss-card-enter 0.5s ease both;
}

/* Subtle radial glow in top-right corner */
.kiss-landing .kiss-hook-box::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(148,72,239,0.12), transparent 70%);
  pointer-events: none;
}

/* Intro / prompt line */
.kiss-landing .kiss-hook-intro {
  font-size: 1.05em;
  font-weight: 700;
  color: #9448EF;
  margin: 0 0 0.9em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid rgba(148,72,239,0.14);
  line-height: 1.5;
}

/* Bullet list */
.kiss-landing .kiss-hook-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual bullet */
.kiss-landing .kiss-hook-item {
  position: relative;
  padding: 0.45em 0 0.45em 2.2em;
  color: #393939;
  font-size: 1.0em;
  line-height: 1.7;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-family: var(--kiss-font);
}

.kiss-landing .kiss-hook-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Checkmark icon */
.kiss-landing .kiss-hook-item::before {
  content: "\2705";
  position: absolute;
  left: 0;
  top: 0.45em;
  font-size: 0.9em;
  line-height: 1.7;
}

/* Hook box mobile */
@media (max-width: 640px) {
  .kiss-landing .kiss-hook-box {
    padding: 1.1em 1.25em 1.3em;
  }
  .kiss-landing .kiss-hook-item {
    font-size: 0.95em;
  }
}

/* --------------------------------------------------------------------------
   MODULE 12 — Responsive Rules
   -------------------------------------------------------------------------- */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .kiss-landing .kiss-section-header__title {
    font-size: 1.3em;
  }

  .kiss-landing .blog-cta {
    padding: 12px 26px !important;
    font-size: 16px !important;
  }

  .kiss-landing .kiss-testimonial {
    grid-template-columns: repeat(2, 1fr);
  }

  .kiss-landing .blog-columns[data-cols="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .kiss-landing {
    padding-bottom: 70px;
  }

  .kiss-landing .kiss-section-header__title {
    font-size: 1.15em;
  }

  .kiss-landing .kiss-section-header__title::after {
    width: 40px;
  }

  .kiss-landing .blog-image img {
    border-radius: 8px;
  }

  /* Tables: horizontal scroll */
  .kiss-landing table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .kiss-landing .kiss-testimonial,
  .kiss-landing .blog-columns[data-cols="4"] {
    grid-template-columns: 1fr;
  }

  .kiss-landing .blog-columns {
    grid-template-columns: 1fr !important;
  }

  /* Sticky CTA: compact — text hidden, only button */
  .kiss-sticky-cta__text {
    display: none;
  }

  .kiss-sticky-cta__inner {
    justify-content: center;
    padding: 10px 16px;
  }

  .kiss-sticky-cta__btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  /* Disable hover transforms on touch */
  .kiss-landing .blog-image:hover img,
  .kiss-landing .kiss-testimonial > div:hover,
  .kiss-landing .blog-cta:hover {
    transform: none;
  }

  /* Phase 3b/4: cards + callouts + video */
  .kiss-landing .kiss-related-courses,
  .kiss-landing .kiss-info-card {
    padding: 1.25em;
    border-radius: 14px;
  }

  .kiss-landing .kiss-callout {
    padding: 20px 24px;
    border-radius: 12px;
    margin: 1.5em 0;
  }

  .item-page .kiss-video-dual {
    border-radius: 14px;
  }

  .item-page .kiss-video-dual__tab {
    font-size: 14px;
    padding: 10px 16px;
  }

  .kiss-landing .kiss-callout strong {
    font-size: 1.1em;
  }

  .kiss-landing .kiss-hero-video {
    border-radius: 0 0 14px 14px;
  }

  .kiss-landing .kiss-video-wrap {
    border-radius: 10px;
  }

  /* No hover animations on touch */
  .kiss-landing .blog-image:hover {
    transform: none;
  }
}

/* Small mobile (max-width: 400px) */
@media (max-width: 400px) {
  .kiss-landing .kiss-section-header {
    margin: 1.5em 0 1em;
  }

  .kiss-landing .kiss-section-header__title {
    font-size: 1.05em;
  }

  .kiss-sticky-cta__inner {
    padding: 8px 12px;
  }

  .kiss-sticky-cta__btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .kiss-landing table thead th,
  .kiss-landing table tr:first-child th,
  .kiss-landing table tr:first-child td {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .kiss-landing table td {
    padding: 10px 12px;
  }

  /* Phase 3b/4: tighter cards on small screens */
  .kiss-landing .kiss-related-courses,
  .kiss-landing .kiss-info-card {
    padding: 1em;
    border-radius: 10px;
  }

  .kiss-landing .kiss-related-courses p a {
    padding: 10px 12px 10px 16px;
  }

  .kiss-landing .kiss-callout {
    padding: 16px 20px;
    border-radius: 10px;
  }

  .kiss-landing .kiss-callout strong {
    font-size: 1em;
  }
}

/* ==========================================================================
   K.I.S.S. IELTS — Success Stories Navigator (Phase 5)
   ========================================================================== */

/* --------------------------------------------------------------------------
   MODULE 20 — Top Navigation Bar (.kiss-story-nav)
   Taller green prev/next + pink-purple All Stories center
   -------------------------------------------------------------------------- */
.kiss-story-nav-wrap {
  margin: 0.75em 0 1.75em;
  width: 100%;
}

.kiss-story-nav-wrap__label {
  text-align: center;
  font-family: var(--kiss-font);
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.kiss-story-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px;
  background: #fff;
  border-radius: 22px;
  border: 2px solid rgba(16,185,129,0.18);
  box-shadow: 0 4px 24px rgba(16,185,129,0.08), 0 1px 4px rgba(0,0,0,0.04);
  box-sizing: border-box;
}

.kiss-story-nav__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none !important;
  font-family: var(--kiss-font);
  font-weight: 700;
  color: #fff !important;
  padding: 18px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 14px rgba(16,185,129,0.3);
  flex: 1;
  min-width: 0;
}

.kiss-story-nav__link:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 22px rgba(16,185,129,0.45);
  color: #fff !important;
}

.kiss-story-nav__link--prev:hover {
  transform: translateX(-2px) scale(1.02);
}

.kiss-story-nav__link--next:hover {
  transform: translateX(2px) scale(1.02);
}

.kiss-story-nav__dir {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0.5px;
}

.kiss-story-nav__name {
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.kiss-story-nav__link--all {
  background: linear-gradient(135deg, #fb02bd, #9448EF);
  box-shadow: 0 3px 14px rgba(251,2,189,0.3);
  flex: 0 0 auto;
  min-width: 160px;
  padding: 18px 36px;
}

.kiss-story-nav__link--all:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 22px rgba(251,2,189,0.45);
  color: #fff !important;
}

.kiss-story-nav__all-main {
  font-size: 17px;
  font-weight: 800;
}

.kiss-story-nav__all-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.4px;
}

/* --------------------------------------------------------------------------
   MODULE 21 — More Stories Section (.kiss-more-stories)
   Container with centered header and 3-col grid
   -------------------------------------------------------------------------- */
.kiss-more-stories {
  margin: 2.5em 0 1.5em;
  padding: 2.5em 0 0;
  border-top: 2px solid rgba(148,72,239,0.1);
}

.kiss-more-stories__title {
  text-align: center;
  font-family: var(--kiss-font);
  font-size: 1.4em;
  font-weight: 800;
  color: var(--kiss-charcoal);
  margin: 0 0 1.5em;
  line-height: 1.5;
}

.kiss-more-stories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.kiss-more-stories__footer {
  text-align: center;
  margin-top: 2em;
}

.kiss-more-stories__browse-label {
  font-family: var(--kiss-font);
  font-size: 12px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 10px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   MODULE 25 — IELTS Type Filter Row (.kiss-story-filter-row)
   Same pill container + full-width buttons as top nav, different colors
   -------------------------------------------------------------------------- */
.kiss-story-filter-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px;
  background: #fff;
  border-radius: 22px;
  border: 2px solid rgba(75,163,219,0.18);
  box-shadow: 0 4px 24px rgba(75,163,219,0.08), 0 1px 4px rgba(0,0,0,0.04);
  box-sizing: border-box;
}

.kiss-filter-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none !important;
  font-family: var(--kiss-font);
  font-weight: 700;
  color: #fff !important;
  padding: 18px 28px;
  border-radius: 14px;
  min-width: 0;
  flex: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kiss-filter-btn__main {
  font-size: 18px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.kiss-filter-btn__sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.4px;
}

.kiss-filter-btn--academic {
  background: linear-gradient(135deg, #4ba3db, #2980b9);
  box-shadow: 0 3px 14px rgba(75,163,219,0.3);
}

.kiss-filter-btn--all {
  background: linear-gradient(135deg, #fb02bd, #9448EF);
  box-shadow: 0 3px 14px rgba(251,2,189,0.3);
  flex: 0 0 auto;
  min-width: 160px;
  padding: 18px 36px;
}

.kiss-filter-btn--general {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 3px 14px rgba(34,197,94,0.3);
}

.kiss-filter-btn:hover {
  transform: scale(1.02);
  color: #fff !important;
}

.kiss-filter-btn--academic:hover { box-shadow: 0 6px 22px rgba(75,163,219,0.45); }
.kiss-filter-btn--all:hover      { box-shadow: 0 6px 22px rgba(251,2,189,0.45); transform: scale(1.03); }
.kiss-filter-btn--general:hover  { box-shadow: 0 6px 22px rgba(34,197,94,0.45); }

/* --------------------------------------------------------------------------
   MODULE 22 — Story Card (.kiss-story-card)
   White card with thumbnail, name, badges, hover lift
   -------------------------------------------------------------------------- */
.kiss-story-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.kiss-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(148,72,239,0.12), 0 2px 6px rgba(0,0,0,0.04);
  border-color: rgba(148,72,239,0.15);
}

.kiss-story-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ede5ff 0%, #e8f0ff 100%);
}

.kiss-story-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.kiss-story-card:hover .kiss-story-card__img img {
  transform: scale(1.05);
}

.kiss-story-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.kiss-story-card__name {
  font-family: var(--kiss-font);
  font-size: 16px;
  font-weight: 800;
  color: var(--kiss-charcoal);
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   MODULE 23 — Score & Type Badges
   Academic = blue, General = green, individual L/R/W/S scores
   -------------------------------------------------------------------------- */
.kiss-badge {
  display: inline-block;
  font-family: var(--kiss-font);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kiss-badge--academic {
  background: linear-gradient(135deg, #4ba3db, #2980b9);
  color: #fff;
}

.kiss-badge--general {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.kiss-story-card__scores {
  display: flex;
  gap: 5px;
  width: 100%;
  margin-top: 6px;
}

.kiss-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--kiss-font);
  font-size: 12px;
  font-weight: 700;
  color: #555;
  background: #f0ecf7;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  flex: 1;
}

/* --------------------------------------------------------------------------
   MODULE 24 — Responsive
   -------------------------------------------------------------------------- */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .kiss-more-stories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .kiss-story-nav { margin: 0 0 1.25em; }
  .kiss-story-nav__link { padding: 14px 18px; }
  .kiss-story-filter-row { margin: 0; }
  .kiss-filter-btn { padding: 14px 18px; }
  .kiss-filter-btn--all { padding: 14px 24px; }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .kiss-more-stories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .kiss-story-nav { border-radius: 16px; padding: 5px; gap: 5px; }
  .kiss-story-nav__link { padding: 10px 10px; border-radius: 12px; }
  .kiss-story-nav__name { font-size: 14px; }
  .kiss-story-nav__dir { font-size: 10px; }
  .kiss-story-nav__all-main { font-size: 13px; }
  .kiss-story-nav__all-sub { display: none; }
  .kiss-story-nav__link--all { min-width: 100px; padding: 10px 14px; }
  .kiss-story-filter-row { border-radius: 16px; padding: 5px; gap: 5px; }
  .kiss-filter-btn { padding: 10px 10px; border-radius: 12px; }
  .kiss-filter-btn--all { min-width: 100px; padding: 10px 14px; }
  .kiss-filter-btn__main { font-size: 14px; }
  .kiss-filter-btn__sub { font-size: 10px; }

  .kiss-more-stories__title {
    font-size: 1.15em;
  }

  .kiss-story-card__name {
    font-size: 14px;
  }

  .kiss-story-card__body {
    padding: 12px 14px 14px;
  }

  .kiss-score-badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  /* Disable hover transforms on touch */
  .kiss-story-card:hover {
    transform: none;
  }

  .kiss-story-card:hover .kiss-story-card__img img {
    transform: none;
  }
}

/* Small phones (max-width: 400px) */
@media (max-width: 400px) {
  .kiss-story-nav__name { display: none; }
  .kiss-story-nav__dir { font-size: 11px; letter-spacing: 0; }
  .kiss-story-nav__all-sub { display: none; }
  .kiss-filter-btn__main { font-size: 12px; }
  .kiss-filter-btn__sub { display: none; }

  .kiss-more-stories__grid {
    gap: 10px;
  }

  .kiss-story-card__name {
    font-size: 13px;
  }

  .kiss-score-badge {
    font-size: 10px;
    padding: 2px 6px;
  }

  .kiss-badge {
    font-size: 9px;
    padding: 2px 8px;
  }
}
/* ==========================================================================
   K.I.S.S. IELTS — 7-Day Free Course Landing Page (Phase 6)
   All selectors scoped under .kiss-7days to prevent conflicts
   ========================================================================== */

/* --------------------------------------------------------------------------
   MODULE 1 — Container & Base
   -------------------------------------------------------------------------- */
.kiss-7days {
  background: radial-gradient(ellipse at 50% 0%, rgba(148,72,239,0.05) 0%, transparent 70%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px; /* space for sticky CTA bar */
}

/* Override article-template.css h2 border-left */
.item-page .kiss-7days h2 {
  border-left: none !important;
  padding-left: 0 !important;
}

/* --------------------------------------------------------------------------
   MODULE 2 — Hero Header (.kiss-7d-hero-header)
   -------------------------------------------------------------------------- */
.kiss-7days .kiss-7d-hero-header {
  text-align: center;
  margin: 0 0 2em;
  animation: kiss-card-enter 0.6s ease both;
}

.item-page .kiss-7days .kiss-7d-hero-title {
  font-size: 2em;
  font-weight: 900;
  line-height: 1.3;
  background: linear-gradient(135deg, #9448EF 0%, #c044d4 35%, #fb02bd 65%, #4ba3db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin: 0 0 0.25em;
  border-left: none !important;
  padding-left: 0 !important;
}

/* Decorative underline */
.kiss-7days .kiss-7d-hero-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #9448EF, #fb02bd, #4ba3db);
  margin: 0.4em auto 0;
  border-radius: 2px;
}

.kiss-7days .kiss-7d-hero-subtitle {
  font-size: 1.1em;
  color: #666;
  font-weight: 500;
  margin: 0.5em 0 0;
  letter-spacing: 0.03em;
}

@supports not (-webkit-background-clip: text) {
  .item-page .kiss-7days .kiss-7d-hero-title {
    color: #9448EF;
  }
}

/* --------------------------------------------------------------------------
   MODULE 3 — Feature Cards (.kiss-7d-features)
   UL items become cards in a 2-col grid
   -------------------------------------------------------------------------- */
.kiss-7days .kiss-7d-features {
  margin: 1.5em 0 2em;
}

/* Top-level list: 2-col grid of skill cards */
.kiss-7days .kiss-7d-features > ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Each top-level <li> = a card */
.kiss-7days .kiss-7d-features > ul > li {
  background: #fff;
  border-radius: 16px;
  padding: 1.5em;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: kiss-card-enter 0.5s ease both;
  font-weight: 700;
  font-size: 1.05em;
  color: #1a1a2e;
  line-height: 1.6;
}

/* Stagger entrance */
.kiss-7days .kiss-7d-features > ul > li:nth-child(1) { animation-delay: 0.05s; }
.kiss-7days .kiss-7d-features > ul > li:nth-child(2) { animation-delay: 0.1s; }
.kiss-7days .kiss-7d-features > ul > li:nth-child(3) { animation-delay: 0.15s; }
.kiss-7days .kiss-7d-features > ul > li:nth-child(4) { animation-delay: 0.2s; }

/* Colored top accent bars per skill */
.kiss-7days .kiss-7d-features > ul > li::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}

/* First UL: writing (purple) and speaking (pink) */
.kiss-7days .kiss-7d-features > ul:first-child > li:nth-child(1)::before {
  background: linear-gradient(90deg, #9448EF, #b060f0);
}
.kiss-7days .kiss-7d-features > ul:first-child > li:nth-child(2)::before {
  background: linear-gradient(90deg, #fb02bd, #d946a8);
}

/* Second UL: listening (blue), reading (green) — but they may be in first UL as items 3-4 */
.kiss-7days .kiss-7d-features > ul:first-child > li:nth-child(3)::before,
.kiss-7days .kiss-7d-features > ul:last-child > li:nth-child(1)::before {
  background: linear-gradient(90deg, #fb02bd, #d946a8);
}
.kiss-7days .kiss-7d-features > ul:first-child > li:nth-child(4)::before,
.kiss-7days .kiss-7d-features > ul:last-child > li:nth-child(2)::before {
  background: linear-gradient(90deg, #4ba3db, #2980b9);
}
.kiss-7days .kiss-7d-features > ul:last-child > li:nth-child(3)::before {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.kiss-7days .kiss-7d-features > ul:last-child > li:nth-child(4)::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Hover lift */
.kiss-7days .kiss-7d-features > ul > li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(148,72,239,0.12), 0 2px 6px rgba(0,0,0,0.04);
}

/* Sub-lists inside cards: checkmark style */
.kiss-7days .kiss-7d-features > ul > li > ul {
  list-style: none;
  padding: 0.5em 0 0;
  margin: 0;
}

.kiss-7days .kiss-7d-features > ul > li > ul > li {
  position: relative;
  padding-left: 1.6em;
  margin: 0.4em 0;
  font-weight: 500;
  font-size: 0.9em;
  color: #555;
  line-height: 1.7;
}

.kiss-7days .kiss-7d-features > ul > li > ul > li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: 800;
  font-size: 1em;
}

/* Remove <br> tags inside list items (EasyBlog artifacts) */
.kiss-7days .kiss-7d-features li br {
  display: none;
}

/* --------------------------------------------------------------------------
   MODULE 4 — Hero Screenshot (.kiss-7d-hero-screenshot)
   -------------------------------------------------------------------------- */
.kiss-7days .kiss-7d-hero-screenshot {
  text-align: center;
  margin: 1em 0;
}

.kiss-7days .kiss-7d-hero-screenshot img,
.kiss-7days .kiss-7d-hero-screenshot .blog-image img {
  max-width: 500px;
  width: 100%;
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(148,72,239,0.15),
    0 2px 8px rgba(0,0,0,0.06);
  border: 3px solid rgba(148,72,239,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kiss-7days .kiss-7d-hero-screenshot img:hover,
.kiss-7days .kiss-7d-hero-screenshot .blog-image img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(148,72,239,0.22),
    0 4px 12px rgba(0,0,0,0.08);
}

/* --------------------------------------------------------------------------
   MODULE 5 — CTA Buttons (.kiss-7d-cta)
   -------------------------------------------------------------------------- */
@keyframes kiss-7d-shimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes kiss-7d-cta-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(251,2,189,0.35); }
  50% { box-shadow: 0 8px 36px rgba(251,2,189,0.55), 0 0 60px rgba(148,72,239,0.15); }
}

.kiss-7days .kiss-7d-cta {
  display: inline-block;
  background: linear-gradient(135deg, #fb02bd 0%, #9448EF 100%) !important;
  padding: 16px 40px !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(251,2,189,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.kiss-7days .kiss-7d-cta::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: kiss-7d-shimmer 3s ease-in-out infinite;
}

.kiss-7days .kiss-7d-cta:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 8px 32px rgba(251,2,189,0.45) !important;
}

/* Hero CTA: pulse glow */
.kiss-7days .kiss-7d-cta--hero {
  animation: kiss-7d-cta-pulse 2.5s ease-in-out infinite;
}

.kiss-7days .kiss-7d-cta--hero:hover {
  animation: none;
}

/* CTA container centering */
.kiss-7days div[style*="text-align: center"] {
  margin: 2em 0;
}

/* --------------------------------------------------------------------------
   MODULE 6 — Resources Section (.kiss-7d-resources)
   -------------------------------------------------------------------------- */
.kiss-7days .kiss-7d-resources-header {
  text-align: center;
  margin: 3em 0 1.5em;
  animation: kiss-card-enter 0.6s ease both;
}

.item-page .kiss-7days .kiss-7d-resources-title {
  font-size: 1.8em;
  font-weight: 900;
  line-height: 1.3;
  background: linear-gradient(135deg, #4ba3db 0%, #9448EF 50%, #fb02bd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin: 0 0 0.25em;
  border-left: none !important;
  padding-left: 0 !important;
}

.kiss-7days .kiss-7d-resources-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4ba3db, #9448EF);
  margin: 0.4em auto 0;
  border-radius: 2px;
}

.kiss-7days .kiss-7d-resources-subtitle {
  font-size: 1.05em;
  color: #666;
  font-weight: 500;
  margin: 0.5em 0 0;
  letter-spacing: 0.03em;
}

.kiss-7days .kiss-7d-resources {
  background: linear-gradient(145deg, #fff 0%, #f5f0ff 100%);
  border-radius: 20px;
  padding: 2em;
  box-shadow: 0 6px 28px rgba(148,72,239,0.1), 0 1px 4px rgba(0,0,0,0.03);
  border: 1px solid rgba(148,72,239,0.12);
  position: relative;
  overflow: hidden;
  animation: kiss-card-enter 0.5s ease both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  align-items: center;
}

/* Rainbow top accent bar */
.kiss-7days .kiss-7d-resources::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #9448EF, #fb02bd, #4ba3db);
  border-radius: 20px 20px 0 0;
}

/* Resources list styling */
.kiss-7days .kiss-7d-resources-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kiss-7days .kiss-7d-resources-content li {
  position: relative;
  padding: 0.6em 0 0.6em 2em;
  font-weight: 600;
  font-size: 1em;
  color: #333;
  line-height: 1.7;
  border-bottom: 1px solid rgba(148,72,239,0.06);
}

.kiss-7days .kiss-7d-resources-content li:last-child {
  border-bottom: none;
}

.kiss-7days .kiss-7d-resources-content li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 1.4em;
  height: 1.4em;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 0.8em;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Resources screenshot */
.kiss-7days .kiss-7d-resources-screenshot {
  text-align: center;
}

.kiss-7days .kiss-7d-resources-screenshot img,
.kiss-7days .kiss-7d-resources-screenshot .blog-image img {
  max-width: 400px;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  border: 2px solid rgba(148,72,239,0.1);
  transition: transform 0.3s ease;
}

.kiss-7days .kiss-7d-resources-screenshot img:hover,
.kiss-7days .kiss-7d-resources-screenshot .blog-image img:hover {
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   MODULE 7 — Responsive
   -------------------------------------------------------------------------- */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
  .item-page .kiss-7days .kiss-7d-hero-title {
    font-size: 1.7em;
  }

  .item-page .kiss-7days .kiss-7d-resources-title {
    font-size: 1.5em;
  }

  .kiss-7days .kiss-7d-cta {
    padding: 14px 32px !important;
    font-size: 18px !important;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .kiss-7days {
    padding-bottom: 70px;
  }

  .item-page .kiss-7days .kiss-7d-hero-title {
    font-size: 1.5em;
  }

  .kiss-7days .kiss-7d-hero-subtitle,
  .kiss-7days .kiss-7d-resources-subtitle {
    font-size: 0.95em;
  }

  .kiss-7days .kiss-7d-hero-title::after,
  .kiss-7days .kiss-7d-resources-title::after {
    width: 60px;
    height: 3px;
  }

  /* Feature cards: single column */
  .kiss-7days .kiss-7d-features > ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kiss-7days .kiss-7d-features > ul > li {
    padding: 1.25em;
  }

  /* Disable hover transforms on touch */
  .kiss-7days .kiss-7d-features > ul > li:hover {
    transform: none;
  }

  /* Resources: single column */
  .kiss-7days .kiss-7d-resources {
    grid-template-columns: 1fr;
    padding: 1.5em;
    border-radius: 14px;
  }

  /* CTA full width */
  .kiss-7days .kiss-7d-cta {
    display: block !important;
    width: 100%;
    text-align: center;
    padding: 14px 24px !important;
    font-size: 18px !important;
    box-sizing: border-box;
  }

  .item-page .kiss-7days .kiss-7d-resources-title {
    font-size: 1.3em;
  }

  /* Disable hover on touch */
  .kiss-7days .kiss-7d-hero-screenshot img:hover,
  .kiss-7days .kiss-7d-resources-screenshot img:hover {
    transform: none;
  }
}

/* Small phones (max-width: 400px) */
@media (max-width: 400px) {
  .item-page .kiss-7days .kiss-7d-hero-title {
    font-size: 1.3em;
  }

  .item-page .kiss-7days .kiss-7d-resources-title {
    font-size: 1.15em;
  }

  .kiss-7days .kiss-7d-features > ul > li {
    padding: 1em;
    font-size: 0.95em;
  }

  .kiss-7days .kiss-7d-cta {
    font-size: 16px !important;
    padding: 12px 20px !important;
  }

  .kiss-7days .kiss-7d-resources {
    padding: 1.25em;
    border-radius: 10px;
  }

  .kiss-7days .kiss-7d-resources-content li {
    font-size: 0.9em;
  }
}
