/* ============================================
   ARANIYAM — Additional Page Styles
   ============================================ */

/* ---------- About Page ---------- */
.about-story {
  padding: 5rem 0 3rem;
  background: var(--bg-deep);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
  margin-top: 3rem;
}

.about-story-text .section-label {
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-story-text .section-label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BDAE68'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.67l1.06.33C6.81 17.14 9 11 17 10V8z'/%3E%3Cpath d='M17 8c3 0 5 1 5 1s-1.5 6-7 8c0 0 0-6 2-9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.about-story-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.about-story-text h1 .accent {
  color: var(--gold);
}

.about-story-text p {
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.75;
  max-width: 480px;
}

.about-story-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
}

.about-story-img-back {
  display: none;
}

.about-story-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story-img-main--light {
  display: none;
}

.about-story-img-main--dark {
  display: block;
}

.about-story-img img {
  width: 100%;
  height: 100%;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.stat-card {
  background: rgba(18, 22, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.stat-card .num {
  /* font-family: var(--font-serif); */
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.stat-card .stat-icon {
  display: none;
}

.drives-us {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  margin-top: 2rem;
}

.drives-us-label {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-deep);
  padding: 0 1rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.drives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 0.5rem;
}

.drive-item {
  text-align: center;
  padding: 1rem 0.5rem;
  transition: transform var(--transition);
}

.drive-item:hover {
  transform: translateY(-4px);
}

.drive-item .icon-circle {
  margin: 0 auto 1rem;
  width: 48px;
  height: 48px;
}

.drive-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.drive-item p {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.55;
}

/* ---------- Get In Touch ---------- */
.get-in-touch {
  position: relative;
  background: #000;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}

/* .get-in-touch::before {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -30px;
  width: 220px;
  height: 220px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none'%3E%3Cpath d='M20 95c18-8 32-22 38-42 4-14 2-28-4-40 18 10 30 28 32 48 2 18-6 34-20 46-8-16-20-28-34-36-4 10-8 18-12 24z' fill='%23C5A059' fill-opacity='0.12'/%3E%3Cpath d='M58 18c8 14 12 30 8 46-3 12-10 22-20 30 16 4 32 2 44-8 10-8 16-20 16-34 0-16-10-28-24-34-8 2-16 2-24 0z' fill='%23C5A059' fill-opacity='0.08'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  opacity: 0.9;
} */

.get-in-touch-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.get-in-touch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.get-in-touch-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.get-in-touch-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.get-in-touch-content h2 .accent {
  color: var(--gold);
  background: linear-gradient(135deg, #d4b56a, var(--gold) 55%, #8a7340);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.get-in-touch-content>p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 420px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 460px;
}

.contact-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.12);
}

.contact-field svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-field input,
.contact-field textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 300;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  /* color: rgba(197, 160, 89, 0.55); */
  color: #050C0A;
}

.contact-field--message {
  align-items: flex-start;
  padding-top: 1rem;
}

.contact-field--message svg {
  margin-top: 0.15rem;
}

.contact-field--message textarea {
  min-height: 120px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  border: 1px solid rgba(197, 160, 89, 0.65);
  background: linear-gradient(180deg, rgba(40, 34, 20, 0.95), rgba(18, 16, 10, 0.98));
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}

.contact-submit svg {
  width: 16px;
  height: 16px;
}

.contact-submit:hover {
  background: linear-gradient(180deg, rgba(70, 58, 30, 0.95), rgba(30, 26, 14, 0.98));
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(197, 160, 89, 0.2);
}

.get-in-touch-content {
  min-width: 0;
}

.get-in-touch-media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  /* border: 1.5px solid rgba(197, 160, 89, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); */
  min-height: 0;
  height: 100%;
  max-height: 100%;
  align-self: stretch;
}

.get-in-touch-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.get-in-touch-media img.git-media-light {
  width: 80%;
}

/* ---------- Gallery Page ---------- */
.gallery-page {
  background: var(--bg-deep);
  padding: 0 0 5rem;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 2rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
}

.filter-pill:hover {
  border-color: var(--lime);
  color: #fff;
}

.filter-pill.active {
  background: var(--lime);
  border-color: var(--lime);
  color: #0d1208;
  font-weight: 600;
}

.gallery-search-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.gallery-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  min-width: 220px;
}

.gallery-search svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.gallery-search input {
  background: none;
  color: #fff;
  font-size: 0.8rem;
  width: 100%;
}

.gallery-search input::placeholder {
  color: var(--text-dim);
}

/* Gallery mosaic — justified rows, uniform gaps, preserved aspect ratios */
.gallery-mosaic {
  --gallery-gap: 1.25rem;
  --gallery-target-h: 260px;
  display: flex;
  flex-direction: column;
  gap: var(--gallery-gap);
  width: 100%;
}

