/* ========================================
   Views Inline Styles - Consolidated
   ======================================== */
.py-6{
    overflow-x: clip;
}

/* ========================================
   Gradient Backgrounds
   ======================================== */
.gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-light {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.edit-form-bg {
  background: linear-gradient(135deg, #3d3d5c 0%, #2d2d3d 100%) !important;
  border-radius: 8px;
  padding: 2rem;
}

/* ========================================
   Card Hover Effects
   ======================================== */
.news-card:hover,
.result-card:hover,
.event-card:hover,
.usecase-card:hover,
.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   Button Hover Effects
   ======================================== */
.btn-hover:hover {
  transform: translateX(5px);
  background-color: #667eea !important;
  color: white !important;
  border-color: #667eea !important;
}

/* ========================================
   Info Items
   ======================================== */
.info-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* ========================================
   Card Styling
   ======================================== */
.card-rounded {
  border-radius: 1rem;
}

.card-header-rounded {
  border-radius: 1rem 1rem 0 0;
}

/* ========================================
   Text Styling
   ======================================== */
.text-shadow-subtle {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-uppercase-small {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.badge-info-rounded {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========================================
   Image Styling
   ======================================== */
.img-profile {
  width: 200px;
  height: 200px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.img-logo-contain {
  max-height: 40px;
  object-fit: contain;
}

/* ========================================
   Button Styling
   ======================================== */
.btn-rounded-sm {
  border-radius: 0.5rem;
}

.btn-group-rounded {
  border-radius: 0.5rem;
}

.btn-group-rounded .btn:first-child {
  border-radius: 0.5rem 0 0 0.5rem;
}

.btn-group-rounded .btn:last-child {
  border-radius: 0 0.5rem 0.5rem 0;
}

.btn-delete {
  cursor: pointer;
}

/* ========================================
   Form Elements
   ======================================== */
.input-hidden {
  display: none;
}

.accordion-rounded {
  border-radius: 0.75rem;
}

/* ========================================
   Sidebar
   ======================================== */
#filesList {
  min-height: 300px;
}

/* ========================================
   Maps & Leaflet
   ======================================== */
#partnerMap {
  border-radius: 0 0 1rem 1rem;
}

.leaflet-popup-content {
  font-size: 13px;
  padding: 8px !important;
}

.leaflet-popup-content a {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
}

.leaflet-popup-content a:hover {
  text-decoration: underline;
}

.partner-marker {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.partner-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.leaflet-control-attribution {
  font-size: 11px;
}

/* ========================================
   Partner Logo Animation
   ======================================== */
.partner-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  padding: 8px;
}

.partner-logo-link:hover {
  transform: scale(1.05);
}

.partner-logo-link:hover .partner-logo-img {
  filter: grayscale(0%);
}

.partner-logo-img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(60%);
  transition: filter 0.3s ease;
}

/* ========================================
   Navbar Styling
   ======================================== */
.navbar-brand-link {
  text-decoration: none;
}

.navbar-svg-icon {
  margin-right: 10px;
}

.navbar-divider {
  height: 30px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.navbar-dropdown-btn {
  cursor: pointer;
}

/* ========================================
   Gradient Text
   ======================================== */
.text-gradient-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-violet {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}

/* ========================================
   Button Variations & Transitions
   ======================================== */
.btn-dropdown-hover:hover {
  color: #212529 !important;
  transition: all 0.2s;
}

.btn-transition {
  transition: all 0.2s ease;
}

.btn-transition-3s {
  transition: all 0.3s ease;
}

/* ========================================
   Card Styling - Extended
   ======================================== */
.card-rounded-sm {
  border-radius: 0.75rem;
}

.card-header-rounded-sm {
  border-radius: 0.75rem 0.75rem 0 0;
}

.card-img-rounded-left {
  border-radius: 0.75rem 0 0 0.75rem;
}

.card-overlay-dark {
  background: rgba(0, 0, 0, 0.3);
}

.card-sticky-top {
  top: 80px;
  border-radius: 1rem;
  overflow: hidden;
  position: sticky;
}

.card-sticky-top-100 {
  top: 100px;
  border-radius: 0.75rem;
  position: sticky;
  overflow: hidden;
}

.card-gallery:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* ========================================
   Gradient Variations
   ======================================== */
.gradient-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.gradient-cyan {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
}

.gradient-overlay-dark {
  background: rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   Text Styling - Extended
   ======================================== */
.line-height-xs {
  line-height: 1.3;
}

.line-height-sm {
  line-height: 1.4;
}

.line-height-md {
  line-height: 1.5;
}

.line-height-lg {
  line-height: 1.6;
}

.text-wrap {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ========================================
   Image Styling - Extended
   ======================================== */
.img-thumbnail-sm {
  max-height: 100px;
  max-width: 150px;
}

.img-thumbnail-md {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
}

.img-thumbnail-lg {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
}

.img-object-cover {
  object-fit: cover;
}

.img-object-contain {
  object-fit: contain;
}

.img-full-width {
  max-width: 100%;
}

.img-max-400 {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}

/* ========================================
   Form Elements - Extended
   ======================================== */
.input-file-hidden {
  display: none;
}

.accordion-button-rounded {
  border-radius: 0.75rem;
}

/* ========================================
   Sidebar & Layout - Extended
   ======================================== */
#searchResults {
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

#partnerResults {
  max-height: 300px;
  overflow-y: auto;
}

#selectedPartnerCard {
  display: none;
}

#projectRoleSection {
  display: none;
}

#newPartnerSection {
  display: none;
}

#logoPreview {
  display: none;
}

#partner-logo-preview {
  display: none;
}

