/* =========================================================
   records-management page styles.
   Loaded after styles/global.css on records-management.html only.
   ========================================================= */

@media (max-width: 991px) {
  .mobile-mb2 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 900px) {
  .mobile-title-margin {
    margin-top: 3rem !important;
  }
}

/* Glass card */
.records-glass-card {
  position: relative;
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.records-glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.rec-cards-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.rec-card-content {
  margin-top: 20px !important;
}

.records-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
}

.records-img {
  max-width: 100% !important;
  height: auto;
}

/* =========================
   ORANGE NUMBER CIRCLE
   ========================= */
.recaccordian-button::before {
  content: attr(data-num);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  display: block;
  text-align: center;
  line-height: 31px;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(255, 140, 0, 0.25);
}

/* optional subtle glow bar when active */
.recaccordian-button:not(.collapsed)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background-color: white;
  background: var(--orange);
  border-radius: 4px;
}

.recaccordian-header {
  margin-left: 40px;
}

@media (max-width: 1100px) {
  /* Responsive */
  .records-card-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }

  .records-img {
    display: block;
    max-width: 40% !important;
    height: auto;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .records-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Image inside circle */
.icon-circle img {
  width: 60px;
  height: auto;
  object-fit: contain;
}

/* Text spacing */
.records-glass-card h3 {
  margin-top: 60px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.records-glass-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
}

.video-records {
  padding-top: 0.2rem;
}

.risk-card {
  border: 2px solid var(--orange);
}

.recordshead-image {
  width: 200%;
  overflow: hidden;
  min-height: 520px;
  height: 52vh;
  position: relative;
  left: -130px;
  z-index: 1;
  -webkit-mask-image: linear-gradient( to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 100% );
  mask-image: linear-gradient( to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 100% );
}

/* main layout */
.records-split-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 250px;
}

/* LEFT */
.records-card-left {
  flex: 1.5;
  padding: 30px;
}

.records-left-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.records-card-icon {
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* DIVIDER */
.records-card-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.25);
}

/* RIGHT */
.records-card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* BUTTON */
.records-card-btn {
  border: none;
  cursor: pointer;
  margin-left: 0;
}

.records-card-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.records-column {
  background: var(--light-blue-grad);
  border-radius: var(--border-radius);
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}

/* IMPORTANT: each card is independent */
.record-card-records {
  backdrop-filter: blur(10px);
  border-radius: 16px;
  transition: 0.3s ease;
}

.records-column {
  display: flex;
  flex-direction: column;
  padding-top: 15px;
}

.record-card-records {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 115px;
}

.record-card-records:hover {
  transform: translateY(-4px);
}

.record-card-records:hover {
  transform: translateY(-3px);
}

/* header (front) */
.record-header-records {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 15px;
}

/* icon */
.record-icon-records img {
  margin-left: 10px;
  width: 60px;
  height: auto;
  object-fit: contain;
}

/* title + text */
.record-title-records {
  font-weight: 600;
  margin-bottom: 5px;
  color: #0b2a5b;
}

.record-top-records {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.4;
  padding-right: 15px;
}

/* dropdown content */
.record-body-records {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 0.9rem;
  line-height: 1.5;
  border-bottom: 3px solid white;
  padding-top: 20px;
  padding-right: 30px;
  padding-left: 30px;
  margin-top: 1rem;
}

.record-card-records.active .record-body-records {
  min-height: 120px;
}

.records-column-headers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 0 20px;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 1rem;
  color: #0b2a5b;
}

/* optional polish */
.records-column-headers h3 {
  padding: 1px 14px;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
}

.record-icon-records {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* arrow */
.record-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: 10px;
}

/* rotate when active */
.record-card-records.active .record-arrow {
  transform: rotate(-135deg);
}

@media (max-width: 991px) {
  .records-split-card-inner {
    flex-direction: column;
    text-align: center;
  }

  .records-card-divider {
    width: 100%;
    height: 1px;
  }

  .records-left-header {
    justify-content: center;
  }

  .mobile-pb0 {
    padding-bottom: 0px !important;
  }

  .records-col-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0b2a5b;
    text-align: center;
    padding: 12px;
    margin: 0 0 0px 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px; backdrop-filter: blur(8px);;
  }

  .records-column-headers {
    display: none;
  }
}

