/* ==========================================================================
   PT OTW GUSAHA CENDEKIA INDONESIA - Official Website Stylesheet
   Theme: Clean, Modern, Academic Publishing with Light & Dark Modes
   ========================================================================== */

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

:root {
  /* Brand Colors inspired by Logo */
  --brand-blue: #0284c7;
  --brand-blue-deep: #0369a1;
  --brand-cyan: #00a3e0;
  --brand-orange: #f59e0b;
  --brand-orange-deep: #d97706;
  --brand-teal: #0f766e;
  --brand-teal-dark: #115e59;

  /* Light Theme (Default) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-modal: rgba(15, 23, 42, 0.65);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #0284c7;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.18);

  --badge-bg: rgba(2, 132, 199, 0.08);
  --badge-text: #0284c7;

  --card-border: #e2e8f0;
  --logo-filter: none;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-card: #141d2e;
  --bg-card-hover: #19253b;
  --bg-header: rgba(11, 15, 25, 0.92);
  --bg-modal: rgba(0, 0, 0, 0.82);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-color: #1e293b;
  --border-light: #283548;
  --border-focus: #38bdf8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);

  --badge-bg: rgba(56, 189, 248, 0.12);
  --badge-text: #38bdf8;

  --card-border: #1f2a3f;
  --logo-filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

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

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

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #00a3e0 40%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-orange));
  box-shadow: 0 0 8px var(--brand-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
  filter: brightness(1.06);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
}

.btn-outline:hover {
  background: var(--badge-bg);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-wrap {
  height: 52px;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

[data-theme="dark"] .brand-logo-wrap {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

footer .brand-logo-wrap {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  padding: 4px 8px;
  width: fit-content;
}

.brand-logo-img {
  height: 100%;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  filter: var(--logo-filter);
  transition: transform 0.2s ease;
}

.brand-logo-wrap:hover .brand-logo-img {
  transform: scale(1.03);
}

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

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

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

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--brand-blue);
  background: var(--badge-bg);
}

.nav-link.active {
  color: var(--brand-blue);
  background: var(--badge-bg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

/* Mobile Hamburger */
.hamburger-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
  background: var(--bg-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  z-index: 99;
  box-shadow: var(--shadow-lg);
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer .nav-link {
  padding: 0.85rem 1.15rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  min-height: 48px;
}

.mobile-drawer .nav-link:active,
.mobile-drawer .nav-link.active {
  background: var(--badge-bg);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 85%, rgba(245, 158, 11, 0.06) 0%, transparent 45%);
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.hero-title {
  font-size: clamp(1.85rem, 5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.trust-avatars {
  display: flex;
  margin-left: 0.5rem;
}

.trust-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
  margin-left: -10px;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.trust-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-text strong {
  color: var(--text-primary);
}

/* Hero Showcase Card */
.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.hero-card-badge {
  background: var(--badge-bg);
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

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

.metric-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: var(--transition);
}

.metric-box:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.metric-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.metric-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-card-featured {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(245, 158, 11, 0.08));
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.featured-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.featured-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.featured-info p {
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Decorative Floating Tag */
.floating-chip {
  position: absolute;
  bottom: -15px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  animation: floatBounce 4s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-text-content p {
  font-size: 1rem;
  line-height: 1.75;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  padding: 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.value-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.value-card p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--badge-bg);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: var(--brand-blue);
  color: #ffffff;
  transform: scale(1.05);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
}

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

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.service-features-list li {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features-list li::before {
  content: "✓";
  color: #10b981;
  font-weight: 700;
}

/* ==========================================================================
   PUBLICATIONS & BOOKS SECTION
   ========================================================================== */
.pub-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.pub-search-box {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 400px;
}

.pub-search-box input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.pub-search-box input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.pub-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pub-category-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover, .chip-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

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

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.35);
}

.book-cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.45;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: var(--bg-tertiary);
  cursor: pointer;
  position: relative;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.book-card:hover .book-cover-wrap img {
  transform: scale(1.04);
}

.book-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.book-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.book-footer {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.book-isbn {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.no-books-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  display: none;
}

/* ==========================================================================
   PUBLISHING WORKFLOW TIMELINE
   ========================================================================== */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

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

.step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.workflow-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.workflow-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-card-item {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: var(--transition);
}

.contact-card-item:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--badge-bg);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-details a {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--brand-blue);
}

/* Contact Form */
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.form-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
  background: var(--bg-card);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   MODAL (BOOK DETAILS & SYNOPSIS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-modal);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.2rem;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--bg-tertiary);
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

.modal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

.modal-cover-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-tertiary);
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-meta-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
  padding: 0.9rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.modal-meta-item {
  font-size: 0.8rem;
}

.modal-meta-item strong {
  color: var(--text-muted);
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.modal-synopsis-box {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand-blue);
}

.modal-synopsis-box h4 {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.modal-synopsis-box p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
  background: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius-full);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.floating-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.wa-icon {
  font-size: 1.3rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem;
  margin-top: 2rem;
}

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

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-brand-col p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: justify;
  text-justify: inter-word;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 2px;
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--brand-blue);
  transform: translateX(4px);
  display: inline-block;
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-contact-list li {
  display: flex;
  gap: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & MOBILE-FRIENDLY ENHANCEMENTS
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .nav-cta-btn {
    display: none;
  }
}

