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

body {
  font-family: Arial, sans-serif;
  background-color: #f6f8fc;
  color: #333;
  line-height: 1.6;
  position: relative;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #263149;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #026181, #09bbf9);
  border-radius: 10px;
  border: 2px solid #263149;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #09bbf9, #026181);
}

/* NAVBAR */
.navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 65px;
  z-index: 1500;
  background-color: #fff;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding-left: 36px;
  padding-right: 36px;
  border-bottom: 1px solid #ddd;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  object-fit: contain;
  display: block;
}

.profile-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.profile-icon i {
  font-size: 24px;
  color: #ffffff;
}

.profile-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.user-section {
  height: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Container & trigger */
.user-name {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 180px;
  max-width: 180px;
}

.user-name span {
  font-size: 16px;
  margin-right: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}


.user-name .dropdown-btn {
  background: none;
  border: none;
  color: #026181;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.user-name .dropdown-btn:hover {
  color: #09BBF9;
}

/* Dropdown panel */
.user-name .dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  left: -60px;
  margin-top: 8px;
  background-color: #f5f8fa;
  border-radius: 10px;
  width: 260px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
  overflow: hidden;
}

/* Show on .show (toggle via JS or on click) */
.user-name .dropdown-content.show {
  display: block;
}

/* Header */
.profile-dropdown-header {
  display: flex;
  align-items: center;
  padding: 10px;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.profile-dropdown-header .profile-img {
  flex-shrink: 0;
  min-width: 40px;
  min-height: 40px;
}

.profile-name {
  font-size: 16px;
  font-weight: bold;
  color: #026181;
}

/* Action buttons */
.profile-dropdown-actions {
  display: flex;
  justify-content: space-between;
  padding: 10px;
}

.profile-dropdown-view-btn,
.profile-dropdown-verify-btn {
  display: inline-block;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1;
  border-radius: 20px;
  width: 48%;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-dropdown-view-btn {
  background-color: #fff;
  border: 1px solid #ccd6dd;
  color: #026181;
}

.profile-dropdown-view-btn:hover {
  background-color: #e1e8ed;
  color: #09BBF9;
}

.profile-dropdown-verify-btn {
  background-color: #026181;
  border: 1px solid #ccd6dd;
  color: #fff;
}

.profile-dropdown-verify-btn:hover {
  background-color: #09BBF9;
}

/* Divider */
.horizontal-line {
  border-top: 1px solid #e1e8ed;
  margin: 0 10px;
}

/* Menu items */
.profile-dropdown-item {
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #657786;
  border-bottom: 1px solid #e1e8ed;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.profile-dropdown-item:last-child {
  border-bottom: none;
}

.profile-dropdown-item:hover {
  background-color: #e1e8ed;
  color: #026181;
}

/* Subitems */
.profile-dropdown-subitem {
  padding-left: 10px;
  margin-top: 4px;
  font-size: 14px;
  color: #8899a6;
}

.profile-dropdown-subitem a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.profile-dropdown-subitem:hover,
.profile-dropdown-subitem a:hover {
  color: #026181;
}

/* Section headings */
.menu-bold {
  color: #657786;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
}

.menu-bold:hover {
  color: #026181;
}

.vertical-line {
  border-left: 1px solid #ddd;
  height: 100%;
  margin: 0 15px;
}

.nav-links {
  padding-left: 15px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  text-decoration: none;
  color: #026181;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
  /* white-space: nowrap; */
  transition: transform 0.2s ease;
}

.nav-links a i {
  font-size: 20px;
}

.nav-links a:hover {
  transform: translateY(-3px);
  color: #09bbf9;
}

.navbar .right-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar {
  display: flex;
  max-width: 400px;
  /* margin-right: 18px; */
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.search-bar input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  font-size: 14px;
  outline: none;
  color: #333;
}

.search-bar input::placeholder {
  color: #666;
}

.search-button {
  background-color: #f8f8f8;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #ddd;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background-color: #e0e0e0;
}

.publish-btn {
  background-color: #026181;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  gap: 4px;
}

.publish-btn:hover {
  background-color: #014a6e;
}

/* PROFILE HEADER */
.profile-upper-wrapper {
  margin: 30px 36px 140px 36px;
}

.cover-picture {
  /* border: 2px solid red; */
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  position: relative;
  background-color: #026181;
  height: 37vh;
  /* Restored explicit height for consistency */
  overflow: hidden;
  /* Prevents image overflow */
  width: 100%;
  /* Ensures container takes full width of parent */
}

.cover-photo-img {
  width: 100%;
  /* Fills container width */
  height: 100%;
  /* Fills container height */
  object-fit: cover;
  /* Scales image to cover container while maintaining aspect ratio */
  object-position: center;
  /* Centers the image */
  display: block;
  /* Removes any default inline spacing */
  border-top-left-radius: 10px;
  /* Matches container's border-radius */
  border-top-right-radius: 10px;
}

.edit-cover-box {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #ffffff;
  color: #026181;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  transform-origin: center center;
  backface-visibility: hidden;
}

.edit-cover-box i {
  font-size: 14px;
  transform-origin: center center;
}

.edit-cover-box:hover {
  background-color: #c1ddf9;
  transform: scale(1.05);
}

.profile-header {
  height: 37vh;
  position: relative;
  /* position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%); */
  text-align: center;
  /* margin-top: 205px; */
}

/* .profile-pic-wrapper {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  margin: 0 auto 15px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic {
  width: 96%;
  height: 96%;
  object-fit: cover;
  display: block;
  border-radius: 50%; 
} */

.profile-pic-wrapper {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  margin: 0 auto 15px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  /* overflow: hidden; */
  border: 5px solid white;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.edit-profile-pic-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background-color: #ffffff;
  border: 1px solid #c1ddf9;
  border-radius: 100%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #026181;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, transform 0.2s ease;
  transform: translateZ(0);
  transform-origin: center center;
  backface-visibility: hidden;
}

.edit-profile-pic-btn i {
  font-size: 14px;
  transform-origin: center center;
}

.edit-profile-pic-btn:hover {
  background-color: #c1ddf9;
  transform: scale(1.05);
}

.profile-header .profile-name {
  margin-top: 80px;
  font-size: 32px;
  font-weight: 600;
  color: #026181;
}

.role-highlight {
  background-color: #026181;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 16px;
  display: inline-block;
}

.profile-role {
  font-size: 16px;
  color: #666;
}

.edit-btns-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 50px;
}

.left-buttons {
  display: flex;
  gap: 20px;
}

.left-buttons>div:not(.linkup-container),
.verify-profile,
.pitch-deck-btn,
.left-buttons button,
.left-buttons a {
  /* background-color: #026181; */
  /* background: linear-gradient(to bottom, #043A82 0%, #0E80B4 37%, #199DE4 100%);    */
  /* background: linear-gradient(to bottom, #199DE4 0%, #0E80B4 37%, #043A82 100%); */
  /* background: linear-gradient(to bottom, #199DE4 0%, #1189C3 37%, #0E81B5 100%); */
  /* background: #60ADF5;
  border: 1px solid #439ADE;
  color: #ffffff; */
  /* background: #0a66c2; */
  background: #F6F7F9;
  /* border: 1px solid #E2E6EA; */
  border: 1px solid #026181;
  color: #026181;
  /* border-radius: 7px; */
  border-radius: 5px;
  /* border-radius: 25px; */
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.left-buttons a:hover {
  background: #e4f2fd;
}

.left-buttons .edit-profile {
  /* background: #60adf4; */
  border: 1px solid #026181;
  /* color: #E9EDF2; */
  color: #026181;
}

.left-buttons .edit-profile:hover {
  background: #e4f2fd;
}

.left-buttons .linkup-btn:hover,
.message-btn:hover {
  background: #e4f2fd;
}

.pitch-deck-btn:hover,
.request-pitch-btn:hover,
.verify-profile:hover {
  background: #e4f2fd;
}

.request-pitch-btn {
  border: 1px solid #3698e0;
  color: #3698e0;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 5px;
}

/* STORY */
.profile-story {
  background: white;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

/* Header wrapper for title + edit button */
.profile-story .section-header-with-edit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Section title style */
.profile-story .section-header-with-edit .section-title {
  font-size: 24px;
  color: #026181;
}

/* Shared styles for edit buttons */
.section-header-with-edit .edit-button {
  background-color: #ffffff;
  border: 1px solid #c1ddf9;
  border-radius: 100%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.section-header-with-edit .edit-button i {
  color: #026181;
  font-size: 14px;
}

.section-header-with-edit .edit-button:hover {
  background-color: #c1ddf9;
  transform: scale(1.05);
}

.profile-story .profile-description {
  font-size: 15px;
  color: #444;
}

/* GRID */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.milestones {
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
}

.view-all {
  font-size: 14px;
  color: #026181;
  text-decoration: none;
}


.milestone-section {
  margin-bottom: 20px;
}

.milestone-title {
  font-size: 18px;
  color: #026181;
  margin-bottom: 12px;
  font-weight: 600;
}

.milestone-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.milestone-item {
  background: #F6F8FC;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #d3e2f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}

.milestone-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.milestone-item h4 {
  font-size: 16px;
  color: #026181;
  margin: 0 0 8px;
  font-weight: 600;
}

.milestone-item p {
  font-size: 14px;
  color: #444;
  margin: 0;
  line-height: 1.4;
}


/* EXPERIENCE POPUP */

/* Overlay */
.experience-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1600;
}

.experience-overlay[hidden] {
  display: none;
}

/* Modal */
.experience-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1700;
}

.experience-modal[hidden] {
  display: none;
}

.experience-box {
  width: 50vw;
  max-height: 78vh;
  /* max-height: 99vh; */
  background: white;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  overflow: hidden;
  display: flex;
  /* make it a flex column */
  flex-direction: column;
}

.experience-header {
  background: linear-gradient(to bottom, #199DE4 0%, #1189C3 37%, #0E81B5 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.experience-title {
  padding: 10px;
  padding-left: 18px;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.2px;
}

.experience-close-btn {
  padding: 10px;
  margin-right: 18px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 0;
}

.experience-close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}


/* ACTUAL MILESTONE */

.actual-milestone-part {
  margin-top: 40px;
  background: white;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.actual-milestone-part .section-header {
  /* border: 2px solid red; */
  /* padding: 24px 24px 0; */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.actual-milestone-part .section-header i {
  color: #026181;
  font-size: 20px;
}

/* ========= FUND SEEKING SECTION ========= */
.fund-seeking-section {
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.fund-seeking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fund-seeking-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #F6F8FC;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #d3e2f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fund-seeking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fund-seeking-card-full {
  grid-column: 1 / -1;
}

.fund-seeking-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #026181, #03a9c6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fund-seeking-icon i {
  color: white;
  font-size: 18px;
}

.fund-seeking-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fund-seeking-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fund-seeking-value {
  font-size: 18px;
  color: #026181;
  font-weight: 700;
}

.fund-seeking-detail-text {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin: 0;
}

.fund-seeking-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
}

.fund-seeking-empty p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

@media (max-width: 640px) {
  .fund-seeking-grid {
    grid-template-columns: 1fr;
  }

  .fund-seeking-value {
    font-size: 16px;
  }
}

/* ========= END FUND SEEKING SECTION ========= */

.milestone-section {
  margin-bottom: 20px;
}

#actual-milestones-display .milestone-title {
  font-size: 18px;
  color: #026181;
  margin-bottom: 12px;
  font-weight: 600;
}

#actual-milestones-display .milestone-item {
  display: flex;
  /* border: 2px solid red; */
  gap: 16px;
  margin-bottom: 24px;
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: none;
}

#actual-milestones-display .milestone-item:hover {
  transform: translateY(-3px);
  box-shadow: none;
}


#actual-milestones-display .milestone-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#actual-milestones-display .milestone-dot {
  width: 16px;
  height: 16px;
  background: #026181;
  border-radius: 50%;
}

#actual-milestones-display .milestone-line {
  width: 2px;
  height: 64px;
  background: #d1d5db;
  margin-top: 8px;
}

#actual-milestones-display .milestone-item:last-child .milestone-line {
  display: none;
}

#actual-milestones-display .milestone-content {
  flex: 1;
}

#actual-milestones-display .milestone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

#actual-milestones-display .milestone-header h4 {
  color: #111827;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#actual-milestones-display .milestone-date {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#experienceOpenIcon {
  color: #026281;
}

#educationOpenIcon {
  color: #026281;
}



/* VIDEO SECTION */
.profile-main-video-section h2 {
  font-size: 24px;
  color: #026181;
  margin-bottom: 10px;
}

.profile-main-video-details {
  display: flex;
  justify-content: space-between;
  margin-top: -9px;
}

.profile-main-video-details h2 {
  font-weight: bold;
}

