/* ===============================================
   FEED & SERVICE GRID STYLES
   Comprehensive styles for homepage feed and all list pages
   Supports: Latest Feed, Service Feed, Posts List, Mobiles List, Services Browse
   =============================================== */

/* ==================== FEED GRID LAYOUT ==================== */
.feed-grid,
.listing-grid,
.services-grid .row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-item,
.listing-grid > div,
.services-grid .col-12 {
  animation: fadeInUp 0.6s ease-out;
}

/* ==================== CONTENT CARD - UNIFIED STYLES ==================== */
.content-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card-light, #ffffff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
}

.content-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color, #6366f1);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

/* ==================== CARD IMAGE SECTION ==================== */
.content-card-image,
.card-image-section,
.service-carousel,
.service-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f7ff 0%, #f3e8ff 100%);
  position: relative;
  flex-shrink: 0;
}

.content-card-image img,
.card-image-wrapper img,
.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.content-card:hover .content-card-image img,
.content-card:hover .card-image-wrapper img,
.content-card:hover .service-image {
  transform: scale(1.05);
}

/* Image Fallback Placeholder */
.content-card-image:empty,
.card-image-section:empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.content-card-image:empty::before {
  content: '';
  display: block;
  width: 4rem;
  height: 4rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 0.5rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  opacity: 0;
  transition: all 0.3s ease;
  width: 2.5rem;
  height: 2.5rem;
}

.content-card:hover .carousel-control-prev,
.content-card:hover .carousel-control-next,
.card-image-section:hover .carousel-control-prev,
.card-image-section:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Card Badge/Status Indicator */
.content-card-badge,
.service-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.9);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  z-index: 10;
  animation: slideInDown 0.4s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-card-badge.post {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(16, 185, 129, 0.9) 100%);
}

.content-card-badge.mobile {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(37, 99, 235, 0.9) 100%);
}

.content-card-badge.page {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
}

.content-card-badge.service {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.9) 0%, rgba(217, 119, 6, 0.9) 100%);
}

.content-card-badge i {
  display: inline-block;
}

/* ==================== CARD BODY SECTION ==================== */
.card-body-section,
.content-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

/* ==================== CARD TITLE ==================== */
.content-card-title,
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-light, #1e293b);
  margin: 0 0 0.75rem 0;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-wrap: break-word;
}

.content-card:hover .content-card-title,
.content-card:hover .card-title {
  color: var(--primary-color, #6366f1);
}

.content-card-title a {
  text-decoration: none;
  color: inherit;
}

.content-card-title a:hover {
  text-decoration: underline;
}

/* ==================== CARD EXCERPT ==================== */
.content-card-excerpt,
.card-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.6;
  margin: 0 0 1rem 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== CARD META INFORMATION ==================== */
.card-meta-tags,
.content-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
}

.meta-tag,
.content-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color, #6366f1);
  border-radius: 0.35rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.meta-tag:hover,
.content-card-meta span:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: translateY(-1px);
}

.meta-tag.tag-success,
.content-card-meta .tag-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.meta-tag.tag-danger,
.content-card-meta .tag-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.meta-tag.tag-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.meta-tag.tag-info,
.content-card-meta .tag-info {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.meta-tag.tag-muted {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.meta-tag i,
.content-card-meta i {
  opacity: 0.8;
}

/* ==================== CARD FOOTER SECTION ==================== */
.card-footer-section,
.content-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light, #e5e7eb);
  gap: 1rem;
  margin-top: auto;
  flex-wrap: wrap;
}

/* Card Stats/Numbers */
.card-date,
.content-card-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
}

.card-date {
  flex: 1;
}

