/* public/css/style.css - Styling Web Majalah Fraksi PKS DPRD Cianjur */
:root {
  --pks-orange: #F37021;
  --pks-orange-dark: #D4580E;
  --pks-orange-light: #FF8838;
  --pks-orange-glow: rgba(243, 112, 33, 0.25);
  --pks-navy: #0F172A;
  --pks-navy-card: #1E293B;
  --pks-gold: #F59E0B;
  --pks-gray-bg: #F8FAFC;
  --pks-gray-border: #E2E8F0;
  --pks-text-main: #1E293B;
  --pks-text-muted: #64748B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--pks-text-main);
  background-color: var(--pks-gray-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--pks-navy);
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Topbar Info */
.topbar {
  background-color: var(--pks-navy);
  color: #94A3B8;
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--pks-orange);
}
.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #F8FAFC;
}
.topbar-tag span.badge-pks {
  background: var(--pks-orange);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}
.topbar-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.topbar-links a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s;
}
.topbar-links a:hover {
  color: var(--pks-orange-light);
}

/* Header & Navigation */
.header-main {
  background: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.pks-emblem {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--pks-orange) 0%, var(--pks-orange-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--pks-orange-glow);
  position: relative;
  overflow: hidden;
}
.pks-emblem svg {
  width: 30px;
  height: 30px;
  fill: #FFFFFF;
}
.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pks-navy);
  margin-bottom: 2px;
}
.brand-text h1 span {
  color: var(--pks-orange);
}
.brand-text p {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pks-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.925rem;
  transition: all 0.2s;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
}
.nav-link:hover, .nav-link.active {
  color: var(--pks-orange);
  background: #FFF7ED;
}
.btn-nav-admin {
  background: var(--pks-navy);
  color: #fff !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  border: 1px solid #334155;
}
.btn-nav-admin:hover {
  background: var(--pks-orange);
  border-color: var(--pks-orange);
  box-shadow: 0 4px 14px var(--pks-orange-glow);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--pks-navy);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at top right, #3B1B0A 0%, var(--pks-navy) 60%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243, 112, 33, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(243, 112, 33, 0.2);
  border: 1px solid rgba(243, 112, 33, 0.5);
  color: #FFB380;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: 2.85rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-title span {
  color: var(--pks-orange-light);
  background: linear-gradient(90deg, #FF8838, #FFC107);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.1rem;
  color: #CBD5E1;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-primary-pks {
  background: linear-gradient(135deg, var(--pks-orange) 0%, var(--pks-orange-dark) 100%);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px var(--pks-orange-glow);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary-pks:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(243, 112, 33, 0.45);
  background: linear-gradient(135deg, var(--pks-orange-light) 0%, var(--pks-orange) 100%);
}
.btn-secondary-pks {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-secondary-pks:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
}

