/* ==========================================================================
   HALUAN KAPAL E-MAGAZINE - STYLESHEET (UPDATED)
   Program Studi D4 Teknologi Rekayasa Konstruksi Perkapalan
   Sekolah Vokasi Universitas Diponegoro Semarang
   ========================================================================== */

:root {
  --primary: #0b2239;
  --primary-dark: #071524;
  --primary-light: #163e65;
  --accent: #d99b26;
  --accent-hover: #b8821d;
  --text-dark: #111827;
  --text-muted: #4b5563;
  --text-light: #9ca3af;
  --bg-page: #f8f9fa;
  --bg-white: #ffffff;
  --bg-footer: #d9dbde;
  --border-color: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

.app-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #ffffff;
}

@media (min-width: 768px) {
  .app-container {
    max-width: 1200px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
  }
}

/* ==========================================================================
   HEADER SECTION - Clean, Sharp & Never Cuts Content
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
  flex: 1;
}

.brand-logo-img {
  width: auto;
  height: 54px;
  max-height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #1f2937;
}

.brand-main {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0b2239;
  line-height: 1.12;
}

.brand-sub2 {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4b5563;
  margin-top: 2px;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #4b5563;
  padding: 6px 4px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Circular Hamburger Button */
.menu-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  background: transparent;
  flex-shrink: 0;
  cursor: pointer;
}

.menu-toggle-btn span {
  display: block;
  width: 18px;
  height: 1.8px;
  background-color: #1f2937;
  border-radius: 1px;
  transition: var(--transition);
}

.menu-toggle-btn:hover {
  background-color: #f3f4f6;
  border-color: #0b2239;
}

.menu-toggle-btn.open span:nth-child(1) {
  transform: translateY(5.3px) rotate(45deg);
}
.menu-toggle-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle-btn.open span:nth-child(3) {
  transform: translateY(-5.3px) rotate(-45deg);
}

/* Slide-out Mobile Navigation Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 201;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  transform: translateX(-320px);
}

.drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  background: #f3f4f6;
}

.drawer-menu {
  list-style: none;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.drawer-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
}

.drawer-item a:hover {
  background: #f9fafb;
  color: var(--primary);
  padding-left: 28px;
}

.drawer-item a svg {
  width: 20px;
  height: 20px;
  color: var(--text-light);
}

.drawer-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   HERO SECTION - Ample Spacing (Header Never Cuts Off Magazine!)
   ========================================================================== */
.hero-section {
  padding: 36px 20px 36px;
  text-align: center;
  background: #ffffff;
  scroll-margin-top: 80px;
}

.magazine-cover-showcase {
  width: 100%;
  max-width: min(92vw, 340px);
  margin: 10px auto 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Ambient Marine Halo Glow behind the Magazine (Eye-Catching Presence) */
.magazine-cover-showcase::before {
  content: '';
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 115%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.16) 0%, rgba(14, 165, 233, 0.08) 35%, rgba(11, 34, 57, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
}

/* 1. Top Bar ABOVE the Flipbook (Completely outside flipbook display) */
.hero-showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 0 4px;
  position: relative;
  z-index: 5;
}

.hero-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 8px #0284c7;
}

.hero-expand-btn-outside {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  color: #0369a1;
  border: 1.5px solid #bae6fd;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12), inset 0 1px 1px #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 5;
}

.hero-expand-btn-outside svg {
  width: 15px;
  height: 15px;
  fill: #0284c7;
  transition: transform 0.2s ease, fill 0.2s ease;
}

.hero-expand-btn-outside:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.35);
}

.hero-expand-btn-outside:hover svg {
  fill: #ffffff;
  transform: scale(1.15);
}

/* 2. Hero Flipbook Wrapper (Clean & Pure: Zero white border frame!) */
.hero-flipbook-wrapper {
  position: relative;
  width: auto;
  margin: 0 auto;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  user-select: none;
  -webkit-user-select: none;
  overflow: visible;
  z-index: 2;
}

