/**
 * Theme Name: Cola Papers
 * Description: Professional Academic Writing Service Theme — v6 FINAL
 * Version: 6.0.0
 * Author: Cola Papers Team
 * Text Domain: colapapers
 */

/* ===================================================
   CSS CUSTOM PROPERTIES — ENHANCED PALETTE v6
   Inspired by EssayShark premium aesthetics + Cola Papers green identity
   =================================================== */
:root {
  /* Primary Green (Cola Papers identity — maintained) */
  --cp-green:       #16a34a;
  --cp-green-dark:  #15803d;
  --cp-green-light: #22c55e;
  --cp-green-pale:  #f0fdf4;
  --cp-green-mid:   #dcfce7;
  --cp-green-border:#bbf7d0;

  /* Deep Navy (EssayShark-inspired authority tone) */
  --cp-navy:        #0d1f3c;
  --cp-navy-mid:    #1a3560;
  --cp-navy-light:  #1e4080;

  /* Accent Gold — CTA punch (EssayShark uses vivid orange-gold CTAs) */
  --cp-gold:        #f59e0b;
  --cp-gold-dark:   #d97706;
  --cp-gold-light:  #fef3c7;

  /* Accent Coral — secondary highlight */
  --cp-coral:       #ef4444;
  --cp-coral-light: #fef2f2;

  /* Neutral Palette — refined grays */
  --cp-white:       #ffffff;
  --cp-bg:          #f8fafc;
  --cp-bg-alt:      #f1f5f9;
  --cp-card:        #ffffff;
  --cp-border:      #e2e8f0;
  --cp-border-soft: #f1f5f9;

  /* Text */
  --cp-text:        #0d1f3c;
  --cp-text-muted:  #475569;
  --cp-text-light:  #94a3b8;

  /* Trust / Positive Green tones */
  --cp-trust-bg:    #f0fdf4;
  --cp-trust-border:#86efac;
  --cp-trust-text:  #166534;

  /* Shadows */
  --cp-shadow-sm:   0 1px 6px rgba(13,31,60,.07);
  --cp-shadow-md:   0 4px 20px rgba(13,31,60,.1);
  --cp-shadow-lg:   0 12px 40px rgba(13,31,60,.14);
  --cp-shadow-xl:   0 24px 64px rgba(13,31,60,.18);

  /* Radius */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;
  --radius-xl:      20px;
  --radius-pill:    999px;

  /* Legacy Tailwind-compat vars */
  --radius:         0.5rem;
  --background:     0 0% 100%;
  --foreground:     222 47% 11%;
  --card:           0 0% 100%;
  --card-foreground:222 47% 11%;
  --primary:        142 76% 36%;
  --primary-foreground:0 0% 100%;
  --secondary:      142 70% 95%;
  --secondary-foreground:142 76% 36%;
  --muted:          210 40% 96.1%;
  --muted-foreground:215.4 16.3% 46.9%;
  --accent:         0 84% 60%;
  --border:         214.3 31.8% 91.4%;
  --ring:           142 76% 36%;
}

/* ===================================================
   GLOBAL BASE
   =================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--cp-white);
  color: var(--cp-text);
  line-height: 1.6;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cp-text);
}

a { color: var(--cp-green); transition: color .2s; }
a:hover { color: var(--cp-green-dark); }

img { max-width: 100%; height: auto; display: block; }


/* ===================================================
   RESPONSIVE CONTENT — mobile overflow fix
   Tables, iframes, video, charts, code blocks will
   scroll horizontally instead of breaking layout.
   =================================================== */

/* Applied to ALL content wrapper classes used in the theme */
.prose,
.page-content-body,
.blog-content-body,
.service-content-body,
.cp-single-body,
.country-single-article .service-content-body {
  /* Contain oversized children */
  overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Tables — horizontal scroll on small screens */
.prose table,
.page-content-body table,
.blog-content-body table,
.service-content-body table,
.cp-single-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.prose table th,
.prose table td,
.page-content-body table th,
.page-content-body table td,
.blog-content-body table th,
.blog-content-body table td,
.service-content-body table th,
.service-content-body table td {
  padding: .55rem .8rem;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.prose table th,
.page-content-body table th,
.blog-content-body table th,
.service-content-body table th {
  background: #0d1f3c;
  color: #fff;
  font-weight: 700;
}
.prose table tr:nth-child(even) td,
.page-content-body table tr:nth-child(even) td,
.blog-content-body table tr:nth-child(even) td,
.service-content-body table tr:nth-child(even) td { background: #f8fafc; }

/* iframes (YouTube embeds, charts, maps) */
.prose iframe,
.page-content-body iframe,
.blog-content-body iframe,
.service-content-body iframe {
  max-width: 100%;
  width: 100%;
  display: block;
}
/* Responsive iframe wrapper (e.g. YouTube 16:9) */
.cp-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin: 1.5rem 0;
}
.cp-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Pre / code blocks */
.prose pre,
.page-content-body pre,
.blog-content-body pre,
.service-content-body pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: .82rem;
  line-height: 1.65;
  white-space: pre;
}
.prose code,
.page-content-body code,
.blog-content-body code,
.service-content-body code {
  font-size: .85em;
  background: #f1f5f9;
  padding: .1em .4em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}
.prose pre code,
.page-content-body pre code,
.blog-content-body pre code,
.service-content-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* Images — always responsive */
.prose img,
.page-content-body img,
.blog-content-body img,
.service-content-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* Figure / chart containers */
.prose figure,
.page-content-body figure,
.blog-content-body figure,
.service-content-body figure {
  overflow-x: auto;
  max-width: 100%;
  margin: 1.5rem 0;
}

/* Canvas / chart.js / SVG charts */
.prose canvas,
.page-content-body canvas,
.blog-content-body canvas,
.service-content-body canvas,
.prose svg,
.page-content-body svg,
.blog-content-body svg,
.service-content-body svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  /* Force content padding reduction on mobile */
  .prose,
  .page-content-body,
  .blog-content-body,
  .service-content-body {
    font-size: .95rem;
  }
  /* Content area box: reduce side padding on mobile so content has full width */
  .px-8.pb-8.pt-5,
  .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
  /* Wide inline elements */
  .prose table,
  .page-content-body table,
  .blog-content-body table,
  .service-content-body table {
    font-size: .78rem;
  }
}

