#banner {
  width: 100%;
}

.opentext {
  font-weight: 500;
}

.sidebar {
  border-left: 2px solid #d6d6d6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar ul {
  padding-left: 1rem;
}

.sidebar h5 {
  padding-left: 1rem;
}

.sidebar a {
  font-size: 0.95em;
}

.parts-sidebar-heading {
  padding: 0.5rem 0;
  max-width: 100%;
  color: #003476;
  font-weight: bold;
}

.part-section {
  margin-bottom: 3em;
}

.part-title {
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5em;
  margin-bottom: 1.5em;
}

.chapter-section {
  margin-bottom: 2em;
}

.chapter-title {
  margin-bottom: 1em;
}

.article-number-title {
  color: #333;
  font-size: 1.1em;
}

.article-title-text {
  margin-bottom: 1em;
}

.article-paragraphs {
  line-height: 1.6;
  margin-bottom: 1em;
}

.pagination .page-item.active .page-link {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.comment-title {
  font-weight: bold;
  color: #003366;
  font-size: 1.25rem;
}

.comment-form-comment textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 1rem;
  font-size: 1rem;
}

.comment-form input[type="submit"],
.comment-form button:not(.btn-close) {
  background: #003476 0% 0% no-repeat padding-box;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin: 2rem 0;
}

.must-log-in {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.comments-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
}

.comment-list {
  list-style: none;
  padding-left: 0;
}

.comment-list li {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.comment-author {
  font-weight: bold;
}

.comment-link {
  display: inline-flex;
  align-items: center;
  color: #003476;
  font-weight: 500;
  text-decoration: none;
  transition: all ease 0.2s;
}

.comment-link i {
  margin-right: 5px;
  font-size: 14px;
}

.comment-link span {
  text-decoration: underline;
}

.comment-link:hover {
  color: #00aeef;
}

.comment-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #959496;
  padding-bottom: 0.5rem;
}

.comment-content {
  margin-top: 0.5rem;
}

h3.comment-title {
  color: #003476;
  font-size: 23px;
  font-weight: bold;
}

.comments-section {
  margin-top: 8rem;
  margin-bottom: 3rem;
  background: #478be234;
  padding: 3rem;
  border-radius: 20px;
}

.comment-subtitle {
  color: #515058;
}

.comment-participation-info {
  color: #515058;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.comment-count {
  color: #2563eb;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f9fafb;
  border-radius: 0.375rem;
}

.vote-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vote-buttons button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #6b7280;
  transition: color 0.2s ease-in-out;
}

.vote-buttons button svg {
  width: 1.5rem;
  height: 1.5rem;
}

.upvote:hover {
  color: #10b981;
}

.downvote:hover {
  color: #ef4444;
}

.votes {
  font-size: 14px;
  font-weight: 600;
  color: #959496;
}

