/* Category Templates Page Styles */

/* ===== Breadcrumbs ===== */
.tpl-breadcrumb {
  padding: 0 0 16px;
}

.tpl-breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.tpl-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.tpl-breadcrumb li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tpl-breadcrumb li a:hover {
  color: #fff;
}

.tpl-breadcrumb li[aria-current="page"] span {
  color: #fff;
  font-weight: 600;
}

.tpl-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  user-select: none;
}

/* ===== Category Hero Section ===== */
.category-hero-modern {
  background: linear-gradient(135deg, #07003a 0%, #0808EE 50%, #6366F1 100%);
  padding: 28px 40px 12px;
  border-radius: 20px;
  margin: 20px 0 30px 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.decoration-circle.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.decoration-circle.circle-2 {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: -40px;
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-left-content {
  flex: 1;
  min-width: 0;
}

.hero-right-content {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-category-icon {
  font-size: 64px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.hero-stats-grid .stat-card-modern {
  min-width: 120px;
}

/* Badge */
.hero-badge-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge-modern .badge-icon {
  font-size: 14px;
}

.hero-badge-modern .badge-text {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Heading */
.hero-heading-modern {
  color: white;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-heading-modern .gradient-text-hero {
  background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 50%, #f0abfc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero-subtitle-modern {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 550px;
}

/* Stats Row (legacy - kept for compatibility) */
.hero-stats-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat-card-modern {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  min-width: 90px;
}

.stat-card-modern .stat-value {
  color: white;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.stat-card-modern .stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  margin-top: 4px;
  font-weight: 500;
}

/* Trust Row */
.hero-trust-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
}

.trust-badge .trust-check {
  width: 18px;
  height: 18px;
  background: rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10B981;
}

/* CTA Buttons */
.hero-cta-modern {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #0808EE;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Skeleton Loader */
.category-hero-skeleton {
  background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
  padding: 60px 50px;
  border-radius: 24px;
  margin: 20px 0 40px 0;
}

.category-hero-skeleton .skeleton-badge {
  width: 200px;
  height: 40px;
  background: #d1d5db;
  border-radius: 30px;
  margin-bottom: 24px;
  animation: pulse 2s ease-in-out infinite;
}

.category-hero-skeleton .skeleton-title {
  width: 70%;
  height: 48px;
  background: #d1d5db;
  border-radius: 8px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.category-hero-skeleton .skeleton-subtitle {
  width: 90%;
  height: 24px;
  background: #d1d5db;
  border-radius: 6px;
  margin-bottom: 32px;
  animation: pulse 2s ease-in-out infinite;
}

.category-hero-skeleton .skeleton-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.category-hero-skeleton .skeleton-stat {
  width: 110px;
  height: 80px;
  background: #d1d5db;
  border-radius: 16px;
  animation: pulse 2s ease-in-out infinite;
}

.category-hero-skeleton .skeleton-buttons {
  display: flex;
  gap: 16px;
}

.category-hero-skeleton .skeleton-btn {
  width: 150px;
  height: 50px;
  background: #d1d5db;
  border-radius: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== Tabs Section Enhancement ===== */
.template-tabs {
  background: white;
  border-radius: 20px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e5e7eb !important;
  overflow: hidden;
}

/* Tabs Header */
.tabs-header-modern {
  padding: 28px 32px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.tabs-header-left {
  flex: 1;
  min-width: 280px;
}

.tabs-header-modern .tabs-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #07003a;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.tabs-header-modern .tabs-subtitle {
  color: #666;
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* Search Bar */
.search-bar-modern {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  border: 2px solid #e5e7eb;
  min-width: 320px;
  transition: all 0.3s ease;
}

.search-bar-modern:focus-within {
  border-color: #0808EE;
  box-shadow: 0 0 0 3px rgba(8, 8, 238, 0.1);
}

.search-bar-modern .search-icon {
  color: #9ca3af;
  margin-right: 12px;
  font-size: 16px;
  flex-shrink: 0;
}

.search-bar-modern .search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 15px;
  color: #374151;
  background: transparent;
  padding: 4px 0;
  min-width: 150px;
}

.search-bar-modern .search-input::placeholder {
  color: #9ca3af;
}

.search-bar-modern .search-btn {
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
  white-space: nowrap;
}

.search-bar-modern .search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 8, 238, 0.3);
}

.custom-tabs-enhanced .nav-link {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 8px 4px !important;
}

.custom-tabs-enhanced .nav-link.active {
  border: none !important;
  background: transparent !important;
}

.custom-tabs-enhanced {
  padding: 8px 16px;
  border-bottom: 1px solid #f0f0f0 !important;
  background: #fafafa;
}

/* ===== Template Section Header ===== */
.template-section-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.template-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #07003a;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.template-section-subtitle {
  color: #6b7280;
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

/* ===== Sidebar Modern ===== */
.sidebar-container-modern {
  border-right: 1px solid #f0f0f0;
  max-height: 820px;
  position: relative;
  padding-right: 16px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #0808EE;
}

.sidebar-header .sidebar-icon {
  font-size: 16px;
}

.sidebar-header .sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #07003a;
  margin: 0;
}

.sidebar-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-item {
  margin-bottom: 2px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background: #f8f9ff;
  border-left-color: #c7d2fe;
}

.sidebar-item.active {
  background: linear-gradient(135deg, rgba(8, 8, 238, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-left-color: #0808EE;
}

.sidebar-item .sidebar-item-text {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.2s ease;
}

.sidebar-item:hover .sidebar-item-text {
  color: #0808EE;
}

.sidebar-item.active .sidebar-item-text {
  color: #0808EE;
  font-weight: 600;
}

/* ===== Template Cards Enhancement ===== */
.template-card-main {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 16px 0;
}

.template-card-enhanced {
  border-radius: 14px !important;
  border: 1px solid #e8e8e8 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
  overflow: hidden;
  background: white !important;
}

.template-card-enhanced:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 28px rgba(8, 8, 238, 0.12) !important;
  border-color: rgba(8, 8, 238, 0.3) !important;
}

.template-card-head {
  height: 150px !important;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  background-color: #f8f9ff;
}

.template-card-body {
  padding: 18px !important;
}

/* ===== Benefits Section ===== */
.benefits-section-category {
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
  padding: 60px 40px;
  border-radius: 24px;
  margin: 40px 0;
  border: 1px solid rgba(8, 8, 238, 0.08);
}

.benefits-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(8, 8, 238, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(8, 8, 238, 0.15);
}

.section-badge-category span:first-child {
  font-size: 16px;
}

.section-badge-category span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #0808EE;
}

.benefits-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #07003a;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.benefits-subtitle {
  color: #666;
  font-size: 16px;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.benefit-card-category {
  background: white;
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(8, 8, 238, 0.12);
  border-color: #0808EE;
}

.benefit-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(8, 8, 238, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.benefit-card-category:hover .benefit-icon-wrapper {
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  transform: scale(1.1) rotate(5deg);
}

.benefit-icon {
  font-size: 32px;
  transition: all 0.3s ease;
}

.benefit-card-category:hover .benefit-icon {
  filter: brightness(0) invert(1);
}

.benefit-card-category .benefit-title {
  font-size: 18px;
  font-weight: 700;
  color: #07003a;
  margin-bottom: 12px;
}

.benefit-card-category .benefit-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ===== CTA Section Enhancement ===== */
.cta-section-category {
  background: linear-gradient(135deg, #07003a 0%, #0808EE 50%, #6366F1 100%);
  padding: 70px 50px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 60px 0 40px 0;
}

.cta-section-category::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-section-category::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section-category .cta-title {
  color: white;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section-category .cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: #0808EE;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-trust span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

/* ===== Sidebar Enhancement ===== */
.templates-sidebar {
  background: transparent;
  border-radius: 12px;
  padding: 0;
}

.sidebar-category-item {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
  font-weight: 500;
  color: #4b5563;
  font-size: 13.5px;
  border-left: 3px solid transparent;
}

.sidebar-category-item:hover {
  background: #f8f9ff;
  color: #0808EE;
  border-left-color: #c7d2fe;
}

.sidebar-category-item.active {
  background: linear-gradient(135deg, rgba(8, 8, 238, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  color: #0808EE;
  font-weight: 600;
  border-left-color: #0808EE;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .tabs-header-modern {
    flex-direction: column;
  }

  .search-bar-modern {
    width: 100%;
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .hero-content-wrapper {
    flex-direction: column;
    gap: 32px;
  }

  .hero-right-content {
    width: 100%;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-category-icon {
    display: none;
  }

  .category-hero-modern {
    padding: 40px 24px;
    margin: 10px 0 24px 0;
  }

  .hero-heading-modern {
    font-size: 28px;
  }

  .hero-stats-row {
    gap: 12px;
  }

  .stat-card-modern {
    padding: 12px 16px;
    min-width: 90px;
  }

  .stat-card-modern .stat-value {
    font-size: 22px;
  }

  .hero-trust-row {
    gap: 12px;
  }

  .trust-badge {
    font-size: 12px;
  }

  .hero-cta-modern {
    flex-direction: column;
  }

  .btn-primary-hero,
  .btn-secondary-hero {
    width: 100%;
    justify-content: center;
  }

  .template-card-main {
    grid-template-columns: 1fr;
  }

  .tabs-header-modern {
    padding: 20px;
  }

  .tabs-header-modern .tabs-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-stats-grid .stat-card-modern {
    min-width: unset;
  }

  .hero-stats-row {
    flex-direction: column;
    gap: 12px;
  }

  .stat-card-modern {
    width: 100%;
  }

  .benefits-section-category {
    padding: 40px 20px;
  }

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

  .cta-section-category {
    padding: 50px 20px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-btn-primary,
  .cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .cta-trust {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== Related Categories Section ===== */
.tpl-related-categories {
  margin: 24px 0 32px;
  padding: 28px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.tpl-related-header {
  text-align: center;
  margin-bottom: 20px;
}

.tpl-related-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #07003a;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
}

.tpl-related-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.tpl-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tpl-related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tpl-related-card:hover {
  border-color: #0808EE;
  color: #0808EE;
  box-shadow: 0 4px 16px rgba(8, 8, 238, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
}

.tpl-related-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.tpl-related-name {
  flex: 1;
  text-transform: capitalize;
}

.tpl-related-arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: #0808EE;
}

.tpl-related-card:hover .tpl-related-arrow {
  opacity: 1;
  transform: translateX(0);
}

.tpl-related-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0808EE;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tpl-related-viewall:hover {
  background: rgba(8, 8, 238, 0.06);
  text-decoration: none;
  color: #0808EE;
}

@media (max-width: 992px) {
  .tpl-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tpl-related-categories {
    padding: 20px 14px;
  }
  .tpl-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== How to Use Section ===== */
.tpl-howto {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  padding: 32px 28px;
  border-radius: 14px;
  margin: 32px 0;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.tpl-howto-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tpl-howto-header {
  text-align: center;
  margin-bottom: 24px;
}

.tpl-howto-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #07003a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.tpl-howto-desc {
  color: #666;
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.tpl-howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.tpl-step-card {
  background: rgba(255,255,255,0.8);
  padding: 20px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.tpl-step-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0808EE, #6366F1);
}

.tpl-step-icon-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.tpl-step-icon {
  font-size: 1.4rem;
  margin-right: 10px;
}

.tpl-step-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0808EE;
  margin: 0;
}

.tpl-step-desc {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.tpl-howto-cta {
  text-align: center;
}

.tpl-howto-btn {
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(8, 8, 238, 0.2);
}

.tpl-howto-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 8, 238, 0.3);
}

/* ===== Comparison Section ===== */
.tpl-comparison {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  padding: 32px 28px;
  border-radius: 14px;
  margin: 24px 0;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.tpl-comparison-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.tpl-comparison-header {
  text-align: center;
  margin-bottom: 24px;
}

.tpl-comparison-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #07003a;
  margin-bottom: 8px;
}

.tpl-comparison-desc {
  color: #666;
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.tpl-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.tpl-with-col {
  background: rgba(8,8,238,0.03);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(8,8,238,0.12);
}

.tpl-with-col h3 {
  color: #0808EE;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.tpl-without-col {
  background: rgba(239,68,68,0.03);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(239,68,68,0.12);
}

.tpl-without-col h3 {
  color: #ef4444;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.tpl-comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpl-comparison-item {
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.tpl-comparison-item:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.tpl-comparison-check {
  margin-right: 10px;
  font-size: 14px;
  flex-shrink: 0;
}

.tpl-with-col .tpl-comparison-check {
  color: #0808EE;
}

.tpl-without-col .tpl-comparison-check {
  color: #ef4444;
}

.tpl-comparison-item span:last-child {
  font-size: 13px;
}

.tpl-with-col .tpl-comparison-item span:last-child {
  color: #333;
}

.tpl-without-col .tpl-comparison-item span:last-child {
  color: #666;
}

/* ===== Transform CTA (blue bar) ===== */
.tpl-transform-cta {
  background: linear-gradient(135deg, #07003a 0%, #0808EE 100%);
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.tpl-transform-cta h3 {
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tpl-transform-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.tpl-transform-btn {
  background: white;
  color: #0808EE;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tpl-transform-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== Mobile Responsive - How to Use, Comparison, Transform ===== */
@media (max-width: 768px) {
  .tpl-howto {
    padding: 24px 16px;
    margin: 20px 0;
  }

  .tpl-howto-title {
    font-size: 1.2rem;
  }

  .tpl-howto-grid {
    gap: 12px;
  }

  .tpl-step-card {
    padding: 16px 14px;
  }

  .tpl-step-icon {
    font-size: 1.2rem;
  }

  .tpl-howto-btn {
    padding: 10px 24px;
    font-size: 13px;
    width: 100%;
  }

  .tpl-comparison {
    padding: 24px 16px;
    margin: 20px 0;
  }

  .tpl-comparison-title {
    font-size: 1.2rem;
  }

  .tpl-comparison-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tpl-with-col,
  .tpl-without-col {
    padding: 18px 16px;
  }

  .tpl-with-col h3,
  .tpl-without-col h3 {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  .tpl-transform-cta {
    padding: 24px 16px;
  }

  .tpl-transform-cta h3 {
    font-size: 1rem;
  }

  .tpl-transform-btn {
    padding: 10px 24px;
    font-size: 13px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tpl-howto {
    padding: 20px 14px;
    margin: 16px 0;
  }

  .tpl-howto-title {
    font-size: 1.1rem;
  }

  .tpl-step-card {
    padding: 14px 12px;
  }

  .tpl-step-icon-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .tpl-step-icon {
    margin-right: 0;
  }

  .tpl-comparison {
    padding: 20px 14px;
    margin: 16px 0;
  }

  .tpl-comparison-title {
    font-size: 1.1rem;
  }

  .tpl-with-col,
  .tpl-without-col {
    padding: 22px 16px;
  }

  .tpl-transform-cta {
    padding: 28px 16px;
  }

  .tpl-transform-cta h3 {
    font-size: 1.25rem;
  }
}
