/* Resource category providers — corporate directory */

.resource-details-page {
  background: #f4f6f5;
}

.resource-details-section {
  padding: 3.5rem 0 5rem;
}

.resource-details-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.resource-details-toolbar__meta {
  margin: 0;
  color: #5a6560;
  font-size: 1rem;
}

.resource-details-toolbar__count {
  display: inline-block;
  background: rgba(17, 99, 51, 0.1);
  color: #116333;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-right: 0.5rem;
}

.resource-details-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #116333;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.resource-details-back:hover {
  background: #0a4d28;
  transform: translateY(-1px);
  color: #fff !important;
}

.provider-grid > [class*="col-"] {
  margin-bottom: 2rem;
  display: flex;
}

.provider-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(17, 99, 51, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(8, 47, 24, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(8, 47, 24, 0.12);
}

.provider-card__logo {
  height: 150px;
  background: linear-gradient(145deg, #0d3d22 0%, #116333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
}

.provider-card__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
}

.provider-card__logo img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.provider-card__body {
  flex: 1 1 auto;
  padding: 1.35rem 1.4rem 1rem;
  display: flex;
  flex-direction: column;
}

.provider-card__title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0d3d22;
  margin: 0 0 1rem;
  line-height: 1.4;
  min-height: 3rem;
}

.provider-card__list {
  margin: 0;
  flex: 1 1 auto;
}

.provider-card__row {
  margin-bottom: 0.85rem;
}

.provider-card__row:last-child {
  margin-bottom: 0;
}

.provider-card__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a8680;
  margin-bottom: 0.25rem;
}

.provider-card__value {
  font-size: 1.02rem;
  line-height: 1.55;
  color: #2f3b36;
  word-break: break-word;
}

.provider-card__footer {
  padding: 0 1.4rem 1.35rem;
}

.provider-card__footer--dual {
  display: flex;
  gap: 0.65rem;
}

.provider-card__footer--dual .provider-card__edit,
.provider-card__footer--dual .provider-card__gallery {
  flex: 1 1 50%;
  min-width: 0;
}

.provider-card__gallery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #116333;
  border: 1px solid #116333;
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 0.65rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.provider-card__gallery:hover {
  background: #0a4d28;
  border-color: #0a4d28;
  color: #fff !important;
  text-decoration: none !important;
}

.provider-card__gallery--full {
  width: 100%;
  display: flex;
}

.provider-card__gallery-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.35rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.member-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.15rem;
}

.member-gallery-grid__item {
  display: block;
  text-decoration: none !important;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 99, 51, 0.12);
  box-shadow: 0 8px 24px rgba(8, 47, 24, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  background: #fff;
}

.member-gallery-grid__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(8, 47, 24, 0.16);
}

.member-gallery-grid__frame {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eef2ef;
}

.member-gallery-grid__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.member-gallery-grid__item:hover .member-gallery-grid__frame img {
  transform: scale(1.06);
}

.member-gallery-grid__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 31, 16, 0.72) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.member-gallery-grid__item:hover .member-gallery-grid__overlay {
  opacity: 1;
}

