/* ==========================================================================
   MODERN INSIGHTS / BLOG SECTION — EXCELIUM
   Exact match to modern brutalist fintech reference design
   Deep black background with refined shadows and subtle borders
   ========================================================================== */

.ek-blog-section {
  background-color: #1a1a1c;
  color: #ffffff;
  padding: 100px 0 115px 0;
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* Deep black shadow respecting page contrast */
  box-shadow: inset 0 25px 50px -20px rgba(0, 0, 0, 0.9), inset 0 -25px 50px -20px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.ek-blog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .ek-blog-container {
    padding: 0 20px;
  }
}

/* ── Section Header ── */
.ek-blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 56px;
}

@media (max-width: 768px) {
  .ek-blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 36px;
  }
}

.ek-blog-title {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 620px;
}

.ek-blog-see-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #7986cb;
  text-decoration: none !important;
  white-space: nowrap;
  padding-top: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ek-blog-see-all i {
  font-size: 16px;
  transition: transform 0.25s ease;
}

.ek-blog-see-all:hover {
  color: #9fa8da;
}

.ek-blog-see-all:hover i {
  transform: translateX(4px);
}

/* ── 3-Column Card Grid ── */
.ek-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .ek-blog-grid {
    gap: 24px;
  }
}

@media (max-width: 991px) {
  .ek-blog-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 620px;
    margin: 0 auto;
  }
}

/* ── Blog Card ── */
.ek-blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background-color: transparent;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ek-blog-card-clickable {
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Media / Visual Container ── */
.ek-blog-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background-color: #121217;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Rich black shadow */
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ek-blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

/* Floating Corner Arrow Badge (Exact match to reference card 3) */
.ek-blog-arrow-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(14, 14, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ek-blog-arrow-badge i {
  transition: transform 0.25s ease;
}

/* Hover effects */
.ek-blog-card:hover {
  transform: translateY(-5px);
}

.ek-blog-card:hover .ek-blog-media-wrap {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.9), 0 8px 20px rgba(0, 0, 0, 0.7);
}

.ek-blog-card:hover .ek-blog-img {
  transform: scale(1.035);
}

.ek-blog-card:hover .ek-blog-arrow-badge {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  transform: translate(2px, -2px);
}

/* ── Content Body ── */
.ek-blog-content {
  padding: 22px 4px 6px 4px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ek-blog-headline {
  font-size: 15.5px;
  line-height: 1.55;
  color: #d4d4d8;
  font-weight: 400;
  margin: 0 0 22px 0;
  transition: color 0.2s ease;
}

.ek-blog-card:hover .ek-blog-headline {
  color: #ffffff;
}

.ek-blog-headline strong {
  font-weight: 600;
  color: #ffffff;
}

/* ── Author / Date Row ── */
.ek-blog-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 2px;
}

.ek-blog-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.ek-blog-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ek-blog-author-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #f4f4f5;
  line-height: 1.25;
}

.ek-blog-date {
  font-size: 12.5px;
  font-weight: 400;
  color: #828290;
  line-height: 1.25;
}

/* ==========================================================================
   CALM, CHIC & EDITORIAL MODERN BLOG PAGES — EXCELIUM
   Dedicated styling for Blogs.html (Listing) and Blog_details.html (Reading)
   ========================================================================== */

/* ── Global Page Canvas ── */
.ek-blogs-page,
.ek-article-page {
  position: relative;
  background-color: #09090b;
  color: #f4f4f5;
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow: hidden;
}

.ek-blogs-page {
  padding: 120px 0 120px 0;
}

.ek-article-page {
  padding: 110px 0 120px 0;
}

/* Subtle architectural grid lines */
.ek-blogs-page::before,
.ek-article-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
  background-position: center center;
  pointer-events: none;
  z-index: 1;
}

.ek-blogs-container,
.ek-article-container {
  position: relative;
  z-index: 2;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Hero Header for Listing ─── */
.ek-blogs-hero {
  text-align: left;
  margin-bottom: 44px;
}

.ek-blogs-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ek-blogs-title {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0 0 18px 0;
}

.ek-blogs-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: #a1a1aa;
  max-width: 680px;
  margin: 0 0 32px 0;
}

/* ─── Filter Pills Bar ─── */
.ek-blogs-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ek-blog-filter-pill {
  padding: 8px 18px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.ek-blog-filter-pill:hover,
.ek-blog-filter-pill.active {
  background: #ffffff;
  color: #09090b !important;
  border-color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

/* ─── Featured Hero Article Card ─── */
.ek-featured-article-card {
  position: relative;
  background-color: #111114;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-bottom: 48px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 48px -15px rgba(0, 0, 0, 0.85);
  text-decoration: none !important;
  color: inherit;
}

.ek-featured-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.95);
  background-color: #141418;
}

.ek-featured-img-wrap {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  background-color: #16161a;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ek-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(10%);
}

.ek-featured-article-card:hover .ek-featured-img {
  transform: scale(1.03);
  filter: grayscale(0%);
}