.profile-video-section-container {
  position: relative;
  width: 100%;
  height: 180px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.profile-video-section-container video,
.profile-video-section-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.profile-video-thumbnail {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-video-play-button {
  position: absolute;
  background-color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-video-play-button::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #026181;
}

.profile-video-section-container video {
  display: none;
}

.uploaded-list {
  list-style: none;
  padding: 0;
}

.uploaded-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f4f4;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 5px;
}

.delete-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
}

.uploaded-list li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  max-width: 100%;
}

.uploaded-list li span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.uploaded-list li img {
  flex-shrink: 0;
}

.uploaded-list li button {
  margin-left: 10px;
}

#gallery-warning {
  margin-top: 5px;
  font-size: 14px;
}

/* Position the delete button at top-right corner */
.delete-photo-form {
  position: absolute;
  top: 6px;
  right: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.delete-photo-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 18px;
  line-height: 1;
  padding: 2px 7px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.delete-photo-btn:hover {
  background: rgba(255, 0, 0, 0.8);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.gallery-item {
  position: relative;
}

/* Delete button within carousel slide */
.delete-photo-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 11;
}

.delete-photo-btn {
  background: rgba(220, 20, 60, 0.7);
  color: white;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}

.delete-photo-btn:hover {
  background: rgba(255, 0, 0, 0.9);
}

.quick-facts-edits {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quick-facts-edits h3 {
  font-weight: bold;
}

.quick-facts {
  background: #f3f6f9;
  border-radius: 10px;
}

.quick-facts h3 {
  font-size: 23px;
  margin-bottom: 16px;
  color: #026181;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fact {
  background: #026181;
  color: white;
  padding: 12px;
  border-radius: 6px;
}

.fact span {
  font-size: 12px;
  opacity: 0.8;
}

.fact strong {
  font-size: 14px;
}

.fact-edit-form {
  margin-bottom: 20px;
}

.modal-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

button.danger {
  background-color: crimson;
  color: white;
}

.delete-btn {
  padding: 10px 22px;
  border: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

.facts-forms-section {
  position: relative;
}

.contribution-forms-section {
  position: relative;
  margin-bottom: 20px;
}

.contribution-forms-section .delete-btn {
  position: absolute;
  bottom: 0px;
  left: 0px;
}

.investor-contribution {
  margin-top: 40px;
  background: white;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.investor-contribution h3 {
  color: #026181;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: left;
}

/* Contributions view more begin */
.hidden {
  display: none;
}

.view-more-contributions {
  display: flex;
  align-items: center;
  justify-content: center;
  /* width: 48px;
  height: 48px; */
  margin: 24px auto;
  margin-bottom: 0;
  /* background-color: #F6F8FC; */
  color: #026181;
  border: none;
  /* border-radius: 50%; */
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.view-more-contributions:hover {
  /* background-color: #2563eb; */
  transform: scale(1.05);
}

/* Contributions view more end */
.facts-forms-section .delete-btn {
  position: absolute;
  bottom: 0px;
  left: 0px;
}

.section-header-with-edit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.section-header-with-edit h3 {
  margin: 0;
  font-size: 24px;
  color: #026181;
}

.edit-button {
  background-color: #ffffff;
  border: 1px solid #c1ddf9;
  border-radius: 100%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.edit-button i {
  color: #026181;
  font-size: 14px;
}

.edit-button:hover {
  background-color: #c1ddf9;
  transform: scale(1.05);
}

.contribution-cards {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contribution-card {
  background: #f6f8fc;
  flex: 1;
  min-width: 250px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #d3e2f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease;
}

.contribution-card:hover {
  transform: translateY(-5px);
}

.contribution-card h4 {
  color: #026181;
  font-size: 18px;
  margin-bottom: 10px;
}

.contribution-card p {
  color: #333;
  font-size: 14px;
}

/* Back to Top */
.backtotop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(#026181, #09bbf9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  display: none;
  z-index: 99;
}

.backtotop.show {
  display: flex;
}

.svgIcon {
  width: 14px;
  height: 14px;
}

.svgIcon path {
  fill: white;
}

/* Activity Post Container */
.recent-activity {
  background: white;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  /* max-width: 70vw; */
  /* max-width: 956.2px; */
  max-width: 956px;
  margin: 40px auto;
}

.recent-activity h3 {
  color: #026181;
  font-size: 24px;
  margin-bottom: 20px;
  text-align: left;
}

.activity-posts {
  /* Using Tailwind Grid (grid-cols-1 lg:grid-cols-2) for masonry layout now */
  /* Fallback gap */
  gap: 24px;
}

.activity-post {
  background: #ffffff;
  border: 1px solid #e8f0f8;
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  color: #333;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 430px;
  max-width: 100%;
  margin-bottom: 24px;
}

.activity-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.activity-post:has(.post-more-menu.active) {
  z-index: 99999;
}

/* ── Media section (top of card) ── */
.activity-post-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

/* Default (Square 1:1) */
.activity-post-media.template-square {
  width: 430px;
  height: 402px; /* 390 content + 12 bottom padding */
  margin: 0 auto;
  aspect-ratio: 430 / 402;
}

/* Portrait 4:5 (390x487.5) */
.activity-post-media.template-portrait {
  background-color: #ffffff;
  width: 430px;
  height: 499.5px; /* 487.5 content + 12 bottom padding */
  margin: 0 auto;
  aspect-ratio: 430 / 499.5;
}

/* Tall / Story 9:16 (390x693.3) */
.activity-post-media.template-tall {
  width: 430px;
  height: 705.3px; /* 693.3 content + 12 bottom padding */
  margin: 0 auto;
  aspect-ratio: 430 / 705.3;
}

.activity-post-media img.carousel-item,
.activity-post-media video.carousel-item {
  /* Must match flex basis — 100% resolves against the full track width and drifts offsetLeft */
  width: var(--carousel-slide-px, 100%) !important;
  height: 100% !important;
  max-width: var(--carousel-slide-px, 100%) !important;
  object-fit: cover;
  display: block;
  transform: none !important;
  outline: none !important;
}



/* Framed padding around media */
.activity-post-media.carousel-container {
  padding: 0 20px 12px 20px;
  overflow: hidden;
}

.activity-post-media .carousel-item,
.activity-post-media img.carousel-item,
.activity-post-media video.carousel-item {
  border-radius: 0; /* border-radius handled by .carousel-view overflow clip */
}

/* Carousel view provides the clipping boundary */
.activity-post-media .carousel-view {
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  position: relative;
}


/* Feed: programmatic scroll inside a hard clip (no transform bleed) */
.activity-post-media:not(.pdm-carousel-embedded) .carousel-view {
  overflow-x: auto;
  overflow-y: hidden;
  contain: paint;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  clip-path: inset(0 1px 0 1px round 20px);
}

.activity-post-media:not(.pdm-carousel-embedded) .carousel-view::-webkit-scrollbar {
  display: none;
}

.activity-post-media .carousel-container {
  width: 100%;
  height: 100%;
  background: #F0F0F0 !important;
}

/* .activity-post-media IS the carousel-container — no child rule needed */
/* Track and items fill the aspect-ratio-driven height */

.activity-post-media .carousel-track {
  display: flex;
  width: auto;
  min-width: 100%;
  height: 100%;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  left: 0;
}

.activity-post-media:not(.pdm-carousel-embedded) .carousel-track {
  transform: none !important;
  transition: none !important;
  will-change: auto;
}

.activity-post-media .carousel-item {
  flex: 0 0 var(--carousel-slide-px, 100%) !important;
  width: var(--carousel-slide-px, 100%) !important;
  min-width: var(--carousel-slide-px, 100%) !important;
  max-width: var(--carousel-slide-px, 100%) !important;
  flex-shrink: 0 !important;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  box-sizing: border-box !important;
  overflow: hidden;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
  /* Override global GPU layer hacks that cause edge bleed during transforms */
  transform: none !important;
  outline: none !important;
  backface-visibility: visible !important;
}

/* Neutralize global .carousel-item rules on feed slides (track width, GPU layers) */
.activity-post-media .carousel-track {
  width: auto !important;
}

.activity-post-media .carousel-track > .carousel-item {
  display: block !important;
  transform: none !important;
  outline: none !important;
  backface-visibility: visible !important;
}

.activity-post-media video.carousel-item {
  object-fit: contain;
  background: #000;
}



/* ── Body section (below media) ── */
.activity-post-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
}

/* Legacy alias — kept for any stray references */
.activity-post-container {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.activity-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid #f0f4f8;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.activity-post-content {
  font-size: 16px;
  color: #1c2526;
  line-height: 1.5;
  margin-bottom: 8px;
  padding: 8px 0;
  flex-grow: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word; /* Crucial for breaking strings of 'ggggg...' */
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  max-height: none;
  transition: max-height 0.3s ease;
  padding-bottom: 10px;
  box-sizing: border-box;
  scrollbar-width: 0;
  -ms-overflow-style: none;
}

/* Hide scrollbar in WebKit browsers */
.activity-post-content::-webkit-scrollbar {
  width: 0;
}

/* Expanded state */
.activity-post-content.expanded {
  max-height: none;
  margin-bottom: 20px;
  overflow-y: visible;
  padding-right: 0px;
}

.view-more-btn-container {
  position: relative;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-more-btn {
  color: #026181;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
  display: none;
  text-decoration: none;
}

.view-more-btn.show {
  display: inline;
}

.activity-post-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #09bbf9, #026181);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-post-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}



.activity-post-author-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
  align-items: flex-start;
}

.activity-post-author {
  font-size: 15px;
  font-weight: 600;
  color: #026181;
  margin-top: 1.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.activity-post-author .author-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}

.activity-post-author .author-link:hover {
  text-decoration: underline;
}

.activity-post-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0px;
  width: 100%;
}

.activity-post-time {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  font-weight: 500;
}

.activity-post-more {
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-post-more:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Action bar buttons (Comment, Link-Up) */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.post-actions-row .action-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: none;
  width: 85px;
  gap: 2px;
  font-size: 15px;
  padding: 8px 0;
  overflow: visible;
}

.post-actions-row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
}

.post-actions-row>* {
  flex: none;
}

.action-btn:hover {
  color: #026181;
}

.action-btn .comment-count {
  margin-left: 6px;
}

/* Vote buttons (Hit / Miss) */
.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.2s ease, transform 0.1s ease;
  border: none;
  background: none;
  padding: 4px 8px;
  border-radius: 6px;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}

.post-actions-row .vote-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: none;
  width: 85px;
  gap: 2px;
  font-size: 15px;
  padding: 8px 0;
  overflow: visible;
}

/* Icon container — stacked hollow + filled */
.vote-btn .vote-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  width: 1em;
  height: 1em;
}

.post-actions-row .vote-btn .vote-icon {
  font-size: 15px;
}

.vote-btn .vote-hollow,
.vote-btn .vote-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
}



.vote-btn .vote-hollow {
  color: inherit;
}

/* Filled triangle — hidden by default via clip-path */
.vote-btn .vote-fill {
  color: transparent;
  transition: clip-path 0.5s ease, color 0.2s ease;
}

/* Hit (▲): fills bottom → top */
.vote-btn.hit-btn .vote-fill {
  clip-path: inset(100% 0 0 0);
}

/* Miss (▼): fills top → bottom */
.vote-btn.miss-btn .vote-fill {
  clip-path: inset(0 0 100% 0);
}

/* Pressing state — fill animates in */
.vote-btn.hit-btn.pressing .vote-fill {
  clip-path: inset(0);
  color: #026181;
}

.vote-btn.miss-btn.pressing .vote-fill {
  clip-path: inset(0);
  color: #D32F2F;
}

/* Count styles */
.vote-btn .hit-count,
.vote-btn .miss-count {
  font-size: 14px;
  min-width: 12px;
  margin-left: 2px;
}

.post-actions-row .vote-btn .hit-count,
.post-actions-row .vote-btn .miss-count {
  font-size: 15px;
}