.member-gallery-grid__zoom {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: #116333;
  border-radius: 50%;
  font-size: 1.35rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* SimpleLightbox — corporate theme on profile page */
.company-profile-page .sl-overlay {
  background: rgba(6, 31, 16, 0.94) !important;
  opacity: 1 !important;
}

.company-profile-page .sl-wrapper .sl-close {
  display: block !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  width: 48px !important;
  height: 48px !important;
  line-height: 44px !important;
  font-size: 2rem !important;
  text-align: center;
  transition: background 0.2s ease;
}

.company-profile-page .sl-wrapper .sl-close:hover {
  background: rgba(255, 255, 255, 0.22);
  opacity: 1 !important;
}

.company-profile-page .sl-wrapper .sl-counter {
  display: block !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.company-profile-page .sl-wrapper .sl-navigation {
  display: block !important;
}

.company-profile-page .sl-wrapper .sl-navigation button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 50% !important;
  width: 52px !important;
  height: 52px !important;
  line-height: 1 !important;
  font-size: 1.75rem !important;
  margin-top: -26px !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.company-profile-page .sl-wrapper .sl-navigation button:hover {
  background: rgba(212, 175, 55, 0.35) !important;
  opacity: 1 !important;
  transform: scale(1.05);
}

.company-profile-page .sl-wrapper .sl-navigation button.sl-prev {
  left: 16px !important;
}

.company-profile-page .sl-wrapper .sl-navigation button.sl-next {
  right: 16px !important;
}

.company-profile-page .sl-wrapper .sl-caption {
  background: rgba(6, 31, 16, 0.88) !important;
  color: #fff !important;
  font-size: 0.92rem !important;
  padding: 0.75rem 1rem !important;
  border-radius: 8px;
  max-width: 90%;
  margin: 0 auto;
}

@media (max-width: 575.98px) {
  .member-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .company-profile-page .sl-wrapper .sl-navigation button {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.35rem !important;
    margin-top: -21px !important;
  }

  .company-profile-page .sl-wrapper .sl-navigation button.sl-prev {
    left: 8px !important;
  }

  .company-profile-page .sl-wrapper .sl-navigation button.sl-next {
    right: 8px !important;
  }
}

@media (max-width: 575.98px) {
  .provider-card__footer--dual {
    flex-direction: column;
  }
}

.provider-card__edit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(17, 99, 51, 0.28);
  color: #116333;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.provider-card__edit:hover {
  background: #116333;
  border-color: #116333;
  color: #fff;
}

.resource-details-empty {
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  color: #5a6560;
  border: 1px solid rgba(17, 99, 51, 0.1);
}

/* OTP modal — compact professional dialog */
.member-auth-modal .modal-dialog.member-auth-modal__dialog {
  max-width: 420px;
  width: calc(100% - 2rem);
  margin: 1.5rem auto;
}

.member-auth-modal .modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(8, 47, 24, 0.2);
}

.member-auth-modal__header {
  background: linear-gradient(125deg, #082f18 0%, #116333 100%);
  color: #fff;
  padding: 1.35rem 1.4rem 1.25rem;
  border: none;
  text-align: center;
  position: relative;
}

.member-auth-modal__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  font-size: 1.35rem;
}

.member-auth-modal__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 0.3rem;
}

.member-auth-modal__title {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}

.member-auth-modal__company {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.88;
  margin: 0.35rem 0 0;
  line-height: 1.4;
  word-break: break-word;
}

.member-auth-modal__close {
  color: #fff;
  opacity: 0.8;
  text-shadow: none;
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  padding: 0;
  font-size: 1.35rem;
}

.member-auth-modal__close:hover {
  opacity: 1;
}

.member-auth-modal__body {
  padding: 1.35rem 1.4rem 1.4rem;
}

.member-auth-step {
  display: none;
}

.member-auth-step.is-active {
  display: block;
}

.member-auth-form-group {
  margin-bottom: 1.15rem;
}

.member-auth-form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5a53;
  margin-bottom: 0.45rem;
}

.member-auth-form-group input {
  width: 100%;
  border: 1px solid #d7e2dc;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.member-auth-form-group input::placeholder {
  font-size: 1rem;
}

.member-auth-form-group input:focus {
  outline: none;
  border-color: #116333;
  box-shadow: 0 0 0 3px rgba(17, 99, 51, 0.12);
}

.member-auth-help {
  font-size: 0.95rem;
  color: #6b7570;
  line-height: 1.55;
  margin-bottom: 1rem;
  text-align: center;
}

