/*
Theme Name: YDC Child
Template: twentytwentyfour
Version: 1.0
*/

:root {
  --ydc-bg: #FDFBF7;
  --ydc-navy: #0A1128;
  --ydc-red: #CE2A3A;
  --ydc-yellow: #F5B01E;
  --ydc-blue: #1171B5;
  --ydc-border-width: 3px;
  --ydc-shadow: 6px 6px 0px var(--ydc-navy);
  --ydc-shadow-hover: 10px 10px 0px var(--ydc-navy);
  --ydc-border: 3px solid var(--ydc-navy);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

/* Base Styles */
body, button, input, select, textarea {
  font-family: 'Inter', sans-serif !important;
  color: var(--ydc-navy);
  background-color: var(--ydc-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, .wp-block-heading {
  font-family: 'Manrope', sans-serif !important;
  color: var(--ydc-navy);
  font-weight: 800;
}

a {
  color: var(--ydc-navy);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--ydc-blue);
}

html {
  scroll-behavior: smooth;
}

.ydc-main-container {
  width: 100%;
}

/* Handwritten Font Accents */
.ydc-handwritten {
  font-family: 'Patrick Hand', cursive !important;
  font-size: 1.5rem;
  color: var(--ydc-navy);
  font-weight: 700;
}

/* Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Comic Panel Style Wrappers (Webcomic Neo-brutalisim) ===== */
/* Highlights: Comic Panel */
.ydc-highlights-wrapper {
  max-width: 1200px;
  width: calc(100% - 48px) !important;
  margin: 64px auto !important;
  background-color: #FFFFFF;
  border: 4px solid var(--ydc-navy) !important;
  border-radius: 32px !important;
  box-shadow: 16px 16px 0px var(--ydc-navy) !important;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Testimonials: Bảng ghim giấy bần (Corkboard Style) */
.ydc-testimonials-wrapper {
  max-width: 1200px;
  width: calc(100% - 48px) !important;
  margin: 80px auto !important;
  /* Corkboard texture simulated with CSS */
  background-color: #E2DDD5;
  background-image: radial-gradient(rgba(10, 17, 40, 0.12) 1.2px, transparent 0), radial-gradient(rgba(10, 17, 40, 0.12) 1.2px, transparent 0);
  background-size: 8px 8px;
  background-position: 0 0, 4px 4px;
  border: 6px solid #4E3629 !important; /* Viền gỗ nâu đậm */
  border-radius: 12px !important; /* Bo góc dẹt giống bảng gỗ */
  box-shadow: 
    inset 0 0 40px rgba(10, 17, 40, 0.12),
    16px 16px 0px var(--ydc-navy) !important;
  box-sizing: border-box;
  position: relative;
  overflow: visible; /* Cho phép đinh ghim nhô lên */
}

/* Các section còn lại (Pillars, Stats): Thả tự do */
.ydc-about-wrapper,
.ydc-stats-wrapper {
  max-width: 1200px;
  width: 100% !important;
  margin: 48px auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  box-sizing: border-box;
  overflow: visible;
}

.ydc-about-inner,
.ydc-highlights-inner,
.ydc-testimonials-inner,
.ydc-hero,
.ydc-about,
.ydc-core-values,
.ydc-next-workshop,
.ydc-recent-workshops,
.ydc-recent-posts,
.ydc-home-highlights {
  padding: 64px 24px;
  max-width: 1400px !important;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

.ydc-workshop-list,
.ydc-insights-list {
  padding: 64px 24px;
  max-width: 1200px !important;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

.ydc-workshop-details {
  padding: 64px 24px;
  max-width: 1000px !important;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* Header & Menu Styling */
header.wp-block-template-part {
  background-color: var(--ydc-bg);
  padding: 0;
}

/* ===== YDC là ai? Section ===== */
.ydc-who {
  background-color: var(--ydc-yellow);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.ydc-who-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 32px;
  text-align: center;
  position: relative;
}

/* Decorative stars */
.ydc-who-star {
  position: absolute;
  opacity: 0.35;
  pointer-events: none;
}
.ydc-who-star-1 {
  width: 80px; height: 80px;
  top: 24px; left: 24px;
  animation: spinSlow 12s linear infinite;
}
.ydc-who-star-2 {
  width: 40px; height: 40px;
  bottom: 32px; right: 32px;
  animation: spinSlow 8s linear infinite reverse;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.ydc-who-label {
  display: inline-block;
  background-color: var(--ydc-navy);
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.ydc-who-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ydc-navy);
  margin: 0 0 28px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ydc-who-desc {
  font-size: 1.0625rem;
  color: var(--ydc-navy);
  line-height: 1.7;
  margin: 0 0 16px 0;
  opacity: 0.9;
}

.ydc-who-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.ydc-btn-navy {
  background-color: var(--ydc-navy);
  color: #FFFFFF;
}

.ydc-btn-outline-navy {
  background-color: transparent;
  color: var(--ydc-navy);
  border: 3px solid var(--ydc-navy);
  box-shadow: 4px 4px 0px var(--ydc-navy);
}

.ydc-btn-outline-navy:hover {
  background-color: var(--ydc-navy);
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .ydc-who-title { font-size: 2.25rem; }
  .ydc-who-inner { padding: 64px 24px; }
  .ydc-who-star-1 { width: 50px; height: 50px; top: 12px; left: 12px; }
  .ydc-who-star-2 { width: 28px; height: 28px; bottom: 16px; right: 16px; }
}

/* Neo-brutalist Buttons */

.ydc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--ydc-navy);
  color: #FFFFFF;
  font-weight: 700;
  padding: 12px 24px;
  border: var(--ydc-border);
  border-radius: 40px;
  box-shadow: 4px 4px 0px rgba(0,0,0,0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.ydc-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--ydc-navy);
  color: #FFFFFF;
}

.ydc-btn-red {
  background-color: var(--ydc-red);
}

.ydc-btn-yellow {
  background-color: var(--ydc-yellow);
  color: var(--ydc-navy);
}

.ydc-btn-blue {
  background-color: var(--ydc-blue);
}

.ydc-btn-outline {
  background-color: transparent;
  color: var(--ydc-navy);
}

/* Hero Section */
.ydc-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.ydc-hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ydc-hero-badge {
  background-color: var(--ydc-navy);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8125rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ydc-hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.ydc-underline-doodle {
  position: relative;
  display: inline-block;
  color: var(--ydc-red);
}

.ydc-underline-doodle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 5 C 20 2, 40 8, 97 5' stroke='%23CE2A3A' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
}

.ydc-hero-text p {
  font-size: 1.125rem;
  color: var(--ydc-navy);
  opacity: 0.9;
  max-width: 480px;
  margin: 0;
}

.ydc-hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Photo Collage in Hero */
.ydc-collage-bg-circle {
  position: absolute;
  width: 320px;
  height: 320px;
  background-color: var(--ydc-yellow);
  border: var(--ydc-border);
  border-radius: 50%;
  top: 10%;
  left: 5%;
  z-index: 1;
}

.ydc-collage-bg-outline {
  position: absolute;
  width: 300px;
  height: 300px;
  border: var(--ydc-border);
  border-radius: 50%;
  bottom: 10%;
  right: 5%;
  z-index: 1;
}

.ydc-hero-main-photo {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 400px;
  background-color: #FFFFFF;
  padding: 16px 16px 40px 16px;
  border: none;
  box-shadow: var(--ydc-shadow);
  /* Simulated torn paper look */
  clip-path: polygon(
    0% 0%, 5% 2%, 10% 0%, 15% 3%, 20% 0%, 25% 2%, 30% 0%, 35% 3%, 40% 0%, 45% 2%, 50% 0%, 55% 3%, 60% 0%, 65% 2%, 70% 0%, 75% 3%, 80% 0%, 85% 2%, 90% 0%, 95% 3%, 100% 0%,
    98% 10%, 100% 20%, 97% 30%, 100% 40%, 98% 50%, 100% 60%, 97% 70%, 100% 80%, 98% 90%, 100% 100%,
    95% 98%, 90% 100%, 85% 97%, 80% 100%, 75% 98%, 70% 100%, 65% 97%, 60% 100%, 55% 98%, 50% 100%, 45% 97%, 40% 100%, 35% 98%, 30% 100%, 25% 97%, 20% 100%, 15% 98%, 10% 100%, 5% 97%, 0% 100%,
    2% 90%, 0% 80%, 3% 70%, 0% 60%, 2% 50%, 0% 40%, 3% 30%, 0% 20%, 2% 10%
  );
  transform: rotate(-2deg);
}

.ydc-hero-main-photo img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* Sections Base */
.ydc-section-title {
  display: inline-block;
  background-color: var(--ydc-navy);
  color: #FFFFFF !important;
  padding: 12px 32px;
  border: 3px solid var(--ydc-navy);
  border-radius: 16px;
  font-size: 1.85rem;
  font-weight: 800;
  box-shadow: 5px 5px 0px var(--ydc-yellow);
  margin: 0 auto 56px auto;
  text-align: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  letter-spacing: -0.01em;
  font-family: 'Manrope', sans-serif;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  z-index: 5;
}

.ydc-section-title:hover {
  transform: translateX(-50%) rotate(-1.5deg) translate(-4px, -4px);
  box-shadow: 9px 9px 0px var(--ydc-yellow);
}

/* Trụ cột Hoạt động (Core Pillars) */
.ydc-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
  position: relative;
}

.ydc-pillars-bg-doodle {
  position: absolute;
  inset: -20px;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ydc-pillar-arrow {
    display: none !important;
  }
}

.ydc-pillar-card {
  position: relative;
  padding: 44px 28px;
  text-align: center;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ydc-pillar-card-1 { transform: rotate(-2.5deg); }
.ydc-pillar-card-2 { transform: rotate(1deg); }
.ydc-pillar-card-3 { transform: rotate(2.5deg); }

.ydc-pillar-card:hover {
  transform: rotate(0deg) translateY(-8px);
}

.ydc-svg-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: drop-shadow(6px 6px 0px var(--ydc-navy));
}

.ydc-pillar-card:hover .ydc-svg-bg {
  filter: drop-shadow(10px 10px 0px var(--ydc-navy));
}

.ydc-pillar-image {
  width: 96px;
  height: 96px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 2.5px solid var(--ydc-navy);
  box-shadow: 3px 3px 0px var(--ydc-navy);
  overflow: hidden;
  transform: rotate(-3deg);
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.ydc-pillar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ydc-pillar-text-box {
  background-color: #FFFFFF;
  border: 2.5px solid var(--ydc-navy);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 4px 4px 0px var(--ydc-navy);
  margin-bottom: 20px;
}

.ydc-pillar-card h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--ydc-navy) !important;
}

.ydc-pillar-card p {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  color: var(--ydc-navy) !important;
  opacity: 1;
}

.ydc-pillar-badge {
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.8125rem;
  font-weight: 800;
  border: 2.5px solid var(--ydc-navy);
  background-color: #FFFFFF;
  box-shadow: 3px 3px 0px var(--ydc-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.2s ease;
}

.ydc-pillar-badge:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--ydc-navy);
}

.ydc-pillar-badge::after {
  content: '→';
  font-weight: 800;
}

.ydc-pillar-card-1 .ydc-pillar-badge { color: var(--ydc-red); }

.ydc-pillar-card-2 .ydc-pillar-badge { color: var(--ydc-yellow); background-color: var(--ydc-navy); }

.ydc-pillar-card-3 .ydc-pillar-badge { color: var(--ydc-blue); }

/* Polaroid Upcoming Events */
.ydc-polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 24px 0;
  justify-content: center;
}

.ydc-polaroid-card {
  background-color: #FFFFFF;
  border: var(--ydc-border);
  box-shadow: var(--ydc-shadow);
  padding: 16px 16px 32px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  flex: 0 1 360px;
  max-width: 360px !important;
  width: 100% !important;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

.ydc-polaroid-card:hover {
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: var(--ydc-shadow-hover);
  z-index: 5;
}

/* Angles of tilted polaroids on Desktop */
.ydc-polaroid-card:nth-child(1) { transform: rotate(-3deg); }
.ydc-polaroid-card:nth-child(2) { transform: rotate(0deg); }
.ydc-polaroid-card:nth-child(3) { transform: rotate(3deg); }

.ydc-polaroid-banner-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%; /* 5:3 Aspect Ratio */
  border: 2px solid var(--ydc-navy);
  overflow: hidden;
}

.ydc-polaroid-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ydc-polaroid-date-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: var(--ydc-border);
  color: #FFFFFF;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  font-size: 0.875rem;
  box-shadow: 2px 2px 0px var(--ydc-navy);
  z-index: 3;
}