.comment-btn .comment-count {
  margin-left: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.post-actions-row .comment-btn .comment-count {
  margin-left: 1px;
  font-size: 15px;
}

/* Hover states */
.vote-btn.hit-btn:hover {
  color: #026181;
}

.vote-btn.miss-btn:hover {
  color: #D32F2F;
}

.vote-btn:hover .vote-icon {
  transform: scale(1.15);
}

/* Active press scale */
.vote-btn:active {
  transform: scale(0.95);
}

/* Voted states — fill fully revealed, colored */
.vote-btn.hit-btn.voted {
  color: #026181;
}

.vote-btn.hit-btn.voted .vote-fill {
  clip-path: inset(0);
  color: #026181;
}

.vote-btn.miss-btn.voted {
  color: #D32F2F;
}

.vote-btn.miss-btn.voted .vote-fill {
  clip-path: inset(0);
  color: #D32F2F;
}


.activity-post-time::before {
  content: none;
}

.activity-post-more {
  color: #9ca3af;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
  line-height: 1;
  margin-left: 0;
}

.activity-post-more::after {
  content: "⋯";
  margin-bottom: 2px;
  margin-left: 1px;
}



.activity-post-content a {
  color: #1da1f2;
  text-decoration: none;
}

.activity-post-content a:hover {
  text-decoration: underline;
}

.category {
  background-color: #026181;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  margin-left: 10px;
  font-size: 0.8em;
  display: inline-block;
}

.hashtag {
  background-color: #e0e0e0;
  color: #333;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 5px;
  font-size: 0.9em;
  display: inline-block;
}

.activity-post-images {
  position: relative;
  display: flex;
  gap: 8px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
}

/* ACTIVITY IMAGE COVER AND CONTAIN */
.activity-post-images img {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.separator-line {
  width: 100%;
  height: 1px;
  margin-top: 15px;
  background-color: #e1e8ed;
}

.comment-section {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #fff;
  border-radius: 20px;
}

.comment-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  outline: none;
  background-color: #f9f9f9;
  color: #666;
}

.post-button {
  padding: 8px 20px;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  background-color: #026181;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}

.post-button:hover {
  background-color: #166ba0;
}

.activity-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e1e8ed;
  font-size: 12px;
  color: #657786;
}

.activity-post-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.activity-post-actions a {
  color: #657786;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  padding: 6px 12px;
  height: 32px;
  text-align: center;
  box-sizing: border-box;
}

.activity-post-actions a:hover {
  color: #1da1f2;
}

.activity-post-actions .comment-action .fas.fa-comment {
  color: #657786;
  font-size: 20px;
  transition: color 0.3s;
}

.activity-post-actions .comment-action:hover .fas.fa-comment {
  color: #1da1f2;
}

.connect-action {
  color: #1e90ff;
  border: 1px solid #1e90ff;
  padding: 6px 12px;
  height: 32px;
  width: auto;
  text-align: center;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  gap: 4px;
}

.connect-action:hover {
  background-color: #1e90ff;
  color: #fff;
}

.connect-action .fas.fa-link {
  color: #1e90ff;
  font-size: 20px;
  transition: color 0.3s;
}

.connect-action:hover .fas.fa-link {
  color: #fff;
}

.like input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.like {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.like span {
  margin-left: 5px;
  font-size: 14px;
  color: #657786;
}

.like span:hover {
  color: #1da1f2;
}

.like svg {
  position: relative;
  top: 0;
  left: 0;
  height: 30px;
  width: 30px;
  transition: all 0.3s;
  fill: #666;
}

.like svg:hover {
  transform: scale(1.1) rotate(-10deg);
}

.like input:checked~svg {
  fill: #026181;
}

.like-btn.liked .fa-star {
  color: gold;
}

.like-btn.liked .fa-star.fas {
  color: gold !important;
}

.like-count {
  font-size: 0.875rem;
  margin-left: 4px;
}

.like-comment {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.2s ease, transform 0.1s ease;
  border: none;
  background: none;
  padding: 2px 4px;
  border-radius: 6px;
  user-select: none;
  -webkit-user-select: none;
}

.like-comment .vote-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  width: 1em;
  height: 1em;
}

.like-comment .vote-hollow,
.like-comment .vote-fill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateZ(0);
}

.like-comment .vote-hollow {
  color: inherit;
}

.like-comment .vote-fill {
  color: transparent;
  transition: clip-path 0.5s ease, color 0.2s ease;
  clip-path: inset(100% 0 0 0);
}

.like-comment.hit-btn.voted {
  color: #026181;
}

.like-comment.hit-btn.voted .vote-fill {
  clip-path: inset(0);
  color: #026181;
}

.like-comment:hover {
  color: #026181;
}

.like-comment:hover .vote-icon {
  transform: scale(1.15);
}

.like-comment .like-count {
  font-size: 14px;
  min-width: 12px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author {
  font-size: 12px;
  font-weight: 600;
  color: #026181;
}

.comment-content {
  font-size: 13px;
  line-height: 1.3;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.comment-content>span {
  flex-grow: 1;
}

.reply::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e1e8ed;
}

.reply-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.reply-container {
  margin-left: 40px;
  margin-top: 6px;
  display: flex;
  gap: 8px;
  width: calc(100% - 40px);
}

.reply-input {
  padding: 6px;
  border: 1px solid #e1e8ed;
  border-radius: 4px;
  font-size: 12px;
  flex: 1;
  box-sizing: border-box;
  height: 30px;
}

.reply-submit,
.reply-cancel {
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  border: none;
  transition: box-shadow 0.2s;
  height: 30px;
}

.reply-submit {
  background-color: #026181;
  color: white;
}

.reply-submit:hover {
  background-color: #004f6b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reply-cancel {
  background-color: #e0e0e0;
  color: #333;
}

.reply-cancel:hover {
  background-color: #d0d0d0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reply-box {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.75rem 0.75rem 0.5rem;
  overflow-x: hidden;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 0;
}

/* Keep the inline reply composer clear of the thread connector line. */
.reply-box.comment-reply {
  padding-left: 2.75rem;
}

.reply-input-container {
  position: relative;
  box-sizing: border-box;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
  margin-left: 0 !important;
}

.reply-to-label {
  font-size: 12px;
  line-height: 1.1;
  color: #6b7280;
  padding-left: 2px;
}

.reply-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: visible;
  width: 100%;
  flex-grow: 1;
  min-width: 0;
}



/* Reply Input styling */
.reply-input {
  flex-grow: 1;
  min-width: 0;
  width: 100%;
  padding: 8px 12px 9px;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.35;
  font-family: inherit;
  background: white;
  color: #1f2937;
  overflow: visible;
  text-decoration-skip-ink: none;
}

.reply-input:focus {
  outline: none;
  border-color: #026181;
  box-shadow: 0 0 0 2px rgba(2, 97, 129, 0.1);
}

/* Send button styling */
.submit-reply-btn {
  background: #026181;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 13px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.submit-reply-btn i {
  font-size: 13px;
  line-height: 1;
  display: block;
}

.submit-reply-btn:hover {
  background: #014a5b;
}

.submit-reply-btn:active {
  transform: scale(0.95);
}

/* Hide any accidental overflow */
.reply-box {
  overflow: visible;
  padding-right: 0 !important;
  width: 100%;
}

/* Base styling for comments */
.flex.mb-3 {
  align-items: flex-start;
}

/* Base styling for comments */
.flex.mb-3 {
  align-items: flex-start;
  position: relative;
  min-height: 60px;
}

/* Remove old line-style reply markers. */
.comment-item.comment-reply {
  border-left: none;
  padding-left: 0;
}

/* First-level reply: show Instagram-like arrow marker. */
.comment-item.comment-reply[data-comment-depth="1"] {
  padding-left: 2rem;
}

/* Avatar (profile picture) should be above connector */
.comment-item .w-8.h-8 {
  position: relative;
  z-index: 1;
}

.comment-reply-connector {
  position: absolute;
  left: 0;
  top: -6em;
  left: 0.4rem;
  width: 2.35rem;
  height: 7rem;
  pointer-events: none;
  z-index: 0;
  display: block;
  color: #8ea3a8;
}

.comment-reply-connector-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
  opacity: 1;
  color: inherit;
}

.reply-thread-toggle {
  margin: -0.25rem 0 0.55rem 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8ea3a8;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.reply-thread-toggle-connector {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: auto;
  cursor: pointer;
  z-index: 0;
  display: block;
  color: inherit;
}

.comment-item.comment-reply:hover .comment-reply-connector,
.comment-item.comment-reply:hover .comment-reply-connector-svg,
.reply-thread-toggle:hover,
.reply-thread-toggle:hover .reply-thread-toggle-connector,
.reply-thread-toggle:hover .comment-reply-connector-svg,
.reply-thread-toggle-connector:hover,
.reply-thread-toggle-connector:hover .comment-reply-connector-svg {
  color: #026181;
}

.reply-thread-toggle:hover {
  color: #026181;
}

.reply-thread-load-more {
  margin-top: -0.18rem;
}

.preview-comments-list .preview-load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 0.5rem);
  margin: 0.25rem 0.25rem 0.75rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(2, 97, 129, 0.12);
  border-radius: 12px;
  background: #f6fafb;
  color: #0a5f7a;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.preview-comments-list .preview-load-more-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(2, 97, 129, 0.18);
  background: #f2f8f9;
  color: #084f65;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.preview-comments-list .preview-load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.preview-comments-list .preview-load-more-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(2, 97, 129, 0.14), 0 2px 8px rgba(15, 23, 42, 0.03);
}

/* Deeper replies: no line and no arrow marker. */
.comment-item.comment-reply[data-comment-depth]:not([data-comment-depth="1"])::before {
  content: none;
}

.comment-item.comment-reply[data-comment-depth]:not([data-comment-depth="1"])::after {
  content: none;
}

/* Adjust indentation based on depth */
[data-comment-depth] {
  --comment-depth: attr(data-comment-depth);
  margin-left: calc(20px * var(--comment-depth));
}

/* Style the comment section */
/* .activity-post-right-section { */
/* position: relative; */
/* overflow: hidden; */
/* height: 512px; */
/* Your specified height - crucial for absolute positioning */
/* Keeps the content within the bounds, hides the comment section when transformed */
/* } */

.activity-post-comments {
  position: relative;
  width: 100%;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.activity-post-comments.active {
  max-height: 480px;
  padding: 10px 18px;
}

.activity-post-comments .text-sm {
  word-break: break-all;
  /* Break long words at any character */
  overflow-wrap: break-word;
  /* Break words only if necessary (more natural) */
  max-width: 100%;
  /* Ensure it doesn’t exceed the parent container */
}

/* Optional: Ensure the parent container doesn’t overflow */
.activity-post-comments .bg-gray-100 {
  max-width: 100%;
  overflow-x: hidden;
  /* Hide any horizontal overflow */
}

/* Style the comments list */
.comments-list {
  width: 100%;
  flex-grow: 1;
  overflow-y: auto;
  padding: 5px 0;
  max-height: 300px;
}

/* ===== Preview Comments Section (always visible, read-only) ===== */
.activity-post-content-wrapper {
  padding: 14px 18px 6px;
  overflow: hidden;
}

.activity-post-content-wrapper::-webkit-scrollbar {
  display: none;
}



.post-actions-row {
  position: relative;
  flex-shrink: 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
  border-top: 1px solid #f0f4f8;
  padding: 2px 0;
}

.activity-post-comments::-webkit-scrollbar {
  width: 4px;
}

.comments-list::-webkit-scrollbar-thumb,
.activity-post-comments::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 2px;
}

.comments-list::-webkit-scrollbar-track,
.activity-post-comments::-webkit-scrollbar-track {
  background: transparent;
}

.comments-list .like-comment {
  transition: color 0.12s linear;
  transform: none;
}

.comments-list .like-comment:active {
  transform: none;
}

.comments-list .like-comment .vote-icon,
.comments-list .like-comment:hover .vote-icon {
  transform: none;
  transition: none;
}

.comments-list .like-comment .vote-fill {
  transition: clip-path 0.2s ease, color 0.15s ease;
}

.comments-list .like-comment .vote-hollow,
.comments-list .like-comment .vote-fill {
  transform: none;
  backface-visibility: visible;
}

.comments-list .comment-item,
.comments-list .comment-item .w-8.h-8,
.comments-list .comment-item .w-8.h-8 img,
.comments-list .reply-thread-toggle {
  transform: none;
  transition: none;
  will-change: auto;
  backface-visibility: visible;
}

.comments-list {
  overflow-anchor: none;
  scroll-behavior: auto;
  contain: layout paint;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.comments-list .comment-reply-connector,
.comments-list .reply-thread-toggle-connector {
  transition: none;
  will-change: auto;
  backface-visibility: visible;
}

/* Prevent SVG from being interactive, let clicks pass to button */
.comment-reply-connector-svg {
  pointer-events: none;
}

.reply-thread-toggle-connector svg {
  pointer-events: none;
}

/* Style the input container - this MUST remain visible */
.comment-input-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  /* Space above the input field */
  flex-shrink: 0;
  /* CRUCIAL: Prevents this container from shrinking, ensuring it always stays visible at the bottom */
  padding-top: 10px;
  /* Add some space above the input field itself */
  border-top: 1px solid #eee;
  /* Visual separator */
}

.comment-input {
  flex-grow: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 8px 9px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  line-height: 1.35;
  overflow: visible;
  text-decoration-skip-ink: none;
}

.mention-input-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.mention-input-overlay {
  position: absolute;
  inset: 0;
  left: 1px;
  right: 1px;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.mention-overlay-content {
  display: block;
  min-width: 100%;
  width: max-content;
  white-space: pre;
  color: #1f2937;
  box-sizing: border-box;
  transform: translateX(0);
}

.mention-overlay-content .mention-token {
  color: #026181;
  font-weight: 500;
}

.mention-overlay-content .mention-selected-range {
  background: rgba(2, 97, 129, 0.75);
  color: #ffffff;
}

.mention-overlay-content .mention-selected-range .mention-token {
  color: #ffffff;
}

.mention-overlay-content .mention-trailing-pad {
  display: inline-block;
  width: 12px;
}

.comment-input.mention-input-layer,
.reply-input.mention-input-layer {
  position: relative;
  z-index: 2;
}

.comment-input.mention-rich,
.reply-input.mention-rich {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  caret-color: #1f2937;
}

.comment-input.mention-input-layer::selection,
.reply-input.mention-input-layer::selection {
  color: transparent;
  background: transparent;
}

.comment-submit {
  padding: 8px 16px;
  background-color: #026181;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.comment-submit:hover {
  background-color: #034e6e;
}

.comment-input-container,
.reply-input-container {
  position: relative;
}

.mention-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: calc(100% + 6px);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 40;
  max-height: 180px;
  overflow-y: auto;
}