.gallery-row {
  display: flex;
  align-items: stretch;
  gap: var(--gallery-gap);
  width: 100%;
}

.gallery-item {
  position: relative;
  flex: 0 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.gallery-mosaic .gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item.is-hidden {
  display: none !important;
}

.gallery-mosaic.is-mobile .gallery-item {
  width: 100% !important;
  height: auto !important;
  flex: none !important;
}

.gallery-mosaic.is-mobile .gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------- Articles Page ---------- */
.articles-page {
  background: var(--bg-deep);
  padding-bottom: 5rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition);
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  border-color: rgba(157, 192, 66, 0.3);
}

.article-card-img {
  height: 180px;
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.08);
}

.article-card-body {
  padding: 1.25rem;
}

.article-tag {
  display: inline-block;
  background: var(--olive-btn);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.article-card-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  min-height: 2.6em;
}

.article-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.85rem;
  color: var(--gold);
  font-size: 0.85rem;
}

.article-stars .empty {
  color: rgba(255, 255, 255, 0.25);
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}

.article-card-footer .price {
  color: var(--text-muted);
  font-weight: 500;
}

.article-card-footer .read {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.article-card-footer svg {
  width: 13px;
  height: 13px;
}

.sort-select {
  appearance: none;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 0.7rem 2.5rem 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.sort-select option {
  background: #121612;
  color: #fff;
}

/* ---------- Events Page ---------- */
.events-page {
  background: #050C0A;
  padding: 0 0 5rem;
}

.events-header {
  text-align: center;
  padding: calc(var(--nav-h) + 3.5rem) 0 2rem;
}

.events-header .section-label {
  color: var(--gold);
  justify-content: center;
}

.events-header .section-label::after {
  display: none;
}

.events-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin: 0.75rem 0 0.75rem;
}

.events-header p {
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.event-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.event-filter {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.event-filter:hover {
  border-color: var(--gold);
  color: #fff;
}

.event-filter.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(197, 160, 89, 0.1);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  border-color: rgba(197, 160, 89, 0.35);
}

.event-card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card-img img {
  transform: scale(1.06);
}

.event-date-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  text-align: center;
  min-width: 48px;
  backdrop-filter: blur(4px);
}

.event-date-badge .month {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.event-date-badge .day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.event-card-body {
  padding: 1.25rem;
}

.event-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.event-loc {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 0.65rem;
}

.event-loc svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.event-card-body p {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.event-card-meta .time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.event-card-meta svg {
  width: 13px;
  height: 13px;
}

.event-details-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  transition: gap var(--transition);
}

.event-details-link:hover {
  gap: 0.65rem;
}

.event-details-link svg {
  width: 14px;
  height: 14px;
}

.events-cta {
  text-align: center;
}

/* ---------- Subscribe Page ---------- */
.subscribe-page {
  background: var(--bg-deep);
  padding-bottom: 4rem;
}

.subscribe-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(5, 8, 5, 0.92) 0%, rgba(5, 8, 5, 0.7) 45%, rgba(5, 8, 5, 0.35) 100%),
    url('../assets/images/mg-cvr.jpg') center/cover no-repeat;
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
}

.subscribe-hero-content {
  max-width: 600px;
}

.subscribe-hero-content .section-label {
  color: var(--gold);
}

.subscribe-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  margin: 0.75rem 0 1rem;
}

.subscribe-hero-content h1 .accent {
  color: var(--lime);
}

.subscribe-hero-content>p {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 460px;
}

.sub-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
}

.sub-benefit {
  position: relative;
  padding: 0.35rem 1.35rem;
  text-align: left;
}

.sub-benefit:first-child {
  padding-left: 0;
}

.sub-benefit:last-child {
  padding-right: 0;
}

/* Soft vertical divider between benefit cards */
.sub-benefit:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 68%;
  min-height: 72px;
  max-height: 140px;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(197, 160, 89, 0.15) 12%,
      rgba(197, 160, 89, 0.55) 50%,
      rgba(197, 160, 89, 0.15) 88%,
      transparent 100%);
  pointer-events: none;
}

.sub-benefit h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.65rem 0 0.35rem;
}

.sub-benefit p {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.45;
}

.plans-section {
  padding: 4rem 0 2rem;
}

