/*
Theme Name:     Cycling 01
Description:    Custom theme for CCD
Author:         ZZ
Text Domain:    zz
Version:        1.0.0
*/

/* -------------------------------------------------------------------------
   1. Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------------------------
   2. Fonts & Variables
   ------------------------------------------------------------------------- */
/* Note: Update src paths to match your actual font file locations */
@font-face {
  font-family: "Cassanet";
  src: url("_fonts/cassannet_plus_regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Chaney";
  src: url("_fonts/chaney-regular-webfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "General Sans";
  src: url("_fonts/GeneralSans-Medium.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "General Sans Bold";
  src: url("_fonts/GeneralSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

:root {
  /* Colors */
  --color-one: #00402b;
  --color-two: #d1ac49;
  --color-three: #e5ebe9;
  --color-four: #ffffff;
  --color-one-dark: #002f20;
  --gold-dark: #a78633;

  /* Fonts */
  --font-h1: "Cassanet", sans-serif;
  --font-h2-h4: "Chaney", sans-serif;
  --font-h5: "Cassanet", sans-serif;
  --font-body: "General Sans", sans-serif;
  --font-body-bold: "General Sans Bold", sans-serif;

  /* Page Widths */
  --width-narrow: 768px;
  --width-normal: 1024px;
  --width-wide: 1340px;
  --page-full-width: 100%;
  --page-gutter: 1.5rem; /* Prevents content from touching screen edges */
}

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-one);
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.125em;
  font-weight: normal;
}

/* Desktop Styles - Calculated based on 16px root */
h1 {
  font-family: var(--font-h1);
  font-size: 5em;
  line-height: 1;
  margin-top: 0.25em;
  margin-bottom: 0.5em;
  letter-spacing: 0.05em;
}
h2 {
  font-family: var(--font-h2-h4);
  font-size: 3.75em;
  line-height: 1;
}
h3 {
  font-family: var(--font-h2-h4);
  font-size: 1.875em;
  line-height: 1;
}
h4 {
  font-family: var(--font-h2-h4);
  font-size: 1.25em;
  line-height: 1.2;
}
h5 {
  font-family: var(--font-h5);
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: 0.1em;
}
h6 {
  font-family: var(--font-body-bold);
  font-weight: 700;
  font-size: 1.125em;
  line-height: 1.444;
}

p,
ul,
ol {
  font-family: var(--font-body);
  font-size: 1.125em; /*18px*/
  line-height: 1.5;
  margin-bottom: 1.5em;
}
ul,
ol {
  margin: 0 0 1.5em 0.5em; /* indent lists to match body copy rhythm */
  padding-left: 1em;
  margin-top: -1.5em;
}

strong {
  font-family: var(--font-body-bold);
}
em {
  font-style: italic;
}

/* Mobile Styles */
@media (max-width: 768px) {
  h1 {
    font-size: 3em;
    line-height: 1;
  }
  h2 {
    font-size: 2.25em;
    line-height: 1;
  }
  h3 {
    font-size: 1.625em;
    line-height: 1;
  }
  /* H4 & H5 inherit desktop or define specific if needed */
  h6 {
    font-size: 1.125em;
    line-height: 1.5;
  }
  p,
  ul,
  ol {
    font-size: 1em;
    line-height: 1.5;
  }
}

/* -------------------------------------------------------------------------
   4. Links & Buttons
   ------------------------------------------------------------------------- */
a {
  color: var(--color-one);
  text-decoration: underline;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-two);
}

.button {
  display: inline-block;
  padding: 0.75em 1.5em; /* converted approx 12px 24px */
  background-color: var(--color-one);
  color: var(--color-four);
  border: 1px solid var(--color-one);
  cursor: pointer;
}

.button:hover {
  background-color: transparent;
  color: var(--color-one);
}

/* -------------------------------------------------------------------------
   5. Layout & Containers
   ------------------------------------------------------------------------- */

/* Base Container Logic */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.section-wide {
  width: 100%;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Modifier Classes */
.container--narrow {
  max-width: var(--width-narrow);
}
.container--normal {
  max-width: var(--width-normal);
}
.container--wide {
  max-width: var(--width-wide);
}
.container--full {
  max-width: 100%;
  padding: 0;
}

/* -------------------------------------------------------------------------
   6. Flexbox Columns
   ------------------------------------------------------------------------- */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px; /* gutter compensation */
}

.col {
  padding: 0 15px;
}

.col-2 {
  width: 50%;
}
.col-3 {
  width: 33.333%;
}
.col-4 {
  width: 25%;
}

@media (max-width: 1000px) {
  .col-3,
  .col-4 {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .col-2,
  .col-3,
  .col-4 {
    width: 100%;
  }
}

/* -------------------------------------------------------------------------
   7. CSS Grid Setup
   ------------------------------------------------------------------------- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* -------------------------------------------------------------------------
   8. Gutenberg Editor Colors & Alignments
   ------------------------------------------------------------------------- */
.has-one-color {
  color: var(--color-one);
}
.has-one-background-color {
  background-color: var(--color-one);
}

.has-two-color {
  color: var(--color-two);
}
.has-two-background-color {
  background-color: var(--color-two);
}

.has-three-color {
  color: var(--color-three);
}
.has-three-background-color {
  background-color: var(--color-three);
}

.has-four-color {
  color: var(--color-four);
}
.has-four-background-color {
  background-color: var(--color-four);
}

/* Editor font sizes */
.has-intro-font-size {
  font-size: 1.25em; /* 20px */
  line-height: 1.5;
  color: var(--color-two);
  text-align: center;
  max-width: var(--width-narrow);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

.has-large-font-size {
  font-size: 1.5em; /* 24px */
  line-height: 1.5;
}

.has-extra-large-font-size {
  font-size: 1.875em; /* 30px */
  line-height: 1.5;
}

@media (max-width: 768px) {
  .has-intro-font-size {
    font-size: 1em; /* 18px */
  }
  .has-large-font-size {
    font-size: 1.125em !important; /* 20px */
  }
  .has-extra-large-font-size {
    font-size: 1.25em; /* 24px */
  }
}

/* -------------------------------------------------------------------------
   9. Gutenberg Block Specific Styles
   ------------------------------------------------------------------------- */

/* COLUMNS AND COLUMN BLOCK */

/* Page-wide Columns (style: Page Wide) */
.wp-block-columns.is-style-pagewide {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Normal width column, apply inside Page-wide Columns (style: Inner-wide, Inner-narrow) */
.wp-block-columns.is-style-pagewide .is-style-inner-wide {
  max-width: var(--width-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}
.wp-block-columns.is-style-pagewide .is-style-inner-narrow {
  max-width: var(--width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Columns top + bottom padding style */
/* Automatic padding if Columns has background color */
.wp-block-columns.is-style-custom-padding,
.has-background {
  padding-top: 7em; /* 99px */
  padding-bottom: 7em;
}
@media (max-width: 768px) {
  .wp-block-columns.is-style-custom-padding,
  .has-background {
    padding-top: 3.5em; /* 99px */
    padding-bottom: 3.5em;
  }
}

/* Column with 1px green border */
.wp-block-column.is-style-bordered-green {
  border: 1px solid var(--color-one);
  padding: 2em 1.5em 1.5em; /* Add some padding so the border isn't right against the content */
}

/* COLUMNS GAPS */

/* Gap 5rem for Columns */
.wp-block-columns {
  gap: 5rem !important; /* Override theme.json if needed, or set base here */
}

/* Conditional Gap for Columns */
/* 3 or more columns -> 2rem gap. (Default is 5rem via theme.json) */
.wp-block-columns:has(> .wp-block-column:nth-child(3)) {
  gap: 2rem !important;
}

/* HORIZONTAL RULE */
.wp-block-separator {
  border-bottom: 1px solid;
}
.wp-block-separator.is-style-wide {
  width: auto; /* Reset any specific width if applied by default */
  margin-left: -1.5em; /* Counteract the left padding of the column */
  margin-right: -1.5em; /* Counteract the right padding of the column */
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/* TABLE BLOCK */
.wp-block-table {
  margin-bottom: 1.5em;
}

.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table td,
.wp-block-table th {
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 1px solid var(--color-one) !important;
  border-bottom: 1px solid var(--color-one) !important;
}

@media (max-width: 768px) {
  .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wp-block-table table {
    width: max-content;
    min-width: 100%;
  }
}

/* BUTTON BLOCK */
.wp-block-button .wp-block-button__link {
  background-color: var(--color-two); /* gold */
  color: var(--color-one); /* dark green */
  border: 1px solid var(--color-two);
  border-radius: 0;
  min-width: 220px;
  min-height: 2.75em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 1em;
  margin-bottom: 1em;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
  background-color: var(--color-one); /* dark green */
  border-color: var(--color-four); /* white */
  color: var(--color-four); /* white */
}

/* Button variant: white - Editor css class: is-style-white */
.wp-block-button.is-style-white .wp-block-button__link {
  background-color: var(--color-four); /* white */
  border-color: var(--color-four); /* white */
  color: var(--color-one); /* green */
}

.wp-block-button.is-style-white .wp-block-button__link:hover,
.wp-block-button.is-style-white .wp-block-button__link:focus {
  background-color: var(--color-two); /* gold */
  border-color: var(--color-one); /* gold */
  color: var(--color-one); /* dark green */
}

/* Button variant: Style: small - Editor css class: is-style-small */
.wp-block-button.is-style-small .wp-block-button__link {
  background-color: var(--color-one); /* green */
  color: var(--color-four); /* white */
  border: 1px solid var(--color-four);
  min-width: 120px;
  min-height: 2.5em;
  padding: 0.4em 0.9em;
  font-size: 1em;
  line-height: 1.25;
  margin-left: 0.5em;
  margin-right: 0.5em;
}

.wp-block-button.is-style-small .wp-block-button__link:hover,
.wp-block-button.is-style-small .wp-block-button__link:focus {
  background-color: var(--color-four); /* white */
  border-color: var(--color-one); /* green */
  color: var(--color-one); /* green */
}

/* Button variant: Outline - Editor css class: is-style-outline */
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: var(--color-four); /* white */
  border: 1px solid var(--color-two); /* gold */
  color: var(--color-two); /* gold */
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
  background-color: var(--color-two); /* gold */
  border-color: var(--color-four); /* white */
  color: var(--color-four); /* white */
}

/* -------------------------------------------------------------------------
   9B. Gutenberg additional and overrides
   ------------------------------------------------------------------------- */

.has-no-padding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.has-xs-padding {
  padding-top: 1em !important;
  padding-bottom: 1em !important;
}

/* -------------------------------------------------------------------------
   10. Header
   ------------------------------------------------------------------------- */
#site-header {
  width: 100%;
  height: 80px;
  background-color: #fff;
  background-color: var(--color-four);
  display: flex;
  align-items: center;
}

.site-logo {
  width: 165px;
  height: 51px;
  background: url("./_img/logo.png") no-repeat center center;
  background-size: contain;
  text-indent: -9999px; /* Hide text, keep it accessible */
  overflow: hidden; /* Hide any overflow from text-indent */
}

.site-logo a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Hamburger Menu */
.menu-toggle-checkbox {
  display: none;
}

.hamburger-menu {
  display: inline-flex; /* Always visible */
  width: 30px;
  height: 22px; /* Match the exact 3-line icon bounds (2px line + 10px offsets) */
  position: relative;
  cursor: pointer;
  z-index: 1000;
  margin-left: auto; /* Push to the right */
  margin-right: 5%; /* Align with container padding */
  align-items: center;
  justify-content: center;
}

#site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hamburger-icon {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-one);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-one);
  position: absolute;
  transition:
    transform 0.3s ease,
    top 0.3s ease;
}

.hamburger-icon::before {
  top: -10px;
}
.hamburger-icon::after {
  top: 10px;
}

/* Hamburger animation when checked */
.menu-toggle-checkbox:checked + .hamburger-menu .hamburger-icon {
  background-color: transparent;
}

.menu-toggle-checkbox:checked + .hamburger-menu .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle-checkbox:checked + .hamburger-menu .hamburger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Full screen enu */
#full-screen-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-two); /* Gold background */
  z-index: 999;
  transform: translateX(100%); /* Start off-screen to the right */
  transition: transform 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.menu-toggle-checkbox:checked ~ #full-screen-menu {
  transform: translateX(0); /* Slide in */
  transition: transform 0.3s ease-in-out;
}

.full-screen-navigation ul {
  list-style: none;
  text-align: center;
}

.full-screen-navigation li {
  margin-bottom: 20px;
}

.full-screen-navigation a {
  font-family: var(--font-h2-h4);
  font-size: 2em; /* Adjust as needed */
  color: var(--color-one); /* Green */
  text-decoration: none;
  transition: color 0.3s ease;
}

.full-screen-navigation a:hover,
.full-screen-navigation a:focus {
  color: var(--color-four); /* Gold on hover */
}

/* -------------------------------------------------------------------------
   11. Footer
   ------------------------------------------------------------------------- */

#site-footer {
  bottom: 0;
  width: 100%;
  background-color: #f3f5f4;
  padding: 8em 0 2em;
  font-size: 0.8em;
  text-align: center;
  border-top: 1px solid var(--color-one);
}

#site-footer .footer-slogan {
  font-family: var(--font-h5);
  font-size: 4em;
  line-height: 1.2em;
  letter-spacing: 0.5rem;
  color: var(--color-two);
  margin-bottom: 1em;
}

#site-footer #footer-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: 0 0 5em 0;
  padding: 0;
  font-size: 1.25em;
}
#site-footer #footer-menu li {
  list-style: none;
}

#footer-menu a {
  color: var(--color-one);
  text-decoration: none;
  margin: 0 0.5rem;
}

