:root {
    --radius: 22px;
    --shadow: 0 1px 2px rgba(0,0,0,0.06),
              0 8px 24px rgba(0,0,0,0.10);
    --bold: 700;
    --card-margin: 1rem;
    --base-color: oklch(0.42 0.08 318.33);
}

main {
  font-family: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
}

/* --- GLOBAL TYPOGRAPHY --- */
h1 { font-size: clamp(2rem, 5vw + 1rem, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw + 1rem, 3rem); }
h3 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
    color: var(--base-color);
}
h4, h5, h6 {
    font-size: clamp(1.25rem, 2vw + 1rem, 2rem);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--bold);
    margin: 0 0 1.5rem;
    line-height: 1.1;
}

.navbar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0;
    padding-bottom: 0;
    float: none;
    order: 1;
    flex-grow: 1;
}

.navbar-toggle {
    float: none;
    margin-top: 0;
    margin-bottom: 0;
    order: 2;
}

aside#off-canvas {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--base-color);
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.nav-top-area {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 15px;
}

.nav-top-area button.js-offcanvas-close {
  margin: 0;
}

.nav-collapse.navbar-collapse a {
  color: var(--base-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-collapse.navbar-collapse a:last-child {
  border-bottom: none;
}

.brand-logo svg {
  height: 70px;
  width: auto; /* Maintain aspect ratio */
}

.site-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1.site-identity__parent {
  font-size: 1.5rem;
  line-height: normal;
  text-transform: uppercase;
  margin: 0;
}

h2.site-identity__name {
  font-size: 2.5rem;
  line-height: normal;
  margin: 0;
}

h2.site-identity__name {
  white-space: normal;
}

h2.site-identity__name span:last-child {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .site-identity__parent {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .button-row {
    flex-direction: column;
  }
  
  .button-row a.cccs-btn {
    border-radius: 50px; /* Round all corners */
    margin-bottom: 10px; /* Add spacing between stacked buttons */
    width: 100%;        /* Ensure they take full width if desired */
  }

  .button-row a.cccs-btn:last-child {
    margin-bottom: 0;
  }
}

.toggle-text {
  display: none !important;
}

.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 20px;
  justify-content: center;
}

@media (max-width: 600px) {
  .button-row {
  display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

.button-row .cccs-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 20px -2px color-mix(in srgb, var(--base-color), transparent 60%);
}

}

.cccs-btn {
  display: inline-block;
  width: 25%;
  padding: 12px 24px;
  background-color: var(--base-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: all 0.1s ease;
  text-align: center;
  box-sizing: border-box;
}

/* Specific rounding for desktop */
.cccs-btn:first-child {
  border-radius: 50px 0 0 50px;
}
.cccs-btn:last-child {
  border-radius: 0 50px 50px 0;
}

@media (max-width: 600px) {
  .cccs-btn {
    width: 100%;
    border-radius: 50px;
  }
#footer {
    text-align: center;
    margin-top: 2rem;
}
}

section#s02 .mapbox img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section#s02 .mapbox img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

section#s01, section#s02, section#s03 {
  padding: 1rem 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

section h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.dynamic-news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin: 0;
  width: 100%;
}

.news-card {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: #eee;
}

.news-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.news-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 12px 16px;
  z-index: 10;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.news-overlay h4 {
  margin: 0;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-overlay h5 {
  margin: 4px 0 0;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.news-date {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.9);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  width: 16ch;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