.member-auth-alert {
  display: none;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.member-auth-alert.is-visible {
  display: block;
}

.member-auth-alert--error {
  background: #fef2f2;
  color: #b42318;
  border: 1px solid #fecdca;
}

.member-auth-alert--success {
  background: #f0f7f3;
  color: #116333;
  border: 1px solid #c8e0d2;
}

.member-auth-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.member-auth-actions--stack {
  flex-direction: column;
}

.member-auth-btn--block {
  width: 100%;
}

.member-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.member-auth-btn--primary {
  background: #116333;
  color: #fff;
}

.member-auth-btn--primary:hover {
  background: #0a4d28;
}

.member-auth-btn--ghost {
  background: transparent;
  color: #116333;
  border: 1px solid rgba(17, 99, 51, 0.28);
}

.member-auth-btn--ghost:hover {
  background: rgba(17, 99, 51, 0.06);
}

.member-auth-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.member-auth-otp-input {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 1.3rem !important;
  font-weight: 700;
  max-width: 240px;
  margin: 0 auto;
  display: block;
}

.member-auth-resend {
  font-size: 0.9rem;
  color: #6b7570;
  margin-top: 0.85rem;
  text-align: center;
  line-height: 1.6;
}

.member-auth-resend button {
  background: none;
  border: none;
  color: #116333;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.member-auth-resend button:disabled {
  color: #9aa5a0;
  cursor: not-allowed;
}

/* Edit profile page */
.edit-profile-page {
  background: #f4f6f5;
}

.edit-profile-section {
  padding: 3.5rem 0 5rem;
}

.edit-profile-card {
  background: #fff;
  border: 1px solid rgba(17, 99, 51, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(8, 47, 24, 0.08);
  overflow: hidden;
}

.edit-profile-card__header {
  background: linear-gradient(125deg, #082f18 0%, #116333 100%);
  color: #fff;
  padding: 1.75rem 2rem;
}

.edit-profile-card__header h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
}

.edit-profile-card__header p {
  margin: 0.45rem 0 0;
  opacity: 0.85;
  font-size: 0.95rem;
}

.edit-profile-card__body {
  padding: 2rem;
}

.edit-profile-logo-preview {
  width: 180px;
  height: 120px;
  border: 1px dashed rgba(17, 99, 51, 0.28);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8faf9;
  margin-bottom: 1rem;
  overflow: hidden;
}

.edit-profile-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.edit-profile-form .form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5a53;
}

.edit-profile-form .form-control {
  border-radius: 8px;
  border-color: #d7e2dc;
  min-height: 46px;
}

.edit-profile-form .form-control:focus {
  border-color: #116333;
  box-shadow: 0 0 0 3px rgba(17, 99, 51, 0.12);
}

.edit-profile-form .member-portal-subsection {
  margin-top: 1.25rem;
}

.edit-profile-form .member-portal-categories {
  margin-top: 0.25rem;
}

.edit-profile-file-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #116333;
  text-decoration: none !important;
}

.edit-profile-file-link:hover {
  color: #0a4d28;
  text-decoration: underline !important;
}

.edit-profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.edit-profile-submit {
  background: #116333;
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
}

.edit-profile-submit:hover {
  background: #0a4d28;
}

.edit-profile-cancel {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(17, 99, 51, 0.28);
  color: #116333;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edit-profile-success {
  background: #f0f7f3;
  border: 1px solid #c8e0d2;
  color: #116333;
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.5rem;
}

.edit-profile-success__text {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.edit-profile-success__back {
  display: inline-flex;
}

/* Edit profile — gallery upload */
.edit-profile-gallery {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(17, 99, 51, 0.12);
}

.edit-profile-gallery__head {
  margin-bottom: 1.35rem;
}

.edit-profile-gallery__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d3d22;
  margin: 0 0 0.45rem;
}

.edit-profile-gallery__hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b7570;
}

.edit-profile-gallery__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5a53;
  margin-bottom: 0.85rem;
}

.edit-profile-gallery__label span {
  color: #116333;
}

.edit-profile-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.edit-profile-gallery__item {
  margin: 0;
  cursor: pointer;
}

