/* ==========================================================
   COMPONENTS — Buttons, Cards, Timeline, Stats, Quotes
   phamducanh.vn
   ========================================================== */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

/* Primary: Coral gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-400));
  color: var(--white);
  box-shadow: var(--shadow-md), var(--shadow-glow-coral);
}

.btn-primary::before {
  background: linear-gradient(135deg, var(--coral-400), var(--coral-300));
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(231, 111, 81, 0.35);
  color: var(--white);
}

/* Secondary: Ocean outline */
.btn-secondary {
  background: transparent;
  color: var(--ocean-500);
  border-color: var(--ocean-500);
}

.btn-secondary:hover {
  background: var(--ocean-500);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow-ocean);
}

/* Ghost: White outline (for dark bg) */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
  transform: translateY(-2px);
}

/* CTA Accent: White bg on dark */
.btn-white {
  background: var(--white);
  color: var(--navy-800);
}

.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--navy-800);
}

.btn-sm {
  padding: 10px 22px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--text-lg);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ── Section Wrapper ── */
.section {
  padding: var(--section-py) var(--section-px);
  position: relative;
  overflow: hidden;
}

.section-dark {
  background: var(--navy-900);
  color: var(--white);
}

.section-darker {
  background: var(--navy-950);
  color: var(--white);
}

.section-light {
  background: var(--gray-50);
}

.section-ocean {
  background: linear-gradient(135deg, var(--ocean-600), var(--navy-700));
  color: var(--white);
}

.section-gradient-navy {
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
}

/* ── Section Header ── */
.section-header {
  margin-bottom: var(--space-16);
  max-width: 800px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--ocean-400);
  margin-bottom: var(--space-4);
  display: block;
}

.section-dark .section-label,
.section-darker .section-label,
.section-ocean .section-label,
.section-gradient-navy .section-label {
  color: var(--coral-400);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
}

.section-dark .section-title,
.section-darker .section-title,
.section-ocean .section-title,
.section-gradient-navy .section-title {
  color: var(--white);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

.section-dark .section-desc,
.section-darker .section-desc,
.section-ocean .section-desc,
.section-gradient-navy .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  padding: var(--space-12) 0;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--gray-200);
}

.stat-item:last-child::after {
  display: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-number .stat-suffix {
  font-size: 0.6em;
  color: var(--ocean-500);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: var(--weight-medium);
}

/* ── Manifesto / Big Quote ── */
.manifesto {
  position: relative;
  padding: var(--space-20) 0;
}

.manifesto-quote {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--white);
  margin-bottom: var(--space-8);
  position: relative;
}

.manifesto-quote::before {
  content: '\201C';
  font-size: 8rem;
  position: absolute;
  top: -3rem;
  left: -1rem;
  color: var(--ocean-400);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

.manifesto-body {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-relaxed);
  max-width: 60ch;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding: var(--space-8) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--ocean-400), var(--navy-600));
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  padding-bottom: var(--space-10);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-900);
  border: 3px solid var(--ocean-400);
  z-index: 2;
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-dot {
  background: var(--ocean-400);
  box-shadow: var(--shadow-glow-ocean);
  transform: scale(1.2);
}

.timeline-item.timeline-highlight .timeline-dot {
  background: var(--coral-500);
  border-color: var(--coral-400);
  width: 26px;
  height: 26px;
  left: 12px;
  top: 2px;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--ocean-400);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-1);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  line-height: var(--leading-normal);
  max-width: 55ch;
}

/* Light timeline variant */
.timeline-light::before {
  background: linear-gradient(to bottom, var(--ocean-400), var(--gray-300));
}

.timeline-light .timeline-dot {
  background: var(--white);
  border-color: var(--ocean-500);
}

.timeline-light .timeline-item:hover .timeline-dot {
  background: var(--ocean-500);
}

.timeline-light .timeline-year {
  color: var(--ocean-600);
}

.timeline-light .timeline-title {
  color: var(--gray-900);
}

.timeline-light .timeline-desc {
  color: var(--gray-600);
}

/* ── Pillar Cards (4 lĩnh vực) ── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ocean-500), var(--ocean-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--ocean-100), var(--ocean-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-6);
}

.pillar-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.pillar-card-quote {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--ocean-600);
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
  border-left: 3px solid var(--ocean-300);
}

.pillar-card-list {
  list-style: none;
  padding: 0;
}

.pillar-card-list li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding: var(--space-1) 0;
  padding-left: var(--space-5);
  position: relative;
}

.pillar-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ocean-400);
}

.pillar-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ocean-500);
  margin-top: var(--space-6);
  transition: gap var(--transition-base);
}

.pillar-card-link:hover {
  gap: var(--space-3);
}

/* ── Value Cards (Giá trị & Quan điểm) ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.value-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.value-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.value-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--ocean-200);
  margin-bottom: var(--space-4);
  line-height: 1;
}

.value-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.value-desc {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-normal);
}

/* ── Testimonial Cards ── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-8);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  position: relative;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--ocean-400);
  opacity: 0.4;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  padding-top: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ocean-400);
}

.testimonial-name {
  font-weight: var(--weight-semibold);
  color: var(--white);
  font-size: var(--text-base);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* ── Blog Cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: var(--space-6);
}

.blog-card-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--ocean-500);
  background: var(--ocean-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
}

.blog-card-meta {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

/* ── Image Card / Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-4) var(--space-4);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: var(--text-sm);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ── Social Proof Icons ── */
.social-links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.2rem;
  transition: all var(--transition-base);
  text-decoration: none;
}

.social-link:hover {
  background: var(--ocean-500);
  transform: translateY(-3px);
  color: var(--white);
}

/* Light variant */
.social-links-light .social-link {
  background: var(--gray-100);
  color: var(--gray-600);
}

.social-links-light .social-link:hover {
  background: var(--ocean-500);
  color: var(--white);
}

/* ── Image Placeholder ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

/* ── Wave Section Divider ── */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 80px;
  display: block;
}

.wave-divider-top {
  top: -1px;
  bottom: auto;
  transform: rotate(180deg);
}
