/* ===== BLOG LIST ===== */
.blogListSec {
  background: #f9f9f9;
  padding-block: 70px;
}
/* Search */
.blog-search-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto 40px;
}

.blog-search-input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
  outline: none;
  transition: border 0.2s;
  background: #fff;
}

.blog-search-input:focus {
  border-color: #053d7a;
}

.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  width: 20px;
  height: 20px;
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

/* Card */
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog-card figure {
  margin: 0;
  overflow: hidden;
}

.blog-card figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.blog-card:hover figure img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 20px;
}

.blog-card-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: #051e30;
  text-decoration: none;
}

.blog-card-content h3 a:hover {
  color: #053d7a;
}

.blog-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.blog-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: #053d7a;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* No results */
.no-results {
  text-align: center;
  font-size: 16px;
  color: #888;
  padding: 40px 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
}

.page-btn:hover {
  background: #053d7a;
  color: #fff;
  border-color: #053d7a;
}

.page-btn.active {
  background: #053d7a;
  color: #fff;
  border-color: #053d7a;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BLOG DETAIL PAGE - MINIMAL & BEAUTIFUL UI ===== */
/* Modern, clean design with improved typography, spacing, and subtle interactions */

/* Base variables for consistent theming */
:root {
  --primary-color: #0a5c8e;
  --primary-dark: #084c74;
  --text-dark: #1e293b;
  --text-medium: #334155;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg-white: #ffffff;
  --bg-offwhite: #fafcff;
  --border-light: #eef2f6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --transition: all 0.2s ease;
}

/* Hero Section - Clean, full-width image with subtle overlay for depth */
.blog-detail-hero {
  width: 100%;
  height: 480px;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  position: relative;
}

.blog-detail-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

/* Main wrapper - refined grid and spacing */
.blog-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  align-items: start;
  background: var(--bg-offwhite);
}

/* Main content area - optimized for readability */
.blog-detail-main {
  min-width: 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
}

/* Meta information - elegant and minimal */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.blog-meta-date,
.blog-meta-author {
  font-size: 13px;
  font-weight: 450;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-meta-date::before {
  content: "📅";
  font-size: 12px;
  opacity: 0.7;
}

.blog-meta-author::before {
  content: "✍️";
  font-size: 12px;
  opacity: 0.7;
}

/* Title styling - bold, clean, balanced */
.blog-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  font-family: var(--font-sans);
}

/* Content styling - optimized for long-form reading */
.blog-detail-content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-medium);
  font-family: var(--font-sans);
}

.blog-detail-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 2rem 0 1rem;
  letter-spacing: -0.01em;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-light);
}

.blog-detail-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.75rem 0 0.75rem;
}

.blog-detail-content p {
  margin-bottom: 1.25rem;
}

.blog-detail-content a {
  color: var(--primary-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.blog-detail-content a:hover {
  border-bottom-color: var(--primary-color);
}

.blog-detail-content ul,
.blog-detail-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.blog-detail-content li {
  margin-bottom: 0.5rem;
}

.blog-detail-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--primary-color);
  background: var(--bg-offwhite);
  border-radius: var(--radius-sm);
  font-style: normal;
  color: var(--text-dark);
}

.blog-detail-content img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

/* ===== SIDEBAR STYLES - Refined, subtle, sticky ===== */
.blog-detail-sidebar {
  position: relative;
}

/* Search Bar - Modern, minimal */
.sidebar-search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 48px;
  overflow: hidden;
  margin-bottom: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.sidebar-search-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 92, 142, 0.1);
}

.sidebar-search-wrapper input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text-dark);
}

.sidebar-search-wrapper input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.sidebar-search-wrapper button {
  padding: 10px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.sidebar-search-wrapper button:hover {
  color: var(--primary-color);
}

.sidebar-search-wrapper button i {
  width: 18px;
  height: 18px;
}

/* Sidebar Card - Clean card with sticky behavior */
.blog-sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.blog-sidebar-card:hover {
  box-shadow: var(--shadow-lg);
}

.blog-sidebar-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  letter-spacing: -0.2px;
}

/* Recent Posts Items - Minimal but beautiful */
.recent-post-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: var(--transition);
  align-items: flex-start;
}

.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-post-item:first-child {
  padding-top: 0;
}

.recent-post-item:hover {
  transform: translateX(4px);
}

.recent-post-item img {
  width: 75px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.recent-post-item:hover img {
  transform: scale(1.02);
}

.recent-post-info {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.recent-post-item:hover .recent-post-title {
  color: var(--primary-color);
}

.recent-post-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.recent-post-date::before {
  content: "📄";
  font-size: 9px;
  opacity: 0.7;
}

.recent-post-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .blog-detail-wrapper {
    gap: 32px;
    padding: 32px 20px;
  }

  .blog-detail-main {
    padding: 32px 36px;
  }

  .blog-detail-title {
    font-size: 2rem;
  }
}

@media (max-width: 991px) {
  .blog-detail-wrapper {
    grid-template-columns: 1fr;
  }

  .blog-sidebar-card {
    position: static;
    margin-top: 16px;
  }

  .blog-detail-hero {
    height: 320px;
  }

  .blog-detail-main {
    padding: 28px 32px;
  }
}

@media (max-width: 768px) {
  .blog-detail-wrapper {
    padding: 24px 16px;
    gap: 28px;
  }

  .blog-detail-main {
    padding: 20px 24px;
  }

  .blog-detail-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
  }

  .blog-detail-content {
    font-size: 1rem;
    line-height: 1.65;
  }

  .blog-detail-content h2 {
    font-size: 1.5rem;
  }

  .blog-detail-hero {
    height: 260px;
  }

  .recent-post-item {
    gap: 12px;
    padding: 14px 0;
  }

  .recent-post-item img {
    width: 65px;
    height: 60px;
  }

  .blog-sidebar-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .blog-detail-main {
    padding: 16px 18px;
  }

  .blog-detail-title {
    font-size: 1.5rem;
  }

  .blog-meta {
    gap: 10px;
  }

  .blog-meta-date,
  .blog-meta-author {
    font-size: 11px;
  }

  .sidebar-search-wrapper input {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Additional polish for scroll behavior and smoothness */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-offwhite);
}

/* Improve focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Subtle image loading effect */
.recent-post-item img {
  background-color: var(--border-light);
}
