@charset "UTF-8";

/*
Theme Name: The Catalyst
Theme URI: https://thecatalyst.work/
Author: The Catalyst
Author URI: https://thecatalyst.work/
Description: The Spark. In this blog I write about business, technology and people… and the power of little things to make a massive difference in any of these areas.
Requires at least: 5.3
Tested up to: 7.0
Requires PHP: 5.6
Version: 2.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyone
Tags: one-column, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog, portfolio

Twenty Twenty-One WordPress Theme, (C) 2020 WordPress.org
Twenty Twenty-One is distributed under the terms of the GNU GPL.
*/

/**
 * SETTINGS
 * File-header..........The file header for the themes style.css file.
 * Fonts................Any font files, if the project needs specific fonts.
 * Global...............Project-specific, globally available variables.
 *
 * TOOLS
 * Functions............Global functions.
 * Mixins...............Global mixins.
 *
 * GENERIC
 * Normalize.css........Normalise browser defaults.
 * Breakpoints..........Mixins and variables for responsive styles
 * Vertical-margins.....Vertical spacing for the main components.
 * Reset................Reset specific elements to make them easier to style in other contexts.
 * Clearings............Clearings for the main components.
 *
 * ELEMENTS
 * Blockquote...........Default blockquote.
 * Forms................Element-level form styling.
 * Headings.............H1–H6
 * Links................Default links.
 * Lists................Default lists.
 * Media................Images, Figure, Figcaption, Embed, iFrame, Objects, Video.
 *
 * BLOCKS
 * Audio................Specific styles for the audio block.
 * Button...............Specific styles for the button block.
 * Code.................Specific styles for the code block.
 * Columns..............Specific styles for the columns block.
 * Cover................Specific styles for the cover block.
 * File.................Specific styles for the file block.
 * Gallery..............Specific styles for the gallery block.
 * Group................Specific styles for the group block.
 * Heading..............Specific styles for the heading block.
 * Image................Specific styles for the image block.
 * Latest comments......Specific styles for the latest comments block.
 * Latest posts.........Specific styles for the latest posts block.
 * Legacy...............Specific styles for the legacy gallery.
 * List.................Specific styles for the list block.
 * Media text...........Specific styles for the media and text block.
 * Navigation...........Specific styles for the navigation block.
 * Paragraph............Specific styles for the paragraph block.
 * Pullquote............Specific styles for the pullquote block.
 * Quote................Specific styles for the quote block.
 * Search...............Specific styles for the search block.
 * Separator............Specific styles for the separator block.
 * Table................Specific styles for the table block.
 * Poetry (Verse).......Specific styles for the poetry block.
 * Video................Specific styles for the video block.
 * Utilities............Block alignments.
 *
 * COMPONENTS
 * Header...............Header styles.
 * Footer...............Footer styles.
 * Comments.............Comment styles.
 * Archives.............Archive styles.
 * 404..................404 styles.
 * Search...............Search styles.
 * Navigation...........Navigation styles.
 * Footer Navigation....Footer Navigation styles.
 * Pagination...........Pagination styles.
 * Single...............Single page and post styles.
 * Posts and pages......Misc, sticky post styles.
 * Entry................Entry, author biography.
 * Widget...............Widget styles.
 * Editor...............Editor styles.
 *
 * UTILITIES
 * A11y.................Screen reader text, prefers reduced motion etc.
 * Color Palette........Classes for the color palette colors.
 * Editor Font Sizes....Editor Font Sizes.
 * Measure..............The width of a line of text, in characters.
 */

/* Categories 01 to 03 are the basics. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
/*The Catalyst*/
:root {
  --pink:       #ff3399;
  --pink-hover: #b81e6a;
  --navy:       #372772;
  --navy-hover: #080529;
  --text:       #000000;
  --black:      #000000;
  --meta:       #888;
  --muted:      #9b8fc0;
  --border:     #e8e8e8;
  --light-grey: #f2f2f2;
  --bg:         #fff;
  --nav-h:      52px;
  --dark-bg:    #16122b;
  --dark-card:  #1e1a35;
  --dark-text:  #ffffff;
  --dark-sub:   rgba(255,255,255,0.65);
  --rule:       rgba(255, 51, 153, 0.18);
  /* --family:     "Helvetica Neue", Helvetica, Arial, sans-serif; */
  --family:     "Helvetica", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--family);
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }
.details-hr { border-top: 1px solid var(--border); margin: 20px 0; }