.plans-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.plans-header h2 {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.plans-header h2::before,
.plans-header h2::after {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C5A059'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.67l1.06.33C6.81 17.14 9 11 17 10V8zm0 0c3 0 5 1 5 1s-1.5 6-7 8c0 0 0-6 2-9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.plan-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.plan-card.popular {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-align: center;
}

.plan-price {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-price .amount {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
}

.plan-price .period {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.plan-features {
  flex: 1;
  margin-bottom: 1.75rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.plan-features li svg {
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-card.popular .plan-features li svg {
  color: var(--gold);
}

.plan-note {
  font-size: 0.75rem;
  color: var(--gold-soft);
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.plan-card .btn {
  width: 100%;
}

.impact-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: rgba(18, 22, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.impact-banner-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 700px;
}

.impact-banner-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.55;
}

.impact-link {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition);
}

.impact-link:hover {
  color: var(--lime);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.trust-item strong {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Login Page ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(5, 10, 5, 0.65), rgba(5, 10, 5, 0.75)),
    url('../assets/images/jd2.jpg') center/cover no-repeat;
}

.login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.login-welcome::before,
.login-welcome::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--gold);
  position: relative;
}

.login-welcome .diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}

.login-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.login-leaf {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 300;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(12, 16, 12, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(107, 142, 35, 0.35);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
}

.input-wrap:focus-within {
  border-color: var(--lime);
}

.input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  flex-shrink: 0;
}

.input-wrap input {
  flex: 1;
  background: none;
  color: #fff;
  font-size: 0.875rem;
}

.input-wrap input::placeholder {
  color: var(--text-dim);
}

.toggle-pass {
  color: var(--text-dim);
  display: flex;
  padding: 0;
}

.toggle-pass:hover {
  color: #fff;
}

.toggle-pass svg {
  width: 18px;
  height: 18px;
}

.forgot-row {
  text-align: right;
  margin: -0.5rem 0 1.5rem;
}

.forgot-row a {
  font-size: 0.8rem;
  color: var(--lime);
  transition: color var(--transition);
}

.forgot-row a:hover {
  color: var(--lime-bright);
}

.login-card .btn {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.social-logins {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-login-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition);
}

.social-login-btn:hover {
  border-color: var(--lime);
  background: rgba(157, 192, 66, 0.1);
  transform: translateY(-2px);
}

.social-login-btn svg {
  width: 20px;
  height: 20px;
}

.signup-prompt {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.signup-prompt a {
  color: var(--lime);
  font-weight: 600;
}

.signup-prompt a:hover {
  color: var(--lime-bright);
}

.login-bottom-bar {
  background: rgba(8, 12, 8, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
}

.login-bottom-inner {
  width: min(100%, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.login-bottom-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-bottom-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.login-bottom-text p {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 420px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 2rem;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Responsive pages ---------- */
@media (max-width: 1100px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .trust-bar {
    grid-template-columns: 1fr 1fr;
  }

  .sub-benefits {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .sub-benefit {
    padding: 0;
  }

  .sub-benefit:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .about-story-img {
    height: 320px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .drives-grid {
    grid-template-columns: 1fr 1fr;
  }

  .get-in-touch-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .get-in-touch-media {
    height: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
    min-height: 280px;
  }

  .contact-form {
    max-width: none;
  }

  .gallery-mosaic {
    --gallery-gap: 1rem;
    --gallery-target-h: 220px;
  }

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

@media (max-width: 640px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .drives-grid {
    grid-template-columns: 1fr;
  }

  .get-in-touch {
    padding: 3.5rem 0 4rem;
  }

  .get-in-touch-media {
    min-height: 240px;
    border-radius: 20px;
    aspect-ratio: 16 / 10;
  }

  .contact-submit {
    width: 100%;
  }

  .gallery-mosaic {
    --gallery-gap: 0.85rem;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .login-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .login-bottom-text {
    flex-direction: column;
  }
}

/* ---------- Article View Page ---------- */
.article-view-page {
  background: var(--bg-deep);
}

.av-hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2.5rem) 0 3.25rem;
  background:
    linear-gradient(180deg, rgba(5, 8, 5, 0.35) 0%, rgba(5, 8, 5, 0.55) 42%, rgba(5, 8, 5, 0.92) 100%),
    var(--av-hero-img) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.av-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 0, 0, 0.25) 0%, transparent 55%),
    linear-gradient(90deg, rgba(5, 8, 5, 0.55) 0%, transparent 58%);
  pointer-events: none;
}

.av-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.av-category {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #5f7a3a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.av-hero-inner h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 16ch;
}

.av-hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 54ch;
  margin-bottom: 1.5rem;
}

.av-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.av-hero-meta span,
.av-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.av-hero-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.av-save-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.av-save-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.av-body {
  padding: 3rem 0 4.5rem;
}

.av-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 2.75rem;
  align-items: start;
}

.av-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.av-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.av-author-info img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.av-author-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.15rem;
}

.av-author-info strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.av-author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 42ch;
}

.av-author-share {
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
}

.av-author-share a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.av-author-share a:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: rgba(197, 160, 89, 0.1);
}

.av-author-share svg {
  width: 15px;
  height: 15px;
}

.av-content {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 400;
}

.av-content p {
  margin-bottom: 1.35rem;
}

.av-content .av-dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.4rem;
  font-weight: 600;
  line-height: 0.82;
  padding: 0.12rem 0.45rem 0 0;
  color: var(--lime);
}