.ydc-polaroid-card-upcoming .ydc-polaroid-date-badge { background-color: var(--ydc-red); }
.ydc-polaroid-card-ongoing .ydc-polaroid-date-badge { background-color: var(--ydc-yellow); color: var(--ydc-navy); }
.ydc-polaroid-card-finished .ydc-polaroid-date-badge { background-color: var(--ydc-blue); }

.ydc-polaroid-content {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ydc-polaroid-title {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 12px 0;
}

.ydc-polaroid-title a {
  color: var(--ydc-navy);
}

.ydc-polaroid-meta {
  font-size: 0.8125rem;
  color: var(--ydc-navy);
  opacity: 0.8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.ydc-polaroid-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 0.875rem;
  border-radius: 20px;
  border: var(--ydc-border);
  font-weight: 700;
  background-color: var(--ydc-navy);
  color: #FFFFFF;
  box-shadow: 2px 2px 0px var(--ydc-navy);
}

.ydc-polaroid-card-upcoming .ydc-polaroid-btn { background-color: var(--ydc-red); }
.ydc-polaroid-card-ongoing .ydc-polaroid-btn { background-color: var(--ydc-yellow); color: var(--ydc-navy); }
.ydc-polaroid-card-finished .ydc-polaroid-btn { background-color: var(--ydc-blue); }

.ydc-polaroid-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--ydc-navy);
}

