/* ============================================================
   ARTICLES PAGE — PREMIUM MAGAZINE DESIGN
   ============================================================ */

/* ===== Hero Section ===== */
.articles-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a2540 0%, #1a4a6e 40%, #2a6a8e 70%, #0e3a5f 100%);
  overflow: hidden;
  padding: 100px 20px 60px;
}

.articles-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' fill-opacity='0.03'%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");
  pointer-events: none;
}

.articles-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.articles-hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.articles-kicker {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 30px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.articles-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  margin: 0 0 16px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.articles-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Main Content ===== */
.articles-main {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #f0f4f8 0%, #fafbfd 100%);
  min-height: 60vh;
}

/* ===== Article Cards ===== */
.article-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(14, 58, 95, 0.07), 0 1px 6px rgba(0,0,0,0.04);
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid rgba(14, 58, 95, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.article-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.article-card:nth-child(2) { transition-delay: 0.1s; }
.article-card:nth-child(3) { transition-delay: 0.2s; }
.article-card:nth-child(4) { transition-delay: 0.3s; }
.article-card:nth-child(5) { transition-delay: 0.4s; }

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(14, 58, 95, 0.12), 0 4px 12px rgba(0,0,0,0.06);
}

.article-card.is-open {
  transform: none;
  box-shadow: 0 8px 50px rgba(14, 58, 95, 0.12);
}

.article-card-inner {
  padding: 36px 40px 28px;
}

.article-card-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(14, 58, 95, 0.08) 0%, rgba(212, 175, 55, 0.1) 100%);
  color: var(--navy, #0e3a5f);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(14, 58, 95, 0.1);
}

.article-card-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--navy, #0e3a5f);
  margin: 0 0 14px;
  line-height: 1.35;
  transition: color 0.3s;
}

.article-card:hover .article-card-title {
  color: #1a5a7e;
}

.article-card-excerpt {
  font-size: 1.05rem;
  color: #4a5568;
  line-height: 1.7;
  margin: 0 0 20px;
}

.article-card-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.meta-read {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.meta-tag {
  display: inline-block;
  background: var(--navy, #0e3a5f);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
  letter-spacing: 0.02em;
}

/* ===== Toggle Button ===== */
.article-toggle-btn {
  display: block;
  width: 100%;
  padding: 18px 40px;
  background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%);
  border: none;
  border-top: 1px solid rgba(14, 58, 95, 0.06);
  color: var(--navy, #0e3a5f);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.article-toggle-btn:hover {
  background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
  color: #d4af37;
}

.article-toggle-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.article-toggle-btn:hover::after {
  opacity: 1;
}

/* ===== Expanded Content ===== */
.article-expand {
  border-top: 1px solid rgba(14, 58, 95, 0.06);
}

.article-full-content {
  padding: 40px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2d3748;
}

.article-full-content p {
  margin: 0 0 20px;
}

.article-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy, #0e3a5f);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

/* ===== Insight Blocks ===== */
.insight-block {
  background: linear-gradient(135deg, #f7f9fc 0%, #eef5fa 100%);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 24px 0;
  border-right: 5px solid #2a6a8e;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insight-block:hover {
  transform: translateX(-4px);
  box-shadow: 0 4px 20px rgba(14, 58, 95, 0.08);
}

.insight-block::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.insight-block h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy, #0e3a5f);
  margin: 0 0 12px;
  line-height: 1.4;
}

.insight-block p {
  margin: 0;
  color: #3d4f5f;
}

/* Accent variants */
.insight-block.accent-1 { border-right-color: #2a6a8e; }
.insight-block.accent-2 { border-right-color: #d4af37; }
.insight-block.accent-3 { border-right-color: #48bb78; }
.insight-block.accent-4 { border-right-color: #ed8936; }
.insight-block.accent-5 { border-right-color: #9f7aea; }

.insight-block.warning {
  background: linear-gradient(135deg, #fff5f5 0%, #fef2f2 100%);
  border-right-color: #e53e3e;
}

/* ===== Quote Blocks ===== */
.article-quote {
  background: linear-gradient(135deg, #0e3a5f 0%, #1a5a7e 100%);
  color: #fff;
  padding: 28px 36px;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.7;
  margin: 28px 0;
  position: relative;
  overflow: hidden;
  border: none;
}

.article-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 6rem;
  color: rgba(212, 175, 55, 0.15);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* ===== CTA Box inside articles ===== */
.article-cta-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(14, 58, 95, 0.05) 100%);
  border: 2px dashed rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  margin: 32px 0 8px;
}

.article-cta-box p {
  font-weight: 700;
  color: var(--navy, #0e3a5f);
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.article-cta-box .btn {
  display: inline-block;
  text-decoration: none;
}

/* ===== Bottom CTA Section ===== */
.articles-cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #0a2540 0%, #1a4a6e 50%, #0e3a5f 100%);
}

.articles-cta-box-main {
  text-align: center;
  padding: 50px 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.articles-cta-box-main h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 12px;
}

.articles-cta-box-main p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin: 0 0 28px;
}

.articles-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 14px 32px !important;
  font-size: 1.05rem !important;
  border-radius: 12px !important;
}

.btn-outline {
  background: transparent !important;
  border: 2px solid rgba(255,255,255,0.5) !important;
  color: #fff !important;
  transition: all 0.3s !important;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: #d4af37 !important;
  color: #d4af37 !important;
}

/* ===== Active nav link ===== */
.main-nav a.active,
.mobile-nav a.active {
  color: #d4af37;
  font-weight: 700;
}

/* ===== Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .articles-hero {
    min-height: 280px;
    padding: 90px 16px 40px;
  }

  .article-card-inner {
    padding: 24px 20px 20px;
  }

  .article-full-content {
    padding: 24px 20px;
  }

  .insight-block {
    padding: 20px 18px;
    margin: 16px 0;
  }

  .article-quote {
    padding: 20px 24px;
    font-size: 1rem;
  }

  .articles-cta-box-main {
    padding: 32px 20px;
  }

  .btn-lg {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .articles-main .container {
    max-width: 860px;
  }
}
