/* ===================================================================
   PERPUSTAKAAN SMA NEGERI 2 KUDUS D'GAYA
   MODERN & PREMIUM STYLESHEET
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.72);
  --border-color: rgba(226, 232, 240, 0.8);
  --border-highlight: rgba(99, 102, 241, 0.25);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Brand Accents */
  --brand-navy: #0f2b5c;
  --brand-blue: #2563eb;
  --brand-blue-light: #3b82f6;
  --brand-cyan: #06b6d4;
  
  /* Physical Book Accent (Warm Amber / Heritage) */
  --amber-primary: #d97706;
  --amber-hover: #b45309;
  --amber-glow: rgba(217, 119, 6, 0.35);
  --amber-surface: #fffbeb;
  --amber-border: #fde68a;

  /* E-Book Accent (Emerald / Modern Digital) */
  --teal-primary: #0d9488;
  --teal-hover: #0f766e;
  --teal-glow: rgba(13, 148, 136, 0.35);
  --teal-surface: #f0fdfa;
  --teal-border: #99f6e4;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 10px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.14), 0 8px 16px -6px rgba(15, 23, 42, 0.08);
  --shadow-glow-blue: 0 10px 30px -5px rgba(37, 99, 235, 0.3);
  --shadow-glow-amber: 0 10px 30px -5px rgba(217, 119, 6, 0.3);
  --shadow-glow-teal: 0 10px 30px -5px rgba(13, 148, 136, 0.3);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #1e293b;
  --bg-surface: rgba(15, 23, 42, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-color: rgba(51, 65, 85, 0.6);
  --border-highlight: rgba(99, 102, 241, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #090d16;

  --amber-surface: rgba(217, 119, 6, 0.12);
  --amber-border: rgba(217, 119, 6, 0.3);

  --teal-surface: rgba(13, 148, 136, 0.12);
  --teal-border: rgba(13, 148, 136, 0.3);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px -6px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Ambient Background Light Glow Orbs */
.bg-ambient-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  transition: opacity 0.5s ease;
}

[data-theme="dark"] .orb {
  opacity: 0.18;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #3b82f6, #1d4ed8);
  top: -100px;
  right: -50px;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #d97706, #f59e0b);
  top: 40%;
  left: -120px;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0d9488, #06b6d4);
  bottom: 10%;
  right: 5%;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* ===================================================================
   HEADER & NAVBAR
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.brand-icon img,
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brand-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  25%, 100% { transform: translateX(100%); }
}

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

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-title span {
  background: linear-gradient(135deg, #2563eb, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 2px;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--border-color);
  transform: rotate(15deg);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
  transition: var(--transition-smooth);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-toggle span {
  width: 22px;
  height: 2.2px;
  background: currentColor;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .badge-inline {
  display: inline-block;
  font-size: 0.45em;
  vertical-align: middle;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-address-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  font-weight: 500;
}

.hero-address-pill svg {
  color: #ef4444;
  flex-shrink: 0;
}

/* ===================================================================
   PRIMARY DUAL ACTION BUTTONS (The 2 Core Requirements)
   =================================================================== */
.hero-dual-actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.action-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.6rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition-bounce);
  border: 2px solid transparent;
}

/* Button 1: BUKU FISIK */
.action-card-fisik {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
  color: #78350f;
  box-shadow: var(--shadow-md), var(--shadow-glow-amber);
}

[data-theme="dark"] .action-card-fisik {
  background: linear-gradient(135deg, #1f1b13 0%, #2e210b 100%);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fef3c7;
}

.action-card-fisik:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-xl), 0 15px 35px -5px rgba(217, 119, 6, 0.45);
  border-color: #f59e0b;
}

/* Button 2: E-BOOK */
.action-card-ebook {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  border-color: #5eead4;
  color: #134e4a;
  box-shadow: var(--shadow-md), var(--shadow-glow-teal);
}

[data-theme="dark"] .action-card-ebook {
  background: linear-gradient(135deg, #0f1f1d 0%, #0d2826 100%);
  border-color: rgba(20, 184, 166, 0.4);
  color: #ccfbf1;
}

.action-card-ebook:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-xl), 0 15px 35px -5px rgba(13, 148, 136, 0.45);
  border-color: #14b8a6;
}

.action-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.action-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.action-card-fisik .action-icon-circle {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.action-card-ebook .action-icon-circle {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: white;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.action-card-link:hover .action-icon-circle {
  transform: scale(1.1) rotate(4deg);
}

.action-meta {
  display: flex;
  flex-direction: column;
}

.action-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 2px;
}

.action-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.action-desc {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 3px;
}

.action-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  flex-shrink: 0;
}

[data-theme="dark"] .action-arrow {
  background: rgba(255, 255, 255, 0.15);
}

.action-card-fisik .action-arrow {
  color: #b45309;
}
.action-card-ebook .action-arrow {
  color: #0f766e;
}

.action-card-link:hover .action-arrow {
  transform: translateX(6px);
  background: #ffffff;
}

[data-theme="dark"] .action-card-link:hover .action-arrow {
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Stats Bar */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Hero Visual Showcase (Right Side) */
.hero-showcase {
  position: relative;
}

.showcase-card-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.showcase-image-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.showcase-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.showcase-card-main:hover .showcase-image-wrap img {
  transform: scale(1.05);
}

.showcase-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.85) 100%);
}

.showcase-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: white;
}