/* Stats Section (Con số ấn tượng) */
.ydc-stats-section {
  background-color: transparent;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.ydc-stats-bursts {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ydc-stats-star-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
  z-index: 1;
}

.ydc-stats-star-doodle-1 {
  width: 34px;
  height: 34px;
  top: 12%;
  left: 6%;
  animation: ydcStatsBounce 3.2s ease-in-out infinite;
}

.ydc-stats-star-doodle-2 {
  width: 26px;
  height: 26px;
  top: 60%;
  right: 8%;
  animation: ydcStatsBounce 3.8s ease-in-out infinite alternate;
}

.ydc-stats-star-doodle-3 {
  width: 20px;
  height: 20px;
  bottom: 10%;
  left: 18%;
  animation: ydcStatsBounce 4.4s ease-in-out infinite;
}

@keyframes ydcStatsBounce {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-10px) rotate(15deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.ydc-burst {
  position: absolute;
  opacity: 0.4;
  animation: ydc-burst-spin 18s linear infinite;
}

.ydc-burst-1 {
  width: 110px;
  height: 110px;
  top: 4%;
  left: 4%;
  animation-duration: 22s;
}

.ydc-burst-2 {
  width: 80px;
  height: 80px;
  top: 8%;
  right: 8%;
  animation-duration: 15s;
  animation-direction: reverse;
}

.ydc-burst-3 {
  width: 130px;
  height: 130px;
  bottom: 2%;
  left: 42%;
  animation-duration: 26s;
}

.ydc-burst-4 {
  width: 70px;
  height: 70px;
  top: 40%;
  left: 18%;
  animation-duration: 19s;
  animation-direction: reverse;
}

.ydc-burst-5 {
  width: 90px;
  height: 90px;
  bottom: 10%;
  right: 16%;
  animation-duration: 24s;
}

.ydc-burst-6 {
  width: 60px;
  height: 60px;
  top: 55%;
  right: 4%;
  animation-duration: 16s;
  animation-direction: reverse;
}

@keyframes ydc-burst-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ydc-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.ydc-stat-item {
  position: relative;
  cursor: default;
}

.ydc-stat-swirl {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.ydc-stat-number {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ydc-stat-item:hover .ydc-stat-number {
  transform: scale(1.08) translateY(-4px);
}

.ydc-stat-item:hover .ydc-stat-swirl {
  transform: translateX(-50%) rotate(15deg) scale(1.1) !important;
  opacity: 0.35 !important;
}

.ydc-stat-item:nth-child(1) .ydc-stat-number { color: var(--ydc-red); }
.ydc-stat-item:nth-child(2) .ydc-stat-number { color: var(--ydc-yellow); }
.ydc-stat-item:nth-child(3) .ydc-stat-number { color: var(--ydc-blue); }

.ydc-stat-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ydc-navy);
  transition: color 0.3s ease;
}

.ydc-stat-item:hover .ydc-stat-label {
  color: #000;
}

/* Testimonial Section (Góc nhìn thành viên) */
.ydc-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.ydc-testimonial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ydc-testimonial-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: var(--ydc-border);
  overflow: hidden;
  margin-bottom: -65px;
  position: relative;
  z-index: 3;
  background-color: #FFFFFF;
}

.ydc-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Speech Bubble shape */
.ydc-testimonial-bubble {
  padding: 85px 24px 32px 24px;
  border: var(--ydc-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--ydc-shadow);
  text-align: center;
  position: relative;
  z-index: 2;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ydc-testimonial-item:hover .ydc-testimonial-bubble {
  transform: translate(-3px, -3px);
  box-shadow: var(--ydc-shadow-hover);
}

/* Color assignments for bubble speech boxes */
.ydc-testimonial-item-1 .ydc-testimonial-bubble { background-color: var(--ydc-blue); color: #FFFFFF; }
.ydc-testimonial-item-2 .ydc-testimonial-bubble { background-color: var(--ydc-yellow); color: var(--ydc-navy); }
.ydc-testimonial-item-3 .ydc-testimonial-bubble { background-color: var(--ydc-red); color: #FFFFFF; }

.ydc-testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
  font-style: italic;
}

.ydc-testimonial-author {
  margin-top: auto;
  font-weight: 800;
  font-size: 1rem;
}

.ydc-testimonial-role {
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* Decorative Doodles (Arrow, Stars) */
.ydc-doodle-swirl {
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 0;
}

/* Single Workshop Detail Styling */
.wp-block-post-title {
  display: block;
  width: fit-content;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 32px;
  border-radius: 50px;
  border: var(--ydc-border);
  background-color: var(--ydc-yellow);
  color: var(--ydc-navy);
  box-shadow: var(--ydc-shadow);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  text-align: center;
}

.ydc-workshop-banner-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 3px solid var(--ydc-navy);
  box-shadow: 6px 6px 0px var(--ydc-navy);
  background-color: #ffffff;
  box-sizing: border-box;
}

.ydc-workshop-banner-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.ydc-workshop-single-card {
  margin-top: 40px;
  background-color: #FFFFFF;
  border: var(--ydc-border);
  box-shadow: var(--ydc-shadow);
  padding: 32px;
  border-radius: var(--radius-md);
  max-width: 100%;
  box-sizing: border-box;
}

.ydc-workshop-single-card img,
.ydc-agenda img {
  max-width: 100%;
  height: auto;
}

.ydc-agenda table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

.ydc-agenda {
  margin-top: 24px;
}

.ydc-agenda h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.ydc-map-container {
  margin-top: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ydc-map-container iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.ydc-workshop-card-title {
  font-size: 1.75rem;
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: var(--ydc-border);
}

.ydc-workshop-lead {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 24px;
  color: var(--ydc-navy);
}

.ydc-workshop-info-box {
  background-color: #FFFFFF;
  border: var(--ydc-border);
  box-shadow: var(--ydc-shadow);
  padding: 32px;
  border-radius: var(--radius-md);
}

.ydc-workshop-info-box h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: var(--ydc-border);
  padding-bottom: 12px;
}

.ydc-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ydc-info-list li {
  font-size: 1rem;
}

.ydc-btn-register {
  display: block;
  text-align: center;
  background-color: var(--ydc-red);
  color: #FFFFFF;
  font-weight: 800;
  padding: 16px 24px;
  border: var(--ydc-border);
  border-radius: 40px;
  box-shadow: 4px 4px 0px var(--ydc-navy);
  transition: all 0.2s ease;
}

.ydc-btn-register-bottom {
  margin-top: 32px;
}

.ydc-map-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed var(--ydc-navy);
}

.ydc-map-section h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.ydc-btn-register:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--ydc-navy);
}