.mention-suggestion-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #111827;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mention-suggestion-item:hover {
  background: #f3f4f6;
}

.mention-suggestion-avatar {
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}

.mention-suggestion-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.mention-suggestion-name {
  font-size: 13px;
  color: #111827;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-suggestion-slug {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-link-primary {
  color: #026181;
}

.mention-link-primary:hover {
  color: #014a5b;
}

.comment-author-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.comment-author-link:hover {
  text-decoration: underline;
}

.comments-list .comment {
  padding: 5px 0;
  border-bottom: 1px solid #e5e7eb;
}

/* Firefox */
.comments-list {
  /* scrollbar-width: none; */
  -ms-overflow-style: none;
  /* IE and Edge */
}

/* WebKit (Chrome, Safari) */
.commentslist::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.comments-list .w-8.h-8 {
  position: relative;
  z-index: 2;
}

#comment-options-modal.active {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 99999 !important;
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
  align-items: center !important;
  justify-content: center !important;
}

.comment-item {
  position: relative;
}

.comment-specific-options {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 6;
}

.comment-item:hover .comment-specific-options {
  display: block;
  /* show when parent is hovered */
}

.close-btn {
  position: absolute;
  top: -1px;
  right: 50%;
  background: none;
  border: none;
  font-size: 17px;
  color: #026181;
  /* Consider matching your theme's blue/primary color */
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 11;
}

.close-btn:hover {
  color: #026181;
}



/* Adjust .post-more-menu position */
.post-more-menu {
  position: absolute;
  top: 50px;
  right: 10px;
  display: none;
  background: white;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  min-width: 160px;
}

.post-more-menu.active {
  display: block;
}

