@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Smooch+Sans:wght@100..900&display=swap');


:root {
  --rose: #b77d89;
  --rose-dark: #99626d;
  --rose-mid: #d9a8b1;
  --rose-light: #f1dadd;
  --pink-wash: #fbf0f1;
  --paper: #fffdfc;
  --ink: #51474a;
  --muted: #8c7c80;
  --line: #f0e3e4;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter";
  --sans2: "Smooch Sans";
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fbf6f5; color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.8; text-align:justify; }
a:link, a:active, a:visited { color: var(--rose); text-decoration: none; }
a:hover { color: var(--rose-dark); text-decoration: none; }

.site-shell { width: min(100%, 1300px); margin: 0 auto; min-height: 100vh; display: grid; grid-template-columns: 300px minmax(0, 1fr); background: var(--paper); box-shadow: 0 0 32px #a8818712; }
.sidebar { position: relative; min-height: 100%; padding: 15px 18px 32px; background: linear-gradient(160deg, #f9eeee 0%, #f7e7e9 60%, #fbeff0 100%); overflow: hidden; }
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--rose-dark); }
.logo img { max-width: 90%; }
.brand-name { font-family: var(--sans2); font-size: 40px; font-weight: 600; line-height: 1.18; letter-spacing: 2px; font-style:normal; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--rose); font-family: Georgia, serif; font-size: 17px; }
.ornament i { display: block; width: 54px; height: 1px; background: #d7a6af; }
.brand .ornament { margin-top: 14px; width: 100%; }

.side-nav { display: grid; gap: 4px; margin-top: 36px; }
.nav-icon { width: 24px; text-align: center; color: #ad8187; font-family: Georgia, serif; font-size: 23px; line-height: 1; }
.sidebar-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 44px 0 31px; color: var(--rose); font-size: 16px; }
.sidebar-divider i { height: 1px; width: 68px; background: #d9aab1; }
.sidebar-photo { display: block; width: 198px; height: auto; border-radius: 3px; margin: 0 auto; }
.sidebar-copy { margin: 31px 0 0; text-align: center; font-family: var(--sans); font-style: italic; font-size: 13px; line-height: 1.15; color: #a77982; }
.sidebar-copy a:link, .sidebar-copy a:active, .sidebar-copy a:visited, .sidebar-copy a:hover { text-align: center; font-family: var(--sans); font-style: italic; font-size: 13px; line-height: 1.15; color: #a77982; padding: 0px; }
.bottom-flourish { position: absolute; bottom: 8px; left: 0; width: 100%; text-align: center; font-family: var(--serif); font-size: 48px; letter-spacing: 6px; color: #e2b7bf; opacity: .72; transform: rotate(-8deg); }








/* Style the sidenav links and the dropdown button */
.side-nav a, .dropdown-btn {
min-height: 39px; display: block; align-items: center; border-radius: 8px; color: #9b7278; font-family: var(--sans2); font-size: 28px; transition: background .2s ease, transform .2s ease; text-transform:uppercase; letter-spacing: 2px; font-weight: 500;

background:none; border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.side-nav a { padding: 3px 14px; }
.dropdown-btn { padding: 10px 14px; }

/* On mouse-over */
.side-nav a:hover, .dropdown-btn:hover {
background: #f0dadd; transform: translateX(2px);
}

/* Main content */
.main {
  font-size: 20px; /* Increased text to enable scrolling */
  padding: 0px 10px;
}

/* Add an active class to the active dropdown button */
.active {
  background: #f0dadd;
}

/* Dropdown container (hidden by default). Optional: add a lighter background color and some left padding to change the design of the dropdown content */
.dropdown-container {
  display: none;
  background-color: none;
}

.dropdown-container a { font-size: 20px; text-indent: 15px; }









.main-content { min-width: 0; background: var(--paper); }
.hero { position: relative; height: 356px; display: flex; align-items: center; overflow: hidden; background: #f4e7e1; border-bottom: 1px solid #f3e6e5; }
.hero-image { position: absolute; right: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.content-grid { display: block; padding: 22px 21px 26px 14px; }

.index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 50px; }
.row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.tilaisuudet { display: grid; grid-template-columns: repeat(4, auto); gap: 0px; }
.osallistujat { display: grid; grid-template-columns: repeat(3, auto); gap: 0px; }
.tilaisuudet div, .osallistujat div { border-bottom: solid #f0d6da 1px; padding: 5px 15px; }
.th { border-top: solid #f0d6da 1px; padding: 5px; font-weight: 700; background: linear-gradient(#f6e3e5, #f1dadd); color: #98666e; font-family: var(--sans2); text-transform:uppercase; font-size: 18px; letter-spacing: 2px; }

.rodusta-img { width: 100%; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); border-radius: 5px; }

.panel { background: rgba(255,253,252,.9); padding: 20px 30px; }

h2 { margin: 0 0 13px; font-family: var(--sans2); font-size: 34px; line-height: 1.12; font-weight: 600; color: #a96f7a; }
h3 { margin: 0 0 13px; font-family: var(--sans2); font-size: 34px; line-height: 1.12; font-weight: 600; color: #a96f7a; margin-top: 50px; }

.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 15px; margin-top: 10px; padding: 8px 16px; border: 1px solid #f0d6da; border-radius: 6px; background: linear-gradient(#f6e3e5, #f1dadd); color: #98666e; font-family: var(--sans); font-weight: 500; font-size: 13px; white-space: nowrap; transition: filter .2s ease, transform .2s ease; text-transform:uppercase; }
.button-link:hover { filter: saturate(1.15); transform: translateY(-1px); }

.news-panel { padding: 14px 15px 16px;border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 2px 8px rgba(139, 94, 101, .035); }
.news-panel h2 { margin-bottom: 14px; font-size: 24px; }
.news-item, .news-item2 { padding: 0 0 12px; margin-bottom: 11px; }
.news-item { border-bottom: 1px solid #f0e4e5; }
.news-item2 { border-bottom: 0px solid #f0e4e5; }
.news-item h3, .news-item2 h3 { margin: 1px 0 0; font-family: var(--sans); font-size: 15px; line-height: 1.35; color: #a36e78; font-weight: 600; }
.news-item p, .news-item2 p { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.news-panel .button-link { margin-top: 0; }
.calendar-panel { padding: 15px 15px 17px; background: linear-gradient(135deg, #fcf2f3, #fbf0f1); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 2px 8px rgba(139, 94, 101, .035); }
.calendar-panel h2 { display: flex; align-items: center; gap: 11px; margin: 0 0 16px; font-family: var(--sans2); font-size: 24px; font-weight: 600; color: #a96f7a; }
.calendar-icon { font-family: var(--sans); font-size: 23px; color: #c48e98; }
.event-row { display: grid; grid-template-columns: 57px 1fr; gap: 9px; margin-bottom: 16px; }
.event-row time { color: #b47782; font-family: var(--sans); font-size: 15px; border-right: 1px solid #eddadd; padding-top: 15px; }
.event-row div { display: flex; flex-direction: column; }
.event-row strong { color: #a36e78; font-family: var(--sans); font-weight: 600; }
.event-row span { color: #9b8388; font-family: var(--sans); }



@media (min-width: 1441px) { .site-shell { border-left: 1px solid #f3e5e6; border-right: 1px solid #f3e5e6; } }
@media (max-width: 1100px) {
  .site-shell { grid-template-columns: 235px minmax(0, 1fr); }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); padding-left: 14px; }
}
@media (max-width: 760px) {
  .site-shell { display: block; width: 100%; }
  .sidebar { min-height: 0; padding: 12px 15px; border-right: 0; border-bottom: 3px solid white; }
  .brand { flex-direction: row; justify-content: flex-start; gap: 10px; text-align: left; }
  .brand-name { font-size: 14px; }
  .brand .ornament, .sidebar-divider, .sidebar-photo, .sidebar-motto, .bottom-flourish { display: none; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
  .side-nav a { min-height: 32px; gap: 6px; padding: 4px 8px; font-family: var(--sans); font-size: 11px; }
  .nav-icon { width: auto; font-size: 15px; }
  .hero { min-height: 280px; }
  .hero-image { width: 100%; opacity: .68; object-position: 60% center; }
  .content-grid { padding: 12px; gap: 12px; }
.row-2, .row-3, .row-4 { display: grid; grid-template-columns: repeat(1, 1fr); }
}
@media (max-width: 420px) {
  .side-nav a { font-size: 10px; padding: 4px 6px; }
  .hero { min-height: 250px; }
  .hero-copy { width: 94%; }
  .hero h1 { font-size: 22px; }
  .welcome p { font-size: 12px; }
  .feature-card img { height: 112px; }
  .news-panel, .calendar-panel { padding: 13px; }
  .footer-links { gap: 7px; }
}
