.community-section {
  margin-top: 40px;
}

.community-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 30px;
  align-items: start;
}

.community-section__left,
.community-section__right {
  display: grid;
  gap: 28px;
}

.events-panel,
.club-panel,
.news-panel,
.facebook-panel,
.calendar-widget {
  border-radius: 28px;
  overflow: hidden;
}

.events-panel,
.news-panel,
.facebook-panel,
.calendar-widget {
  padding: 28px;
  background: rgba(244, 241, 234, 0.96);
  border: 1px solid rgba(36, 53, 29, 0.08);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.events-panel__heading,
.facebook-panel__header,
.calendar-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.events-panel__heading {
  margin-bottom: 20px;
}

.events-panel__heading h2,
.facebook-panel__header h2,
.calendar-widget__title,
.news-panel__title {
  margin: 0;
  color: #24351d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.95;
}

.events-panel__heading h2 {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
}

.facebook-panel__header h2,
.calendar-widget__title {
  font-size: clamp(2rem, 2.4vw, 2.5rem);
}

.news-panel__title {
  margin-bottom: 18px;
  font-size: clamp(2rem, 2.6vw, 2.6rem);
}

.events-panel__calendar-image {
  width: 68px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.92;
}

.events-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(36, 53, 29, 0.08);
  text-decoration: none;
  color: #24351d;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-chip:hover,
.event-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(48, 71, 35, 0.2);
}

.event-chip__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.event-chip__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: #304723;
}

.event-chip__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-chip__label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

.club-panel {
  position: relative;
  min-height: 430px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.club-panel__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: 28px;
}

.club-panel__footer-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.club-panel__identity h3 {
  margin: 0 0 8px;
  color: #f9f6ef;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 0.94;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.club-panel__identity p {
  margin: 0;
  color: rgba(249, 246, 239, 0.94);
  font-size: 1rem;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.club-panel__socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.club-panel__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(244, 241, 234, 0.92);
  color: #24351d;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.club-panel__socials a:hover,
.club-panel__socials a:focus-visible {
  transform: translateY(-2px);
  opacity: 0.92;
}

.club-panel__socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.club-panel__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.club-panel__meta-stack {
  display: grid;
  gap: 10px;
  align-items: start;
}

.club-panel__address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f9f6ef;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.club-panel__address:hover,
.club-panel__address:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

.club-panel__address-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #f9f6ef;
  flex-shrink: 0;
}

.club-panel__address-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.club-panel__button {
  flex-shrink: 0;
}

.club-weather-widget {
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(244, 241, 234, 0.9);
  border: 1px solid rgba(36, 53, 29, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.club-weather-widget__label {
  margin: 0;
  color: #304723;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.club-weather-widget__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #24351d;
  font-size: 0.94rem;
  line-height: 1.2;
}

.news-panel__grid {
  display: grid;
  gap: 16px;
}

.news-mini-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(36, 53, 29, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

.news-mini-card__media {
  display: block;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.news-mini-card__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 110px;
  object-fit: cover;
}

.news-mini-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.news-mini-card__body h3 {
  margin: 0;
  color: #24351d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.news-mini-card__button,
.facebook-panel__link,
.calendar-item__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: #24351d;
  color: #f4f1ea;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.news-mini-card__button:hover,
.news-mini-card__button:focus-visible,
.facebook-panel__link:hover,
.facebook-panel__link:focus-visible,
.calendar-item__link:hover,
.calendar-item__link:focus-visible {
  transform: translateY(-1px);
  opacity: 0.92;
}

.news-mini-card__button--accent {
  background: #5f7751;
}

.homepage-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.homepage-secondary-grid > * {
  min-width: 0;
}

.facebook-panel__frame-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 53, 29, 0.08);
}

.facebook-panel__frame {
  display: block;
  width: 100%;
  height: 380px;
  min-height: 380px;
  border: 0;
  background: transparent;
}

.facebook-panel__empty,
.calendar-widget__empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #24351d;
  border: 1px solid rgba(36, 53, 29, 0.08);
}

.calendar-widget {
  display: flex;
  flex-direction: column;
  height: 560px;
  min-height: 560px;
  max-height: 560px;
}

.calendar-widget__header {
  flex: 0 0 auto;
  margin-bottom: 18px;
}

.calendar-widget__scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 8px;
  display: block;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 53, 29, 0.35) rgba(36, 53, 29, 0.08);
}

