/* Templates Page Styles */

/* Hero Section */
.templates-hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.templates-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #F0F0FF;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 24px;
}

.templates-hero .hero-badge span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #0808EE;
  letter-spacing: 0.5px;
}

.templates-hero .hero-heading {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: #07003a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.templates-hero .hero-heading .gradient-text {
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.templates-hero .hero-sub-text {
  font-size: clamp(16px, 2vw, 20px);
  color: #555;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Stats */
.hero-stats-modern {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats-modern .stat-item {
  text-align: center;
  padding: 20px 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  min-width: 140px;
}

.hero-stats-modern .stat-number {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stats-modern .stat-label {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  font-weight: 500;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.trust-indicators .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-size: 14px;
  font-weight: 500;
}

.trust-indicators .trust-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Buttons */
.hero-buttons-modern {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-buttons-modern .btn-primary-modern {
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(8, 8, 238, 0.3);
}

.hero-buttons-modern .btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(8, 8, 238, 0.4);
}

.hero-buttons-modern .btn-secondary-modern {
  background: #fff;
  color: #0808EE;
  border: 2px solid #0808EE;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.hero-buttons-modern .btn-secondary-modern:hover {
  background: #f0f0ff;
  transform: translateY(-2px);
}

/* Templates Container */
.templates-container-modern {
  padding: 80px 0;
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
}

/* Section Headers */
.section-header-modern {
  text-align: center;
  margin-bottom: 28px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.section-badge.blue {
  background-color: #F0F0FF;
}

.section-badge.blue span:last-child {
  color: #0808EE;
}

.section-badge.green {
  background-color: #D1FAE5;
}

.section-badge.green span:last-child {
  color: #059669;
}

.section-badge.amber {
  background-color: #FEF3C7;
}

.section-badge.amber span:last-child {
  color: #D97706;
}

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

.section-badge span:last-child {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.section-title-modern {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  color: #07003a;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-title-modern .gradient-text {
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Template Category Cards */
/* ── Template Category Cards (Premium Design) ─────────────────────── */

.template-card-modern {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid #e8e8ee;
  border-top: 4px solid #0808EE;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.template-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(8,8,238,0.10), 0 20px 50px rgba(0,0,0,0.08);
  border-color: transparent;
  border-top-color: inherit;
}

.template-card-header {
  padding: 20px 20px 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid #f5f5f7;
}

.template-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.template-card-icon.lead-gen {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
}

.template-card-icon.support {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
}

.template-card-icon.ecommerce {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

.template-card-icon.healthcare {
  background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
}

.template-card-icon.realestate {
  background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
}

.template-card-icon.default {
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.template-card-header-text {
  flex: 1;
  min-width: 0;
}

.template-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #07003a;
  margin: 0 0 10px 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.template-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.template-count-badge {
  display: inline-block;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.template-popular-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #D97706;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.template-popular-tag::before {
  content: "★";
  font-size: 10px;
}

.template-card-description {
  padding: 16px 28px 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.template-card-content {
  padding: 0 28px 16px;
  flex: 1;
}

.template-link-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: transparent;
  border-radius: 10px;
  text-decoration: none;
  color: #07003a;
  margin-bottom: 4px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
}

.template-link-modern:hover {
  background: #f8f9ff;
  border-left-color: #0808EE;
  padding-left: 18px;
  color: #07003a;
}

.template-link-modern .template-name {
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.template-link-modern .template-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f0f0f5;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.template-link-modern:hover .template-index {
  background: #0808EE;
  color: #fff;
}

.template-link-modern .new-tag {
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.template-link-modern .arrow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color: #c4c4cc;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.template-link-modern:hover .arrow-wrapper {
  background: #0808EE;
  color: #fff;
  transform: translateX(2px);
}

.view-all-link {
  text-align: left;
  margin-top: 4px;
  padding-left: 14px;
}

.view-all-link a {
  color: #6b7280;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.view-all-link a:hover {
  color: #0808EE;
  text-decoration: none;
}

.template-card-footer {
  padding: 20px 28px;
  border-top: 1px solid #f5f5f7;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.browse-btn-modern {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(8,8,238,0.20);
  letter-spacing: 0.01em;
}

.browse-btn-modern:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(8,8,238,0.30);
  color: #fff;
  filter: brightness(1.08);
}

.template-card-footer-hint {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

/* Feature Cards */
.feature-card-modern {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  height: 100%;
  transition: all 0.3s ease;
}

.feature-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.feature-icon-modern {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.feature-icon-modern.blue {
  background: #EEF2FF;
}

.feature-icon-modern.green {
  background: #D1FAE5;
}

.feature-icon-modern.amber {
  background: #FEF3C7;
}

.feature-card-modern h4 {
  font-size: 18px;
  font-weight: 700;
  color: #07003a;
  margin-bottom: 12px;
}

.feature-card-modern p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

/* Steps Section */
.steps-container {
  display: flex;
  gap: 30px;
  position: relative;
}

.step-card-modern {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 2px solid #EEF2FF;
  position: relative;
  flex: 1;
  transition: all 0.3s ease;
}

.step-card-modern:hover {
  border-color: #0808EE;
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(8, 8, 238, 0.12);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(8, 8, 238, 0.3);
}

.step-card-modern h4 {
  font-size: 18px;
  font-weight: 700;
  color: #07003a;
  margin: 16px 0 12px;
}

.step-card-modern p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 0;
}

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

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

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

.cta-section-modern h2 {
  color: #fff;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-section-modern p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-btn-primary {
  background: #fff;
  color: #0808EE;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.cta-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* Internal Linking Hub */
.linking-hub-modern {
  background: linear-gradient(135deg, rgba(8, 8, 238, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
  border-radius: 24px;
  padding: 50px 40px;
  border: 1px solid rgba(8, 8, 238, 0.1);
}

.linking-card {
  text-align: center;
  padding: 20px;
}

.linking-card-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

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

.linking-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.linking-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.linking-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(8, 8, 238, 0.3);
  color: #fff;
}

/* Popular Templates */
.popular-template-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  height: 100%;
  transition: all 0.3s ease;
}

.popular-template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: #0808EE;
}

.popular-template-card .icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.popular-template-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #07003a;
  margin-bottom: 12px;
}

.popular-template-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.popular-template-card a {
  color: #0808EE;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.popular-template-card a:hover {
  text-decoration: underline;
}

/* Combination Cards */
.combination-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  height: 100%;
  transition: all 0.3s ease;
}

.combination-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.combination-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #07003a;
  margin-bottom: 12px;
}

.combination-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.combination-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.combination-links a {
  font-size: 12px;
  color: #0808EE;
  text-decoration: none;
}

.combination-links a:hover {
  text-decoration: underline;
}

.combination-links .divider {
  color: #ccc;
}

/* FAQ Styles */
.faq-section-modern {
  margin-top: 100px;
  margin-bottom: 80px;
}

.faq-accordion {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.faq-item {
  border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  background: #fff;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #f8f9ff;
}

.faq-question.active {
  background: linear-gradient(135deg, rgba(8, 8, 238, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.faq-question h4 {
  color: #07003a;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  padding-right: 20px;
  line-height: 1.4;
}

.faq-question .icon {
  font-size: 24px;
  color: #0808EE;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-question.active .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 24px;
  background: #fff;
}

.faq-answer p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* Category Filter Buttons */
.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #0808EE;
  background: #fff;
  color: #0808EE;
}

.filter-btn:hover {
  background: #f0f0ff;
}

.filter-btn.active {
  background: linear-gradient(135deg, #0808EE 0%, #6366F1 100%);
  color: #fff;
  border-color: transparent;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats-modern {
    gap: 20px;
  }

  .hero-stats-modern .stat-item {
    min-width: 100px;
    padding: 16px 20px;
  }

  .hero-stats-modern .stat-number {
    font-size: 28px;
  }

  .trust-indicators {
    gap: 16px;
  }

  .steps-container {
    flex-direction: column;
  }

  .cta-section-modern {
    padding: 40px 24px;
  }

  .linking-hub-modern {
    padding: 30px 20px;
  }
}