#footer-menu a:hover {
  color: var(--color-two);
}

.footer-logo {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8em;
  width: 140px;
  height: 214px;
  background: url("./_img/logo-shield.svg") no-repeat center center;
  background-size: contain;
  text-indent: -9999px; /* Hide text, keep it accessible */
  overflow: hidden; /* Hide any overflow from text-indent */
}

/* -------------------------------------------------------------------------
   20. Page Specific Styles
   ------------------------------------------------------------------------- */

/* Home Page - Video Hero */
.page-home .home-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(480px, 82vh, 900px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

.page-home .home-hero__background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-home .home-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.page-home .home-hero__video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.page-home .home-hero__video.is-visible {
  opacity: 1;
}

.page-home .home-hero__content {
  position: relative;
  z-index: 3;
}

.page-general .hero-image__marquee {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-general .hero-image__marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: hero-marquee 42s linear infinite;
}

.page-general .hero-image__marquee-track span {
  color: var(--color-four);
  font-family: var(--font-h2-h4);
  font-size: 15rem;
  line-height: 1;
  padding-right: 150px;
  text-transform: uppercase;
}

@keyframes hero-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .page-home .home-hero {
    min-height: clamp(360px, 66vh, 640px);
  }

  .page-general .hero-image__marquee-track span {
    font-size: 6.75rem;
    padding-right: 120px;
  }
}