.edit-profile-gallery__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.edit-profile-gallery__thumb {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(17, 99, 51, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edit-profile-gallery__thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.edit-profile-gallery__remove {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(8, 47, 24, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.edit-profile-gallery__item:hover .edit-profile-gallery__remove,
.edit-profile-gallery__item input:checked + .edit-profile-gallery__thumb .edit-profile-gallery__remove {
  opacity: 1;
}

.edit-profile-gallery__item input:checked + .edit-profile-gallery__thumb {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.15);
}

.edit-profile-gallery__dropzone {
  position: relative;
  border: 2px dashed rgba(17, 99, 51, 0.28);
  border-radius: 12px;
  background: #f8faf9;
  padding: 2rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.edit-profile-gallery__dropzone.is-dragover {
  border-color: #116333;
  background: rgba(17, 99, 51, 0.06);
}

.edit-profile-gallery__dropzone i {
  font-size: 2rem;
  color: #116333;
  display: block;
  margin-bottom: 0.5rem;
}

.edit-profile-gallery__dropzone p {
  margin: 0;
  font-size: 0.92rem;
  color: #6b7570;
}

.edit-profile-gallery__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.edit-profile-gallery__preview {
  margin-top: 1rem;
}

.edit-profile-gallery__preview-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: #116333;
  margin: 0 0 0.75rem;
}

.edit-profile-gallery__preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.65rem;
}

.edit-profile-gallery__preview-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(17, 99, 51, 0.12);
}

.edit-profile-gallery__preview-item img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.edit-profile-gallery--videos {
  margin-top: 1.5rem;
}

.edit-profile-gallery__video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}

.edit-profile-gallery__video-item {
  margin: 0;
  cursor: pointer;
}

.edit-profile-gallery__video-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.edit-profile-gallery__video-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(17, 99, 51, 0.14);
  border-radius: 10px;
  background: #f8fbf9;
  position: relative;
  min-height: 96px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edit-profile-gallery__video-icon {
  color: #116333;
  font-size: 1.35rem;
  line-height: 1;
}

.edit-profile-gallery__video-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a3d2a;
  word-break: break-all;
}

.edit-profile-gallery__video-type {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(17, 99, 51, 0.65);
}

.edit-profile-gallery__video-item:hover .edit-profile-gallery__video-card .edit-profile-gallery__remove,
.edit-profile-gallery__video-item input:checked + .edit-profile-gallery__video-card .edit-profile-gallery__remove {
  opacity: 1;
}

.edit-profile-gallery__video-item input:checked + .edit-profile-gallery__video-card {
  border-color: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

.edit-profile-gallery__video-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edit-profile-gallery__video-preview-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #f3f8f5;
  border: 1px solid rgba(17, 99, 51, 0.1);
  font-size: 0.85rem;
  color: #1a3d2a;
}

.edit-profile-gallery__video-preview-item i {
  color: #116333;
  font-size: 1.1rem;
}

@media (max-width: 767.98px) {
  .resource-details-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .edit-profile-card__body {
    padding: 1.25rem;
  }
}

/* Company profile page */
.company-profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.company-profile-card,
.company-contact-card {
  background: #fff;
  border: 1px solid rgba(17, 99, 51, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(8, 47, 24, 0.08);
  overflow: hidden;
}

.company-profile-card__hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: linear-gradient(145deg, #0d3d22 0%, #116333 100%);
  color: #fff;
}

.company-profile-card__logo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
}

.company-profile-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-profile-card__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.company-profile-card__name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.company-profile-card__meta {
  margin: 0;
  font-size: 0.86rem;
  opacity: 0.82;
}

.company-profile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.company-profile-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.company-profile-card__details {
  padding: 1.5rem 1.75rem 1.75rem;
}

.company-profile-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(17, 99, 51, 0.08);
}

.company-profile-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.company-profile-detail:first-child {
  padding-top: 0;
}

