/* system CSS ------------------------------------------------------------------------------*/
@media screen and (min-width: 61rem) {

  body .layout-region--node-main,
  body .layout-region--node-footer,
  body .layout-region--main,
  body .layout-region--footer {
    max-width: 100%;
    width: 100%;
  }
}

body.user-logged-in header,
body.path-user header {
  position: relative;
  top: 0 !important;
}

.paragraphs-content-wrapper .summary-content:nth-child(1) {
  font-weight: 800;
  font-size: 110%;
}

#block-i2-theme-content .field--name-field-class {
  display: none;
}

.placeholder {
  background-color: unset;
}

.views-bulk-actions {
  margin-top: 60px;
}

.view-admin-webform-view-page.view-display-id-page_1 .views-field-operations ul.dropbutton>li:not(:first-child, :nth-child(2), :nth-child(3), :nth-child(4)),
.path-admin-nolimits .toolbar-icon-admin-toolbar-tools-extra-linkssystem-theme-settings-theme-bootstrap5,
.path-admin-nolimits .toolbar-icon-admin-toolbar-tools-extra-linkssystem-theme-settings-theme-claro,
.path-admin-nolimits .toolbar-icon-admin-toolbar-tools-extra-linkssystem-theme-settings-theme-olivero,
.path-admin-nolimits #block-claro-primary-local-tasks>nav>ul>li:first-child {
  display: none;
}


/* webform system CSS ------------------------------------------------------------------------------*/
.path-admin-formReviewer #block-claro-primary-local-tasks nav li:not(:first-child),
.path-admin-formReviewer form#webform-bulk-form table.webform-forms ul.dropbutton--multiple li,
.path-admin-formReviewer #block-claro-secondary-local-tasks ul.tabs>li {
  display: none;
}

.path-admin-formReviewer #block-claro-secondary-local-tasks ul.tabs>li:nth-child(1),
.path-admin-formReviewer #block-claro-secondary-local-tasks ul.tabs>li:nth-child(3),
.path-admin-formReviewer form#webform-bulk-form table.webform-forms ul.dropbutton--multiple li:nth-child(1),
.path-admin-formReviewer form#webform-bulk-form table.webform-forms ul.dropbutton--multiple li:nth-child(2),
.path-admin-formReviewer form#webform-bulk-form table.webform-forms ul.dropbutton--multiple li:nth-child(5) {
  display: block;
}


/* backend CSS ------------------------------------------------------------------------------*/
body.page-node-type-page.homepage-edit-page .field--name-field-details-paragraphs,
body.page-node-type-page.homepage-edit-page #edit-group-banner-section,
.field--name-field-homepage-details-paragraph {
  display: none;
}

body.page-node-type-page.homepage-edit-page .field--name-field-homepage-details-paragraph {
  display: block;
}

td>.form-item {
  padding: 0 10px;
  display: block !important;
}

/* Programme CSS ------------------------------------------------------------------------------*/
.node-programmes-form .field--name-field-tags #edit-field-tags>div:first-child label,
.node-programmes-form .field--name-field-tags #edit-field-tags>div:nth-child(2) label,
.node-programmes-edit-form .field--name-field-tags #edit-field-tags>div:first-child label,
.node-programmes-edit-form .field--name-field-tags #edit-field-tags>div:nth-child(2) label {
  font-weight: bold;
}

.node-programmes-form .field--name-field-tags #edit-field-tags>div:not(:first-child, :nth-child(2)),
.node-programmes-edit-form .field--name-field-tags #edit-field-tags>div:not(:first-child, :nth-child(2)) {
  margin-left: 35px;
}

.js-form-item-field-tags-52 {
  margin-left: 0 !important;
  padding-left: 0;
}

.js-form-item-field-tags-52 input,
.paragraph--type--common-section>.paragraph__column>.field--name-field-link {
  display: none;
}

/* SES Highlights CSS ------------------------------------------------------------------------------*/
.highlightsRightSwiper .swiper-slide {
  position: relative;
}

.highlightsRightSwiper .swiper-slide::before {
  content: '';
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid lightblue;
  border-right-color: #14833E;
  animation: l2 1s infinite linear;
  position: absolute;
  left: calc(50% - 25px);
  top: calc(50% - 25px);
  z-index: -1;
}

@keyframes l2 {
  to {
    transform: rotate(1turn)
  }
}

/* news&&events  CSS ------------------------------------------------------------------------------*/
.page-node-type-news-events .field--name-field-date span.date-separator {
  background: url(/themes/custom/i2_theme/image/icon/card_date_arrow.svg) center center no-repeat;
  text-indent: -9999px;
  display: inline-block;
  width: 52px;
  height: 26px;
  vertical-align: middle;
}

/* Staff CSS ------------------------------------------------------------------------------*/
#edit-field-profile-links-0-value {
  pointer-events: auto; /* 允許點擊事件 */
  background-color: #f0f0f0; /* 可选：更改背景颜色以指示不可编辑 */
  cursor: pointer; /* 顯示可點擊游標 */
}

/* 包裝整個表單項，讓整個區域都可以點擊 */
.js-form-item-field-profile-links-0-value {
  cursor: pointer;
  position: relative;
}

.js-form-item-field-profile-links-0-value::after {
  content: '📋';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 18px;
  opacity: 0.6;
}

label[for="edit-field-profile-links-0-value"] {
  cursor: pointer; /* 標籤也顯示可點擊游標 */
}

/* Profile Link 複製彈出視窗 CSS ------------------------------------------------------------------------------*/
.profile-link-copy-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-link-copy-popup.active {
  opacity: 1;
  visibility: visible;
}

.profile-link-copy-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.profile-link-copy-popup__content {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.profile-link-copy-popup.active .profile-link-copy-popup__content {
  transform: scale(1);
}

.profile-link-copy-popup__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.profile-link-copy-popup__header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.profile-link-copy-popup__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-link-copy-popup__close:hover {
  background-color: #f0f0f0;
  color: #333;
}

.profile-link-copy-popup__body {
  padding: 24px;
}

.profile-link-copy-popup__body label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.profile-link-copy-popup__input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-link-copy-popup__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
  background-color: #f9f9f9;
  color: #333;
}

.profile-link-copy-popup__input:focus {
  outline: none;
  border-color: #007bff;
  background-color: #fff;
}

.profile-link-copy-popup__copy-btn {
  padding: 12px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.profile-link-copy-popup__copy-btn:hover {
  background-color: #0056b3;
}

.profile-link-copy-popup__copy-btn:active {
  transform: scale(0.98);
}

.profile-link-copy-popup__copy-btn .copy-icon {
  font-size: 16px;
}

.profile-link-copy-popup__message {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 4px;
  display: none;
  margin-top: 8px;
}

.profile-link-copy-popup__message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.profile-link-copy-popup__message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 響應式設計 */
@media screen and (max-width: 768px) {
  .profile-link-copy-popup__content {
    width: 95%;
    margin: 20px;
  }

  .profile-link-copy-popup__input-wrapper {
    flex-direction: column;
  }

  .profile-link-copy-popup__copy-btn {
    width: 100%;
    justify-content: center;
  }
}