/* Page General - Hero Image */
.page-general .hero-image {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1;
  height: 55vh;
}
@media (max-width: 768px) {
  .page-general .hero-image {
    height: 50vh;
  }
}
@media (max-width: 380px) {
  .page-general .hero-image {
    height: 30vh;
  }
}

.page-general .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-scroll-wrapper {
  position: relative;
  z-index: 20;
  background-color: #ffffff;
  transform: translate3d(0, 0, 0);
  padding-top: 0;
  min-height: 100vh;
}

/* Page Kalenders */

.page-general.page-kalenders .hero-image {
  height: 35vh;
}
@media (max-width: 768px) {
  .page-general.page-kalenders .hero-image {
    height: 25vh;
  }
}

/* -------------------------------------------------------------------------
   21. Extras
   ------------------------------------------------------------------------- */

.wp-block-column.is-style-bordered-green .wp-block-image {
  margin-left: -1.5em;
  margin-right: 0em;
  margin-top: -2em;
  margin-bottom: -1.5em;
  line-height: 0;
}

#main {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------------------
   22. Groepen Cards + Docs Cards
   ------------------------------------------------------------------------- */

.groepen-grid .col {
  display: flex;
}

.groepen-grid .groep-card {
  border: 1px solid var(--color-one);
  margin-top: 1em;
  margin-bottom: 1em;
  padding: 1.5em;
  width: 100%; /* Equal height columns, width because .flex-row style */
}