/* Tablets & Large Phones (<= 768px) */
@media (max-width: 768px) {
  /* Layout & Spacing */
  .section {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Navbar */
  .navbar {
    height: 72px;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  /* Form controls iOS Zoom Prevention */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Hero */
  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .trust-avatars {
    margin-left: 0;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.6rem 1.4rem;
  }

  /* Publications & Books */
  .pub-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .pub-search-box {
    max-width: 100%;
    width: 100%;
  }

  /* Mobile App-Style Horizontal Scrollable Category Chips */
  .pub-category-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    padding-top: 2px;
    margin: 0 -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pub-category-chips::-webkit-scrollbar {
    display: none;
  }

  .chip-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.4rem;
  }

  /* Workflow Steps on Mobile - Timeline Style */
  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .workflow-card {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 1.2rem;
    padding: 1.3rem;
  }

  .step-num-badge {
    margin: 0;
    flex-shrink: 0;
  }

  /* Contact & Form */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-box {
    padding: 1.6rem 1.2rem;
  }

  /* Modal on Mobile */
  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-box {
    padding: 1.6rem 1.2rem;
    max-height: 88vh;
    border-radius: var(--radius-md);
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .modal-cover-wrap {
    max-width: 170px;
    margin: 0 auto;
  }

  .modal-meta-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .modal-actions {
    flex-direction: column;
    width: 100%;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .modal-close-btn {
    top: 0.8rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
  }

  /* Floating WhatsApp FAB on Mobile */
  .floating-wa {
    bottom: 1.25rem;
    left: auto;
    right: 1.25rem;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  }

  .floating-wa span:not(.wa-icon) {
    display: none;
  }

  .floating-wa .wa-icon {
    font-size: 1.7rem;
    margin: 0;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

/* Small Smartphone Devices (<= 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  /* Brand Text Column: Hide subtitle on small phones so logo shines */
  .brand-subtitle {
    display: none;
  }

  .brand-title {
    font-size: 0.82rem;
    max-width: 175px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo-wrap {
    height: 44px;
  }

  /* Hero adjustments */
  .hero-card {
    padding: 1.3rem 1rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .metric-box {
    padding: 0.85rem 0.7rem;
  }

  .metric-num {
    font-size: 1.45rem;
  }

  .metric-title {
    font-size: 0.72rem;
  }

  .floating-chip {
    position: static;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  /* About values */
  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Books Grid single column for high impact */
  .books-grid {
    grid-template-columns: 1fr;
  }

  .book-card {
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }

  /* Contact cards */
  .contact-card-item {
    padding: 1.15rem;
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  .brand-text-col {
    display: none; /* Logo already has full brand name rendered inside */
  }

  .brand-logo-img {
    max-width: 140px;
  }

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

  .hero-title {
    font-size: 1.65rem;
  }
}
