/* WMI Custom Styles */

/* Batik pattern overlay */
.batik-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, #0B1D3A 0%, #091731 40%, #15665B 100%);
}

/* Gold shimmer */
.gold-shimmer {
  background: linear-gradient(90deg, #D4AF37, #E4B840, #D4AF37);
  background-size: 200% auto;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Counter animation */
.counter-animate {
  animation: countUp 2s ease-out forwards;
}

/* Fade in up */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover effect */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(11, 29, 58, 0.15);
}

/* Pillar card gradient borders */
.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #D4AF37, #1A7A6D);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pillar-card:hover::before {
  opacity: 1;
}

/* Process step connector */
.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.5rem;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, #D4AF37, transparent);
}

@media (max-width: 768px) {
  .step-connector::after {
    display: none;
  }
}

/* Program card category badge */
.badge-delegation { background-color: #0B1D3A; color: white; }
.badge-mice { background-color: #1A7A6D; color: white; }
.badge-studytour { background-color: #D4AF37; color: #0B1D3A; }
.badge-placement { background-color: #5972B4; color: white; }
.badge-sports { background-color: #CE1126; color: white; }

/* Accordion styles */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-open .accordion-content {
  max-height: 500px;
}

.accordion-arrow {
  transition: transform 0.3s ease;
}

.accordion-open .accordion-arrow {
  transform: rotate(180deg);
}

/* Trust badge glow */
.trust-badge {
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Stats section */
.stats-gradient {
  background: linear-gradient(135deg, #0B1D3A, #071228);
}

/* x-cloak for Alpine.js */
[x-cloak] { display: none !important; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #8FA1CD; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5972B4; }

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

/* ========== ARTICLE CONTENT TYPOGRAPHY ========== */
.article-content {
  font-size: 1.075rem;
  line-height: 1.8;
  color: #2D4A8C;
}

.article-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0B1D3A;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #F5E7BF;
}

.article-content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0B1D3A;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  color: #2D4A8C;
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.article-content a {
  color: #D4AF37;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.article-content a:hover {
  border-bottom-color: #D4AF37;
}

.article-content strong {
  color: #0B1D3A;
  font-weight: 700;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}

.article-content ul {
  list-style: none;
  padding-left: 0;
}

.article-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2D4A8C;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: #D4AF37;
  border-radius: 50%;
}

.article-content ol {
  list-style: none;
  padding-left: 0;
  counter-reset: article-counter;
}

.article-content ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.6rem;
  color: #2D4A8C;
  counter-increment: article-counter;
}

.article-content ol li::before {
  content: counter(article-counter);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.5rem;
  height: 1.5rem;
  background: #0B1D3A;
  color: #D4AF37;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(11, 29, 58, 0.08);
}

.article-content thead {
  background: #0B1D3A;
}

.article-content th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #D4AF37;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E8EDF5;
  color: #2D4A8C;
}

.article-content tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.article-content tbody tr:hover {
  background: #FBF5E6;
}

/* Blockquote */
.article-content blockquote {
  border-left: 4px solid #D4AF37;
  background: #FBF5E6;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #0B1D3A;
}

/* Images in articles */
.article-content img {
  border-radius: 12px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(11, 29, 58, 0.1);
}

/* Mobile bottom nav */
.safe-area-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-tab {
  transition: color 0.2s;
}

.mobile-tab:active {
  transform: scale(0.92);
}

@media (max-width: 767px) {
  /* Push footer content up to not overlap bottom nav */
  footer { padding-bottom: 4.5rem; }
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
