@font-face {
  font-family: 'Shivaji01';
  src: url('/assets/fonts/Shivaji01.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Shivaji02';
  src: url('/assets/fonts/Shivaji02.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Shivaji05';
  src: url('/assets/fonts/Shivaji05.ttf') format('truetype');
  font-display: swap;
}

.shivaji-hero {
  text-align: center;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1rem 0;
}
.breadcrumb-row-hero {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.breadcrumb-row-hero a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-row-hero a:hover {
  text-decoration: underline;
}
.shivaji-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(79, 57, 246, 0.2);
}
.shivaji-hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 auto 0.65rem;
  max-width: 900px;
  letter-spacing: -0.02em;
  color: var(--text-main);
}
.shivaji-hero h1 span {
  background: linear-gradient(135deg, #4f39f6 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.shivaji-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

.shivaji-studio-container {
  max-width: 1050px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
}

.studio-box {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 1.25rem;
  box-shadow: 0 14px 40px rgba(79, 57, 246, 0.06);
  padding: 1.75rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.shivaji-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1.2rem;
  font-family: inherit;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 0.75rem;
  background: var(--surface-alt, #f8fafc);
  color: var(--text-main, #0f172a);
  font-weight: 600;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s;
}
.shivaji-input:focus {
  border-color: var(--primary, #4f39f6);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 57, 246, 0.15);
}

.quick-text-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.quick-chip {
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text-main, #1e293b);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-chip:hover {
  background: var(--primary, #4f39f6);
  color: #ffffff;
  border-color: var(--primary, #4f39f6);
}

.studio-toolbar {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface-alt, #f8fafc);
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border, #e2e8f0);
}
.tool-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted, #475569);
}
.tool-slider {
  width: 110px;
  accent-color: var(--primary, #4f39f6);
}
.color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}
.color-btn.active {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--primary, #4f39f6);
}

.zip-bundle-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1.5px dashed rgba(79, 57, 246, 0.35);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.zip-bundle-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--primary, #4f39f6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.zip-bundle-info p {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 0.92rem;
}
.btn-zip-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4f39f6 0%, #7c3aed 100%);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(79, 57, 246, 0.25);
  transition: all 0.2s;
}
.btn-zip-download:hover {
  background: #4330d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 57, 246, 0.35);
}

.font-cards-list {
  display: grid;
  gap: 1.5rem;
}

.shivaji-font-card {
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.shivaji-font-card:hover {
  border-color: rgba(79, 57, 246, 0.4);
  box-shadow: 0 8px 25px rgba(79, 57, 246, 0.08);
}
.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.font-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.font-main-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}
.font-badge {
  background: var(--primary-light, #eef2ff);
  color: var(--primary, #4f39f6);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.font-role-tag {
  font-size: 0.85rem;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.canvas-preview-container {
  background: var(--surface-alt, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.85rem;
  padding: 2rem 1.5rem;
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.2s, border-color 0.2s;
  overflow-x: auto;
}
.live-preview-text {
  font-size: 2.25rem;
  line-height: 1.4;
  color: var(--text-main, #0f172a);
  word-break: break-word;
  transition: color 0.2s, font-size 0.2s;
}

.card-actions-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #4f39f6 0%, #7c3aed 100%);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 57, 246, 0.2);
  transition: all 0.2s;
}
.btn-action-primary:hover {
  background: #4330d9;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 57, 246, 0.3);
}
.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-alt, #f8fafc);
  color: var(--text-main, #334155);
  padding: 0.6rem 1.15rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border, #cbd5e1);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
.cat-heading {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main, #1e293b);
  margin: 2.5rem 0 1rem;
  border-bottom: 2px solid var(--border, #e2e8f0);
  padding-bottom: 0.5rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.guide-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.85rem;
  padding: 1.4rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.guide-card strong {
  display: block;
  color: var(--primary, #4f39f6);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.guide-card p {
  color: var(--text-muted, #64748b);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.related-card {
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 0.85rem;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-main, #1e293b);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.related-card:hover {
  border-color: var(--primary, #4f39f6);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(79, 57, 246, 0.12);
}
.related-card h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary, #4f39f6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-notice i {
  color: #10b981;
}