.comment-body {
  flex: 1;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.comment-date {
  color: #959496;
}

.comment-author {
  font-weight: 500;
  font-size: 16px;
  color: #003476;
}

.comment-auth {
  color: #959496;
  font-size: 14px;
  font-weight: 500;
}

.comment-content p {
  color: #24282f;
  line-height: 1.625;
  margin-bottom: 0.75rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.triangle {
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 7px 8px 7px;
  border-color: transparent transparent #959496 transparent;
  transform: rotate(0deg);
}

.triangle-rotated {
  transform: rotate(180deg);
}

.voting {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.top-title {
  font-weight: 800;
}

.sidebar-list li {
  font-size: 17px;
  width: max-content;
}

@media screen and (max-width: 1024px) {
  .sidebar-list li {
    width: 100%;
  }
}

.sidebar-list li a,
.print-button,
.text-item {
  color: #292929;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: all ease 0.2s;
  font-weight: 400;
  background: none;
  border: none;
}

.sidebar-list li a:hover,
.print-button:hover {
  color: #00aeef;
}

.sidebar-list li a i,
.sidebar-list li button i {
  width: 30px;
}

.sidebar-list li a i,
.print-button i,
.text-item i {
  font-size: 25px;
  color: #003476;
}

.print-button {
  padding: 0;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Sidebar Styling */
.sidebar-part-link,
.sidebar-chapter-link,
.sidebar-article-link {
  cursor: pointer;
  color: #515058;
  font-weight: 500;
  transition: all ease 0.2s;
}

.sidebar-chapter-link:hover,
.sidebar-part-link:hover,
.sidebar-article-link:hover {
  color: #073476;
}

/* Icon Styling */
.toggle-icon {
  transition: transform 0.3s ease;
  color: #515058;
}

.toggle-header[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
  color: #073476;
}

/* Adjust margin for nested lists if needed */
.list-unstyled.ms-3 {
  margin-top: 5px;
}

.list-unstyled.show li {
  border-bottom: 1px solid #949390;
  padding-bottom: 0.5rem;
  padding: 1rem 0;
  transition: all ease 0.2s;
  display: flex;
  flex-direction: column;
}

.not-active-li:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

.list-unstyled.ms-3.show {
  border-left: 1px solid #949390;
  padding-left: 0;
}

.list-unstyled.ms-3.show li {
  padding-left: 1rem;
}

.list-unstyled.ms-3.show li:last-child {
  border-bottom: 0;
}

.toggle-header[aria-expanded="true"] {
  color: #073476;
}

.parts-sidebar-heading {
  position: relative;
}

.parts-sidebar-heading::before {
  content: "";
  display: block;
  height: 1px;
  background-color: #00aeef;
  position: absolute;
  left: -2px;
  top: 0;
  width: 5px;
  height: 35px;
  border-radius: 0px 5px 5px 0px;
}

.parts-sidebar-heading::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #073476;
  position: absolute;
  left: 15px;
  bottom: 0;
  width: 85%;
}

/* Style for the currently active article link */
.sidebar-article-link.active-article-link {
  color: #073476;
}

.pagination .page-item .page-link {
  color: #707070;
  /* Default text color for page links */
  border: none;
  /* Remove borders */
  padding: 0.5rem 0.75rem;
  /* Adjust padding as needed */
  margin: 0 0.25rem;
  /* Add some space between page numbers */
  border-radius: 0.25rem;
  /* Slightly rounded corners */
  font-weight: normal;
  /* Default font weight */
  text-decoration: none;
  /* Remove underline */
  outline: none !important;
}

.pagination .page-item.active .page-link {
  color: #003476;
  /* Blue color for active page */
  background-color: transparent;
  /* No background color for active page */
  font-weight: bold;
  /* Bold font for active page */
  border-bottom: 2px solid #003476;
  /* Blue underline for active page */
  border-radius: 0;
  /* Remove border-radius for active page to ensure a clean underline */
  padding-bottom: calc(0.5rem - 2px);
  /* Adjust padding to account for the border width */
}

.pagination .page-item .page-link:hover {
  color: #073476;
  /* Darker blue on hover for non-active links */
  text-decoration: none;
  /* Ensure no underline on hover */
}

.pagination .page-item .page-link:focus {
  outline: none !important;
  background: none !important;
  box-shadow: none !important;
}

.pagination .page-item.disabled .page-link {
  color: #707070;
  /* Color for disabled (previous/next) links */
  pointer-events: none;
  /* Disable click events */
  background-color: transparent;
  /* No background for disabled links */
  border-color: transparent;
  /* No border for disabled links */
}

/* Adjustments for the previous/next arrows */
.pagination .page-item .page-link[aria-label="Previous"],
.pagination .page-item .page-link[aria-label="Next"] {
  font-size: 1.2em;
  /* Make arrows slightly larger */
  border: none;
  background-color: transparent;
  padding: 0.5rem 0.5rem;
  margin: 0 0.5rem;
}

.button-comment {
  background-color: #073476;
  color: #fff;
  text-align: center;
  width: 100%;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.5rem 1.5rem;
  max-width: fit-content;
  font-size: 16px !important;
}

@media screen and (max-width: 992px) {
  .sidebar {
    margin: 3rem 0;
  }
}

/* Sidebar info tooltips */
.sidebar-info-icon {
  font-size: 14px !important;
  width: auto !important;
  color: #a0aab4 !important;
  opacity: 0.7;
  transition: opacity ease 0.2s;
}

.sidebar-list li a:hover .sidebar-info-icon {
  opacity: 1;
  color: var(--primary-light) !important;
}

.tooltip .tooltip-inner {
  background-color: var(--primary-dark);
  color: #fff;
  font-size: 13px;
  max-width: 260px;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(7, 52, 118, 0.18);
}

.tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="right"]
  .tooltip-arrow::before {
  border-right-color: var(--primary-dark);
}

.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
  border-left-color: var(--primary-dark);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: var(--primary-dark);
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="bottom"]
  .tooltip-arrow::before {
  border-bottom-color: var(--primary-dark);
}

.vote-buttons button.active .triangle {
  border-color: transparent transparent #006736 transparent;
}

.vote-buttons button.downvote.active .triangle {
  border-color: transparent transparent #b60202 transparent;
}

.vote-buttons .voting .upvote.active + .votes {
  color: #006736;
}

.vote-buttons .voting .downvote.active + .votes {
  color: #b60202;
}

.vote-buttons button.upvote:hover .triangle {
  border-color: transparent transparent #006736 transparent;
  transition: all ease 0.2s;
}

.vote-buttons button.downvote:hover .triangle {
  border-color: transparent transparent #b60202 transparent;
  transition: all ease 0.2s;
}

.vote-buttons .voting .upvote:hover + .votes {
  color: #006736;
  transition: all ease 0.2s;
}

.vote-buttons .voting .downvote:hover + .votes {
  color: #b60202;
  transition: all ease 0.2s;
}

/* Custom styles for the success modal */
.custom-success-modal .modal-content {
  border-radius: 20px;
  /* Rounded corners */
  border: none;
  padding: 20px;
}

.modal-dialog-centered {
  max-width: 750px;
}

.custom-success-modal .modal-body {
  padding: 4rem 0;
}

.custom-success-modal .modal-title {
  color: #003375;
  font-weight: bold;
  font-size: 1.8rem !important;
  margin: 2rem auto;
}

.custom-success-modal .modal-body div,
.modal-body a {
  color: #073476;
  font-size: 1.1rem;
  line-height: 1.6;
}

.custom-success-modal .modal-body div {
  margin: 4rem auto;
}

.custom-success-modal .btn-primary {
  background-color: #003375;
  /* Custom blue for the button */
  border-color: #003375;
  padding: 10px 30px;
  font-size: 1.1rem;
  border-radius: 4px;
  /* Slightly rounded button */
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 250px;
}

.custom-success-modal .btn-primary:hover {
  background-color: #fff;
  /* Darker blue on hover */
  border-color: #003375;
  color: #003375;
}

/* Hide default close button if you don't need it */
.custom-success-modal .btn-close {
  display: none;
}

@media screen and (max-width: 992px) {
  .modal-dialog-centered {
    max-width: 90%;
    margin: 0 auto;
  }

  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.alert-info {
  background-color: #003476;
  border: 1px solid transparent;
  color: #fff;
}

.alert-info a {
  color: #fff;
}

.btn-close {
  color: #fff !important;
  outline: none !important;
  box-shadow: none;
  border: 0;
  filter: brightness(0) invert(1);
  transition: all ease 0.2s;
}

.btn-close:focus {
  outline: 0 !important;
  box-shadow: none;
}

.active-article-li {
  background: #dae7f8;
  padding: 1rem;
}

.empty {
  background: #dae7f8;
  padding: 1.5rem;
  max-width: max-content;
  width: 100%;
  border-radius: 4px;
  margin-top: 4rem;
}

#captcha-img {
  width: 100%;
  max-width: 160px;
}

.deliberation-list {
  margin: 3rem 0;
}

.deliberation-item.article-only-item {
  padding: 1.2rem 0.8rem;
  background-color: #f5f5f5;
  margin: 0.2rem 0;
  color: #073476;
}

.deliberation-item.article-only-item:last-child {
  border-bottom: none;
}

.deliberation-list .comment-count {
  color: #646d76 !important;
  font-size: 0.875rem !important;
  min-width: 100px;
  flex-shrink: 0;
  white-space: nowrap;
}

.article-link.article-path {
  display: block;
  color: #007bff;
  line-height: 1.4;
}

.article-link.article-path:hover {
  color: #0056b3;
}

.article-breadcrumb {
  display: block;
  margin-bottom: 4px;
}

.part-path {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #999;
  background-color: #f0f0f0;
  padding: 1px 8px;
  border-radius: 4px;
  margin-right: 4px;
}

.chapter-path {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 400;
  color: #999;
  background-color: #f0f0f0;
  padding: 1px 8px;
  border-radius: 4px;
}

.article-title-text {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #073476;
}

.article-header {
  padding-left: 20px;
}

.article-header > .comment-count {
  transform: translateX(-20px);
}

@media screen and (max-width: 768px) {
  .article-header {
    flex-direction: column;
    gap: 1rem;
  }

  .deliberation-list .comment-count {
    margin: 0 !important;
    transform: translateX(0);
  }
}

@media print {
  header,
  footer,
  nav,
  body > main > div.ministry-name.d-flex.align-items-center.w-100,
  .col-md-4,
  .breadcrumbs-custom,
  #faq,
  .contact-box,
  .form-container,
  #commentform,
  .comment-respond {
    display: none !important;
  }

  .col-md-8 {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Spinner Styles */
.captcha-spinner {
  display: none;
  /* Hidden by default */
  margin-left: 8px;
  width: 30px;
  height: 30px;
  border: 2px solid #003375;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  box-sizing: border-box;
  line-height: 1;
}

.captcha-img {
  max-width: 140px !important;
}

.captcha-spinner.active {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Button State Styles (Customize colors as needed) --- */
.submit-button-loading {
  /* Dimmed/grayed out look */
  opacity: 0.7;
  cursor: wait;
  background-color: #5a6268;
}

.submit-button-success {
  /* Green success color */
  background-color: #28a745 !important;
  /* Use !important if needed to override base button styles */
}

/* --- Message Box Styles for better visibility --- */
.captcha-message {
  margin-top: 8px;
  padding: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.captcha-message-error {
  color: #721c24;
  /* Dark red text */
  background-color: #f8d7da;
  /* Light red background */
  border-color: #f5c6cb;
}

.captcha-message-success {
  color: #155724;
  /* Dark green text */
  background-color: #d4edda;
  /* Light green background */
  border-color: #c3e6cb;
}

.captcha-message-info {
  color: #494c4f;
  /* Dark gray text */
  background-color: #f2f2f2;
  /* Light gray background */
  border-color: #e3e3e3;
}

.button-comment:hover {
  transition: all ease 0.2s;
  background-color: #00b1ef;
}

.deliberationtitle {
  text-decoration: none;
}

.article-attachments {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-attachment-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #003476;
  font-weight: 600;
  text-decoration: none;
  transition: all ease 0.2s;
  background: #dae7f8;
  padding: 1.5rem;
  max-width: 300px;
  width: 100%;
  border-radius: 4px;
}

.article-attachment-link i {
  font-size: 25px;
  color: #003476;
  width: 30px;
  flex-shrink: 0;
  transition: all ease 0.2s;
}

.article-attachment-link:hover {
  color: #00aeef;
}

.article-attachment-link:hover i {
  color: #00aeef;
}

.table-borders table {
  border-collapse: collapse;
  width: 100%;
}

.bg-white table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.table-borders table th,
.table-borders table td {
  border: 1px solid #ccc;
  padding: 0.5rem 0.75rem;
}

th {
  font-weight: bold;
}

#main-content img {
  max-width: 400px;
}

/* Mobile floating comment bubble */
.mobile-comment-bubble {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #073476;
  color: #fff;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.mobile-comment-bubble:hover {
  background-color: #00b1ef;
  color: #fff;
  transform: scale(1.08);
}

@media screen and (max-width: 991px) {
  .mobile-comment-bubble {
    display: flex;
  }
}
