/* FIXED Swiper Layout Overrides (safe for loop) */
.blog-posts-slider.swiper {
  position: relative;
  overflow: visible;
  max-width: 100%;
  width: 100%;
}

.swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  height: auto !important;
  /* Do NOT override width! Let Swiper control it */
}

.swiper-slide {
  flex-shrink: 0;
  width: 300px; /* or 30vw if you want responsive width */
  height: auto;
}

form.fade {
  transition: opacity 0.25s ease-in-out;
}
form.fade.d-none {
  opacity: 0;
}

/* Header Container */
.ai_header {
  background: #fff;
  padding-top: 24px; /* top padding above logo */
  padding-bottom: 14.4px; /* increased by 20% from 12px */
  font-family: 'Roboto', sans-serif;
}

/* Top Row: Logo + Controls */
.ai_header_top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px; /* space between logo row and nav */
}

/* Logo + Site Name */
.ai_logo_wrap {
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  gap: 4px;
}

.ai_logo {
  height: 80px;
  width: 80px;
}

.ai_sitename {
  font-size: 1.85rem;
  font-family: 'Libre Baskerville', serif;
  color: #1c7cb2;
  margin-left: 8px;
  margin-bottom: 16px;
}

.ai_sitename.ai_accent {
  color: rgb(228, 140, 46);
  margin-left: -4px;
}

