/* Base styles for static pages */
:root {
  --primary: #7c3aed;
  --primary-light: #9f7aea;
  --primary-dark: #5b21b6;
  --text: #1f2937;
  --text-light: #6b7280;
  --background: #ffffff;
  --background-alt: #f9fafb;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 0.5rem;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --footer-bg: #f8f9fa;
  --footer-text: #333;
  --footer-border: #e9ecef;
  --footer-link: #6c757d;
  --footer-link-hover: #7c3aed;
  --header-bg: #ffffff;
  --header-text: #333;
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --header-link-hover: #7c3aed;
}

/* Header Styles */
.static-header {
  background: var(--header-bg);
  box-shadow: var(--header-shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.static-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.static-header .logo a {
  display: block;
  text-decoration: none;
  line-height: 0;
  border: 1px solid #fff;
  border-radius: 14px;
  position: absolute;
  top: 5px;
}

.static-header .logo svg {
  height: 100px;
  width: auto;
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: 2.5rem;
  position: relative;
}

.main-nav a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a:hover {
  color: var(--header-link-hover);
}

/* Active state for current page */
.main-nav a.active {
  color: var(--header-link-hover);
  font-weight: 600;
}

.main-nav a.active {
  color: var(--header-link-hover);
  font-weight: 600;
}

/* Breadcrumb Navigation */
.breadcrumb {
  padding: 0;
  margin: 0 0 1.5rem 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

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

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: #6b7280;
}

.breadcrumb a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb .active {
  color: #6b7280;
  pointer-events: none;
}

/* Footer Styles */
.static-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--footer-border);
}

.static-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-logo {
  flex: 1 1 300px;
  margin-bottom: 2rem;
}

.footer-logo svg {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.tagline {
  color: var(--footer-link);
  margin: 0.5rem 0 0;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex: 2 1 auto;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--footer-link-hover);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
  font-size: 0.875rem;
  color: var(--footer-link);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--footer-link);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--footer-link-hover);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: flex;
  flex: 2 1 auto;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--footer-link-hover);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-border);
  font-size: 0.875rem;
  color: var(--footer-link);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--footer-link);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--footer-link-hover);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* Responsive styles */
/* Mobile menu styles */
@media (max-width: 992px) {
  .main-nav {
    display: flex;
    justify-content: flex-end;
  }
  
  .main-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
  }

  .main-nav li {
    margin: 0 0 0 1.5rem;
    padding: 0;
    border: none;
  }

  .main-nav a {
    display: inline-block;
    padding: 0.5rem 0;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .main-nav li {
    margin-left: 1rem;
  }
  
  .main-nav a {
    font-size: 0.95rem;
  }

  /* Footer styles */
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

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

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--radius);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  color: white;
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  text-decoration: none;
}

.btn-outline {
  color: var(--primary);
  background-color: transparent;
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: rgba(124, 58, 237, 0.1);
  text-decoration: none;
}

/* Sitemap link styles */
.nav-list .sitemap-link {
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
}

.nav-list .sitemap-link a {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s ease;
}

.nav-list .sitemap-link a:hover {
  color: #4f46e5;
  background: none;
  text-decoration: none;
}

.nav-list .sitemap-link svg {
  vertical-align: middle;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-light { background-color: var(--background-alt); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.my-4 { margin-top: 2rem; margin-bottom: 2rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  html { font-size: 14px; }
  
  .section {
    padding: 3rem 0;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Hero section */
.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero .btn {
  font-size: 1.1rem;
  padding: 0.875rem 2rem;
  margin: 0 0.5rem 1rem;
}

/* Section Headings */
.features .container > h2,
.how-it-works .container > h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.features .container > h2:after,
.how-it-works .container > h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* CTA section */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
}

/* Free Flyer Maker Page Styles */
.hero {
  padding: 5rem 0 8rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero .btn {
  font-size: 1.1rem;
  padding: 0.875rem 2rem;
  min-width: 200px;
  text-align: center;
}

.btn-outline-white {
  color: white;
  border-color: white;
}

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

.btn-cta {
  background: white;
  color: var(--primary) !important;
}

.btn-cta:hover {
  background: #f0f0f0;
  color: var(--primary-dark) !important;
}

.counter {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2rem;
  font-weight: 500;
}

.hero-image {
  margin-top: 4rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.step {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Badges Grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1rem 0;
}

.badge {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.badge img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover img {
  transform: scale(2.03);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.badge strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.badge span {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  display: block;
}

/* For the event-flyer-template page */
#event-flyer-template .badge img {
  height: 200px;
  width: auto;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

/* For the free-flyer-maker page */
#free-flyer-maker .badge img {
  height: 100px;
  width: auto;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

/* Keep existing badge-item styles for backward compatibility */
.badge-item {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Example Items Styling */
.example-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 3rem auto;
  max-width: 1400px;
  padding: 0 2rem;
}

@media (min-width: 1200px) {
  .example-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1600px) {
  .example-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}

.example-item {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.example-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  object-position: top center;
  border-radius: 6px;
  margin: 0 0 2rem 0;
  transition: transform 0.3s ease;
  display: block;
}

.example-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.example-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.example-item p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

.example-details {
  color: var(--primary) !important;
  font-weight: 500;
  font-size: 1rem !important;
  margin: 0 0 1rem 0 !important;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.example-item p:last-child {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive adjustments for Free Flyer Maker page */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 6rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
}