/* =========================================================
   KENNEDY KITS PAGE ONLY
   File: kennedykits-page.css
   Purpose: Keeps Kennedy Kits styling isolated from homepage.
========================================================= */

.kennedykits-body .kennedykits-main,
.kennedykits-body .kennedykits-main * {
  box-sizing: border-box;
}

.kennedykits-main {
  color: #ffffff;
}

.kennedykits-banner-shell {
  padding: 1rem 0 0.7rem;
}

.kennedykits-foundation-banner {
  width: 100%;
  height: auto;
  display: block;
}

/* SHARED PAGE ACCENT */
.kk-kicker {
  margin: 0 0 8px;
  color: #ffcc00;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* =========================================================
   TWENTYTWENTY COLORING SLIDER
========================================================= */

.kk-color-slider-section {
  padding: 0.5rem 0 1.5rem;
}

.kk-color-slider-card {
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.18), transparent 34%),
    linear-gradient(135deg, #2b0c36 0%, #540070 55%, #9900ce 100%);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}

.kk-color-slider-heading {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 22px;
  color: #ffffff;
}

.kk-color-slider-heading h1,
.kk-color-slider-heading h2,
.kk-pdf-heading h2,
.kennedykits-feature-inner h2,
.kennedykits-side-box h2,
.kennedykits-sponsor-copy h3 {
  font-family: Byington, Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.kk-color-slider-heading h1 {
  margin: 0 0 2px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
}

.kk-color-slider-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  color: #ffcc00;
}

.kk-color-slider-heading p {
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 760px;
}

.kk-slider-polish-wrap {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.kk-twentytwenty {
  position: relative;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  background: #ffffff;
  border: 8px solid #ffcc00;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.kk-twentytwenty img {
  width: 100%;
  height: auto;
  display: block;
}

.twentytwenty-container {
  min-height: 300px;
}

.twentytwenty-before-label,
.twentytwenty-after-label {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.twentytwenty-before-label:before,
.twentytwenty-after-label:before {
  background: rgba(75, 20, 117, 0.94) !important;
  color: #ffffff !important;
  border: 2px solid #ffcc00;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 900;
}

.twentytwenty-handle {
  border-color: #ffcc00 !important;
  background: #4b1475 !important;
  box-shadow: 0 0 0 6px rgba(255, 204, 0, 0.22), 0 0 24px rgba(255, 204, 0, 0.65);
  animation: kkHandlePulse 1.8s ease-in-out infinite;
}

.twentytwenty-left-arrow {
  border-right-color: #ffcc00 !important;
}

.twentytwenty-right-arrow {
  border-left-color: #ffcc00 !important;
}

.kk-drag-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffcc00;
  color: #25102f;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

.kk-drag-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.kk-drag-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4b1475;
  animation: kkDotPulse 1.2s ease-in-out infinite;
}

.kk-slider-sync-text {
  max-width: 760px;
  margin: 16px auto 0;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 700;
}

@keyframes kkHandlePulse {
  0% { box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.18), 0 0 18px rgba(255, 204, 0, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(255, 204, 0, 0.28), 0 0 28px rgba(255, 204, 0, 0.8); }
  100% { box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.18), 0 0 18px rgba(255, 204, 0, 0.5); }
}

@keyframes kkDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.65; }
}

/* =========================================================
   PHOTO GALLERY
========================================================= */

.kennedykits-gallery {
  padding: 0 0 1.6rem;
}

