:root {
  --ctlp-vh: 1vh;
  --ctlp-bg-950: #f8fafc;
  --ctlp-bg-900: #ffffff;
  --ctlp-bg-800: #f1f5f9;
  --ctlp-text-50: #0f172a;
  --ctlp-text-200: #334155;
  --ctlp-text-400: #64748b;
  --ctlp-accent: #fc0084;
  --ctlp-accent-hover: #d1006e;
  --ctlp-border: #e2e8f0;
  --ctlp-font-sans: 'DM Sans', sans-serif;
  --ctlp-font-serif: 'Playfair Display', serif;
}

.ctlp-wrapper {
  font-family: var(--ctlp-font-sans);
  background-color: #f8fafc;
  background-image: 
    radial-gradient(at 80% 0%, hsla(328, 100%, 70%, 0.12) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(280, 80%, 75%, 0.12) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(340, 90%, 75%, 0.12) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(310, 100%, 80%, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--ctlp-text-200);
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.ctlp-wrapper * {
  box-sizing: inherit;
}

.ctlp-font-display {
  font-family: var(--ctlp-font-serif);
}

/* Animations */
@keyframes ctlpFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.ctlp-anim { opacity: 0; }
.ctlp-anim.visible { animation: ctlpFadeUp 0.7s ease forwards; font-family: roboto; }



.ctlp-accent-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ctlp-accent), var(--ctlp-accent-hover), transparent);
  border-radius: 2px;
  max-width: 320px;
  margin: 0 auto;
}

/* Common Section */
.ctlp-section {
  padding: 20px 24px;
}
.ctlp-section-dark { 
  background: transparent; 
}
.ctlp-section-slate { 
  background: rgba(255, 255, 255, 0.4); 
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.ctlp-section-slate-light { 
  background: rgba(255, 255, 255, 0.6); 
  border-top: 1px dashed rgba(0, 0, 0, 0.05);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.ctlp-container {
  max-width: 1152px;
  margin: 0 auto;
}

.ctlp-section-title {
  text-align: center;
  font-size: clamp(1.7rem, 5vw, 2.25rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--ctlp-text-50) 0%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ctlp-section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  color: #374151;
  font-family: roboto;
  font-size: 1rem;
}

/* Hero Section */
.ctlp-hero {
  position: relative;
  width: 100%;
  height: calc(80 * min(var(--ctlp-vh, 1vh), 1vh));
  min-height: 500px;
}

.ctlp-hero-bg-layer {
  position: absolute;
  inset: 0;
  background-image: var(--ctlp-hero-bg);
  background-size: cover;
  background-position: center;
}

.ctlp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,23,42,0.92) 0%, rgba(30,58,95,0.6) 50%, rgba(15,23,42,0.2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ctlp-hero-content {
  text-align: center;
  max-width: 800px;
}

.ctlp-hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.ctlp-hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  max-width: 650px;
  margin: 0 auto;
}

/* Stats Bar */
.ctlp-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 16px;
  z-index: 10;
}

.ctlp-stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ctlp-stat-item {
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.ctlp-stat-item:first-child { border-left: none; }

.ctlp-stat-val {
  color: var(--ctlp-accent);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ctlp-stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* Featured Card */
.ctlp-featured-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 8px solid #ffffff;
  height: calc(50 * min(var(--ctlp-vh, 1vh), 1vh));
  min-height: 420px;
}

.ctlp-featured-bg-layer {
  position: absolute;
  inset: 0;
  background-image: var(--ctlp-feat-bg);
  background-size: cover;
  background-position: center;
}

.ctlp-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,6,23,0.95) 0%, rgba(2,6,23,0.4) 40%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.ctlp-featured-overlay h2 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.ctlp-featured-overlay h2.ctlp-anim.visible {
  font-family: 'Playfair Display', serif;
}

.ctlp-featured-overlay p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  line-height: 1.6;
}

/* Video Playlist */
.ctlp-playlist-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

@media (min-width: 992px) {
  .ctlp-playlist-container {
    grid-template-columns: 2fr 1fr;
  }
}

.ctlp-main-player {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.ctlp-main-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.ctlp-playlist-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom Scrollbar for playlist */
.ctlp-playlist-sidebar::-webkit-scrollbar {
  width: 6px;
}
.ctlp-playlist-sidebar::-webkit-scrollbar-track {
  background: var(--ctlp-bg-800);
  border-radius: 10px;
}
.ctlp-playlist-sidebar::-webkit-scrollbar-thumb {
  background: var(--ctlp-text-400);
  border-radius: 10px;
}
.ctlp-playlist-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--ctlp-accent);
}

.ctlp-playlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--ctlp-bg-900);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.ctlp-playlist-item:hover {
  background: var(--ctlp-bg-800);
}

.ctlp-playlist-item.active {
  background: rgba(252, 0, 132, 0.08);
  border-color: rgba(252, 0, 132, 0.3);
}

.ctlp-playlist-thumb {
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  position: relative;
}

.ctlp-playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.ctlp-playlist-item:hover .ctlp-playlist-thumb img,
.ctlp-playlist-item.active .ctlp-playlist-thumb img {
  opacity: 1;
}