.more-menu-content {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.more-menu-item {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9em;
  color: #333;
  padding: 10px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.more-menu-item:hover {
  background-color: #F6F8FC;
}

.activity-post-more {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-more {
  display: block;
  margin: 16px auto;
  padding: 10px 24px;
  background-color: #026181;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.25s;
}

.view-more:hover {
  background-color: #004f6b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.load-more-top {
  display: block;
  margin: 16px auto;
  padding: 10px 24px;
  background-color: #026181;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.25s;
}

.load-more-top:hover {
  background-color: #004f6b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.load-more-top:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.show-more-comments {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #1da1f2;
  text-decoration: none;
  text-align: right;
  cursor: pointer;
}

.show-more-comments:hover {
  text-decoration: underline;
}

/* Lightbox Styles */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  color: white;
  font-size: 14px;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
}

.lightbox-close {
  top: -20px;
  right: -20px;
}

.lightbox-prev {
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  /* border: 2px solid red; */
  min-height: 600px;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
  height: 100%;
}

.lightbox-modal {
  /* border: 2px solid red; */
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 1000px;
  height: calc(100vh - 128px);
  max-height: calc(100vh - 128px);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: zoomIn 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  overscroll-behavior: contain;
}

#profile-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  width: 100%;
  min-height: 0;
}

.lightbox-header {
  position: relative;
  background: linear-gradient(135deg, #026181 0%, #1da1f2 100%);
  color: white;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
  flex-shrink: 0;
}

.lightbox-header h2 {
  font-size: 24px;
  font-weight: 700;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#close-lightbox {
  background: none;
  position: absolute;
  right: 20px;
  top: 25px;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

#close-lightbox {
  background: rgba(255, 255, 255, 0.2);
}

/* Validation Errors */
.validation-errors {
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  padding: 5px 24px;
  flex-shrink: 0;
}

.error-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #991b1b;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.validation-errors ul {
  color: #b91c1c;
  font-size: 14px;
  margin-left: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Profile Edit Tab Navigation */
.profile-edit-tab-navigation {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  overflow-x: auto;
  width: 100%;
}

.profile-edit-tab-btn {
  background: none;
  border: none;
  padding: 16px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
  min-width: 0;
}

.profile-edit-tab-btn:hover {
  color: #374151;
  background: #f9fafb;
}

.profile-edit-tab-btn.active {
  color: #026181;
  border-bottom-color: #026181;
  background: white;
}

/* Profile Edit Lightbox Content */
.profile-edit-lightbox-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: none;
  padding: 24px 24px 96px;
  transition: min-height 0.3s ease;
  min-width: 0;
}

.profile-edit-tab-content {
  display: none;
}

.profile-edit-tab-content.active {
  display: block;
}

.profile-edit-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #026181;
  margin-bottom: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.profile-edit-section-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Profile Edit Form Elements */
.profile-edit-form-group {
  margin-bottom: 24px;
}

.profile-edit-form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #374151;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.profile-edit-form-group input,
.profile-edit-form-group textarea,
.profile-edit-form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.profile-edit-form-group input:focus,
.profile-edit-form-group textarea:focus,
.profile-edit-form-group select:focus {
  outline: none;
  border-color: #026181;
  box-shadow: 0 0 0 3px rgba(2, 97, 129, 0.1);
}

.profile-edit-form-group select {
  background-color: white;
  cursor: pointer;
  appearance: auto;
}

.profile-edit-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.profile-edit-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* Lightbox Footer */
.lightbox-footer {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding: 14px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: #f9fafb;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
}

.lightbox-footer .cancel-btn,
.lightbox-footer .save-btn {
  flex: 0 0 auto;
}

.cancel-btn {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #f3f4f6;
}

.save-btn {
  padding: 6px 12px;
  background: linear-gradient(135deg, #026181 0%, #1da1f2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 97, 129, 0.3);
}

.save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Contribution Item Styles */
.contribution-item {
  border: 1px solid #e5e7eb;
  border-left: 4px solid #026181;
  border-radius: 8px;
  margin-bottom: 16px;
  background: white;
  padding: 20px;
}

.contribution-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.contribution-header h4 {
  position: relative;
  margin: 0;
  color: #374151;
  font-weight: 600;
}

.contribution-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0 -16px 16px -16px;
  width: calc(100% + 32px);
}

.remove-contribution-btn {
  background: none;
  border: none;
  color: #ef4444;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.remove-contribution-btn:hover {
  background: #fef2f2;
}

.add-btn {
  background: linear-gradient(135deg, #026181 0%, #1da1f2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 97, 129, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Character Count */
.character-count {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.validation-text.error {
  color: #ef4444;
}

.validation-text.success {
  color: #10b981;
}

/* Upload Areas */
.upload-area {
  /* display: flex; */
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

.upload-area:hover {
  border-color: #1da1f2;
}

.upload-content {
  display: flex;
  align-items: center;
  justify-content: center;
  /* border: 2px solid red; */
}

.upload-icon {
  font-size: 48px;
  color: #9ca3af;
  /* margin-bottom: 16px; */
}

.upload-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.upload-btn:hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.upload-text {
  margin-top: 8px;
  font-size: 14px;
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.uploaded-video {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f0fdf4;
  border-radius: 8px;
}

.video-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Profile Picture Upload Styles */
.uploaded-profile-picture {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f0fdf4;
  border-radius: 8px;
}

.profile-picture-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-picture-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Thumbnail Upload Styles */
.uploaded-thumbnail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f0fdf4;
  border-radius: 8px;
}

.thumbnail-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thumbnail-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.remove-btn {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.remove-btn:hover {
  background: #fecaca;
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.image-preview {
  display: inline-block;
  margin: 8px;
  position: relative;
  cursor: move;
}

.image-preview.dragging {
  opacity: 0.5;
}

.image-preview:hover {
  border-color: #1da1f2;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.image-name {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.remove-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview:hover .remove-image-btn {
  opacity: 1;
}

.drag-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-preview:hover .drag-handle {
  opacity: 1;
}

/* Validation Warning */
.validation-warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
}

.validation-warning p {
  color: #b91c1c;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Sub-tabs */
.sub-tab-navigation {
  display: flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}

.sub-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sub-tab-btn:hover {
  color: #374151;
}

.sub-tab-btn.active {
  background: white;
  color: #026181;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sub-tab-content {
  display: none;
}

.sub-tab-content.active {
  display: block;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  color: #026181;
  font-size: 24px;
}

.section-header h4 {
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.add-btn {
  background: linear-gradient(135deg, #026181 0%, #1da1f2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 97, 129, 0.3);
}

/* Entry Cards */
.entry-card {
  border: 1px solid #e5e7eb;
  border-left: 4px solid #026181;
  border-radius: 8px;
  margin-bottom: 16px;
  background: white;
}

.entry-card.education {
  border-left-color: #1da1f2;
}

.entry-card.milestone {
  border-left-color: #026181;
}

.entry-header {
  padding: 16px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.entry-title {
  font-size: 16px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.delete-btn:hover {
  background: #fef2f2;
}

.entry-content {
  padding: 20px;
}

.entry-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.empty-subtitle {
  font-size: 14px;
  margin-top: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dialog */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overscroll-behavior: contain;
}

.dialog-overlay.active {
  display: flex;
}

.dialog-modal {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.dialog-header {
  padding: 24px 24px 16px;
}

.dialog-header h3 {
  font-size: 18px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dialog-content {
  padding: 0 24px 24px;
  color: #6b7280;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dialog-footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.dialog-cancel {
  background: white;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dialog-confirm {
  background: #ef4444;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dialog-confirm:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Drag and Drop */
.dragging {
  opacity: 0.5;
}

.drag-over {
  border-color: #1da1f2 !important;
  background: #f0f9ff;
}

/* ===================================== */
/* ==== Responsive Adjustments ==== */
/* ===================================== */
@media (max-width: 600px) {
  .modal-content {
    padding: 20px;
    max-width: 95%;
  }

  .modal-content h2 {
    font-size: 1.4em;
  }

  .modal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .modal-actions button {
    width: 100%;
  }
}

.delete-photo-form {
  position: absolute;
  top: 6px;
  right: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.delete-photo-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 18px;
  line-height: 1;
  padding: 2px 7px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.delete-photo-btn:hover {
  background: rgba(255, 0, 0, 0.8);
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.gallery-item {
  position: relative;
}

/* Delete button within carousel slide */
.delete-photo-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 11;
}

.delete-photo-btn {
  background: rgba(220, 20, 60, 0.7);
  color: white;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}

.delete-photo-btn:hover {
  background: rgba(255, 0, 0, 0.9);
}

.profile-gallery-carousel {
  /* border: 2px solid red; */
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
  line-height: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev {
  left: 34px;
}

.carousel-btn.next {
  right: 34px;
}

.carousel-icon {
  font-size: 1.2rem;
}

/* ── Post card slide indicator dots ── */
.carousel-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  z-index: 10;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(20, 20, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.carousel-dot.active {
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
  transform: scale(1.25);
}

/* Hide feed dots when carousel is inside PDM */
.carousel-container.pdm-carousel-embedded .carousel-dots {
  display: none !important;
}

/* Delete button within carousel slide */
.delete-photo-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 11;
}

.delete-photo-btn {
  background: rgba(220, 20, 60, 0.7);
  color: white;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}

.delete-photo-btn:hover {
  background: rgba(255, 0, 0, 0.9);
}

.profile-gallery-carousel.profile-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.profile-gallery-carousel .carousel-track-container {
  overflow: hidden;
  height: 220px;
}

.profile-gallery-carousel .carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.profile-gallery-carousel .carousel-item {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  box-sizing: border-box;
}

/* .profile-gallery-carousel .carousel-item video.video-thumbnail {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.profile-gallery-carousel .carousel-item.active {
  display: block !important;
} */

.profile-gallery-carousel .image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

.profile-gallery-carousel .gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* object-fit: cover; */
  border-radius: 6px;
  display: block;
}

.profile-gallery-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
  line-height: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.profile-gallery-carousel .carousel-btn:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.profile-gallery-carousel .carousel-btn.prev {
  left: 8px;
}

.profile-gallery-carousel .carousel-btn.next {
  right: 8px;
}

.profile-gallery-carousel .carousel-icon {
  font-size: 1.2rem;
}

.profile-gallery-carousel .delete-photo-form {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 11;
}

.profile-gallery-carousel .delete-photo-btn {
  background: rgba(220, 20, 60, 0.7);
  color: white;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}

.profile-gallery-carousel .delete-photo-btn:hover {
  background: rgba(255, 0, 0, 0.9);
}

.play-button-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  /* Allow clicks to pass through to the video */
}

.scroll-container {
  scroll-behavior: smooth;
}

/* Custom Confirmation Modal */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.custom-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.custom-modal-overlay.active .custom-modal-content {
  transform: scale(1) translateY(0);
}

.custom-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.custom-modal-header i {
  font-size: 24px;
  color: #ef4444;
}

.custom-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.custom-modal-body {
  padding: 16px 24px 24px;
}

.custom-modal-body p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.custom-modal-footer {
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
  justify-content: flex-end;
}

.custom-btn-cancel,
.custom-btn-delete {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.custom-btn-cancel {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.custom-btn-cancel:hover {
  background: #f1f5f9;
  color: #475569;
}

.custom-btn-delete {
  background: #ef4444;
  color: white;
}

.custom-btn-delete:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.custom-btn-delete:active {
  transform: translateY(0);
}

/* Loading state */
.custom-btn-delete.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.custom-btn-delete.loading i {
  animation: spin 1s linear infinite;
}


.video-placeholder {
  /* width: 512px;
  height: 512px; */
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  border-radius: 8px;
  display: inline-block;
  /* fine for carousel layout */
  flex: 0 0 auto;
  /* ensures correct sizing in flexbox */
}

/* For video inside carousel */
.carousel-track video {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.carousel-track img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* When video is leaving the carousel */
.media-leaving {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

/* When video is entering lightbox */
.media-entering {
  opacity: 0;
  transform: scale(1.05);
  animation: mediaFadeIn 0.3s ease forwards;
}

@keyframes mediaFadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* .carousel-track .video-leaving {
  opacity: 0;
  transform: scale(0.95);
} */

/* .video-placeholder::after {
  width: 100%;
  height: 100%;
    content: "Video in Lightbox";
    color: #888;
    font-size: 14px;
} */

/* Preview Video Styles */
.preview-container video,
.publish-preview video,
.edit-preview video {
  pointer-events: none;
}

.preview-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
}

.preview-video-overlay .play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preview-video-container {
  position: relative;
  display: inline-block;
}

/* Additional styling for better preview experience */
.preview-container video,
.publish-preview video,
.edit-preview video {
  cursor: default;
  opacity: 0.8;
}



/* 
.footer-section {
  width: 100%;
  background: #101827;
  color: #fff;
  position: relative;
  z-index: 1;
}

.footer-column h3 {
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-around;
  padding: 40px 5%;
  width: 100%;
  margin: 0;
}

.footer-column {
  flex: 1;
  padding: 0 20px;
}

.footer-column h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-column p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 8px;
}

.email-input {
  display: flex;
  align-items: center;
}

.email-input input {
  flex: 1;
  padding: 8px;
  border: none;
  font-size: 14px;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
}

.email-input button {
  background-color: #026181;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 14px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: transparent;
  width: 100%;
  margin: 0;
}

.footer-copyright p {
  font-size: 12px;
  color: #fff;
  margin-top: 20px;
}

.footer-links {
  margin-left: 670px;
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.button {
  cursor: pointer;
  text-decoration: none;
  color: #ffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2d2e32;
  border: 2px solid #2d2e32;
  transition: all 0.45s;
}

.button:hover {
  transform: rotate(360deg);
  transform-origin: center center;
  background-color: #ffff;
  color: #2d2e32;
}

.button:hover .btn-svg {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(305deg) brightness(103%) contrast(103%);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
} */



/* Footer Section Styles */
.footer-section {
  width: 100%;
  background: #101827;
  color: #fff;
  position: relative;
  z-index: 1;
  /* border: 2px solid red; */
}

.footer-top {
  position: relative;
  background: linear-gradient(to bottom, #fff 0%, #F5F9FF 52%, #CEE5FF 100%);
  padding: 40px 20px;
  padding-bottom: 200px;
  text-align: center;
  overflow: hidden;
  border-bottom-left-radius: 250px;
  border-bottom-right-radius: 250px;
}

.footer-content h1 {
  font-size: 72px;
  color: #026181;
  margin-bottom: 20px;
  font-weight: bold;
}


.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.button-group {
  display: flex;
  gap: 20px;

}

.join-investor,
.footer-linkup-btn,
.footer-create-post-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #d8e2ee;
  background-color: #026181;
  border-style: solid;
  border-width: 2px 2px 2px 2px;
  border-color: rgba(255, 255, 255, 0.333);
  border-radius: 40px 40px 40px 40px;
  padding: 16px 24px 16px 28px;
  transform: translate(0px, 0px) rotate(0deg);
  transition: 0.2s;
  cursor: pointer;

}

.join-investor:hover,
.footer-linkup-btn:hover,
.footer-create-post-link:hover {
  color: #d8e2ee;
  background-color: #026181;
  box-shadow: -2px -1px 8px 0px #ffffff, 2px 1px 8px 0px rgb(95 157 231 / 48%);
}

.join-investor:active,
.footer-linkup-btn:active,
.footer-create-post-link:active {
  box-shadow: none;
}



.join-entrepreneur,
.footer-message-btn,
.footer-verify-profile {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #026181;
  /* Initial color is join-investor's hover color */
  background-color: #E5EDF5;
  /* Initial background is join-investor's hover background */
  border-style: solid;
  border-width: 2px 2px 2px 2px;
  border-color: rgba(255, 255, 255, 0.333);
  border-radius: 40px 40px 40px 40px;
  padding: 16px 24px 16px 28px;
  transform: translate(0px, 0px) rotate(0deg);
  transition: 0.2s;
  box-shadow: -2px -1px 8px 0px #ffffff, 2px 1px 8px 0px rgb(95 157 231 / 48%);
  /* Initial shadow is join-investor's hover shadow */
}

.join-entrepreneur:hover,
.footer-message-btn:hover,
.footer-verify-profile:hover {
  color: #d8e2ee;
  /* Hover color is join-investor's initial color */
  background-color: #026181;
  /* Hover background is join-investor's initial background */
  box-shadow: -4px -2px 16px 0px #ffffff, 4px 2px 16px 0px rgb(95 157 231 / 48%);
  /* Hover shadow is join-investor's initial shadow */
}

.join-entrepreneur:active,
.footer-message-btn:active,
.footer-verify-profile:hover {
  box-shadow: none;
}

/* .button-group.group-hover .join-investor:hover,
.button-group.group-hover .join-investor {
  color: #026181;
  background-color: #E5EDF5;
  box-shadow: -2px -1px 8px 0px #ffffff, 2px 1px 8px 0px rgb(95 157 231 / 48%);
}

.button-group.group-hover .join-entrepreneur:hover,
.button-group.group-hover .join-entrepreneur {
  color: #d8e2ee;
  background-color: #026181;
  box-shadow: -4px -2px 16px 0px #ffffff, 4px 2px 16px 0px rgb(95 157 231 / 48%);
} */

/* .button-group .join-investor:active,
.button-group.group-hover .join-investor:active {
  box-shadow: none;
}

.button-group .join-entrepreneur:active,
.button-group.group-hover .join-entrepreneur:active {
  box-shadow: none;
} */
.footer-column h3 {
  cursor: pointer;
}

.footer-column a {
  text-decoration: none;
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  max-width: 1600px;
  margin: 0 auto;

  /* border: 2px solid red; */
}

.footer-column {
  flex: 1;
  padding: 0 20px;
}

.footer-column h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-column p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 8px;
}

.email-input {
  display: flex;
  align-items: center;
}

.email-input input {
  flex: 1;
  padding: 8px;
  border: none;
  /* border-radius: 10px; */
  font-size: 14px;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
}

.email-input button {
  background-color: #026181;
  color: #fff;
  border: none;
  padding: 11.5px 15px;
  cursor: pointer;
  font-size: 14px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;

}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: transparent;
  max-width: 1487px;
  margin: 0 auto;
  /* border: 2px solid red; */
}

.footer-copyright p {
  font-size: 12px;
  color: #fff;
  margin-top: 20px;
  margin-right: 16px;
  /* width: 100%; */
  /* border: 2px solid red; */

}

.footer-links {
  margin-left: 530px;
  margin-top: 20px;
  display: flex;
  gap: 20px
}

.footer-links a {
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;

}


.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.button {
  cursor: pointer;
  text-decoration: none;
  color: #ffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2d2e32;
  border: 2px solid #2d2e32;
  transition: all 0.45s;

}

.button:hover {
  transform: rotate(360deg);
  transform-origin: center center;
  background-color: #ffff;
  color: #2d2e32;
}

.button:hover .btn-svg {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(305deg) brightness(103%) contrast(103%);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}




:root {
  --investor-bottom-offset: 0px;
}

.profile-main {
  /* border: 2px solid red; */
  position: relative;
  max-width: 70vw;
  margin-left: 35px;
}

.profile-card-wrapper {
  position: absolute;
  /* top: 141px; */
  top: 0;
  right: -34.2%;
  /* right: 2.7%; */
  /* height: calc(100% + var(--investor-bottom-offset)); */
  width: 27vw;
  pointer-events: none;
  z-index: 100;
}

.profile-card {
  position: absolute;
  /* top: 385px; */
  right: 0px;
  width: 300px;
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
}

.card-content {
  text-align: left;
  color: #333;
}

.card-image {
  width: 100%;
  height: 200px;
  border-radius: 10px 10px 0 0;
  object-fit: cover;
}

.card-name {
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0 5px;
  color: #026181;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

.card-role {
  font-size: 12px;
  color: #a3a3a3;
  margin-bottom: 10px;
}

.card-description {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
}

.share-button {
  background-color: #026181;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.share-button:hover {
  background-color: #1da1f2;
}

/* Footer Styles */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-280px * 10 - 30px * 10));
  }
}

@keyframes testimonial_top_scroll {
  0% {
    transform: translateX(calc(-350px * 10 - 30px * 10));
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes testimonial_bottom_scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-350px * 10 - 30px * 10));
  }
}

/* ===================================== */
/* ==== Modal Overlay and Content ==== */
/* ===================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

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

.modal-content {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  max-height: 80vh;
  width: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-right: 0;
  padding-top: 0;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-scroll-area {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 60px);
  padding: 20px;
}

.modal-fixed-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 10;
}

.modal-fixed-footer .modal-close,
.modal-fixed-footer .save-btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.modal-fixed-footer .modal-close {
  background-color: #ccc;
  color: #333;
}

.modal-fixed-footer .save-btn {
  background-color: #4caf50;
  color: white;
}

/* ===================================== */
/* ==== Body Scroll Lock (NEW RULE) ==== */
/* ===================================== */
body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

/* ===================================== */
/* ==== Modal Form Elements ==== */
/* ===================================== */
.modal-content h2 {
  font-size: 1.6em;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.modal-content label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: #555;
  font-size: 0.9em;
}

.modal-content textarea,
.modal-content input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  resize: vertical;
}

.modal-content textarea {
  min-height: 90px;
}

.modal-content textarea:focus,
.modal-content input[type="text"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* ===================================== */
/* ==== Modal Action Buttons ==== */
/* ===================================== */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}

.modal-actions button {
  padding: 10px 22px;
  border: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.modal-actions button[type="submit"] {
  background-color: #007bff;
  color: white;
}

.modal-actions button[type="submit"]:hover {
  background-color: #0056b3;
}

.modal-actions button[type="button"] {
  background-color: #6c757d;
  color: white;
}

.modal-actions button[type="button"]:hover {
  background-color: #5a6268;
}

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

body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width);
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

.edit-section {
  margin-bottom: 2rem;
}

.delete-button {
  background-color: #e74c3c;
  color: white;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.carousel-container {
  position: relative;
  width: 100%;
  margin: auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.carousel-container::-webkit-scrollbar {
  height: 6px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: #026181;
  border-radius: 3px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: auto;
  /* height: 512px; */
  height: 100%;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  box-sizing: border-box;
  transform: translateZ(0);
  backface-visibility: hidden;
  outline: 1px solid transparent;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  box-sizing: border-box;
}

.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-sizing: border-box;
}

/* 
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
} */

/* .carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
} */


.carousel-icon {
  font-size: 1.2rem;
}

/* Lightbox overlay */
#lightbox {
  /* border: 2px solid red; */
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#lightbox.active {
  display: flex;
  /* border: 2px solid red; */
}

/* #lightbox-content img,
#lightbox-content video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  background: #181819;
} */


#lightbox-content img,
#lightbox-content video {
  max-width: 90vw;
  max-height: 80vh;
  width: 100%;
  display: block;
  border-radius: 8px;
  background: #181819;
}

#lightbox-content img {
  background: none;
}

#lightbox-close,
#lightbox-prev,
#lightbox-next {
  position: fixed;
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
  padding: 0.2rem 0.6rem;
  transition: color 0.3s ease;
}

#lightbox-close {
  top: 1rem;
  right: 1rem;
}

#lightbox-prev {
  bottom: 45vh;
  left: 1rem;
}

#lightbox-next {
  bottom: 45vh;
  right: 1rem;
}

#lightbox-close:hover,
#lightbox-prev:hover,
#lightbox-next:hover {
  color: #026181;
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  top: 78px;
  right: 20px;
  min-width: 280px;
  max-width: 420px;
  color: #f8fafc;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.3);
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  z-index: 10001;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-notification::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  flex-shrink: 0;
}

.toast-notification.success {
  border-color: rgba(34, 197, 94, 0.45);
}

.toast-notification.error {
  border-color: rgba(239, 68, 68, 0.45);
}

.toast-notification.error::before {
  content: "!";
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.toast-notification.warning {
  border-color: rgba(245, 158, 11, 0.45);
}

.toast-notification.warning::before {
  content: "!";
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.toast-notification.info {
  border-color: rgba(56, 189, 248, 0.45);
}

.toast-notification.info::before {
  content: "i";
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

#toast-message {
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.01em;
  flex: 1;
  word-break: break-word;
}

.toast-notification .toast-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.22);
  border: none;
  color: #e2e8f0;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.toast-notification .toast-close-btn:hover {
  background: rgba(226, 232, 240, 0.35);
  transform: scale(1.05);
}

/* Spinner for Save button */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* Responsive Adjustments for Edit Modal */
@media (max-width: 768px) {
  .lightbox-modal {
    width: 95%;
    margin: 10px auto;
  }

  .profile-edit-tab-navigation {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    /* More flexible columns */
    flex-wrap: wrap;
    justify-content: center;
  }

  .profile-edit-tab-btn {
    flex-basis: auto;
    /* Let content determine width */
    padding: 12px 8px;
    /* Smaller padding */
    font-size: 12px;
    /* Smaller font */
  }

  .profile-edit-form-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
  }

  .profile-edit-lightbox-content {
    padding: 16px;
    /* Smaller padding */
  }

  .lightbox-footer {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .cancel-btn,
  .save-btn {
    width: 100%;
    justify-content: center;
  }

  .profile-upper-wrapper {
    margin: 20px 15px 100px 15px;
    /* Adjust margins for smaller screens */
  }

  .profile-grid {
    grid-template-columns: 1fr;
    /* Stack main content and sidebar */
    gap: 20px;
  }

  .profile-card-wrapper {
    position: static;
    /* Remove fixed positioning */
    width: 100%;
    height: auto;
    /* margin-bottom: 20px; */
  }

  .profile-card {
    width: 100%;
    margin: 0 auto;
    /* Center the card */
  }

  .recent-activity {
    max-width: 100%;
    /* Full width */
    margin-left: 0;
    padding: 15px;
  }

  .activity-post {
    flex-direction: column;
    /* Stack post sections */
    gap: 10px;
  }

  .activity-post-left-section,
  .activity-post-right-section {
    flex: none;
    width: 100%;
    height: auto;
    /* Allow height to adjust */
  }

  .activity-post-images .carousel-track,
  .activity-post-images .carousel-item {
    height: 350px;
    /* Increased for better ratio on mobile for old post style */
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .footer-column {
    padding: 0 10px;
  }

  .footer-links {
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-copyright {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-links {
    display: none;
    /* Hide nav links on very small screens */
  }

  .search-bar {
    margin-right: 10px;
  }

  .profile-header {
    margin-top: 150px;
    /* Adjust for smaller profile pic */
  }

  .profile-header .profile-name {
    font-size: 28px;
  }

  .role-highlight {
    font-size: 14px;
  }

  .edit-btns-section {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .left-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .left-buttons>div,
  .verify-profile,
  .left-buttons button {
    width: 100%;
    justify-content: center;
  }

  .profile-edit-tab-navigation {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }

  .profile-edit-tab-btn {
    padding: 10px 5px;
    font-size: 11px;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
}


/* 

#pitch-deck-popup {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.pitch-popup-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    animation: fadeInUp 0.3s ease;
}

.pitch-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.pitch-close-btn:hover {
    color: #ff4444;
}

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

/* Container for all pitches */
.all_pitches {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #f7f7f7;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Header */
.all_pitches h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* Pitch list styling */
.all_pitches ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.all_pitches li {
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.all_pitches li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Pitch text */
.all_pitches li strong {
  color: #555;
}

.all_pitches li p {
  margin: 0.3rem 0;
  color: #666;
}

/* Links */
.all_pitches a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.all_pitches a:hover {
  color: #0056b3;
}

/* Divider */
.all_pitches hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 1rem 0;
}

/* Pitch Deck Popup */
#pitch-deck-popup {
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

/* Request Pitch Popup */
#request-pitch-popup {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.pitch-popup-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  text-align: center;
  position: relative;
  animation: fadeInUp 0.3s ease;
}

.pitch-popup-content h2 {
  margin-bottom: 1rem;
  color: #333;
}

.pitch-popup-content form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pitch-popup-content input[type="file"],
.pitch-popup-content input[type="text"],
.pitch-popup-content button {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

.pitch-popup-content button {
  background: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.pitch-popup-content button:hover {
  background: #0056b3;
}

.pitch-popup-content .form-label {
  display: block;
  text-align: left;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.pitch-popup-content textarea {
  resize: vertical;
  font-family: inherit;
  min-height: 100px;
}

.pitch-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}

.pitch-close-btn:hover {
  color: #ff4444;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .all_pitches {
    padding: 1rem;
  }

  .all_pitches h2 {
    font-size: 1.5rem;
  }

  .pitch-popup-content {
    padding: 1.5rem;
  }
}

.pitches-title {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 1.8rem;
  color: #222;
}

.pitches-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.pitch-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pitch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.pitch-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.8rem;
}

.view-btn,
.download-btn {
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.view-btn {
  background-color: #007bff;
  color: #fff;
}

/* .download-btn {
    background-color: #17a2b8;
    color: #fff;
} */

.view-btn:hover {
  background-color: #0069d9;
}

/* .download-btn:hover {
    background-color: #138496;
} */

.decision-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 1rem;
}

.accept-btn,
.decline-btn {
  flex: 1;
  padding: 0.6rem 0;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.accept-btn {
  background-color: #28a745;
  color: white;
}

.decline-btn {
  background-color: #dc3545;
  color: white;
}

.accept-btn:hover {
  background-color: #218838;
}

.decline-btn:hover {
  background-color: #c82333;
}

.no-pitches {
  text-align: center;
  font-style: italic;
  color: #555;
  margin-top: 2rem;
}

.all_pitch_requests {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.all_pitch_requests h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-weight: 700;
  border-bottom: 3px solid #27ae60;
  padding-bottom: 0.5rem;
}

.pitch-requests-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.pitch-request-card {
  background: linear-gradient(135deg, #f5f9f7 0%, #ffffff 100%);
  border: 1px solid #e0f0e6;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border-left: 4px solid #27ae60;
}

.pitch-request-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.15);
  border-color: #27ae60;
}

.pitch-request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.pitch-request-header p {
  margin: 0.3rem 0;
  color: #2c3e50;
  font-size: 0.95rem;
}

.pitch-request-header strong {
  color: #27ae60;
  font-weight: 600;
}

.pitch-request-content {
  margin: 1rem 0;
  padding: 1rem;
  background: white;
  border-left: 3px solid #27ae60;
  border-radius: 6px;
}

.pitch-request-content h4 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.pitch-request-content p {
  color: #555;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.pitch-request-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.accept-request-btn,
.decline-request-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.accept-request-btn {
  background-color: #27ae60;
  color: white;
}

.accept-request-btn:hover {
  background-color: #229954;
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.decline-request-btn {
  background-color: #e74c3c;
  color: white;
}

.decline-request-btn:hover {
  background-color: #c0392b;
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.request-decision-result {
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

.view-profile-btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.view-profile-btn:hover {
  background: #2980b9;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.no-pitch-requests {
  text-align: center;
  font-style: italic;
  color: #888;
  padding: 2rem;
  font-size: 1.05rem;
}

.load-more-btn {
  display: block;
  margin: 2rem auto;
  padding: 0.8rem 2rem;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.load-more-btn:hover:not(:disabled) {
  background: #229954;
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pitch-request-menu-container {
  position: relative;
}

.pitch-request-menu-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
  transition: color 0.2s ease;
}

.pitch-request-menu-btn:hover {
  color: #27ae60;
}

.pitch-request-menu-dropdown {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
}

.pitch-request-menu-dropdown button {
  width: 100%;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #555;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.pitch-request-menu-dropdown button:hover {
  background: #f5f5f5;
  color: #27ae60;
}







/* === Notification dropdown === */
.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-container {
  position: relative;
}

.notification-popup {
  position: absolute;
  top: 45px;
  right: 0;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.notification-popup.show {
  display: block;
}

.notification-main-header {
  padding: 10px;
  background: #026181;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-list {
  list-style: none;
  margin: 0;
  padding: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.notification-list li {
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}

.notification-list li:last-child {
  border-bottom: none;
}

.notification-list li.unread {
  background: #f1faff;
  font-weight: 600;
}

.notification-list li.read {
  background: #fff;
  font-weight: normal;
}

.notification-list li:hover {
  background: #f9fcff;
  cursor: pointer;
}

.notification-main a,
.notification-main div {
  color: #026181;
}

/* notification unread badge */
.notification-badge {
  position: absolute;
  bottom: 30px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  line-height: 1;
  padding: 0;
}

.pitch-requests-badge {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  line-height: 1;
  padding: 0;
}

/* Contact Popup / Phone Modal */
#accept-contact-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 5000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#accept-contact-popup .popup-content {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  text-align: left;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#accept-contact-popup h3 {
  width: 100%;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.2;
}

#accept-contact-popup p {
  width: 100%;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 24px;
}

#accept-contact-popup .pitch-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

#accept-contact-popup .pitch-close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

#contact-info {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 24px;
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}

#contact-info:focus {
  border-color: #007bff;
}

#accept-contact-popup .button-row {
  display: flex;
  gap: 12px;
}

#submit-contact,
#skip-contact {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

#submit-contact {
  background: #007bff;
  color: white;
}

#submit-contact:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

#skip-contact {
  background: #f3f4f6;
  color: #4b5563;
}

#skip-contact:hover {
  background: #e5e7eb;
  color: #111827;
}

#linkup-desktop-link .notification-badge {
  bottom: 30px;
  right: -12px;
  top: auto;
}

#mobile-linkup-badge {
  top: 6px;
  right: 10px;
  bottom: auto;
}

#messages-link {
  position: relative;
}

#messages-link .notification-badge {
  bottom: 30px;
  right: -10px;
  top: auto;
  pointer-events: none;
}

/* === Notification popup menu (three-dots) === */
.notifmenu-container {
  position: relative;
  display: inline-block;
  /* float: right; */
}

.notifmenu-btn {
  background: none;
  border: none;
  font-size: 15px;
  color: #555;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.notifmenu-btn:hover {
  background: #f1f1f1;
}

.notifmenu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 18px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1200;
  overflow: hidden;
}

.notifmenu-delete {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #d11a2a;
}

.notifmenu-delete:hover {
  background: #ffe6e6;
}



.navbar-notifications-menu-container {
  position: relative;
  display: inline-block;
  /* float: right; */
  margin-left: 8px;
}

.navbar-notifications-menu-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.navbar-notifications-menu-btn:hover {
  background: #f1f1f156;
}

.navbar-notifications-menu-dropdown {
  display: none;
  position: absolute;
  top: 20px;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1500;
  overflow: hidden;
  min-width: 140px;
}

.navbar-mark-all-btn,
.link-notification-page {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: #026181;
}

.navbar-mark-all-btn:hover,
.link-notification-page:hover {
  background: #f0f8ff;
}







/* ===== PITCH MENU DROPDOWN STYLING ===== */
.pitch-menu-container {
  position: relative;
  display: inline-block;
}

.pitch-menu-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.pitch-menu-btn:hover {
  background: #f1f1f1;
}

.pitch-menu-dropdown {
  margin-top: 4px;
  /* padding: 6px 0; */
  font-size: 0.9rem;
  overflow: hidden;
}

.pitch-menu-dropdown button {
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #dc2626;
  font-weight: 500;
  transition: background 0.2s;
}

.pitch-menu-dropdown button:hover {
  /* background: #fef2f2; */
  background: #ffe6e6;
  color: #b91c1c;
}

/* ===== PITCHES BADGE ===== */

#pitches-link {
  position: relative;
  /* display: inline-block; */
}

#pitch-requests-link {
  position: relative;
}