.kennedykits-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.75fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.kennedykits-photo {
  margin: 0;
  border: 8px solid #ffcc00;
  border-radius: 16px;
  overflow: hidden;
  background: #3b014e;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.kennedykits-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kennedykits-photo-small,
.kennedykits-photo-large {
  min-height: 340px;
}

/* =========================================================
   MESSAGE AREAS
========================================================= */

.kennedykits-message-section {
  padding: 0 0 1.2rem;
}

.kennedykits-feature-box {
  background:
    radial-gradient(circle at top right, rgba(255, 204, 0, 0.14), transparent 34%),
    linear-gradient(135deg, #2b0c36 0%, #540070 55%, #9900ce 100%);
  padding: 28px;
  border-radius: 20px;
  margin-bottom: 22px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.kennedykits-feature-inner {
  background: rgba(43, 12, 54, 0.78);
  border: 3px solid rgba(255, 204, 0, 0.38);
  border-radius: 12px;
  padding: 40px 42px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kennedykits-feature-inner h2 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  text-align: center;
  color: #ffcc00;
}

.kennedykits-feature-inner p {
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  text-align: center;
}

.focus-word {
  color: #ffcc00;
}

.kennedykits-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.kennedykits-side-box {
  background: linear-gradient(180deg, #cb00ff 0%, #9700c8 100%);
  border-radius: 16px;
  padding: 30px;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.kennedykits-side-box h2 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 2.3vw, 2.35rem);
  color: #ffcc00;
}

.kennedykits-side-box p {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.55;
}

.kennedykits-sponsor-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 255px;
  background: #ffcc00;
  color: #1d1d1d;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.kennedykits-sponsor-copy {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kennedykits-sponsor-copy h3 {
  margin: 0 0 10px;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #4b1475;
}

.kennedykits-sponsor-copy p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.45;
}

.kennedykits-card-btn {
  display: inline-block;
  width: fit-content;
  background: #6d1c8f;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 8px;
}

.kennedykits-card-btn:hover {
  background: #4f1167;
  color: #ffffff;
}

.kennedykits-sponsor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   PDF FLIP VIEWER
========================================================= */

.kk-pdf-section {
  padding: 0 0 1.5rem;
}

.kk-pdf-card {
  background: #ffffff;
  color: #1d1d1d;
  border: 8px solid #ffcc00;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.kk-pdf-heading {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
}

.kk-pdf-heading .kk-kicker {
  color: #540070;
}

.kk-pdf-heading h2 {
  color: #540070;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  margin: 0 0 12px;
}

.kk-pdf-heading p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.04rem;
}

.kk-pdf-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.kk-pdf-btn,
.kk-pdf-link {
  border: none;
  border-radius: 999px;
  background: #540070;
  color: #ffffff;
  font-weight: 900;
  padding: 11px 20px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.kk-pdf-btn:hover,
.kk-pdf-link:hover {
  background: #2b0c36;
  color: #ffffff;
  transform: translateY(-2px);
}

.kk-pdf-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.kk-pdf-page-info {
  min-width: 150px;
  text-align: center;
  font-weight: 900;
  color: #540070;
}

.kk-pdf-viewer-shell {
  position: relative;
  max-width: 920px;
  min-height: 520px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.10), transparent 8%, transparent 92%, rgba(0,0,0,0.10)),
    #f3f0f5;
  overflow: hidden;
}

.kk-pdf-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 14px 26px rgba(0,0,0,0.20);
  transform-origin: center right;
}

.kk-pdf-canvas.is-flipping {
  animation: kkPageFlip 0.36s ease;
}

.kk-pdf-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #540070;
  font-weight: 900;
  background: rgba(255,255,255,0.78);
}

.kk-pdf-loading.is-hidden {
  display: none;
}

.kk-pdf-error {
  max-width: 820px;
  margin: 16px auto 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff1f1;
  color: #8a1111;
  font-weight: 800;
  text-align: center;
}

.kk-pdf-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.kk-pdf-link-gold {
  background: #ffcc00;
  color: #1d1d1d;
}

.kk-pdf-link-gold:hover {
  background: #540070;
  color: #ffffff;
}

@keyframes kkPageFlip {
  0% { opacity: 0.65; transform: rotateY(-10deg) scale(0.985); }
  100% { opacity: 1; transform: rotateY(0) scale(1); }
}

/* =========================================================
   CTA
========================================================= */

.kennedykits-cta-section {
  padding: 0 0 1.2rem;
}