/* ===================================================
   PROSE TYPOGRAPHY
   =================================================== */
.prose p          { margin: 1.25em 0; }
.prose ul, .prose ol { margin: 1.25em 0; padding-left: 1.5em; }
.prose h2, .prose h3, .prose h4 { margin: 2em 0 1em; }
.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1.5em;
  border-left: 4px solid var(--cp-green);
  color: var(--cp-text-muted);
  font-style: italic;
}
.prose img, .prose figure { margin: 2em 0; }

/* ===================================================
   UTILITY CLASSES
   =================================================== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ===================================================
   NAVIGATION — FIXED + ENHANCED
   Single source of truth navigation system
   =================================================== */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

#mobile-menu,
#mobile-menu-toggle {
  display: none;
}

/* --- Nav link styles --- */
nav.sticky a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--cp-text);
  text-decoration: none;
  padding: .35rem .15rem;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav.sticky a:hover {
  color: var(--cp-green);
  border-bottom-color: var(--cp-green);
}

.current-menu-item > a {
  color: var(--cp-green) !important;
  font-weight: 700;
  border-bottom-color: var(--cp-green) !important;
}

@media (min-width: 901px) {
  .desktop-nav { display: flex; visibility: visible; opacity: 1; position: static; }
  body { overflow: auto; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  #mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10001;
    background: none;
    border: none;
    cursor: pointer;
  }
  #mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cp-white);
    padding: 90px 24px 40px;
    z-index: 10000;
    overflow-y: auto;
  }
  #mobile-menu.open,
  #mobile-menu:not(.hidden) { display: block; }
  body.menu-open, body.overflow-hidden { overflow: hidden; }
}

#mobile-menu nav a {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cp-text);
  text-decoration: none;
  margin-bottom: 16px;
  padding: .5rem 0;
  border-bottom: 1px solid var(--cp-border-soft);
}

/* Disable legacy nav systems */
.primary-menu, .main-navigation, .menu-toggle, .menu-overlay { display: none !important; }

/* ===================================================
   BUTTONS — ENHANCED v6
   =================================================== */
.cp-btn-primary,
.cp-btn-main,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--cp-green);
  color: var(--cp-white);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(22,163,74,.3);
  letter-spacing: .01em;
}
.cp-btn-primary:hover, .cp-btn-main:hover, .btn-primary:hover {
  background: var(--cp-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(22,163,74,.4);
  color: var(--cp-white);
}

.cp-btn-gold,
.cp-order-btn,
.cp-popup-cta,
.category-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cp-gold);
  color: var(--cp-navy);
  font-weight: 800;
  font-size: 1rem;
  padding: .9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(245,158,11,.35);
}
.cp-btn-gold:hover, .cp-order-btn:hover, .cp-popup-cta:hover, .category-cta-btn:hover {
  background: var(--cp-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,.45);
  color: var(--cp-navy);
}

.cp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cp-green);
  color: var(--cp-green);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: transparent;
  transition: all .2s;
}
.cp-btn-outline:hover { background: var(--cp-green); color: var(--cp-white); }

.cp-btn-white-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.5);
  color: var(--cp-white);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: transparent;
  transition: all .2s;
}
.cp-btn-white-outline:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.8); }

.cta-primary {
  display: inline-block;
  background: var(--cp-green);
  color: var(--cp-white);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.cta-primary:hover { background: var(--cp-green-dark); transform: translateY(-2px); color: var(--cp-white); }

/* ===================================================
   TRUST BAR — ENHANCED
   =================================================== */
.cp-trust-bar {
  background: var(--cp-trust-bg);
  border-bottom: 1px solid var(--cp-trust-border);
  padding: .9rem 1.5rem;
}
.cp-trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: .82rem;
  color: var(--cp-trust-text);
  font-weight: 600;
}

/* ===================================================
   HERO SECTION — PREMIUM v6
   EssayShark-inspired split layout with green identity
   =================================================== */
.cp-hero {
  background: linear-gradient(135deg, var(--cp-navy) 0%, var(--cp-navy-mid) 55%, var(--cp-green-dark) 100%);
  color: var(--cp-white);
  padding: 4.5rem 0 0;
  position: relative;
  overflow: hidden;
}
.cp-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34,197,94,.18) 0%, transparent 70%);
  pointer-events: none;
}

.cp-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.cp-hero-left { order: 1; }
.cp-hero-right { order: 2; display: flex; justify-content: center; }

/* Trust badges */
.cp-trust-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.cp-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-pill);
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
}

.cp-hero h1 {
  font-size: 2.7rem;
  line-height: 1.15;
  margin: 0 0 1.1rem;
  color: var(--cp-white);
}

.cp-hero h1 .cp-hero-accent { color: var(--cp-green-light); }

.cp-hero-sub {
  font-size: 1.1rem;
  opacity: .92;
  margin: 0 0 1.5rem;
  color: #dde8f5;
  line-height: 1.7;
}

.cp-hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.cp-hero-points li {
  padding: .3rem 0 .3rem 1.5rem;
  font-size: .95rem;
  color: #dde8f5;
  position: relative;
}
.cp-hero-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cp-green-light);
  font-weight: 800;
}