.groep-card-header {
  display: flex;
  align-items: center;
  margin: -1.5em -1.5em 1.5em -1.5em;
  border-bottom: 1px solid var(--color-one);
  background-color: var(--color-four);
}

.groep-card .groep-image {
  min-height: 120px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-right: 1em;
  background-color: var(--color-two);
}

.groep-subtitle {
  align-self: center;
  font-family: var(--font-body);
  font-size: 1em;
}

.groep-entry-content {
  padding-top: 1em;
}

/* Docs Cards extras */
.taxonomy-docs .groep-card-header {
  margin-bottom: -1.5em;
}
a.groep-card.taxonomy-docs {
  transition: filter 0.3s ease-in-out;
}
a:hover.groep-card.taxonomy-docs {
  filter: brightness(0.8);
  background-color: var(--color-three);
  transition: filter 0.3s ease-in-out;
}

/* -------------------------------------------------------------------------
   22b. Events Cards
   ------------------------------------------------------------------------- */

.events-highlight-list {
  margin-top: 1.5em;
  margin-bottom: 2em;
}

.events-home-highlight {
  padding-top: 7em;
  padding-bottom: 7em;
}

.events-home-highlight > h3 {
  margin-bottom: 0.8em;
}

.event-highlight-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5em;
  border: 1px solid var(--color-one);
  margin-bottom: 1.5em;
}

