
/* =========================================================================
   AWARD-WINNING LUXURY SUBPAGE & BENTO STYLES
   ========================================================================= */

/* Hero Section */
.subpage-hero {
  position: relative;
  padding: 130px 24px 60px 24px;
  background: #f8fafc;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(224, 86, 38, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(2, 132, 199, 0.05) 0%, transparent 50%);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.subpage-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.subpage-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.subpage-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.subpage-breadcrumbs a:hover {
  color: var(--brand-cyan);
}

.subpage-breadcrumbs .crumb-sep {
  color: var(--text-dim);
  opacity: 0.6;
}

.subpage-breadcrumbs .crumb-current {
  color: var(--brand-coral);
  font-weight: 600;
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--brand-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.subpage-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 10px var(--brand-cyan);
}

.subpage-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #0f172a;
  margin-bottom: 16px;
}

.subpage-title .gradient-text {
  background: linear-gradient(135deg, #0f172a 25%, #1e293b 55%, #e05626 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

.subpage-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: #475569;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Subpage Main & Bento Card */
.subpage-main {
  position: relative;
  padding: 50px 24px 100px 24px;
  min-height: 50vh;
}

.subpage-container {
  max-width: 1200px;
  margin: 0 auto;
}

.bento-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 48px;
  box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}

.bento-content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-coral), var(--brand-cyan), transparent);
  opacity: 0.8;
}

/* Typography Inside Bento Content Card */
.bento-content-card h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 36px 0 18px 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.bento-content-card h2:first-child {
  margin-top: 0;
}

.bento-content-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin: 28px 0 14px 0;
}

.bento-content-card h4 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  margin: 22px 0 10px 0;
}

.bento-content-card p {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.bento-content-card strong {
  color: #0f172a;
  font-weight: 700;
}

.bento-content-card em {
  color: var(--brand-coral);
  font-style: normal;
  font-weight: 500;
}

.bento-content-card ul, .bento-content-card ol {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 18px 0 24px 22px;
  padding: 0;
}

.bento-content-card li {
  margin-bottom: 10px;
  padding-left: 6px;
}

.bento-content-card li::marker {
  color: var(--brand-coral);
  font-weight: 700;
}

.bento-content-card a {
  color: var(--brand-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 242, 254, 0.4);
  transition: all 0.2s ease;
}

.bento-content-card a:hover {
  color: var(--brand-coral);
  border-bottom-color: var(--brand-coral);
}

.bento-content-card blockquote {
  border-left: 4px solid var(--brand-coral);
  background: rgba(255, 107, 53, 0.06);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 24px 0;
  color: #f1f5f9;
  font-size: 1.02rem;
  line-height: 1.7;
}

.bento-content-card hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin: 36px 0;
}

/* Styled Table */
.bento-content-card .table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}

.bento-content-card table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.bento-content-card th {
  background: rgba(14, 25, 53, 0.9);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-heading);
}

.bento-content-card td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.bento-content-card tr:last-child td {
  border-bottom: none;
}

.bento-content-card tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Board Members Grid */
.board-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin: 24px 0 36px 0;
}

.board-member-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.board-member-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.board-member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(0, 242, 254, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.board-member-info {
  flex: 1;
  min-width: 0;
}

.board-member-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.board-member-role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-coral);
  background: rgba(255, 107, 53, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.board-member-institution {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Timeline Cards */
.subpage-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.subpage-timeline-card {
  background: rgba(14, 25, 53, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.subpage-timeline-card:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

.subpage-timeline-card.highlight {
  border-color: rgba(255, 107, 53, 0.4);
  background: rgba(255, 107, 53, 0.05);
}

.subpage-timeline-date {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-cyan);
  margin-bottom: 8px;
}

.subpage-timeline-card.highlight .subpage-timeline-date {
  color: var(--brand-coral);
}

.subpage-timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

/* Alert Boxes & Callouts */
.bento-alert {
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 4px;
  padding: 24px;
  margin: 28px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bento-alert.warning {
  background: rgba(255, 107, 53, 0.06);
  border-color: rgba(255, 107, 53, 0.3);
}

.bento-alert-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.bento-alert-body {
  flex: 1;
}

.bento-alert-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

/* Contact Cards */
.contact-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.contact-meta-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-meta-icon {
  font-size: 2rem;
  margin-bottom: 4px;
}

.contact-meta-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  font-family: var(--font-mono);
}

.contact-meta-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

/* =========================================================================
   IN-SITE PDF FLIPBOOK MODAL
   ========================================================================= */
.pdf-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 17, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pdf-modal-container {
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  background: #0a0f1d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 107, 53, 0.2);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
  from { transform: translateY(30px) scale(0.97); }
  to { transform: translateY(0) scale(1); }
}

.pdf-modal-header {
  padding: 16px 24px;
  background: rgba(14, 25, 53, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pdf-modal-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdf-modal-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--brand-cyan);
}

.pdf-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  max-width: 500px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-modal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-pdf-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-pdf-action:hover {
  background: var(--brand-coral);
  border-color: var(--brand-coral);
  color: #ffffff;
}

.btn-pdf-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pdf-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.pdf-modal-body {
  flex: 1;
  background: #050811;
  position: relative;
  overflow: hidden;
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #050811;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .subpage-hero {
  position: relative;
  padding: 130px 24px 60px 24px;
  background: #f8fafc;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(224, 86, 38, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(2, 132, 199, 0.05) 0%, transparent 50%);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}
  .subpage-main { padding: 30px 16px 70px 16px; }
  .bento-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 48px;
  box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}
  .bento-content-card h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 36px 0 18px 0;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}
  .board-members-grid { grid-template-columns: 1fr; }
  .subpage-timeline-grid { grid-template-columns: 1fr; }
  .pdf-modal-backdrop { padding: 8px; }
  .pdf-modal-container { height: 96vh; border-radius: 4px; }
  .pdf-modal-header { padding: 12px 14px; }
  .pdf-modal-title { max-width: 200px; font-size: 0.95rem; }
}
