/* Core Variables */
 :root {
    --primary: #FED829;
    --secondary: #0041B1;
    --accent: #CE1126;
    --dark: #1A1A2E;
    --light: #F7F7F9;
    --gray: #6E7275;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --transition: all 0.3s ease;
    
    /* Additional theming variables */
    --text-color: #1A1A2E;
    --text-secondary: #6E7275;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F7F7F9;
    --bg-tertiary: #f5f5f5;
    --border-color: #E5E7EB;
    --input-bg: #FFFFFF;
    --card-bg: #FFFFFF;
    --meta-bg: #f5f5f5;
    --overlay-bg: rgba(255, 255, 255, 0.9);
  }

  [data-bs-theme="dark"] {
    --primary: #FED829;
    --secondary: #0041B1;
    --accent: #CE1126;
    --dark: #F9FAFB;
    --light: #2E3338;
    --gray: #9CA3AF;
    --white: #1F2937;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --radius: 10px;
    --transition: all 0.3s ease;
    
    /* Dark theme specific variables */
    --text-color: #F9FAFB;
    --text-secondary: #9CA3AF;
    --bg-primary: #1F2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;
    --border-color: #374151;
    --input-bg: #374151;
    --card-bg: #1F2937;
    --meta-bg: #374151;
    --overlay-bg: rgba(31, 41, 55, 0.9);
}
  
  /* Reset & Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    line-height: 1.6;
    font-family: 'Segoe UI', system-ui, sans-serif;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }

  p, span, div, h1, h2, h3, h4, h5, h6 {
    color: var(--text-color) !important;
  }

  /* Override for conservation badge to use proper theme colors */
  .conservation-badge p,
  .conservation-badge span, 
  .conservation-badge div {
    color: inherit !important;
  }

  .conservation-badge .badge-number {
    color: var(--text-color) !important;
  }

  .conservation-badge .badge-label {
    color: var(--text-secondary) !important;
  }

  .header-custom{
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .flex {
    display: flex;
  }
  
  .justify-between {
    justify-content: space-between;
  }
  
  .items-center {
    align-items: center;
  }
  
  .gap-2 {
    gap: 0.5rem;
  }
  
  .gap-3 {
    gap: 0.75rem;
  }
  
  .gap-4 {
    gap: 1rem;
  }
  
  .gap-8 {
    gap: 2rem;
  }
  
  .col {
    flex-direction: column;
  }
  
  .grid {
    display: grid;
  }
  
  .grid-cols-1 {
    grid-template-columns: 1fr;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }
  
  h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  .text-sm {
    font-size: 0.875rem;
  }
  
  .text-lg {
    font-size: 1.125rem;
  }
  
  .text-xl {
    font-size: 1.25rem;
  }
  
  .font-bold {
    font-weight: 700;
  }
  
  .text-primary {
    color: var(--primary);
  }
  
  .text-secondary {
    color: var(--secondary);
  }
  
  .text-accent {
    color: var(--accent);
  }
  
  .text-dark {
    color: var(--dark);
  }
  
  .text-gray {
    color: var(--gray);
  }
  
  .text-white {
    color: var(--white);
  }
  
  .text-center {
    text-align: center;
  }
  
  /* Layout Components */
  .section {
    padding: 4rem 0;
  }
  
  .section-sm {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
  }
  
  /* Header & Navigation */
  .header {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .logo-icon {
    width: 80px;
    height: 80px;

  }

  .logo-icon img{
    width: 100%;
    height: 100%;
  }
  
  .logo-text h1 {
    font-size: 1.25rem !important;
    margin-bottom: 0;
    line-height: 1.2;
    color: var(--text-color) !important;
  }
  
  .logo-text p {
    font-size: 0.875rem;
    color: var(--text-secondary) !important;
    margin-bottom: 0;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
  }
  
  .nav-links a {
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
  }
  
  .nav-links a:hover {
    color: var(--secondary);
    background-color: rgba(0, 65, 177, 0.05);
  }
  
  .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    font-size: 1.25rem;
  }
  
  /* Hero Section */
  .hero {
    --hero-bg-image: url('../../assets/LIRMD_assets/hero.jpg'); /* Default image */
    background: linear-gradient(135deg, var(--secondary), #003080);
    color: var(--white);
    overflow: hidden;
    position: relative;
}

/* Hero text color overrides */
.hero h1,
.hero h2, 
.hero h3,
.hero h4,
.hero h5,
.hero h6,
.hero p,
.hero span,
.hero div {
    color: #ffffff !important;
}

.hero-title {
    color: #ffffff !important;
}

.hero-description {  
    color: #ffffff !important;
}

  
  .hero-content {
    max-width: 1440px;
    padding: 4rem 40rem 4rem 3rem;
    /* max-width: 60%; */
    position: relative;
    z-index: 1;
    margin: auto;
  }

  .recent-container{
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 2rem 0;
  }

  .recent{
    max-width: 1440px;
    position: relative;
    margin: auto;
    padding: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  .hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .stat-item {
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .stat-item:last-child {
    border-right: none;
  }
  
  .stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
  }
  
  .stat-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
    opacity: 0.7;
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: unset;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
  }
  
  .btn-primary {
    background-color: var(--secondary);
    color: var(--light);
    border-radius: var(--radius);
  }
  
  .btn-primary:hover {
    background-color: #e8c526;
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background-color: var(--secondary);
  }
  
  .btn-secondary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
  }
  
  .btn-ghost {
    display: none;
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
  }
  
  .btn-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }
  
  /* Search Component */
  .search-section {
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    margin: 2rem 0;
    border-radius: var(--radius);
    padding: 2rem;
  }
  
  .search-container {
    display: flex;
  }
  
  .search-input {
    position: relative;
    flex: 1;
  }
  
  .search-input input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--input-bg);
    color: var(--text-color);
  }
  
  .search-input input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 65, 177, 0.1);
  }
  
  .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
  }
  
  .search-filters {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
  }
  
  .filter-select {
    flex: 1;
    min-width: 150px;
    position: relative;
  }
  
  .filter-select select {
    width: 100%;
    padding: 0.75rem 2rem 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.875rem;
    background-color: var(--white);
    appearance: none;
    cursor: pointer;
  }
  
  .filter-select select:focus {
    outline: none;
    border-color: var(--secondary);
  }
  
  .filter-select::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--gray);
  }
  
  .search-tips {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
  }
  
  /* Featured Collections */
  .collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .collection-card {
    background-color: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  }
  
  .collection-image {
    height: 180px;
    background-color: #f0f0f0;
    position: relative;
  }
  
  .collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .collection-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
  }
  
  .collection-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .collection-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
  }
  
  .collection-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }
  
  .collection-description {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex: 1;
  }
  
  .collection-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
  }
  
  .collection-footer .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .collection-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--gray);
  }
  
  .collection-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  
  /* Recent Publications */
  .publications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .publication-item {
    overflow: hidden;
    display: flex;
    transition: var(--transition);
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
  }
  
  .publication-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  }
  
  .publication-image {
    width: 250px;
    min-width: 180px;
    background-color: var(--bg-tertiary);
  }
  
  .publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .publication-content {
    padding: 1.5rem;
    flex: 1;
    background-color: var(--card-bg);
  }
  
  .publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    background-color: var(--meta-bg);
    border-radius: 100px;
  }
  
  .publication-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
  }
  
  .publication-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }
  
  .publication-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .publication-actions {
    display: flex;
    gap: 1rem;
  }
  
  .action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: var(--transition);
    background-color: var(--light);
    border: none;
    cursor: pointer;
  }
  
  .action-btn:hover {
    background-color: #e5e7eb;
  }
  
  .action-primary {
    background-color: rgba(0, 65, 177, 0.1);
    color: var(--secondary);
  }
  
  .action-primary:hover {
    background-color: rgba(0, 65, 177, 0.2);
  }
  
  /* Stats Section */
  .stats-section {
    background-color: var(--secondary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    margin: 4rem 0;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .stats-card {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
  }
  
  .stats-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
  }
  
  .stats-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
  }
  
  .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }
  
  .stats-label {
    font-size: 0.875rem;
    opacity: 0.8;
  }
  
  /* CTA Section */
  .cta-section {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 3rem;
    margin: 4rem 0;
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  
  .cta-content {
    flex: 2;
  }
  
  .cta-content h2 {
    margin-bottom: 1rem;
  }
  
  .cta-content p {
    color: var(--gray);
  }
  
  .cta-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-form input {
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
  }
  
  .cta-form input:focus {
    outline: none;
    border-color: var(--secondary);
  }
  
  /* Conservation Badge */
  .conservation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: var(--overlay-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
  }
  
  .badge-icon {
    color: var(--secondary);
    font-size: 1.25rem;
  }
  
  .badge-content {
    display: flex;
    flex-direction: column;
  }
  
  .badge-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color) !important;
    line-height: 1;
  }
  
  .badge-label {
    font-size: 0.75rem;
    color: var(--text-secondary) !important;
    text-transform: uppercase;
  }
  
  
  .publication-detail {
    /* background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow); */
    overflow: hidden;
    margin-bottom: 3rem;
  }
  
  .publication-header {
    padding: 2rem;
    /* background: linear-gradient(135deg, var(--secondary), #003080);
    color: var(--white); */
  }
  
  .publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
  }
  
  .publication-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .publication-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
  }
  
  .publication-cover {
    flex: 1;
    max-width: 300px;
  }
  
  .publication-cover img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
  .publication-info {
    flex: 2;
  }
  
  .info-section {
    margin-bottom: 2rem;
  }
  
  .info-section h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light);
  }
  
  .publication-description {
    font-size: 1rem;
    line-height: 1.8;
  }
  
  .publication-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
  }
  
  .action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
  }
  
  .btn-download {
    background-color: var(--primary);
    color: var(--dark);
  }
  
  .btn-download:hover {
    background-color: #e8c526;
    transform: translateY(-2px);
  }
  
  .btn-share {
    background-color: #f5f5f5;
    color: var(--dark);
  }
  
  .btn-share:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
  }
  
  /* Featured Publications Styles */
  .featured-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    overflow-x: auto;
  }
  
  .featured-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
  }
  
  .featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }
  
  .featured-image {
    height: 400px;
    background-color: var(--bg-tertiary);
  }
  
  .featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .featured-content {
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--card-bg);
  }
  
  .featured-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }
  
  .featured-year, .featured-publisher {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background-color: var(--meta-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
  }
  
  .featured-title-text {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-color);
  }
  
  .featured-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    color: var(--text-secondary);
  }
  
  .featured-author {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
  }

  .carousel-item {
    height: 100%;
    display: flex;
}

