/* Blue theme colors - Light mode (default) */
:root {
  --primary-blue: #0d6efd;
  --primary-blue-rgb: 13, 110, 253;
  --soft-blue: #cfe2ff;
  --light-blue: #9ec5fe;
  --dark-blue: #0a58ca;
  --dark-blue-rgb: 10, 88, 202;
  --bg-blue: #f0f7ff;
  
  --header-bg-start: #0d6efd;
  --header-bg-end: #0a58ca;
  --footer-bg-start: #1a1f2e;
  --footer-bg-end: #0f1219;
  --footer-text: rgba(255, 255, 255, 0.7);
  --footer-heading: #ffffff;
  --footer-hover: #9ec5fe;
  
  --card-bg: #ffffff;
  --text-primary: #333333;
  --text-secondary: #6c757d;
  --border-color: #9ec5fe;
}

/* Dark mode */
[data-theme="dark"] {
  --primary-blue: #3d8bfd;
  --primary-blue-rgb: 61, 139, 253;
  --soft-blue: #1a3a5c;
  --light-blue: #5a9fff;
  --dark-blue: #5a9fff;
  --dark-blue-rgb: 90, 159, 255;
  --bg-blue: #0f1219;
  
  --header-bg-start: #1a3a5c;
  --header-bg-end: #0f1a2e;
  --footer-bg-start: #0a0d12;
  --footer-bg-end: #05070a;
  --footer-text: rgba(200, 210, 220, 0.7);
  --footer-heading: #e0e8f0;
  --footer-hover: #5a9fff;
  
  --card-bg: #1a1f2e;
  --text-primary: #e0e8f0;
  --text-secondary: #a0b0c0;
  --border-color: #2a3f5f;
}