/* Footer Styling */
footer.wp-block-template-part {
  background-color: var(--ydc-navy);
  color: #E2E8F0;
  padding: 64px 24px;
  border-top: var(--ydc-border);
}

footer.wp-block-template-part a {
  color: #E2E8F0;
}

footer.wp-block-template-part a:hover {
  color: var(--ydc-yellow);
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .ydc-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .ydc-hero-text {
    align-items: center;
  }

  .ydc-hero-text p {
    max-width: 100%;
  }

  .ydc-pillars-grid,
  .ydc-polaroid-grid,
  .ydc-testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .ydc-pillars-grid > *:last-child,
  .ydc-testimonials-grid > *:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ydc-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .ydc-hero-text h1 {
    font-size: 2.5rem;
  }

  .ydc-pillars-grid,
  .ydc-polaroid-grid,
  .ydc-stats-grid,
  .ydc-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .ydc-pillars-grid > *:last-child,
  .ydc-testimonials-grid > *:last-child {
    grid-column: span 1;
    max-width: 100%;
  }

  /* Reset angles on mobile */
  .ydc-polaroid-card {
    transform: none !important;
    margin-bottom: 16px;
  }

  .ydc-stats-grid {
    gap: 32px;
  }

  .ydc-stat-number {
    font-size: 3.5rem;
  }
}
/* =============================================
   Fix WordPress FSE Layout Constraints
   ============================================= */