#hero-flipbook-book {
  position: relative;
  margin: 0 auto;
  background-color: #ffffff;
  border: none !important;
  border-radius: 4px;
  box-shadow: 0 16px 42px rgba(11, 34, 57, 0.25), 0 3px 10px rgba(0, 0, 0, 0.1);
  cursor: grab;
  touch-action: pan-y;
  overflow: hidden !important;
}

#hero-flipbook-book:active {
  cursor: grabbing;
}

#hero-flipbook-book .stf__parent,
#hero-flipbook-book .stf__wrapper {
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

#hero-flipbook-book .page {
  background-color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 3px;
}

.hero-fallback-cover {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: 0 16px 42px rgba(11, 34, 57, 0.25);
}

/* Side Chevrons (Strictly outside gutter on desktop; hidden on mobile so NO button ever overlaps the book!) */
.hero-side-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  backdrop-filter: blur(16px);
  color: #0b2239;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(2, 132, 199, 0.2);
  box-shadow: 0 8px 24px rgba(11, 34, 57, 0.12), inset 0 1px 2px #ffffff;
  cursor: pointer;
  z-index: 25;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.hero-side-arrow svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.hero-side-arrow:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.4);
}

.hero-side-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-side-arrow-prev {
  left: -54px;
}

.hero-side-arrow-next {
  right: -54px;
}

/* Desktop only for side gutter arrows: 100% outside the book */
@media (min-width: 900px) {
  .hero-side-arrow {
    display: flex;
  }
}

@media (max-width: 899px) {
  .hero-side-arrow {
    display: none !important;
  }
}

/* 3. Bottom Controls Bar BELOW the Flipbook (Completely outside flipbook display) */
.hero-flipbook-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.85) 100%);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06), inset 0 1px 1px #ffffff;
  box-sizing: border-box;
}

.hero-glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(203, 213, 225, 0.75);
  color: #0b2239;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
  white-space: nowrap;
}

.hero-glass-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.hero-glass-btn:hover {
  background: #0b2239;
  color: #ffffff;
  border-color: #0b2239;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 34, 57, 0.2);
}

.hero-page-indicator-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 0 4px;
}

