/*
Theme Name: CogniSkill
Theme URI: https://cogniskill.org/
Author: CogniSkill
Description: Premium technical publishing WordPress theme.
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: cogniskill
License: GPL-2.0-or-later
*/

/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
  --ck-navy: #071e35;
  --ck-deep: #02152b;
  --ck-deep-2: #0b2746;
  --ck-gold: #d9a93d;
  --ck-gold-strong: #c89216;
  --ck-gold-soft: #fff6df;

  --ck-paper: #f5f7fa;
  --ck-surface: #ffffff;
  --ck-surface-muted: #f0f3f7;
  --ck-surface-tint: #f8fafc;

  --ck-ink: #17233d;
  --ck-ink-soft: #4f6072;
  --ck-ink-muted: #6a7a8c;
  --ck-ink-faint: #8794a3;

  --ck-border: #dfe5ec;
  --ck-border-strong: #cad4de;

  --ck-success: #2f6c43;
  --ck-danger: #9b2f2f;

  --ck-shadow-sm: 0 8px 22px rgba(7, 30, 53, 0.06);
  --ck-shadow-md: 0 14px 36px rgba(7, 30, 53, 0.08);
  --ck-shadow-lg: 0 22px 54px rgba(7, 30, 53, 0.14);

  --ck-radius-sm: 8px;
  --ck-radius-md: 14px;
  --ck-radius-lg: 20px;
  --ck-radius-pill: 999px;

  --ck-container: 1200px;
  --ck-container-wide: 1280px;
  --ck-container-narrow: 840px;

  --ck-space-1: 4px;
  --ck-space-2: 8px;
  --ck-space-3: 12px;
  --ck-space-4: 16px;
  --ck-space-5: 20px;
  --ck-space-6: 24px;
  --ck-space-8: 32px;
  --ck-space-10: 40px;
  --ck-space-12: 48px;
  --ck-space-14: 56px;
  --ck-space-16: 64px;
  --ck-space-18: 72px;
  --ck-space-20: 80px;

  --ck-header-height: 82px;
  --ck-header-height-mobile: 68px;

  --ck-font-body: Arial, Helvetica, sans-serif;
  --ck-font-display: Georgia, "Times New Roman", serif;

  --ck-text-xs: 12px;
  --ck-text-sm: 14px;
  --ck-text-base: 16px;
  --ck-text-lg: 18px;
  --ck-text-xl: 24px;
  --ck-text-2xl: clamp(2rem, 3vw, 3.25rem);
  --ck-text-hero: clamp(2.5rem, 5vw, 4.4rem);

  --ck-transition: 0.22s ease;
}

/* =========================================================
   02. RESET & BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ck-paper);
  color: var(--ck-ink);
  font-family: var(--ck-font-body);
  font-size: var(--ck-text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > #page,
body > .site,
#page.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.site-main,
.content-area {
  min-width: 0;
}

.site-main {
  flex: 1 0 auto;
  padding: 0;
}

.site-footer {
  margin-top: auto;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a,
button,
input,
textarea,
select {
  transition:
    color var(--ck-transition),
    background-color var(--ck-transition),
    border-color var(--ck-transition),
    box-shadow var(--ck-transition),
    transform var(--ck-transition);
}

a {
  color: var(--ck-navy);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ck-gold-strong);
}

button {
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(217, 169, 61, 0.24);
  color: var(--ck-ink);
}

/* =========================================================
   03. ACCESSIBILITY HELPERS
   ========================================================= */

.screen-reader-text,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--ck-deep);
  z-index: 99999;
  top: 8px;
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--ck-gold);
  outline-offset: 3px;
}

/* =========================================================
   04. LAYOUT CONTAINERS
   ========================================================= */

.ck-container,
.site-inner,
.container {
  width: min(calc(100% - 48px), var(--ck-container));
  margin-left: auto;
  margin-right: auto;
}

.content-narrow,
.entry-content {
  max-width: var(--ck-container-narrow);
}

.section {
  padding: clamp(56px, 7vw, 88px) 0;
}

.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}

.section--soft {
  background: var(--ck-surface-muted);
}

/* =========================================================
   05. TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--ck-navy);
  font-family: var(--ck-font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.1em;
  color: var(--ck-ink-soft);
}

ul,
ol {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

.archive-header,
.entry-header,
.error-page {
  margin-bottom: var(--ck-space-8);
}

.archive-header h1,
.entry-header h1,
.error-page h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--ck-gold-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label--light {
  color: #ffffff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading > a {
  flex: 0 0 auto;
  color: var(--ck-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ck-gold);
  padding-bottom: 4px;
}

.section-heading h2,
.section-heading h3 {
  font-size: clamp(1.75rem, 2.6vw, 3rem);
}

/* =========================================================
   06. BUTTONS & FORM ELEMENTS
   ========================================================= */