.av-content h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--text);
  margin: 2.4rem 0 1rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.av-h2-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(157, 192, 66, 0.15);
  color: var(--lime);
}

.av-h2-icon svg {
  width: 15px;
  height: 15px;
}

.av-figure {
  margin: 2rem 0 2.25rem;
}

.av-figure img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.av-figure figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
}

.av-quote {
  position: relative;
  margin: 2.75rem 0 0;
  padding: 1.75rem 1.5rem 1.75rem 1.65rem;
  border-radius: 14px;
  background: rgba(157, 192, 66, 0.12);
  border: 1px solid rgba(157, 192, 66, 0.22);
}

.av-quote-mark {
  display: inline-flex;
  color: var(--lime);
  margin-bottom: 0.65rem;
}

.av-quote-mark svg {
  width: 28px;
  height: 28px;
}

.av-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

.av-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
}

.av-card {
  background: rgba(18, 22, 18, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
}

.av-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

.av-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

.av-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.av-toc li {
  counter-increment: toc;
}

.av-toc a {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--transition);
}

.av-toc a::before {
  content: counter(toc);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lime);
  padding-top: 0.1rem;
}

.av-toc a:hover {
  color: var(--text);
}

.av-related {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.av-related-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.85rem;
  text-decoration: none;
  align-items: center;
}

.av-related-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.av-related-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 0.2rem;
}

.av-related-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.av-related-item time {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.av-related-item:hover strong {
  color: var(--gold);
}

.av-subscribe {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  padding: 1.6rem 1.35rem;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(18, 32, 18, 0.88) 0%, rgba(10, 18, 12, 0.82) 100%),
    var(--av-sub-img) center/cover no-repeat;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.av-subscribe-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.55rem;
}

.av-subscribe h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  color: #fff;
}

.av-subscribe p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.2rem;
}

.av-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #5f7a3a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.av-subscribe-btn svg {
  width: 16px;
  height: 16px;
}

.av-subscribe-btn:hover {
  background: #6f8f28;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .av-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .av-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .av-subscribe {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .av-hero {
    min-height: 58vh;
    padding-bottom: 2.5rem;
  }

  .av-hero-inner h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .av-sidebar {
    grid-template-columns: 1fr;
  }

  .av-body {
    padding: 2.25rem 0 3.5rem;
  }

  .av-hero {
    min-height: 52vh;
  }

  .av-hero-inner h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .av-author {
    flex-direction: column;
    align-items: flex-start;
  }

  .av-author-share {
    align-self: flex-start;
  }

  .av-author-info {
    align-items: flex-start;
  }

  .av-content {
    font-size: 1.05rem;
  }

  .av-content .av-dropcap::first-letter {
    font-size: 3.4rem;
  }

  .av-related-item img {
    width: 72px;
    height: 72px;
  }
}

/* ---------- Jungle Diaries View ---------- */
.jdv-page {
  background: var(--bg-deep);
}

.jdv-hero {
  position: relative;
  min-height: min(70vh, 600px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2.5rem) 0 3.25rem;
  background:
    linear-gradient(180deg, rgba(5, 8, 5, 0.32) 0%, rgba(5, 8, 5, 0.5) 40%, rgba(5, 8, 5, 0.9) 100%),
    var(--jdv-hero-img) center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.jdv-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 78%, rgba(0, 0, 0, 0.22) 0%, transparent 55%),
    linear-gradient(90deg, rgba(5, 8, 5, 0.5) 0%, transparent 60%);
  pointer-events: none;
}

.jdv-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.jdv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(8, 14, 8, 0.55);
  border: 1px solid rgba(157, 192, 66, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.jdv-badge svg {
  width: 14px;
  height: 14px;
  color: var(--lime);
}

.jdv-hero-inner h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 14ch;
}

.jdv-hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 1.5rem;
}

.jdv-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
}

.jdv-hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.jdv-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.jdv-hero-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.jdv-meta-sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.35);
  padding: 0 !important;
}

.jdv-body {
  padding: 3rem 0 4.5rem;
}

.jdv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.9fr);
  gap: 2.75rem;
  align-items: start;
}

.jdv-lead {
  margin: 0 0 2rem;
}

.jdv-lead img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.jdv-content {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.jdv-content p {
  margin-bottom: 1.3rem;
}

.jdv-content h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 600;
  color: var(--text);
  margin: 2.35rem 0 1rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.jdv-h2-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(157, 192, 66, 0.15);
  color: var(--lime);
}

.jdv-h2-icon svg {
  width: 15px;
  height: 15px;
}

.jdv-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.75rem 0 2.25rem;
}

.jdv-gallery-item {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
}