body {
  background-color: var(--bg-blue);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header styles */
.site-header {
  background: linear-gradient(135deg, var(--header-bg-start) 0%, var(--header-bg-end) 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(var(--primary-blue-rgb), 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

.header-brand a {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.header-brand a:hover {
  opacity: 0.9;
}

.header-brand .brand-text {
  background: linear-gradient(135deg, #fff, #cfe2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.header-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-actions .btn-outline-light {
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}

.header-actions .btn-outline-light:hover {
  background-color: white;
  color: var(--primary-blue);
}

/* Theme toggle button */
.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(15deg);
}

@media (max-width: 768px) {
  .site-header .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-nav {
    order: 3;
    width: 100%;
  }
  
  .header-nav .nav {
    justify-content: center;
  }
  
  .header-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
}

/* Footer styles */
.site-footer {
  background: linear-gradient(135deg, var(--footer-bg-start) 0%, var(--footer-bg-end) 100%);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
  color: var(--footer-text);
  transition: background 0.3s ease;
}

.footer-section h5 {
  color: var(--footer-heading);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--footer-hover);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(var(--primary-blue-rgb), 0.4);
  color: white;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom-links a {
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--footer-hover) !important;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-bottom-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer-bottom-links a {
    display: block;
  }
}

/* Project image styling */
.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(var(--primary-blue-rgb), 0.2);
  transition: box-shadow 0.3s ease;
}

/* Sidebar menu styling */
.sidebar-menu {
  background: linear-gradient(135deg, var(--soft-blue) 0%, var(--card-bg) 100%);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(var(--primary-blue-rgb), 0.1);
  transition: background 0.3s ease;
}

.sidebar-menu .nav-link {
  color: var(--dark-blue);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
  background-color: var(--primary-blue);
  color: white;
  transform: translateX(5px);
}

.sidebar-menu .nav-link i {
  margin-right: 10px;
}

/* Content block styling */
.content-block {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(var(--primary-blue-rgb), 0.1);
  margin-bottom: 2rem;
  transition: background 0.3s ease;
}

.content-block h1 {
  color: var(--dark-blue);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.content-block p {
  color: var(--text-secondary);
}

.project-rich-text {
  color: var(--text-secondary);
  line-height: 1.75;
}

.project-rich-text p:last-child {
  margin-bottom: 0;
}

.project-rich-text a {
  color: var(--primary-blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.project-copy-section,
.project-conditions-section {
  margin-top: 2rem;
}

.project-conditions-card {
  background: linear-gradient(180deg, rgba(var(--primary-blue-rgb), 0.06), rgba(var(--primary-blue-rgb), 0.02));
  border: 1px solid rgba(var(--primary-blue-rgb), 0.12);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
}

.project-conditions-card h4 {
  margin-bottom: 0.75rem;
  color: var(--dark-blue);
}

/* Comments section */
.comments-section {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(var(--primary-blue-rgb), 0.1);
  transition: background 0.3s ease;
}

.comments-section h3 {
  color: var(--dark-blue);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Comment card styling */
.comment-card {
  background-color: var(--bg-blue);
  border-left: 4px solid var(--primary-blue);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.comment-card:hover {
  transform: translateX(5px);
}

.comment-author {
  color: var(--dark-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.comment-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.comment-text {
  color: var(--text-primary);
  margin-top: 0.75rem;
}

/* Comment form */
.comment-form {
  background: linear-gradient(135deg, var(--soft-blue) 0%, var(--card-bg) 100%);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
  transition: background 0.3s ease;
}

.comment-form h4 {
  color: var(--dark-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.comment-form .form-control {
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  padding: 0.75rem;
  background-color: var(--card-bg);
  color: var(--text-primary);
}

.comment-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-blue-rgb), 0.25);
}

.comment-form .form-control::placeholder {
  color: var(--text-secondary);
}

.comment-form .btn-submit {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.comment-form .btn-submit:hover {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--primary-blue-rgb), 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-image {
    height: 150px;
    margin-bottom: 1rem;
  }

  .sidebar-menu {
    margin-bottom: 1rem;
  }

  .content-block,
  .comments-section {
    padding: 1.25rem;
  }
}

/* Avatar placeholder */
.avatar-placeholder {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  margin-right: 10px;
  transition: background 0.3s ease;
}

/* Info boxes */
.info-box {
  background-color: var(--bg-blue);
  border-radius: 10px;
  padding: 1.5rem;
  transition: background-color 0.3s ease;
}

.info-box h4 {
  color: var(--dark-blue);
}

/* Gallery styles */
.gallery-item-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--primary-blue-rgb), 0.25);
}

.gallery-item-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item-wrapper:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(var(--primary-blue-rgb), 0.7), rgba(var(--dark-blue-rgb), 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item-wrapper:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 2rem;
  color: white;
}

.btn-load-more {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border: none;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--primary-blue-rgb), 0.4);
}

/* Carousel customization */
.carousel-inner {
  box-shadow: 0 4px 20px rgba(var(--primary-blue-rgb), 0.15);
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(var(--primary-blue-rgb), 0.5);
  border-radius: 50%;
  padding: 1rem;
}

.carousel-indicators button {
  background-color: var(--primary-blue);
}

/* Video styles */
.main-video-section {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(var(--primary-blue-rgb), 0.15);
}

.video-placeholder {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.project-inline-video,
.project-inline-video-frame {
  width: 100%;
  min-height: 420px;
  display: block;
  border: 0;
  background: #000;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--primary-blue-rgb), 0.4);
  transition: all 0.3s ease;
}

.video-play-button i {
  font-size: 2.5rem;
  color: white;
  margin-left: 4px;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(var(--primary-blue-rgb), 0.6);
}

/* Video catalog */
.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--primary-blue-rgb), 0.25);
}

.video-card-wrapper {
  position: relative;
  overflow: hidden;
}

.video-card-wrapper img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-card-wrapper img {
  transform: scale(1.05);
}

.video-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(var(--primary-blue-rgb), 0.7), rgba(var(--dark-blue-rgb), 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-card-overlay {
  opacity: 1;
}

.video-card-overlay i {
  font-size: 3rem;
  color: white;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-card-body {
  padding: 1rem;
}

.video-card-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.video-card:hover .video-card-title {
  color: var(--primary-blue);
}

/* Documentation styles */
.docs-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-blue);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.doc-item:hover {
  background: var(--soft-blue);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(var(--primary-blue-rgb), 0.15);
}

.doc-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-icon i {
  font-size: 1.75rem;
  color: white;
}

.doc-content {
  flex-grow: 1;
}

.doc-content h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.doc-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.doc-meta .badge {
  font-weight: 500;
  padding: 0.35rem 0.65rem;
}

.doc-actions {
  flex-shrink: 0;
}

/* Important document section */
.important-doc-section {
  position: relative;
}

.important-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.important-doc-badge i {
  font-size: 1rem;
}

.important-doc-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, var(--soft-blue) 0%, var(--card-bg) 100%);
  border: 2px solid var(--primary-blue);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(var(--primary-blue-rgb), 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.important-doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-blue), var(--dark-blue));
}

.important-doc-card:hover {
  box-shadow: 0 12px 40px rgba(var(--primary-blue-rgb), 0.3);
  transform: translateY(-3px);
}

.important-doc-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #dc3545, #c82333);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(220, 53, 69, 0.3);
}

.important-doc-icon i {
  font-size: 3.5rem;
  color: white;
}

.important-doc-content {
  flex-grow: 1;
}