/* Make the featured card take up full height of its parent */
.carousel-item .featured-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Set fixed heights for key elements */
.featured-image {
    height: 400px; /* Fixed height for images */
    overflow: hidden; /* Hide overflow if image is taller */
}

.featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Make title a consistent height with ellipsis for overflow */
.featured-title-text {
    height: 7rem; /* Approximately 2 lines of text */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
}

/* Make description a consistent height with ellipsis for overflow */
.featured-description {
    height: 4.8em; /* Approximately 4 lines of text */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
    flex: 0 0 auto; /* Prevent description from growing */
}

/* Make author section consistent height */
.featured-author {
    margin-top: auto; /* Push to bottom */
    min-height: 1.2em;
}

/* Make links take up full height */
.carousel-item a {
    height: 100%;
    display: block;
}

.button-filter{
  display: none;
}

.tag-detail{
  background-color: var(--primary);
    border-radius: 16px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--dark);
    transition: all 0.2s ease;
}

.tag-detail:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-color);
}

.tag-detail a:hover{
  text-decoration: none !important;
}

.hero {
  position: relative;
  width: 100%;
  height: 350px; 
  max-height: 400px;
  overflow: hidden;
}

.hero-container {
  width: 1440px !important;
  display: flex;
  width: 100%;
  height: 100%;
  margin: auto ;
  position: relative;
}