/* Reset site-level blocks container */
.wp-site-blocks,
.wp-site-blocks > main,
.ydc-main-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Force header & footer template parts to be full-width */
.wp-site-blocks > header,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Force all top-level sections inside main container to be full width */
.ydc-main-container > *,
.ydc-main-container > section,
.ydc-main-container > .wp-block-group {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Clean FSE constrained layouts */
.is-layout-constrained > :not(.alignleft):not(.alignright):not(.alignfull) {
  max-width: none !important;
}


/* =============================================
   Header Custom Styles
   ============================================= */

header.ydc-header-wrapper,
.ydc-header-wrapper {
  background-color: rgba(253, 251, 247, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 2px solid rgba(10, 17, 40, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03) !important;
  padding: 16px 24px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.ydc-header-container {
  width: 100% !important;
  max-width: 1200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

.ydc-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--ydc-navy);
  font-family: 'Manrope', sans-serif;
}

.ydc-header-logo svg {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ydc-header-logo:hover svg {
  transform: rotate(360deg);
}

.ydc-header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ydc-header-nav a {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ydc-navy);
}

.ydc-header-nav a:hover {
  color: var(--ydc-blue);
}

/* Footer Custom Styles */
footer.ydc-footer-wrapper,
.ydc-footer-wrapper {
  background-color: var(--ydc-navy) !important;
  color: #E2E8F0 !important;
  padding: 80px 24px !important;
  border-top: var(--ydc-border) !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.ydc-footer-container {
  width: 100% !important;
  max-width: 1200px !important;
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1.5fr !important;
  gap: 64px !important;
}

.ydc-footer-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.ydc-footer-desc {
  font-size: 0.9375rem;
  color: #94A3B8;
  margin: 0;
}

.ydc-footer-copy {
  font-size: 0.8125rem;
  color: #64748B;
  margin: 0;
  margin-top: 16px;
}

.ydc-footer-middle {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ydc-footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ydc-footer-links a {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #E2E8F0;
}

.ydc-footer-links a:hover {
  color: var(--ydc-yellow);
}

.ydc-footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ydc-footer-social a {
  color: #94A3B8;
  transition: color 0.2s ease;
}

.ydc-footer-social a:hover {
  color: var(--ydc-yellow);
}

.ydc-footer-right-newsletter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ydc-footer-right-newsletter h4 {
  color: #FFFFFF;
  margin: 0;
  font-size: 1.125rem;
  font-family: 'Manrope', sans-serif;
}

.ydc-newsletter-form {
  display: flex;
  gap: 8px;
}

.ydc-newsletter-form input[type="email"] {
  flex-grow: 1;
  background-color: #1E293B;
  border: 2px solid #334155;
  border-radius: 40px;
  padding: 10px 20px;
  color: #FFFFFF;
  font-size: 0.875rem;
  outline: none;
}

.ydc-newsletter-form input[type="email"]:focus {
  border-color: var(--ydc-yellow);
}

@media (max-width: 1024px) {
  .ydc-footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .ydc-footer-left,
  .ydc-footer-middle {
    align-items: center;
  }
  .ydc-newsletter-form {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .ydc-header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 0;
  }
  .ydc-header-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
  }
}

/* ===== Single Post (Blog chi tiết) Styling ===== */
/* Giới hạn chiều rộng trang chính của bài viết thường */
.single-post main.wp-block-group {
  max-width: 780px !important;
  width: 100% !important;
  margin: 64px auto !important;
  padding: 0 24px !important;
  box-sizing: border-box;
}

/* Bo viền và đổ bóng cho ảnh nổi bật (featured image) giống phong cách Polaroid lớn */
.single-post .wp-block-post-featured-image {
  margin-bottom: 40px !important;
  border: 3px solid var(--ydc-navy);
  border-radius: 16px;
  box-shadow: 8px 8px 0px var(--ydc-navy);
  overflow: hidden;
  background-color: #ffffff;
  padding: 16px; /* Tạo khung viền giấy trắng xung quanh ảnh */
  box-sizing: border-box;
}

.single-post .wp-block-post-featured-image img {
  border-radius: 8px;
  border: 2px solid var(--ydc-navy);
  width: 100%;
  height: auto;
  display: block;
}

/* Tiêu đề bài viết thường */
.single-post .wp-block-post-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.25;
  color: var(--ydc-navy) !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.02em;
}

/* Ngày đăng bài viết */
.single-post .wp-block-post-date {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ydc-navy) !important;
  background-color: var(--ydc-blue);
  padding: 6px 16px;
  border: 2px solid var(--ydc-navy);
  border-radius: 20px;
  box-shadow: 2px 2px 0px var(--ydc-navy);
  margin-bottom: 40px !important;
}

/* Nội dung văn bản (paragraphs, headings) bên trong bài viết */
.single-post .wp-block-post-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #1E293B; /* màu anthracite tối dễ đọc */
}