/* Scrollbar - Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #b6b6b6, #686868);
    border-radius: 10px;
    border: 2px solid #ffffff;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b6b6b6, #686868);
}
::-webkit-scrollbar-corner {
    background: #ffffff;
}
/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #b6b6b6 #ffffff;
}


/* ─── FULL-WIDTH HEADER ─── */
/* sticky, white, NO border-bottom — header inner is full width (no max-width cap) */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  width: 100%;
}
.header-inner {
  width: 100%;
  padding: 16px 26px 16px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: flex-start;
  min-width: fit-content;
  box-sizing: border-box;
  overflow: visible;
}
#header.is-scrolled {
  box-shadow: 0 5px 10px rgba(0,0,0,.03);
}

/* Left: brand + search icon */
.nav-left {
  align-items: center;
  gap: 16px;
  max-height: inherit;
  height: 100%;
  min-height: fit-content;
  box-sizing: border-box;
  display: flex;
  overflow: visible;
  flex: 1;
  justify-content: flex-start;
  min-width: fit-content;
}

.nav-brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text);
  white-space: nowrap;
  outline: none;
}
.nav-brand:hover { color: var(--text); }

.nav-search-btn {
  display: flex;
  align-items: center;
  padding: 3px;
  color: var(--text);
  transition: opacity .15s;
}
.nav-search-btn:hover { opacity: 1; }
.nav-search-btn svg { width: 15px; height: 15px; stroke-width: 1.8; }

/* Centre: nav links */
.nav-centre {
  flex-grow: 1;
  max-width: 100%;
  max-height: 100%;
  gap: 16px;
  height: 100%;
  min-height: fit-content;
  box-sizing: border-box;
  display: flex;
  overflow: visible;
  align-items: center;
  justify-content: center;
}
.nav-links  { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transition: color .15s;
}
.nav-links a:hover { color: var(--pink); }
.nav-links a.active { color: var(--pink); }

/* Right: subscribe button */
.nav-right {
  align-items: end;
  gap: 16px;
  max-height: inherit;
  height: 100%;
  min-height: fit-content;
  box-sizing: border-box;
  display: flex;
  overflow: visible;
  flex: 1;
  justify-content: flex-end;
  min-width: fit-content;
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--pink);
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 18px;
  white-space: nowrap;
  transition: background .15s, transform .12s;
  text-decoration: none !important;
  line-height: normal;
}
.btn-subscribe:hover { background: var(--navy); color: #fff; transform: translateY(-1px); }

/* Mobile hamburger — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile menu dropdown — hidden by default, shown via .is-open */
.mobile-menu {
  display: none;
  position: fixed;
  top: 45px;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  z-index: 998;
  padding: 20px 18px 24px;
}
.mobile-menu.is-open { display: block; }

.mobile-nav-links { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links li:first-child { border-top: 1px solid var(--border); }
.mobile-nav-links a {
  display: block;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s;
}
.mobile-nav-links a:hover { color: var(--pink); }
.mobile-nav-links a.active { color: var(--pink); }

/* Dark theme for Our Story page */
body.page-story .mobile-menu {
  background: var(--dark-bg);
  border-bottom-color: rgba(255,255,255,.08);
}
body.page-story .mobile-nav-links li { border-color: rgba(255,255,255,.08); }
body.page-story .mobile-nav-links a  { color: rgba(255,255,255,.85); }
body.page-story .mobile-nav-links a:hover { color: var(--pink); }

/* ─── SEARCH POPUP ─── */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.80);
  z-index: 2000;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--nav-h);
}
.search-overlay.open { display: flex; }

