* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  background-color: #FFFFFF;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #666;
}

#app {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
}

.page-title {
  color: white;
  font-size: 1.4em;
  font-weight: 600;
  margin: 0;
  padding: 0;
  letter-spacing: 0.5px;
}

.info-hub {
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.info-hub h1 {
  color: #07717c;
  margin-bottom: 40px;
  font-size: 2.5em;
  text-align: center;
  font-weight: 700;
}

.info-hub-image {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
}

.info-hub h2 {
  color: #07717c;
  margin: 40px 0 20px;
  font-size: 1.8em;
  scroll-margin-top: 80px;
  font-weight: 600;
  border-bottom: 2px solid rgba(7, 113, 124, 0.1);
  padding-bottom: 10px;
}

.info-hub h3 {
  color: #07717c;
  margin: 30px 0 15px;
  font-size: 1.4em;
  font-weight: 600;
}

.info-hub h4 {
  color: #07717c;
  margin: 20px 0 10px;
  font-size: 1.2em;
  font-weight: 500;
}

.info-hub p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 16px;
}

.return-button {
  position: fixed;
  top: 25px;
  left: 25px;
  width: 44px;
  height: 44px;
  background-color: white;
  color: #07717c;
  text-decoration: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.2s ease;
  z-index: 1000;
  border: 1px solid rgba(7, 113, 124, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.return-button:hover {
  background-color: #07717c;
  color: white;
  transform: translateX(-2px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.chapter-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #f8f9fa;
  padding: 0;
  z-index: 1000;
  border-left: 1px solid rgba(7, 113, 124, 0.1);
}

.nav-title {
  color: #07717c;
  font-size: 1.4em;
  font-weight: 600;
  margin: 0;
  padding: 25px 30px;
  background: white;
  border-bottom: 1px solid rgba(7, 113, 124, 0.1);
  letter-spacing: 0.5px;
}

.chapter-nav ul {
  list-style: none;
  margin: 0;
  padding: 20px 0;
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.chapter-nav li {
  margin: 0;
  padding: 0;
}

.chapter-nav a {
  color: #07717c;
  text-decoration: none;
  font-size: 15px;
  display: block;
  padding: 12px 30px;
  transition: all 0.2s ease;
  opacity: 0.75;
  border-left: 3px solid transparent;
}

.chapter-nav a:hover {
  background: rgba(7, 113, 124, 0.05);
  opacity: 0.9;
}

.chapter-nav a.active {
  background: white;
  font-weight: 500;
  opacity: 1;
  border-left-color: #07717c;
}

.sliding-image-left {
  width: 340px;
  height: auto;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-200%, -50%);
  animation: slideInLeft 0.9s ease-out forwards;
}

.sliding-image-right {
  width: 340px;
  height: auto;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(100%, -50%);
  animation: slideInRight 0.9s ease-out forwards;
}

.middle-image {
  width: 340px;
  height: auto;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  will-change: transform;
  transition: opacity 0.3s ease;
}

.menu-header {
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
}

.menu-logo {
  width: 30px;
  height: auto;
  opacity: 0.6;
  transition: all 0.3s ease;
  transform-origin: center;
  cursor: pointer;
  order: -1;
  z-index: 10001;
  position: relative;
}

.menu-logo:hover {
  opacity: 1;
}

.menu-logo.spinning {
  animation: spinOnce 0.6s ease-in-out;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: arial, sans-serif;
  font-size: 14px;
  color: #07717c;
}

.nav-links a {
  text-decoration: none;
  color: #07717c;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #07717c;
  opacity: 0.8;
}

/* New unified navigation container */
.nav-container {
  display: flex;
  background: rgba(7, 113, 124, 0.05);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(7, 113, 124, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #07717c;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
  border-right: 1px solid rgba(128, 128, 128, 0.15);
  background: rgba(7, 113, 124, 0.05);
}

.nav-item:last-child {
  border-right: none;
}

.nav-item:hover {
  background: rgba(7, 113, 124, 0.08);
}

.nav-item.active {
  background: rgba(7, 113, 124, 0.1);
  font-weight: 700;
}

.nav-item svg {
  color: #07717c;
}

/* Navigation order: Publish (1), Collab (2), Archives (3) */
.publish-nav {
  order: 1;
  font-weight: 500;
}

.collab-nav {
  order: 2;
}

.archives-nav {
  order: 3;
}

.archives-dropdown {
  position: relative;
  display: inline-block;
}

.archives-wrapper {
  position: relative;
  background: transparent;
  border-radius: 4px;
  padding: 4px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.archives-wrapper:hover {
  border-color: rgba(7, 113, 124, 0.1);
}

.archives-arrow {
  color: #07717c;
  transition: transform 0.2s ease;
}

.archives-link {
  text-decoration: none !important;
  display: block;
  padding: 4px 8px;
  color: #07717c;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.archives-content {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  padding: 6px;
  border: 1px solid rgba(7, 113, 124, 0.1);
  min-width: 100%;
  box-shadow: 0 2px 8px rgba(7, 113, 124, 0.1);
  transform-origin: top center;
}

.archives-content.show {
  display: block;
  animation: dropdownFade 0.2s ease;
}

.archives-content a {
  color: #07717c;
  padding: 6px 12px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 500;
  border-radius: 4px;
}

.archives-content a:hover {
  background-color: rgba(7, 113, 124, 0.05);
}

.menu-options {
  position: fixed;
  top: 0;
  left: -300px;
  width: 200px;
  height: 100vh;
  background: #fad153;
  padding: 20px 0;
  transform: translateX(0);
  transition: transform 0.8s ease, box-shadow 0.8s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.menu-options.active {
  transform: translateX(300px);
  box-shadow: 
    2px 0 15px rgba(6, 114, 115, 0.2),
    4px 0 8px rgba(6, 114, 115, 0.15),
    6px 0 20px rgba(6, 114, 115, 0.1),
    8px 0 15px rgba(6, 114, 115, 0.05),
    10px 0 25px rgba(6, 114, 115, 0.025),
    0 0 20px rgba(7, 113, 124, 0.2),
    0 0 35px rgba(7, 113, 124, 0.1),
    0 0 50px rgba(7, 113, 124, 0.05);
}

.menu-options.info-menu {
  background: #fad153;
}

.info-nav {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.info-nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #07717c;
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.8;
  font-size: 15px;
}

.info-nav-item:last-child {
  border-bottom: 1px solid rgba(7, 113, 124, 0.1);
  padding-bottom: 15px;
  margin-bottom: 5px;
}

.info-nav-item:hover {
  background: rgba(7, 113, 124, 0.05);
  opacity: 1;
}

.info-nav-item.active {
  background: rgba(7, 113, 124, 0.1);
  opacity: 1;
  font-weight: 500;
  border-left: 3px solid #07717c;
}

.return-link {
  color: #07717c !important;
  opacity: 0.8;
}

.return-link:hover {
  opacity: 1;
}

.menu-top {
  padding: 10px 0;
}

.auth-section {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-bottom: 1px solid rgba(7, 113, 124, 0.1);
}

.auth-section a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #07717c;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.auth-section a:hover {
  background: rgba(7, 113, 124, 0.05);
}

.auth-section svg {
  width: 16px;
  height: 16px;
}

.recent-activity {
  padding: 20px;
  margin-top: 10px;
}

.recent-activity h3 {
  color: #07717c;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.empty-state {
  color: #07717c;
  opacity: 0.7;
  font-size: 14px;
  margin-bottom: 10px;
  padding-left: 5px;
}

.show-more {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #07717c;
  font-size: 14px;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.show-more:hover {
  opacity: 1;
  background: rgba(7, 113, 124, 0.05);
  border-radius: 4px;
}

.show-more svg {
  transition: transform 0.2s ease;
}

.show-more:hover svg {
  transform: translateY(2px);
}

.recent-activity .empty-state {
  color: rgba(6, 114, 115, 0.6);
  font-size: 14px;
  margin-bottom: 15px;
}

.recent-activity .show-more {
  width: 100%;
  justify-content: center;
  padding: 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.recent-activity .show-more:hover {
  background: rgba(6, 114, 115, 0.1);
  transform: translateY(-1px);
  color: #067273;
}

.recent-activity .show-more svg {
  margin-left: 8px;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.recent-activity .show-more:hover svg {
  transform: translateY(2px);
}

/* Activity list styles */
.activity-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 15px;
}

.menu-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.menu-activity-item:hover {
  background: rgba(6, 114, 115, 0.08);
  border-color: rgba(6, 114, 115, 0.2);
  transform: translateX(2px);
}

.activity-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 114, 115, 0.1);
  border-radius: 4px;
  margin-top: 2px;
}

.activity-icon svg {
  color: #067273;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  color: #067273;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-time {
  color: rgba(6, 114, 115, 0.6);
  font-size: 11px;
  font-weight: 400;
}

/* Scrollbar styling for activity list */
.activity-list::-webkit-scrollbar {
  width: 4px;
}

.activity-list::-webkit-scrollbar-track {
  background: rgba(6, 114, 115, 0.1);
  border-radius: 2px;
}

.activity-list::-webkit-scrollbar-thumb {
  background: rgba(6, 114, 115, 0.3);
  border-radius: 2px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 114, 115, 0.5);
}

.menu-footer {
  margin-top: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.menu-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: rgba(7, 113, 124, 0.1);
  margin-bottom: 15px;
}

.menu-footer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #07717c;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 6px;
  text-decoration: none;
  min-height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.menu-footer-item:hover {
  opacity: 1;
  background: rgba(7, 113, 124, 0.05);
}

.menu-footer-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

/* Ensure consistent spacing for all menu footer items */
.menu-footer-item svg {
  margin-right: 12px;
  flex-shrink: 0;
}

.return-link {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
  padding-top: 15px;
  min-height: 48px;
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
  z-index: 9999;
}

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

.top-center-image {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(calc(-50% - 40px));
  width: 480px;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 995; /* Reduced z-index to not block search bar */
  pointer-events: none; /* Prevent blocking clicks */
}

.search-container {
  position: fixed;
  top: 320px; /* Moved down more */
  left: 50%;
  transform: translateX(-50%) translateY(-15px); /* Fine-tuned transform */
  width: 750px;
  z-index: 1000; /* Increased z-index to be above all other elements */
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto; /* Always allow pointer events */
  background: transparent;
}

.search-container.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.search-bar {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  z-index: 1001; /* Ensure search bar is above everything */
}

.search-bar input {
  width: 100%;
  padding: 15px 45px 15px 20px;
  font-size: 16px;
  border: 1px solid rgba(223, 225, 229, 0.5);
  border-radius: 24px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  background: rgba(255, 255, 255, 0.95); /* More opaque background */
  color: #666;
  pointer-events: auto; /* Ensure input is always clickable */
  cursor: text; /* Show text cursor */
  z-index: 1002; /* Highest z-index for the input */
  position: relative;
}

.search-bar input:hover {
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.45);
  background: rgba(255, 255, 255, 1); /* Fully opaque on hover */
}

.search-bar input:focus {
  box-shadow: 
    0 1px 8px rgba(32, 33, 36, 0.45),
    0 0 15px rgba(7, 113, 124, 0.2),
    0 0 25px rgba(7, 113, 124, 0.1);
  background: rgba(255, 255, 255, 1); /* Fully opaque when focused */
  border-color: rgba(7, 113, 124, 0.3);
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.5;
  pointer-events: none; /* Don't block clicks on input */
}

.search-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.search-button {
  background-color: rgba(248, 249, 250, 0.8);
  border: 1px solid rgba(248, 249, 250, 0.8);
  border-radius: 4px;
  color: #666;
  font-family: arial, sans-serif;
  font-size: 14px;
  margin: 11px 4px;
  padding: 0 16px;
  line-height: 36px;
  height: 36px;
  min-width: 120px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.search-button:hover {
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
  background-color: rgba(248, 249, 250, 0.9);
  border: 1px solid rgba(218, 220, 224, 0.8);
  color: #555;
}

.search-button:focus {
  border: 1px solid rgba(66, 133, 244, 0.8);
  outline: none;
}

/* Knowledge Carousel Styles - ENHANCED */
.knowledge-carousel-container {
  position: fixed;
  top: 480px !important;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1800px;
  height: calc(100vh - 520px) !important;
  z-index: 999;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 50px 0 50px;
  overflow: visible;
}

.knowledge-carousel-container.visible {
  opacity: 1;
}

.carousel-header {
  display: flex;
  justify-content: center; /* Center the header content */
  align-items: center;
  margin-bottom: 25px;
  padding: 0 30px;
  position: relative; /* For absolute positioning of navigation */
  flex-direction: column; /* Stack title and subtitle vertically */
}

.carousel-header h2 {
  color: #067273;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
  text-align: center; /* Center the text */
}

.carousel-subtitle {
  color: #999; /* Gray color for subtitle */
  font-size: 16px;
  font-weight: 400;
  margin: 8px 0 0 0; /* Small margin above, none below */
  text-align: center;
  opacity: 0.8;
}

.knowledge-carousel {
  overflow: visible;
  position: relative;
  padding: 15px 0;
  height: calc(100% - 80px);
  perspective: 1200px;
  perspective-origin: center center;
}

.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.knowledge-card {
  position: absolute;
  width: 550px; /* Wider for rectangular shape */
  height: 320px; /* Shorter for rectangular shape */
  background: white;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 
    0 6px 20px rgba(6, 114, 115, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(6, 114, 115, 0.1);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  overflow: hidden;
  backface-visibility: hidden;
  will-change: transform, filter, border-color, box-shadow;
  transform-origin: center center;
  display: flex;
  flex-direction: column;
}

.knowledge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #067273, #0a8a8c);
  opacity: 0;
  transition: all 0.6s ease;
}

.knowledge-card.active-card {
  border: 2px solid #fac637;
  box-shadow: 
    0 8px 25px rgba(6, 114, 115, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100 !important;
}

.knowledge-card.active-card::before {
  background: linear-gradient(135deg, #fac637, #f8c832);
  opacity: 1;
  height: 2px;
}

.knowledge-card.collab-card::before {
  background: linear-gradient(135deg, #fac637, #f8c832);
}

.knowledge-card.collab-card.active-card::before {
  background: linear-gradient(135deg, #fac637, #f8c832);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-name {
  color: #067273;
  font-size: 14px;
  font-weight: 600;
  background: rgba(6, 114, 115, 0.1);
  padding: 6px 12px;
  border-radius: 12px;
}

.card-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}

.view-count {
  color: #067273;
  background: rgba(6, 114, 115, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.favorite-count {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collab-type {
  color: #b8860b;
  background: rgba(250, 198, 55, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-prompt {
  background: rgba(6, 114, 115, 0.05);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 3px solid #067273;
  flex-shrink: 0;
}

.card-prompt strong {
  color: #067273;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-prompt {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
}

.knowledge-card h3 {
  color: #067273;
  font-size: 18px; /* Slightly increased from 16px */
  font-weight: 700;
  margin-bottom: 16px; /* Increased from 10px */
  line-height: 1.3;
  flex-shrink: 0;
}

.card-content-preview {
  color: #666;
  font-size: 16px; /* Doubled from 13px as requested */
  line-height: 1.6; /* Improved line height for larger text */
  margin-bottom: 20px; /* Increased spacing */
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8; /* Increased from 3 to show more content */
  -webkit-box-orient: vertical;
  text-align: center; /* Center the content as requested */
  padding: 0 10px; /* Add some padding for better presentation */
}

.card-footer {
  margin-top: auto;
  flex-shrink: 0;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  background: rgba(6, 114, 115, 0.1);
  color: #067273;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(6, 114, 115, 0.7);
  font-size: 11px;
  font-weight: 500;
}

.post-date, .ai-model {
  font-size: 11px;
  color: rgba(6, 114, 115, 0.7);
}

.category-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(6, 114, 115, 0.1);
  color: rgba(6, 114, 115, 0.7);
  font-size: 12px;
  font-weight: 500;
}

.category-icon {
  font-size: 14px;
}

/* Carousel Navigation Container - UPDATED TO BE CLOSER TO FOOTER */
.carousel-navigation-container {
  position: fixed;
  bottom: 50px; /* Moved closer to footer from 100px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-navigation-container.visible {
  opacity: 1;
}

.carousel-navigation {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.carousel-nav-btn {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(6, 114, 115, 0.2);
  background: white;
  color: #067273;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:hover:not(:disabled) {
  background: rgba(6, 114, 115, 0.05);
  border-color: #067273;
  transform: scale(1.05);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Favorites Button Styles */
.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  color: #666;
  border: 1px solid rgba(6, 114, 115, 0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.favorite-btn:hover {
  background: rgba(6, 114, 115, 0.05);
  border-color: rgba(6, 114, 115, 0.3);
  color: #067273;
}

.favorite-btn.favorited {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.3);
}

.favorite-btn.favorited:hover {
  background: rgba(220, 53, 69, 0.15);
  border-color: rgba(220, 53, 69, 0.4);
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 500;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.footer-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer.visible {
  opacity: 1;
}

.footer a {
  color: #07717c;
  text-decoration: none;
  font-family: arial, sans-serif;
  font-size: 14px;
  transition: opacity 0.2s ease;
  position: relative;
}

.footer a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: #07717c;
  opacity: 0.8;
}

.footer a:hover {
  opacity: 0.8;
}


/* Left edge trigger for hover-to-open menu */
.left-edge-trigger {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 100vh;
  z-index: 997;
  background: transparent;
}

/* Hamburger icon indicator */
.menu-hamburger-indicator {
  position: fixed;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  width: 4px;
  height: 100px;
  z-index: 997;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.menu-hamburger-indicator:hover {
  opacity: 0.8;
}

.hamburger-line {
  display: block;
  width: 4px;
  height: 25px;
  background-color: rgba(128, 128, 128, 0.5);
  border-radius: 2px;
}

/* Archive Search Results Styles */
.archive-results-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 10003;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

.archive-results-container.active {
  opacity: 1;
  visibility: visible;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(6, 114, 115, 0.1);
  margin-bottom: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.search-results-header h2 {
  color: #067273;
  font-size: 28px;
  font-weight: 600;
  margin: 0;
}

.close-search-btn {
  background: none;
  border: none;
  color: #067273;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-search-btn:hover {
  background: rgba(6, 114, 115, 0.1);
}

.search-results {
  max-width: 1200px;
  margin: 0 auto;
}

.search-loading {
  text-align: center;
  padding: 40px 20px;
  color: #067273;
  font-size: 16px;
}

.search-summary {
  margin-bottom: 30px;
  padding: 15px 20px;
  background: rgba(6, 114, 115, 0.05);
  border-radius: 8px;
  border-left: 4px solid #067273;
}

.search-summary p {
  margin: 0;
  color: #067273;
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-results svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  color: #067273;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.no-results p {
  margin: 0;
  font-size: 14px;
}

.search-post-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(6, 114, 115, 0.1);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-post-item:hover {
  border-color: #fac637;
  box-shadow: 0 4px 16px rgba(6, 114, 115, 0.1);
  transform: translateY(-2px);
}

.post-header h4 {
  color: #067273;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(6, 114, 115, 0.7);
  font-size: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.post-embed {
  margin: 15px 0;
}

.embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(6, 114, 115, 0.05);
  border-radius: 8px 8px 0 0;
  border: 1px solid rgba(6, 114, 115, 0.1);
  border-bottom: none;
}

.embed-type {
  font-size: 14px;
  font-weight: 500;
  color: #067273;
  display: flex;
  align-items: center;
  gap: 8px;
}

.open-external {
  color: #067273;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.open-external:hover {
  background: rgba(6, 114, 115, 0.1);
}

.embed-container {
  position: relative;
  border: 1px solid rgba(6, 114, 115, 0.1);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.embed-container iframe {
  width: 100%;
  border: none;
  display: block;
}

.embed-error {
  background: rgba(6, 114, 115, 0.05);
  padding: 40px;
  text-align: center;
  border-radius: 8px;
}

.embed-error h4 {
  color: #067273;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.embed-error p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.embed-blocked {
  background: rgba(6, 114, 115, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(6, 114, 115, 0.1);
  text-align: center;
  padding: 40px 20px;
}

.embed-blocked h4 {
  color: #067273;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.embed-blocked p {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.embed-blocked a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #067273;
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.embed-blocked a:hover {
  background: #045f6a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 114, 115, 0.2);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(6, 114, 115, 0.05);
  border-radius: 6px;
  margin-bottom: 12px;
}

.content-type {
  font-size: 13px;
  font-weight: 500;
  color: #067273;
}

.content-text {
  margin: 15px 0;
}

.content-text p {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.post-prompt {
  margin: 15px 0;
  padding: 16px;
  background: rgba(6, 114, 115, 0.05);
  border-radius: 8px;
  border-left: 4px solid #067273;
}

.post-prompt strong {
  color: #067273;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.post-prompt p {
  color: #666;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  background: rgba(6, 114, 115, 0.1);
  color: #067273;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag:hover {
  background: rgba(250, 198, 55, 0.3);
}

/* Post Actions - NEW */
.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(6, 114, 115, 0.1);
  gap: 12px;
}

.view-full-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fac637;
  color: #067273;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(250, 198, 55, 0.3);
}

.view-full-post-btn:hover {
  background: #f8c832;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(250, 198, 55, 0.4);
}

.view-full-post-btn svg {
  width: 16px;
  height: 16px;
}

/* Highlight search terms */
mark {
  background: rgba(250, 198, 55, 0.4);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
}

.error-state {
  text-align: center;
  padding: 40px 20px;
  color: #dc3545;
  font-size: 16px;
}

@keyframes slideInLeft {
  0% {
    opacity: 1;
    transform: translate(-200%, -50%);
  }
  90% {
    opacity: 1;
    transform: translate(-55%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-55%, -50%);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 1;
    transform: translate(100%, -50%);
  }
  90% {
    opacity: 1;
    transform: translate(-45%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(-45%, -50%);
  }
}

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

.menu-header.visible .bolt-logo {
  opacity: 1;
}

@keyframes spinOnce {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Contact form modal styling */
.contact-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  width: 95%;
  background: white;
  padding: 30px;
  border-radius: 12px;
  z-index: 1100;
  box-shadow: 
    0 0 15px rgba(6, 114, 115, 0.35),
    0 0 30px rgba(6, 114, 115, 0.25),
    0 0 45px rgba(6, 114, 115, 0.15),
    0 0 60px rgba(6, 114, 115, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.1);
  animation: formGlow 2s ease-in-out infinite alternate;
}

.contact-container h1 {
  color: #07717c;
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 600;
}

@keyframes formGlow {
  from {
    box-shadow: 
      0 0 15px rgba(6, 114, 115, 0.35),
      0 0 30px rgba(6, 114, 115, 0.25),
      0 0 45px rgba(6, 114, 115, 0.15),
      0 0 60px rgba(6, 114, 115, 0.1);
  }
  to {
    box-shadow: 
      0 0 20px rgba(6, 114, 115, 0.45),
      0 0 35px rgba(6, 114, 115, 0.35),
      0 0 50px rgba(6, 114, 115, 0.25),
      0 0 65px rgba(6, 114, 115, 0.15);
  }
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  z-index: 2;
}

.forgot-password {
  display: inline-block;
  text-align: left;
  color: #067273;
  text-decoration: none;
  font-size: 14px;
  margin: -15px 0 20px;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #045c66;
}

.submit-button {
  width: 100%;
  padding: 12px;
  background: #067273;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 20px;
}

.submit-button:hover {
  background: #045c66;
  transform: translateY(-1px);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #067273;
  font-size: 16px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 35px 12px 12px;
  border: 1px solid rgba(6, 114, 115, 0.2);
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.98);
  color: #666;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #067273;
  box-shadow: 
    0 0 0 2px rgba(6, 114, 115, 0.1),
    0 0 10px rgba(6, 114, 115, 0.1);
  background: rgba(255, 255, 255, 0.99);
}

.send-message-btn {
  width: 100%;
  padding: 14px;
  background: #fad153;
  color: #07717c;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.send-message-btn:hover {
  background: #f8c832;
  transform: translateY(-1px);
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 12px;
}

.company-info {
  text-align: left;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(7, 113, 124, 0.1);
  color: #07717c;
}

.company-info h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #07717c;
}

.info-item {
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.info-item i {
  color: #07717c;
  font-size: 20px;
  width: 24px;
  margin-top: 4px;
}

.info-item p {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.info-item a {
  color: #07717c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-item a:hover {
  color: #045c66;
}

.copyright-notice {
  text-align: center;
  margin-top: 40px;
  color: #07717c;
  font-size: 14px;
}

/* Profile modal styling */
.profile-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  z-index: 1100;
  box-shadow: 
    0 0 15px rgba(6, 114, 115, 0.35),
    0 0 30px rgba(6, 114, 115, 0.25),
    0 0 45px rgba(6, 114, 115, 0.15),
    0 0 60px rgba(6, 114, 115, 0.1);
  animation: formGlow 2s ease-in-out infinite alternate;
}

.profile-container h1 {
  color: #07717c;
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 600;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(6, 114, 115, 0.1);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background: rgba(250, 198, 55, 0.1);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fac637;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: #fac637;
  border: none;
  border-radius: 50%;
  color: #067273;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.edit-avatar-btn:hover {
  background: #f8c832;
  transform: scale(1.1);
}

.edit-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fac637;
  color: #067273;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: auto;
}

.edit-profile-btn:hover {
  background: #f8c832;
  transform: translateY(-1px);
}

.profile-meta {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.profile-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(6, 114, 115, 0.7);
}

.profile-meta svg {
  color: #fac637;
}

.meta-text {
  font-size: 14px;
  color: #067273;
}

.profile-meta a {
  color: #067273;
  text-decoration: none;
  transition: color 0.2s ease;
}

.profile-meta a:hover {
  color: #fac637;
}

.profile-bio {
  color: #067273;
  font-size: 15px;
  line-height: 1.6;
}

.profile-info h2 {
  color: #067273;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.profile-info p {
  color: #067273;
  font-size: 16px;
}

.profile-sections {
  display: grid;
  gap: 32px;
  margin-top: 40px;
}

.profile-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(6, 114, 115, 0.1);
  transition: all 0.2s ease;
}

.profile-section:hover {
  border-color: #fac637;
  box-shadow: 0 4px 12px rgba(250, 198, 55, 0.1);
}

.profile-section h3 {
  color: #067273;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.posts-list {
  display: grid;
  gap: 16px;
}

.post-item {
  background: white;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(6, 114, 115, 0.1);
  transition: all 0.2s ease;
}

.post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 114, 115, 0.1);
}

.post-item h4 {
  color: #067273;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.post-meta {
  color: rgba(6, 114, 115, 0.6);
  font-size: 14px;
  margin-bottom: 12px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(6, 114, 115, 0.1);
  color: #067273;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.form-title {
  color: #07717c;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.help-container {
  padding: 100px 40px 40px;
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: 
    0 0 15px rgba(6, 114, 115, 0.35),
    0 0 30px rgba(6, 114, 115, 0.25),
    0 0 45px rgba(6, 114, 115, 0.15),
    0 0 60px rgba(6, 114, 115, 0.1);
  animation: formGlow 2s ease-in-out infinite alternate;
}

.help-search {
  margin-bottom: 40px;
}

.help-search input {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  border: 1px solid rgba(6, 114, 115, 0.2);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #666;
}

.help-search input:focus {
  border-color: #067273;
  box-shadow: 
    0 0 0 2px rgba(6, 114, 115, 0.1),
    0 0 10px rgba(6, 114, 115, 0.1);
}

.help-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.help-section {
  background: white;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid rgba(6, 114, 115, 0.1);
  transition: all 0.2s ease;
}

.help-section:hover {
  border-color: #fac637;
  box-shadow: 0 4px 12px rgba(6, 114, 115, 0.1);
}

.help-section h2 {
  color: #067273;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.help-section p {
  color: rgba(6, 114, 115, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.help-section ul {
  list-style: none;
  padding: 0;
}

.help-section li {
  margin-bottom: 12px;
}

.help-section li:last-child {
  margin-bottom: 0;
}

.help-section a {
  display: block;
  color: #067273;
  text-decoration: none;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.help-section a:hover {
  background: rgba(6, 114, 115, 0.05);
  border-color: rgba(6, 114, 115, 0.1);
}

.help-section a span {
  display: block;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
}

.help-section a small {
  display: block;
  color: rgba(6, 114, 115, 0.7);
  font-size: 13px;
}

.contact-support-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #fac637;
  color: #067273;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-top: 10px;
}

.contact-support-btn:hover {
  background: #f8c832;
  transform: translateY(-1px);
}

.activity-container {
  padding: 100px 40px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.activity-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-button {
  padding: 12px 20px;
  background: white;
  color: #067273;
  border: 1px solid rgba(6, 114, 115, 0.2);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-button:hover {
  background: rgba(6, 114, 115, 0.05);
  border-color: rgba(6, 114, 115, 0.3);
}

.filter-button.active {
  background: #fac637;
  color: #07717c;
  border-color: #fac637;
}

.activity-timeline {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(6, 114, 115, 0.1);
  transition: all 0.2s ease;
}

.activity-timeline:hover {
  border-color: #fac637;
  box-shadow: 0 4px 12px rgba(250, 198, 55, 0.1);
}

.timeline-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(6, 114, 115, 0.1);
  padding-bottom: 16px;
}

.timeline-header h3 {
  color: #067273;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.timeline-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-container {
  padding: 100px 40px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.settings-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 
    0 0 15px rgba(6, 114, 115, 0.1),
    0 0 30px rgba(6, 114, 115, 0.05);
}

.settings-section h2 {
  color: #067273;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(6, 114, 115, 0.1);
  padding-bottom: 12px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form select {
  width: 100%;
  padding: 12px;
  
  border: 1px solid rgba(6, 114, 115, 0.2);
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.98);
  color: #666;
}

.settings-form input[type="text"]:focus,
.settings-form input[type="email"]:focus,
.settings-form select:focus {
  outline: none;
  border-color: #067273;
  box-shadow: 
    0 0 0 2px rgba(6, 114, 115, 0.1),
    0 0 10px rgba(6, 114, 115, 0.1);
}

.danger-zone {
  border: 1px solid rgba(220, 53, 69, 0.5);
}

.danger-zone h2 {
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.2);
}

.danger-button {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.danger-button:hover {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
}

.publish-container {
  padding: 100px 40px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.publish-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 30px;
  justify-content: center;
}

.tab-button {
  padding: 12px 30px;
  background: rgba(6, 114, 115, 0.05);
  color: rgba(6, 114, 115, 0.7);
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.tab-button:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.tab-button:hover {
  background: rgba(6, 114, 115, 0.1);
  color: #067273;
}

/* Remove any unwanted background colors from menu items */
.menu-footer-item:not(:hover) {
  background: transparent !important;
}

/* Ensure no blue backgrounds on menu items */
.menu-options a,
.menu-footer a {
  background: transparent !important;
}

.menu-options a:hover,
.menu-footer a:hover {
  background: rgba(6, 114, 115, 0.1) !important;
}
.tab-button.active {
  background: #067273;
  color: white;
}

.publish-form {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 
    0 0 15px rgba(6, 114, 115, 0.1),
    0 0 30px rgba(6, 114, 115, 0.05);
  display: none;
}

.publish-form.active {
  display: block;
}

.publish-form h2 {
  color: #067273;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.publish-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(6, 114, 115, 0.2);
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.98);
  color: #666;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23067273' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.publish-form select:focus {
  outline: none;
  border-color: #067273;
  box-shadow: 
    0 0 0 2px rgba(6, 114, 115, 0.1),
    0 0 10px rgba(6, 114, 115, 0.1);
}

/* Login page styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.login-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 450px;
  width: 90%;
  background: white;
  border-radius: 12px;
  z-index: 1100;
  padding: 40px;
  box-shadow: 
    0 0 15px rgba(6, 114, 115, 0.35),
    0 0 30px rgba(6, 114, 115, 0.25),
    0 0 45px rgba(6, 114, 115, 0.15),
    0 0 60px rgba(6, 114, 115, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.1);
  animation: formGlow 2s ease-in-out infinite alternate;
}

.login-container h1 {
  color: #07717c;
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 600;
}

.login-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  background: rgba(6, 114, 115, 0.05);
  border-radius: 8px;
  padding: 3px;
}

.tab-button {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  color: #07717c;
  border: none;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
  text-align: center;
}

.tab-button.active {
  background: #067273;
  color: white;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form .form-group {
  margin-bottom: 24px;
}

.auth-form .form-group input {
  width: 100%;
  padding: 12px 35px 12px 12px;
  border: 1px solid rgba(6, 114, 115, 0.2);
  border-radius: 6px;
  font-size: 16px;
  background: rgba(17, 17, 17, 0.05);
  color: #666;
  transition: all 0.2s ease;
}

.auth-form .form-group input:focus {
  outline: none;
  border-color: #067273;
  box-shadow: 
    0 0 0 2px rgba(6, 114, 115, 0.1),
    0 0 10px rgba(6, 114, 115, 0.1);
  background: rgba(255, 255, 255, 0.99);
}

.auth-form .toggle-password {
  color: #067273;
}

.auth-form .forgot-password {
  color: #067273;
  display: block;
  text-align: right;
  margin-top: -15px;
  margin-bottom: 25px;
}

.auth-form .submit-button {
  width: 100%;
  padding: 14px;
  background: #fad153;
  color: #07717c;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 20px;
}

.auth-form .submit-button:hover {
  background: #f8c832;
  transform: translateY(-1px);
}

.donation-info {
  background: #fac637;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid rgba(7, 113, 124, 0.1);
}

/* Hide tabs completely when only one form is shown */
.tabs-hidden .publish-tabs {
  display: none;
}

/* Enhanced Tag System Styles */
.tag-input-container {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.tag-input-group {
  flex: 1;
}

.tag-input {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(6, 114, 115, 0.3);
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.2s ease;
  color: #333;
  background: rgba(255, 255, 255, 0.98);
}

.tag-input:focus {
  outline: none;
  border-color: #07717c;
  box-shadow: 0 0 0 3px rgba(6, 114, 115, 0.15);
  background: white;
}

.add-tag-btn {
  padding: 12px 20px;
  background: #067273;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.add-tag-btn:hover:not(:disabled) {
  background: #045c66;
  transform: translateY(-1px);
}

.add-tag-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.tags-display {
  margin-top: 15px;
  min-height: 50px;
  padding: 15px;
  border: 2px dashed rgba(6, 114, 115, 0.4);
  border-radius: 8px;
  background: rgba(250, 198, 55, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.tags-display.empty {
  justify-content: center;
  align-items: center;
  color: rgba(6, 114, 115, 0.7);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #067273, #0a8a8c);
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  animation: tagAppear 0.3s ease;
  box-shadow: 0 2px 6px rgba(6, 114, 115, 0.3);
}

.tag-remove {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.tag-remove:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tag-count {
  font-size: 12px;
  color: rgba(6, 114, 115, 0.8);
  margin-top: 8px;
  font-style: italic;
  font-weight: 500;
}

@keyframes tagAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.tag-error {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 500;
}

.tag-error.visible {
  opacity: 1;
}

/* Enhanced Required Field Indicator */
.form-group label[for$="-tag-input"]::after,
.form-group label[required]::after {
  content: " *";
  color: #dc3545;
  font-weight: 700;
}

/* Warning for missing tags */
.tags-warning {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
  color: #dc3545;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.tags-warning.visible {
  display: block;
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
  .menu-header {
    flex-direction: column;
    padding: 10px 15px;
    height: auto;
    min-height: 60px;
  }
  
  .nav-links {
    width: 100%;
    margin-top: 10px;
  }
  
  .nav-container {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .nav-item {
    padding: 8px 12px;
    font-size: 14px;
    min-width: auto;
  }
}

/* Mobile Container Improvements */
@media (max-width: 768px) {
  .activity-container,
  .contact-container,
  .favorites-container,
  .help-container,
  .login-container,
  .profile-container,
  .publish-container,
  .settings-container,
  .support-container {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 80px 10px 20px 10px;
    padding: 20px;
    border-radius: 8px;
    overflow-y: visible;
  }
  
  /* Adjust headers for mobile */
  .activity-header-title,
  .contact-header,
  .favorites-header-title,
  .help-header-title,
  .login-header,
  .reset-header,
  .profile-header-title,
  .publish-header-title,
  .settings-header-title,
  .support-header-title {
    width: calc(100% + 40px);
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
  }
  
  .activity-header-title h1,
  .contact-header h1,
  .favorites-header-title h1,
  .help-header-title h1,
  .login-header h1,
  .reset-header h1,
  .profile-header-title h1,
  .publish-header-title h1,
  .settings-header-title h1,
  .support-header-title h1 {
    font-size: 24px;
  }
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .submit-button {
    padding: 14px;
    font-size: 16px;
  }
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
  .menu-options {
    width: 90%;
    max-width: 320px;
    padding: 20px;
  }
  
  .menu-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .menu-footer-item {
    padding: 12px 8px;
    font-size: 12px;
  }
}

/* Mobile Hamburger Improvements */
@media (max-width: 768px) {
  .menu-hamburger-indicator {
    top: 15px;
    left: 15px;
    width: 30px;
    height: 24px;
  }
  
  .hamburger-line {
    height: 2px;
  }
}

/* Mobile Footer Improvements */
@media (max-width: 768px) {
  .footer {
    position: static;
    padding: 20px 10px;
    margin-top: 40px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-links a {
    font-size: 14px;
    padding: 8px 0;
  }
}

/* Mobile Info Hub Improvements */
@media (max-width: 768px) {
  .info-hub {
    padding: 80px 15px 40px 15px;
    margin: 0;
  }
  
  .info-hub h1 {
    font-size: 28px;
  }
  
  .info-hub h2 {
    font-size: 22px;
  }
  
  .info-hub-image {
    width: 100%;
    height: auto;
    margin: 20px 0;
  }
}

/* Mobile Archive Results Improvements */
@media (max-width: 768px) {
  .archive-results-container {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 80px 10px 20px 10px;
    padding: 15px;
    border-radius: 8px;
  }
  
  .search-results-header h2 {
    font-size: 20px;
  }
  
  .close-search-btn {
    width: 35px;
    height: 35px;
  }
}

/* General Mobile Text Improvements */
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  p, li {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Mobile Button Improvements */
@media (max-width: 768px) {
  button {
    min-height: 44px; /* iOS touch target minimum */
    font-size: 16px;
  }
  
  .tab-button,
  .filter-button,
  .choice-button {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Responsive breakpoints for carousel */
@media (max-width: 1400px) {
  .search-container {
    top: 160px !important;
  }
  
  .knowledge-carousel-container {
    max-width: 1400px;
    padding: 0 30px;
    height: calc(100vh - 600px);
    top: 550px;
  }
  
  .knowledge-card {
    width: 520px;
    height: 300px;
  }

  .knowledge-carousel {
    height: calc(100% - 80px);
  }
}

@media (max-width: 1200px) {
  .search-container {
    top: 220px !important;
  }
  
  .knowledge-carousel-container {
    max-width: 100%;
    padding: 0 20px;
    height: calc(100vh - 480px);
    top: 430px;
  }
  
  .knowledge-card {
    width: 480px;
    height: 350px;
  }
  
  .knowledge-carousel {
    height: calc(100% - 80px);
  }
}

@media (max-width: 768px) {
  .search-container {
    width: 90%;
    top: 160px !important;
  }
  
  .knowledge-carousel-container {
    top: 380px;
    padding: 0 15px;
    height: calc(100vh - 420px);
  }
  
  .knowledge-card {
    width: 360px;
    height: 320px;
  }
  
  .knowledge-carousel {
    height: 450px; /* Reduced from 350px */
  }
  
  .carousel-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .carousel-navigation-container {
    bottom: 30px; /* Adjusted for mobile - closer to footer */
  }
}

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

/* CRITICAL: Fix for large screens with limited viewport height */
/* Makes carousel fit on screens like 1900x1000 without scrolling */
@media screen and (min-width: 1000px) and (max-height: 1100px) {
  .search-container {
    top: 260px !important;
  }
  
  .knowledge-carousel-container {
    top: 480px !important;
    height: calc(100vh - 520px) !important;
  }
  
  .knowledge-carousel {
    height: calc(100% - 80px) !important;
  }
  
  .knowledge-card {
    width: 550px !important;
    height: 380px !important;
  }
}