/* ==========================================================================
   PUBLICATIONS PAGE DESIGN SYSTEM & STYLESHEET
   Orchid Society of Assam - Publication Page
   ========================================================================== */

:root {
  --font-serif: 'Libre Caslon Text', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Color System */
  --pub-primary-dark: #002e1f;
  --pub-primary-medium: #1b503c;
  --pub-primary-light: #356853;
  --pub-mint-accent: #9cd2b8;
  --pub-gold-accent: #cca730;
  --pub-gold-light: #ffe088;
  --pub-bg-light: #fbf9f8;
  --pub-surface-low: #f6f3f2;
  --pub-surface-card: #ffffff;
  --pub-text-dark: #1b1c1c;
  --pub-text-muted: #404944;
  --pub-border-color: #c0c9c2;

  --pub-radius-sm: 8px;
  --pub-radius-md: 12px;
  --pub-radius-lg: 16px;
  --pub-radius-xl: 24px;
}

body.publication-body {
  background-color: var(--pub-bg-light);
  color: var(--pub-text-dark);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.pub-page-container {
  max-width: 1180px;
  margin: 32px auto 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* Texture Overlay */
.texture-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='noiseFilter'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23noiseFilter)' opacity='0.04'/></svg>");
  pointer-events: none;
  z-index: 99;
}


/* ==========================================================================
   1. FULL BLEED HERO SECTION (Edge-to-Edge, No Rounded Borders)
   ========================================================================== */
.pub-hero-section {
  position: relative;
  width: 100%;
  background-image: url('pub-hero-bg.png');
  background-size: cover;
  background-position: center right;
  background-color: var(--pub-primary-dark);
  border-radius: 0;
  border: none;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-shadow: none;
}

.pub-hero-container {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 115px 32px 72px;
  min-height: 480px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 36px;
  box-sizing: border-box;
}

.pub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 35, 24, 0.92) 0%, rgba(1, 35, 24, 0.70) 55%, rgba(1, 35, 24, 0.20) 100%);
  z-index: 1;
}

.pub-hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

/* Gold Pill Badge (matches reference image) */
.pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #cca730;
  background-color: rgba(204, 167, 48, 0.1);
  border: 1px solid rgba(204, 167, 48, 0.6);
  padding: 6px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
}

.pub-badge-line {
  display: none;
}

/* Hero Title Styling */
.pub-hero-title {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  line-height: 1.15;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 18px 0;
  letter-spacing: -0.01em;
}

.pub-hero-title .highlight-italic {
  font-style: italic;
  font-weight: 400;
  color: #40c992;
  display: block;
}

.pub-hero-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 500px;
  margin-bottom: 26px;
}

/* Feature Pills */
.pub-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.pub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.pub-pill .material-symbols-outlined {
  font-size: 15px;
  color: #40c992;
}

/* Hero Action Buttons (matches reference image rounded pills) */
.pub-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-pub-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0d9488;
  color: #ffffff;
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
  transition: all 0.25 ease;
  text-decoration: none;
}

.btn-pub-primary:hover {
  background: #0f766e;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.5);
}

.btn-pub-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-pub-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Hero Visual Book Stack Showcase */
.pub-hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.journal-3d-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.journal-3d-stack:hover {
  transform: translateY(-4px) scale(1.02);
}

.journal-book-model {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 440px);
  background: transparent;
  border-radius: var(--pub-radius-md);
  --poster-color: transparent;
}

.journal-model-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.journal-model-hint .material-symbols-outlined {
  font-size: 17px;
}

.journal-book-model ~ .journal-cover-img,
.journal-book-model ~ .journal-fallback-cover {
  display: none !important;
}

.journal-cover-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--pub-radius-md);
}

/* Fallback Styled Book Cover */
.journal-fallback-cover {
  width: 280px;
  height: 360px;
  background: linear-gradient(135deg, #002e1f 0%, #1b503c 100%);
  border: 2px solid var(--pub-gold-accent);
  border-radius: var(--pub-radius-md);
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  position: relative;
  margin: 0 auto;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-top-left-radius: var(--pub-radius-md);
  border-bottom-left-radius: var(--pub-radius-md);
}

.book-cover-content {
  text-align: center;
  padding-left: 8px;
}

.book-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--pub-gold-light);
  font-weight: 700;
  text-transform: uppercase;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 12px 0;
  color: #ffffff;
}

