/* Search page specific styles */
.search-page-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.search-filters-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filters-title {
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
  font-size: 1.1rem;
}
.filters-btn {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5em 1em;
  font-size: 1.1rem;
  color: #ff6b35;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filters-btn:hover {
  background: #ff6b35;
  color: #fff;
}
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.publication-card-search {
  display: flex;
  gap: 1.5rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 2rem;
  align-items: flex-start;
  position: relative; /* For favorite button positioning */
}
.publication-card-image {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  overflow: visible; /* Allow badges to overflow outside the image box */
  flex-shrink: 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* For badge and favorite button positioning */
}
.publication-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.publication-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0; /* Prevent overflow on narrow screens */
}
.publication-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ff6b35;
  margin-bottom: 0.2rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.publication-card-desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.5rem;
  max-width: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.publication-card-meta {
  font-size: 0.98rem;
  color: #222;
  margin-bottom: 0.3rem;
}
.publication-card-btn {
  margin-top: 0.7rem;
  align-self: flex-end;
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.3em;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.publication-card-btn:hover {
  background: #f7931e;
}

/* Publication Badges for Search Cards */
.publication-badge {
  position: absolute;
  top: 6px; /* Keep badge inside the image so it won't overlap the title */
  left: 6px;
  z-index: 3;
  padding: 0.2em 0.6em;
  border-radius: 10px;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin: 0;
  text-align: center;
  line-height: 1.1;
  max-width: calc(100% - 12px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-badge.gold {
  background: linear-gradient(90deg, #FFD700 0%, #FFC300 100%);
  color: #7c5a00;
  border: 1px solid #ffe066;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.publication-badge.diamond {
  background: linear-gradient(90deg, #fff 0%, #e0e7ef 100%);
  color: #2a3a4d;
  border: 1px solid #b8c6db;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.15);
}

.publication-badge.diamond::before {
  content: '\f3a5'; /* fa-gem */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.4em;
  color: #5e72e4;
}

/* Premium styling for search cards */
.publication-card-search.gold-publication {
  border: 3px solid #FFD700;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.25);
  background: linear-gradient(145deg, #fffef9 0%, #fffff0 100%);
  transition: all 0.3s ease;
}

.publication-card-search.diamond-publication {
  border: 3px solid #b8c6db;
  box-shadow: 0 4px 20px rgba(94, 114, 228, 0.20);
  background: linear-gradient(145deg, #fafbfc 0%, #f5f7fa 100%);
  transition: all 0.3s ease;
}

.publication-card-search.gold-publication:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.35);
  border-color: #FFC300;
}

.publication-card-search.diamond-publication:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(94, 114, 228, 0.30);
  border-color: #9ca8d4;
}
#searchPagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
#searchPagination .pagination-btn {
  padding: 0.6rem 1.1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #222;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#searchPagination .pagination-btn.active, #searchPagination .pagination-btn:hover {
  background: #ff6b35;
  color: #fff;
  border-color: #ff6b35;
} 

/* --- Restored horizontal layout for desktop --- */
.search-horizontal-layout {
    display: flex;
    gap: 2rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.search-filters-sidebar {
    width: 320px;
    min-width: 260px;
    max-width: 400px;
    height: 100vh;
    position: sticky;
    top: 80px;
    background: #fff;
    border-radius: 0 18px 18px 0;
    box-shadow: 2px 0 24px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

.filters-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Mobile-only elements (hidden on desktop) */
.mobile-only {
    display: none;
}

/* Mobile Back Button */
.mobile-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
    flex-grow: 0;
    border: none;
}

.mobile-back-btn:hover {
    background: #e55a2b;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.mobile-back-btn i {
    font-size: 1rem;
}

.filters-modal-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    gap: 0.8rem;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.filters-modal-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.active-filters-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.filter-group label {
    font-size: 1rem;
    color: #222;
    font-weight: 500;
}
.filter-select {
    padding: 0.6em 1em;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    background: #f8f9fa;
    color: #222;
    outline: none;
    transition: border 0.2s;
}
.filter-select:focus {
    border: 1.5px solid #ff6b35;
}
.search-publications-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 3vw 2rem 2vw;
}

.publications-list {
    flex: 1;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden; /* Prevent container scrolling, let modal-body handle it */
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.modal-title i {
    color: #ff6b35;
    font-size: 1.3rem;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #f5f5f5;
    color: #e74c3c;
}

.modal-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ff6b35;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px; /* Match header height */
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-links {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-user-name {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-left: 1rem;
}

.mobile-dropdown-item:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

.mobile-dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Desktop Navigation Styles */
.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: inherit;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    /* Hide desktop navigation and show mobile menu */
    .logo {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    /* Adjust header layout for mobile */
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
        gap: 1rem;
    }
    
    .mobile-back-btn {
        display: flex; /* Show back button on mobile */
        order: 1; /* Put back button on the left */
    }
    
    .mobile-menu-toggle {
        order: 4; /* Put hamburger on the right */
    }
    
    .search-container {
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 0;
        order: 2; /* Put search in the middle */
        flex: 1;
        margin: 0 0.5rem;
        max-width: none;
        min-width: 0; /* Allow shrinking */
        padding: 0.3rem;
        background: white;
        border-radius: 25px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .search-input {
        flex: 1;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
        border: none;
        outline: none;
        background: transparent;
        border-radius: 25px 0 0 25px;
    }
    .search-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border: none;
        background: none;
        border-radius: 0 25px 25px 0;
        margin-left: -2px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide sidebar and show modal elements on mobile */
    .search-filters-sidebar {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    .filters-modal-btn {
        display: flex; /* Show filters button on mobile */
    }
    
    .modal-overlay {
        display: flex; /* Enable modal on mobile */
    }
    
    .search-horizontal-layout {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }
    
    .search-publications-section {
        width: 100%;
        padding: 1rem 2rem;
        background: white;
        border-radius: 15px;
        margin: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    /* Enhanced mobile filter styles */
    .modal-body {
        max-height: 60vh;
        overflow-y: auto;
        padding: 1.5rem;
    }
    
    .filter-group {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .filter-group label {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2c3e50;
    }
    
    .filter-select {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
        border-radius: 10px;
        border: 2px solid #e0e0e0;
        background: white;
        min-height: 48px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1rem;
        padding-right: 3rem;
        /* Enhanced mobile dropdown behavior */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        /* Force mobile browsers to show native dropdown */
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
    }
    
    .filter-select:focus {
        border-color: #ff6b35;
        box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        outline: none;
    }
    
    /* Style select options for better mobile experience */
    /* Note: Mobile browsers may override option styling with native styling */
    .filter-select option {
        padding: 1.5rem 1rem;
        height: auto;
        min-height: 3rem;
        line-height: 1.5;
        font-size: 1.2rem;
        background: white;
        color: #2c3e50;
        border: none;
        font-weight: 500;
        /* Ensure options have enough space */
        display: block;
        width: 100%;
    }
    
    .filter-select option:hover,
    .filter-select option:focus {
        background: #f8f9fa;
        color: #ff6b35;
    }
    
    .filter-select option:checked,
    .filter-select option:selected {
        background: #ff6b35;
        color: white;
        font-weight: 600;
    }
    
    /* Ensure select element itself is large enough to show bigger text */
    .filter-select {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
        letter-spacing: 0.5px;
        line-height: 1.5;
    }
}

@media (max-width: 600px) {
  .publication-badge {
    display: inline-block; /* Show badges on mobile */
  }
  .publication-card-search {
    padding: 1rem 1rem;
    gap: 0.9rem;
    flex-direction: column;
    align-items: stretch;
  }
  .publication-card-image {
    width: 100%;
    height: 180px;
    overflow: visible; /* keep overflow visible on mobile too */
  }
  .publication-badge {
    top: 4px;
    left: 4px;
    font-size: 0.72em;
    padding: 0.15em 0.5em;
    border-radius: 9px;
  }
  .publication-card-title {
    font-size: 1.05rem;
  }
  .publication-card-desc {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
    max-width: none;
  }
  .publication-card-meta {
    font-size: 0.9rem;
  }
  .publication-card-btn {
    align-self: stretch; /* Full width on small screens */
  }
  .search-container {
    position: relative;
    display: block;
    padding: 0.1rem;
    max-width: 100vw;
  }
  .search-input {
    width: 100%;
    padding: 0.4rem 2.2rem 0.4rem 0.7rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
  .search-btn {
    position: absolute;
    right: 0.3em;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    z-index: 2;
  }
}

@media (max-width: 400px) {
  .publication-badge {
    display: inline-block; /* Show badges on very small phones */
  }
  .publication-card-search {
    padding: 0.85rem 0.85rem;
    gap: 0.75rem;
    flex-direction: column;
    align-items: stretch;
  }
  .publication-card-image {
    width: 100%;
    height: 160px;
    overflow: visible; /* keep overflow visible on narrow phones */
  }
  .publication-badge {
    top: 3px;
    left: 3px;
    font-size: 0.68em;
    padding: 0.12em 0.45em;
    border-radius: 8px;
  }
  .publication-card-title {
    font-size: 1rem;
  }
  .publication-card-desc {
    font-size: 0.9rem;
  }
  .search-container {
    max-width: 100vw;
    padding: 0.1rem;
  }
  .search-input {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }
  .search-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 1rem;
  }
}

/* --- Navbar styles to match index page --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}
.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: transparent;
}
.search-btn {
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-btn:hover {
    background: #f7931e;
}
.login-btn {
    background: #ff6b35;
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: #f7931e;
    transform: translateY(-2px);
}


.user-dropdown {
    position: relative;
}
.user-dropdown-toggle {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}
.user-dropdown-toggle:hover {
    background: #f7931e;
    transform: translateY(-2px);
}
.user-dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.user-dropdown.active .user-dropdown-toggle i {
    transform: rotate(180deg);
}
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}
.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}
.dropdown-item:hover {
    background: #f8f9fa;
    color: #ff6b35;
}
.dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}
.dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0.5rem 0;
}
.logout-btn:hover {
    background: #fee;
    color: #e74c3c !important;
} 

/* --- Footer styles to match index page --- */
.footer {
    background: white !important;
    color: #1E0E62 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
.footer-left h3 {
    color: #ff6b35 !important;
}
.footer-left p {
    color: #1E0E62 !important;
    opacity: 1 !important;
}
.footer-right p {
    color: #1E0E62 !important;
    opacity: 1 !important;
}
.social-links a {
    color: #1E0E62 !important;
}
.social-links a:hover {
    color: #ff6b35 !important;
} 
.main-container {
    margin-top: 80px;
} 

html, body {
    overflow-x: hidden;
}

.search-page-container, .search-horizontal-layout, .search-publications-section, .publications-list {
    overflow-x: hidden;
} 

.favorite-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 10;
  background: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  color: #ff6b35;
  font-size: 1.3rem;
  padding: 0.25em 0.35em;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, box-shadow 0.2s, background 0.2s;
}
.favorite-btn.favorited,
.favorite-btn.favorited i {
  color: #e74c3c;
}
.favorite-btn:hover i {
  color: #e74c3c;
}
.favorite-btn:active {
  background: #ffe5e0;
} 