.jdv-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jdv-gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.75rem 0.7rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 8, 0.82) 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
}

.jdv-quote {
  margin: 2.5rem 0 0;
  padding: 1.7rem 1.5rem;
  border-radius: 14px;
  background: rgba(157, 192, 66, 0.12);
  border: 1px solid rgba(157, 192, 66, 0.2);
}

.jdv-quote-mark {
  display: inline-flex;
  color: var(--lime);
  margin-bottom: 0.6rem;
}

.jdv-quote-mark svg {
  width: 28px;
  height: 28px;
}

.jdv-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

.jdv-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
}

.jdv-card {
  background: rgba(18, 22, 18, 0.72);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
}

.jdv-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.jdv-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--lime);
}

.jdv-details ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jdv-details li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.jdv-detail-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(157, 192, 66, 0.12);
  color: var(--lime);
}

.jdv-detail-icon svg {
  width: 14px;
  height: 14px;
}

.jdv-detail-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.jdv-details strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.jdv-details li p {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.jdv-tags {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.jdv-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.jdv-tag-list span {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.jdv-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.jdv-related-head h3 {
  margin-bottom: 0;
}

.jdv-related-head a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  white-space: nowrap;
}

.jdv-related-head a:hover {
  text-decoration: underline;
}

.jdv-related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
}

.jdv-related-item:first-of-type {
  border-top: none;
  padding-top: 0.2rem;
}

.jdv-related-item img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.jdv-related-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.jdv-related-item span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.jdv-related-item svg {
  width: 13px;
  height: 13px;
}

.jdv-related-item:hover strong {
  color: var(--gold);
}

.jdv-newsletter {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 1.6rem 1.35rem;
  background: rgba(157, 192, 66, 0.14);
  border: 1px solid rgba(157, 192, 66, 0.22);
  text-align: center;
}

.jdv-newsletter::before,
.jdv-newsletter::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239DC042'%3E%3Cpath d='M17 8C8 10 5.9 16.17 3.82 21.67l1.06.33C6.81 17.14 9 11 17 10V8zm0 0c3 0 5 1 5 1s-1.5 6-7 8c0 0 0-6 2-9z'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.jdv-newsletter::before {
  top: -18px;
  left: -18px;
  transform: rotate(-25deg);
}

.jdv-newsletter::after {
  right: -22px;
  bottom: -22px;
  transform: rotate(140deg);
}

.jdv-newsletter-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(157, 192, 66, 0.2);
  color: var(--lime);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.jdv-newsletter-icon svg {
  width: 22px;
  height: 22px;
}

.jdv-newsletter h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.jdv-newsletter p {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.jdv-newsletter-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #4f6a32;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.jdv-newsletter-btn svg {
  width: 16px;
  height: 16px;
}

.jdv-newsletter-btn:hover {
  background: #5f7a3a;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .jdv-layout {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .jdv-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .jdv-newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .jdv-hero {
    min-height: 56vh;
    padding-bottom: 2.5rem;
  }

  .jdv-hero-inner h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .jdv-sidebar {
    grid-template-columns: 1fr;
  }

  .jdv-body {
    padding: 2.25rem 0 3.5rem;
  }

  .jdv-hero {
    min-height: 52vh;
  }

  .jdv-hero-inner h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .jdv-meta-sep {
    display: none;
  }

  .jdv-content {
    font-size: 1.05rem;
  }

  .jdv-gallery {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .jdv-gallery-item {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Magazine Archive ---------- */
.ma-page {
  background: #070b08;
}

.ma-hero {
  position: relative;
  min-height: min(48vh, 420px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 2.75rem) 0 3rem;
  background:
    linear-gradient(105deg, rgba(7, 11, 8, 0.92) 0%, rgba(7, 11, 8, 0.72) 42%, rgba(7, 11, 8, 0.35) 100%),
    var(--ma-hero-img) center/cover no-repeat;
  overflow: hidden;
}

.ma-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 88% 18%, rgba(157, 192, 66, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, transparent 40%, rgba(7, 11, 8, 0.85) 100%);
  pointer-events: none;
}

.ma-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.ma-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #9dc042;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.ma-kicker::after {
  content: '';
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, #c5a059, transparent);
}

.ma-hero-inner h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}

.ma-hero-inner p {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 54ch;
}

.ma-archive {
  padding: 0 0 4.5rem;
  background: #070b08;
}

.ma-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.ma-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
}

.ma-filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.ma-filter:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.ma-filter.active {
  background: linear-gradient(135deg, #6f8f28, #557a2a);
  border-color: transparent;
  color: #fff;
}

.ma-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
}

.ma-sort svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.ma-sort select {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 1.1rem 0.35rem 0;
  cursor: pointer;
  outline: none;
  min-width: 9.5rem;
}