.kennedykits-cta-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.kennedykits-cta {
  min-width: 280px;
  min-height: 92px;
  padding: 16px 22px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.kennedykits-cta-contact {
  background: linear-gradient(180deg, #cb00ff 0%, #9100c2 100%);
  color: #ffffff;
  gap: 14px;
}

.kennedykits-cta-contact img {
  width: 72px;
  height: auto;
  display: block;
}

.kennedykits-cta-contact span {
  font-size: 1.35rem;
  line-height: 1.1;
}

.kennedykits-cta-donate {
  background: #ffcc00;
  color: #111111;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
}

.kennedykits-cta:hover {
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {
  .kennedykits-gallery-grid,
  .kennedykits-lower-grid {
    grid-template-columns: 1fr;
  }

  .kennedykits-sponsor-card {
    grid-template-columns: 1fr;
  }

  .kennedykits-sponsor-photo {
    min-height: 260px;
  }

  .kk-pdf-viewer-shell {
    min-height: 460px;
  }
}

@media (max-width: 767.98px) {
  .kk-color-slider-card,
  .kennedykits-feature-inner,
  .kennedykits-side-box,
  .kk-pdf-card {
    padding: 24px 20px;
  }

  .kennedykits-feature-inner {
    min-height: auto;
  }

  .kennedykits-side-box {
    min-height: auto;
  }

  .kennedykits-photo-small,
  .kennedykits-photo-large {
    min-height: 240px;
  }

  .kk-twentytwenty,
  .kk-pdf-card {
    border-width: 5px;
  }

  .kk-twentytwenty {
    border-radius: 14px;
  }

  .kk-pdf-viewer-shell {
    min-height: 340px;
    padding: 10px;
  }

  .kk-pdf-toolbar {
    gap: 10px;
  }

  .kk-pdf-btn,
  .kk-pdf-link {
    width: 100%;
    max-width: 260px;
  }

  .kennedykits-cta {
    width: 100%;
    max-width: 420px;
  }

  .kennedykits-cta-contact span {
    font-size: 1.15rem;
  }

  .kennedykits-cta-donate {
    font-size: 1.8rem;
  }

  .kk-drag-hint {
    font-size: 0.9rem;
    padding: 9px 14px;
  }

  .kk-slider-sync-text {
    font-size: 0.95rem;
  }
}
  /* =========================================================
   PDF VIEWER – HARD CENTER FIX (LIVE SITE CORRECTION)
========================================================= */

	/* Center entire PDF card */
	.kk-pdf-card {
	  max-width: 1100px;
	  margin: 0 auto;
	  text-align: center;
	}

	/* Fix toolbar alignment (Bootstrap override) */
	.kk-pdf-toolbar {
	  display: flex !important;
	  justify-content: center !important;
	  align-items: center !important;
	  gap: 28px !important;
	  margin: 24px auto 26px !important;
	}

	/* Make buttons consistent online */
	.kk-pdf-btn {
	  min-width: 130px;
	  min-height: 54px;
	  border-radius: 999px !important;
	  background: #540070 !important;
	  color: #ffffff !important;
	  font-weight: 900;
	  font-size: 1.05rem;
	}

	/* Page text spacing fix */
	.kk-pdf-page-info {
	  min-width: 150px;
	  text-align: center;
	  font-weight: 900;
	  color: #540070 !important;
	  font-size: 1.1rem;
	}

	/* THIS is the real problem */
	.kk-pdf-viewer-shell {
	  width: 100%;
	  max-width: 920px;
	  min-height: 520px;
	  margin: 0 auto !important;

	  display: flex;                 /* force centering */
	  justify-content: center;       /* horizontal center */
	  align-items: flex-start;       /* top aligned like your design */
	}

	/* Force canvas to center */
	.kk-pdf-canvas {
	  display: block;
	  margin: 0 auto !important;
	}

	/* Center bottom buttons */
	.kk-pdf-actions {
	  display: flex !important;
	  justify-content: center !important;
	  gap: 18px !important;
	  margin-top: 20px;
	}