.company-profile-detail__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 99, 51, 0.08);
  border: 1px solid rgba(17, 99, 51, 0.12);
  border-radius: 10px;
  color: #116333;
  font-size: 1.1rem;
}

.company-profile-detail__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a8680;
  margin-bottom: 0.2rem;
}

.company-profile-detail__value {
  display: block;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #2f3b36;
  word-break: break-word;
}

.company-profile-detail__value a {
  color: #116333;
  text-decoration: none;
}

.company-profile-detail__value a:hover {
  text-decoration: underline;
}

.company-profile-branch-list {
  margin: 0;
  padding-left: 1.1rem;
}

.company-profile-branch-list li {
  margin-bottom: 0.25rem;
}

.company-profile-branch-list li:last-child {
  margin-bottom: 0;
}

.company-profile-map-section {
  margin-bottom: 2.5rem;
  background: #fff;
  border: 1px solid rgba(17, 99, 51, 0.12);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(8, 47, 24, 0.08);
  overflow: hidden;
}

.company-profile-map-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(17, 99, 51, 0.08);
}

.company-profile-map-section__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d3d22;
}

.company-profile-map-section__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #116333;
  text-decoration: none !important;
}

.company-profile-map-section__link:hover {
  color: #0a4d28;
  text-decoration: underline !important;
}

.company-profile-map-section__frame {
  position: relative;
  width: 100%;
  min-height: 320px;
  background: #e9efeb;
}

.company-profile-map-section__frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.company-contact-card {
  padding: 1.75rem;
}

.company-contact-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(17, 99, 51, 0.1);
}

.company-contact-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d3d22, #116333);
  color: #fff;
  border-radius: 12px;
  font-size: 1.35rem;
}

.company-contact-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0d3d22;
  margin: 0 0 0.35rem;
}

.company-contact-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #6b7570;
}

.company-contact-form label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5a53;
}

.company-contact-form .form-control {
  border-radius: 8px;
  border-color: #d7e2dc;
  min-height: 46px;
  font-size: 0.95rem;
}

.company-contact-form .form-control:focus {
  border-color: #116333;
  box-shadow: 0 0 0 3px rgba(17, 99, 51, 0.12);
}

.company-contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: #116333;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease;
}

.company-contact-form__submit:hover {
  background: #0a4d28;
}