.single-post .wp-block-post-content p {
  margin-bottom: 24px;
}

.single-post .wp-block-post-content h2,
.single-post .wp-block-post-content h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--ydc-navy);
  margin-top: 48px;
  margin-bottom: 16px;
}

.single-post .wp-block-post-content h2 {
  font-size: 1.8rem;
}

.single-post .wp-block-post-content h3 {
  font-size: 1.45rem;
}

/* Tùy chỉnh các hình ảnh bên trong nội dung bài viết */
.single-post .wp-block-post-content figure.wp-block-image {
  margin: 40px 0;
  border: 3px solid var(--ydc-navy);
  border-radius: 12px;
  box-shadow: 6px 6px 0px var(--ydc-navy);
  overflow: hidden;
}

/* ===== Custom Grid cho Trang chủ ===== */
/* Recent Workshops trang chủ: 4 cột trên 1 hàng (1x4) */
.ydc-home-workshops-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}

/* Recent Posts trang chủ: 3 cột (dạng 2 hàng x 3 cột = 6 bài viết) */
.ydc-home-posts-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* Responsive cho màn hình tablet/medium (hiển thị 2 cột) */
@media (max-width: 1024px) {
  .ydc-home-workshops-grid,
  .ydc-home-posts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Responsive cho mobile (hiển thị 1 cột) */
@media (max-width: 768px) {
  .ydc-home-workshops-grid,
  .ydc-home-posts-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== INFINITE IMAGE MARQUEE GRID ===== */
.ydc-marquee-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 24px 0;
  background-color: var(--ydc-bg);
}

.ydc-marquee-row {
  display: flex;
  width: 100%;
  overflow: visible;
  position: relative;
  margin-bottom: 16px;
  padding: 16px 0; /* Tạo khoảng đệm để nghiêng/phóng to card không bị xén */
}

.ydc-marquee-row:last-child {
  margin-bottom: 0;
}

/* Track bọc ảnh */
.ydc-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

/* Track 1 và Track 2 chạy nối đuôi nhau */
.ydc-marquee-row[data-direction="left"] .ydc-marquee-track {
  animation: ydcMarqueeLeft 48s linear infinite;
}

.ydc-marquee-row[data-direction="right"] .ydc-marquee-track {
  animation: ydcMarqueeRight 48s linear infinite;
}

/* Hover dừng lại để xem */
.ydc-marquee-row:hover .ydc-marquee-track {
  animation-play-state: paused;
}

@keyframes ydcMarqueeLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes ydcMarqueeRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Thiết kế từng Polaroid Card nhỏ chạy trong Marquee */
.ydc-marquee-card {
  width: 270px;
  background-color: #FFFFFF;
  border: var(--ydc-border);
  border-radius: 12px;
  box-shadow: var(--ydc-shadow);
  padding: 12px 12px 24px 12px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ydc-marquee-card:hover {
  transform: scale(1.04) rotate(1deg);
  box-shadow: var(--ydc-shadow-hover);
  z-index: 5;
}

/* Nghiêng nhẹ ngẫu nhiên các card cho chất nghệ thuật */
.ydc-marquee-row:nth-child(1) .ydc-marquee-card:nth-child(even) { transform: rotate(-2deg); }
.ydc-marquee-row:nth-child(1) .ydc-marquee-card:nth-child(odd) { transform: rotate(1deg); }
.ydc-marquee-row:nth-child(2) .ydc-marquee-card:nth-child(even) { transform: rotate(2deg); }
.ydc-marquee-row:nth-child(2) .ydc-marquee-card:nth-child(odd) { transform: rotate(-1deg); }
.ydc-marquee-row:nth-child(3) .ydc-marquee-card:nth-child(even) { transform: rotate(-1.5deg); }
.ydc-marquee-row:nth-child(3) .ydc-marquee-card:nth-child(odd) { transform: rotate(2deg); }

.ydc-marquee-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  border: 2px solid var(--ydc-navy);
  overflow: hidden;
  position: relative;
}

.ydc-marquee-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Tag vẽ tay đính trên ảnh */
.ydc-marquee-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: 'Patrick Hand', cursive !important;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ydc-navy);
  padding: 4px 12px;
  border: 2px solid var(--ydc-navy);
  border-radius: 20px;
  box-shadow: 2px 2px 0px var(--ydc-navy);
  z-index: 2;
}