.button,
button.button,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--ck-gold);
  border-radius: var(--ck-radius-pill);
  background: transparent;
  color: var(--ck-navy);
  font-size: var(--ck-text-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: none;
}

.button:hover,
button.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.button--gold,
.button.button--gold {
  background: var(--ck-gold);
  color: var(--ck-deep);
}

.button--gold:hover,
.button.button--gold:hover {
  background: #e5b950;
  color: var(--ck-deep);
  border-color: #e5b950;
}

.button--outline,
.button.button--outline {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.button--outline:hover,
.button.button--outline:hover {
  background: #ffffff;
  color: var(--ck-deep);
  border-color: #ffffff;
}

.button--small {
  min-height: 36px;
  padding: 9px 14px;
  font-size: 11px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select,
.search-field {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--ck-border-strong);
  border-radius: var(--ck-radius-sm);
  background: #ffffff;
  color: var(--ck-ink);
  font-size: 15px;
}

input:focus,
textarea:focus,
select:focus,
.search-field:focus {
  outline: none;
  border-color: var(--ck-gold-strong);
  box-shadow: 0 0 0 3px rgba(217, 169, 61, 0.18);
}

/* =========================================================
   07. HEADER & NAVIGATION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9990;
  background: rgba(2, 21, 43, 0.96);
  color: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--ck-header-height);
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 215px;
  min-width: 0;
  margin-right: auto;
}

.custom-logo-link,
.site-wordmark {
  display: flex;
  align-items: center;
  height: var(--ck-header-height);
  line-height: 0;
}

.custom-logo {
  display: block;
  width: auto;
  height: 54px;
  max-width: 205px;
  object-fit: contain;
}

.site-branding a {
  color: #ffffff;
}

.site-wordmark--text {
  color: #ffffff;
  font-family: var(--ck-font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.primary-navigation {
  min-width: 0;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a,
.search-toggle {
  color: #ffffff;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-navigation a:hover,
.search-toggle:hover {
  color: var(--ck-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: 0;
  background: none;
  color: #ffffff;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 23px;
  height: 2px;
  background: currentColor;
}

.site-search[hidden],
#site-search[hidden],
[hidden] {
  display: none !important;
}

.site-search {
  padding: 16px 0 18px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 30, 53, 0.08);
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

/* =========================================================
   08. HERO SLIDER
   ========================================================= */

.hero-slider {
  position: relative;
  margin: 0 0 24px;
  background: #021a34;
}

.hero-slider__track {
  position: relative;
  min-height: 0;
}

.hero-slide {
  display: none;
  position: relative;
  width: 100%;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide__link {
  display: block;
  width: 100%;
}

.hero-slide__image {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: unset;
  background: transparent;
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(2, 21, 43, 0.58);
  color: #ffffff;
  font-size: 22px;
  transform: translateY(-50%);
}

.hero-slider__arrow:hover {
  background: var(--ck-gold);
  border-color: var(--ck-gold);
  color: var(--ck-deep);
}

.hero-slider__arrow--previous {
  left: 24px;
}

.hero-slider__arrow--next {
  right: 24px;
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #ffffff;
  border-radius: 50%;
  background: transparent;
}

.hero-slider__dot.is-active {
  background: var(--ck-gold);
  border-color: var(--ck-gold);
}
/* =========================================================
   09. SHARED CARD SYSTEM
   ========================================================= */

.card,
.book-card,
.content-card,
.category-card,
.homepage-category-card,
.featured-book-card {
  background: var(--ck-surface);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-md);
  box-shadow: var(--ck-shadow-sm);
}

.book-card,
.content-card,
.featured-book-card,
.homepage-category-card {
  overflow: hidden;
  transition:
    transform var(--ck-transition),
    box-shadow var(--ck-transition),
    border-color var(--ck-transition);
}

.book-card:hover,
.content-card:hover,
.featured-book-card:hover,
.homepage-category-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 169, 61, 0.6);
  box-shadow: var(--ck-shadow-md);
}

.category-grid,
.book-grid,
.post-grid,
.homepage-categories__grid,
.featured-books__grid {
  display: grid;
  gap: 24px;
}

.category-grid,
.book-grid,
.post-grid,
.homepage-categories__grid,
.featured-books__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================================
   10. HOMEPAGE CATEGORY CARDS
   ========================================================= */

.homepage-categories {
  padding: clamp(60px, 7vw, 88px) 0;
  background: #f7f8fa;
}

.homepage-categories__header {
  margin-bottom: 32px;
}

.homepage-categories__header h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.homepage-categories__intro {
  max-width: 46rem;
  margin-top: 16px;
  color: var(--ck-ink-soft);
}

.homepage-category-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 26px 24px 24px;
  color: var(--ck-navy);
}