.search-box {
  background: #fff;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  margin: 12px 20px 0;
  position: relative;
}
.search-box svg { width: 16px; height: 16px; color: var(--meta); flex-shrink: 0; }
.search-input {
  font-family: var(--family);
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  background: transparent;
}
.search-autofill-results {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
    overflow: hidden;
    z-index: 999999;
    max-height: 320px;
    overflow-y: auto;
}
.search-autofill-results.active {
    display: block;
}
.search-result-item,
.search-result-empty {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.search-result-item:hover {
  background-color: var(--light-grey);
}
.search-input::placeholder { color: var(--meta); }
.search-close {
  color: var(--meta);
  font-size: 20px;
  line-height: 1;
  padding: 2px 4px;
  transition: color .15s;
}
.search-close:hover { color: var(--text); }

.search-list article {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.search-list .post-thumbnail img {
  border-radius: 12px;
  margin: 15px 0;
}

.search-list article:last-child {
  margin-bottom: 0px;
}
/*.search-list article:nth-child(odd) {
  background-color: var(--light-grey);
  border-radius: 7px;
}
.search-list article:nth-child(even) {
  background-color: var(--bg);
  border-radius: 7px;
}*/
.search-list .entry-header .entry-title {
  margin-bottom: 5px;
}
.search-list .entry-header .entry-title a {
  color: var(--navy);
  font-size: 25px;
}
.search-list .entry-header .entry-title a:hover {
  color: var(--text);
}
.search-list .entry-content {
  color: var(--black);
  font-size: 16px;
  line-height: 1.75;
}
.search-list .entry-content .more-link {
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: normal;
  height: auto;
  margin-top: 12px;
  position: relative;
  transition: .5s;
}
.search-list .entry-content .more-link::after {
  content: "\2192";
  margin-left: 5px;
  font-size: 14px;
  line-height: normal;
  height: auto;
  transition: .5s;
}
.search-list .entry-content .more-link:hover::after {
  margin-left: 10px;
}

.container-gap {padding: 0 15px;}

/* ─── HOME HERO ─── */
#hero {
  text-align: center;
  padding: 30px;
}

.hero-logo {
  width: 75px; height: 75px;
  /*background: var(--navy);*/
  border-radius: 10px;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo img {
  width: 60px; height: auto;
}

.hero-site-name  { font-size: 35px; font-weight: 800; line-height: 1.2; margin-bottom: 15px; }
.hero-tagline    { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 20px; }
.hero-tagline strong { font-weight: 700; }

.hero-form {
  display: inline-flex;
  align-items: stretch;
}
.hero-email {
  font-family: var(--family);
  font-size: 15px;
  color: var(--text);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 30px 0 0 30px;
  padding: 15px 20px;
  width: 330px;
  outline: none;
  background: #fff;
  transition: border-color .15s;
}
.hero-email::placeholder { color: #aaa; }
.hero-email:focus { border-color: #ccc; }

.btn-join-free {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 0 30px 30px 0;
  padding: 9px 18px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .15s;
  text-decoration: none;
}
.btn-join-free:hover { background: var(--navy-hover); color: #fff; }

/* ─── MAIN CONTAINER: 1280px, 75/25 grid ─── */
#container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 75fr 25fr;
  gap: 66px;
  align-items: start;
}

.section-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

/* ─── LEFT PANEL: 2-column post grid ─── */
#left-panel { min-width: 0; }

.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 25px 10px; */
  gap: 8px;
}

/* card fade-in stagger */
.post-card {
  display: block;
  opacity: 0;
  animation: cardIn .5s ease forwards;
}
.post-card:nth-child(1){animation-delay:.04s}
.post-card:nth-child(2){animation-delay:.08s}
.post-card:nth-child(3){animation-delay:.13s}
.post-card:nth-child(4){animation-delay:.18s}
.post-card:nth-child(5){animation-delay:.23s}
.post-card:nth-child(6){animation-delay:.28s}
.post-card:nth-child(7){animation-delay:.33s}
.post-card:nth-child(8){animation-delay:.38s}

.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card:hover .post-title      { color: var(--navy); }

/* 16:9 thumbnail via padding-top trick */
.post-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
  background: #efefef;
  /* margin-bottom: 20px; */
}
.post-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.post-meta {
  font-size: 12px;
  color: var(--black);
  /* margin-bottom: 6px; */
  font-family: "DM Sans", sans-serif;
  line-height: 2.27;
}
.post-meta .sep { color: var(--black); margin: 0 5px; }

.post-title {
  position: relative;
  overflow: visible;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  /*margin-bottom: 15px;*/
  transition: color .15s;
}
.post-title-text {
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  text-overflow:ellipsis;
}

.post-authors {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--black);
}
.av-stack { 
  display: flex;
  align-items: center;
  gap: 8px;
}
.av {
  background-color: var(--pink);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 7.5px;
  font-weight: 800;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-left: -5px;
  overflow: hidden;
}
.av:first-child { margin-left: 0; }
.av-pink   { background: var(--pink); }
.av-purple { background: #7c3aed; }
.av-navy   { background: var(--navy); }
.av-teal   { background: #0d9488; }
.av-amber  { background: #b45309; }
.av-rose   { background: #be185d; }

/* ─── RIGHT PANEL: interview list ─── */
#right-panel { min-width: 0; }

.right-nws-text {
  text-align: right;
}

.interview-list { display: flex; flex-direction: column; gap: 6px; }

.iv-card {
  display: block;
  opacity: 0;
  animation: cardIn .5s ease forwards;
}
.iv-card:nth-child(1){animation-delay:.06s}
.iv-card:nth-child(2){animation-delay:.12s}
.iv-card:nth-child(3){animation-delay:.18s}
.iv-card:nth-child(4){animation-delay:.24s}
.iv-card:nth-child(5){animation-delay:.30s}
.iv-card:nth-child(6){animation-delay:.36s}
.iv-card:nth-child(7){animation-delay:.42s}

.iv-card:hover .iv-thumb img { transform: scale(1.04); }
.iv-card:hover .iv-title      { color: var(--navy); }

.iv-thumb {
  position: relative;
  width: 100%;
  padding-top: 52%;
  overflow: hidden;
  border-radius: 12px;
  background: #efefef;
  margin-bottom: 20px;
}
.iv-thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.iv-meta  { 
  font-size: 12px; 
  color: var(--black); 
  /* margin-bottom: 5px;  */
  font-family: "DM Sans", sans-serif;
  line-height: 2.27;
}
.iv-title { 
  position: relative;
  overflow: visible;
  font-size: 24px; 
  font-weight: 700; 
  line-height: 1.35; 
  color: var(--text); 
  /*margin-bottom: 15px;*/
  transition: color .15s; 
}
.iv-title-text {
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  text-overflow:ellipsis;
}
.iv-author { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--black); }
.iv-author .av { width: 25px; height: 25px; font-size: 7px; border: none; margin-left: 0; }

/* ─── FOOTER ─── */
#footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 32px 32px 26px;
  margin-top: 25px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 36fr 31fr 33fr;
  gap: 30px;
  align-items: center;
  justify-content: start;
  padding: 0 32px 60px;
}
.footer-brand { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.footer-desc  { font-size: 16px; color: var(--text); line-height: 1.65; margin-bottom: 30px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { 
  color: var(--bg);
  display: inline-flex;
  transition: color .15s;
  background-color: var(--navy);
  padding: 5px;
  border-radius: 7px;
}
.footer-social a:hover { color: var(--pink); }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-links a { font-size: 12px; color: var(--text); transition: color .15s; }
.footer-links a:hover { color: var(--pink); }

/* ─── LISTING PAGE ─── */
/* "AI News" heading + subtitle centred, then 2-column grid (matches listing screenshot) */
.listing-hero {
  padding: 36px 0 35px;
  animation: fadeUp .4s ease both;
}
.listing-hero .small-text {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 18px;
  gap: 6px;
}
.listing-hero h1   {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 20px;
}
.listing-hero p    { font-size: 15px; color: var(--black); line-height: 25px; }

.listing-outer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 20px;
}

/* 2-column grid — matches screenshot exactly (not 3-col) */
.listing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 30px 15px; */
  gap: 16px;
}

.listing-card {
  display: block;
  opacity: 0;
  animation: cardIn .5s ease forwards;
}
.listing-card:nth-child(1){animation-delay:.04s}
.listing-card:nth-child(2){animation-delay:.08s}
.listing-card:nth-child(3){animation-delay:.13s}
.listing-card:nth-child(4){animation-delay:.18s}
.listing-card:nth-child(5){animation-delay:.23s}
.listing-card:nth-child(6){animation-delay:.28s}
.listing-card:nth-child(7){animation-delay:.33s}
.listing-card:nth-child(8){animation-delay:.38s}
.listing-card:nth-child(9){animation-delay:.43s}
.listing-card:nth-child(10){animation-delay:.48s}
.listing-card:nth-child(11){animation-delay:.53s}
.listing-card:nth-child(12){animation-delay:.58s}

.listing-card:hover .post-thumb img { transform: scale(1.04); }
.listing-card:hover .post-title      { color: var(--navy); }

/* Listing thumbs are taller — roughly 4:3 ish from screenshot */
.listing-card .post-thumb { padding-top: 62%; }

/* ─── DETAIL PAGE ─── */
/* Breadcrumb + narrow centred article column + Keep Reading section */
.detail-wrap {
  max-width: 800px;
  margin: 45px auto auto auto;
  animation: fadeUp .4s ease both;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text); transition: color .15s; }
.breadcrumb a:hover { color: var(--pink); }
.breadcrumb-sep { font-size: 20px; }

@media (max-width: 640px) {
  .breadcrumb {
    font-size: 12px;
    gap: 4px;
    margin-bottom: 14px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .breadcrumb::-webkit-scrollbar {
    display: none;
  }
  .breadcrumb a,
  .breadcrumb span {
    flex-shrink: 0;
  }
  .breadcrumb span:last-child {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .breadcrumb-sep {
    font-size: 16px;
  }
}

.detail-h1 {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 20px;
}
.detail-byline {
  display: flex;
  align-items: center;
  margin-bottom: 35px;
}
.detail-byline-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--meta);
}
.detail-byline-left .av { width: 25px; height: 25px; font-size: 10px; border: none; }
.detail-byline-left strong { color: var(--text); font-weight: 600; }
.detail-byline-left .post-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0px;
}
.detail-byline-left .sep { color: var(--black); margin: 0 5px; }

@media (max-width: 640px) {
  .detail-byline {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
  }
  .detail-byline-left {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
  .detail-share {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
  .share-btn {
    width: 34px;
    height: 34px;
  }
  .share-btn svg {
    width: 14px;
    height: 14px;
  }
}


.detail-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.share-btn {
  background-color: var(--light-grey);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--meta);
  font-size: 12px;
  transition: border-color .15s, color .15s;
  outline: none;
}
.share-btn svg { width: 13px; height: 13px; fill: var(--meta); }

/* Subscribe inline promo box (inside detail) */
.detail-promo {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 28px;
}
.detail-promo h3   { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.detail-promo p    { font-size: 12.5px; color: var(--meta); line-height: 1.55; margin-bottom: 16px; }
.detail-promo-form { display: flex; gap: 0; justify-content: center; }
.detail-promo-form input {
  font-family: var(--family);
  font-size: 15px;
  color: var(--text);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 30px 0 0 30px;
  padding: 15px 20px;
  width: 330px;
  outline: none;
  background: #fff;
  transition: border-color .15s;
}
.detail-promo-form input:focus { border-color: #ccc; }
.detail-promo-form .btn-promo {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 0 30px 30px 0;
  padding: 9px 18px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .15s;
  text-decoration: none;
}
.detail-promo-form .btn-promo:hover { background: var(--navy-hover); }

/* Article content badge + body */
.detail-content {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 40px;
}
.detail-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink);
  border: 1px solid #f9a9d3;
  background-color: #ffe2f1;
  border-radius: 4px;
  padding: 2px 7px;
  margin-bottom: 10px;
}
.detail-intro {
  font-size: 20px;
  color: var(--black);
  font-weight: 600;
  margin-bottom: 18px;
}
.detail-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  position: relative;
}
.detail-hero-img img {
  height: 100%;
  width: 100%;
}
.detail-body { font-size: 16px; line-height: 1.75; color: var(--black); }
.detail-body p {
  color: var(--black);
  font-size: 16px;
  line-height: 27px;
  margin-bottom: 15px; 
}
.detail-body p:last-child {
  margin-bottom: 0px;
}
.detail-body p.withIcon {
  display: flex;
  align-items: center;
  gap: 5px;
}
.detail-body h2 { 
  color: var(--black);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 5px;
  transition: color .15s;
}
.detail-body ul {
  padding: 0 0 0 18px;
  margin: 0 0 14px 0;
}
.detail-body ul li {
  margin-bottom: 5px;
  color: var(--black);
  font-size: 16px;
  list-style: disc;
}
ol.numberBracket {
  padding: 0 0 0 18px;
}
.detail-body a  { color: var(--pink); text-decoration: none; }
.detail-body em { font-style: italic; color: var(--text); }
.detail-body strong { font-weight: 700; }
.story-subtitle {
  color: var(--b);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 20px;
  transition: color .15s;
}

/* Keep Reading section */
.keep-reading {
  max-width: 856px;
  margin: 0 auto;
  padding: 0 0 20px;
}
.keep-reading h2 { font-size: 20px; font-weight: 800; margin-bottom: 20px; }

.kr-card {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.kr-thumb {
  flex-shrink: 0;
  width: 360px;
  height: 175px;
  border-radius: 12px;
  overflow: hidden;
  background: #efefef;
  position: relative;
}
.kr-thumb .detail-related-media, 
.kr-thumb iframe {
  height: 175px;
}
.kr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.kr-card:hover .kr-thumb img { transform: scale(1.04); }
.kr-card:hover .kr-title      { color: var(--navy); }

.kr-body { flex: 1; min-width: 0; }
.kr-meta   { 
  font-size: 12px;
  color: var(--black);
  margin-bottom: 10px;
}
.kr-title  { 
  position: relative;
  overflow: visible;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  /*margin-bottom: 20px;*/
  transition: color .15s; 
}
.kr-title-text {
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  text-overflow:ellipsis;
}
.kr-authors { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--black); }

@media (max-width: 640px) {
  .kr-card {
    display: block;
    gap: 0;
    margin-bottom: 28px;
    padding-bottom: 28px;
  }
  .kr-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 14px;
  }
  .kr-thumb .detail-related-media,
  .kr-thumb iframe {
    height: 100%;
  }
  .kr-body {
    width: 100%;
  }
  .kr-title {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 12px;
  }
  .kr-meta {
    font-size: 11px;
    margin-bottom: 8px;
  }
}