.cp-hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }

.cp-social-proof { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cp-avatars { display: flex; }
.cp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--cp-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .78rem; color: var(--cp-white);
  margin-left: -8px;
}
.cp-avatars .cp-avatar:first-child { margin-left: 0; }
.cp-social-proof p { font-size: .85rem; color: #dde8f5; margin: 0; }
.cp-social-proof strong { color: var(--cp-white); }

/* ORDER CARD — EssayShark-style premium card */
.cp-order-card {
  background: var(--cp-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--cp-shadow-xl);
  overflow: hidden;
  width: 100%;
  max-width: 430px;
}

.cp-order-card-header {
  background: linear-gradient(135deg, var(--cp-green), var(--cp-green-dark));
  color: var(--cp-white);
  text-align: center;
  padding: 1.25rem 1.5rem;
  position: relative;
}
.cp-order-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}
.cp-order-card-header h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 .25rem; color: var(--cp-white); }
.cp-order-card-header p { font-size: .85rem; margin: 0; opacity: .9; }

.cp-order-card-body { padding: 1.4rem 1.5rem; }

.cp-form-row { margin-bottom: .95rem; }
.cp-form-row label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--cp-text-muted);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cp-form-row select,
.cp-form-row .cp-input {
  width: 100%;
  border: 1.5px solid var(--cp-border);
  border-radius: var(--radius-sm);
  padding: .6rem .85rem;
  font-size: .9rem;
  color: var(--cp-text);
  background: var(--cp-white);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  appearance: none;
}
.cp-form-row select:focus,
.cp-form-row .cp-input:focus {
  border-color: var(--cp-green);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
  outline: none;
}

.cp-form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.cp-price-display {
  background: var(--cp-green-pale);
  border: 1px solid var(--cp-green-border);
  border-radius: var(--radius-md);
  padding: .65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.cp-price-label { color: var(--cp-text-muted); font-weight: 600; }
.cp-price-value { color: var(--cp-green); font-size: 1.25rem; font-weight: 800; }

.cp-order-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: .9rem;
}

.cp-order-note { text-align: center; font-size: .73rem; color: var(--cp-text-light); margin-top: .6rem; }

/* STATS BAR */
.cp-stats-bar {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.cp-stat {
  text-align: center;
  padding: .5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.15);
}
.cp-stat:last-child { border-right: none; }
.cp-stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--cp-gold); }
.cp-stat span { font-size: .8rem; color: #dde8f5; }

@media (max-width: 900px) {
  .cp-hero-container { grid-template-columns: 1fr; text-align: center; }
  .cp-trust-badges { justify-content: center; }
  .cp-hero-cta { justify-content: center; }
  .cp-social-proof { justify-content: center; }
  .cp-hero-points { text-align: left; display: inline-block; }
  .cp-hero h1 { font-size: 2rem; }
  .cp-hero-right { margin-top: 1.5rem; }
  .cp-stat { padding: .5rem 1rem; }
}

/* ===================================================
   SECTION UTILITIES
   =================================================== */
.cp-section-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.cp-section-header { text-align: center; margin-bottom: 3rem; }
.cp-section-header h2 { font-size: 2.1rem; font-weight: 800; color: var(--cp-text); margin: 0 0 .75rem; }
.cp-section-header p { font-size: 1.05rem; color: var(--cp-text-muted); max-width: 600px; margin: 0 auto; }
.cp-cta-center { text-align: center; margin-top: 2.5rem; }

/* ===================================================
   HOW IT WORKS — ENHANCED
   =================================================== */
.cp-how-it-works { padding: 5rem 0; background: var(--cp-bg); }

.cp-steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}
.cp-step {
  display: flex;
  gap: 1rem;
  background: var(--cp-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--cp-shadow-sm);
  border: 1px solid var(--cp-border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cp-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow-md);
  border-color: var(--cp-green-border);
}
.cp-step-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--cp-green), var(--cp-green-dark));
  color: var(--cp-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  flex-shrink: 0;
}
.cp-step-body h3 { font-size: 1rem; font-weight: 700; color: var(--cp-text); margin: 0 0 .4rem; }
.cp-step-body p { font-size: .88rem; color: var(--cp-text-muted); margin: 0; }

/* ===================================================
   FEATURES GRID
   =================================================== */
.cp-features { padding: 5rem 0; background: var(--cp-white); }

.cp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.75rem;
}
.cp-feature-card {
  background: var(--cp-bg);
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: all .25s;
}
.cp-feature-card:hover {
  border-color: var(--cp-green);
  box-shadow: 0 10px 28px rgba(22,163,74,.12);
  transform: translateY(-4px);
  background: var(--cp-green-pale);
}
.cp-feature-icon { font-size: 2rem; margin-bottom: .75rem; display: block; }
.cp-feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--cp-text); margin: 0 0 .5rem; }
.cp-feature-card p { font-size: .9rem; color: var(--cp-text-muted); margin: 0; line-height: 1.6; }

/* ===================================================
   GUARANTEES GRID
   =================================================== */
.cp-guarantees {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--cp-green-pale), #ecfdf5);
}
.cp-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.cp-guarantee-item {
  background: var(--cp-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--cp-green-border);
  transition: transform .2s, box-shadow .2s;
}
.cp-guarantee-item:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(22,163,74,.14); }
.cp-guarantee-icon { font-size: 2.2rem; display: block; margin-bottom: .75rem; }
.cp-guarantee-item h3 { font-size: 1rem; font-weight: 700; color: var(--cp-text); margin: 0 0 .4rem; }
.cp-guarantee-item p { font-size: .87rem; color: var(--cp-text-muted); margin: 0; }

/* ===================================================
   SERVICES GRID — HOMEPAGE TILES
   =================================================== */