.important-doc-content h3 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.important-doc-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.important-doc-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.important-doc-meta .badge {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.important-doc-meta span {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
}

.important-doc-actions {
  flex-shrink: 0;
  min-width: 200px;
}

@media (max-width: 992px) {
  .important-doc-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .important-doc-actions {
    width: 100%;
    min-width: auto;
  }
  
  .important-doc-icon {
    width: 80px;
    height: 80px;
  }
  
  .important-doc-icon i {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .doc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .doc-actions {
    width: 100%;
  }
  
  .doc-actions .btn {
    width: 100%;
  }
}

/* Project page styles */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--soft-blue), var(--light-blue));
  color: var(--dark-blue);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.section-badge i {
  font-size: 1rem;
}

/* Stats */
.project-stats {
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 15px rgba(var(--primary-blue-rgb), 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--primary-blue-rgb), 0.2);
}

.stat-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.75rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon i {
  font-size: 1.5rem;
  color: white;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Date cards */
.project-dates {
  margin-bottom: 2rem;
}

.date-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-blue);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.date-card:hover {
  background: var(--soft-blue);
  transform: translateX(5px);
}

.date-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.date-icon i {
  font-size: 1.5rem;
  color: white;
}

.date-content h6 {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.date-content p {
  color: var(--text-primary);
  font-size: 1rem;
}

/* Important video */
.important-video-section {
  margin-bottom: 2rem;
}

.important-video-card {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.important-video-card:hover {
  box-shadow: 0 8px 25px rgba(var(--primary-blue-rgb), 0.15);
}

.important-video-player {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  cursor: pointer;
}

.important-video-player img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.video-play-button-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--primary-blue-rgb), 0.4);
  transition: all 0.3s ease;
}

.video-play-button-large i {
  font-size: 1.8rem;
  color: white;
  margin-left: 3px;
}

.video-play-button-large:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.important-video-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.important-video-info h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.important-video-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.video-meta {
  display: flex;
  gap: 1.5rem;
}

/* Project stages */
.project-stages-section {
  margin-bottom: 2rem;
}