.company-contact-success {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #f0f7f3;
  border: 1px solid #c8e0d2;
  color: #116333;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.company-contact-success i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.company-contact-error {
  margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
  .company-profile-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .resource-details-section {
    padding: 2rem 0 3rem;
  }

  .resource-details-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .resource-details-toolbar__meta {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .resource-details-back {
    width: 100%;
    justify-content: center;
  }

  .company-profile-card__hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.35rem 1.15rem 1.15rem;
    gap: 1rem;
  }

  .company-profile-card__logo {
    width: 76px;
    height: 76px;
  }

  .company-profile-card__name {
    font-size: 1.12rem;
    word-break: break-word;
  }

  .company-profile-card__details,
  .company-contact-card {
    padding: 1.15rem;
  }

  .company-profile-detail__value {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .company-profile-detail__value a {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .company-profile-gallery-section {
    padding: 1.15rem;
  }

  .company-profile-gallery-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.company-profile-gallery-section {
  background: #fff;
  border: 1px solid rgba(17, 99, 51, 0.12);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 8px 28px rgba(8, 47, 24, 0.06);
}

.company-profile-gallery-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.company-profile-gallery-section__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d3d22;
  margin: 0;
}

.company-profile-gallery-section__count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #116333;
  background: rgba(17, 99, 51, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.company-profile-gallery-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #6b7570;
  background: #f8faf9;
  border-radius: 12px;
  border: 1px dashed rgba(17, 99, 51, 0.18);
}

.company-profile-gallery-empty i {
  font-size: 2.5rem;
  color: #116333;
  opacity: 0.45;
  display: block;
  margin-bottom: 0.75rem;
}

.company-profile-gallery-empty p {
  margin: 0;
  font-size: 0.95rem;
}

.company-profile-gallery-section--videos {
  margin-top: 2rem;
}

.edit-profile-video-option {
  background: #f8fbf9;
  border: 1px solid rgba(17, 99, 51, 0.12);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
}

.edit-profile-video-option--upload {
  margin-bottom: 0;
}

.edit-profile-video-option__head {
  margin-bottom: 1rem;
}

.edit-profile-video-option__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d3d22;
  margin-bottom: 0.35rem;
}

.edit-profile-video-option__head p {
  margin: 0;
  font-size: 0.88rem;
  color: #5f6d66;
  line-height: 1.5;
}

.edit-profile-youtube-input {
  min-height: 110px;
  resize: vertical;
}

.edit-profile-youtube-help {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: #6b7570;
}

.edit-profile-gallery__video-list--youtube {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.edit-profile-gallery__video-card--youtube {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  min-height: 0;
}

.edit-profile-gallery__video-thumb {
  display: block;
  width: 88px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0;
  flex-shrink: 0;
  background: #0d2818;
}

.edit-profile-gallery__video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edit-profile-gallery__video-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.edit-profile-gallery__video-card--youtube .edit-profile-gallery__video-name {
  font-size: 0.76rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edit-profile-gallery__video-card--youtube .edit-profile-gallery__video-type {
  font-size: 0.68rem;
}

.edit-profile-gallery__video-card--youtube .edit-profile-gallery__remove {
  position: static;
  opacity: 0.85;
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 0.35rem 0.45rem;
}

.member-gallery-video-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 170px));
  justify-content: flex-start;
}

.member-gallery-video-grid__item {
  border: none;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: 170px;
  text-align: left;
  cursor: pointer;
}

.member-gallery-video-grid__frame {
  aspect-ratio: 16 / 10;
  min-height: 96px;
}

.member-gallery-video-grid__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: linear-gradient(145deg, #0d3d22 0%, #145c34 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 2.4rem;
}

.member-gallery-video-grid__overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(6, 31, 16, 0.82) 100%);
}

.member-gallery-video-grid__play {
  background: rgba(255, 255, 255, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
}

.member-gallery-video-grid__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(6, 31, 16, 0.78);
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
}

.member-video-lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.member-video-lightbox.is-open {
  display: flex !important;
}

.member-video-lightbox[hidden]:not(.is-open) {
  display: none !important;
}

.member-video-lightbox__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(6, 20, 12, 0.92);
  cursor: pointer;
}

.member-video-lightbox__dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  z-index: 2;
  margin: 0 auto;
}

.member-video-lightbox__stage {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.member-video-lightbox__player-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.member-video-lightbox__iframe,
.member-video-lightbox__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: contain;
  background: #000;
}

.member-video-lightbox__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.member-video-lightbox__nav {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 3;
}

.member-video-lightbox__caption {
  margin: 0.85rem 0 0;
  text-align: center;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.member-video-lightbox__counter {
  display: block;
  margin-top: 0.35rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.member-video-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .member-video-lightbox {
    padding: 0.75rem;
  }

  .member-video-lightbox__stage {
    position: relative;
    display: block;
  }

  .member-video-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
  }

  .member-video-lightbox__nav--prev {
    left: 0.35rem;
  }

  .member-video-lightbox__nav--next {
    right: 0.35rem;
  }

  .member-video-lightbox__close {
    top: 0.35rem;
    right: 0.35rem;
    background: rgba(0, 0, 0, 0.55);
  }

  .edit-profile-gallery__video-card--youtube {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }

  .edit-profile-gallery__video-card--youtube .edit-profile-gallery__remove {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .edit-profile-gallery__video-thumb {
    width: 72px;
    height: 44px;
  }
}