.hero-content-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  padding: 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-image-right {
  flex: 1;
  position: relative;
  transition: ease-in-out .4s;
}

.hero-image {
  position: absolute;
  right: -43%;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: ease-in-out .4s;
}

#hero-carousel, 
#hero-carousel .owl-stage-outer, 
#hero-carousel .owl-stage, 
#hero-carousel .owl-item {
  height: 100%;
}

#hero-carousel .item {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
}

/* Ensure all text in hero carousel items is white */
#hero-carousel .item h1,
#hero-carousel .item h2,
#hero-carousel .item h3,
#hero-carousel .item h4,
#hero-carousel .item h5,
#hero-carousel .item h6,
#hero-carousel .item p,
#hero-carousel .item span,
#hero-carousel .item div {
    color: #ffffff !important;
}

.hero-title {
  color: #ffffff !important;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero-description {
  color: #ffffff !important;
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Hero Section - Background overlay update */
.conservation-badge {
  background: var(--overlay-bg);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: fit-content;
  color: var(--text-color);
  box-shadow: var(--shadow);
  position: absolute;
  bottom: -20px;
  left: 40px;
  z-index: 10;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}

/* Conservation badge text elements */
.conservation-badge .badge-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color) !important;
}

.conservation-badge .badge-label {
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
}

.conservation-badge .badge-icon {
  color: var(--secondary);
  font-size: 1.25rem;
}

.conservation-badge .badge-content {
  display: flex;
  flex-direction: column;
}

/* Ensure all text elements in conservation badge follow theme */
.conservation-badge span,
.conservation-badge div,
.conservation-badge p {
  color: inherit;
}

.conservation-badge .badge-content .badge-number {
  color: var(--text-color) !important;
}

.conservation-badge .badge-content .badge-label {
  color: var(--text-secondary) !important;
}

.badge-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color) !important;
}

.badge-label {
  font-size: 0.9rem;
  color: var(--text-secondary) !important;
}

/* Customize Owl Carousel dots */
#hero-carousel .owl-dots {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
}

