/* Custom CSS for CMS System */

.header-logo {
  width: auto;
  height: 60px;
  -webkit-filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.1));
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.1));
}

/* Carousel Enhancements */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-property: opacity;
  transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  z-index: 0;
  opacity: 0;
  transition: opacity 0s 0.6s;
}

.carousel-caption {
  bottom: 2rem;
  left: 15%;
  right: 15%;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators .active {
  background-color: #fff;
}

/* Root Variables */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  /* 主蓝色系 */
  --primary-blue: #0d6efd; /* 你的主色 */
  --blue-light: #4d94ff; /* 浅蓝 - 悬停/次要 */
  --blue-lighter: #80b3ff; /* 更浅蓝 - 背景/边框 */
  --blue-pale: #e6f0ff; /* 淡蓝 - 背景色 */

  /* 白色系 */
  --pure-white: #ffffff; /* 纯白 */
  --white-warm: #f8f9fa; /* 暖白 - 背景 */
  --white-soft: #f0f4f8; /* 柔白 - 卡片背景 */

  /* 柔和蓝色系 */
  --sky-blue: #87ceeb; /* 天蓝 - 点缀 */
  --powder-blue: #b0e0e6; /* 粉末蓝 - 柔和背景 */

  /* 中性灰色系 */
  --gray-light: #e9ecef; /* 浅灰 - 边框/分割线 */
  --gray-soft: #dee2e6; /* 柔灰 - 禁用状态 */
  --gray-pale: #f1f3f4; /* 淡灰 - 背景 */

  /* 点缀色 */
  --mint-green: #98fb98; /* 薄荷绿 - 成功/清新 */
  --peach-pink: #ffdab9; /* 桃粉色 - 温馨提示 */
  --lavender: #e6e6fa; /* 薰衣草紫 - 柔和点缀 */

  /* 文字颜色 */
  --text-dark: #2c3e50; /* 深蓝黑 - 主要文字 */
  --text-gray: #6c757d; /* 中灰 - 次要文字 */
  --text-light: #adb5bd; /* 浅灰 - 辅助文字 */
  --text-blue: #0d6efd; /* 蓝色文字 */

  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --border-radius: 0.375rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --bs-breakpoint-xl: 1680px;
}

/* Global Styles */
body {
  font-family: var(--font-family-sans-serif);
  line-height: 1.6;
  color: var(--dark-color);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Navigation Enhancements */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1030;
  background: white !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  color: var(--dark-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  border-radius: 0.375rem;
  margin: 0 0.25rem;
  color: var(--text-dark) !important;
}

.navbar-nav .nav-link:hover {
  transform: translateY(-1px);
  background-color: rgba(13, 110, 253, 0.08);
  color: var(--primary-color) !important;
}

/* 激活状态组合效果 - 背景色 + 底部指示线 + 文字颜色 */
.navbar-nav .nav-link.active {
  background-color: rgba(13, 110, 253, 0.12);
  color: var(--primary-color) !important;
  font-weight: 600;
  border-radius: 0.375rem;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
}

/* Navbar Scrolled State - Glass Morphism Effect */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Brand color change when scrolled */
.navbar-scrolled .navbar-brand {
  color: var(--dark-color) !important;
}

/* Nav links color change when scrolled */
.navbar-scrolled .navbar-nav .nav-link {
  color: var(--text-dark) !important;
}

.navbar-scrolled .navbar-nav .nav-link:hover {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color) !important;
}

/* 滚动状态下的激活状态保持组合效果 */
.navbar-scrolled .navbar-nav .nav-link.active {
  background-color: rgba(13, 110, 253, 0.15);
  color: var(--primary-color) !important;
}

.navbar-scrolled .navbar-nav .nav-link.active::after {
  background-color: var(--primary-color);
}

/* Dropdown menu adjustments for scrolled state */
.navbar-scrolled .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .dropdown-item {
  color: var(--text-dark);
}

.navbar-scrolled .dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
}

.navbar-scrolled .dropdown-item.active {
  background-color: var(--primary-color);
  color: white;
}

/* Navbar toggler adjustments for scrolled state */
.navbar-scrolled .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Enhanced mobile navbar styles */
@media (max-width: 991.98px) {
  .navbar-scrolled .navbar-collapse {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }

  .navbar-scrolled .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: var(--border-radius);
    color: var(--text-dark) !important;
  }
}

/* Smooth transition for navbar height changes */
.navbar-brand img,
.navbar-brand {
  transition: all 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
  transform: scale(0.9);
}

/* Add subtle animation to the glass effect */
@keyframes glassEffect {
  0% {
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
  }
  100% {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}

.navbar-scrolled {
  animation: glassEffect 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  .navbar-scrolled {
    background: rgba(255, 255, 255, 0.48) !important;
  }

  .navbar-scrolled .navbar-collapse {
    background: rgba(255, 255, 255, 0.48);
  }
}

/* Dropdown menu active state */
.dropdown-menu .dropdown-item.active {
  background-color: var(--primary-color);
  color: white;
}

.dropdown-menu .dropdown-item.active:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Dropdown Enhancements */
.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow-lg);
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-item {
  padding: 0.75rem 1.25rem;
  transition: all 0.2s ease;
  color: var(--text-dark);
}

.dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.08);
  color: var(--primary-color);
  transform: translateX(2px);
}

/* Card Enhancements */
.card {
  transition: all 0.3s ease;
  border-radius: var(--border-radius);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.card-img-top {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  transition: all 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Button Enhancements */
.btn {
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Feature Icons */
.feature-icon {
  transition: all 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Carousel Enhancements */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Pagination Enhancements */
.pagination .page-link {
  border-radius: var(--border-radius);
  margin: 0 2px;
  border: none;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow);
}

/* Accordion Enhancements */
.accordion-button {
  font-weight: 500;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-item {
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Form Enhancements */
.form-control,
.form-select {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  transform: translateY(-1px);
}

.form-label {
  font-weight: 500;
  color: var(--dark-color);
}

/* Contact Form Specific */
.contact-icon {
  transition: all 0.3s ease;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

/* List Group Enhancements */
.list-group-item {
  border: none;
  border-radius: var(--border-radius);
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
  line-height: 3;
  min-height: 64px;
}

.list-group-item:hover {
  background-color: var(--light-color);
  transform: translateX(5px);
}

.list-group-item.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Badge Enhancements */
.badge {
  font-weight: 500;
  border-radius: var(--border-radius);
}

/* Footer Enhancements */
footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #343a40 100%);
}

footer a {
  transition: all 0.3s ease;
}

footer a:hover {
  transform: translateY(-2px);
  color: var(--primary-color) !important;
}

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

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .display-5 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .card {
    margin-bottom: 1rem;
  }

  .carousel-caption {
    padding: 1rem;
  }

  .carousel-caption h5 {
    font-size: 1rem;
  }

  .carousel-caption p {
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .feature-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .feature-icon i {
    font-size: 1.5rem !important;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .breadcrumb,
  footer,
  .btn,
  .pagination {
    display: none !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #dee2e6 !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }
}

/* Accessibility Enhancements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators */
.btn:focus,
.form-control:focus,
.form-select:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid var(--dark-color);
  }

  .btn-outline-primary,
  .btn-outline-secondary,
  .btn-outline-success,
  .btn-outline-info,
  .btn-outline-warning,
  .btn-outline-danger {
    border-width: 2px;
  }
}

/* Product Categories Section */
.product-categories-section {
  padding: 5rem 0;
  background: #f8f9fa;
}

.product-categories-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
  text-transform: uppercase;
}

.product-category-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  min-height: 400px;
}

.product-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-category-card.even {
  background: #ffffff;
}

/* 背景图片样式 - 作为底图，默认全透明，悬浮时10%透明度 */
.product-category-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.product-category-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-category-card:hover .product-category-bg {
  opacity: 0.1;
}

.product-category-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  min-height: 400px;
  position: relative;
  z-index: 2;
}

.product-category-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.product-category-description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: center;
}

/* Old product-category-btn styles removed - see enhanced version below */

.product-category-image {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  position: relative;
  z-index: 2;
}

.product-category-image img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-category-card:hover .product-category-image img {
  transform: scale(1.05);
}

.product-category-placeholder {
  width: 200px;
  height: 200px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 3rem;
}

/* 查看更多产品按钮 - 居中显示 */
.product-categories-more-btn {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-categories-section {
    padding: 3rem 0;
  }

  .product-categories-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .product-category-content {
    padding: 2rem 1.5rem;
    min-height: 300px;
    text-align: center;
    align-items: center;
  }

  .product-category-image {
    padding: 1.5rem;
    min-height: 250px;
  }

  .product-category-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .product-category-description {
    font-size: 0.9rem;
  }

  .product-category-placeholder {
    width: 250px;
    height: 150px;
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .product-categories-section {
    padding: 2rem 0;
  }

  .product-category-content {
    padding: 1.5rem 1rem;
    min-height: 250px;
  }

  .product-category-image {
    min-height: 200px;
  }

  .product-category-title {
    font-size: 1.3rem;
  }

  .product-category-placeholder {
    width: 200px;
    height: 120px;
    font-size: 1.2rem;
  }
}

/* Section Title Styles with Animated Underline */
.section-title {
  position: relative;
  display: inline-block;
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background-color: #dee2e6;
  transition: all 0.8s ease-in-out;
}

.section-title:hover::after {
  background-color: #0d6efd;
  width: 240px;
}

@keyframes expandFromCenter {
  0% {
    width: 120px;
    background-color: #dee2e6;
  }
  50% {
    width: 140px;
    background-color: #6c9fff;
  }
  100% {
    width: 160px;
    background-color: #0d6efd;
  }
}

/* Product Categories Title Enhancement */
.product-categories-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #333;
  position: relative;
  display: inline-block;
  width: 100%;
  padding-bottom: 0.5rem;
}

.product-categories-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background-color: #dee2e6;
  transition: all 0.8s ease-in-out;
}