.event-highlight-card__image {
  width: 500px;
  flex: 0 0 500px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-one-dark);
  text-decoration: none;
}

.event-highlight-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.event-highlight-card__image:hover img,
.event-highlight-card__image:focus img {
  opacity: 0.2;
}

.event-highlight-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  padding-right: 0.5em;
}

.events-grid .col {
  display: flex;
}

.event-card {
  width: 100%;
  border: 1px solid var(--color-one);
  margin-top: 1em;
  margin-bottom: 1em;
  padding: 1.5em;
}

.event-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 1em;
  background-color: var(--color-one-dark);
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.event-card__image:hover img,
.event-card__image:focus img {
  opacity: 0.2;
}

.event-date {
  margin-bottom: 0.5em;
  font-size: 1.1em;
}

.event-title {
  margin-bottom: 0.6em;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.event-highlight-card .event-title {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.event-title a {
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.event-title--two a,
.event-title--three a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-title--two a {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.event-title--three a {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.event-summary p:last-child {
  margin-bottom: 0.5em;
}

.event-summary {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.event-button {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  margin-top: 0.75em;
  margin-bottom: 0;
  background-color: var(--color-two);
  color: var(--color-one);
  border-color: var(--color-two);
  text-decoration: none;
}

.event-button:hover,
.event-button:focus {
  background-color: var(--color-four);
  color: var(--color-one);
  border-color: var(--color-one);
}

.events-grid--upcoming .col {
  display: block;
}

.events-grid--upcoming .event-card {
  display: block;
}

.events-grid--past .event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--color-two);
  margin-top: 0;
  margin-bottom: 0;
}

.events-grid--past {
  margin-bottom: -1.5em;
}

.events-grid--past .col {
  padding-bottom: 3em;
}

.events-grid--past .event-button {
  background-color: var(--color-one);
  color: var(--color-four);
  border-color: var(--color-one);
}

.events-grid--past .event-button {
  margin-top: auto;
}

.events-grid--past .event-button:hover,
.events-grid--past .event-button:focus {
  background-color: var(--color-four);
  color: var(--color-one);
  border-color: var(--color-one);
}

.events-grid--past .event-title a:hover,
.events-grid--past .event-title a:focus {
  color: var(--color-four);
}

.archive-events {
  padding-top: 2.5em;
  padding-bottom: 3em;
  background-color: var(--color-one);
  color: var(--color-four);
}

body.post-type-archive-events,
body.post-type-archive-events #main {
  background-color: var(--color-one);
}

.archive-events__header {
  margin-top: 5em;
  margin-bottom: 5em;
  text-align: center;
}

.archive-events__header h1 {
  color: var(--color-two);
}

.events-past-more {
  text-align: center;
}

.events-past-more a.event-button {
  align-self: center;
  margin-top: 3em;
  color: var(--color-four);
  background-color: var(--color-one);
  border: 1px solid var(--color-four);
}
.events-past-more a.event-button:hover {
  color: var(--color-one);
  background-color: var(--color-four);
}

.events-pagination {
  margin-top: 3em;
  margin-bottom: 2em;
}

.events-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.events-pagination a,
.events-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5em;
  min-height: 2.5em;
  padding: 0.35em 0.75em;
  border: 1px solid var(--color-two);
  color: var(--color-two);
  text-decoration: none;
}

.events-pagination .current {
  background-color: var(--color-four);
  color: var(--color-four);
  border-color: var(--color-four);
}

.events-pagination .current,
.events-pagination .current:hover,
.events-pagination .current:focus {
  color: var(--color-one);
}

@media (max-width: 900px) {
  .event-highlight-card {
    gap: 1rem;
  }

  .event-highlight-card__image {
    width: min(44vw, 420px);
    flex-basis: min(44vw, 420px);
  }
}

@media (max-width: 768px) {
  .event-highlight-card .event-title {
    font-size: 2.25em;
    margin-bottom: 0.7em;
  }

  .event-highlight-card {
    flex-direction: column;
  }

  .event-highlight-card__image {
    width: 100%;
    flex: 0 0 auto;
  }

  .event-highlight-card__content {
    max-width: 100%;
  }
}

/* -------------------------------------------------------------------------
   22c. Single Event
   ------------------------------------------------------------------------- */

.single-event {
  padding-top: 2.5em;
  padding-bottom: 3em;
  max-width: var(--width-normal);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.single-event .event-single-image {
  margin-bottom: 1.5em;
}

.single-event .event-single-image img {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  object-position: center;
}

.single-event .event-date {
  margin-bottom: 0.5em;
}

.single-event .event-title {
  margin-bottom: 0.6em;
}

.single-event .event-summary {
  max-width: var(--width-narrow);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.2em;
}

.single-event-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 1.5em;
}

.single-event-meta-row p {
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   23. Home block Club + Team
   ------------------------------------------------------------------------- */

.flex-row.home-block a {
  margin-top: 6em;
  margin-bottom: 6em;
  text-decoration: none;
}

.home-card img,
.home-card .card-info,
.home-card .button {
  border: 1px solid var(--color-one);
}
.card-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  border-top: 0;
}
.card-info-title,
.card-info-descr {
  width: 50%;
  padding: 1.5em 0.25em;
  text-align: center;
}
.card-info-title {
  background-color: var(--color-one);
  color: var(--color-two);
}
.card-info-descr {
  background-color: var(--color-four);
  color: var(--color-one);
}
.home-card .button {
  width: 50%;
  padding: 1em 0;
  border-top: 0;
  background-color: var(--color-two);
  color: var(--color-one);
  text-align: center;
}

a:hover .home-card img {
  filter: brightness(0.6);
  transition: filter 0.3s ease;
}
a:hover .home-card .card-info-title,
a:hover .home-card .card-info-descr,
a:hover .home-card .button {
  background-color: var(--color-one);
  color: var(--color-two);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

@media (max-width: 900px) {
  .flex-row.home-block .col-2 {
    width: 100%;
  }
}