#linkFields {
  display: none;
}

.main-padding-top {
  padding-top: 80px;
}

/* ========================================
   Maps & Leaflet - Extended
   ======================================== */
#partnerMap {
  flex: 1;
  border-radius: 0 0 1rem 1rem;
  min-height: 500px;
}

/* ========================================
   Navbar Styling - Extended
   ======================================== */
.navbar-svg-logo {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.navbar-avatar-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* ========================================
   Border Styling
   ======================================== */
.border-left-primary {
  border-left: 4px solid #667eea;
}

.border-left-primary-md {
  border-left: 3px solid #667eea;
}

.border-bottom-subtle {
  border-bottom: 1px solid #e9ecef;
}

.border-bottom-dark {
  border-bottom: 1px solid #dee2e6;
}

.border-subtle {
  border: 1px solid rgba(0, 0, 0, 0.3);
}

/* ========================================
   Display & Visibility
   ======================================== */
.display-none {
  display: none !important;
}

.display-flex {
  display: flex;
}

.display-inline-flex {
  display: inline-flex;
}

.display-block {
  display: block;
}

.flex-column {
  flex-direction: column;
}

.gap-sm {
  gap: 4px;
}

.gap-md {
  gap: 6px;
}

/* ========================================
   Positioning
   ======================================== */
.position-relative-flex {
  position: relative;
  display: flex;
  gap: 4px;
}

/* ========================================
   Carousel & Slider
   ======================================== */
.carousel-rounded {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-control {
  width: 60px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
}

.carousel-indicators-static {
  position: static;
  margin: 0;
}

.carousel-indicator-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(245, 245, 240, 0.6);
  cursor: pointer;
  margin: 0 6px;
  border: 2px solid rgba(245, 245, 240, 0.8);
}

/* ========================================
   Badges & Labels
   ======================================== */
.badge-with-padding {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.badge-label {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  white-space: nowrap;
  margin-right: 0.3rem;
}

/* ========================================
   Detail Pages
   ======================================== */
.section-edit-display {
  display: none;
}

.editor-textarea {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   Partner Card Styling
   ======================================== */
.partner-logo-box {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px solid #667eea;
  padding: 8px;
  background: white;
}

.partner-placeholder-box {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 2px solid #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   Stats Card Styling
   ======================================== */
.stats-circle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f8f9fa;
  border-radius: 50%;
  padding: 12px;
}

.stats-table-header {
  background-color: #f8f9fa;
}

.stats-table-font {
  font-size: 0.95rem;
}

.stats-item-light {
  background: linear-gradient(to right, rgba(102, 126, 234, 0.1), transparent);
  border-left: 3px solid #667eea;
  padding: 12px;
  border-radius: 0.5rem;
}

/* ========================================
   Footer Styling
   ======================================== */
.footer-dropdown-menu {
  min-width: 180px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.dropdown-item-hover {
  color: #212529;
  transition: all 0.2s;
}

.dropdown-divider-custom {
  border-color: #dee2e6;
  margin: 0.3rem 0;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section-carousel {
  min-height: 400px;
}

.hero-background-overlay {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 400px;
}

.hero-text-center {
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
}

.hero-placeholder {
  opacity: 0.8;
}

/* ========================================
   Item Image Styling
   ======================================== */
.item-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.item-link-mono {
  font-family: monospace;
}

/* ========================================
   Text Size Variants
   ======================================== */
.card-title-md {
  font-size: 0.95rem;
}

.badge-text-xs {
  font-size: 0.65rem;
}

/* ========================================
   Text Truncation
   ======================================== */
.text-truncate-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.text-truncate-line p {
  margin: 0;
  display: inline;
  white-space: nowrap;
}

.text-truncate-line em,
.text-truncate-line strong,
.text-truncate-line span {
  display: inline;
  white-space: nowrap;
}

/* ========================================
   Sticky Card Styling
   ======================================== */
.card-sticky {
  top: 80px;
  border-radius: 1rem;
  overflow: hidden;
  position: sticky;
}

/* ========================================
   Partner/User Header Images
   ======================================== */
.partner-logo-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.6);
  padding: 10px;
}

.partner-logo-placeholder {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.user-header-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.icon-white {
  color: white;
}

/* ========================================
   Section Action Bar
   ======================================== */
.section-action-bar {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

/* ========================================
   Image Preview & Thumbnails
   ======================================== */
.img-preview-lg {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.img-thumb-sm {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

/* ========================================
   Form Input Styling
   ======================================== */
.input-uppercase {
  text-transform: uppercase;
}

.role-input-md {
  width: 200px;
}

/* ========================================
   Timeline Styles
   ======================================== */
.timeline-scroll {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  max-height: 70vh;
  overflow: hidden;
}

.timeline-years {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
}

.timeline-year {
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  background: #eef2ff;
}

.timeline-year:hover {
  background: #e0e7ff;
}

.timeline-content {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
}

.timeline-year-block {
  padding-bottom: 12px;
  border-left: 3px solid #667eea;
  margin-left: 6px;
  padding-left: 18px;
}

.timeline-year-block h4 {
  color: #374151;
}

.timeline-content .card {
  border-left: 4px solid #667eea;
}

/* ========================================
   Responsive Media Queries
   ======================================== */
@media (max-width: 991px) {
  .sticky-top {
    position: relative !important;
    top: 0 !important;
  }

  .timeline-scroll {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .timeline-years {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
  }

  .timeline-content {
    max-height: none;
    overflow: visible;
  }
}

/* ========================================
   Result Detail Page
   ======================================== */
.btn-left-rounded {
  border-radius: 0.5rem 0 0 0.5rem;
}

.btn-right-rounded {
  border-radius: 0 0.5rem 0.5rem 0;
}

.card-content-rounded {
  border-radius: 1rem;
  overflow: hidden;
}

/* ========================================
   Markdown Body Styling
   ======================================== */
.markdown-body {
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.markdown-body h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.markdown-body h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.875rem;
  color: #1f2937;
}

.markdown-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  color: #374151;
}

.markdown-body p {
  margin-bottom: 1rem;
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.markdown-body li {
  margin-bottom: 0.5rem;
}

.markdown-body code {
  background-color: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: 'Monaco', 'Consolas', monospace;
}

.markdown-body pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.markdown-body pre code {
  background-color: transparent;
  padding: 0;
  color: #f9fafb;
}

.markdown-body blockquote {
  border-left: 4px solid #667eea;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 1rem;
  color: #6b7280;
  font-style: italic;
  background-color: #f9fafb;
  padding: 1rem 1rem 1rem 1.5rem;
  border-radius: 0.25rem;
}

.markdown-body a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s ease;
}

.markdown-body a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.markdown-body th,
.markdown-body td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.markdown-body th {
  background-color: #667eea;
  color: white;
  font-weight: 600;
}

.markdown-body tr:nth-child(even) {
  background-color: #f9fafb;
}

.btn-group .btn {
  transition: all 0.3s ease;
}

.btn-group .btn:hover {
  transform: translateY(-2px);
}