.book-emblem {
  font-size: 2.2rem;
  margin: 16px 0;
}

.book-publisher {
  font-size: 0.72rem;
  color: var(--pub-mint-accent);
  font-weight: 600;
}


/* ==========================================================================
   2. JOURNAL INFO BENTO SECTION (Vintage Parchment Background)
   ========================================================================== */
.pub-journal-section {
  margin-bottom: 28px;
}

.pub-bento-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}

/* Info Card with Parchment Background */
.pub-info-card {
  position: relative;
  background-image: url('pub-journal-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--pub-radius-lg);
  border: 1px solid var(--pub-border-color);
  padding: 28px 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.pub-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--pub-primary-medium);
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.pub-section-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--pub-primary-dark);
  margin: 0 0 16px 0;
}

.pub-info-paragraph {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--pub-text-muted);
  margin-bottom: 12px;
}

.pub-info-paragraph:last-child {
  margin-bottom: 0;
}

/* Stats 2x2 Grid */
.pub-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pub-stat-card {
  background-color: #ffffff;
  border: 1px solid var(--pub-border-color);
  border-radius: var(--pub-radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pub-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 46, 31, 0.08);
}

.stat-icon {
  font-size: 28px;
  color: var(--pub-primary-dark);
  margin-bottom: 6px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pub-primary-dark);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pub-text-muted);
}


/* ==========================================================================
   3. BROWSE THE ARCHIVE SECTION (Light Cream Frame Background)
   ========================================================================== */
.pub-archive-section {
  position: relative;
  background-image: url('pub-archive-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--pub-radius-xl);
  border: 1px solid var(--pub-border-color);
  padding: 32px 32px;
  margin-bottom: 28px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.pub-archive-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(251, 249, 248, 0.55);
  z-index: 1;
}

.pub-archive-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.pub-archive-header {
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.pub-archive-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--pub-gold-accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.badge-line {
  width: 30px;
  height: 1px;
  background-color: var(--pub-gold-accent);
}

.pub-archive-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--pub-primary-dark);
  margin: 0 0 12px 0;
}

.pub-archive-subtitle {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--pub-text-muted);
  margin: 0;
}

/* 3 Volumes Cards Grid */
.pub-volumes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pub-archive-all-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.pub-view-all-btn .material-symbols-outlined {
  font-size: 16px;
  transition: transform 0.25s ease;
}

.pub-view-all-btn {
  padding: 10px 22px;
  font-size: 0.8rem;
}

.pub-view-all-btn:hover .material-symbols-outlined {
  transform: translate(2px, -2px);
}

.pub-volume-card {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pub-volume-card:hover {
  transform: translateY(-6px);
}

.volume-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #ffffff;
  border-radius: var(--pub-radius-md);
  border: 1px solid var(--pub-border-color);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  transition: box-shadow 0.3s ease;
}

.pub-volume-card:hover .volume-cover-wrapper {
  box-shadow: 0 12px 28px rgba(0, 46, 31, 0.18);
}

.volume-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.volume-fallback-cover {
  width: 100%;
  height: 100%;
  padding: 20px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  text-align: center;
}

.volume-fallback-cover.vol-1 {
  background: linear-gradient(135deg, #1b503c 0%, #002e1f 100%);
}

.volume-fallback-cover.vol-2 {
  background: linear-gradient(135deg, #2b684c 0%, #10402e 100%);
}

.volume-fallback-cover.vol-3 {
  background: linear-gradient(135deg, #0a3a28 0%, #042015 100%);
}

.vol-tag {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--pub-gold-light);
  font-weight: 700;
}

.volume-fallback-cover h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 8px 0 2px 0;
}

.volume-fallback-cover p {
  font-size: 0.72rem;
  color: var(--pub-mint-accent);
  margin: 0;
}

.vol-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pub-gold-light);
}

.volume-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pub-primary-dark);
  margin: 0 0 2px 0;
  transition: color 0.2s ease;
}

.pub-volume-card:hover .volume-title {
  color: var(--pub-primary-light);
}

.volume-year {
  font-size: 0.82rem;
  color: var(--pub-text-muted);
  margin: 0;
  font-weight: 600;
}