.caption-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.caption-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.caption-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Floating Interactive Badges on Hero Showcase */
.floating-badge {
  position: absolute;
  padding: 12px 18px;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  animation: floatBadge 6s ease-in-out infinite alternate;
}

.badge-float-1 {
  top: -20px;
  left: -25px;
}

.badge-float-2 {
  bottom: 25px;
  right: -25px;
  animation-delay: -3s;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.float-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.float-icon-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.float-icon-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.float-text-main {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.float-text-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===================================================================
   SECTION COMMONS
   =================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

[data-theme="dark"] .section-tag {
  background: rgba(37, 99, 235, 0.18);
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   SEKILAS TENTANG PERPUSTAKAAN D'GAYA (ABOUT SECTION)
   =================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card-stacked {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}

.about-card-stacked img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-stamp {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-content-heading {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.about-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-card {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ===================================================================
   PORTAL COMPARISON & ACCESS CARDS
   =================================================================== */
.portals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.portal-box {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  position: relative;
}

.portal-box:hover {
  transform: translateY(-6px);
}

.portal-box.portal-physical {
  border-color: var(--amber-border);
}
.portal-box.portal-physical:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-amber);
}

.portal-box.portal-digital {
  border-color: var(--teal-border);
}
.portal-box.portal-digital:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-teal);
}

.portal-header-banner {
  padding: 2.2rem 2.2rem 1.5rem 2.2rem;
  position: relative;
}

.portal-physical .portal-header-banner {
  background: linear-gradient(135deg, var(--amber-surface) 0%, rgba(254, 243, 199, 0.2) 100%);
}

.portal-digital .portal-header-banner {
  background: linear-gradient(135deg, var(--teal-surface) 0%, rgba(204, 251, 241, 0.2) 100%);
}

.portal-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.portal-physical .portal-type-badge {
  background: #fef3c7;
  color: #92400e;
}
[data-theme="dark"] .portal-physical .portal-type-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.portal-digital .portal-type-badge {
  background: #ccfbf1;
  color: #115e59;
}
[data-theme="dark"] .portal-digital .portal-type-badge {
  background: rgba(13, 148, 136, 0.2);
  color: #99f6e4;
}

.portal-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.portal-subtext {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.portal-body {
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portal-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
  flex: 1;
}

.portal-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.portal-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.portal-physical .portal-check-icon {
  background: #fde68a;
  color: #92400e;
}

.portal-digital .portal-check-icon {
  background: #99f6e4;
  color: #115e59;
}

.portal-action-area {
  margin-top: auto;
}

.portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 1.1rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.portal-btn-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}
.portal-btn-amber:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-amber);
}

.portal-btn-teal {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: white;
}
.portal-btn-teal:hover {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-teal);
}

.portal-url-label {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  word-break: break-all;
}

/* ===================================================================
   SEARCH SIMULATOR & CATALOG QUICK FINDER
   =================================================================== */
.catalog-finder-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 3.5rem;
}

.finder-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.finder-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.search-input-wrapper {
  position: relative;
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

.search-icon-pos {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.catalog-search-input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.catalog-search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.search-quick-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tag-chip {
  padding: 5px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tag-chip:hover {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
}

.quick-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}

.search-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.search-result-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.result-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.result-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.result-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  flex-shrink: 0;
}

.result-badge.fisik {
  background: #fef3c7;
  color: #92400e;
}
.result-badge.ebook {
  background: #ccfbf1;
  color: #115e59;
}

/* ===================================================================
   FACILITIES & SERVICES SECTION
   =================================================================== */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.facility-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.facility-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-blue-light);
  box-shadow: var(--shadow-lg);
}

.facility-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.f-icon-1 { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.f-icon-2 { background: rgba(13, 148, 136, 0.1); color: #0d9488; }
.f-icon-3 { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.f-icon-4 { background: rgba(147, 51, 234, 0.1); color: #9333ea; }
.f-icon-5 { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.f-icon-6 { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.facility-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.facility-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================================================
   OPERATING HOURS & RULES SECTION
   =================================================================== */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.schedule-card, .rules-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.card-inner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.8rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.header-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-table {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
}

.day-name {
  font-weight: 700;
  color: var(--text-primary);
}

.time-badge {
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

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

.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.rule-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===================================================================
   CONTACT & LOCATION SECTION (Jl. Ganesha I Purwosari Kudus)
   =================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}

.location-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.location-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.8rem 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.info-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

.map-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
  min-height: 380px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
}

/* ===================================================================
   FLOATING ACTION PILL (MOBILE & DESKTOP QUICK ACCESS)
   =================================================================== */
.floating-quick-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 999;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.floating-quick-bar.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.quick-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.quick-btn-fisik {
  background: #f59e0b;
  color: white;
}
.quick-btn-fisik:hover {
  background: #d97706;
  transform: scale(1.05);
}

.quick-btn-ebook {
  background: #0d9488;
  color: white;
}
.quick-btn-ebook:hover {
  background: #0f766e;
  transform: scale(1.05);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: #0b132b;
  color: #94a3b8;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

/* ===================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   =================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-showcase {
    max-width: 600px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: flex;
  }
  .nav-cta-btn {
    display: none;
  }
  .portals-grid,
  .schedule-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }
  .facility-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .badge-float-1,
  .badge-float-2 {
    display: none;
  }
  .about-pillars {
    grid-template-columns: 1fr;
  }
  .quick-bar-label {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
