/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #f8f9fa;
  color: #333;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #e9ecef;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  height: 40px;
  width: auto;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.8;
}

.site-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.site-title-link {
  color: #333;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-title-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* Main content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
}

/* Hero section */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow-wrap: break-word;
}

.hero-section h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

/* Page grid */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* Page cards */
.page-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* .page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
} */

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-wrap: break-word;
}

.card-content h3 {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.card-content p {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  text-align: center;
}

.card-actions {
  text-align: center;
  margin-top: auto;
}

.link-option {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

.link-option:last-child {
  margin-right: 0;
}

/* Links */
.btn {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 400;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  margin: 0;
}

.btn-primary {
  background: transparent;
  color: #0066cc;
  border: 1px solid #0066cc;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: #0066cc;
  color: white;
  text-decoration: none;
}

/* Content pages */
.content-wrapper {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  overflow-wrap: break-word;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
  color: #2c3e50;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-wrapper h1 {
  font-size: 2rem;
  margin-top: 0;
}

.content-wrapper h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 0.5rem;
}

.content-wrapper p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-wrapper ul,
.content-wrapper ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}

.content-wrapper code {
  background: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.content-wrapper pre {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.content-wrapper blockquote {
  border-left: 4px solid #dee2e6;
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #555;
}

.content-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.content-wrapper th,
.content-wrapper td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}

.content-wrapper th {
  background: #f8f9fa;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: linear-gradient(90deg, #f5e6d3 0%, #e8d5e8 100%);
  color: #333;
  padding: 2rem 0;
  margin-top: 3rem;
  min-height: 200px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.company-info {
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-link {
  color: #333;
  text-decoration: none;
  opacity: 0.8;
}

.footer-link:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .site-header p {
    font-size: 1rem;
  }

  .page-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .content-wrapper {
    padding: 2rem;
  }

  .hero-section {
    padding: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-column {
    text-align: center;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-column:last-child {
    grid-column: 1 / -1;
    text-align: center;
  }
}
