/* ANNUAL REPORT PAGE STYLES */

/* ── Page ───────────────────────────────────── */
.ar-page { background: #f2f5f9; padding: 60px 0 100px; }

/* ── Tabs ───────────────────────────────────── */
.ar-tabs {
  display: flex; gap: 0;
  background: #fff; border-radius: 14px; padding: 6px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  width: fit-content; margin-bottom: 40px;
}
.ar-tab {
  font-size: 13px; font-weight: 700; padding: 10px 26px;
  border-radius: 10px; cursor: pointer; border: none;
  background: transparent; color: #777;
  transition: all .22s; white-space: nowrap;
}
.ar-tab.active { background: var(--teal-dark); color: #fff; }
.ar-tab:hover:not(.active) { background: #f1f5f9; color: #333; }

/* ── Year filter ─────────────────────────────── */
.ar-year-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.year-pill {
  font-size: 12px; font-weight: 700; padding: 6px 18px;
  border-radius: 20px; cursor: pointer; border: 1.5px solid #dde2ea;
  background: #fff; color: #666; transition: all .2s;
}
.year-pill.active, .year-pill:hover {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* ── Report card ─────────────────────────────── */
.report-card {
  background: #fff; border-radius: 20px;
  overflow: hidden; position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.report-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(0,0,0,0.14);
}

/* Book cover */
.rc-cover {
  position: relative; height: 280px; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 28px 26px;
}
/* Each cover has a unique gradient set via inline style */
.rc-cover::before {
  content: ''; position: absolute; inset: 0;
  background: inherit; z-index: 0;
}
/* Decorative circles */
.rc-cover .deco {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.rc-cover .deco-1 { width: 220px; height: 220px; top: -60px; right: -50px; }
.rc-cover .deco-2 { width: 140px; height: 140px; bottom: -20px; right: 20px; }
.rc-cover .deco-3 { width: 80px; height: 80px; top: 30px; left: -20px; background: rgba(255,255,255,0.06); }

/* Cover text */
.rc-type-badge {
  position: relative; z-index: 1;
  font-size: 9px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.2); color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.rc-year {
  position: relative; z-index: 1;
  font-size: 52px; font-weight: 900; color: #fff;
  line-height: 1; margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.rc-tagline {
  position: relative; z-index: 1;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.88);
  line-height: 1.4; max-width: 200px;
}
/* Logo watermark */
.rc-logo-wm {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 18px; color: rgba(255,255,255,0.8);
}

/* Card body */
.rc-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.rc-title {
  font-size: 15px; font-weight: 800; color: #0f1f3d;
  line-height: 1.4; margin-bottom: 6px;
}
.rc-subtitle { font-size: 12px; color: #888; margin-bottom: 18px; flex: 1; }
.rc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; padding: 8px 16px;
  border-radius: 9px; text-decoration: none;
  transition: all .2s; white-space: nowrap;
}
.rc-btn-primary {
  background: var(--teal-dark); color: #fff;
}
.rc-btn-primary:hover { background: var(--teal-mid); color: #fff; }
.rc-btn-outline {
  background: #f1f5f9; color: #555;
  border: 1.5px solid #dde2ea;
}
.rc-btn-outline:hover { background: #e2e8f0; color: #333; }

/* New badge */
.rc-new {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: #ff4d4d; color: #fff;
  font-size: 9px; font-weight: 900; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 10px; border-radius: 6px;
}

/* ── Featured (latest) report ────────────────── */
.featured-report {
  display: flex; gap: 0; background: #fff;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  margin-bottom: 52px;
}
.fr-cover {
  flex: 0 0 340px; min-height: 340px;
  position: relative; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 36px 36px;
}
.fr-cover .deco { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); pointer-events: none; }
.fr-cover .deco-1 { width: 320px; height: 320px; top: -80px; right: -80px; }
.fr-cover .deco-2 { width: 180px; height: 180px; bottom: -40px; right: 40px; }
.fr-body {
  flex: 1; padding: 44px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.fr-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 900; letter-spacing: 2px;
  text-transform: uppercase; padding: 6px 16px; border-radius: 20px;
  background: rgba(0,122,119,0.1); color: var(--teal-dark);
  margin-bottom: 16px; width: fit-content;
}
.fr-label { font-size: 12px; font-weight: 700; color: #888; margin-bottom: 6px; }
.fr-year { font-size: 56px; font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: 8px; font-family: 'Poppins', sans-serif; }
.fr-title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.fr-desc { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 28px; }
.fr-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fr-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; padding: 12px 24px;
  border-radius: 12px; text-decoration: none; transition: all .2s;
}
.fr-btn-primary { background: var(--teal-dark); color: #fff; }
.fr-btn-primary:hover { background: var(--teal-mid); color: #fff; }
.fr-btn-outline { background: #f1f5f9; color: #555; border: 1.5px solid #dde2ea; }
.fr-btn-outline:hover { background: #e2e8f0; color: #333; }
.fr-stats {
  display: flex; gap: 32px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid #edf2f7;
  flex-wrap: wrap;
}
.fr-stat-num { font-size: 26px; font-weight: 900; color: var(--teal-dark); line-height: 1; }
.fr-stat-label { font-size: 11px; color: #888; margin-top: 4px; }

/* ── Section header ──────────────────────────── */
.ar-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.ar-section-title {
  font-size: 18px; font-weight: 800; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.ar-section-title span {
  height: 3px; width: 32px; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal-mid));
  display: inline-block;
}
.ar-count { font-size: 12px; color: #aaa; font-weight: 600; }

/* ── Hidden filter ───────────────────────────── */
.report-card.hidden { display: none; }

/* ── Pagination ──────────────────────────────── */
.ar-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 48px;
}
.pg-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: #fff; color: #555; border: 1.5px solid #dde2ea;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.pg-btn.active, .pg-btn:hover { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.pg-btn.disabled { opacity: .4; pointer-events: none; }

/* ── QR / Share modal ────────────────────────── */
.share-bar { display: flex; gap: 8px; margin-top: 10px; }
.share-ic {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; text-decoration: none; transition: opacity .2s;
}
.share-ic:hover { opacity: .75; }
.si-fb { background: #1877f2; color: #fff; }
.si-wa { background: #25d366; color: #fff; }
.si-li { background: #0a66c2; color: #fff; }
.si-tw { background: #000; color: #fff; }

@media (max-width: 991px) {
  .featured-report { flex-direction: column; }
  .fr-cover { flex: none; min-height: 240px; }
  .fr-body { padding: 28px 24px; }
  .fr-year { font-size: 40px; }
}

@media (max-width: 767px) {
  .ar-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    border-radius: 12px;
  }
  .ar-tabs::-webkit-scrollbar { display: none; }
  .ar-tab { padding: 10px 18px; font-size: 12px; flex-shrink: 0; }

  .ar-year-filter { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .ar-year-filter::-webkit-scrollbar { display: none; }
  .year-pill { flex-shrink: 0; }
}