.ek-featured-content {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ek-featured-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.ek-pill-badge {
  padding: 4px 11px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  color: #e4e4e7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ek-read-time {
  font-size: 12.5px;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ek-featured-title {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 16px 0;
  transition: color 0.2s ease;
}

.ek-featured-excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: #a1a1aa;
  margin: 0 0 28px 0;
}

.ek-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ek-author-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ek-author-avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ek-author-text {
  display: flex;
  flex-direction: column;
}

.ek-author-text-name {
  font-size: 13px;
  font-weight: 600;
  color: #f4f4f5;
}

.ek-author-text-date {
  font-size: 11.5px;
  color: #71717a;
}

.ek-read-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  transition: transform 0.2s ease;
}

.ek-featured-article-card:hover .ek-read-cta i {
  transform: translate(3px, -3px);
}

@media (max-width: 991px) {
  .ek-featured-article-card {
    grid-template-columns: 1fr;
  }
  .ek-featured-img-wrap {
    min-height: 240px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .ek-featured-content {
    padding: 32px 24px;
  }
}

/* ─── Articles Grid ─── */
.ek-blogs-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

@media (max-width: 1100px) {
  .ek-blogs-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .ek-blogs-cards-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ─── Individual Article Card ─── */
.ek-article-card {
  position: relative;
  background-color: #111114;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 1px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.8);
  text-decoration: none !important;
  color: inherit;
}

.ek-article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95);
  background-color: #141418;
}

/* Corner Crosshairs */
.ek-card-plus {
  position: absolute;
  font-family: monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.ek-card-plus-tl { top: -7px; left: -7px; }
.ek-card-plus-tr { top: -7px; right: -7px; }
.ek-card-plus-bl { bottom: -7px; left: -7px; }
.ek-card-plus-br { bottom: -7px; right: -7px; }

.ek-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background-color: #16161a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ek-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.ek-article-card:hover .ek-card-img {
  transform: scale(1.04);
}

.ek-article-card-body {
  padding: 28px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ek-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ek-card-post-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin: 0 0 12px 0;
  transition: color 0.2s ease;
}

.ek-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #a1a1aa;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.ek-card-author-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.ek-views-indicator {
  font-size: 12px;
  color: #71717a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Pagination ─── */
.ek-pagination-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
}

.ek-page-btn {
  padding: 9px 18px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.ek-page-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.ek-page-btn.active {
  background: #ffffff;
  color: #09090b !important;
  border-color: #ffffff;
}

/* ==========================================================================
   BLOG DETAILS (READING EXPERIENCE)
   Distraction-free, calm editorial elegance
   ========================================================================== */

/* Reading Progress Bar */
.ek-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #ffffff;
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

.ek-article-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.ek-article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa;
  text-decoration: none !important;
  margin-bottom: 32px;
  transition: all 0.2s ease;
}

.ek-article-back-link:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.ek-article-header {
  text-align: left;
  margin-bottom: 36px;
}

.ek-article-main-title {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 20px 0 24px 0;
}

.ek-article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 36px;
}

.ek-article-lead-image-wrap {
  position: relative;
  width: 100%;
  border-radius: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 48px;
  background-color: #121216;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
}

.ek-article-lead-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ─── Editorial Body ─── */
.ek-article-content {
  font-size: 17.5px;
  line-height: 1.8;
  color: #d4d4d8;
  font-weight: 400;
  margin-bottom: 56px;
}

.ek-article-content p {
  margin-bottom: 24px;
}

.ek-article-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 44px 0 20px 0;
  letter-spacing: -0.02em;
}

.ek-article-content h3 {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin: 36px 0 16px 0;
}

.ek-article-content blockquote {
  position: relative;
  margin: 36px 0;
  padding: 24px 28px;
  background: #111115;
  border-left: 2px solid #ffffff;
  border-radius: 1px;
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: #ffffff;
}

.ek-article-content ul,
.ek-article-content ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.ek-article-content li {
  margin-bottom: 10px;
}

/* ─── Share Bar & Newsletter ─── */
.ek-article-share-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 56px;
}

.ek-share-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ek-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 16px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.ek-share-btn:hover {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.ek-article-newsletter-card {
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1px;
  padding: 40px;
  margin-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ek-newsletter-row {
  display: flex;
  gap: 12px;
}

@media (max-width: 600px) {
  .ek-newsletter-row {
    flex-direction: column;
  }
}

.ek-newsletter-input {
  flex-grow: 1;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1px;
  padding: 12px 16px;
  color: #ffffff;
  font-size: 14px;
}

.ek-newsletter-input:focus {
  border-color: #ffffff;
  outline: none;
}

.ek-newsletter-submit {
  padding: 12px 24px;
  border-radius: 1px;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #09090b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ek-newsletter-submit:hover {
  background: #e4e4e7;
}

/* ─── Related Articles ─── */
.ek-related-section {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ek-related-header {
  margin-bottom: 32px;
}

.ek-related-title {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