.ma-sort::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.ma-sort select option {
  background: #121812;
  color: #fff;
}

.ma-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.ma-card {
  display: flex;
  flex-direction: column;
  background: #121812;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ma-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157, 192, 66, 0.28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.ma-card[hidden] {
  display: none !important;
}

.ma-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.ma-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ma-card:hover .ma-card-media img {
  transform: scale(1.04);
}

.ma-tag {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #5f7a3a;
}

.ma-tag--wildlife {
  background: #5f7a3a;
}

.ma-tag--habitats {
  background: #6b7340;
}

.ma-tag--birds {
  background: #3f6b8a;
}

.ma-tag--conservation {
  background: #8a6a3a;
}

.ma-tag--ocean {
  background: #2f6f78;
}

.ma-tag--plants {
  background: #4f7a3a;
}

.ma-tag--ecosystems {
  background: #3f5f4a;
}

.ma-tag--insects {
  background: #7a5a3a;
}

.ma-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem 1.1rem 1.2rem;
  flex: 1;
}

.ma-card-body h2 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
}

.ma-card-body>p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ma-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.ma-card-foot>span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

.ma-card-foot svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ma-read {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ma-read svg {
  width: 12px;
  height: 12px;
}

.ma-read:hover {
  background: rgba(157, 192, 66, 0.15);
  border-color: rgba(157, 192, 66, 0.55);
  color: #c5d98a;
}

@media (max-width: 1100px) {
  .ma-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ma-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ma-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .ma-sort {
    align-self: flex-end;
  }

  .ma-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ma-hero {
    min-height: 42vh;
    padding-bottom: 2.25rem;
  }

  .ma-hero-inner h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .ma-archive {
    padding-bottom: 3.5rem;
  }

  .ma-grid {
    grid-template-columns: 1fr;
  }

  .ma-sort {
    align-self: stretch;
    justify-content: space-between;
  }

  .ma-sort select {
    width: 100%;
  }
}

/* ---------- Magazine View ---------- */
.mv-page {
  background: #070b08;
}

.mv-hero {
  position: relative;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
  background:
    linear-gradient(105deg, rgba(7, 11, 8, 0.95) 0%, rgba(7, 11, 8, 0.82) 45%, rgba(7, 11, 8, 0.55) 100%),
    var(--mv-hero-img, none) center/cover no-repeat;
  overflow: hidden;
}

.mv-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 82% 30%, rgba(157, 192, 66, 0.14) 0%, transparent 45%),
    linear-gradient(180deg, transparent 55%, #070b08 100%);
  pointer-events: none;
}

.mv-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.mv-hero-text {
  max-width: 640px;
}

.mv-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.6rem;
}

.mv-breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
}

.mv-breadcrumb a:hover {
  color: #9dc042;
}

.mv-hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.1rem;
}

.mv-description {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 56ch;
  margin-bottom: 1.5rem;
}

.mv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mv-tag {
  display: inline-flex;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5d98a;
  background: rgba(157, 192, 66, 0.12);
  border: 1px solid rgba(157, 192, 66, 0.4);
}

.mv-tag--wildlife,
.mv-tag--habitats,
.mv-tag--birds,
.mv-tag--conservation,
.mv-tag--ocean,
.mv-tag--plants,
.mv-tag--ecosystems,
.mv-tag--insects,
.mv-tag--nature {
  color: #fff;
  border-color: transparent;
}