/* AI Style Dropdown + Login Button */
.ai_controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai_style_form {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.ai_style_form label {
  margin-bottom: 0;
  white-space: nowrap;
  font-weight: 600;
}

.ai_select {
  padding: 4px 6px;
  font-size: 0.9rem;
  height: 32px;
  line-height: 1;
  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #fff;
}

.ai_save_msg {
  font-size: 0.8rem;
  color: green;
}

.ai_login_btn {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  background-color: #fff;
  color: #1c7cb2;
  border: 1.5px solid #1c7cb2;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ai_login_btn:hover {
  background-color: #1c7cb2;
  color: #fff;
}

/* Navigation Bar */
.ai_navbar {
  background-color: #f6f6f6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ai_nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px; /* controls nav height */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* View Toggle Icons */
.view-toggles {
  position: absolute;
  left: 44px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 5px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
}

.view-toggle:hover {
  color: #1c7cb2;
  background: rgba(28, 124, 178, 0.1);
  border-color: #1c7cb2;
  text-decoration: none;
  transform: translateY(-1px);
}

.view-toggle.active {
  color: white;
  background: #1c7cb2;
  border-color: #1c7cb2;
}

.view-toggle i {
  font-size: 11px;
}

/* Navigation Links */
.ai_nav_list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px; /* horizontal space between nav items */
  padding: 0;
  margin: 0;
}

.ai_nav_list li a {
  text-decoration: none !important;
  color: #333;
  font-weight: 400;
  font-size: 1rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.ai_nav_list li a.active,
.ai_nav_list li a:hover {
  color: #d85b00;
}

.ai_white_text {
  color: white;
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
  .ai_nav {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .view-toggles {
    position: static;
    order: -1;
    justify-content: center;
  }
  
  .view-toggle {
    width: 32px;
    height: 32px;
  }
  
  .view-toggle i {
    font-size: 13px;
  }
  
  .ai_nav_list {
    gap: 16px;
  }
}

/* Feed Page Styles */
.feed-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}

.feed-title-section {
    flex: 1;
    min-width: 300px;
}

.feed-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: #1c7cb2;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.feed-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: #666;
}

.article-count {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.search-indicator {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
    border: 1px solid rgba(25, 118, 210, 0.3);
}

.search-indicator::before {
    content: '🔍';
    font-size: 0.9rem;
}

.feed-controls {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    min-width: 280px;
    position: relative;
}

/* Expandable Search */
.search-container.expandable-search {
    position: relative;
    width: auto;
    margin-bottom: 0;
}

.search-toggle-btn {
    background: linear-gradient(135deg, #1c7cb2 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    box-shadow: 0 2px 4px rgba(28, 124, 178, 0.2);
    position: relative;
    overflow: hidden;
}

.search-toggle-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.search-toggle-btn:hover::before {
    width: 60px;
    height: 60px;
}

.search-toggle-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(28, 124, 178, 0.3);
}

.search-toggle-btn i {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.search-toggle-btn:hover i {
    transform: scale(1.1);
}

.expandable-search .search-form {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 400px;
    pointer-events: none;
}

.expandable-search.expanded .search-form {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.expandable-search.expanded .search-toggle-btn {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}

.expandable-search .search-input-group {
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #1c7cb2;
    background: white;
}

.expandable-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.expandable-search.expanded::before {
    opacity: 1;
}

.search-close-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.search-close-btn:hover {
    background: #c0392b;
}

.search-close-btn i {
    font-size: 1rem;
}

/* Regular Search Bar (fallback) */
.search-container:not(.expandable-search) {
    width: 100%;
    margin-bottom: 8px;
}

.search-form {
    width: 100%;
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 2px solid #e8eaed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.search-input-group:hover {
    border-color: #dadce0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.search-input-group:focus-within {
    border-color: #1c7cb2;
    box-shadow: 0 4px 12px rgba(28, 124, 178, 0.2);
    transform: translateY(-2px);
}

.search-input-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(28, 124, 178, 0.1) 0%, rgba(28, 124, 178, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.search-input-group:focus-within::before {
    opacity: 1;
}

.search-input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 400;
    outline: none;
    background: transparent;
    color: #333;
    position: relative;
    z-index: 1;
}

.search-input::placeholder {
    color: #9aa0a6;
    font-weight: 400;
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: #bdc1c6;
}

.search-btn {
    background: linear-gradient(135deg, #1c7cb2 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.search-btn:hover::before {
    width: 100px;
    height: 100px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.4);
}

.search-btn:active {
    transform: scale(0.98);
}

.search-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.search-btn:hover i {
    transform: scale(1.1);
}

/* Search animation effects */
@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(28, 124, 178, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(28, 124, 178, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(28, 124, 178, 0);
    }
}

.search-input-group.searching {
    animation: searchPulse 1.5s infinite;
}

/* Enhanced search indicator */
.search-indicator {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.2);
    border: 1px solid rgba(25, 118, 210, 0.3);
}

.search-indicator::before {
    content: '🔍';
    font-size: 0.9rem;
}

/* Clear search button enhancement */
.search-clear-btn {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
}

.search-input:not(:placeholder-shown) ~ .search-clear-btn {
    opacity: 1;
    visibility: visible;
}

.search-clear-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

/* Search suggestions/autocomplete placeholder */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e8eaed;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.search-suggestion {
    padding: 10px 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.search-suggestion:hover {
    background: #f8f9fa;
}

.search-suggestion:last-child {
    border-bottom: none;
}



.feed-filters {
    flex-shrink: 0;
    flex: 1;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.filter-group select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    color: #333;
    min-width: 120px;
}

.filter-group select:focus {
    outline: none;
    border-color: #1c7cb2;
    box-shadow: 0 0 0 2px rgba(28, 124, 178, 0.1);
}

.clear-filters-btn {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.clear-filters-btn:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

/* Feed Container */
.feed-container {
    margin-bottom: 32px;
}

/* Loading and Error States */
.loading-state,
.error-state,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1c7cb2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.error-icon,
.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.error-state h3,
.empty-state h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.error-state p,
.empty-state p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

.retry-btn {
    background: #1c7cb2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.retry-btn:hover {
    background: #1565c0;
}

/* Loading Indicator for Infinite Scroll */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.loading-indicator p {
    color: #666;
    margin-top: 12px;
    font-size: 0.95rem;
}

/* End Indicator */
.end-indicator {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 2px dashed #dee2e6;
}

.end-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.end-indicator p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Enhanced Feed Items */
.feed-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.feed-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.feed-thumb {
    flex: 0 0 180px;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.feed-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.feed-item:hover .feed-thumb img {
    transform: scale(1.02);
}

.feed-body {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.title-link:hover {
    color: #1c7cb2;
    text-decoration: none;
}

.article-summary {
    flex: 1;
}

.article-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #666;
}

.source,
.publish-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.source::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f1ea";
    margin-right: 4px;
}

.source-link {
    color: #ff9f39;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.source-link:hover {
    color: #e68a00;
    text-decoration: underline;
}

.publish-date::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f073";
    margin-right: 4px;
}

.feed-item .category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
    font-weight: 500;
    width: fit-content;
}

.category-link {
    color: #ff9f39;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-link:hover {
    color: #e68a00;
    text-decoration: underline;
}

.time-display {
    background: #f8f9fa;
    color: #6c757d;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.feed-item .category .category-icon {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-right: 6px;
    color: #6c757d;
}

.feed-item .category-text {
    color: #ff9f39;
    font-weight: 600;
    font-size: 0.9rem;
}

.summary-preview,
.summary-full {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}

.summary-content p {
    margin-bottom: 1em;
    text-align: left;
}

.summary-content p:last-child {
    margin-bottom: 0;
}

.read-more-btn {
    background-color: #1c7cb2;
    border: none;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background-color: #d85b00;
    transform: translateY(-1px);
}

.read-more-btn:active {
    transform: translateY(0);
}

/* Feed Page Responsive Design */
@media (max-width: 768px) {
    .feed-wrapper {
        padding: 0 16px;
    }

    .feed-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 24px;
    }

    .feed-title-section {
        min-width: auto;
    }

    .feed-title {
        font-size: 1.8rem;
    }

    .feed-controls {
        flex-direction: column;
        align-items: stretch;
        min-width: auto;
        gap: 12px;
    }

    .search-input-group {
        border-radius: 10px;
        transform: none; /* Disable transform effects on mobile */
    }

    .search-input-group:hover {
        transform: none;
    }

    .search-input-group:focus-within {
        transform: none;
    }

    .search-input {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .search-btn {
        padding: 12px 16px;
        min-width: 48px;
    }

    .search-btn i {
        font-size: 1rem;
    }
    
    /* Mobile expandable search */
    .expandable-search .search-form {
        width: 100%;
        right: 0;
        left: 0;
    }
    
    .search-toggle-btn {
        padding: 8px 10px;
        min-width: 40px;
    }
    
    .search-toggle-btn i {
        font-size: 0.9rem;
    }

    .filter-form {
        gap: 10px;
        justify-content: flex-start;
    }

    .filter-group {
        flex: 1;
        min-width: 120px;
    }

    .filter-group select {
        width: 100%;
        min-width: auto;
        font-size: 0.85rem;
    }

    .feed-item {
        flex-direction: column;
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .feed-thumb {
        flex: none;
        height: 200px;
        width: 100%;
    }

    .feed-body {
        padding: 20px 24px;
        gap: 12px;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .feed-wrapper {
        padding: 0 12px;
    }

    .feed-title {
        font-size: 1.5rem;
    }

    .feed-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .search-input,
    .search-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .filter-form {
        flex-direction: column;
        gap: 8px;
    }

    .filter-group {
        flex: none;
    }

    .filter-group select {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .feed-item {
        margin-bottom: 16px;
        border-radius: 6px;
    }

    .feed-thumb {
        height: 160px;
    }

    .feed-body {
        padding: 16px 20px;
        gap: 10px;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .summary-preview,
    .summary-full {
        font-size: 15px;
    }

    .article-meta {
        font-size: 0.8rem;
    }
}

/* Loading indicator for infinite scroll */
#loading-indicator {
    margin: 20px 0;
    animation: fadeIn 0.3s ease-in;
}

#loading-indicator div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#loading-indicator div:before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #1c7cb2;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Error container for general error messages */
.error-container {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.error-container p {
    color: #e74c3c;
    font-size: 1.1rem;
    margin: 0;
}