/* ===========================
   MEDIA PAGE (tabs layout)
   =========================== */

.media-section {
  padding: 2rem 0 3rem;
  min-height: 430px;
}

/* Two-column grid for layout */
.media-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Left tab nav */
.tab-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tab-link {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-link:hover {
  background: var(--accent);
  color: #04152b;
}
.tab-link.active {
  background: var(--accent-2);
  color: #ffffff;
  border-color: var(--accent);
}

/* Right content */
.tab-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  min-height: 300px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel h2 {
  margin-top: 0;
}
.tab-panel .muted { color: var(--muted); }

/* ===========================
   MEDIA CARDS (Statements)
   =========================== */

.media-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.media-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 1rem;
}
.media-card .meta {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .9rem;
}
.media-card .badge {
  background: #dd4343;
  border-radius: 999px;
  padding: 0.1rem .5rem;
  font-weight: 700;
  font-size: .75rem;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  margin-top: .5rem;
  background: #858282;
  color: #ffffff;
  font-weight: 700;
  padding: .5rem .75rem;
  border-radius: .5rem;
  text-decoration: none;
  transition: background .2s ease;
}
.btn:hover {
  background: var(--accent);
}
.btn.btn-alt {
  background: #b3b3b3;
}

/* ===========================
   ACCREDITATION
   =========================== */

.acc-callout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: 1rem;
  margin: 1rem 0 1.25rem;
}
.acc-callout .smaller { font-size: .95rem; }

/* Accreditation grid */
.acc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns desktop */
  gap: 2rem;
  margin-top: 1.5rem;
}
.acc-grid h3 { margin-top: 0; }

.dl-list {
  padding-left: 1rem;
  margin-top: .5rem;
}
.dl-list li { margin-bottom: .6rem; }
.note { color: var(--muted); }

/* Accreditation form */
.accreditation-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.accreditation-form .form-group {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.accreditation-form label {
  font-weight: 600;
  font-size: .95rem;
}

.accreditation-form input,
.accreditation-form textarea {
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  background: var(--card);
  font-size: 1rem;
}

.accreditation-form input:focus,
.accreditation-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(252,211,77,.25);
}

.thankyou-box {
  background: #e6ffed;
  border: 1px solid #b2f5ea;
  border-radius: 0.6rem;
  padding: 1.5rem;
  margin-top: 1rem;
  text-align: center;
}
.thankyou-box h4 {
  margin: 0 0 0.5rem;
  color: #047857;
  font-weight: 700;
}
.thankyou-box p {
  margin: 0.5rem 0;
}

/* ===========================
   VIDEO VIEWER (Briefings)
   =========================== */

.briefings-viewer {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem 1.25rem;
  margin-top: 1rem;
}

/* 16:9 responsive frame */
.video-shell { width: 100%; }
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border: 1px solid var(--border);
  border-radius: .6rem;
  overflow: hidden;
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

/* Playlist */
.video-playlist {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: 480px;
  overflow: auto;
  padding-right: .25rem;
}
.video-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: .75rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: .6rem;
  padding: .5rem;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, background .2s ease;
}
.video-item:hover {
  background: var(--card);
  border-color: var(--accent);
}
.video-item.active {
  background: var(--card);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(252, 211, 77, .25);
}
.video-item:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.video-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: .4rem;
}
.vi-text h4 {
  margin: 0 0 .25rem;
  font-size: 1rem;
}
.vi-text .small { font-size: .9rem; }

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 992px) {
  .media-layout { grid-template-columns: 1fr; }

  .tab-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .tab-link {
    flex: 1;
    text-align: center;
  }

  .media-list { grid-template-columns: 1fr; }

  .briefings-viewer { grid-template-columns: 1fr; }
  .video-playlist { max-height: none; }

  .acc-grid { grid-template-columns: 1fr; }
}