.view-more-wrap { margin-top: 14px; }
.view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: color .15s;
}
.view-more-link:hover { color: var(--pink); }

/* My STORY */
.page-story-wrap {
  max-width: 800px;
  margin: 45px auto 45px auto;
  animation: fadeUp .4s ease both;
}
@media (max-width: 640px) {
    .page-story-wrap {
        padding: 18px 14px 0;
    }
}

.page-story {
  border: solid 1px var(--border);
  border-radius: 8px;
  padding: 24px;
}
.story-author-signature-row {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 20px;
    flex-direction: row;
    margin: 3rem 0;
}
.story-author-signature {
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
    gap: 5px;
}
.story-author-signature span {
    color: var(--black);
    font-size: 16px;
    display: block;
    line-height: normal;
}
.story-author-signature span a {
  color: var(--navy);
  line-height: normal;
}
.story-ca-social-row {
  border-top: solid 1px var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 1.3rem;
  margin-top: 1rem;
}
.story-social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ca-grey-600);
    transition: var(--ca-transition);
    background: var(--bg);
}

@media (max-width: 640px) {
  .story-author-signature-row {
    flex-direction: column;
    margin: 3rem 0 1rem 0;
  }
}


/* SUBSCRIBE PAGE */
.page-success-wrap {
  max-width: 800px;
  margin: 45px auto 45px auto;
  animation: fadeUp .4s ease both;
}
.ca-subscribe-form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.ca-subscribe-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: center;
}
.subscribe-form{
  position: relative;
}
.subscribe-msgalert {
  position: absolute;
  left: 0;
  bottom: -30px;
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
  border-radius: .25rem;
  padding: 12px 20px 12px 40px;
  width: 100%;
}
.subscribe-msgalert svg {
  width: 20px;
  height: 20px;
  fill: #155724;
  left: 12px;
  top: 50%;
  transform: translateY(-55%);
  position: absolute;
}
.subscribe-msgalert span {
  font-size: 15px;
}
.subscribe-msgalert span strong {
  text-transform: capitalize;
  text-decoration: underline;
  display: inline-block;
  font-size: 14px;
}
.ca-form-group {
  margin-bottom: 15px;
}
.ca-form-input, .ca-form-select, .ca-form-textarea {
  box-sizing: border-box;
  font-family: var(--family);
  font-size: 15px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 15px 20px;
  width: 100%;
  outline: none;
  background: #fff;
  transition: border-color .15s;
}
.ca-btn-submit {
  width: 100%;
  height: 46px;
  background: var(--navy);
  color: var(--bg);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ca-subscribe-form h3   { font-size: 25px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 6px; }
.ca-subscribe-form p    { font-size: 15px; color: var(--black); line-height: 25px; margin-bottom: 25px; }





/* ─── ANIMATIONS ─── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Tablet: 1100px ── */
@media (max-width: 1100px) {
  #container     { padding: 22px 24px 48px; }
  .listing-outer { padding: 0 24px 52px; }
  .footer-inner  { padding: 0 24px; }
  .story-hero h1 { font-size: 38px; }
}

/* ── Tablet: 900px ── */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-brand    { display: none; }       /* hide brand text on mobile */
  .nav-centre   { display: none; }       /* hide desktop nav links */
  .nav-burger   { display: flex; }       /* show burger on left */

  /* Home: hide right panel (interviews), left takes full width */
  #container        { grid-template-columns: 1fr; gap: 0; }
  #right-panel      { display: none; }

  /* Listing: 2-col → 1-col handled at 640px */
  .listing-grid     { grid-template-columns: 1fr 1fr; }

  /* Footer: 2-col */
  .footer-inner     { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }

  /* Story */
  .story-hero h1    { font-size: 32px; }
  .chapter-h2       { font-size: 24px; }

  /* Subscribe */
  .sp-right         { display: none; }
}

