 /* Custom styles for the template */
    .search-wrap { position: relative; width: 100%; }
    .search-ico { position: absolute; left: 25px; top: 50%; transform: translateY(-50%); color: #6c757d; z-index: 10; }
    .search-input { padding-left: 48px; padding-right: 100px; height: 56px; border-radius: 40px; }
    .kbd-hint { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
    .kbd { display: inline-block; padding: 3px 6px; font-size: 12px; background: #e9ecef; border-radius: 4px; border: 1px solid #dee2e6; }
    .icon-btn { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 40px; }
    
    .hero-big { height: 360px; border-radius: 24px; padding: 32px; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
    .hero-small { height: 170px; border-radius: 24px; padding: 24px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    .badge-hot { position: absolute; top: 16px; right: 16px; padding: 8px 16px; border-radius: 40px; }
    .hero-content { color: white; width: 100%; }
    .hero-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
    
    .section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
    .section-title { font-size: 24px; font-weight: 700; margin: 0; }
    
    .cat-card { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 16px; text-decoration: none; color: inherit; transition: all 0.2s; }
    .cat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .cat-ico { width: 48px; height: 48px; background: var(--bs-primary-bg-subtle); border-radius: 40px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
    
    .p-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 16px; overflow: hidden; transition: all 0.2s; }
    .p-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .p-thumb { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
    .p-meta { padding: 16px; }
    .p-title { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
    .p-sub { font-size: 12px; color: var(--bs-secondary-color); }
    .p-price { font-weight: 700; color: var(--bs-primary); }
    
    .swiper-btn { width: 40px; height: 40px; border-radius: 40px; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
    .swiper-btn:hover { background: var(--bs-primary); color: white; border-color: var(--bs-primary); }
    
    .store-tile { padding: 24px; border: 1px solid var(--bs-border-color); border-radius: 16px; text-align: center; font-weight: 700; font-size: 18px; }
    
    footer { padding: 48px 0 24px; background: var(--bs-body-bg); border-top: 1px solid var(--bs-border-color); margin-top: 48px; }
    .brand-dot { width: 48px; height: 48px; background: var(--bs-primary); color: white; border-radius: 40px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
    
    .top-announcement { background: #1a1a1a; color: white; font-size: 14px; }
    .promo-link { color: #ffd700; }
    .promo-link:hover { color: #ffed4e; }
    .toplink { color: #aaa; }
    .toplink:hover { color: white; }
    .midbar { transition: all 0.3s; }
    .midbar.sticky { position: sticky; top: 0; z-index: 1020; }
    
    .mega-dropdown { position: static; }
    .mega-menu { border: none; border-radius: 24px; margin-top: 8px; }
    .mega-title { font-weight: 700; margin-bottom: 12px; color: var(--bs-primary); }
    .mega-item { display: block; padding: 6px 0; color: var(--bs-body-color); text-decoration: none; font-size: 14px; }
    .mega-item:hover { color: var(--bs-primary); }
    
    .result-search { min-height: 100vh; }
    .block-split { border: 1px solid var(--bs-border-color); border-radius: 24px; background: var(--bs-body-bg); }
    .left-banner { height: 100%; border-radius: 24px; padding: 32px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; display: flex; align-items: flex-end; }
    .left-banner .inner { width: 100%; }
    .left-banner .tag { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
    
    @media (max-width: 768px) {
      .hero-big { height: 280px; padding: 24px; }
      .hero-title { font-size: 24px; }
    }

.language-dropdown {
    position: relative;
    z-index: 9999;
}
.language-dropdown .dropdown-menu {
    position: absolute !important;
    z-index: 10000 !important;
    margin-top: 0.5rem !important;
    min-width: 200px;
    /* Hapus max-height dan overflow */
    max-height: none;
    overflow: visible;
    padding: 0.5rem 0;
}

/* Pastikan semua item tampil */
.language-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Styling untuk dark mode */
[data-bs-theme="dark"] .language-dropdown .dropdown-menu {
    background-color: #2d2d2d;
    border-color: #404040;
}

[data-bs-theme="dark"] .language-dropdown .dropdown-item {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .language-dropdown .dropdown-item:hover {
    background-color: #404040;
    color: #fff;
}

[data-bs-theme="dark"] .language-dropdown .dropdown-header {
    color: #9ca3af;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .language-dropdown .dropdown-menu {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        min-width: 250px;
        max-height: none;
        overflow: visible;
    }
    
    /* Tambahkan overlay gelap saat dropdown terbuka di mobile */
    .language-dropdown .dropdown-menu.show {
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }
}

/* Animasi smooth */
.language-dropdown .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.language-dropdown .dropdown-menu.show {
    visibility: visible;
    opacity: 1;
}

/* Mega Menu Styling */
.mega-dropdown {
  position: static !important;
}

.mega-menu {
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 100% !important;
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin-top: 0.5rem !important;
  background: #fff !important;
}

[data-bs-theme="dark"] .mega-menu {
  background: #2d2d2d !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.mega-inner {
  max-height: 70vh;
  overflow-y: auto;
}

.mega-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #0d6efd;
  display: inline-block;
}

[data-bs-theme="dark"] .mega-title {
  color: #9ca3af;
  border-bottom-color: #3d8bfd;
}

.mega-item {
  display: block;
  padding: 0.5rem 0;
  color: #212529;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border-radius: 6px;
}

[data-bs-theme="dark"] .mega-item {
  color: #e5e7eb;
}

.mega-item:hover {
  color: #0d6efd;
  background-color: rgba(13, 110, 253, 0.05);
  padding-left: 0.5rem;
}

[data-bs-theme="dark"] .mega-item:hover {
  color: #3d8bfd;
  background-color: rgba(61, 139, 253, 0.1);
}

/* Departments button */
.departments-btn {
  border-width: 2px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.departments-btn:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

/* Navbar styling */
.navbar {
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  background: #fff !important;
}

[data-bs-theme="dark"] .navbar {
  background: #1e1e1e !important;
  border-bottom-color: #2d2d2d;
}

.navbar .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  color: #212529 !important;
  transition: color 0.2s ease;
}

[data-bs-theme="dark"] .navbar .nav-link {
  color: #e5e7eb !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #0d6efd !important;
}

[data-bs-theme="dark"] .navbar .nav-link:hover,
[data-bs-theme="dark"] .navbar .nav-link.active {
  color: #3d8bfd !important;
}

.nav-underline .nav-link {
  border-bottom: 2px solid transparent;
}

.nav-underline .nav-link:hover,
.nav-underline .nav-link.active {
  border-bottom-color: #0d6efd;
}

[data-bs-theme="dark"] .nav-underline .nav-link:hover,
[data-bs-theme="dark"] .nav-underline .nav-link.active {
  border-bottom-color: #3d8bfd;
}

/* Responsive */
@media (max-width: 992px) {
  .mega-menu {
    position: static !important;
    transform: none !important;
    min-width: 100% !important;
    box-shadow: none !important;
    margin-top: 0 !important;
  }
  
  .mega-item {
    padding: 0.5rem 1rem;
  }
  
  .departments-btn {
    width: 100%;
    text-align: left;
  }
}

/* Scrollbar styling */
.mega-inner::-webkit-scrollbar {
  width: 6px;
}

.mega-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

[data-bs-theme="dark"] .mega-inner::-webkit-scrollbar-track {
  background: #2d2d2d;
}

.mega-inner::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

[data-bs-theme="dark"] .mega-inner::-webkit-scrollbar-thumb {
  background: #555;
}

.mega-inner::-webkit-scrollbar-thumb:hover {
  background: #555;
}

[data-bs-theme="dark"] .mega-inner::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Top Reader Cards Styling */
.reader-card {
  background: var(--bs-body-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bs-border-color);
}

.reader-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="dark"] .reader-card {
  background: #2d2d2d;
  border-color: #404040;
}

[data-bs-theme="dark"] .reader-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.reader-avatar-wrapper {
  position: relative;
  padding: 2rem 1rem 1.5rem;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.reader-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.reader-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reader-rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.reader-info {
  padding: 1.5rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.reader-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--bs-body-color);
  text-align: center;
}

.reader-meta {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.reader-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  background: var(--bs-tertiary-bg);
  border-radius: 50px;
}

[data-bs-theme="dark"] .reader-stats {
  background: #363636;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

.stat-item i {
  color: var(--bs-primary);
  font-size: 0.9rem;
}

.stat-item span {
  font-weight: 500;
}

.reader-badge {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 0.5rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
  margin-top: auto;
}

.reader-badge i {
  margin-right: 0.25rem;
}

/* Left Banner customization */
.left-banner .tag {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: fit-content;
}

/* Swiper customization for top reader */
#topReaderSlider .swiper-slide {
  height: auto;
}

#topReaderSlider .swiper-pagination {
  position: relative;
  margin-top: 1.5rem;
}

#topReaderSlider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ced4da;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] #topReaderSlider .swiper-pagination-bullet {
  background: #495057;
}

#topReaderSlider .swiper-pagination-bullet-active {
  background: #0d6efd;
  width: 24px;
  border-radius: 4px;
}

[data-bs-theme="dark"] #topReaderSlider .swiper-pagination-bullet-active {
  background: #3d8bfd;
}

/* Dark mode badge adjustments */
[data-bs-theme="dark"] .reader-badge {
  background: linear-gradient(135deg, #B8860B, #8B6914);
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reader-avatar {
    width: 80px;
    height: 80px;
  }
  
  .reader-rank {
    font-size: 1rem;
    padding: 0.2rem 0.8rem;
  }
  
  .reader-name {
    font-size: 1rem;
  }
  
  .stat-item {
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .reader-avatar {
    width: 70px;
    height: 70px;
  }
  
  .reader-rank {
    font-size: 0.9rem;
  }
  
  .reader-info {
    padding: 1rem 0.75rem;
  }
}

/* Download buttons styling */
.download-btn {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.download-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.download-btn img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .download-btn {
  background: transparent;
}

[data-bs-theme="dark"] .download-btn img {
  filter: brightness(0.9);
}

/* E-Resource Cards Styling */
.eresource-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

[data-bs-theme="dark"] .eresource-card {
  background: #2d2d2d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.eresource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-bs-theme="dark"] .eresource-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.eresource-header {
  position: relative;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dee2e6;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-bs-theme="dark"] .eresource-header {
  background: linear-gradient(135deg, #2d2d2d 0%, #363636 100%);
  border-bottom-color: #404040;
}

.eresource-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(1);
  transition: filter 0.3s ease;
}

[data-bs-theme="dark"] .eresource-logo {
  filter: brightness(0.9) contrast(1.2);
}

.eresource-category {
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s ease, color 0.3s ease;
}

[data-bs-theme="dark"] .eresource-category {
  background: rgba(61, 139, 253, 0.2);
  color: #3d8bfd;
}

.eresource-body {
  padding: 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: background 0.3s ease;
}

[data-bs-theme="dark"] .eresource-body {
  background: #2d2d2d;
}

.eresource-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #212529;
  transition: color 0.3s ease;
}

[data-bs-theme="dark"] .eresource-title {
  color: #e5e7eb;
}

.eresource-description {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1;
  transition: color 0.3s ease;
}

[data-bs-theme="dark"] .eresource-description {
  color: #9ca3af;
}

.eresource-body .btn {
  margin-top: auto;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

[data-bs-theme="dark"] .eresource-body .btn-primary {
  background-color: #3d8bfd;
  border-color: #3d8bfd;
}

[data-bs-theme="dark"] .eresource-body .btn-primary:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* Swiper customization */
#eresourcesSlider {
  padding: 0.5rem 0.25rem;
}

#eresourcesSlider .swiper-slide {
  height: auto;
}

#eresourcesSlider .swiper-pagination {
  position: relative;
  margin-top: 1.5rem;
}

#eresourcesSlider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ced4da;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] #eresourcesSlider .swiper-pagination-bullet {
  background: #495057;
}

#eresourcesSlider .swiper-pagination-bullet-active {
  background: #0d6efd;
  width: 24px;
  border-radius: 4px;
}

[data-bs-theme="dark"] #eresourcesSlider .swiper-pagination-bullet-active {
  background: #3d8bfd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .eresource-header {
    padding: 1.25rem 0.75rem;
  }
  
  .eresource-logo {
    height: 35px;
  }
  
  .eresource-category {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
  }
  
  .eresource-body {
    padding: 1rem 0.75rem;
  }
  
  .eresource-title {
    font-size: 0.95rem;
  }
  
  .eresource-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .eresource-logo {
    height: 30px;
  }
  
  .eresource-title {
    font-size: 0.9rem;
  }
  
  .eresource-description {
    font-size: 0.75rem;
  }
  
  .eresource-body .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}

/* Blog Cards Styling */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

[data-bs-theme="dark"] .blog-card {
  background: #2d2d2d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .blog-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.blog-header {
  position: relative;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
}

.blog-initials {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.first-letter {
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.second-letter {
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
  margin-left: -4px;
}

.blog-category {
  font-size: 0.7rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-body {
  padding: 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .blog-body {
  background-color: #2d2d2d;
}

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title-link {
  color: #212529 !important;
  transition: color 0.2s ease;
}

[data-bs-theme="dark"] .blog-title-link {
  color: #e5e7eb !important;
}

.blog-title-link:hover {
  color: #0d6efd !important;
}

[data-bs-theme="dark"] .blog-title-link:hover {
  color: #3d8bfd !important;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color 0.3s ease;
}

[data-bs-theme="dark"] .blog-excerpt {
  color: #9ca3af;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
  transition: border-color 0.3s ease;
}

[data-bs-theme="dark"] .blog-footer {
  border-top-color: #404040;
}

.blog-date {
  font-size: 0.75rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

[data-bs-theme="dark"] .blog-date {
  color: #9ca3af;
}

.blog-footer .btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.blog-btn {
  border-color: #dee2e6;
  color: #6c757d;
}

[data-bs-theme="dark"] .blog-btn {
  border-color: #404040;
  color: #9ca3af;
}

.blog-btn:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

/* Swiper customization for blog */
#blogSlider .swiper-slide {
  height: auto;
}

#blogSlider .swiper-pagination {
  position: relative;
  margin-top: 1.5rem;
}

#blogSlider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ced4da;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] #blogSlider .swiper-pagination-bullet {
  background: #495057;
}

#blogSlider .swiper-pagination-bullet-active {
  background: #0d6efd;
  width: 24px;
  border-radius: 4px;
}

[data-bs-theme="dark"] #blogSlider .swiper-pagination-bullet-active {
  background: #3d8bfd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .first-letter {
    font-size: 3.5rem;
  }
  
  .second-letter {
    font-size: 2rem;
  }
  
  .blog-category {
    font-size: 0.65rem;
    padding: 0.25rem 0.75rem;
  }
  
  .blog-body {
    padding: 1rem;
  }
  
  .blog-title {
    font-size: 0.95rem;
  }
  
  .blog-excerpt {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .blog-header {
    min-height: 120px;
    padding: 1.5rem 0.75rem;
  }
  
  .first-letter {
    font-size: 3rem;
  }
  
  .second-letter {
    font-size: 1.75rem;
  }
  
  .blog-body {
    padding: 0.875rem;
  }
  
  .blog-title {
    font-size: 0.9rem;
  }
}