.cp-services { padding: 5rem 0; background: var(--cp-white); }
.cp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.cp-service-tile {
  display: block;
  text-decoration: none;
  background: var(--cp-bg);
  border: 2px solid var(--cp-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all .25s;
}
.cp-service-tile:hover {
  border-color: var(--cp-green);
  background: var(--cp-green-pale);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(22,163,74,.14);
}
.cp-service-icon { font-size: 1.8rem; display: block; margin-bottom: .6rem; }
.cp-service-tile h3 { font-size: 1rem; font-weight: 700; color: var(--cp-text); margin: 0 0 .4rem; }
.cp-service-tile p { font-size: .85rem; color: var(--cp-text-muted); margin: 0 0 .75rem; line-height: 1.55; }
.cp-service-from { display: inline-block; font-size: .8rem; color: var(--cp-green); font-weight: 700; }

/* ===================================================
   SUBJECTS / DISCIPLINES
   =================================================== */
.cp-subjects { padding: 4rem 0; background: var(--cp-navy); }
.cp-subjects .cp-section-header h2 { color: var(--cp-white); }
.cp-subjects .cp-section-header p { color: #94a3b8; }
.cp-subjects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.cp-subjects-list li a {
  display: inline-block;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #dde8f5;
  text-decoration: none;
  padding: .65rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
}
.cp-subjects-list li a:hover {
  background: var(--cp-green);
  border-color: var(--cp-green);
  color: var(--cp-white);
  transform: translateY(-2px);
}

/* ===================================================
   CAROUSEL (Writers & Reviews)
   =================================================== */
.cp-carousel-wrapper { position: relative; display: flex; align-items: center; gap: .5rem; }
.cp-carousel-track-outer { flex: 1; overflow: hidden; border-radius: var(--radius-lg); }
.cp-carousel-track { display: flex; gap: 1.5rem; transition: transform .4s cubic-bezier(.25,.8,.25,1); will-change: transform; align-items: stretch; }

.cp-carousel-prev, .cp-carousel-next {
  width: 44px; height: 44px;
  background: var(--cp-white);
  border: 2px solid var(--cp-border);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  flex-shrink: 0;
  color: var(--cp-text);
  z-index: 2;
}
.cp-carousel-prev:hover, .cp-carousel-next:hover {
  background: var(--cp-green);
  border-color: var(--cp-green);
  color: var(--cp-white);
}

.cp-carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.cp-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cp-border);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.cp-dot.active { background: var(--cp-green); transform: scale(1.3); }

/* WRITER CARDS */
.cp-writers { padding: 5rem 0; background: var(--cp-bg); }
.cp-writer-card {
  min-width: 260px; max-width: 280px;
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--cp-shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.cp-writer-card:hover { transform: translateY(-4px); box-shadow: var(--cp-shadow-lg); }

.cp-writer-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; color: var(--cp-white);
  margin: 0 auto .5rem;
}
.cp-writer-info { text-align: center; }
.cp-writer-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--cp-text); margin: 0 0 .2rem; }
.cp-writer-title { font-size: .82rem; color: var(--cp-green); font-weight: 600; margin: 0 0 .4rem; }
.cp-writer-stars { color: #f59e0b; font-size: 1rem; margin-bottom: .5rem; }
.cp-writer-meta { list-style: none; padding: 0; margin: 0 0 .75rem; text-align: left; display: inline-block; }
.cp-writer-meta li { font-size: .78rem; color: var(--cp-text-muted); padding: .15rem 0; }
.cp-writer-subjects { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-bottom: .75rem; }
.cp-writer-subjects span {
  background: var(--cp-green-pale);
  border: 1px solid var(--cp-green-border);
  color: var(--cp-green-dark);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
}
.cp-writer-hire {
  display: block;
  background: var(--cp-green);
  color: var(--cp-white);
  text-align: center;
  padding: .6rem 1rem;
  border-radius: var(--radius-md);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.cp-writer-hire:hover { background: var(--cp-green-dark); color: var(--cp-white); }

/* REVIEW CARDS */
.cp-reviews { padding: 5rem 0; background: var(--cp-white); }
.cp-rating-summary { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.cp-rating-big { font-size: 3.5rem; font-weight: 800; color: var(--cp-text); line-height: 1; }
.cp-rating-stars { color: #f59e0b; font-size: 1.3rem; }
.cp-rating-summary p { color: var(--cp-text-muted); font-size: .9rem; margin: .25rem 0 0; }

.cp-review-card {
  /* JS sets exact pixel width — these are defaults only */
  box-sizing: border-box;
  flex-shrink: 0;
  min-height: 260px;          /* consistent rectangular height */
  display: flex;
  flex-direction: column;
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--cp-shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.cp-review-card:hover { transform: translateY(-3px); box-shadow: var(--cp-shadow-md); border-color: var(--cp-green-border); }

/* Header row: avatar | name+meta | stars — all on one line */
.cp-review-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .9rem;
  flex-wrap: nowrap;
}
.cp-reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: var(--cp-white);
  flex-shrink: 0;
}
.cp-review-header .cp-reviewer-info { flex: 1; min-width: 0; }
.cp-review-header strong { font-size: .92rem; color: var(--cp-text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-reviewer-meta { font-size: .75rem; color: var(--cp-text-light); margin: .1rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-review-stars { color: #f59e0b; font-size: .88rem; flex-shrink: 0; margin-left: auto; letter-spacing: 1px; }

/* Review body — grows to fill card */
.cp-review-text {
  flex: 1;
  margin: 0 0 .9rem;
  border-left: 3px solid var(--cp-green);
  padding-left: .9rem;
}
.cp-review-text p {
  font-size: .88rem;
  color: var(--cp-text-muted);
  line-height: 1.65;
  margin: 0;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: tag left, date right */
.cp-review-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; margin-top: auto; }
.cp-review-tag {
  background: var(--cp-green-pale);
  color: var(--cp-green-dark);
  border: 1px solid var(--cp-green-border);
  font-size: .72rem;
  font-weight: 600;
  padding: .18rem .65rem;
  border-radius: var(--radius-pill);
}
.cp-review-date { font-size: .72rem; color: #9ca3af; }

@media (max-width: 768px) {
  .cp-carousel-prev, .cp-carousel-next { width: 34px; height: 34px; font-size: 1.1rem; }
  .cp-writer-card { min-width: 220px; }
  .cp-review-card { padding: 1.1rem 1.1rem; min-height: 230px; }
  .cp-review-text p { -webkit-line-clamp: 4; }
}

/* ===================================================
   HOME FAQ ACCORDION
   =================================================== */
.cp-home-faq { padding: 5rem 0; background: var(--cp-bg); }
.cp-faq-list { max-width: 800px; margin: 0 auto; }
.cp-faq-item {
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--cp-white);
  transition: border-color .2s;
}
.cp-faq-item:focus-within { border-color: var(--cp-green); }
.cp-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .2s;
}
.cp-faq-question:hover { background: var(--cp-green-pale); }
.cp-faq-question h3 { font-size: 1rem; font-weight: 700; color: var(--cp-text); margin: 0; }
.cp-faq-toggle { font-size: 1.5rem; font-weight: 300; color: var(--cp-green); flex-shrink: 0; margin-left: 1rem; transition: transform .2s; }
.cp-faq-question[aria-expanded="true"] .cp-faq-toggle { transform: rotate(45deg); }
.cp-faq-question[aria-expanded="true"] { background: var(--cp-green-pale); }
.cp-faq-answer { display: none; padding: 0 1.5rem 1.2rem; border-top: 1px solid var(--cp-border); }
.cp-faq-answer.open { display: block; }
.cp-faq-answer p { font-size: .95rem; color: var(--cp-text-muted); line-height: 1.7; margin: 1rem 0 0; }
.cp-faq-answer a { color: var(--cp-green); font-weight: 600; }

/* ===================================================
   SERVICE ARCHIVE — ENHANCED
   =================================================== */
.single-service, .services-archive { max-width: 72rem; margin: auto; padding: 2.5rem 1.25rem; }
.service-header, .archive-header { margin-bottom: 2.5rem; }
.service-title, .archive-title { font-size: 2.25rem; font-weight: 700; color: var(--cp-text); }
.archive-intro { margin-top: .75rem; max-width: 42rem; color: var(--cp-text-muted); }
.services-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.service-card {
  background: var(--cp-card);
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.service-card:hover { box-shadow: var(--cp-shadow-md); border-color: var(--cp-green); transform: translateY(-3px); }
.service-title a { text-decoration: none; color: var(--cp-text); }
.service-excerpt { margin-top: .75rem; color: var(--cp-text-muted); }
.service-link { display: inline-block; margin-top: 1rem; color: var(--cp-green); font-weight: 600; }

/* Content with sidebar */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: 2.5rem;
  max-width: 80rem;
  margin: auto;
  padding: 2.5rem 1.25rem;
}
.content-area { min-width: 0; }
.service-sidebar { align-self: flex-start; }
.pricing-box, .faq, .related-services {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-md);
  background: var(--cp-card);
}
.pricing-box h2, .faq h2, .related-services h3 { margin-bottom: 1rem; }
.service-sidebar .pricing-box, .service-sidebar .faq { margin-top: 0; margin-bottom: 2rem; }
.service-related-wrap { grid-column: 1 / -1; margin-top: 3.5rem; }
.services-archive.with-sidebar { display: grid; grid-template-columns: 1fr 22rem; gap: 2.5rem; }
.services-archive .services-grid { grid-column: 1 / 2; }
.services-archive .sidebar { grid-column: 2 / 3; }

@media (max-width: 1024px) {
  .content-with-sidebar, .services-archive.with-sidebar { grid-template-columns: 1fr; }
  .service-related-wrap { grid-column: auto; }
}

/* FAQ typography */
.faq h3 { font-weight: 700; color: var(--cp-text); }
.faq p { font-weight: 400; color: var(--cp-text); }

/* ===================================================
   SERVICE CONTENT BODY STYLES
   =================================================== */
.service-content-body h2 { font-size: 1.5rem; font-weight: 800; color: var(--cp-text); margin: 2rem 0 1rem; }
.service-content-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--cp-text); margin: 1.5rem 0 .75rem; }
.service-content-body p { color: var(--cp-text-muted); line-height: 1.8; margin-bottom: 1rem; }
.service-content-body ul { padding-left: 1.5rem; color: var(--cp-text-muted); line-height: 1.8; }
.service-content-body li { margin-bottom: .5rem; }


/* Category/Tag: left-aligned, mobile-responsive heading sizes */
.cp-cat-h1 { font-size: 1.7rem; }
.cp-faq-h2 { font-size: 1.3rem; }
@media (max-width: 768px) {
  .cp-cat-h1 { font-size: 1.2rem !important; line-height: 1.35; }
  .cp-faq-h2 { font-size: 1rem !important; }
  .category-faq-title { font-size: 1rem !important; }
  .archive-header { text-align: left !important; }
}
/* ===================================================
   ARCHIVE / CATEGORY / TAG — PROFESSIONAL
   =================================================== */
.archive, .category, .tag, .taxonomy { background: var(--cp-bg); }
.archive .site-main, .category .site-main, .tag .site-main, .taxonomy .site-main {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1.5rem;
}

.archive-header { text-align: center; margin-bottom: 3rem; }
.archive-title { font-size: 2.2rem; font-weight: 700; color: var(--cp-text); }
.archive-description { max-width: 640px; margin: 1rem auto 0; color: var(--cp-text-muted); }

.archive-grid, .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.archive-card, .post-card {
  background: var(--cp-white);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--cp-shadow-sm);
  border: 1px solid var(--cp-border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.archive-card:hover, .post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow-md);
  border-color: var(--cp-green-border);
}
.archive-card-title a, .post-card-title a { font-size: 1.15rem; font-weight: 700; color: var(--cp-text); text-decoration: none; }
.archive-excerpt, .post-excerpt { margin-top: .8rem; color: var(--cp-text-muted); font-size: .95rem; }

.read-more { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--cp-green-dark); }
.read-more:hover { text-decoration: underline; }

/* Category FAQ */
.category-faq {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: var(--cp-green-pale);
  border: 1px solid var(--cp-green-border);
  border-radius: var(--radius-lg);
}
.category-faq-title { font-size: 1.9rem; font-weight: 800; margin-bottom: 2rem; color: #0f3d2e; }
.category-faq-list { display: grid; gap: 1.5rem; }
.category-faq-item {
  background: var(--cp-white);
  padding: 1.4rem 1.6rem;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--cp-green);
}
.category-faq-question { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; color: var(--cp-text); }
.category-faq-answer { font-size: .98rem; line-height: 1.65; color: var(--cp-text-muted); }

/* Category CTA Banner */
.category-cta-banner {
  margin: 3rem 0;
  background: linear-gradient(135deg, var(--cp-navy), var(--cp-green));
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--cp-white);
}
.category-cta-banner h2 { font-size: 1.7rem; font-weight: 800; color: var(--cp-white); margin: 0 0 .75rem; }
.category-cta-banner p { color: #dde8f5; margin: 0 auto 1.5rem; max-width: 560px; }

/* Archive pagination */
.archive-pagination { margin-top: 3rem; text-align: center; }
.archive-pagination .page-numbers {
  display: inline-block;
  padding: .5rem .85rem;
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-sm);
  margin: 0 .2rem;
  font-size: .9rem;
  color: var(--cp-text-muted);
  text-decoration: none;
  transition: all .2s;
}
.archive-pagination .page-numbers.current { background: var(--cp-green); color: var(--cp-white); border-color: var(--cp-green); }
.archive-pagination .page-numbers:hover { border-color: var(--cp-green); color: var(--cp-green); }

