@import "_reset.css";

:root {
  --fontcolor: #000;
  --backgroundcolor: #fff;
  --bncl-color: #00c4c4;
  --bncl-font: "Inter", Helvetica, Arial, sans-serif;
  --font-size-default: 15px;
  --font-size-secondary: 24px;
  --font-size-primary: 56px;
  --line-height: 1.2em;
  --border: #000 2px solid;
  --color-transition: 0.2s ease;
}

* {
  min-width: 0;
  box-sizing: border-box;
}

::-moz-selection {
  background: var(--bncl-color);
  color: white;
}

::selection {
  background: var(--bncl-color);
  color: white;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--backgroundcolor);
  overflow: scroll;
}

/* TYPOGRAPHY */

body {
  font-family: var(--bncl-font);
  color: var(--fontcolor);
  font-size: var(--font-size-default);
  font-weight: 610;
  line-height: var(--line-height);
  letter-spacing: 0.5px;
}

h1 {
  font-size: var(--font-size-primary);
  line-height: 1em;
  letter-spacing: -0.2px;
}

h2,
h3 {
  font-size: var(--font-size-secondary);
  line-height: 1.2em;
  letter-spacing: 0;
  padding-bottom: 14px;
}

p {
  font-size: var(--font-size-default);
  line-height: var(--line-height);
  letter-spacing: 0;
  padding-bottom: 1em;
  font-weight: 640;
}

a {
  color: var(--bncl-color);
  font-size: 1em;
  line-height: 1em;
  letter-spacing: 0;
  text-decoration: none;
}

h1 a,
h2 a,
h3 a {
  color: #000;
  transition: color var(--color-transition);
}

h1 a:hover,
h2 a:hover,
h3 a:hover {
  color: var(--bncl-color);
}

figcaption {
  font-size: 12px;
  line-height: var(--line-height);
}

em {
  font-style: italic;
}

/* a, h3, h4, p {
  hyphens: auto;
  overflow-wrap: break-word; 
  word-break: normal; 
  hyphenate-limit-chars: auto 3 3;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
} */

section.current .post-list,
section.past .post-list {
    hyphens: auto;
  overflow-wrap: break-word; 
  word-break: normal; 
  hyphenate-limit-chars: auto 3 3;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
}

header a {
  overflow-wrap: initial;
}

/* HEADER */

header {
  display: flex;
  width: 100%;
  flex-direction: column;
  position: sticky;
  top: 0;
  background: var(--backgroundcolor);
  z-index: 1000;
}

header nav {
  font-size: var(--font-size-primary);
  display: grid;
  grid-template-columns: 1fr 20%;
  padding-top: 9px;
  padding-bottom: 6px;
  height: 100%;
  width: 100%;
}

header nav,
header menu {
  border-bottom: var(--border);
  padding-left: 12px;
  padding-right: 12px;
}

.current-menu-item a {
  color: var(--bncl-color) !important;
}

.header-logo {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#logo-woc {
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%;
  height: auto;
}

#logo-woc img {
  max-height: 1em;
  height: 4vw;
  width: auto;
  padding-top: 0;
}

header menu {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
}

.menu-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 1.6em;
  row-gap: 5px;
  width: fit-content;
  padding-top: 9px;
  padding-bottom: 7px;
}

header menu a {
  font-size: var(--font-size-secondary);
  color: black;
  transition: color var(--color-transition);
}

header menu a:hover,
header menu a.bncl {
  color: var(--bncl-color);
}

#menu-section-language {
  align-items: end;
}

/* PAGE LAYOUT */

main {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  padding-top: 10px;
  margin-bottom: 500px;
}

main h1 {
  padding-bottom: 0.3em;
  line-height: 1em;
}

.column-left {
  display: block;
  position: sticky;
  top: 126px;
  width: 13%;
  align-self: flex-start;
  height: fit-content;
}

.column-left ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.column-left ul li {
  padding-bottom: 5.5px;
  border-bottom: var(--border);
}

.column-left a {
  font-size: var(--font-size-secondary);
  color: var(--fontcolor);
  transition: color var(--color-transition);
  padding-left: 12px;
}

.column-left a:hover,
.column-right a:hover {
  color: var(--bncl-color);
}

section.content,
section.category {
  width: 65%;
  margin-top: 6px;
}

.content article {
  display: flex;
  flex-direction: column;
}

.column-right {
  display: flex;
  flex-direction: column;
  width: 20%;
  margin-top: 0.5em;
  padding-right: 12px;
}

