/* ============================================
   Kauniaisten Kokoomus – stylesheet
   Inspired by joonasollila.fi & jacquesmattheij.com
   ============================================ */

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.65;
  color: #222;
  background: #f2f2f2;
}

a {
  color: #1a5ea8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #0f3d72;
}

/* ---- Header ---- */
.site-header {
  background: #00406f;
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  display: inline-block;
  line-height: 0;
}

.site-logo img {
  height: 90px;
  width: auto;
  display: block;
}

/* ---- Navigation ---- */
.site-nav {
  background: #b0d9eb;
  border-bottom: 1px solid #8fc4d8;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav li a {
  display: block;
  padding: 9px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86em;
  color: #333;
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav li a:hover,
.site-nav li a.active {
  color: #00406f;
  border-bottom-color: #00406f;
  text-decoration: none;
}

/* ---- Page layout ---- */
.page-wrap {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* ---- Main content ---- */
.main-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  padding: 28px 32px;
  border: 1px solid #ddd;
}

.main-content h1 {
  font-size: 1.5em;
  font-weight: normal;
  margin-bottom: 16px;
  color: #00406f;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.main-content h2 {
  font-size: 1.2em;
  font-weight: normal;
  margin: 24px 0 12px;
  color: #00406f;
}

.main-content h3 {
  font-size: 1.05em;
  margin: 20px 0 8px;
  color: #222;
}

.main-content p {
  margin-bottom: 14px;
}

.main-content ul,
.main-content ol {
  margin: 0 0 14px 24px;
}

.main-content li {
  margin-bottom: 6px;
}

/* ---- Post date ---- */
.post-date {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* ---- Post list ---- */
.post-list {
  list-style: none;
  margin: 0 0 20px 0;
}

.post-list li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.post-list li:first-child {
  border-top: 1px solid #eee;
}

.post-list .post-date {
  display: block;
  margin-bottom: 3px;
}

.post-list .post-summary {
  color: #555;
  font-size: 0.92em;
  margin-top: 4px;
  margin-bottom: 0;
}

/* ---- Group photo ---- */
.group-photo {
  float: right;
  margin: 0 0 20px 28px;
  width: 220px;
}

.group-photo img {
  display: block;
  width: 100%;
  border: 1px solid #ddd;
}

/* ---- Home ---- */
.home-content {
  margin-bottom: 30px;
  overflow: hidden;
}

.recent-news h2 {
  font-size: 1.15em;
  font-weight: normal;
  color: #00406f;
  margin-bottom: 0;
}

/* ---- Section intro ---- */
.section-intro {
  margin-bottom: 24px;
  color: #444;
}

/* ---- Sidebar ---- */
.sidebar {
  width: 210px;
  flex-shrink: 0;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section li {
  margin-bottom: 4px;
}

.sidebar-section a {
  font-size: 0.88em;
  color: #1a5ea8;
}

/* ---- Footer ---- */
.site-footer {
  background: #b0d9eb;
  border-top: 1px solid #8fc4d8;
  margin-top: 40px;
  padding: 16px 0;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82em;
  color: #555;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .page-wrap {
    flex-direction: column;
    margin: 16px auto;
  }

  .sidebar {
    width: 100%;
  }

  .main-content {
    padding: 20px 18px;
    background: #fff;
  }

  .site-header {
    padding: 16px 0 12px;
  }

  .site-title {
    font-size: 1.5em;
  }

  .site-nav li a {
    padding: 8px 10px;
    font-size: 0.82em;
  }
}
