/* ==========================================================================
   Omalovankovo.cz - Custom High Performance CSS
   Zero layout shifts (CLS: 0.0), Latin-ext Czech diacritics, pure A4 printing
   ========================================================================== */

:root {
  --font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent: #f59e0b;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Desktop Navigation with Dropdowns */
.desktop-nav {
  display: none;
}
@media (min-width: 992px) {
  .desktop-nav {
    display: block;
    flex: 1;
    margin: 0 1rem;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-item-has-dropdown {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #334155;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-item-has-dropdown:hover .nav-link {
  color: var(--primary);
  background: #f1f5f9;
}

.nav-icon {
  font-size: 1rem;
}

.dropdown-chevron {
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.nav-item-has-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  box-shadow: 0 20px 30px -10px rgb(0 0 0 / 0.12), 0 4px 6px -2px rgb(0 0 0 / 0.05);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  pointer-events: none;
}

.nav-item-has-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-header {
  padding: 0.5rem 0.5rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.35rem;
}
.dropdown-header strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}
.dropdown-header p {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.dropdown-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
}

.dropdown-list li a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.12s ease;
}

.dropdown-list li a:hover {
  background: #eef2ff;
  color: var(--primary);
  padding-left: 0.85rem;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Hamburger Button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4.5px;
  width: 42px;
  height: 42px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  cursor: pointer;
  padding: 8px;
  transition: all 0.15s ease;
}

.hamburger-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #1e293b;
  border-radius: 2px;
  transition: all 0.25s ease;
}

@media (min-width: 992px) {
  .hamburger-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 88vw;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -5px 0 25px rgb(0 0 0 / 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

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

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.85rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-drawer-search {
  padding: 1rem 1.25rem 0.5rem;
}

.mobile-drawer-search form {
  display: flex;
  background: #f1f5f9;
  border-radius: 0.65rem;
  padding: 0.25rem 0.5rem;
  align-items: center;
}

.mobile-drawer-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.5rem;
  font-size: 0.9rem;
  outline: none;
}

.mobile-drawer-search button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

.mobile-drawer-body {
  padding: 1rem 1.25rem 2rem;
  flex: 1;
}

.mobile-nav-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.mobile-accordions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-acc-item {
  border: 1px solid var(--border-color);
  border-radius: 0.65rem;
  overflow: hidden;
  background: #ffffff;
}

.mobile-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  gap: 0.5rem;
}

.acc-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.acc-badge {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-weight: 600;
}

.acc-chevron {
  transition: transform 0.2s ease;
  color: #94a3b8;
}

.mobile-acc-item.active .acc-chevron {
  transform: rotate(180deg);
}

.mobile-acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #f8fafc;
}

.mobile-acc-item.active .mobile-acc-content {
  max-height: 350px;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
}

.mobile-subcat-list {
  list-style: none;
  padding: 0.5rem 0.75rem;
}

.mobile-subcat-list li a {
  display: block;
  padding: 0.4rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #475569;
  border-radius: 0.35rem;
}

.mobile-subcat-list li a:hover {
  background: #eef2ff;
  color: var(--primary);
}

.mobile-drawer-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.drawer-foot-link {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.drawer-note {
  font-size: 0.78rem;
  color: #94a3b8;
}


/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.breadcrumbs .sep {
  opacity: 0.5;
}

/* Hero Section */
.page-hero {
  padding: 1rem 0 2rem;
}
.page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.page-hero p.subtitle {
  font-size: 1.125rem;
  color: #475569;
  max-width: 820px;
  line-height: 1.6;
}

/* Key Highlights Bar */
.features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.03);
}

/* Grid of Coloring Pages */
.coloring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
@media (min-width: 640px) {
  .coloring-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .coloring-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.coloring-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.coloring-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgb(0 0 0 / 0.1);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.414; /* A4 Format Proportions */
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f1f5f9;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.2s ease;
}
.coloring-card:hover .card-img-wrap img {
  transform: scale(1.03);
}

.card-overlay-actions {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: opacity 0.2s ease;
}
.coloring-card:hover .card-overlay-actions {
  opacity: 1;
}

.overlay-btn {
  background: #ffffff;
  color: #1e293b;
  border: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.15);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.overlay-btn:hover {
  transform: scale(1.1);
  background: #f8fafc;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 0.85rem;
}
.card-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-action-print {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-action-print:hover {
  background: var(--primary-hover);
}
.btn-action-icon {
  background: #f1f5f9;
  color: #475569;
  border: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-action-icon:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* ==========================================================================
   Bespoke Rich Article Content
   - High impact H2 headings (distinctive, larger than body text)
   - Custom SVG Emerald Checkmarks on bullet lists
   ========================================================================== */
.article-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.03);
}

@media (max-width: 640px) {
  .article-container {
    padding: 1.5rem;
  }
}