/* ── Mobile: 640px ── */
@media (max-width: 640px) {

  /* ── HEADER ── */
  .header-inner {
    padding: 10px 14px;
  }
  .nav-brand    { display: none; }       /* hide brand text on mobile */
  .nav-centre   { display: none; }       /* hide desktop nav links */
  .nav-burger   { display: flex; }       /* show burger on left */
  .btn-subscribe { display: inline-flex; padding: 7px 14px; font-size: 12px; }

  /* ── HERO ── */
  #hero { padding: 28px 18px 22px; }
  .hero-site-name { font-size: 18px; }
  .hero-form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-email {
    border-radius: 6px;
    border-right: 1px solid var(--border);
    width: 100%;
    margin-bottom: 8px;
  }
  .btn-join-free { border-radius: 6px; justify-content: center; width: 100%; }

  /* ── CONTAINER ── */
  #container    { padding: 18px 14px 36px; gap: 0; }
  #right-panel  { display: none; }
  .post-grid    { grid-template-columns: 1fr; gap: 24px; }
  .post-title   { font-size: 18px; font-weight: 800; line-height: 1.3; }
  .post-meta    { font-size: 11px; }

  /* ── LISTING ── */
  .listing-hero    { padding: 28px 14px 18px; }
  .listing-hero h1 { font-size: 24px; }
  .listing-outer   { padding: 0 14px 40px; }
  .listing-grid    { grid-template-columns: 1fr; gap: 24px; }

  /* ── DETAIL ── */
  .detail-wrap  { padding: 18px 14px 0; }
  .keep-reading { padding: 18px 14px 0; }
  .detail-h1    { font-size: 22px; }
  .kr-thumb     { width: 150px; height: 100px; }

  /* ── OUR STORY ── */
  .story-hero      { padding: 32px 14px 24px; }
  .story-hero h1   { font-size: 28px; }
  .story-chapters  { padding: 0 14px 48px; }
  .chapter-h2      { font-size: 22px; }
  .chapter-stats   { grid-template-columns: 1fr 1fr; }
  .chapter-stats .stat-cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .story-cta-wrap  { padding: 0 14px 48px; }

  /* ── SUBSCRIBE ── */
  .sp-wrap       { padding: 28px 14px 44px; width: 100%; }
  .sp-right      { display: none; }
  .sp-h1         { font-size: 26px; white-space: normal; }
  .sp-card       { padding: 18px 16px 16px; }
  .sp-card-quote { font-size: 14px; }
  .ca-subscribe-form {grid-template-columns: 1fr;}

  /* ── FOOTER ── */
  #footer { padding: 32px 0 24px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .footer-inner > div:first-child { grid-column: auto; }
  .footer-desc  { max-width: 100%; margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-links  { align-items: center; }
  .footer-links a { font-size: 13px; }
}

/* ─── SUBSCRIBE SUCCESS STATE ─── */
.sp-success {
  text-align: center;
  padding: 60px 20px;
  font-size: 22px;
  font-weight: 800;
  color: #1e1752;
  line-height: 1.5;
}
.sp-success span {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: #888;
  margin-top: 8px;
}

/*for video*/
.post-thumb,
.iv-thumb,
.detail-thumb {
    /* aspect-ratio: 16 / 9; */
    aspect-ratio: 1.5;
    overflow: hidden;
    padding-top: 0% !important;
}

.post-thumb img,
.iv-thumb img,
.detail-thumb img,
.post-thumb video,
.iv-thumb video,
.detail-thumb video,
.post-thumb iframe,
.iv-thumb iframe,
.detail-thumb iframe,
.kr-thumb iframe {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 0;
}
.blog_video-area {
  height: 490px;
  margin: auto auto 10px auto;
  padding: 0px;
  width: 100%;
}

/*error 404*/
.error404 .nav-brand {
  display: block;
}
.error404-section {
  max-width: 800px;
  margin: 45px auto auto auto;
  animation: fadeUp .4s ease both;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 40px;
  text-align: center;
}
.error404-section p {
  color: var(--black);
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 27px;
}
.error404-section p strong {
  color: var(--navy);
  font-weight: normal;
}
.error404-section h1 {
  padding-bottom: 15px;
}
.error-img {
  text-align: center;
  padding-bottom: 30px;
}
.error-img img {
    display: inline-block;
}

.clm-load-more, 
.clm-listing-load-more {
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  padding: 8px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0px;
  min-width:180px;
  margin:50px auto 0;
}
.step-dots::after {
    content: "";
    animation: stepDots 1.2s steps(4, end) infinite;
}
@keyframes stepDots {
  0% {
      content: "";
  }
  25% {
      content: ".";
  }
  50% {
      content: "..";
  }
  75%,
  100% {
      content: "...";
  }
}

/*DETAIL SUBSCRIBE MODAL*/
.detail-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.58);
    backdrop-filter: blur(8px);
}
.detail-modal-overlay.is-open {
    display: flex;
}
.detail-modal-box {
    position: relative;
    width: min(100%, 600px);
    padding: 50px 20px;
    border-radius: 15px;
    background: var(--bg);
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
    text-align: center;
    animation: detailModalIn .28s ease both;
}
.detail-modal-box h2 {
  color: var(--black);
  margin: 0 0 12px;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.05;
}
.detail-modal-box p {
  margin: 0 auto 15px;
  font-size: 17px;
  line-height: 27px;
  color: var(--black);
}
.detail-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.06);
  color: var(--black);
  font-size: 24px;
  line-height: 38px;
  cursor: pointer;
}
body.detail-modal-lock {
    overflow: hidden;
}
.detail-modal-note {
  display: block;
  margin: 25px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--meta);
}