.content-card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.content-card-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-number {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color, #6366f1);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}

/* ==================== CARD ACTION BUTTONS ==================== */
.card-action,
.card-btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.card-btn,
.card-action a,
.content-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--primary-color, #6366f1);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.card-btn:hover,
.card-action a:hover,
.content-card-btn:hover {
  background: var(--primary-dark, #4f46e5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.card-btn:active,
.card-action a:active,
.content-card-btn:active {
  transform: translateY(0);
}

/* Variant Buttons */
.card-btn.btn-mobile,
.btn-mobile {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.card-btn.btn-mobile:hover,
.btn-mobile:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.card-btn.btn-post,
.btn-post {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.card-btn.btn-post:hover,
.btn-post:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.card-btn.btn-page,
.btn-page {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.card-btn.btn-page:hover,
.btn-page:hover {
  background: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
}

/* ==================== SERVICE CARD SPECIFIC STYLES ==================== */
.service-card {
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.service-icon-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  position: relative;
  overflow: hidden;
}

.service-icon-header .icon-backdrop {
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}

.service-icon-header .icon-main {
  position: relative;
  z-index: 2;
  color: var(--primary-color, #6366f1);
  transition: transform 0.3s ease;
}

.service-card:hover .icon-main {
  transform: scale(1.1) rotateY(10deg);
}

.service-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f3e8ff 100%);
  color: var(--text-muted, #9ca3af);
}

/* Premium Badge */
.service-card .badge.bg-warning,
.service-card .badge.bg-info {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==================== FILTER SECTION (for list pages) ==================== */
.filter-card,
.filter-section {
  background: var(--card-light, #ffffff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-section {
  flex: 1;
  min-width: 150px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  margin-bottom: 0;
}

.filter-section label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-light, #1e293b);
  font-size: 0.9rem;
}

.search-input,
.filter-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  background: var(--card-light, #ffffff);
  color: var(--text-light, #1e293b);
  transition: all 0.2s ease;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--primary-color, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-search {
  padding: 0.65rem 1.25rem;
  background: var(--primary-color, #6366f1);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.btn-search:hover {
  background: var(--primary-dark, #4f46e5);
  transform: translateY(-2px);
}

/* ==================== EMPTY STATE ==================== */
.feed-empty-state,
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: linear-gradient(135deg, var(--bg-light, #f8fafc) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 2px dashed var(--border-light, #e5e7eb);
  border-radius: 1rem;
  text-align: center;
  padding: 2rem;
}

.empty-state-content,
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.empty-state h3,
.empty-state h4 {
  margin: 0;
  color: var(--text-light, #1e293b);
  font-weight: 600;
}

.empty-state p,
.empty-state-content p {
  margin: 0;
  color: var(--text-muted, #6b7280);
  font-size: 0.95rem;
}

/* ==================== PAGINATION ==================== */
.pagination-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 0.75rem;
  background: var(--card-light, #ffffff);
  color: var(--text-light, #1e293b);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.pagination-link:hover:not(.disabled):not(.active) {
  background: var(--primary-color, #6366f1);
  color: white;
  border-color: var(--primary-color, #6366f1);
  transform: translateY(-2px);
}

.pagination-link.active {
  background: var(--primary-color, #6366f1);
  color: white;
  border-color: var(--primary-color, #6366f1);
}

.pagination-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==================== ANIMATIONS ==================== */
.feed-item,
.listing-grid > div {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-out {
  animation: fadeOut 0.6s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ==================== DARK MODE SUPPORT ==================== */
[data-bs-theme="dark"] .content-card,
[data-bs-theme="dark"] .filter-card,
[data-bs-theme="dark"] .service-card {
  background: var(--card-dark, #1e293b);
  border-color: var(--border-dark, #334155);
  color: var(--text-dark, #f1f5f9);
}

[data-bs-theme="dark"] .content-card:hover {
  border-color: var(--primary-color, #6366f1);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.25);
}

[data-bs-theme="dark"] .content-card-title,
[data-bs-theme="dark"] .card-title {
  color: var(--text-dark, #f1f5f9);
}

[data-bs-theme="dark"] .content-card:hover .content-card-title,
[data-bs-theme="dark"] .content-card:hover .card-title {
  color: #a5b4fc;
}

[data-bs-theme="dark"] .content-card-excerpt,
[data-bs-theme="dark"] .card-excerpt {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .card-footer-section,
[data-bs-theme="dark"] .content-card-footer {
  border-color: var(--border-dark, #334155);
}

[data-bs-theme="dark"] .card-date,
[data-bs-theme="dark"] .content-card-stats {
  color: #94a3b8;
}

[data-bs-theme="dark"] .meta-tag,
[data-bs-theme="dark"] .content-card-meta span {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

[data-bs-theme="dark"] .meta-tag:hover,
[data-bs-theme="dark"] .content-card-meta span:hover {
  background: rgba(99, 102, 241, 0.3);
}

[data-bs-theme="dark"] .search-input,
[data-bs-theme="dark"] .filter-select {
  background: var(--card-dark, #1e293b);
  border-color: var(--border-dark, #334155);
  color: var(--text-dark, #f1f5f9);
}

[data-bs-theme="dark"] .search-input:focus,
[data-bs-theme="dark"] .filter-select:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-bs-theme="dark"] .feed-empty-state,
[data-bs-theme="dark"] .empty-state {
  background: linear-gradient(135deg, var(--dark-bg, #0f172a) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-color: var(--border-dark, #334155);
}

[data-bs-theme="dark"] .empty-state h3,
[data-bs-theme="dark"] .empty-state h4 {
  color: var(--text-dark, #f1f5f9);
}

[data-bs-theme="dark"] .empty-state p {
  color: #cbd5e1;
}

[data-bs-theme="dark"] .pagination-link {
  background: var(--card-dark, #1e293b);
  border-color: var(--border-dark, #334155);
  color: var(--text-dark, #f1f5f9);
}

[data-bs-theme="dark"] .pagination-link:hover:not(.disabled):not(.active) {
  background: var(--primary-color, #6366f1);
  border-color: var(--primary-color, #6366f1);
}

[data-bs-theme="dark"] .carousel-control-prev,
[data-bs-theme="dark"] .carousel-control-next {
  background: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .carousel-control-prev:hover,
[data-bs-theme="dark"] .carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

[data-bs-theme="dark"] .service-icon-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Tablet & Medium Screens */
@media (max-width: 1024px) {
  .feed-grid,
  .listing-grid,
  .services-grid .row {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .card-body-section,
  .content-card-body {
    padding: 1.25rem;
  }

  .content-card-title,
  .card-title {
    font-size: 1rem;
  }

  .filter-group {
    gap: 1rem;
  }

  .filter-section {
    flex-basis: 100%;
  }
}

/* Mobile & Small Screens */
@media (max-width: 768px) {
  .feed-grid,
  .listing-grid,
  .services-grid .row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .content-card-image,
  .card-image-section {
    height: 200px;
  }

  .card-body-section,
  .content-card-body {
    padding: 1rem;
  }

  .content-card-title,
  .card-title {
    font-size: 0.95rem;
  }

  .content-card-excerpt,
  .card-excerpt {
    font-size: 0.9rem;
  }

  .card-footer-section,
  .content-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-date {
    flex: 1 0 100%;
  }

  .card-btn,
  .card-action a,
  .content-card-btn {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .filter-card,
  .filter-section {
    padding: 1rem;
  }

  .filter-group {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-section {
    flex-basis: 100%;
  }

  .search-input,
  .filter-select {
    width: 100%;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination-link {
    min-width: 36px;
    height: 36px;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 2rem;
    height: 2rem;
  }
}

/* Extra Small Screens */
@media (max-width: 576px) {
  .feed-grid,
  .listing-grid,
  .services-grid .row {
    gap: 0.75rem;
  }

  .content-card {
    border-radius: 0.75rem;
  }

  .content-card-image,
  .card-image-section {
    height: 180px;
  }

  .card-body-section,
  .content-card-body {
    padding: 0.75rem;
  }

  .content-card-title,
  .card-title {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .content-card-excerpt,
  .card-excerpt {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

  .card-meta-tags,
  .content-card-meta {
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .meta-tag,
  .content-card-meta span {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  .card-footer-section,
  .content-card-footer {
    padding-top: 0.75rem;
    gap: 0.5rem;
  }

  .card-btn,
  .card-action a,
  .content-card-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .content-card-badge,
  .service-card-badge {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }

  .card-number {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  .listing-header {
    margin-bottom: 1.25rem;
  }

  .listing-header h1,
  .listing-header h2 {
    font-size: 1.5rem;
  }

  .filter-card {
    padding: 0.75rem;
  }

  .filter-section label {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
  }

  .search-input,
  .filter-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .btn-search {
    padding: 0.5rem 0.75rem;
  }
}

/* Ultra Small Screens (320px) */
@media (max-width: 400px) {
  .content-card {
    border-radius: 0.6rem;
  }

  .content-card-image,
  .card-image-section {
    height: 160px;
  }

  .card-body-section,
  .content-card-body {
    padding: 0.6rem;
  }

  .content-card-title,
  .card-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .card-footer-section,
  .content-card-footer {
    padding-top: 0.6rem;
  }

  .card-btn,
  .card-action a,
  .content-card-btn {
    padding: 0.45rem 0.6rem;
    font-size: 0.75rem;
  }

  .pagination-link {
    min-width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}

/* ==================== CUSTOM BADGE STYLES ==================== */
/* Custom bottom-left badge styles */
.content-card-badget.bottom-left {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;                  /* pill shape */
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
  transition: all 0.2s ease;
}

.content-card-badget.bottom-left:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Dark mode support for bottom-left badge */
[data-bs-theme="dark"] .content-card-badget.bottom-left {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

/* ==================== SERVICES SECTION STYLES ==================== */

/* Services Card Left */
.services-card-left {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-card-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.services-card-left:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3) !important;
}

.services-card-left .card-body {
  position: relative;
  z-index: 2;
}

.services-card-left .card-title {
  color: #ffffff;
  font-size: 1.75rem;
}

.services-card-left .card-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.services-card-left .list-unstyled li {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.services-card-left .list-unstyled li:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.services-card-left .btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: #6366f1;
  font-weight: 700;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.services-card-left .btn-light:hover {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  color: #4f46e5;
}

.services-card-left .btn-light:active {
  transform: translateY(0);
}

/* Services Card Right - Base Styles */
.services-card-right {
  display: flex;
  flex-direction: column;
  background: var(--card-light, #ffffff);
  border: 2px solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.services-card-right .card-body {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.services-card-right h5 {
  margin: 0;
  color: var(--text-light, #1e293b);
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.services-card-right .card-text {
  color: var(--text-muted, #6b7280);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.services-card-right:hover {
  transform: translateY(-6px);
  border-color: var(--primary-color, #6366f1);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

.services-card-right:hover h5 {
  color: var(--primary-color, #6366f1);
}

/* Services Card Right - Blue Variant */
.services-card-right.blue {
  border-color: rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
}

.services-card-right.blue .bg-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%) !important;
}

.services-card-right.blue:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.12);
}

.services-card-right.blue:hover h5 {
  color: #3b82f6;
}

/* Services Card Right - Green Variant */
.services-card-right.green {
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.02) 100%);
}

.services-card-right.green .bg-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%) !important;
}

.services-card-right.green:hover {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.05) 100%);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.12);
}

.services-card-right.green:hover h5 {
  color: #10b981;
}

/* Services Card Right - Yellow Variant */
.services-card-right.yellow {
  border-color: rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.02) 100%);
}

.services-card-right.yellow .bg-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%) !important;
}

.services-card-right.yellow:hover {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.05) 100%);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.12);
}

.services-card-right.yellow:hover h5 {
  color: #f59e0b;
}

/* Dark Mode - Services Section */
[data-bs-theme="dark"] .services-card-left {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

[data-bs-theme="dark"] .services-card-right {
  background: var(--card-dark, #1e293b);
  color: var(--text-dark, #f1f5f9);
}

[data-bs-theme="dark"] .services-card-right h5 {
  color: var(--text-dark, #f1f5f9);
}

[data-bs-theme="dark"] .services-card-right .card-text {
  color: #cbd5e1;
}

/* Dark Mode - Blue Variant */
[data-bs-theme="dark"] .services-card-right.blue {
  border-color: rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
}

[data-bs-theme="dark"] .services-card-right.blue:hover {
  border-color: #60a5fa;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

[data-bs-theme="dark"] .services-card-right.blue:hover h5 {
  color: #60a5fa;
}

/* Dark Mode - Green Variant */
[data-bs-theme="dark"] .services-card-right.green {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
}

[data-bs-theme="dark"] .services-card-right.green:hover {
  border-color: #6ee7b7;
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.15) 0%, rgba(52, 211, 153, 0.1) 100%);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.25);
}

[data-bs-theme="dark"] .services-card-right.green:hover h5 {
  color: #6ee7b7;
}

/* Dark Mode - Yellow Variant */
[data-bs-theme="dark"] .services-card-right.yellow {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
}

[data-bs-theme="dark"] .services-card-right.yellow:hover {
  border-color: #fcd34d;
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

[data-bs-theme="dark"] .services-card-right.yellow:hover h5 {
  color: #fcd34d;
}

/* Dark Mode - Services Card Right Icon Container */
[data-bs-theme="dark"] .services-card-right .bg-opacity-15 {
  background: rgba(99, 102, 241, 0.15) !important;
}

[data-bs-theme="dark"] .services-card-right.blue .bg-primary.bg-opacity-15 {
  background: rgba(59, 130, 246, 0.15) !important;
}

[data-bs-theme="dark"] .services-card-right.green .bg-success.bg-opacity-15 {
  background: rgba(16, 185, 129, 0.15) !important;
}

[data-bs-theme="dark"] .services-card-right.yellow .bg-warning.bg-opacity-15 {
  background: rgba(245, 158, 11, 0.15) !important;
}