.product-categories-title:hover::after {
  background-color: #0d6efd;
  width: 160px;
}

/* Enhanced Product Category Button */
.product-category-btn {
  display: inline-block;
  background: transparent;
  color: #0d6efd;
  padding: 12px 30px;
  border: 2px solid #0d6efd;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-category-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #0d6efd;
  transition: width 0.3s ease;
  z-index: -1;
}

.product-category-btn:hover {
  color: white;
  border-color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.product-category-btn:hover::before {
  width: 100%;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .section-title::after,
  .product-categories-title::after,
  .product-category-btn::before {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== SIDEBAR COMPONENTS STYLES ===== */

/* Sidebar Container */
.sidebar {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Sidebar Title */
.sidebar-title {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Info Styles */
.contact-info {
  padding: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
  color: #6c757d;
  font-size: 0.9rem;
}

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

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

.contact-item span {
  flex: 1;
}

/* Category Item Styles */
.sidebar-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: #495057;
  text-decoration: none;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.3s ease;
}

.sidebar-category-item:last-child {
  border-bottom: none;
}

.sidebar-category-item:hover {
  background-color: #f8f9fa;
  color: #007bff;
  text-decoration: none;
}

.sidebar-category-item span {
  flex: 1;
  font-size: 0.9rem;
}

.category-action-btn {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 0.8rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.sidebar-category-item:hover .category-action-btn {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
}

/* Article Item Styles */
.sidebar-article-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: #495057;
  text-decoration: none;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.3s ease;
}

.sidebar-article-item:last-child {
  border-bottom: none;
}

.sidebar-article-item:hover {
  background-color: #f8f9fa;
  color: #007bff;
  text-decoration: none;
}

.article-title {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-action-btn {
  background: none;
  border: none;
  color: #6c757d;
  font-size: 0.8rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.sidebar-article-item:hover .article-action-btn {
  color: #007bff;
  background-color: rgba(0, 123, 255, 0.1);
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
  .sidebar {
    margin-bottom: 1rem;
  }

  .sidebar-title {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  .contact-info {
    padding: 0.8rem;
  }

  .sidebar-category-item,
  .sidebar-article-item {
    padding: 0.6rem 0.8rem;
  }
}

/* ===== CARD HEADER STYLES ===== */

/* Card Header - Primary Blue */
.card-header-primary-blue {
  background: var(--primary-blue);
  color: var(--pure-white);
}

/* Card Header - Info Color */
.card-header-blue-light {
  background: var(--blue-light);
  color: var(--pure-white);
}

.card:hover .card-header-blue-light {
  background: var(--primary-blue);
  color: var(--pure-white);
}

/* Card Header - Primary Color */
.card-header-primary {
  background: var(--primary-color);
  color: var(--pure-white);
}

/* ===== CONTACT ICON STYLES ===== */

/* Contact Icon - Primary Blue */
.icon-primary {
  background: var(--primary-blue);
  color: var(--pure-white);
}

/* Contact Icon - Blue Light */
.icon-blue-light {
  background: var(--blue-light);
  color: var(--pure-white);
}

/* Contact Icon - Blue Lighter */
.icon-blue-lighter {
  background: var(--blue-lighter);
  color: var(--pure-white);
}

/* Contact Icon - Sky Blue */
.icon-sky-blue {
  background: var(--sky-blue);
  color: var(--pure-white);
}

/* ===== TEXT COLOR STYLES ===== */

/* Text - Dark Color */
.text-color-dark {
  color: var(--text-dark);
}

/* Text - Gray Color */
.text-color-gray {
  color: var(--text-gray);
}

/* Link - Primary Blue */
.link-primary-blue {
  color: var(--primary-blue);
  text-decoration: none;
}

.link-primary-blue:hover {
  color: var(--blue-light);
}

/* ===== LIST ITEM STYLES ===== */

/* List Item - Transition */
.list-item-transition {
  transition: all 0.3s ease;
}

/* List Item - Text Dark */
.list-item-text-dark {
  color: var(--text-dark);
}

/* List Item - Icon Primary Blue */
.list-item-icon-primary {
  color: var(--primary-blue);
}

/* List Item - Icon Info */
.list-item-icon-info {
  color: var(--info-color);
}

/* ===== PAGE HEADER STYLES ===== */

/* Page Header - Blue Gradient */
.page-header-blue-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 50%,
    var(--blue-light) 50%
  );
  color: var(--pure-white);
}

/* Map Section - Blue Gradient */
.map-section-blue-gradient {
  background: linear-gradient(
    135deg,
    var(--blue-light) 50%,
    var(--blue-lighter) 50%
  );
  color: var(--pure-white);
}