.archive-card-meta { display: flex; gap: 1rem; margin-top: .5rem; margin-bottom: .75rem; }
.archive-meta-item { font-size: .78rem; color: var(--cp-text-light); }
.archive-cat-desc { max-width: 700px; margin: 1rem auto 0; color: var(--cp-text-muted); font-size: .95rem; }

/* ===================================================
   HOMEPAGE BASE
   =================================================== */
.homepage { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, sans-serif; color: var(--cp-text); line-height: 1.6; }
.homepage .container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.homepage section { position: relative; padding: 5rem 0; }

/* Legacy hero (page-home.php fallback) */
.home-hero { background: linear-gradient(135deg, var(--cp-navy) 0%, var(--cp-navy-mid) 100%); color: var(--cp-white); padding: 90px 0 80px; }
.home-hero h1 { font-size: 44px; font-weight: 700; line-height: 1.15; margin-bottom: 18px; max-width: 640px; }

/* Order form */
.order-form-section { background: var(--cp-bg); padding: 60px 0 70px; }
.order-form {
  background: var(--cp-white);
  padding: 26px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  box-shadow: var(--cp-shadow-lg);
}
.order-form select, .order-form input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cp-border);
  background: var(--cp-white);
}
.order-form select:focus, .order-form input:focus { border-color: var(--cp-green); outline: none; }
.order-form button, .btn-primary {
  background: var(--cp-gold);
  color: var(--cp-navy);
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245,158,11,.35);
}
.order-form button:hover, .btn-primary:hover { background: var(--cp-gold-dark); transform: translateY(-1px); }