/* 3D Magazine Hero Card */
.hero-magazine-card {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}
.magazine-3d-wrap {
  width: 310px;
  height: 420px;
  position: relative;
  border-radius: 12px;
  transform: rotateY(-18deg) rotateX(8deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -20px 25px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(243, 112, 33, 0.3);
  cursor: pointer;
  background: #ffffff;
  overflow: hidden;
  border: 3px solid #FFF;
}
.magazine-3d-wrap:hover {
  transform: rotateY(-5deg) rotateX(2deg) scale(1.03);
}
.magazine-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(255,255,255,0.2) 30%, rgba(0,0,0,0.3) 100%);
  z-index: 10;
}
.magazine-cover-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0F172A;
  color: #fff;
  padding: 1.2rem;
  position: relative;
}
.cover-pks-header {
  background: var(--pks-orange);
  margin: -1.2rem -1.2rem 1rem -1.2rem;
  padding: 1.2rem;
  border-bottom: 3px solid var(--pks-gold);
}
.cover-pks-header h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.cover-pks-header p {
  color: #FFE6D6;
  font-size: 0.7rem;
  font-weight: 600;
}
.cover-body-box {
  background: #ffffff;
  color: #1E293B;
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cover-body-box h3 {
  font-size: 1.1rem;
  color: var(--pks-navy);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.cover-meta-info {
  font-size: 0.75rem;
  color: #64748B;
  border-top: 1px dashed #CBD5E1;
  padding-top: 0.5rem;
}

/* Interactive Flipbook Reader Box (Embedded) */
.flipbook-container-section {
  padding: 4rem 0;
  background: #0B1120;
  color: #F8FAFC;
}
.section-header-dark {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header-dark h2 {
  color: #FFFFFF;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}
.section-header-dark p {
  color: #94A3B8;
  font-size: 1.05rem;
}

/* PubHTML5 Viewer Wrapper */
.pubhtml5-viewer-box {
  background: #1E293B;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid #334155;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 720px;
  position: relative;
}

/* Top Toolbar */
.viewer-topbar {
  background: #0F172A;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  color: #CBD5E1;
  font-size: 0.875rem;
}
.viewer-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.viewer-tag {
  background: var(--pks-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.edition-dropdown-select {
  background: #1E293B;
  color: #F8FAFC;
  border: 1px solid #475569;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}
.edition-dropdown-select:focus {
  border-color: var(--pks-orange);
}

/* Main Flipbook Canvas Stage */
.viewer-stage {
  flex: 1;
  background: radial-gradient(circle at center, #232D3F 0%, #0F172A 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  user-select: none;
}

/* Flipbook Book Geometry */
.flipbook-book {
  display: flex;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  background: #ffffff;
  border-radius: 4px;
  position: relative;
  transition: transform 0.3s ease;
  max-width: 95%;
  height: 520px;
  aspect-ratio: 1.414 / 1;
}

/* Flipbook Pages: Left & Right */
.flip-page {
  flex: 1;
  height: 100%;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
}
.flip-page-left {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-right: 1px solid #E2E8F0;
  box-shadow: inset -15px 0 20px -10px rgba(0, 0, 0, 0.12);
}
.flip-page-right {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow: inset 15px 0 20px -10px rgba(0, 0, 0, 0.12);
}

/* Spine Shadow */
.flip-spine-shadow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.18), transparent 45%, transparent 55%, rgba(0,0,0,0.18));
  pointer-events: none;
  z-index: 20;
}

/* Page Corner Curl Animation */
.page-curl-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 50%, rgba(243, 112, 33, 0.2) 51%, #e2e8f0 100%);
  border-top-left-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 15;
}
.page-curl-corner:hover {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, var(--pks-orange) 51%, #fff 100%);
  box-shadow: -4px -4px 10px rgba(0,0,0,0.25);
}

/* PubHTML5 Bottom Controls Bar */
.viewer-controls-bar {
  background: #0F172A;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #334155;
  color: #E2E8F0;
  flex-wrap: wrap;
  gap: 0.75rem;
  z-index: 30;
}
.ctrl-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ctrl-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #CBD5E1;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.ctrl-btn:hover {
  background: #334155;
  color: #FFFFFF;
}
.ctrl-btn.active {
  background: var(--pks-orange);
  color: #ffffff;
}
.ctrl-page-display {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0.4rem;
}
.page-input-box {
  width: 44px;
  background: #1E293B;
  border: 1px solid #475569;
  color: #FFF;
  text-align: center;
  padding: 0.25rem 0.2rem;
  border-radius: 4px;
  font-weight: 700;
  outline: none;
}
.page-input-box:focus {
  border-color: var(--pks-orange);
}

/* Thumbnails Drawer */
.thumbnails-drawer {
  position: absolute;
  bottom: 58px;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid #334155;
  padding: 0.8rem 1rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  z-index: 25;
  transition: transform 0.3s ease;
  transform: translateY(150%);
}
.thumbnails-drawer.open {
  transform: translateY(0);
}
.thumb-item {
  width: 80px;
  height: 110px;
  background: #ffffff;
  border-radius: 4px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.thumb-item:hover, .thumb-item.active {
  border-color: var(--pks-orange);
  transform: scale(1.05);
}
.thumb-number {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.7rem;
  text-align: center;
  padding: 2px 0;
}

/* Catalog / Grid Edisi */
.catalog-section {
  padding: 5rem 0;
  background: #FFFFFF;
}
.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-tag {
  color: var(--pks-orange);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-size: 2.25rem;
  color: var(--pks-navy);
  margin-bottom: 0.75rem;
}
.section-subtitle {
  color: var(--pks-text-muted);
  font-size: 1rem;
}

/* Filters */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem;
  background: var(--pks-gray-bg);
  border-radius: 12px;
  border: 1px solid var(--pks-gray-border);
}
.filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  background: #ffffff;
  border: 1px solid var(--pks-gray-border);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--pks-orange);
  color: #ffffff;
  border-color: var(--pks-orange);
}
.search-input-wrap {
  position: relative;
  min-width: 260px;
}
.search-input-wrap input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  border: 1px solid var(--pks-gray-border);
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
}
.search-input-wrap input:focus {
  border-color: var(--pks-orange);
  box-shadow: 0 0 0 3px var(--pks-orange-glow);
}
.search-input-wrap i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
}