@keyframes detailModalIn {
  from {
      opacity: 0;
      transform: translateY(18px) scale(.96);
  }
  to {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}
@media (max-width: 575px) {
  .detail-modal-box {
      padding: 38px 22px 26px;
      border-radius: 18px;
  }

  .detail-modal-form {
      width: 100%;
  }
}

/*bottom to Top Scroll*/
#scrollTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: solid 1px var(--navy);
  color: var(--navy);
  display: grid;
  place-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s;
}
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}
#scrollTopBtn:hover {
  border: solid 1px var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
}
#scrollTopBtn svg {
  width: 18px;
  height: 18px
}
@media(max-width:640px) {
  #scrollTopBtn {
      width: 40px;
      height: 40px;
      right: 15px;
      bottom: 15px
  }
}

/*For Newly Post Label*/
.listing-card,
.post-card,
.iv-card {
    position: relative;
}
.clm-new-ribbon {
    position: absolute;
    top: 12px;
    right: -8px;
    z-index: 5;
    background: rgba(255, 51, 153, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 7px 12px;
    border-radius: 15px 0 0 15px;
    box-shadow: 0 3px 3px rgba(0,0,0,.18);
}
.clm-new-ribbon::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    border-top: 7px solid #8b0a4b;
    border-right: 8px solid transparent;
}
@media (max-width: 640px) {
    .clm-new-ribbon {
        top: 10px;
        right: -6px;
        font-size: 10px;
        padding: 6px 10px;
    }
}