.homepage-category-card__eyebrow {
  margin-bottom: 14px;
  color: #b8861d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.homepage-category-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.homepage-category-card p {
  margin: 14px 0 20px;
  color: var(--ck-ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.homepage-category-card__link {
  margin-top: auto;
  color: var(--ck-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   11. FEATURED BOOKS
   ========================================================= */

.featured-books {
  padding: clamp(64px, 7vw, 92px) 0;
  background: #f7f8fa;
  overflow: hidden;
}

.featured-books .ck-container {
  width: min(calc(100% - 48px), 1120px);
}

.featured-books__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.featured-books__heading h2 {
  max-width: 42rem;
  margin-top: 10px;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.featured-books__intro {
  max-width: 40rem;
  margin-top: 16px;
  color: var(--ck-ink-soft);
}

.featured-books__all {
  flex: 0 0 auto;
  align-self: flex-end;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ck-gold);
  color: var(--ck-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-book-card__cover {
  display: block;
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  background: #eef1f4;
}

.featured-book-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.featured-book-card__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 22px 24px;
}

.featured-book-card__label {
  margin: 0 0 10px;
  color: #b8861d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-book-card h3 {
  display: -webkit-box;
  min-height: 4.05em;
  overflow: hidden;
  color: var(--ck-navy);
  font-size: 1.15rem;
  line-height: 1.32;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-book-card h3 a {
  color: inherit;
}

.featured-book-card__excerpt {
  display: -webkit-box;
  flex: 1 1 auto;
  min-height: 3.35em;
  margin: 14px 0 18px;
  overflow: hidden;
  color: var(--ck-ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.featured-book-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.featured-book-card__actions .cogniskill-amazon-purchase,
.featured-book-card__actions .amazon-purchase,
.featured-book-card__actions > div:first-child {
  width: 100%;
  min-width: 0;
}

.featured-book-card__actions .cogniskill-amazon-buy,
.featured-book-card__actions .amazon-buy-button,
.featured-book-card__actions a[href*="amazon"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid #d7aa2d;
  border-radius: var(--ck-radius-pill);
  background: #dbaf36;
  color: var(--ck-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.featured-book-card__actions .cogniskill-amazon-buy:hover,
.featured-book-card__actions .amazon-buy-button:hover,
.featured-book-card__actions a[href*="amazon"]:hover {
  border-color: var(--ck-deep);
  background: #e8bf4c;
  color: var(--ck-deep);
}

.featured-book-card__actions .cogniskill-amazon-disclosure,
.featured-book-card__actions .amazon-affiliate-disclosure {
  display: block;
  width: 100%;
  color: var(--ck-ink-muted);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}

.featured-book-card__link {
  align-self: flex-start;
  color: var(--ck-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ck-gold);
  padding-bottom: 4px;
}

/* =========================================================
   12. GENERIC BOOK / CONTENT CARDS
   ========================================================= */

.book-card__image,
.content-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 20px;
  background: #ffffff;
}

.book-card__image img {
  max-height: 245px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.book-card__body,
.content-card__body {
  padding: 20px;
}

.book-card h2,
.content-card h2 {
  margin-bottom: 8px;
  font-family: var(--ck-font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.book-card h2 a,
.content-card h2 a {
  color: var(--ck-navy);
}

.book-card p,
.content-card p {
  min-height: 42px;
  margin-bottom: 14px;
  color: var(--ck-ink-muted);
  font-size: 13px;
}

/* =========================================================
   13. INSIGHTS / DARK SECTION
   ========================================================= */

.insights {
  padding: clamp(56px, 6vw, 80px) 0;
  background: var(--ck-deep);
  color: #ffffff;
}

.insights__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.insight {
  padding: 14px 0;
  border-bottom: 1px solid #234564;
}

.insight h3 {
  margin-bottom: 6px;
  color: #ffffff;
  font-family: var(--ck-font-body);
  font-size: 16px;
  font-weight: 700;
}

.insight a {
  color: #ffffff;
}

.insight p {
  color: #bac8d6;
  font-size: 14px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.value-grid p {
  margin: 0;
  padding: 20px;
  border: 1px solid #234564;
  border-radius: var(--ck-radius-md);
  color: #c2d0dd;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.value-grid strong {
  color: #ffffff;
}

/* =========================================================
   14. BOOKS ARCHIVE
   ========================================================= */

.books-archive,
.post-type-archive-book .site-main {
  padding: 56px 0 72px;
}

.book-filters {
  margin: 0 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--ck-border);
  border-bottom: 1px solid var(--ck-border);
}

.book-filters__label {
  display: block;
  margin-bottom: 12px;
  color: var(--ck-navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.book-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.book-filter {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--ck-border-strong);
  border-radius: var(--ck-radius-pill);
  background: #ffffff;
  color: #17324d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.book-filter:hover,
.book-filter:focus-visible {
  border-color: var(--ck-gold-strong);
  background: #fffaf0;
  color: var(--ck-navy);
}

.book-filter.is-active {
  border-color: var(--ck-gold-strong);
  background: #dbaf36;
  color: var(--ck-deep);
}

.book-results-count {
  margin: 0 0 18px;
  color: var(--ck-ink-muted);
  font-size: 13px;
}

.book-filter-empty {
  max-width: 40rem;
  margin: 48px auto;
  padding: 40px;
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius-lg);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--ck-shadow-sm);
}

.books-archive .book-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   15. SINGLE BOOK PAGE — V2
   ========================================================= */

.ck-book-single-v2-page {
  padding: 56px 0 78px;
  background: #f5f6f8;
}

.ck-book-single-v2 {
  max-width: 1160px;
  margin: 0 auto;
}

.ck-book-single-v2__hero {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 44px;
  border: 1px solid #e3e7ec;
  border-radius: var(--ck-radius-lg);
  background: #ffffff;
  box-shadow: var(--ck-shadow-md);
}

.ck-book-single-v2__cover-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ck-book-single-v2__cover-shell {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef1f4;
  box-shadow: 0 20px 40px rgba(7, 30, 53, 0.14);
}

.ck-book-single-v2__cover-image {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  object-fit: cover;
  object-position: center top;
}

.ck-book-single-v2__cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 8.5 / 11;
  background: linear-gradient(145deg, #173f62, #071e35);
  color: #ffffff;
  font-family: var(--ck-font-display);
  font-size: 2rem;
  font-weight: 700;
}

.ck-book-single-v2__cover-placeholder span {
  color: var(--ck-gold);
}

.ck-book-single-v2__eyebrow {
  margin: 0 0 14px;
  color: #b8861d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ck-book-single-v2__title {
  margin: 0 0 16px;
  color: var(--ck-navy);
  font-size: clamp(1.55rem, 2.1vw, 2.5rem);
  line-height: 1.08;
}

.ck-book-single-v2__hero-description {
  max-width: 62ch;
  margin: 0 0 18px;
  color: #536274;
  font-size: 0.97rem;
  line-height: 1.7;
}

.ck-book-single-v2__hero-description p {
  margin: 0;
}

.ck-book-single-v2__meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.ck-book-single-v2__meta-card {
  padding: 16px 14px;
  border: 1px solid #e2e7ec;
  border-radius: 14px;
  background: #fbfcfd;
}

.ck-book-single-v2__meta-label {
  display: block;
  margin-bottom: 6px;
  color: #7a8794;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ck-book-single-v2__meta-value {
  display: block;
  color: var(--ck-navy);
  font-size: 0.92rem;
  line-height: 1.4;
}

.ck-book-single-v2__selling-points {
  margin: 0 0 20px;
  max-width: 34rem;
}

.ck-book-single-v2__selling-points ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ck-book-single-v2__selling-points li {
  position: relative;
  padding-left: 18px;
  color: #425466;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ck-book-single-v2__selling-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ck-gold);
  transform: translateY(-50%);
}

.ck-book-single-v2__cover-buy {
  width: 100%;
  max-width: 320px;
  margin-top: 14px;
}

.ck-book-single-v2__cover-buy .cogniskill-amazon-purchase,
.ck-book-single-v2__cover-buy .amazon-purchase,
.ck-book-single-v2__cover-buy > div:first-child {
  width: 100%;
}

.ck-book-single-v2__cover-buy .cogniskill-amazon-buy,
.ck-book-single-v2__cover-buy .amazon-buy-button,
.ck-book-single-v2__cover-buy a[href*="amazon"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid #d6aa31;
  border-radius: var(--ck-radius-pill);
  background: #dbaf36;
  color: var(--ck-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.ck-book-single-v2__cover-buy .cogniskill-amazon-disclosure,
.ck-book-single-v2__cover-buy .amazon-affiliate-disclosure {
  display: block;
  width: 100%;
  margin-top: 8px;
  color: #72808d;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

/* Custom Amazon Shortcode Button Styling */
.ck-book-single-v2__cover-buy .ck-amazon-buy-btn,
.ck-amazon-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #d6aa31;
  border-radius: var(--ck-radius-pill);
  background: #dbaf36;
  color: var(--ck-deep) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(219, 175, 54, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.ck-book-single-v2__cover-buy .ck-amazon-buy-btn:hover,
.ck-amazon-buy-btn:hover {
  background: #e8bf4c;
  transform: translateY(-2px);
  color: var(--ck-deep) !important;
}
.ck-book-single-v2__content-wrap {
  padding-top: 26px;
}

.ck-book-single-v2__content-card {
  overflow: hidden;
  border: 1px solid #e3e7ec;
  border-radius: var(--ck-radius-lg);
  background: #ffffff;
  box-shadow: var(--ck-shadow-sm);
}

.ck-book-single-v2__content-header {
  padding: 26px 32px 0;
}

.ck-book-single-v2__content-header h2 {
  font-size: 2rem;
}

.ck-book-single-v2__content {
  max-width: 760px;
  padding: 18px 32px 34px;
  color: #22364d;
  font-size: 1.02rem;
  line-height: 1.85;
}

.ck-book-single-v2__content > *:first-child {
  margin-top: 0;
}

/* =========================================================
   16. SINGLE BOOK PAGE — LEGACY SUPPORT
   ========================================================= */

.ck-book-page {
  padding-top: 36px;
  padding-bottom: 72px;
  background: #f8f9fb;
}

.ck-book-page__article {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ck-book-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #7a8796;
  font-size: 12px;
  line-height: 1.5;
}

.ck-book-page__breadcrumb a {
  color: #7a8796;
}

.ck-book-page__breadcrumb a:hover,
.ck-book-page__breadcrumb a:focus-visible {
  color: var(--ck-navy);
}

.ck-book-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 6px 0 10px;
}

.ck-book-hero__cover-shell {
  max-width: 380px;
}

.ck-book-hero__cover-image {
  width: 100%;
  box-shadow: 0 18px 36px rgba(7, 30, 53, 0.14);
}

.ck-book-hero__content {
  max-width: 760px;
  padding-top: 8px;
}

.ck-book-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  margin: 0 0 18px;
  border-radius: var(--ck-radius-pill);
  background: #fff4d8;
  color: #b78618;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ck-book-hero__title {
  max-width: 40ch;
  font-size: clamp(1.4rem, 2vw, 2.5rem);
}

.ck-book-hero__subtitle {
  max-width: 46rem;
  margin: 14px 0 0;
  color: #4e5f70;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.55;
}

/* =========================================================
   17. PORTAL
   ========================================================= */

.page-template-portal .site-main,
.page-template-portal-php .site-main,
.page-portal .site-main {
  width: 100%;
}

body.page-template-portal:not(.logged-in) .site-main,
body.page-template-portal-php:not(.logged-in) .site-main,
body.page-portal:not(.logged-in) .site-main {
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 20px 64px;
}

body.page-template-portal:not(.logged-in) .site-main > div,
body.page-template-portal-php:not(.logged-in) .site-main > div,
body.page-portal:not(.logged-in) .site-main > div,
.portal-auth-card {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 35px;
  border-top: 4px solid #c5a059;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(2, 26, 52, 0.1);
}

.portal-auth-card input[type="text"],
.portal-auth-card input[type="email"],
.portal-auth-card input[type="password"],
body.page-template-portal:not(.logged-in) input[type="text"],
body.page-template-portal:not(.logged-in) input[type="email"],
body.page-template-portal:not(.logged-in) input[type="password"] {
  background: #f8fafc;
}

.portal-auth-card input[type="submit"],
.portal-auth-card button[type="submit"],
.portal-auth-card .button,
body.page-template-portal:not(.logged-in) input[type="submit"],
body.page-template-portal:not(.logged-in) button[type="submit"],
body.page-template-portal:not(.logged-in) .button {
  width: 100%;
  background: var(--ck-deep);
  color: #ffffff;
  border-color: var(--ck-deep);
}

.portal-auth-card input[type="submit"]:hover,
.portal-auth-card button[type="submit"]:hover,
.portal-auth-card .button:hover,
body.page-template-portal:not(.logged-in) input[type="submit"]:hover,
body.page-template-portal:not(.logged-in) button[type="submit"]:hover,
body.page-template-portal:not(.logged-in) .button:hover {
  background: #c5a059;
  border-color: #c5a059;
  color: var(--ck-deep);
}

body.logged-in.page-template-portal .site-main,
body.logged-in.page-template-portal-php .site-main,
body.logged-in.page-portal .site-main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 20px 72px;
}

body.logged-in.page-template-portal .site-main > div,
body.logged-in.page-template-portal-php .site-main > div,
body.logged-in.page-portal .site-main > div {
  max-width: 100%;
  width: 100%;
  margin: 20px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.portal-dashboard-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   18. STANDARD PAGES
   ========================================================= */

body.page:not(.page-template-resource):not(.page-template-portal):not(.page-template-portal-php) .site-main {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 56px 20px 72px;
}

body.page:not(.page-template-resource):not(.page-template-portal):not(.page-template-portal-php) .site-main > * {
  max-width: 100%;
}

.entry-content {
  font-size: 17px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.2em 0 0.5em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.1em;
}

/* =========================================================
   19. FOOTER
   ========================================================= */

.footer-newsletter,
.footer-main,
.footer-bottom {
  background: var(--ck-deep);
  color: #ffffff;
}

.footer-newsletter {
  padding: 40px 0;
  border-top: 1px solid #294968;
}

.footer-newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-newsletter h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 1.9rem;
}

.footer-newsletter p {
  margin: 0;
  color: #b8c8d7;
  font-size: 14px;
}

.footer-main {
  padding: 56px 0 48px;
}

.footer-grid,
.footer-grid--structured {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 35px;
}

.footer-main a {
  color: #bccada;
}

.footer-main a:hover,
.footer-main a:focus-visible {
  color: #ffffff;
}

.footer-brand > a {
  display: inline-block;
  color: #ffffff;
  font-family: var(--ck-font-display);
  font-size: 25px;
  font-weight: 700;
}

.footer-brand p,
.footer-main .widget,
.footer-column p {
  color: #bccada;
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand p {
  max-width: 24rem;
}

.widget-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget ul,
.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li,
.footer-column li {
  margin: 0 0 10px;
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid #294968;
  font-size: 12px;
  color: #b9c9d8;
}

.footer-bottom .ck-container,
.footer-bottom__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom a {
  color: #b9c9d8;
}

.footer-bottom__copy p {
  margin: 6px 0 0;
  color: #9fb0c2;
  font-size: 12px;
  line-height: 1.45;
}

/* =========================================================
   CONTACT PAGE — STICKY FOOTER FIX
   ========================================================= */

html,
body {
  min-height: 100%;
}

body.contact,
body.page-id-61 {
  min-height: 100vh;
}

body.contact #page,
body.contact .site,
body.page-id-61 #page,
body.page-id-61 .site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.contact .site-main,
body.page-id-61 .site-main {
  flex: 1 0 auto;
}

body.contact .site-footer,
body.page-id-61 .site-footer {
  margin-top: auto;
}

/* =========================================================
   20. RESOURCE TEMPLATE SUPPORT
   ========================================================= */

.page-template-resource .site-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  min-height: calc(100vh - 280px);
}

.page-template-resource .site-content > .container,
.page-template-resource .site-content > .entry-content {
  width: 100%;
  max-width: 1200px;
}

main.site-main.resources-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
}

main.site-main.resources-page .ck-container {
  width: 100%;
}

/* =========================================================
   21. UTILITIES
   ========================================================= */

.mobile-menu-action {
  display: none;
}

.page-id-61 .entry-header {
  display: none;
}

/* =========================================================
   22. RESPONSIVE RULES
   ========================================================= */

@media (max-width: 1080px) {
  .homepage-categories__grid,
  .featured-books__grid,
  .category-grid,
  .book-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ck-book-single-v2__hero,
  .ck-book-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ck-book-single-v2__meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .admin-bar .site-header {
    top: 32px;
  }

  .site-header__inner,
  .site-branding,
  .custom-logo-link,
  .site-wordmark {
    min-height: 72px;
    height: 72px;
  }

  .site-branding {
    flex-basis: 180px;
  }

  .custom-logo {
    height: 48px;
    max-width: 175px;
  }

  .primary-navigation {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .primary-navigation.is-open {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 16px 24px;
    background: var(--ck-deep);
    border-top: 1px solid #294968;
  }

  .primary-navigation.is-open ul {
    display: block;
  }

  .primary-navigation.is-open li {
    padding: 10px 0;
  }

  .insights__grid,
  .value-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 700px) {
  .hero-slider__track {
    min-height: clamp(170px, 42vw, 250px);
  }

  .hero-slide__image {
    object-position: center center;
  }

  .hero-slider__arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .hero-slider__arrow--previous {
    left: 10px;
  }

  .hero-slider__arrow--next {
    right: 10px;
  }

  .hero-slider__dots {
    bottom: 11px;
  }
}
@media (max-width: 640px) {
  .ck-container,
  .site-inner,
  .container {
    width: min(calc(100% - 32px), var(--ck-container));
  }

  .site-header__inner,
  .site-branding,
  .custom-logo-link,
  .site-wordmark {
    min-height: var(--ck-header-height-mobile);
    height: var(--ck-header-height-mobile);
  }

  .site-branding {
    flex-basis: 145px;
  }

  .custom-logo {
    height: 40px;
    max-width: 140px;
  }

  .site-wordmark--text {
    font-size: 25px;
  }

  .header-actions .header-account {
    display: none;
  }

  .section,
  .homepage-categories,
  .featured-books,
  .insights {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-heading,
  .featured-books__heading,
  .footer-newsletter__inner,
  .footer-bottom .ck-container,
  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .homepage-categories__grid,
  .featured-books__grid,
  .category-grid,
  .book-grid,
  .post-grid,
  .footer-grid,
  .footer-grid--structured,
  .value-grid,
  .ck-book-single-v2__meta-grid {
    grid-template-columns: 1fr;
  }

  .homepage-category-card {
    min-height: auto;
  }

  .featured-book-card__content,
  .book-card__body,
  .content-card__body {
    padding: 20px 18px;
  }

  .button-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .search-form {
    flex-direction: column;
  }

  .resource-container {
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
  }

  .resource-column,
  .verification-column {
    width: 100%;
    margin-bottom: 40px;
    padding: 0;
  }

  .verification-column input[type="text"],
  .verification-column input[type="email"] {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }

  .ck-book-single-v2-page {
    padding: 32px 0 50px;
  }

  .ck-book-single-v2__hero,
  .ck-book-single-v2__content-header,
  .ck-book-single-v2__content {
    padding-left: 22px;
    padding-right: 22px;
  }

  .ck-book-single-v2__hero {
    padding-top: 24px;
    padding-bottom: 24px;
    border-radius: 16px;
  }

  .ck-book-single-v2__content-card {
    border-radius: 16px;
  }

  .ck-book-single-v2__content {
    font-size: 1rem;
  }

  .books-archive .book-card__actions {
    flex-wrap: wrap;
  }

  .books-archive .book-card__actions .cogniskill-amazon-purchase {
    flex-basis: 100%;
  }

  .footer-bottom ul {
    flex-wrap: wrap;
  }

  body.page-template-portal:not(.logged-in) .site-main,
  body.page-template-portal-php:not(.logged-in) .site-main,
  body.page-portal:not(.logged-in) .site-main {
    padding: 28px 16px 48px;
  }

  body.page-template-portal:not(.logged-in) .site-main > div,
  body.page-template-portal-php:not(.logged-in) .site-main > div,
  body.page-portal:not(.logged-in) .site-main > div,
  .portal-auth-card {
    padding: 28px 22px;
  }
}

@media (min-width: 769px) {
  .mobile-menu-action {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-slide {
    transition: none !important;
  }
}
/* =========================================================
   CONTACT PAGE — REMOVE WHITE SPACE BELOW FOOTER
   ========================================================= */

body.page-id-61,
body.page-id-61 #page,
body.page-id-61 .site {
  min-height: 100vh;
}

body.page-id-61 {
  background: var(--ck-deep);
}

body.page-id-61 .site-main {
  min-height: calc(100vh - var(--ck-header-height));
  padding: 56px 20px 0 !important;
  background: var(--ck-paper);
}

body.page-id-61 .site-footer {
  margin-top: 0;
}

body.page-id-61 .site-main {
  padding-bottom: 80px;
}

/* =========================================================
   23. CONTACT PAGE — PREMIUM NAVY BLOCK
   ========================================================= */

body.page-id-61 .site-main {
  max-width: 1280px !important;
  padding-top: 56px !important;
  padding-bottom: 90px !important;
}

body.page-id-61 .contact-premium {
  display: grid !important;
  grid-template-columns: minmax(300px, 1fr) minmax(380px, 500px) !important;
  gap: 48px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 44px 42px !important;
  background: #031b36 !important;
  border-radius: 24px !important;
  box-shadow: 0 28px 70px rgba(10, 37, 64, 0.18) !important;
}

body.page-id-61 .contact-premium__intro {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

body.page-id-61 .contact-premium__eyebrow {
  margin: 0 0 18px !important;
  color: var(--ck-gold) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

body.page-id-61 .contact-premium__intro h1 {
  margin: 0 0 18px !important;
  color: #ffffff !important;
  font-size: clamp(2.4rem, 2rem + 1vw, 3.3rem) !important;
  line-height: 1.02 !important;
}

body.page-id-61 .contact-premium__intro p {
  max-width: 500px !important;
  margin: 0 0 16px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 18px !important;
  line-height: 1.75 !important;
}

body.page-id-61 .contact-premium__intro strong {
  color: #ffffff !important;
}

body.page-id-61 .contact-premium__intro a {
  color: #ffffff !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(214, 168, 68, 0.45) !important;
}

body.page-id-61 .contact-premium__intro a:hover {
  color: var(--ck-gold) !important;
  border-color: var(--ck-gold) !important;
}

body.page-id-61 .contact-premium__form-shell {
  display: flex !important;
  align-items: center !important;
}

body.page-id-61 .contact-premium__form-shell .wpcf7 {
  width: 100% !important;
  margin: 0 !important;
}

body.page-id-61 .contact-premium__form-shell .wpcf7 form {
  width: 100% !important;
  margin: 0 !important;
  padding: 28px !important;
  background: #0b2747 !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 18px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

body.page-id-61 .contact-premium-form {
  display: grid !important;
  gap: 18px !important;
}

body.page-id-61 .contact-premium-form label {
  display: block !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

body.page-id-61 .contact-premium-form .wpcf7-form-control-wrap {
  display: block !important;
  margin-top: 8px !important;
}

body.page-id-61 .contact-premium-form input[type="text"],
body.page-id-61 .contact-premium-form input[type="email"],
body.page-id-61 .contact-premium-form textarea {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

body.page-id-61 .contact-premium-form textarea {
  min-height: 180px !important;
  resize: vertical !important;
}

body.page-id-61 .contact-premium-form input::placeholder,
body.page-id-61 .contact-premium-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

body.page-id-61 .contact-premium-form input:focus,
body.page-id-61 .contact-premium-form textarea:focus {
  outline: none !important;
  border-color: rgba(214, 168, 68, 0.92) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 0 0 4px rgba(214, 168, 68, 0.14) !important;
}

body.page-id-61 .contact-premium-form__submit {
  margin-top: 6px !important;
}

body.page-id-61 .contact-premium-form input[type="submit"],
body.page-id-61 .contact-premium-form .wpcf7-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 0 22px !important;
  border: none !important;
  border-radius: 8px !important;
  background: #d9ab43 !important;
  color: #10233a !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: 0 12px 28px rgba(217, 171, 67, 0.22) !important;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease !important;
}

body.page-id-61 .contact-premium-form input[type="submit"]:hover,
body.page-id-61 .contact-premium-form .wpcf7-submit:hover {
  background: #ffffff !important;
  color: #0b2747 !important;
  transform: translateY(-1px) !important;
}

body.page-id-61 .contact-premium__form-shell .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
}

body.page-id-61 .contact-premium__form-shell .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid rgba(214, 168, 68, 0.35) !important;
  background: rgba(214, 168, 68, 0.12) !important;
}

@media (max-width: 980px) {
  body.page-id-61 .contact-premium {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 30px 22px !important;
  }

  body.page-id-61 .contact-premium__intro h1 {
    font-size: clamp(2rem, 1.7rem + 1vw, 2.8rem) !important;
  }

  body.page-id-61 .contact-premium__intro p {
    max-width: none !important;
    font-size: 16px !important;
  }

  body.page-id-61 .contact-premium__form-shell .wpcf7 form {
    padding: 22px !important;
  }
}

/* --- CogniSkill Single Book Page Enhancements --- */

/* Topic Badge */
.ck-book-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Quote Section */
.ck-book-single-v2__quote-wrap {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
}
.ck-book-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}
.ck-book-quote cite {
    display: block;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Learning & Features Grid */
.ck-learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.ck-learn-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}
.ck-learn-icon {
    color: #10b981; /* Neon green accent */
    font-weight: bold;
    font-size: 1.1rem;
}
.ck-learn-text {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Accordion Table of Contents */
.ck-toc-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}
.ck-toc-item {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.ck-toc-item[open] {
    border-color: rgba(245, 158, 11, 0.4);
}
.ck-toc-summary {
    padding: 14px 18px;
    font-weight: 600;
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}
.ck-toc-summary::-webkit-details-marker {
    display: none;
}
.ck-toc-summary:hover {
    background: rgba(255, 255, 255, 0.04);
}
.ck-toc-icon::after {
    content: '+';
    font-size: 1.2rem;
    color: #f59e0b;
    font-weight: bold;
}
.ck-toc-item[open] .ck-toc-icon::after {
    content: '−';
}
.ck-toc-body {
    padding: 0 18px 16px 18px;
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 4px;
    padding-top: 12px;
}


/* ==========================================================================
   CogniSkill Clean Insights / Articles Feed
   ========================================================================== */

.ck-insights-hub {
    background-color: #0b0f19;
    color: #e2e8f0;
    min-height: 80vh;
    padding-bottom: 5rem;
}

/* Hero Section */
.ck-insights-hero {
    background: linear-gradient(180deg, #0f172a 0%, #0b0f19 100%);
    padding: 4.5rem 1rem 3rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ck-eyebrow-green {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #10b981; /* Neon Green */
    margin-bottom: 12px;
}
.ck-insights-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.ck-insights-subtitle {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Grid & Cards Layout */
.ck-insights-content {
    padding-top: 3.5rem;
}
.ck-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.ck-insight-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.ck-insight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.4); /* Neon Green hover border */
}
.ck-insight-thumb-link {
    display: block;
    height: 190px;
    overflow: hidden;
    background-color: #1e293b;
}
.ck-insight-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.ck-insight-card:hover .ck-insight-thumb {
    transform: scale(1.04);
}
.ck-insight-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Metadata & Typography */
.ck-insight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.ck-cat-tag {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.ck-post-date {
    color: #64748b;
    font-size: 0.82rem;
}
.ck-insight-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.ck-insight-card-title a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ck-insight-card-title a:hover {
    color: #10b981;
}
.ck-insight-excerpt {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.ck-read-more-link {
    color: #10b981;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}
.ck-read-more-link:hover .arrow {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* Pagination & Empty States */
.ck-pagination {
    margin-top: 3.5rem;
    text-align: center;
}
.ck-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
}
.ck-pagination .page-numbers.current,
.ck-pagination .page-numbers:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}
.ck-empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #64748b;
}
.ck-empty-state h3 {
    color: #f8fafc;
    margin-bottom: 0.5rem;
}