.column-right ul {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.column-right a {
  font-size: var(--font-size-default);
  line-height: var(--line-height);
  color: #000;
  transition: color var(--color-transition);
}

.landing .column-right a {
  color: var(--bncl-color);
  transition: color 0s;
}

hr {
  border: var(--border) !important;
  border-top: none !important;
  margin-bottom: 1em;
  margin-top: 0;
}

/* LANDING PAGE */

.landing .column-right {
  gap: 14px;
  margin-top: 4px;
}

.landing .column-right p,
.landing .column-right h2 {
  padding-bottom: 0;
}

/* SINGLE PAGE */

.page-content {
  width: 100%;
}

.single-page section .page-content {
  width: 75.58%;
}

.single-page h2 a {
  color: var(--bncl-color);
  transition: color 0s;
}

/* CATEGORY PAGE */

section.past,
section.current,
.single-page section.content {
  width: 86%;
  margin-top: 6px;
}

section .post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

section .post-list h2 {
  color: #000;
  transition: color var(--color-transition);
  font-size: var(--font-size-primary);
  line-height: 1em;
  padding-bottom: 12px;
  border-bottom: var(--border);
}

section .post-list h2:hover {
  color: var(--bncl-color);
}

section.current .post-list,
section.past .post-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  width: 100%;
  padding-right: 10px;
}

section.current .post-list h2,
section.past .post-list h2 {
  font-size: 34px;
  line-height: 1.05em;
}

section .thumbnail img {
  width: 100%;
  height: auto;
  padding-bottom: 0.5em;
    padding-top: 0.3em;
}

section.past .headline-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
   margin-right: 10px;
}

#bncl-info {
  line-height: 1.1em;
}

/* SEARCH FORM */
.search-form {
      padding-bottom: 6px;
}

.search-form-container {
  display: flex;           
  align-items: center;    
  background-color: #fff;
  border: var(--border);
  border-radius: 74px;
  padding: 2px 7px;
}

.search-input {
  flex: 1;
  border: none; 
  outline: none;
  font-size: var(--font-size-default);
  padding: 2px 7px;
  border-radius: 74px;
}

.search-submit {
  border: none;
  color: #000;
  padding: 0px 10px;
  margin-left: 8px;
  cursor: pointer;
  transition: color var(--color-transition);
}

.search-submit:hover {
  color: var(--bncl-color);
}

/* PAST-CHILD POST-LIST */

section.past-child li {
    padding-bottom: 14px;
    border-bottom: #000 var(--border);
}
section.past-child h2 {
  border-bottom: 0;
}

section.past-child ul {
  gap: 0px;
}

section.past-child .post-content {
  border-bottom: var(--border);
}

section.past-child .post-content h2 {
  font-size: var(--font-size-secondary);
  line-height: var(--line-height);
}

section.past-child .post-content p {
  color: #000;
}

/* RESPONSIVE */

@media screen and (max-width: 1024px) {
  :root {
    --font-size-default: 15px;
    --font-size-secondary: 21px;
    --font-size-primary: 35px;
  }

  /* PAGE LAYOUT */
  .column-right {
    display: none;
  }

  section.content,
  section.category {
    width: 86%;
    padding-right: 10px;
  }

  main h1 {
    line-height: 1.1em;
  }

  /* CATEGORY PAGE */
  section.current, section.past {
    padding-right: 0;
  }
  section.current .post-list,
  section.past .post-list {
    grid-template-columns: 1fr 1fr;
  }

  section.current .post-list h2,
  section.past .post-list h2 {
    font-size: 28px;
    line-height: 1.05em;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --font-size-default: 15px;
    --font-size-secondary: 19px;
    --font-size-primary: 26px;
  }

  /* HEADER */

  #logo-woc {
    display: none;
  }

  .header-logo {
    justify-content: end;
  }

  .menu-section {
      column-gap: 0.8em;
  }

  .column-left {
    display: block;
    position: relative;
    top: 0;
    width: 100%;
    padding: 0;
    align-self: flex-start;
    height: fit-content;
  }

  /* PAGE LAYOUT */

  .column-right {
    display: none;
  }

  .current .column-left {
    padding-top: 10px;
  }

  main {
    flex-direction: column;
    gap: 0;
    padding-top: 0;
  }

  main h1 {
    padding-bottom: 0.4em;
    line-height: 1.2;
  }

  section.content,
  section.category {
    width: 100%;
    padding: 10px;
    padding-top: 12px;
  }

  /* CATEGORY PAGE */
    section.category {
    margin-top: 0;
  }

  section.past .headline-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.past .column-left {
  display: none;
}

  section.current .post-list,
  section.past .post-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-right: 0;
  }

  section.current .post-list h2,
  section.past .post-list h2 {
    font-size: 24px;
    line-height: 1.05em;
  }
}
