/* ==========================================================
   BLOG PAGE — EDITORIAL REDESIGN
   Matches About/Contact/Loans/Services/Team/EMI aesthetic.
   Dark hero · magazine post list · modern sidebar.
   ========================================================== */

/* ============ PAGE HERO — DARK GRADIENT MESH ============ */
.page-hero {
  position: relative;
  padding: 140px 0 180px;
  text-align: center;
  overflow: hidden;
  background: #0a0e27;
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(0, 51, 160, 0.55), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(242, 101, 34, 0.45), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.4), transparent 45%),
    radial-gradient(circle at 25% 90%, rgba(0, 194, 255, 0.35), transparent 45%);
  z-index: -2;
  animation: blogMesh 20s ease-in-out infinite alternate;
}
@keyframes blogMesh {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.15) rotate(4deg); }
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

.page-hero h1 {
  font-family: var(--font-secondary);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 26px;
  letter-spacing: -0.045em;
  line-height: 0.95;
  position: relative;
  display: inline-block;
  z-index: 2;
}
.page-hero h1::after {
  content: '';
  display: block;
  width: 120px;
  height: 5px;
  margin: 26px auto 0;
  background: linear-gradient(135deg, #F26522, #ff8534);
  border-radius: 3px;
  box-shadow: 0 8px 30px rgba(242, 101, 34, 0.6);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 26px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 8px;
  position: relative;
  z-index: 2;
}
.breadcrumb a { color: #ffb88c; font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: #ffffff; font-weight: 600; }

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1;
}
.hero-wave path { fill: #ffffff; }

/* ============ BLOG LAYOUT ============ */
.blog-section {
  padding: 100px 0 120px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}
.blog-section::before {
  content: '';
  position: absolute;
  top: 15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 51, 160, 0.05), transparent 70%);
  border-radius: 50%;
  animation: floatSlow 14s ease-in-out infinite;
  pointer-events: none;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

/* ============ POSTS ============ */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.post-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-bottom: 1px solid #e5e9f0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.post-card:first-child { padding-top: 0; }
.post-card:last-of-type { border-bottom: none; padding-bottom: 0; }

/* Left accent bar */
.post-card::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: linear-gradient(180deg, #0033A0, #F26522);
  border-radius: 3px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card:hover::before { transform: scaleY(1); }

.post-card.no-thumb {
  grid-template-columns: 1fr;
  padding-left: 0;
}
.post-card.no-thumb::before { display: none; }

.post-thumb {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  height: 220px;
  background: linear-gradient(135deg, #f0f4ff, #e0e8ff);
  position: relative;
}

.post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 14, 39, 0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.post-card:hover .post-thumb::after { opacity: 1; }

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.post-card:hover .post-thumb img { transform: scale(1.08); }

.post-content {
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: #8892a6;
  margin-bottom: 14px;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.post-meta i { color: #F26522; margin-right: 5px; font-size: 11px; }

.post-content h3 {
  font-family: var(--font-secondary);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.post-content h3 a {
  color: #0b1b3a;
  text-decoration: none;
  transition: color 0.3s;
  background-image: linear-gradient(180deg, transparent 92%, rgba(242, 101, 34, 0.4) 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  background-position: 0 100%;
  transition: background-size 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}
.post-card:hover .post-content h3 a {
  color: #0033A0;
  background-size: 100% 100%;
}

.post-content p {
  font-size: 15.5px;
  color: #4a5a72;
  line-height: 1.75;
  margin-bottom: 22px;
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0033A0;
  align-self: flex-start;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px 20px;
  border-radius: 40px;
  background: rgba(0, 51, 160, 0.06);
  border: 1px solid rgba(0, 51, 160, 0.1);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.read-more i {
  font-size: 11px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.read-more:hover {
  background: linear-gradient(135deg, #F26522, #ff8534);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 25px -6px rgba(242, 101, 34, 0.5);
  transform: translateY(-2px);
}
.read-more:hover i { transform: translateX(6px); }

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
}

.pagination a,
.pagination button {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #0b1b3a;
  font-size: 14.5px;
  font-weight: 700;
  border: 1.5px solid #e5e9f0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-primary);
  text-decoration: none;
}
.pagination a:hover,
.pagination button:hover:not([disabled]) {
  background: linear-gradient(135deg, #0033A0, #1a4db3);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -8px rgba(0, 51, 160, 0.5);
}
.pagination a.active {
  background: linear-gradient(135deg, #F26522, #ff8534);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 28px -8px rgba(242, 101, 34, 0.5);
  transform: translateY(-3px);
}

.pagination button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-dots {
  color: #8892a6;
  padding: 0 8px;
  align-self: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2px;
}

/* ============ SIDEBAR ============ */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 100px;
}

.widget {
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 20px;
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0033A0, #F26522, #00C2FF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.widget:hover::before { transform: scaleX(1); }

.widget:last-child { margin-bottom: 0; }

.widget-title {
  font-family: var(--font-secondary);
  font-size: 20px;
  font-weight: 800;
  color: #0b1b3a;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 14px;
  letter-spacing: -0.02em;
}
.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45px;
  height: 3px;
  background: linear-gradient(90deg, #0033A0, #F26522);
  border-radius: 2px;
}
.widget-title.arrow::before {
  content: '↪';
  color: #F26522;
  font-size: 22px;
  margin-right: 10px;
  font-family: var(--font-primary);
  font-weight: 700;
}

.widget-empty {
  font-size: 14px;
  color: #8892a6;
  font-style: italic;
}

/* ---------- Search Form ---------- */
.search-form {
  display: flex;
  border: 1.5px solid #e5e9f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.3s ease;
}
.search-form:focus-within {
  border-color: #0033A0;
  box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.1);
}
.search-form input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: 14.5px;
  font-family: var(--font-primary);
  color: #0b1b3a;
  background: transparent;
}
.search-form input::placeholder { color: #98a2b3; }
.search-form button {
  padding: 14px 22px;
  background: linear-gradient(135deg, #0033A0, #1a4db3);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.search-form button:hover {
  background: linear-gradient(135deg, #F26522, #ff8534);
}

.search-form.small button {
  padding: 14px 18px;
  font-size: 14px;
}

/* ---------- Recent Posts ---------- */
.recent-posts,
.latest-news {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts li,
.latest-news li {
  margin-bottom: 20px;
}
.recent-posts li:last-child,
.latest-news li:last-child { margin-bottom: 0; }

.recent-posts a,
.latest-news a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  transition: all 0.3s ease;
}

.recent-posts a:hover,
.latest-news a:hover {
  transform: translateX(4px);
}

.recent-posts img,
.latest-news img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f0f4ff, #e0e8ff);
  box-shadow: 0 8px 20px -8px rgba(0, 51, 160, 0.2);
  transition: all 0.4s ease;
}
.recent-posts a:hover img,
.latest-news a:hover img {
  box-shadow: 0 12px 25px -8px rgba(242, 101, 34, 0.4);
}

.recent-posts h5,
.latest-news h5 {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  color: #0b1b3a;
  line-height: 1.4;
  margin-bottom: 8px;
  transition: color 0.3s;
  letter-spacing: -0.01em;
}
.recent-posts a:hover h5,
.latest-news a:hover h5 { color: #0033A0; }

.rp-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #8892a6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rp-date i { color: #F26522; font-size: 11px; }

/* ---------- Archives / Categories Lists ---------- */
.archives-list,
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archives-list li,
.categories-list li {
  padding: 12px 0;
  font-size: 14.5px;
  color: #0b1b3a;
  border-bottom: 1px dashed #e5e9f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.archives-list li:last-child,
.categories-list li:last-child { border-bottom: none; }

.archives-list li:hover,
.categories-list li:hover {
  padding-left: 6px;
}

.archives-list i,
.categories-list i {
  color: #F26522;
  font-size: 11px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}
.archives-list li:hover i,
.categories-list li:hover i { transform: translateX(3px); }

.archives-list a,
.categories-list a {
  color: #0b1b3a;
  transition: color 0.3s ease;
  flex-grow: 1;
  text-decoration: none;
  font-weight: 600;
}
.archives-list a:hover,
.categories-list a:hover { color: #0033A0; }

.categories-list span {
  font-size: 12.5px;
  color: #8892a6;
  font-weight: 700;
  background: #f0f4ff;
  padding: 3px 10px;
  border-radius: 40px;
}

/* ---------- Categories Select ---------- */
.categories-select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e5e9f0;
  border-radius: 12px;
  font-size: 14.5px;
  font-family: var(--font-primary);
  color: #0b1b3a;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230033A0' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 45px;
}
.categories-select:focus {
  border-color: #0033A0;
  box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.1);
}

/* ---------- Promo Widget ---------- */
.promo-widget {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3f 50%, #0033A0 100%);
  color: #ffffff;
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  border: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.promo-widget::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.4), transparent 65%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
.promo-widget h4 {
  font-family: var(--font-secondary);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 26px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: linear-gradient(135deg, #F26522, #ff8534);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: relative;
  z-index: 1;
  box-shadow: 0 15px 35px -10px rgba(242, 101, 34, 0.6);
}
.promo-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 50px -10px rgba(242, 101, 34, 0.8);
}

/* ---------- Tags Cloud ---------- */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags-cloud a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #f0f4ff;
  color: #0033A0;
  border: 1px solid transparent;
  border-radius: 40px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  text-transform: uppercase;
}
.tags-cloud a:hover {
  background: linear-gradient(135deg, #0033A0, #1a4db3);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -6px rgba(0, 51, 160, 0.4);
}

/* ============ COMMENTS ============ */
.comments-list {
  margin-bottom: 40px;
}

.comment-item {
  display: flex;
  gap: 18px;
  padding: 24px;
  margin-bottom: 16px;
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 20px;
  transition: all 0.35s ease;
}
.comment-item:hover {
  border-color: rgba(0, 51, 160, 0.15);
  box-shadow: 0 20px 40px -18px rgba(0, 51, 160, 0.15);
  transform: translateY(-2px);
}

.comment-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0033A0, #1a4db3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 10px 25px -8px rgba(0, 51, 160, 0.4);
}

.comment-body { flex: 1; }

.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-head strong {
  color: #0b1b3a;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 800;
}

.comment-date {
  font-size: 12.5px;
  color: #8892a6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comment-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #4a5a72;
}

.comments-empty {
  text-align: center;
  color: #8892a6;
  font-style: italic;
  padding: 40px 20px;
  background: #f7f9ff;
  border-radius: 20px;
  border: 1px dashed #e5e9f0;
}

.comment-form-title {
  margin-top: 36px;
  margin-bottom: 18px;
  font-family: var(--font-secondary);
  font-size: 22px;
  font-weight: 800;
  color: #0b1b3a;
}

/* ============ LOADING / ERROR / EMPTY ============ */
.posts-loading,
.posts-error,
.posts-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 90px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f7f9ff, #eef1ff);
  border: 1px dashed rgba(0, 51, 160, 0.15);
}

.posts-loading i,
.posts-empty i,
.posts-error i {
  font-size: 46px;
  color: #0033A0;
  margin-bottom: 24px;
  display: block;
}

.posts-error i { color: #e53935; }

.posts-loading p,
.posts-error p,
.posts-empty p {
  color: #4a5a72;
  margin-bottom: 16px;
  font-size: 15px;
}

.posts-error h3,
.posts-empty h3 {
  color: #0b1b3a;
  margin-bottom: 14px;
  font-family: var(--font-secondary);
  font-size: 22px;
}

/* ============ ANIMATIONS ============ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-24px); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .page-hero { padding: 110px 0 140px; }
  .page-hero h1 { font-size: 56px; }
  .blog-layout { grid-template-columns: 1fr 320px; gap: 40px; }
  .post-card { grid-template-columns: 240px 1fr; gap: 28px; }
  .post-thumb { height: 200px; }
  .post-content h3 { font-size: 22px; }
}

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 50px; }
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .promo-widget { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .page-hero { padding: 90px 0 110px; }
  .page-hero h1 { font-size: 40px; }
  .page-hero h1::after { width: 80px; height: 4px; margin-top: 20px; }

  .blog-section { padding: 70px 0 90px; }

  .post-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0;
  }
  .post-thumb { height: 220px; }

  .post-content h3 { font-size: 21px; }
  .post-content p { font-size: 14.5px; }

  .pagination a,
  .pagination button {
    width: 40px;
    height: 40px;
    font-size: 13.5px;
  }

  .widget {
    padding: 24px 22px;
    border-radius: 18px;
  }
  .widget-title { font-size: 18px; }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .comment-item { padding: 20px; }
  .comment-avatar { width: 44px; height: 44px; font-size: 16px; }
}