@charset "UTF-8";

/* Green Theme - Override Bootstrap Primary Colors */
:root {
  --primary-color: #28a745;
  --primary-hover: #218838;
  --primary-light: rgba(40, 167, 69, 0.1);
}

.cm-navbar .navbar-nav .nav-link {
  font-size: 18px;
  padding-left: 16px;
  padding-right: 16px;
  color: #212529;
}
.cm-navbar .navbar-nav .nav-link.active {
  color: #28a745;
  font-weight: 600;
}

.navbar-nav-scroll {
  max-width: 100%;
  height: 2.5rem;
  overflow: hidden;
}

.navbar-nav-scroll .navbar-nav {
  overflow-x: auto;
  white-space: nowrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  -webkit-overflow-scrolling: touch;
}

.cm-hidden {
  display: none;
}

.cm-pointer {
  cursor: pointer;
}

.cm-ff-yh {
  font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", serif;
}

.cm-block-head-bottom {
  border-bottom: solid 2px;
  border-color: #28a745;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.cm-trans-bottom {
  width: 100%;
  bottom: 0;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4);
}

.cm-media-img {
  max-width: 180px;
  max-height: 120px;
}

@media screen and (max-width: 767px) {
  .cm-media-img {
    max-width: 120px;
    max-height: 80px;
  }
}

.cm-link {
  color: #212529;
}
.cm-link:hover {
  color: #28a745;
}

.es-highlight em {
  color: #dc3545;
  font-style: normal;
}

/* Bootstrap Button Overrides - Green Theme */
.btn-primary {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

.btn-primary:hover {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
}

.btn-outline-primary {
  color: #28a745 !important;
  border-color: #28a745 !important;
}

.btn-outline-primary:hover {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
  color: #fff !important;
}

.btn-secondary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.btn-secondary:hover {
  background-color: #5a6268 !important;
  border-color: #545b62 !important;
}

/* Text Colors */
.text-primary {
  color: #28a745 !important;
}

/* Background Colors */
.bg-primary {
  background-color: #28a745 !important;
}

/* Border Colors */
.border-primary {
  border-color: #28a745 !important;
}

/* Badge Colors */
.badge-primary {
  background-color: #28a745 !important;
}

.badge-secondary {
  background-color: #6c757d !important;
}

/* Pagination Active State */
.pagination .page-item.active .page-link {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

.pagination .page-link {
  color: #28a745;
}

.pagination .page-link:hover {
  color: #218838;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

/* List Group Active */
.list-group-item.active {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

/* Custom Controls */
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::after {
  background-color: #28a745 !important;
}

/* Nav Link Active */
.nav-link.active {
  color: #28a745 !important;
  border-color: #28a745 !important;
}

/* Form Focus States */
.form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* New styles for enhanced appearance */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.carousel-inner {
  border-radius: 8px !important;
  overflow: hidden;
}

.carousel-caption p {
  font-size: 1.2rem;
  font-weight: 600;
}

.article-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.btn {
  border-radius: 4px;
  transition: all 0.3s ease;
}

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

.card {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

/* Improved spacing and layout */
.container {
  max-width: 1200px;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-6 {
  margin-bottom: 2.5rem !important;
}

.p-5 {
  padding: 2.5rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .p-5 {
    padding: 1.5rem !important;
  }
  
  .h4 {
    font-size: 1.2rem;
  }
  
  .h5 {
    font-size: 1.1rem;
  }
}

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

/* Loading animation for buttons */
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Image hover effect */
img {
  transition: transform 0.3s ease;
}

img:hover {
  transform: scale(1.02);
}

/* Article list items - Green Theme */
ul.list-unstyled li {
  transition: all 0.2s ease;
}

ul.list-unstyled li:hover {
  background-color: rgba(40, 167, 69, 0.05);
  padding-left: 8px;
  border-left: 3px solid #28a745;
}

/* Pagination styles */
.pagination .page-link {
  border-radius: 4px;
  margin: 0 2px;
  transition: all 0.2s ease;
}

/* Link Colors */
a {
  color: #006D32;
}

a:hover {
  color: #218838;
  text-decoration: none;
}

/* Dropdown Active */
.dropdown-item.active, .dropdown-item:active {
  background-color: #28a745 !important;
}

/* Alert Primary */
.alert-primary {
  background-color: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.3);
  color: #155724;
}

/* Progress Bar */
.progress-bar {
  background-color: #28a745 !important;
}

/* Table Row Active */
.table-active, .table-active > td, .table-active > th {
  background-color: rgba(40, 167, 69, 0.1) !important;
}

/* Breadcrumb Active */
.breadcrumb-item.active {
  color: #28a745;
}

/* Modal Header */
.modal-header {
  border-bottom-color: #28a745;
}

/* Tooltip */
.tooltip-inner {
  background-color: #28a745;
}

.tooltip.bs-tooltip-top .arrow::before {
  border-top-color: #28a745;
}

/* Popover Header */
.popover-header {
  background-color: rgba(40, 167, 69, 0.1);
  border-bottom-color: rgba(40, 167, 69, 0.2);
}

/* Spinner */
.spinner-border.text-primary {
  color: #28a745 !important;
}

/* Toast Header */
.toast-header {
  background-color: rgba(40, 167, 69, 0.1);
}

/* Close Button */
.close:hover {
  color: #28a745;
}

/* Carousel Indicators */
.carousel-indicators li {
  background-color: rgba(40, 167, 69, 0.5);
}

.carousel-indicators li.active {
  background-color: #28a745;
}

/* Form Check Input */
.form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
}

/* Range Input */
.custom-range::-webkit-slider-thumb {
  background-color: #28a745;
}

.custom-range::-moz-range-thumb {
  background-color: #28a745;
}

.custom-range::-ms-thumb {
  background-color: #28a745;
}

/* Select Dropdown Focus */
.custom-select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Input Group Focus */
.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
  border-color: #28a745;
}

/* Navbar Brand */
.navbar-brand {
  color: #28a745 !important;
}

/* Active State for Channel Navigation */
.btn-primary.active,
.btn-primary:active {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
}

/* Focus Outline */
*:focus-visible {
  outline-color: #28a745;
}

/* Selection Color */
::selection {
  background-color: rgba(40, 167, 69, 0.3);
}

::-moz-selection {
  background-color: rgba(40, 167, 69, 0.3);
}