@media (max-width: 992px) {
  /* TABLET */
  .records-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .records-column-headers {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .record-icon-records img {
    width: 50px;
  }

  .record-body-records {
    padding-left: 20px;
  }

  .records-right-image-wrap {
    display: none;
  }
}

@media (max-width: 768px) {
  /* MOBILE */
  .records-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .records-column {
    padding-top: 10px;
  }

  .records-column-headers {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
    padding: 0;
  }

  .records-column-headers h3 {
    font-size: 0.95rem;
    padding: 8px 10px;
  }

  .record-header-records {
    gap: 10px;
  }

  .record-icon-records img {
    width: 42px;
    margin-left: 0;
  }

  .record-title-records {
    font-size: 0.95rem;
  }

  .record-top-records {
    font-size: 0.85rem;
    padding-right: 10px;
  }

  .record-body-records {
    font-size: 0.85rem;
    padding-left: 15px;
  }

  .record-card-records {
    min-height: unset;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  /* SMALL PHONES */
  .record-icon-records img {
    width: 36px;
  }

  .record-title-records {
    font-size: 0.9rem;
  }

  .record-top-records,
  .record-body-records {
    font-size: 0.8rem;
  }

  .records-grid {
    gap: 12px;
  }
}

@media (min-width: 480px) {
  .records-col-title {
    display: none;
  }
}

.dark-blue-back-card {
  overflow: hidden;
  position: relative;
  padding: 0 !important;
}

.records-split-card-inner {
  display: flex;
  position: relative;
  overflow: hidden;
}

/* RIGHT SIDE */
.records-card-right {
  position: relative;
  overflow: hidden;
  flex: 1;
}

/* IMAGE WRAPPER */
.records-right-image-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* IMAGE */
.records-right-image {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient( to left, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 100% );
  mask-image: linear-gradient( to left, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 100% );
  padding: 0 !important;
  margin: 0 !important;
}

/* keep text above image */
.records-card-text,
.records-card-btn {
  position: relative;
  z-index: 2;
}

.records-right-image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.records-right-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient( to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) );
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0));
}

/* ensure text is above image */
.records-card-right {
  position: relative;
  z-index: 2;
  padding: 15px;
}

.blue-back-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 350px;
}

/* NEW BACKGROUND IMAGE (RIGHT SIDE FADE) */
.fade-image-layer {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 60%;
  z-index: 1;
  pointer-events: none;
}

/* IMAGE FADE EFFECT */
.fade-image-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient( to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0) );
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  opacity: 0.9;
}

/* KEEP ICON + TEXT ABOVE BACKGROUND */
.col-12.col-lg-1,
.text-column {
  position: relative;
  z-index: 2;
}

@media (max-width: 1599px) and (min-width: 992px) {
  .record-card-records.active .record-body-records {
    min-height: 135px;
  }
}

/* =========================
   VIDEO WRAPPER
   ========================= */
.records-video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
}

/* =========================================
   VIDEO COOKIE FALLBACK
   ========================================= */
.video-cookie-message {
  width: 100%;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  background: var(--blue);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  isolation: isolate;
}

/* subtle glow */
.video-cookie-message::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient( circle at top right, rgba(247, 148, 29, 0.18), transparent 45% );
  pointer-events: none;
  z-index: 0;
}

/* inner content */
.video-cookie-inner {
  max-width: 520px;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* icon */
.video-icon-wrap img {
  width: 80px;
}

/* title */
.video-cookie-message h3 {
  color: white;
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* divider */
.video-divider {
  width: 80px;
  height: 4px;
  background: #f7941d;
  margin: 18px auto 24px;
  border-radius: 100px;
}

/* text */
.video-cookie-message p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* =========================================
   VIDEO WRAPPERS
   ========================================= */
.records-video-wrapper,
.wistia-container {
  overflow: hidden;
  border-radius: 28px;
}

/* =========================================
   MODAL VIDEO
   ========================================= */
.custom-video-modal {
  max-width: 1200px;
}

.custom-video-modal .modal-content {
  border-radius: 28px;
  overflow: hidden;
  background: #081c2a;
}

.modal-video-fallback {
  min-height: 45vh;
  border-radius: 0;
}

/* make player responsive */
#recordsWistiaVideo wistia-player {
  width: 100%;
  display: block;
}

@media (max-width: 991px) {
  /* =========================================
     MOBILE
     ========================================= */
  .video-cookie-message {
    min-height: 260px;
    padding: 32px 24px;
    border-radius: 22px;
  }

  .video-cookie-message h3 {
    font-size: 28px;
  }

  .video-cookie-message p {
    font-size: 15px;
  }
}

/* Shown by js/pages/records-management.js once cookies are accepted */
#recordsWistiaVideo,
#modalWistiaContainer {
  display: none;
}
