/* ============================================================
   publications.css — styles ONLY for publications.php
   Loaded in addition to style.css. Does NOT modify anything
   in style.css (nav, footer, header, hero, carousel, etc.).
   ============================================================ */

/* ── PAGE BANNER ─────────────────────────────────────────── */
.pub-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #1a2a3a;
}

.pub-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  filter: brightness(0.62);
}

.pub-banner-title {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 18px 40px;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

/* ── INTRO BLOCK ─────────────────────────────────────────── */
.pub-intro {
  background: #fff;
  padding: 36px 0 28px;
}

.pub-intro-tag {
  display: inline-block;
  background: #1A427E;
  color: #fff;
  padding: 7px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.pub-intro-text {
  font-size: 15.5px;
  color: #1a1a1a;
  line-height: 1.75;
  max-width: 100%;
}

/* ── MEMBERSHIP CATEGORIES LABEL ─────────────────────────── */
.pub-cat-label {
  background: #fff;
  padding: 0 0 10px;
}

.pub-cat-label h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
}

/* ── TAB TOGGLE PILL ─────────────────────────────────────── */
.pub-toggle-wrap {
  background: #fff;
  padding: 10px 0 30px;
}

.pub-toggle {
  display: flex;
  align-items: center;
  background: #1A427E;
  border-radius: 50px;
  overflow: hidden;
  width: 100%;
  max-width: 720px;
  cursor: pointer;
  border: 3px solid #1A427E;
}

.pub-toggle-btn {
  flex: 1;
  padding: 15px 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  outline: none;
}

.pub-toggle-btn.active {
  background: #fff;
  color: #1a1a1a;
}

.pub-toggle-btn:not(.active) {
  background: #1A427E;
  color: #fff;
}

/* ── TAB SHOW / HIDE ─────────────────────────────────────── */
.pub-tab-section        { display: none; }
.pub-tab-section.active { display: block; }

/* ── SHARED TAB CONTENT WRAPPER ──────────────────────────── */
.pub-content-wrap {
  background: #edf2f8;
  padding: 32px 28px 36px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.pub-content-wrap h2 {
  font-size: 24px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
}

.pub-content-wrap .pub-section-desc {
  font-size: 13.5px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 900px;
}

/* ── JOURNAL CARD ────────────────────────────────────────── */
.journal-card {
  background: #fff;
  border-radius: 8px;
  padding: 22px 24px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.journal-card:last-child { margin-bottom: 0; }

.journal-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.journal-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  flex: 1;
}

.journal-badge {
  background: #1A427E;
  color: #fff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.journal-card-desc {
  font-size: 13.5px;
  color: #444;
  line-height: 1.65;
  margin-bottom: 16px;
}

.journal-read-btn {
  display: inline-block;
  background: #e8edf4;
  color: #1A427E;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #c8d4e8;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.journal-read-btn:hover {
  background: #1A427E;
  color: #fff;
}

/* ── BOOK SERIES CARD ────────────────────────────────────── */
.book-card {
  background: #fff;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.book-card:last-child { margin-bottom: 0; }

.book-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #c8d8ea;
}

.book-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-card-body {
  padding: 16px 18px 18px;
}

.book-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.book-card-author {
  font-size: 13.5px;
  font-weight: 600;
  color: #1A427E;
  font-family: 'Inter', sans-serif;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .pub-banner        { height: 160px; }
  .pub-banner-title  { font-size: 20px; padding: 12px 18px; }
  .pub-toggle        { max-width: 100%; }
  .pub-toggle-btn    { font-size: 15px; padding: 13px 0; }
  .pub-content-wrap  { padding: 22px 16px 26px; }
  .journal-card-top  { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pub-cat-label h2  { font-size: 20px; }
  .pub-intro-text    { font-size: 14px; }
}

@media (max-width: 480px) {
  .pub-toggle-btn { font-size: 13px; }
}