/* Edition Cards Grid */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.edition-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--pks-gray-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.edition-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
  border-color: #FED7AA;
}
.card-cover-wrap {
  height: 220px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--pks-orange);
}
.card-cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pks-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 5;
}
.card-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--pks-gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  z-index: 5;
}
.card-cover-graphic {
  text-align: center;
  padding: 1.5rem;
  color: #fff;
}
.card-cover-graphic h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.card-cover-graphic p {
  color: #CBD5E1;
  font-size: 0.8rem;
}
.card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-date {
  font-size: 0.78rem;
  color: var(--pks-orange);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pks-navy);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.card-desc {
  font-size: 0.875rem;
  color: var(--pks-text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: #94A3B8;
  margin-bottom: 1.25rem;
  border-top: 1px dashed var(--pks-gray-border);
  padding-top: 0.75rem;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}
.btn-read-card {
  background: var(--pks-orange);
  color: #ffffff;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
}
.btn-read-card:hover {
  background: var(--pks-orange-dark);
}
.btn-dl-card {
  background: var(--pks-gray-bg);
  color: #475569;
  border: 1px solid var(--pks-gray-border);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-dl-card:hover {
  background: #E2E8F0;
  color: var(--pks-navy);
}

/* Riset Pembanding Section */
.comparison-section {
  padding: 5rem 0;
  background: #FFF7ED;
  border-top: 1px solid #FFEDD5;
  border-bottom: 1px solid #FFEDD5;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.comp-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 12px;
  border-left: 4px solid var(--pks-orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.comp-level {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--pks-orange);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.comp-title {
  font-size: 1.2rem;
  color: var(--pks-navy);
  margin-bottom: 0.75rem;
}
.comp-desc {
  font-size: 0.875rem;
  color: var(--pks-text-muted);
  line-height: 1.6;
}
.comp-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.comp-badge {
  background: #F1F5F9;
  color: #334155;
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Profil Aleg Fraksi PKS Cianjur Section */
.council-section {
  padding: 5rem 0;
  background: #FFFFFF;
}
.council-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.council-card {
  background: #ffffff;
  border: 1px solid var(--pks-gray-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.25s;
}
.council-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--pks-orange);
}
.council-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 100%);
  color: var(--pks-orange-dark);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.council-role {
  color: var(--pks-orange);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.council-name {
  font-size: 1.05rem;
  color: var(--pks-navy);
  margin-bottom: 0.5rem;
}
.council-focus {
  font-size: 0.8rem;
  color: var(--pks-text-muted);
}

/* Form Aspirasi Warga */
.aspiration-section {
  padding: 5rem 0;
  background: var(--pks-navy);
  color: #ffffff;
  position: relative;
}
.aspiration-card {
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.form-full {
  grid-column: 1 / -1;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 0.4rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: #0F172A;
  border: 1px solid #475569;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #F8FAFC;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--pks-orange);
  box-shadow: 0 0 0 3px var(--pks-orange-glow);
}

/* Footer */
.footer-main {
  background: #090D16;
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--pks-orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.footer-brand h3 span {
  color: var(--pks-orange);
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-links h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.footer-links ul {
  list-style: none;
}
.footer-links ul li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--pks-orange);
}
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  color: #64748B;
}

/* Modal Popup (Fullscreen Flipbook & Share) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #1E293B;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  color: #fff;
  border: 1px solid #334155;
  position: relative;
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-close-btn:hover {
  color: #fff;
}
.share-links-list {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
}
.share-btn-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  transition: transform 0.2s;
}
.share-btn-round:hover {
  transform: scale(1.1);
}
.share-wa { background: #25D366; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }
.share-copy { background: #64748B; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-magazine-card {
    order: -1;
  }
  .pubhtml5-viewer-box {
    height: 600px;
  }
  .flipbook-book {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .pubhtml5-viewer-box {
    height: 520px;
  }
  .flip-page-left {
    display: none; /* di mobile jadi single page view */
  }
  .flip-spine-shadow {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