.stages-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stage-item {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.stage-item:hover {
  box-shadow: 0 4px 15px rgba(var(--primary-blue-rgb), 0.1);
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.stage-header:hover {
  background: var(--bg-blue);
}

.stage-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stage-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.stage-details h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.stage-details p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.stage-icon {
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.stage-header[aria-expanded="true"] .stage-icon i {
  transform: rotate(180deg);
}

.stage-collapse {
  border-top: 1px solid var(--border-color);
}

.stage-body {
  padding: 1.25rem;
  background: var(--bg-blue);
}

.stage-body p {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.stage-body ul {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.stage-body li {
  margin-bottom: 0.5rem;
}

.stage-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stage-status .badge {
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.stage-status .progress {
  flex-grow: 1;
  max-width: 200px;
}

/* Participation section */
.participation-section {
  margin-bottom: 2rem;
}

.participation-card {
  background: linear-gradient(135deg, var(--soft-blue) 0%, var(--card-bg) 100%);
  border: 2px solid var(--primary-blue);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(var(--primary-blue-rgb), 0.15);
}

.participation-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.participation-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.participation-icon i {
  font-size: 2rem;
  color: white;
}

.participation-title h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.participation-title p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.participation-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.participation-option {
  flex: 1;
  min-width: 140px;
}

.participation-option input {
  display: none;
}

.participation-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.participation-option label i {
  font-size: 1.5rem;
}

.participation-option input:checked + label {
  border-color: var(--primary-blue);
  background: var(--soft-blue);
  color: var(--primary-blue);
}

.participation-option:hover label {
  border-color: var(--light-blue);
  transform: translateY(-2px);
}

.participation-form {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.participation-form .form-label {
  color: var(--text-primary);
  font-weight: 500;
}

.btn-participate {
  background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-participate:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(var(--primary-blue-rgb), 0.4);
}

/* Success message */
.participation-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 2px solid #28a745;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #28a745, #1e7e34);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon i {
  font-size: 2.5rem;
  color: white;
}

.participation-success h4 {
  color: #155724;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.participation-success p {
  color: #155724;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .important-video-card {
    flex-direction: column;
  }
  
  .important-video-player {
    width: 100%;
  }
  
  .participation-header {
    flex-direction: column;
    text-align: center;
  }
  
  .participation-options {
    flex-direction: column;
  }
  
  .participation-option {
    min-width: 100%;
  }
  
  .stage-info {
    flex-direction: column;
    text-align: center;
  }
}

/* Notification styles */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #198754;
  min-width: 300px;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification i {
  font-size: 1.5rem;
  color: #198754;
}

.notification span {
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .notification {
    min-width: auto;
    width: 100%;
  }
}

/* 2026 UI stabilization */
html,
body {
  overflow-x: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
}

a,
.comment-text,
.activity-text,
.activity-comment-preview,
.contact-list span,
.footer-bottom-links a {
  overflow-wrap: anywhere;
}

.text-muted {
  color: var(--text-secondary) !important;
}

.brand-logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
}

.header-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-brand .brand-text {
  display: block;
  line-height: 1.05;
}

.brand-subtext {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  line-height: 1.25;
}

.header-nav {
  justify-self: center;
}

.header-nav .nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.header-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.header-actions {
  justify-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-actions .btn {
  white-space: nowrap;
}

body .form-control,
body .form-select,
body .form-check-input,
body .modal-content,
body .modal-header,
body .modal-footer {
  border-color: var(--border-color);
}

body .form-control,
body .form-select,
body .modal-content {
  background: var(--card-bg);
  color: var(--text-primary);
}

body .form-control::placeholder,
body .form-select::placeholder,
body textarea::placeholder {
  color: var(--text-secondary);
}

body .form-control:focus,
body .form-select:focus,
body .form-check-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-blue-rgb), 0.16);
}

body .form-check-input {
  background-color: var(--card-bg);
}

body .form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

body .alert-light {
  background: var(--bg-blue);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.site-footer .text-muted,
.site-footer .footer-links a,
.site-footer .footer-bottom-links a {
  color: var(--footer-text) !important;
}

.site-footer .footer-links a:hover,
.site-footer .footer-bottom-links a:hover {
  color: var(--footer-hover) !important;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-bottom-links a {
  margin-right: 0 !important;
}

.social-links {
  align-items: center;
}

.social-link-text {
  font-size: 0.8rem;
}

.social-link-badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.notification {
  border-left-color: var(--notification-accent, #198754);
}

.notification i {
  color: var(--notification-accent, #198754);
}

.notification.notification-success {
  --notification-accent: #198754;
}

.notification.notification-info {
  --notification-accent: var(--primary-blue);
}

.notification.notification-error {
  --notification-accent: #dc3545;
}

.participation-success.is-visible {
  display: block !important;
}

.project-participants-total,
.project-participants-count {
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%);
}

[data-theme="dark"] .carousel-caption {
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.05), rgba(5, 7, 10, 0.8));
  border-radius: 16px;
  padding: 1rem;
}

@media (max-width: 992px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .header-nav .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    grid-template-columns: 1fr;
  }

  .header-nav,
  .header-actions {
    justify-self: stretch;
  }

  .header-actions {
    position: static;
    top: auto;
    right: auto;
    justify-content: space-between;
  }

  .header-actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .brand-subtext {
    font-size: 0.72rem;
  }

  .content-block,
  .comments-section {
    padding: 1.25rem;
  }
}

/* 2026 mobile header */
.site-header .container {
  position: relative;
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 1rem 1.5rem;
}

.header-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
  min-width: 0;
}

.header-burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.25rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-burger:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.header-burger:active {
  transform: scale(0.98);
}

@media (max-width: 991.98px) {
  .site-header {
    padding: 0.55rem 0;
  }

  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .header-brand a {
    gap: 0.65rem;
  }

  .brand-logo-image {
    width: 32px;
    height: 32px;
  }

  .header-brand .brand-text {
    font-size: 1.15rem;
  }

  .brand-subtext {
    display: none;
  }

  .header-burger {
    display: inline-flex;
    justify-self: end;
  }

  .header-menu {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 18px;
    background: rgba(9, 18, 34, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(4, 14, 30, 0.2);
    backdrop-filter: blur(12px);
  }

  .site-header.is-menu-open .header-menu {
    display: grid;
  }

  .header-nav,
  .header-actions {
    justify-self: stretch;
  }

  .header-nav .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .header-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.78rem 0.9rem;
    border-radius: 14px;
    font-size: 0.96rem;
  }

  .header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: stretch;
  }

  .header-actions .theme-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .header-actions .btn {
    flex: 1 1 160px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .site-header {
    padding: 0.45rem 0;
  }

  .site-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-burger,
  .header-actions .theme-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .header-menu {
    padding: 0.7rem;
    border-radius: 16px;
  }

  .header-brand .brand-text {
    font-size: 1.02rem;
  }

  .header-nav .nav-link {
    font-size: 0.92rem;
    padding: 0.72rem 0.82rem;
  }

  .header-actions .btn {
    flex: 1 1 100%;
    min-height: 40px;
    font-size: 0.92rem;
  }
}