.calendar-widget__scroll > * + * {
  margin-top: 12px;
}

.calendar-widget__scroll::-webkit-scrollbar {
  width: 10px;
}

.calendar-widget__scroll::-webkit-scrollbar-track {
  background: rgba(36, 53, 29, 0.08);
  border-radius: 999px;
}

.calendar-widget__scroll::-webkit-scrollbar-thumb {
  background: rgba(36, 53, 29, 0.35);
  border-radius: 999px;
}

.calendar-widget__scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(36, 53, 29, 0.5);
}

.calendar-item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 53, 29, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.calendar-item[open] {
  border-color: rgba(48, 71, 35, 0.18);
}

.calendar-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.calendar-item__summary::-webkit-details-marker {
  display: none;
}

.calendar-item__meta {
  display: grid;
  gap: 6px;
}

.calendar-item__meta h3 {
  margin: 0;
  color: #24351d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-item__meta p {
  margin: 0;
  color: #24351d;
  font-size: 0.94rem;
  line-height: 1.35;
}

.calendar-item__location {
  opacity: 0.9;
}

.calendar-item__category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.2rem 0.72rem;
  border-radius: 999px;
  background: rgba(36, 53, 29, 0.08);
  color: #24351d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.calendar-item__caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-right: 1.5px solid #24351d;
  border-bottom: 1.5px solid #24351d;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}

.calendar-item[open] .calendar-item__caret {
  transform: rotate(225deg);
}

.calendar-item__content {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.calendar-item__description {
  margin: 0;
  color: #24351d;
  font-size: 0.94rem;
  line-height: 1.5;
}

.calendar-item__flyer {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(36, 53, 29, 0.08);
  background: rgba(255, 255, 255, 0.7);
  cursor: zoom-in;
  text-decoration: none;
}

.calendar-item__flyer img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.calendar-item__flyer:hover img,
.calendar-item__flyer:focus-visible img {
  transform: scale(1.02);
}

.calendar-item__flyer-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(36, 53, 29, 0.84);
  color: #f4f1ea;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.calendar-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.calendar-lightbox.is-open {
  display: block;
}

.calendar-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: rgba(10, 12, 10, 0.76);
  cursor: pointer;
}

.calendar-lightbox__dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 980px);
  max-height: 90vh;
  margin: 4vh auto 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(244, 241, 234, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.calendar-lightbox__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 53, 29, 0.1);
  color: #24351d;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.calendar-lightbox__image {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
}

.calendar-lightbox__title {
  margin: 12px 0 0;
  color: #24351d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
}

body.calendar-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .community-section__grid,
  .homepage-secondary-grid {
    grid-template-columns: 1fr;
  }

  .club-panel__content {
    min-height: 400px;
  }

  .calendar-widget {
    height: 520px;
    min-height: 520px;
    max-height: 520px;
  }
}

@media (max-width: 760px) {
  .events-panel,
  .news-panel,
  .facebook-panel,
  .calendar-widget,
  .club-panel__content {
    padding: 22px;
  }

  .events-panel__grid {
    grid-template-columns: 1fr;
  }

  .club-panel__footer-band,
  .club-panel__bottom,
  .facebook-panel__header,
  .calendar-widget__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-mini-card {
    grid-template-columns: 1fr;
  }

  .news-mini-card__media {
    min-height: 180px;
  }

  .facebook-panel__frame {
    height: 320px;
    min-height: 320px;
  }

  .calendar-widget {
    height: 420px;
    min-height: 420px;
    max-height: 420px;
  }

  .calendar-lightbox__dialog {
    width: min(94vw, 760px);
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .community-section {
    margin-top: 24px;
  }

  .events-panel,
  .news-panel,
  .facebook-panel,
  .calendar-widget,
  .club-panel__content {
    padding: 18px;
  }

  .club-panel__identity h3 {
    font-size: 2rem;
  }

  .club-weather-widget__stats {
    gap: 8px;
    font-size: 0.9rem;
  }

  .calendar-item__summary,
  .calendar-item__content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .calendar-widget {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
  }

  .calendar-lightbox__dialog {
    width: min(96vw, 640px);
    margin-top: 2vh;
  }

  .calendar-lightbox__title {
    font-size: 1.25rem;
  }
}