.pitch-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  line-height: 1;
  padding: 0;
}

.pitch-requests-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  line-height: 1;
  padding: 0;
}









/* LINKUP BUTTON PARTS */
/* ---------- Container (visually non-existent) ---------- */
.linkup-container {
  display: inline-block;
  position: relative;
  padding: 0;
  margin: 0;
  border: 0;
  line-height: 0;
  /* prevents ghost spacing */
}

/* ---------- Main button ---------- */
.linkup-btn {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 5px;
  border: 1px solid #3698e0;
  background: #F6F7F9;
  color: #3698e0;
  cursor: pointer;
  line-height: normal;
  /* restore height */
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* States */
/* .linkup-btn.linked {
  background: #e6f4ea;
  border-color: #34a853;
}

.linkup-btn.pending {
  background: #fff4e5;
  border-color: #fbbc04;
}

.linkup-btn.received {
  background: #e8f0fe;
  border-color: #4285f4;
} */

/* ---------- Label ---------- */
.linkup-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Caret (inside button, right aligned) ---------- */
.linkup-caret {
  display: inline-flex;
  align-items: center;
  margin-left: 3px;
  opacity: 0.7;
  font-size: 18px;
  cursor: pointer;
  color: #3698E0;
  /* border: 2px solid red; */
}

/* ---------- Dropdown menu ---------- */
.linkup-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 180px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

/* Hide helper */
.hidden {
  display: none;
}

/* ---------- Menu items ---------- */
.linkup-container .linkup-menu .menu-item {
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: none;
}

.linkup-container .linkup-menu .menu-item:hover {
  background: #e4f2fd;
}




.highlight-post {
  animation: highlightGlow 2.5s ease-out forwards;
}

@keyframes highlightGlow {
  0% {
    box-shadow: 0 0 0 rgba(0, 102, 204, 0);
  }

  40% {
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.8);
  }

  100% {
    box-shadow: 0 0 0 rgba(0, 102, 204, 0);
  }
}