/* ==========================================================================
   4. RESEARCH SCOPE SECTION (Dark Background with Gold Botanical Line Art)
   ========================================================================== */
.pub-research-section {
  position: relative;
  background-image: url('pub-research-bg.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--pub-radius-xl);
  overflow: hidden;
  padding: 32px 32px;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px rgba(0, 46, 31, 0.15);
}

.pub-research-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 46, 31, 0.88);
  z-index: 1;
}

.pub-research-container {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.pub-research-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 36px auto;
}

.research-badge {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--pub-mint-accent);
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.research-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px 0;
}

.research-subtitle {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

/* 4 Scope Cards Grid */
.pub-scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.scope-card {
  background-color: rgba(15, 70, 51, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--pub-radius-md);
  padding: 24px 20px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.scope-card:hover {
  background-color: rgba(53, 104, 83, 0.95);
  transform: translateY(-4px);
  border-color: var(--pub-mint-accent);
}

.scope-icon {
  font-size: 32px;
  color: var(--pub-mint-accent);
  margin-bottom: 14px;
  display: block;
}

.scope-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.scope-card-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}


/* ==========================================================================
   5. BOTTOM CALL TO ACTION SECTION (Cream Watercolor Background)
   ========================================================================== */
.pub-cta-section {
  position: relative;
  background-image: url('pub-cta-bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--pub-radius-xl);
  border: 1px solid var(--pub-border-color);
  padding: 32px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  text-align: center;
}

.pub-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(246, 243, 242, 0.75);
  z-index: 1;
}

.pub-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-badge {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--pub-gold-accent);
  text-transform: uppercase;
  margin: 0 0 10px 0;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--pub-primary-dark);
  margin: 0 0 14px 0;
}

.cta-description {
  font-size: 0.90rem;
  line-height: 1.6;
  color: var(--pub-text-muted);
  margin-bottom: 24px;
}

.btn-cta {
  font-size: 0.88rem;
  padding: 12px 28px;
}


/* ==========================================================================
   6. MANUSCRIPT SUBMISSION MODAL
   ========================================================================== */
.pub-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pub-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--pub-radius-lg);
  width: 90%;
  max-width: 480px;
  padding: 28px 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.pub-modal.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--pub-text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-icon {
  font-size: 36px;
  color: var(--pub-primary-medium);
  margin-bottom: 6px;
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--pub-primary-dark);
  margin: 0 0 6px 0;
}

.modal-header p {
  font-size: 0.80rem;
  color: var(--pub-text-muted);
  margin: 0;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pub-text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px;
  border: 1px solid var(--pub-border-color);
  border-radius: var(--pub-radius-sm);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pub-primary-medium);
}

.w-full {
  width: 100%;
}


/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================================== */

/* TABLET VIEW (1024px) */
@media (max-width: 1024px) {
  .pub-page-container {
    padding: 0 24px;
  }

  .pub-hero-container {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    min-height: auto;
  }

  .pub-hero-visual {
    margin-top: 20px;
  }

  .pub-bento-grid {
    grid-template-columns: 1fr;
  }

  .pub-scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE VIEW (768px & small devices) */
@media (max-width: 768px) {
  .pub-page-container {
    padding: 0 14px;
  }

  .pub-hero-container {
    padding: 28px 18px;
  }

  .pub-hero-title {
    font-size: 1.8rem;
  }

  .pub-hero-description {
    font-size: 0.82rem;
  }

  .pub-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-pub-primary,
  .btn-pub-outline {
    width: 100%;
    box-sizing: border-box;
  }

  .pub-info-card {
    padding: 24px 20px;
  }

  .pub-section-title {
    font-size: 1.4rem;
  }

  .pub-archive-section {
    padding: 28px 18px;
    border-radius: var(--pub-radius-md);
  }

  .pub-archive-title {
    font-size: 1.5rem;
  }

  .pub-volumes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pub-research-section {
    padding: 28px 18px;
    border-radius: var(--pub-radius-md);
  }

  .research-title {
    font-size: 1.5rem;
  }

  .pub-scope-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pub-cta-section {
    padding: 28px 18px;
    border-radius: var(--pub-radius-md);
  }

  .cta-title {
    font-size: 1.5rem;
  }
}