#hero-carousel .owl-dot span {
  background-color: rgba(255, 255, 255, 0.5);
  width: 10px;
  height: 10px;
  margin: 0 4px;
}

#hero-carousel .owl-dot.active span {
  background-color: white;
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    margin-right: 15px;
}

.footer-logo .logo-text h2 {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 5px;
    color: #ffffff !important;
}

.footer-logo .logo-text p {
    font-size: 13px !important;
    opacity: 0.9;
    max-width: 400px;
    line-height: 1.5;
    color: #ffffff !important;
}

.footer-contact {
    text-align: right;
}

.footer-contact h3 {
    font-size: 16px !important;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff !important;
}

.footer-contact p {
    font-size: 13px !important;
    margin-bottom: 3px;
    opacity: 0.9;
    color: #ffffff !important;
}

.footer-contact a {
    color: #ffffff !important;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.footer-content {
    color: #ffffff !important;
}

.footer-content p {
    color: #ffffff !important;
}

.footer-content a {
    color: #ffffff !important;
}

/* Website link specific styles */
.footer-website {
    margin-top: 8px !important;
    font-size: 13px !important;
}

.footer-website span {
    opacity: 0.9;
    color: #ffffff !important;
}

.website-link {
    color: #ffffff !important;
    text-decoration: underline !important;
    transition: opacity 0.3s ease;
}

.website-link:hover {
    opacity: 0.8 !important;
    text-decoration: underline !important;
}

/* Footer responsive styles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-logo {
        flex-direction: column;
    }
    
    .logo-img {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .footer-contact {
        text-align: center;
    }
}
  
  /* Responsive Styles */
  @media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
  }
  
  @media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
        padding: 3rem 2rem;
    }
    
    .hero::after {
        display: none;
    }
  
    .cta-section {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .header .container {
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 1rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .publication-item {
        flex-direction: column;
    }
    
    .publication-image {
        width: 100%;
        height: 180px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-results-header{
      flex-direction: column;
    }

    
    .button-filter{
      display: block;
    }

    .filters-sidebar{
      margin-left: -340px;
      transition: ease-in-out .5s;
      background: rgb(255, 255, 255);
      position: fixed;
      padding: 1rem;
      left: 0;
      top: 0;
      z-index: 999;
      overflow-y: auto;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
      height: 100%;
    }

    .filters-sidebar.active{
      transition: ease-in-out .5s;
      margin-left: 0px;
    }

    .filter-section{
      box-shadow: unset !important;
    }

    .hero {
        height: auto;
    }
    
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content-left, 
    .hero-image-right {
        flex: none;
        width: 100%;
    }
    
    .hero-content-left {
        height: 300px;
    }
    
    .hero-image-right {
        height: 200px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        color: #ffffff !important;
    }
    
    .hero-description {
        font-size: 1rem;
        color: #ffffff !important;
    }
    
    .conservation-badge {
        left: 20px;
        bottom: -10px;
        padding: 10px;
    }
    
    .badge-number {
        font-size: 1.2rem;
    }
  }
  
  @media (max-width: 576px) {
    .search-filters,
    .search-container {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
  }

  /* Owl Carousel custom styles */
.owl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.owl-header h2 {
  margin-bottom: 0.5rem;
}

.owl-carousel .owl-nav {
  position: absolute;
  top: -75px;
  right: 0;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary) !important;
    color: white !important;
    font-size: 2.25rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
  background-color: var(--primary);
  color: var(--dark);
}


.owl-carousel .owl-nav button span{
  margin-top: -8px;
}


.owl-theme .owl-nav{
  display: flex !important;
}


.owl-carousel .owl-dots {
  margin-top: 1rem;
  text-align: center;
}

.owl-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  background: #ddd;
  border-radius: 50%;
  margin: 0 5px;
}

.owl-carousel .owl-dots .owl-dot.active span {
  background-color: var(--secondary);
}

/* CSS for side navigation buttons */
.carousel-container {
  position: relative;
}

.carousel-nav-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  transform: translateY(-50%);
  pointer-events: none; /* This prevents buttons from interfering with carousel items */
}

.nav-button {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  pointer-events: auto; /* Re-enable pointer events for the buttons */
}

.nav-button:hover {
  background-color: var(--primary);
  color: var(--dark);
}

.nav-button.prev {
  left: -20px;
}

.nav-button.next {
  right: -20px;
}

.search-input {
  position: relative;
  flex: 1;
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 28%;
  background: none;
  border: none;
  color: #999;
  font-size: 2.5rem;
  cursor: pointer;
  display: none;
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  z-index: 5;
}

.clear-search-btn:hover {
  color: #333;
}

/* Make sure there's space for the clear button */
.search-input input {
  padding-right: 40px;
}

@media (max-width: 1440px) {
  .hero-image {
      right: 10%;
  }
}