/* ===================================================================
   RESPONSIVE NAVBAR – Hamburger Menu (appended at end for easy removal)
   Breakpoint: 1038px
   ===================================================================== */

/* Hamburger button – hidden on desktop */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1600;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: #026181;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.35s ease;
  transform-origin: center;
}

/* Animated X when menu is open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: rotate(0deg);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile slide-down menu – hidden by default */
.mobile-nav-menu {
  display: none;
  flex-direction: column;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 12px 24px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: absolute;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 1499;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.mobile-nav-menu.open {
  display: flex;
  max-height: 500px;
  opacity: 1;
  padding-top: 12px;
  padding-bottom: 16px;
}

.mobile-nav-search {
  margin-bottom: 12px;
}

.mobile-nav-search .search-bar {
  max-width: 100%;
  width: 100%;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  position: relative;
  text-decoration: none;
  color: #026181;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.mobile-nav-links a:last-child {
  border-bottom: none;
}

.mobile-nav-links a:hover {
  background-color: #f0f8ff;
}

.mobile-nav-links a i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.mobile-nav-publish {
  margin-top: 12px;
  display: flex;
}

.mobile-nav-publish .publish-btn {
  width: 100%;
  justify-content: center;
}

/* ---- Intermediate breakpoint: reduce gap/search before hamburger kicks in ---- */
@media (max-width: 1200px) {
  .nav-links {
    gap: 18px;
  }

  .navbar {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ---- Hamburger breakpoint ---- */
@media (max-width: 1038px) {

  /* Hide desktop nav items */
  .nav-links,
  .navbar .right-section,
  .navbar .vertical-line {
    display: none !important;
  }

  /* Show hamburger */
  .hamburger-btn {
    display: flex;
  }

  /* Restore padding now that nav is hidden */
  .navbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Constrain user-name width for small screens */
  .user-name {
    min-width: 100px;
    max-width: 140px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .user-name {
    min-width: 60px;
    max-width: 100px;
  }

  .user-name span {
    font-size: 14px;
  }

  .user-name .dropdown-content {
    left: -45px;
  }

  .profile-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .logo img {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
  }
}

/* === END RESPONSIVE NAVBAR === */
/* NEW PROFILE REDESIGN LAYOUT */
.profile-layout-container {
  display: flex;
  max-width: 1300px;
  margin: 40px auto;
  gap: 30px;
  padding: 0 20px;
  align-items: flex-start;
}

.profile-sidebar {
  width: 280px;
  background: #f4f6fa;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  text-align: center;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.profile-pic-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 20px auto;
}

.profile-pic-sidebar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-name-sidebar {
  font-size: 22px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 5px;
}

.profile-role-sidebar {
  font-size: 13px;
  color: #718096;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
}

.profile-role-sidebar .role-highlight {
  background: none;
  color: #718096;
  padding: 0;
}

.sidebar-actions {
  margin-bottom: 30px;
}

.sidebar-actions .left-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.sidebar-actions .left-buttons button.edit-profile,
.sidebar-actions .left-buttons .linkup-container button,
.sidebar-actions .left-buttons button.message-btn {
  width: 100%;
  justify-content: center;
  background: #026181;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  padding: 12px 0;
  text-transform: uppercase;
}

.sidebar-actions .left-buttons button.edit-profile:hover {
  background: #014a6e;
}

.sidebar-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.sidebar-tab {
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #718096;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.sidebar-tab i {
  font-size: 18px;
}

.sidebar-tab:hover {
  background: #edf2f7;
  color: #2d3748;
}

.sidebar-tab.active {
  background: #e2e8f0;
  color: #1a202c;
}

.profile-main-content {
  flex-grow: 1;
  min-width: 0;
}

/* BANNER */
.cover-picture-new {
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.cover-photo-img-new {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 30, 50, 0.8), rgba(10, 30, 50, 0.1));
  display: flex;
  align-items: center;
  padding: 0 50px;
}

.banner-overlay-text h1 {
  color: #fff;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* OVERLAP CARD */
.profile-info-overlap-card {
  background: #fff;
  border-radius: 12px;
  margin: -80px 40px 40px 40px;
  position: relative;
  z-index: 10;
  padding: 0;
  display: flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-curator-section {
  flex: 2;
  padding: 40px;
  border-right: 1px solid #edf2f7;
}

.teams-info-section {
  flex: 1;
  padding: 40px;
}

.about-curator-section .profile-story {
  box-shadow: none;
  padding: 0;
  margin-bottom: 20px;
  background: transparent;
}

.about-curator-section .profile-story .section-title {
  font-size: 22px;
  font-weight: bold;
  color: #1a202c;
}

.social-links-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-btn-rounded {
  background: #e2e8f0;
  color: #2d3748;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-btn-rounded:hover {
  background: #cbd5e0;
  color: #1a202c;
}

.teams-info-section .quick-facts {
  margin: 0;
}

.teams-info-section .quick-facts h3,
.teams-info-section .quick-facts-edits h3 {
  font-size: 20px;
  color: #1a202c;
  margin-bottom: 20px;
}

.teams-info-section .facts-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  grid-template-columns: 1fr;
}

.teams-info-section .fact span {
  font-size: 12px;
  text-transform: uppercase;
  color: #a0aec0;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.teams-info-section .fact strong {
  font-size: 16px;
  color: #1a202c;
}

/* Other Sections */
.profile-other-sections {
  padding: 0 40px;
}

.glimpse-container .profile-main-video-section {
  width: 100%;
  margin-top: 20px;
}

.glimpse-container .profile-main-video-details h2 {
  font-size: 28px;
  color: #1a202c;
  margin-bottom: -10px;
}

/* -------------------------------------------------------------------------- */
/* Responsive overrides for new profile layout (defined in base_profile.html). */
/* -------------------------------------------------------------------------- */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.sidebar-overlay,
.sidebar-toggle-btn {
  display: none;
}

.sidebar-close-btn {
  display: none;
}



@media (max-width: 1280px) {
  .new-profile-layout {
    max-width: 100% !important;
  }

  /* Sidebar goes off-canvas — main area must reclaim the full viewport width */
  .new-main-area {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .new-banner-text {
    font-size: 48px !important;
    overflow-wrap: break-word;
    word-break: break-word;
    padding-left: 50px !important;
    padding-right: 110px !important;
  }

  .new-overlap-card {
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  .new-overlap-col-1,
  .new-overlap-col-2 {
    padding: 32px !important;
  }

  .new-glimpse-section {
    padding: 0 20px 40px 20px !important;
  }

  .new-banner-container {
    padding-left: 20px !important;
  }

  /* Off-canvas sidebar for tablet/mobile to avoid horizontal scrolling */
  .sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    position: fixed;
    top: 82px;
    left: 16px;
    z-index: 25;
    backdrop-filter: blur(6px);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 40000;
  }

  .new-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    width: min(320px, 88vw) !important;
    z-index: 40001 !important;
    transform: translateX(-105%) !important;
    transition: transform 180ms ease !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
    border-right: 1px solid #e1e4e8 !important;
  }

  .sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111;
    cursor: pointer;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 40002 !important;
  }

  body.sidebar-open .sidebar-close-btn {
    display: inline-flex;
  }

  body.sidebar-open .new-sidebar {
    transform: translateX(0) !important;
    width: 300px !important;
  }

  body.sidebar-open .sidebar-overlay {
    display: block;
  }

  /* Main content should always fit viewport width */
  .new-main-area {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    position: relative !important;
  }

  .new-overlap-card {
    margin-left: 16px !important;
    margin-right: 16px !important;
  }

  .new-glimpse-section {
    padding: 0 16px 40px 16px !important;
  }

  .new-banner-container {
    padding-left: 16px !important;
  }

  .recent-activity {
    margin: 20px 16px 24px 16px !important;
    padding: 20px 20px 40px 20px !important;
  }

  #funding-tab {
    margin: 0 16px 24px 16px !important;
    padding: 60px 20px 40px 20px !important;
  }

  .activity-post {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 430px !important;
    max-width: 100% !important;
  }
}



@media (max-width: 992px) {
  .new-banner-text {
    font-size: 32px !important;
  }
}

@media (max-width: 768px) {
  .new-banner-container {
    height: 220px !important;
    padding-left: 16px !important;
  }

  .new-banner-text {
    font-size: 24px !important;
    letter-spacing: -0.5px !important;
    overflow-wrap: break-word;
    word-break: break-word;
    padding-left: 50px !important;
    padding-right: 110px !important;
  }

  .new-overlap-card {
    margin: -40px 16px 24px 16px !important;
    flex-direction: column !important;
    min-height: 0 !important;
  }

  .new-overlap-col-1 {
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }

  .new-overlap-col-1,
  .new-overlap-col-2 {
    padding: 20px !important;
  }

  /* .new-btn-group {
    flex-wrap: wrap !important;
  } */

  .new-fact-value {
    font-size: 16px !important;
  }

  /* Make quick facts usable on narrow screens */
  .facts-grid {
    grid-template-columns: 1fr !important;
  }

  /* Prevent long text from causing horizontal scroll */
  .new-overlap-p,
  .profile-description,
  .card-description,
  .contribution-card p,
  .milestone-item p,
  .fund-seeking-detail-text {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  /* Carousel height should follow viewport width a bit */
  .profile-gallery-carousel .carousel-track-container {
    height: 200px !important;
  }

  .new-glimpse-section .profile-gallery-carousel .carousel-item {
    flex: 0 0 100% !important;
  }

  /* Experience modal box should never overflow viewport */
  .experience-box {
    width: calc(100vw - 24px) !important;
    max-width: 720px !important;
    max-height: calc(100vh - 24px) !important;
  }

    .recent-activity {
      margin: 20px 16px 24px 16px !important;
      padding: 20px 20px 40px 20px !important;
    }

  #funding-tab {
    margin: 0 16px 24px 16px !important;
    padding: 60px 16px 24px 16px !important;
  }
}

@media (max-width: 507px) {
  .new-overlap-card {
    margin: -20px 12px 24px 12px !important;
  }
  .new-glimpse-section {
    padding: 0 12px 40px 12px !important;
  }

  .recent-activity {
      margin: 20px 12px 24px 12px !important;
      padding: 20px 20px 40px 20px !important;
    }

  #funding-tab {
    margin: 0 12px 24px 12px !important;
    padding: 60px 12px 24px 12px !important;
  }

  .new-banner-container {
    height: 180px !important;
  }

  .new-banner-text {
    font-size: 20px !important;
    overflow-wrap: break-word;
    word-break: break-word;
    padding-left: 50px !important;
    padding-right: 110px !important;
  }

  .new-overlap-h3 {
    font-size: 20px !important;
  }

  .new-overlap-p {
    font-size: 14px !important;
  }

  /* Keep social pills in a single row on phones */
  /* .new-btn-group {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px !important;
  } */

  .new-social-pill {
    width: auto !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    justify-content: center !important;
  }

  .profile-gallery-carousel .carousel-track-container {
    height: 180px !important;
  }

  /* Activity Post Responsive Fixes */
  .activity-post {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px !important;
    margin-bottom: 16px !important;
  }

  .activity-post-media {
    padding: 0 12px 10px 12px !important;
    width: 100% !important;
    height: auto !important;
  }

  .activity-post-media.template-square,
  .activity-post-media.template-portrait,
  .activity-post-media.template-tall {
    width: 100% !important;
    margin: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
  }

  .activity-post-media.template-square .carousel-view {
    aspect-ratio: 1 / 1 !important;
  }

  .activity-post-media.template-portrait .carousel-view {
    aspect-ratio: 4 / 5 !important;
  }

  .activity-post-media.template-tall .carousel-view {
    aspect-ratio: 9 / 16 !important;
  }


  /* Round the viewport only — per-slide radius lets adjacent slides peek through */
  .activity-post-media .carousel-view .carousel-item {
    border-radius: 0 !important;
  }
}

/* ===== Post Detail Modal (Instagram-style) ===== */
.post-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* Chrome, Safari, Edge - hide scrollbar completely */
html.no-scroll::-webkit-scrollbar,
body.no-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

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

:root {
    --pdm-sidebar-width: 500px;
}

.post-detail-modal {
    display: flex;
    gap: 0;
    width: auto;
    max-width: 95vw;
    height: 88vh;
    max-height: 720px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    position: relative;
}

/* Close button */
.post-detail-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.post-detail-close:hover {
    opacity: 1;
}

/* ── Left: Media Panel ── */
.post-detail-media {
    flex: 0 0 auto; /* Don't grow or shrink, let aspect-ratio + height define width */
    flex-shrink: 0;
    height: 100%;
    width: auto;
    max-width: none;
    background: #F0F0F0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

/* Template-based aspect ratios for the media side.
   This ensures the container perfectly matches the content ratio regardless of modal height. */
.pdm-template-square .post-detail-media { aspect-ratio: 1 / 1; }
.pdm-template-portrait .post-detail-media { aspect-ratio: 4 / 5; }
.pdm-template-tall .post-detail-media { aspect-ratio: 9 / 16; }

/* ── Carousel embedded inside PDM left panel ── */
.carousel-container.pdm-carousel-embedded {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background: #F0F0F0 !important;
    padding: 0px !important;
    overflow: hidden !important;
    contain: paint;
    /* Match the modal's left side curve */
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

/* The moved carousel still has the feed card's .activity-post-media class */
.post-detail-overlay .activity-post-media.pdm-carousel-embedded {
    padding: 0 !important;
    overflow: hidden !important;
}

/* carousel-view fills the whole panel */
.carousel-container.pdm-carousel-embedded .carousel-view {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    contain: paint;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    isolation: isolate;
    background: #F0F0F0 !important;
}

.carousel-container.pdm-carousel-embedded .carousel-view::-webkit-scrollbar {
    display: none;
}

/* PDM uses same scroll-based snap as feed (no transform bleed on resize) */
.carousel-container.pdm-carousel-embedded .carousel-track {
    display: flex;
    width: max-content;
    min-width: 0;
    height: 100%;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
}

/* PDM slides: integer px via --carousel-slide-px (set in JS) */
.carousel-container.pdm-carousel-embedded .carousel-item {
    flex: 0 0 var(--carousel-slide-px, 100%) !important;
    width: var(--carousel-slide-px, 100%) !important;
    min-width: var(--carousel-slide-px, 100%) !important;
    max-width: var(--carousel-slide-px, 100%) !important;
    height: 100% !important;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: #F0F0F0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    box-sizing: border-box !important;
    transform: none !important;
    outline: none !important;
    backface-visibility: visible !important;
}

.post-detail-media .carousel-container.pdm-carousel-embedded img.carousel-item,
.post-detail-media .carousel-container.pdm-carousel-embedded video.carousel-item,
.pdm-carousel-embedded img.carousel-item,
.pdm-carousel-embedded video.carousel-item {
    width: var(--carousel-slide-px, 100%) !important;
    max-width: var(--carousel-slide-px, 100%) !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    border-radius: 0 !important;
    display: block !important;
}

/* Hide the original small carousel nav buttons */
.carousel-container.pdm-carousel-embedded .carousel-btn {
    display: none !important;
}

/* Slide indicator dots */
.pdm-dots {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.pdm-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.171);
    transition: background 0.2s;
}

.pdm-dot.active {
    background: #fff;
}

/* ── Right: Sidebar ── */
.post-detail-sidebar {
    flex: 0 0 var(--pdm-sidebar-width);
    width: var(--pdm-sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-left: 1px solid #efefef;
    background: #fff;
    height: 100%;
    /* Sidebar itself does not scroll; the inner scroll container handles scrolling so
       header and bottom areas remain fixed. */
    overflow: hidden;
}

/* Sidebar header */
.post-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #efefef;
    flex-shrink: 0;
}

.post-detail-header .pdm-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-detail-header .pdm-author {
    font-weight: 600;
    font-size: 14px;
    color: #026181;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-detail-header .pdm-author:hover {
    text-decoration: underline;
}

.post-detail-header .pdm-time {
    font-size: 12px;
    color: #8e8e8e;
    flex-shrink: 0;
}

/* Caption area - scrollable with normal scrollbar */
.post-detail-caption {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #262626;
    border-bottom: 1px solid #efefef;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    cursor: default;
}

.post-detail-caption::-webkit-scrollbar {
    width: 8px;
}

.post-detail-caption::-webkit-scrollbar-track {
    background: transparent;
}

.post-detail-caption::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.post-detail-caption::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

/* Glass-style overlay for dots so they stay visible on any media */
.pdm-dots {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
}

.pdm-dots {
    padding: 6px 10px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pdm-dots .pdm-dot {
    width: 8px;
    height: 8px;
    /* dark default so dots are visible over bright/dark media */
    background: rgba(20, 20, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pdm-dots .pdm-dot.active {
    background: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
    transform: scale(1.25);
}

.pdm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.15s ease, transform 0.15s ease;
    line-height: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.pdm-nav:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

.pdm-nav-prev {
    left: 14px;
}

.pdm-nav-next {
    right: 14px;
}

.pdm-nav-prev,
.pdm-nav-next {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-detail-caption:empty {
    display: none;
}

.post-detail-caption .category,
.post-detail-caption .hashtag {
    font-size: 13px;
}

/* Actions (hit/miss) now at bottom above input */
.post-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid #efefef;
    flex-shrink: 0;
    background: #fff;
}

.post-detail-actions .vote-btn {
    font-size: 13px;
    padding: 6px 14px;
}

/* Comments area — scrollable */
.post-detail-comments {
    padding: 8px 16px;
}

/* Modal specific override to ensure comments are visible and avoid double scrollbars */
.pdm-comments-wrapper {
    max-height: none !important;
    overflow: visible !important;
    border-top: none !important;
    padding: 0 !important;
}

.pdm-comments-wrapper .comments-list {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 20px !important;
}

/* The scrollable area containing caption + comments */
.post-detail-scroll {
    flex: 1 1 auto;
    min-height: 0;
    /* allow flex children to shrink in Firefox */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.post-detail-comments::-webkit-scrollbar {
    width: 4px;
}

.post-detail-comments::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.post-detail-comments::-webkit-scrollbar-track {
    background: transparent;
}

/* Comment input at bottom - remove top border if actions provide it */
.post-detail-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid #f3f3f3;
    flex-shrink: 0;
    background: #fff;
}

.post-detail-input .comment-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 0;
    background: transparent;
    color: #262626;
}

.post-detail-input .comment-input::placeholder {
    color: #8e8e8e;
}

.post-detail-input .comment-submit {
    background: none;
    border: none;
    color: #026181;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 4px;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.post-detail-input .comment-submit:hover {
    opacity: 1;
}

/* Empty state */
.post-detail-comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    color: #8e8e8e;
    font-size: 14px;
    padding: 40px 20px;
    text-align: center;
}

.post-detail-comments-empty i {
    font-size: 32px;
    opacity: 0.4;
}



/* Hide inline comment section on main feed cards since PDM is used */
.activity-post .activity-post-comments {
    display: none !important;
}

.activity-post.pdm-source-hidden {
    visibility: hidden;
    pointer-events: none;
}

.pdm-header-category {
    font-size: 11px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    color: #64748b;
    font-weight: 500;
}

/* ── PDM Responsiveness ── */
@media (max-width: 1200px) {
    :root { --pdm-sidebar-width: 400px; }
    .post-detail-modal { max-height: 600px; }
}

@media (max-width: 900px) {
    :root { --pdm-sidebar-width: 350px; }
    .post-detail-modal { max-height: 500px; }
    .post-detail-media {
        overflow: hidden;
        min-width: 0;
    }
    .carousel-container.pdm-carousel-embedded,
    .carousel-container.pdm-carousel-embedded .carousel-view {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .post-detail-modal {
        flex-direction: column !important;
        width: 95vw !important;
        width: 95dvw !important;
        height: 95vh !important;
        height: 95dvh !important;
        max-width: 95vw !important;
        max-width: 95dvw !important;
        max-height: 95vh !important;
        max-height: 95dvh !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    .post-detail-close {
        top: 8px !important;
        right: 8px !important;
        color: #fff !important;
        background: rgba(0, 0, 0, 0.4) !important;
        border-radius: 50% !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 20px !important;
    }

    :root {
        --pdm-sidebar-width: 100% !important;
    }

    .post-detail-media {
        flex: 0 0 50% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 50% !important;
        max-height: 50% !important;
        aspect-ratio: auto !important;
        border-top-left-radius: 12px !important;
        border-top-right-radius: 12px !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    .carousel-container.pdm-carousel-embedded .carousel-view {
        border-top-left-radius: 12px !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 12px !important;
        border-bottom-right-radius: 0 !important;
    }

    .post-detail-sidebar {
        flex: 0 0 50% !important;
        width: 100% !important;
        height: 50% !important;
        max-height: 50% !important;
        border-left: none !important;
        border-top: 1px solid #efefef !important;
    }
}

.pdm-no-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #555;
    font-size: 4rem;
}

/* Collapsible caption in PDM and feed cards: show ~8 lines by default */
.post-detail-caption.collapsed,
.activity-post-content.collapsed {
    max-height: calc(1.5em * 8);
    overflow: hidden;
    position: relative;
}

.post-detail-caption.collapsed::after,
.activity-post-content.collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.2em;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.post-detail-caption-toggle,
.caption-toggle {
    display: inline-block;
    margin: 8px 16px;
    color: #026181;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
}

/* PDM More Menu & Header More Button Styles (unified from home.css) */
.pdm-more-menu {
    position: absolute;
    top: 58px;
    right: 16px;
    z-index: 30;
    display: none;
    min-width: 210px;
}

.pdm-more-menu.active {
    display: block;
}

.pdm-more-menu .more-menu-content {
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pdm-more-menu .more-menu-item {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #0f172a;
    white-space: nowrap;
}

.pdm-more-menu .more-menu-item:hover {
    background: rgba(241, 245, 249, 0.9);
}

.pdm-header-more {
    padding: 8px;
    border-radius: 9999px;
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pdm-header-more:hover {
    background: rgba(241, 245, 249, 0.95);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.post-detail-overlay .pdm-header-more.activity-post-more::after {
    content: none !important;
    display: none !important;
}

.pdm-header-more-icon {
    display: block;
    margin-top: -2px;
    margin-right: 1px;
    font-size: 20px;
    line-height: 1;
    color: #94a3b8;
    letter-spacing: -2px;
    pointer-events: none;
}


/* Custom Feed Video Controls */
.feed-video-controls-left {
  position: absolute;
  bottom: 25px;
  left: 32px;
  z-index: 10;
  display: flex;
}
.feed-video-controls-right {
  position: absolute;
  bottom: 20px;
  right: 30px;
  z-index: 10;
  display: flex;
}

/* Revert to original tighter spacing inside the PDM */
.pdm-carousel-embedded .feed-video-controls-left {
  bottom: 12px;
  left: 12px;
}
.pdm-carousel-embedded .feed-video-controls-right {
  bottom: 12px;
  right: 12px;
}
.feed-volume-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-radius: 24px;
  background: transparent;
  transition: background 0.2s;
  padding: 10px 4px 4px 4px;
}
.feed-volume-container:hover {
  background: rgba(0, 0, 0, 0.45);
}
.feed-volume-slider {
  width: 6px;
  height: 0;
  background: transparent;
  outline: none;
  border-radius: 4px;
  cursor: pointer;
  writing-mode: vertical-lr;
  direction: rtl;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 0.2s, height 0.2s;
  pointer-events: none;
  accent-color: #026181;
}
.feed-volume-container:hover .feed-volume-slider {
  opacity: 1;
  height: 80px;
  pointer-events: auto;
}
.feed-video-btn {
  background: rgba(0, 0, 0, 0.35);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.feed-volume-container:hover .feed-video-btn {
  background: transparent;
}
.feed-video-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Custom Feed Video Scrubber Progress Bar */
.feed-video-progress-container {
  position: sticky;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 14px;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
  margin-top: -14px; /* Overlay on top of the track without expanding height */
  /* Rounded corners are inherited from .carousel-view */
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
}
.feed-video-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  transition: height 0.1s ease;
}
.feed-video-progress-container:hover .feed-video-progress-track {
  height: 5px;
}
.feed-video-progress-fill {
  height: 100%;
  width: 0%;
  background: #026181;
  position: absolute;
  left: 0;
  top: 0;
}
.feed-video-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #026181;
  border: 1.5px solid #ffffff;
  opacity: 0;
  transition: opacity 0.1s ease;
  pointer-events: none;
  z-index: 12;
}
.feed-video-progress-container:hover .feed-video-progress-thumb {
  opacity: 1;
}