/*pagination*/
.pagination .nav-links {
  color: var(--black);
  font-size: 12px;
  justify-content: center;
  gap: 18px;
  margin-bottom: 50px;
}
.pagination .nav-links .prev, 
.pagination .nav-links .next {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pagination .nav-links .prev svg, 
.pagination .nav-links .next svg {
  height: auto;
  width: 18px;
}
.pagination .nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
}

/*Title Tooltip*/
.post-title-tooltip {
    position: relative;
    display: inline-block;
}
.post-title-tooltip::after {
    content: attr(data-title);
    position: absolute;
    left: 0;
    bottom: calc(100% + 5px);
    z-index: 20;
    width: max-content;
    max-width: min(320px, 80vw);
    padding: 6px 10px;
    background: rgba(55, 39, 114, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 4px;
    white-space: normal;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.post-title-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*slideshow*/

.join-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #155724;
  margin-top: 15px;
}
.join-success svg {
  width: 20px;
  height: 20px;
  fill: #155724;
}

.join-success span {
  font-weight: 600;
  font-size: 15px;
}

.post-btm-container {
  padding: 10px 10px 28px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.listing-btm-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 0 20px 0;
}

.listing-btm-container .post-title {
  line-height: 27px;
}

.home-iv-box {
  margin-bottom: 0;
}

.iv-stack-container {
  padding: 10px 10px 28px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kr-details-thumb, .detail-related-media {
  height: auto !important;
}

.kr-details-thumb img {
  aspect-ratio: 1.65 / 1;
}

.kr-details-title {
  font-size: 20px;
}