.mv-tag--wildlife { background: #5f7a3a; }
.mv-tag--habitats { background: #6b7340; }
.mv-tag--birds { background: #3f6b8a; }
.mv-tag--conservation { background: #8a6a3a; }
.mv-tag--ocean { background: #2f6f78; }
.mv-tag--plants { background: #4f7a3a; }
.mv-tag--ecosystems { background: #3f5f4a; }
.mv-tag--insects { background: #7a5a3a; }
.mv-tag--nature { background: #4f6a32; }

.mv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}

.mv-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mv-meta svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #9dc042;
}

.mv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.mv-actions .btn {
  cursor: pointer;
}

.mv-cover {
  position: relative;
  isolation: isolate;
  width: clamp(230px, 25vw, 340px);
  perspective: 1400px;
}

.mv-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border: 1px solid rgba(197, 160, 89, 0.55);
  border-radius: 6px 14px 14px 6px;
  z-index: -1;
}

.mv-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotateY(-10deg) rotateZ(1deg);
  transform-origin: left center;
  transition: transform 0.5s ease;
}

.mv-cover:hover img {
  transform: rotateY(0) rotateZ(0);
}

/* Reader */
.mv-reader {
  background: #070b08;
  padding-bottom: 5rem;
  scroll-margin-top: var(--nav-h);
}

.mv-reader .pdfViewer {
  --mv-gutter: clamp(16px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: calc(100% - 2 * var(--mv-gutter));
  margin-inline: auto;
}

.mv-reader[data-state="loading"] .pdfViewer:empty {
  min-height: 50vh;
  align-items: center;
  justify-content: center;
}

.mv-reader[data-state="loading"] .pdfViewer:empty::before {
  content: '';
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(157, 192, 66, 0.2);
  border-top-color: #9dc042;
  animation: mv-spin 0.9s linear infinite;
}

@keyframes mv-spin {
  to { transform: rotate(360deg); }
}

.mv-viewer-message {
  padding: 4rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.mv-viewer-message a {
  color: #9dc042;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mv-sheet {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #121812;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mv-sheet:not(.is-rendered)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: mv-shimmer 1.4s linear infinite;
}

@keyframes mv-shimmer {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}

.mv-sheet canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.mv-page-num {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.mv-sheet:hover .mv-page-num {
  opacity: 1;
}

@media (hover: none) {
  .mv-page-num {
    opacity: 0.85;
  }
}

@media (max-width: 900px) {
  .mv-hero {
    padding-bottom: 3.5rem;
  }

  .mv-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mv-cover {
    order: -1;
    justify-self: center;
    width: min(260px, 62vw);
    margin-top: 0.5rem;
  }

  .mv-cover img,
  .mv-cover:hover img {
    transform: none;
  }

  .mv-cover::before {
    transform: translate(12px, 12px);
  }

  .mv-reader .pdfViewer {
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .mv-hero {
    padding: calc(var(--nav-h) + 2rem) 0 3rem;
  }

  .mv-hero-text h1 {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }

  .mv-description {
    font-size: 0.98rem;
  }

  .mv-actions .btn {
    flex: 1 1 auto;
  }

  .mv-reader {
    padding-bottom: 3.5rem;
  }

  .mv-reader .pdfViewer {
    gap: 0.85rem;
  }

  .mv-sheet {
    border-radius: 2px;
  }
}

/* ---------- Profile Page ---------- */
.profile-page {
  background: var(--bg-deep);
  padding: calc(var(--nav-h) + 2.5rem) 0 4.5rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.profile-identity img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.profile-identity h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.profile-identity p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.profile-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-form-head h2 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.profile-edit-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.profile-edit-btn:hover {
  color: var(--lime);
  border-color: rgba(157, 192, 66, 0.45);
  background: rgba(157, 192, 66, 0.08);
}

.profile-edit-btn svg {
  width: 16px;
  height: 16px;
}

.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
  margin-bottom: 1.15rem;
}

.profile-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.profile-field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-field input:focus {
  border-color: rgba(157, 192, 66, 0.55);
  box-shadow: 0 0 0 3px rgba(157, 192, 66, 0.12);
}

.profile-password-link {
  display: inline-block;
  color: #6ea8ff;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 1.25rem;
}

.profile-password-link:hover {
  color: #9bc2ff;
}

.profile-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0 0 1.25rem;
}

.profile-subscription {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.profile-subscription strong {
  color: var(--text);
  font-weight: 600;
}

.profile-activities-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 1.75rem;
}

.profile-activity-block {
  margin-bottom: 1.75rem;
}

.profile-activity-block:last-child {
  margin-bottom: 0;
}

.profile-activity-block h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.profile-activity-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
}

.profile-activity-box ol {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-activity-box li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.profile-activity-box a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.profile-activity-box a:hover {
  color: var(--lime);
}

.profile-uploads {
  list-style: none;
  padding-left: 0;
}

.profile-uploads li {
  display: grid;
  grid-template-columns: 28px 1.25rem 1fr;
  align-items: start;
  gap: 0.35rem;
  counter-increment: upload;
}

.profile-uploads {
  counter-reset: upload;
}

.profile-uploads li::before {
  content: counter(upload) ".";
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-top: 0.1rem;
}

.profile-uploads li a {
  grid-column: 3;
}

.profile-item-edit {
  grid-column: 1;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
  transition: color 0.25s ease, background 0.25s ease;
}

.profile-item-edit:hover {
  color: var(--lime);
  background: rgba(157, 192, 66, 0.1);
}

.profile-item-edit svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .profile-activities-title {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .profile-page {
    padding: calc(var(--nav-h) + 1.75rem) 0 3.5rem;
  }

  .profile-identity {
    align-items: flex-start;
  }

  .profile-identity img {
    width: 72px;
    height: 72px;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Forms Page (Write & Share) ---------- */
.forms-page {
  background: var(--bg-deep);
  padding-bottom: 4.5rem;
}

.forms-hero {
  padding: calc(var(--nav-h) + 2.75rem) 0 1.75rem;
  text-align: center;
}

.forms-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.forms-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: var(--lime);
  margin-bottom: 0.85rem;
}

.forms-intro {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  font-size: 1rem;
}

.forms-section {
  padding-top: 1.25rem;
}

.forms-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.forms-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.forms-tab svg {
  width: 16px;
  height: 16px;
}

.forms-tab:hover {
  color: var(--text);
  border-color: rgba(157, 192, 66, 0.4);
}

.forms-tab.active {
  background: linear-gradient(135deg, #6f8f28, #4f6a32);
  border-color: transparent;
  color: #fff;
}

.forms-panel[hidden] {
  display: none !important;
}

.sf-card {
  position: relative;
  background: rgba(18, 22, 18, 0.75);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.sf-card-banner {
  margin: -0.35rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background:
    linear-gradient(105deg, rgba(79, 106, 50, 0.35) 0%, rgba(18, 28, 18, 0.55) 55%, transparent 100%),
    url('../assets/images/hr1.jpg') right center/cover no-repeat;
  border: 1px solid rgba(157, 192, 66, 0.18);
}

.sf-card-banner-text {
  max-width: 420px;
}

.sf-leaf-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(157, 192, 66, 0.18);
  color: var(--lime);
  margin-bottom: 0.65rem;
}

.sf-leaf-mark svg {
  width: 22px;
  height: 22px;
}

.sf-card-banner h2,
.sf-diary-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.sf-card-banner p,
.sf-diary-head p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.sf-diary-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sf-diary-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2d4c36;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sf-diary-badge svg {
  width: 24px;
  height: 24px;
}

.sf-inline-leaf {
  display: inline-flex;
  vertical-align: middle;
  color: var(--lime);
  margin-left: 0.2rem;
}

.sf-inline-leaf svg {
  width: 18px;
  height: 18px;
}

.sf-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.sf-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
  position: relative;
}

.sf-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.sf-label-icon {
  display: inline-grid;
  place-items: center;
  color: var(--lime);
}

.sf-label-icon svg {
  width: 16px;
  height: 16px;
}

.sf-mini-leaf {
  display: inline-grid;
  place-items: center;
  color: var(--lime);
}

.sf-mini-leaf svg {
  width: 14px;
  height: 14px;
}

.sf-group input[type="text"],
.sf-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}

.sf-group input::placeholder,
.sf-group textarea::placeholder {
  color: var(--text-dim);
}

.sf-group input:focus,
.sf-group textarea:focus {
  border-color: rgba(157, 192, 66, 0.55);
  box-shadow: 0 0 0 3px rgba(157, 192, 66, 0.12);
}

.sf-count {
  align-self: flex-end;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: -0.15rem;
}

.sf-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.sf-upload {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem;
  border-radius: 12px;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
}

.sf-upload-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  flex-shrink: 0;
}

.sf-upload-icon svg {
  width: 22px;
  height: 22px;
}

.sf-upload-icon--pdf {
  width: auto;
  height: auto;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: #c0392b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sf-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: #2d4c36;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease;
}

.sf-browse:hover {
  background: #3a6044;
}

.sf-browse--soft {
  background: #dfe8d4;
  color: #2d4c36;
}

.sf-browse--soft:hover {
  background: #d0dcc0;
}

.sf-file-name {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.sf-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.sf-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.sf-side-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2d4c36;
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1.55rem;
}

.sf-side-icon svg {
  width: 18px;
  height: 18px;
}

.sf-actions {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease;
}

.sf-btn svg {
  width: 16px;
  height: 16px;
}

.sf-btn:hover {
  transform: translateY(-1px);
}

.sf-btn--cancel {
  background: rgba(157, 192, 66, 0.12);
  color: var(--text);
  border-color: rgba(157, 192, 66, 0.25);
}

.sf-btn--outline {
  background: transparent;
  color: var(--lime);
  border-color: rgba(157, 192, 66, 0.55);
}

.sf-btn--submit {
  background: linear-gradient(135deg, #6f8f28, #4f6a32);
  color: #fff;
}

.sf-btn--submit:hover {
  background: linear-gradient(135deg, #7fa32f, #5a7420);
}

.sf-script {
  position: absolute;
  right: 1.5rem;
  bottom: 1.1rem;
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: rgba(157, 192, 66, 0.55);
  pointer-events: none;
}

@media (max-width: 900px) {
  .sf-upload-row {
    grid-template-columns: 1fr;
  }

  .sf-card {
    padding: 1.35rem 1.2rem 1.75rem;
  }
}

@media (max-width: 640px) {
  .forms-hero {
    padding-top: calc(var(--nav-h) + 2rem);
    text-align: left;
  }

  .forms-intro {
    margin: 0;
  }

  .forms-tabs {
    justify-content: flex-start;
  }

  .sf-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sf-side-icon {
    margin-top: 0;
  }

  .sf-script {
    position: static;
    text-align: center;
    margin-top: 0.75rem;
  }
}