/* ===================================================
   DISCOUNT POPUP
   =================================================== */
.cp-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,31,60,.65);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: popupFadeIn .25s ease;
  touch-action: none;
}
@keyframes popupFadeIn { from { opacity: 0; } to { opacity: 1; } }

.cp-popup-box {
  background: var(--cp-white);
  border-radius: var(--radius-xl);
  max-height: 55vh;
  overflow-y: auto;
  padding: 1.4rem 1.5rem 1.2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: var(--cp-shadow-xl);
  animation: popupSlideUp .3s cubic-bezier(.25,.8,.25,1);
}
@keyframes popupSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.cp-popup-close {
  position: absolute; top: .6rem; right: .7rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cp-bg);
  border: none; border-radius: 50%;
  font-size: 1.4rem; color: var(--cp-text-muted);
  cursor: pointer;
  transition: background .2s, color .2s;
  z-index: 10;
}
.cp-popup-close:hover { background: var(--cp-border); color: var(--cp-text); }
.cp-popup-badge { display: inline-block; background: var(--cp-gold-light); color: #92400e; font-size: .7rem; font-weight: 700; letter-spacing: .05em; padding: .25rem .8rem; border-radius: var(--radius-pill); margin-bottom: .5rem; margin-top: .25rem; }
.cp-popup-title { font-size: 1.45rem; font-weight: 800; color: var(--cp-text); margin: 0 0 .5rem; line-height: 1.25; }
.cp-popup-highlight { color: var(--cp-green); }
.cp-popup-text { font-size: .88rem; color: var(--cp-text-muted); margin: 0 0 .75rem; line-height: 1.55; }
.cp-popup-code { background: var(--cp-green-pale); border: 2px dashed var(--cp-green); color: var(--cp-green-dark); padding: .1rem .55rem; border-radius: var(--radius-sm); font-family: monospace; font-size: .95rem; font-weight: 700; }
.cp-popup-perks { list-style: none; padding: 0; margin: 0 0 .75rem; text-align: left; display: inline-block; }
.cp-popup-perks li { font-size: .82rem; color: var(--cp-text-muted); padding: .15rem 0; }
.cp-popup-countdown { background: var(--cp-gold-light); color: #92400e; font-size: .82rem; font-weight: 600; padding: .4rem .9rem; border-radius: var(--radius-md); margin-bottom: .85rem; display: inline-block; }
.cp-popup-countdown strong { font-size: .95rem; }
.cp-popup-cta {
  display: block;
  background: linear-gradient(135deg, var(--cp-green), var(--cp-green-dark));
  color: var(--cp-white);
  font-weight: 800;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 5px 16px rgba(22,163,74,.3);
}
.cp-popup-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,.4); color: var(--cp-white); }
.cp-popup-dismiss { margin-top: .6rem; margin-bottom: 0; }
.cp-popup-skip { background: none; border: none; font-size: .8rem; color: var(--cp-text-light); cursor: pointer; text-decoration: underline; padding: .5rem; min-height: 36px; display: inline-block; transition: color .2s; }
.cp-popup-skip:hover { color: var(--cp-text-muted); }