.hero-page-counter {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0b2239;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-hint-subtext {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 540px) {
  /* On mobile, hide the long hint subtext so "Halaman 1 / 18" has plenty of room and NEVER wraps awkwardly */
  .hero-hint-subtext {
    display: none !important;
  }
  .hero-glass-btn {
    padding: 6px 10px;
    font-size: 0.74rem;
    gap: 4px;
  }
  .hero-page-counter {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .hero-glass-btn {
    padding: 5px 8px;
    font-size: 0.70rem;
  }
  .hero-glass-btn svg {
    width: 14px;
    height: 14px;
  }
}

.cover-card-link {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.cover-card-link:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.magazine-cover-img {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.cover-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.cover-hover-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(11, 34, 57, 0.92);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.cover-card-link:hover .cover-hover-badge {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Hero Typography */
.hero-title-group {
  margin-bottom: 12px;
}

.hero-main-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #111827;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-sub-title {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #374151;
  text-transform: uppercase;
  margin-top: 2px;
}

.hero-desc {
  max-width: 360px;
  margin: 0 auto 22px;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.55;
}

/* Action Buttons (Eye & Download circles matching screenshot) */
.action-buttons-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.circle-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0e273f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 39, 63, 0.25);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.circle-action-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.circle-action-btn:hover {
  background: #173f67;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 16px rgba(14, 39, 63, 0.35);
  color: #ffffff;
}

.circle-action-btn:active {
  transform: translateY(0) scale(0.98);
}

.circle-action-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1f2937;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.circle-action-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   OTHER EDITIONS SECTION (E-Magazine Lainnya)
   ========================================================================== */
.other-editions-section {
  padding: 32px 20px 38px;
  background: #ffffff;
  scroll-margin-top: 80px;
}

.section-header {
  margin-bottom: 22px;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
}

.editions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edition-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  transition: var(--transition);
}

.card-thumb-wrapper {
  flex-shrink: 0;
  width: 108px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  background: #fff;
  transition: var(--transition);
}

.card-thumb-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card-thumb-img {
  width: 100%;
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
  display: block;
}

.card-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f2937;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.card-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 10px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-actions .circle-action-btn {
  width: 38px;
  height: 38px;
}

.card-actions .circle-action-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   FEATURE HIGHLIGHTS / ARTICLES
   ========================================================================== */
.features-section {
  padding: 34px 20px;
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  scroll-margin-top: 80px;
}

.features-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.article-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.article-chip:hover {
  transform: translateX(4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.article-page-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef2f6;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.article-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.article-info p {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

.custom-pdf-box {
  margin-top: 24px;
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.custom-pdf-box:hover {
  border-color: var(--primary);
  background: #f1f5f9;
}

.custom-pdf-box svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
  margin-bottom: 8px;
}

.custom-pdf-box h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

.custom-pdf-box p {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
}

#custom-pdf-input {
  display: none;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
  background-color: var(--bg-footer);
  color: #1f2937;
  padding: 34px 24px 36px;
  border-top: 1px solid #c9cdd4;
  margin-top: auto;
  scroll-margin-top: 80px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.footer-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  margin-bottom: 2px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #1f2937;
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.footer-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #1f2937;
  transition: all 0.2s ease;
}

.footer-item:hover {
  color: var(--primary);
  text-decoration: underline;
  transform: translateX(2px);
}

.footer-item.footer-whatsapp:hover {
  color: #16a34a;
}

.footer-item.footer-whatsapp:hover svg {
  color: #16a34a;
  transform: scale(1.1);
}

.footer-item.footer-email:hover {
  color: #0284c7;
}

.footer-item.footer-email:hover svg {
  color: #0284c7;
  transform: scale(1.1);
}

.footer-address-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #272f3d;
  text-decoration: none;
  max-width: 480px;
  transition: all 0.2s ease;
}

.footer-address-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #1f2937;
  transition: all 0.2s ease;
}

.footer-address-link:hover {
  color: var(--primary);
  text-decoration: underline;
  transform: translateX(2px);
}

.footer-address-link:hover svg {
  color: #dc2626;
  transform: scale(1.15);
}

.footer-address {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #272f3d;
  max-width: 480px;
}

.social-links-list {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btn:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-copyright {
  border-top: 1px solid #c4c8d0;
  padding-top: 18px;
  margin-top: 12px;
  text-align: center;
  font-size: 0.75rem;
  color: #4b5563;
}

/* ==========================================================================
   DESKTOP MEDIA QUERIES
   ========================================================================== */
@media (min-width: 768px) {
  .site-header {
    padding: 12px 32px;
  }
  
  .brand-logo-img {
    width: auto;
    height: 62px;
    max-height: 66px;
  }

  .brand-sub {
    font-size: 0.72rem;
  }

  .brand-main {
    font-size: 0.95rem;
  }

  .brand-sub2 {
    font-size: 0.65rem;
  }

  .desktop-nav {
    display: flex;
  }

  .menu-toggle-btn {
    display: none;
  }

  .hero-section {
    padding: 48px 36px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .magazine-cover-showcase {
    max-width: 440px;
    margin: 18px auto 26px;
  }

  .hero-main-title {
    font-size: 1.85rem;
  }

  .hero-sub-title {
    font-size: 1.45rem;
  }

  .hero-desc {
    font-size: 0.95rem;
    max-width: 520px;
  }

  .circle-action-btn {
    width: 48px;
    height: 48px;
  }

  .circle-action-btn svg {
    width: 22px;
    height: 22px;
  }

  .other-editions-section {
    padding: 40px 36px 48px;
  }

  .editions-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .edition-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
  }

  .card-thumb-wrapper {
    width: 140px;
  }

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

  .footer-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 36px;
  }
}

@media (min-width: 1024px) {
  .magazine-cover-showcase {
    max-width: 490px;
    margin: 20px auto 30px;
  }
  .card-thumb-wrapper {
    width: 155px;
  }
}

@media (min-width: 1280px) {
  .magazine-cover-showcase {
    max-width: 520px;
    margin: 22px auto 32px;
  }
  .card-thumb-wrapper {
    width: 170px;
  }
}