/* Màu tag tương ứng từng hàng */
.ydc-marquee-row:nth-child(1) .ydc-marquee-tag { background-color: var(--ydc-red); color: #fff; }
.ydc-marquee-row:nth-child(2) .ydc-marquee-tag { background-color: var(--ydc-yellow); color: var(--ydc-navy); }
.ydc-marquee-row:nth-child(3) .ydc-marquee-tag { background-color: var(--ydc-blue); color: #fff; }

.ydc-marquee-caption {
  font-family: 'Patrick Hand', cursive !important;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ydc-navy);
  text-align: center;
  margin-top: 12px;
}

/* Căn giữa toàn bộ tiêu đề và nội dung trang Workshops */
.ydc-group {
  text-align: center;
  margin-bottom: 56px;
}
.ydc-group h2.ydc-group-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 1.5rem;
  font-weight: 800;
  display: inline-block;
  padding: 10px 28px;
  border: 3px solid var(--ydc-navy);
  border-radius: 40px;
  margin: 0 auto 32px auto;
  text-align: center !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  cursor: default;
}

/* Màu sắc bubble của từng nhóm trạng thái */
.ydc-group-upcoming .ydc-group-title {
  background-color: var(--ydc-blue);
  color: #FFFFFF;
  box-shadow: 4px 4px 0px var(--ydc-yellow);
}
.ydc-group-upcoming .ydc-group-title:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px var(--ydc-yellow);
}

.ydc-group-ongoing .ydc-group-title {
  background-color: var(--ydc-red);
  color: #FFFFFF;
  box-shadow: 4px 4px 0px var(--ydc-yellow);
  animation: ydcPulseGlow 2.5s infinite ease-in-out;
}
.ydc-group-ongoing .ydc-group-title:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px var(--ydc-yellow);
  animation-play-state: paused;
}

.ydc-group-finished .ydc-group-title {
  background-color: var(--ydc-navy);
  color: #FFFFFF;
  box-shadow: 4px 4px 0px #CBD5E1;
}
.ydc-group-finished .ydc-group-title:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px var(--ydc-navy);
}

@keyframes ydcPulseGlow {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.ydc-group p {
  font-size: 1.1rem;
  color: #64748B;
  text-align: center !important;
  margin-top: 12px;
}