/* Global Layout and Utility Styles */
html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-wrap: pretty;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; border-bottom: 2px solid var(--primary-subtle); padding-bottom: 0.5rem; margin-top: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-top: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-top: 1rem; margin-bottom: 0.5rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  color: var(--text-main);
  line-height: 1.75;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

ul, ol {
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  padding-left: 1.5rem;
  list-style-position: outside;
}

li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

li::marker {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sections */
.section {
  padding: var(--spacing-3xl) 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-primary {
  background-color: var(--primary);
  color: var(--text-inverse);
}

.section-primary h1, .section-primary h2, .section-primary h3, .section-primary p {
  color: var(--text-inverse);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
  display: inline-block;
  font-size: 2rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
  margin-top: 0;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: var(--primary-subtle);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0;
  font-size: 0.88rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: var(--spacing-xs);
  align-items: center;
  margin: 0;
  padding: 0;
}

.breadcrumb-list li+li::before {
  content: "/";
  padding: 0 var(--spacing-xs);
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
  color: var(--primary-light);
}

.breadcrumb-list .active {
  color: var(--text-muted);
  font-weight: 600;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  text-align: center;
}

.stat-item {
  padding: var(--spacing-md);
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}