.ctlp-playlist-info {
  flex-grow: 1;
}

.ctlp-playlist-info h4 {
  font-size: 0.95rem;
  color: var(--ctlp-text-50);
  margin: 0 0 6px 0;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.ctlp-playlist-format {
  font-size: 0.7rem;
  color: var(--ctlp-accent);
  background: rgba(252, 0, 132, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

/* Gallery */
.ctlp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  grid-auto-rows: 200px;
}
@media (min-width: 768px) {
  .ctlp-gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.ctlp-gallery-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--ctlp-border);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  cursor: pointer;
}

.ctlp-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.ctlp-gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.15), 0 0 30px rgba(252,0,132,0.1);
  border-color: var(--ctlp-accent);
  z-index: 2;
}

.ctlp-gallery-item:hover img {
  transform: scale(1.05);
}

/* Gallery Modal */
.ctlp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ctlp-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ctlp-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ctlp-modal-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ctlp-modal.active .ctlp-modal-content {
  transform: scale(1);
}

.ctlp-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  object-fit: contain;
}

.ctlp-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s;
}

.ctlp-modal-close:hover {
  color: var(--ctlp-accent);
}

.ctlp-col-span-2 { grid-column: span 2 / span 2; }
.ctlp-row-span-2 { grid-row: span 2 / span 2; }

/* Activities */
.ctlp-activities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .ctlp-activities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ctlp-activities-grid { grid-template-columns: repeat(4, 1fr); }
}

.ctlp-activity-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.04);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ctlp-activity-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.1), 0 0 20px rgba(252,0,132,0.1);
  border-color: var(--ctlp-accent);
}

.ctlp-activity-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.ctlp-activity-card:hover img {
  transform: scale(1.05);
}

.ctlp-activity-content {
  padding: 20px;
  font-family: roboto;
}

.ctlp-activity-content h3 {
  font-weight: 700;
  color: var(--ctlp-text-50);
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.ctlp-activity-content p {
  color: var(--ctlp-text-400);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Parent Consulting */
.ctlp-consulting-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

@media (min-width: 768px) {
  .ctlp-consulting-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ctlp-consulting-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .ctlp-consulting-card {
    grid-column: span 4;
  }
  .ctlp-consulting-featured {
    grid-column: span 8;
  }
}

.ctlp-consulting-card {
  display: flex;
  flex-direction: column;
  align-self: start;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ctlp-consulting-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #fb7185 0%, #fc0084 48%, #ec4899 100%);
  opacity: 0.65;
}

.ctlp-consulting-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  border-color: rgba(252, 0, 132, 0.45);
}

.ctlp-consulting-media {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.ctlp-consulting-featured .ctlp-consulting-media {
  height: 300px;
}

.ctlp-consulting-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.ctlp-consulting-card:hover .ctlp-consulting-media img {
  transform: scale(1.09);
}

.ctlp-consulting-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.06) 45%, transparent 70%);
  pointer-events: none;
}

.ctlp-consulting-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #fc0084 0%, #fb7185 100%);
  box-shadow: 0 6px 14px rgba(252, 0, 132, 0.35);
}

.ctlp-consulting-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctlp-consulting-body h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.3;
}

.ctlp-consulting-body p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ctlp-consulting-body p:empty {
  display: none;
}

.ctlp-consulting-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #be185d;
  font-weight: 700;
  font-size: 0.84rem;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ctlp-consulting-link:hover {
  color: #9d174d;
}

.ctlp-consulting-link i {
  width: 14px;
  height: 14px;
}

.ctlp-consulting-pagination {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ctlp-consulting-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ctlp-consulting-page-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ctlp-consulting-page-btn:hover {
  border-color: #f472b6;
  color: #be185d;
}

.ctlp-consulting-page-btn.active {
  border-color: #fc0084;
  background: linear-gradient(135deg, #fc0084 0%, #f43f5e 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(252, 0, 132, 0.35);
}

.ctlp-consulting-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .ctlp-stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .ctlp-stat-item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
  }
  .ctlp-stat-item:first-child {
    border-top: none;
    padding-top: 0;
  }
  .ctlp-hero {
    height: auto;
    padding-bottom: 200px; /* Space for stacked stats */
  }
  .ctlp-featured-overlay { padding: 24px; }
}

/* Books & Toys */
.ctlp-books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .ctlp-books-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ctlp-books-grid { grid-template-columns: repeat(3, 1fr); }
}

.ctlp-book-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.ctlp-book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08), 0 0 20px rgba(252,0,132,0.1);
  border-color: var(--ctlp-accent);
}

.ctlp-book-image {
  width: 100%;
  height: 240px;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}

.ctlp-book-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.ctlp-book-card:hover .ctlp-book-image img {
  transform: scale(1.05);
}

.ctlp-book-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--ctlp-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(252,0,132,0.3);
}

.ctlp-book-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.ctlp-book-content h3 {
  font-weight: 700;
  color: var(--ctlp-text-50);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.ctlp-book-content p {
  color: var(--ctlp-text-200);
  font-family: roboto;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.ctlp-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ctlp-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.ctlp-book-btn:hover {
  color: var(--ctlp-accent-hover);
  gap: 12px;
}