@media (max-width: 480px) { .cp-popup-box { max-height: 70vh; padding: 1.2rem 1.1rem 1rem; border-radius: var(--radius-lg); } .cp-popup-title { font-size: 1.25rem; } }

/* ===================================================
   BLOG — CARDS & ARCHIVE
   =================================================== */
.blog-hero { background: linear-gradient(135deg, var(--cp-navy), var(--cp-navy-mid)); color: var(--cp-white); padding: 4rem 0; text-align: center; }
.blog-hero h1 { font-size: 2.2rem; font-weight: 800; color: var(--cp-white); margin-bottom: 1rem; }
.blog-hero p { color: #dde8f5; max-width: 600px; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.blog-hero .btn-primary { display: inline-block; background: var(--cp-gold); color: var(--cp-navy); font-weight: 800; padding: .85rem 2rem; border-radius: var(--radius-md); text-decoration: none; }

.blog-archive { padding: 4rem 0; background: var(--cp-bg); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.blog-card {
  background: var(--cp-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--cp-shadow-sm);
  border: 1px solid var(--cp-border);
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--cp-shadow-lg); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 1.25rem; }
.blog-category { font-size: .75rem; font-weight: 700; color: var(--cp-green); text-transform: uppercase; letter-spacing: .06em; }
.blog-title { font-size: 1.1rem; font-weight: 700; color: var(--cp-text); margin: .5rem 0; }
.blog-title a { text-decoration: none; color: inherit; }
.blog-excerpt { font-size: .88rem; color: var(--cp-text-muted); }

/* ===================================================
   ANIMATED CONTENT
   =================================================== */
.animated-content { padding: 5rem 0; background: var(--cp-white); max-width: 1200px; margin: 0 auto; }
.animated-content h2 { font-size: 1.9rem; font-weight: 800; color: var(--cp-text); text-align: center; margin-bottom: 2rem; padding: 0 1.5rem; }
.scroll-vertical { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; color: var(--cp-text-muted); font-size: .97rem; line-height: 1.8; }
.scroll-vertical p { margin-bottom: 1.25em; }

/* ===================================================
   SINGLE BLOG POST
   =================================================== */
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ===================================================
   COUNTRY CPT — SHARED STYLES (AU/CA/AE/CN/KW)
   =================================================== */
.country-hero {
  padding: 3.5rem 1.5rem 3rem;
  color: var(--cp-white);
  position: relative;
  overflow: hidden;
}
/* Each country has a slightly different accent — set via inline class */
.country-hero-au { background: linear-gradient(135deg, #003366 0%, var(--cp-navy-mid) 55%, var(--cp-green-dark) 100%); }
.country-hero-ca { background: linear-gradient(135deg, #8b0000 0%, var(--cp-navy) 55%, var(--cp-green-dark) 100%); }
.country-hero-ae { background: linear-gradient(135deg, #006400 0%, var(--cp-navy) 55%, var(--cp-green) 100%); }
.country-hero-cn { background: linear-gradient(135deg, #8b0000 0%, var(--cp-navy-mid) 55%, var(--cp-green-dark) 100%); }
.country-hero-kw { background: linear-gradient(135deg, #007a3d 0%, var(--cp-navy) 55%, #007a3d 100%); }
.country-hero-uk { background: linear-gradient(135deg, #002868 0%, var(--cp-navy) 55%, #c8102e 100%); }

.country-hero-inner { max-width: 1100px; margin: 0 auto; }
.country-breadcrumb { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: .75rem; }
.country-breadcrumb a { color: var(--cp-green-light); font-weight: 600; text-decoration: none; }
.country-flag-title { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.country-flag { font-size: 2rem; }
.country-h1 { font-size: 2.2rem; font-weight: 800; line-height: 1.3; margin: 0 0 1rem; max-width: 720px; color: var(--cp-white); }
.country-hero-sub { color: #dde8f5; max-width: 640px; line-height: 1.7; font-size: 1rem; margin: 0 0 1.5rem; }
.country-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.country-trust-note { color: rgba(255,255,255,.75); font-size: .82rem; }

/* Country archive grid */
.country-archive-wrap { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.country-archive-intro { background: var(--cp-white); border: 1px solid var(--cp-border); border-left: 5px solid var(--cp-green); border-radius: var(--radius-lg); padding: 1.75rem 2rem; margin-bottom: 2.5rem; max-width: 860px; }
.country-archive-intro h2 { font-size: 1.25rem; font-weight: 800; color: var(--cp-text); margin: 0 0 .75rem; }
.country-archive-intro p { color: var(--cp-text-muted); line-height: 1.8; margin: 0 0 .75rem; }
.country-archive-intro p:last-child { margin-bottom: 0; }

.country-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.country-card {
  background: var(--cp-white);
  border: 1px solid var(--cp-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--cp-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.country-card:hover { box-shadow: var(--cp-shadow-md); border-color: var(--cp-green-border); transform: translateY(-3px); }
.country-card-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.country-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--cp-text); margin: 0 0 .6rem; }
.country-card h3 a { text-decoration: none; color: inherit; }
.country-card h3 a:hover { color: var(--cp-green); }
.country-card-desc { color: var(--cp-text-muted); font-size: .875rem; line-height: 1.7; flex: 1; margin-bottom: 1.1rem; }
.country-card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.country-tag { background: var(--cp-bg); color: var(--cp-text-muted); padding: .2rem .6rem; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 600; }
.country-card-btns { display: flex; gap: .65rem; }
.country-card-btns a:first-child { flex: 1; background: var(--cp-green); color: var(--cp-white); padding: .6rem 0; border-radius: var(--radius-md); font-weight: 700; text-align: center; text-decoration: none; font-size: .88rem; transition: background .2s; }
.country-card-btns a:first-child:hover { background: var(--cp-green-dark); }
.country-card-btns a:last-child { padding: .6rem .9rem; border: 1px solid var(--cp-green); border-radius: var(--radius-md); color: var(--cp-green); font-weight: 700; text-decoration: none; font-size: .88rem; transition: all .2s; white-space: nowrap; }
.country-card-btns a:last-child:hover { background: var(--cp-green); color: var(--cp-white); }

/* Country single post */
.country-single-wrap { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; display: grid; grid-template-columns: 1fr 22rem; gap: 2.5rem; }
@media (max-width: 1024px) { .country-single-wrap { grid-template-columns: 1fr; } }
.country-single-article { min-width: 0; }
.country-single-sidebar { align-self: flex-start; }
.country-sidebar-box { background: var(--cp-white); border: 1px solid var(--cp-border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.country-sidebar-box h3 { font-size: 1rem; font-weight: 800; color: var(--cp-text); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--cp-green-pale); }

/* Country pricing table */
.country-pricing-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1rem 0; }
.country-pricing-table th { background: var(--cp-navy); color: var(--cp-white); padding: .75rem 1rem; text-align: center; font-size: .8rem; }
.country-pricing-table th:first-child { text-align: left; }
.country-pricing-table td { padding: .8rem 1rem; border-top: 1px solid var(--cp-border); text-align: center; color: var(--cp-text-muted); }
.country-pricing-table td:first-child { font-weight: 700; color: var(--cp-text); text-align: left; }
.country-pricing-table tr:nth-child(even) td { background: var(--cp-bg); }
.country-pricing-table tr.popular td { background: var(--cp-green-pale); }

/* Country info banner */
.country-info-banner {
  background: linear-gradient(135deg, var(--cp-navy), var(--cp-green-dark));
  color: var(--cp-white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.country-info-banner h2 { font-size: 1.5rem; font-weight: 800; color: var(--cp-white); margin: 0 0 .6rem; }
.country-info-banner p { color: #dde8f5; margin: 0 0 1.25rem; max-width: 540px; margin-left: auto; margin-right: auto; font-size: .95rem; }

/* Country facts box */
.country-facts { background: var(--cp-green-pale); border: 1px solid var(--cp-green-border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 2rem 0; }
.country-facts h3 { font-size: 1rem; font-weight: 800; color: #0f3d2e; margin: 0 0 1rem; }
.country-facts ul { list-style: none; padding: 0; margin: 0; }
.country-facts ul li { font-size: .9rem; color: var(--cp-trust-text); padding: .35rem 0; display: flex; align-items: flex-start; gap: .5rem; }
.country-facts ul li::before { content: '✓'; color: var(--cp-green); font-weight: 800; flex-shrink: 0; }

/* ===================================================
   HOMEPAGE RESTORATION
   =================================================== */
.cp-btn-secondary {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.5);
  color: var(--cp-white);
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.8rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all .2s;
}
.cp-btn-secondary:hover { background: rgba(255,255,255,.15); color: var(--cp-white); }

/* ===================================================
   SCHEMA / SEO HELPER
   =================================================== */
[itemscope] { display: inherit; }
nav a, nav a:visited { color: inherit; }

/* ===================================================
   MISC UTILITY
   =================================================== */
img { max-width: 100%; height: auto; display: block; }
@media (max-width: 768px) {
  .home-hero h1 { font-size: 34px; }
  .country-h1 { font-size: 1.7rem; }
}

/* =====================================================
   HOMEPAGE SCROLLABLE CONTAINER (EssayPro-style)
   ===================================================== */
.cp-home-scroll-wrapper {
  width: 100%;
  max-width: 1260px;
  margin: 2rem auto 3rem;
  height: 82vh;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 40px rgba(13,31,60,0.10);
  background: #fff;
  position: relative;
}
.cp-home-scroll-inner {
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
/* Custom scrollbar — subtle */
.cp-home-scroll-inner::-webkit-scrollbar {
  width: 6px;
}
.cp-home-scroll-inner::-webkit-scrollbar-track {
  background: transparent;
}
.cp-home-scroll-inner::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.cp-home-scroll-inner::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
/* Ensure homepage sections flow naturally inside the scroll box */
.cp-home-scroll-inner .homepage {
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 768px) {
  .cp-home-scroll-wrapper {
    height: 78vh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 0 2rem;
  }
}