.prose-custom {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.prose-custom h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.75vw, 2.15rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  position: relative !important;
  padding-left: 1rem !important;
  border-left: 4px solid #4f46e5 !important;
}

.prose-custom h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
}

.prose-custom p {
  margin-bottom: 1.35rem !important;
}

/* Custom Bullet Lists with Emerald Checkmark SVGs */
.prose-custom ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.5rem 0 !important;
}

.prose-custom li {
  position: relative !important;
  padding-left: 2.25rem !important;
  margin-bottom: 0.85rem !important;
  line-height: 1.65 !important;
}

.prose-custom li::before {
  content: '' !important;
  position: absolute !important;
  left: 0.15rem !important;
  top: 0.25rem !important;
  width: 1.35rem !important;
  height: 1.35rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.prose-custom strong {
  color: #0f172a;
  font-weight: 700;
}

/* Internal Links in Editorial Prose (Subtly highlighted) */
.prose-custom a {
  color: #4338ca !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-decoration-color: #a5b4fc !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 3px !important;
  padding: 0.05rem 0.25rem !important;
  border-radius: 4px !important;
  transition: all 0.15s ease-in-out !important;
  background-color: rgba(238, 242, 255, 0.7) !important;
}

.prose-custom a:hover {
  color: #312e81 !important;
  background-color: #e0e7ff !important;
  text-decoration-color: #4338ca !important;
}

/* FAQ Section */
.faq-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 2.5rem;
  margin-bottom: 3.5rem;
}
.faq-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
}
.faq-q {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-q::before {
  content: '❓';
  font-size: 1.1rem;
}
.faq-a {
  color: #475569;
  line-height: 1.65;
}

/* Related Categories Section & Rich Cards */
.related-section {
  margin-bottom: 4rem;
}
.related-section-head {
  margin-bottom: 1.5rem;
}
.related-section-head h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.related-section-head p {
  color: #64748b;
  font-size: 0.95rem;
}
.related-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .related-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .related-cards-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
  }
}
.related-rich-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.03);
}
.related-rich-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgb(79 70 229 / 0.12);
}
.related-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}
.related-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.related-rich-card:hover .related-card-thumb img {
  transform: scale(1.05);
}
.related-card-info {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.related-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}
.related-card-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  align-self: flex-start;
}
.related-card-btn {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  padding-top: 0.25rem;
}

/* Homepage Responsive Search & Categories Layout */
.home-search-box {
  max-width: 560px;
  width: 100%;
  margin: 0 auto 1.75rem;
  display: flex;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.3rem 0.4rem;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.05);
}

.home-search-box input {
  flex: 1 1 auto;
  min-width: 0 !important;
  border: none;
  outline: none;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  border-radius: 9999px;
  color: #1e293b;
}

.home-search-box button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.home-search-box button:hover {
  background: var(--primary-hover);
}

/* Category Quick Jump Chips */
.home-cat-chips-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 2.5rem;
}

.home-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.03);
}

.home-cat-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* Home Category Sections */
.home-category-section {
  margin-bottom: 3.5rem;
}

.home-cat-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-cat-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.home-cat-sec-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.home-cat-sec-head p {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.home-cat-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: #eef2ff;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.home-subcats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .home-subcats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .home-subcats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.home-subcat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.03);
}

.home-subcat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgb(79 70 229 / 0.12);
}

.home-subcat-img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.home-subcat-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.home-subcat-card:hover .home-subcat-img img {
  transform: scale(1.05);
}

.home-subcat-body {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.home-subcat-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}

.home-subcat-pill {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  align-self: flex-start;
}


/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.footer-brand h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Modal for High-Res Preview */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #ffffff;
  border-radius: 1rem;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  animation: modalScale 0.2s ease;
}
@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-head {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}
.modal-head h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}
.modal-body {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  overflow-y: auto;
}
.modal-body img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}
.modal-foot {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

/* Single Page Print Container (Screen: Hidden) */
.single-print-target {
  display: none !important;
}

/* 100% Isolated A4 Single-Page Print Engine */
@media print {
  @page {
    size: A4 portrait;
    margin: 6mm 10mm 6mm 10mm;
  }

  html, body {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Completely HIDE every element on the page */
  body > *:not(#singlePrintContainer) {
    display: none !important;
  }

  /* SHOW ONLY the single selected coloring */
  body > #singlePrintContainer.single-print-target {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }

  .single-print-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 280mm !important;
    max-height: 280mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
  }

  #singlePrintImg {
    display: block !important;
    width: 100% !important;
    max-width: 190mm !important;
    height: auto !important;
    max-height: 265mm !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    page-break-inside: avoid !important;
  }

  .single-print-brand {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 10pt !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    margin-top: 4mm !important;
    letter-spacing: 0.5px !important;
    page-break-inside: avoid !important;
  }
}


