/* Layout variables */
:root {
  --layout-padding: clamp(1rem, calc(0.71rem + 1.43vw), 2rem);
  --layout-width: 105rem;
  --focus-color: #fbbf24; /* Yellow-400 for high contrast */
  --focus-outline-width: 3px;
}

/* ========================================
   WCAG 2.2 Focus Management & Skip Link
   ======================================== */

/* Skip to main content link - WCAG 2.4.1 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--focus-color);
  color: #000;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid #000;
  outline-offset: 2px;
}

/* Global focus styles - WCAG 2.4.7 & 2.4.11 */
*:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

/* Remove default browser outline but keep our custom one */
*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

/* Ensure links have visible focus */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

/* Prevent sticky header from covering focused elements */
.site-header {
  position: relative;
  z-index: 100;
}

/* Ensure focused elements scroll into view properly with offset for sticky headers */
:target {
  scroll-margin-top: 120px; /* Adjust based on header height */
}

*:focus {
  scroll-margin-top: 120px; /* Adjust based on header height */
}

/* High contrast focus for better visibility */
@media (prefers-contrast: high) {
  *:focus,
  *:focus-visible {
    outline-width: 4px;
    outline-color: #000;
  }
}

/* Enhanced focus for keyboard navigation */
.js-focus-visible :focus:not(.focus-visible) {
  outline: none;
}

.js-focus-visible .focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

.page-wrapper {
  max-width: 1616px !important;
  padding: 16px;
  width: 100%;
  max-width: var(--layout-width);
  padding-left: var(--layout-padding, 0.5rem);
  padding-right: var(--layout-padding, 0.5rem);
}

/* Allow Tailwind to override padding for specific elements */
.page-wrapper[class*="px-"],
.page-wrapper[class*="lg:px-"] {
  padding-left: inherit;
  padding-right: inherit;
}

.module-content h3 {
  font-size: clamp(1.5rem, calc(1.21rem + 1.43vw), 2.5rem);
  font-weight: 400;
}

.text-module-content {
  max-width: calc(672px + var(--layout-padding) * 2);
}

.text-module-content p {
  line-height: 200%;
}

.text-module-content h3 {
  padding-bottom: 20px;
}

.text-module-content a {
  text-decoration: underline;
}

/* ========================================
   Blockquote Styling
   ======================================== */
.text-module-content blockquote,
.entry-content blockquote {
  font-size: clamp(1.25rem, calc(1.04rem + 1.07vw), 2rem);
  margin-bottom: clamp(2rem, calc(1.43rem + 2.86vw), 4rem);
  margin-top: clamp(3rem, calc(2.14rem + 4.29vw), 6rem);
  position: relative;
  text-align: center;
  font-family: "BodoniStdPoster", serif;
}

.text-module-content blockquote p,
.entry-content blockquote p {
  line-height: 1.3 !important;
  padding-top: 30px;
}

.text-module-content blockquote::before,
.entry-content blockquote::before {
  color: #e87454;
  content: "“";
  font-family: var(--poster-font-family);
  font-size: clamp(2rem, calc(1.14rem + 4.29vw), 5rem);
  left: 50%;
  position: absolute;
  top: -2rem;
  transform: translateX(-50%);
  z-index: -1;
  font-family: "BodoniStdPoster", serif;
}

h1.title {
  font-size: clamp(2rem, calc(1.43rem + 2.86vw), 4rem);
  /* margin-top: clamp(1.5rem, calc(0.93rem + 2.86vw), 3.5rem); */
  line-height: 100%;
  font-weight: 400;
  text-align: center;
}

.posts-section-title {
  font-size: clamp(2rem, calc(1.57rem + 2.14vw), 3.5rem);
  font-weight: 400;
  text-align: center;
  max-width: 672px;
  margin: 0 auto 3rem;
}

.module-wrapper {
  margin-top: clamp(3rem, calc(2.14rem + 4.29vw), 6rem);
}

.modules-container {
  margin-bottom: clamp(2rem, calc(1.43rem + 2.86vw), 4rem);
  margin-top: clamp(2rem, calc(1.43rem + 2.86vw), 4rem);
  max-width: none; /* Override any inherited max-width */
}

.entry-content {
  line-height: 200%;
  font-size: 1.125rem;
}

.entry-content::after {
  background-color: currentColor;
  content: "";
  display: block;
  height: 4px;
  margin: 1.75rem auto 0;
  opacity: 0.15;
  width: 57px;
}

.content-excerpt {
  font-size: clamp(1.13rem, calc(1.02rem + 0.54vw), 1.4rem);
  margin-top: 16px;
  line-height: 1.5;
  margin: 16px auto 32px auto;
  max-width: 730px;
  text-align: center;
}

.hero-image img {
  margin-bottom: clamp(2rem, calc(1.57rem + 2.14vw), 3.5rem);
}

.custom-modules-area {
  max-width: 730px;
  margin: 0 auto;
}

.custom-modules-area .modularity-mod-text h3 {
  font-weight: 400;
  font-size: clamp(1.5rem, calc(1.21rem + 1.43vw), 2.5rem);
  margin-top: clamp(2rem, calc(1.14rem + 4.29vw), 5rem);
}

/* Custom Posts Component */
.custom-posts-component {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.posts-container {
  display: grid;
  gap: 2rem;
}

/* Grid Layout - default 3 columns */
.posts-style-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 2 columns */
.posts-columns-2.posts-style-grid {
  grid-template-columns: repeat(2, 1fr);
}

/* 4 columns */
.posts-columns-4.posts-style-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* List Layout */
.posts-style-list {
  grid-template-columns: 1fr;
}

/* Post Item */
.post-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Post Thumbnail */
.post-thumbnail {
  overflow: hidden;
  height: 200px;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Posts Template - Post Cards */
.posts-grid {
  width: 100%;
}

.posts-grid .post-image {
  height: 280px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Auto height for grid post images on small screens (up to sm breakpoint) */
@media (max-width: 640px) {
  .posts-grid .post-image {
    height: auto;
  }

  .post-image-placeholder {
    height: auto;
    min-height: 150px; /* Minimal height for empty placeholder */
  }
}

/* Aspect ratio for grid post images on md+ screens */
@media (min-width: 768px) {
  .posts-grid .post-image {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .post-image-placeholder {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

.posts-grid .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center center;
}

.post-card .post-content .post-excerpt {
  margin-bottom: 0;
}

.post-image-placeholder {
  height: 280px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* Single post layout - horizontal flex */
.posts-count-1 .post-card {
  display: flex;
  align-items: stretch;
}

.posts-count-1 .post-image,
.posts-count-1 .post-image-placeholder {
  flex: 0 0 50%;
  height: auto;
  min-height: 320px;
}

/* No min-height on small screens (up to sm breakpoint) */
@media (max-width: 640px) {
  .posts-count-1 .post-image,
  .posts-count-1 .post-image-placeholder {
    min-height: unset;
  }
}

/* Lower ratio for single post on md+ screens */
@media (min-width: 768px) {
  .posts-count-1 .post-image,
  .posts-count-1 .post-image-placeholder {
    min-height: 180px;
  }
}

.posts-count-1 .post-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  /* Keep 2 columns for 2 posts on mobile, 1 column for more than 2 posts */
  .posts-grid:not(.posts-count-2),
  .posts-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* For 2 posts, keep them side by side but with smaller gap */
  .posts-count-2 {
    gap: 1rem !important;
  }
}

@media (max-width: 768px) {
  /* Single post - stack vertically on mobile */
  .posts-count-1 .post-card {
    flex-direction: column;
  }

  .posts-count-1 .post-image,
  .posts-count-1 .post-image-placeholder {
    flex: none;
    height: 280px;
  }

  .posts-count-1 .post-content {
    padding: 1.5rem;
  }
}

/* Override height for single post on small screens (up to sm breakpoint) */
@media (max-width: 640px) {
  .posts-count-1 .post-image,
  .posts-count-1 .post-image-placeholder {
    height: auto !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .posts-grid[style*="1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (min-width: 640px) {
  .hero-section {
    padding-left: var(--layout-padding);
    padding-right: var(--layout-padding);
  }

  /* Footer Social Menu */
  .footer-social-menu {
    /* display: flex; */
    gap: 1rem;
  }
}

/* 2xl screens: 2-column grid posts get horizontal flex layout like single posts */
@media (min-width: 1536px) {
  .posts-count-2 .post-card {
    display: flex;
    align-items: stretch;
  }

  .posts-count-2 .post-image,
  .posts-count-2 .post-image-placeholder {
    flex: 0 0 50%;
    height: 100%;
  }

  .posts-count-2 .post-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Post Content */
.post-content {
  padding: 1.5rem;
}

.post-content .post-title {
  font-size: clamp(2rem, calc(1.02rem + 0.54vw), 1.4rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 100%;
}

.related-locations-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(2rem, calc(1.57rem + 2.14vw), 3.5rem);
}

.post-title a {
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Post Meta */
.post-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.post-date,
.post-author {
  font-weight: 500;
}

/* Post Excerpt */
.post-excerpt {
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* No Posts Message */
.no-posts-message {
  text-align: center;
  padding: 2rem;
  font-style: italic;
}

/* Child Posts Specific Styles */
.child-posts-grid {
  padding-top: 1.5rem;
  margin-top: 1rem;
}

.child-post-title {
  position: relative;
}

.child-post-image {
  position: relative;
}

/* Child posts layout variants */
.child-posts-grid.posts-count-1 .child-post-card {
  display: flex;
  align-items: stretch;
}

.child-posts-grid.posts-count-1 .child-post-image {
  flex: 0 0 40%;
}

.child-posts-grid.posts-count-1 .child-post-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive for child posts */
@media (max-width: 768px) {
  .child-posts-grid.posts-count-1 .child-post-card {
    flex-direction: column;
  }

  .child-posts-grid.posts-count-1 .child-post-image {
    flex: none;
  }

  .child-posts-grid.posts-count-1 .child-post-content {
    padding: 1.5rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .posts-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .post-content {
    padding: 1rem;
  }

  .post-thumbnail {
    height: 180px;
  }
}

/* Video Module Styles */
.video-module {
  margin: 2rem 0;
}

.video-module .module-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.video-module .module-title {
  font-size: clamp(2rem, calc(1.57rem + 2.14vw), 3.5rem);
  font-weight: 400;
  text-align: center;
  max-width: 672px;
  margin: 0 auto 3rem;
  line-height: 100%;
}

.video-module .module-excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.video-content {
  width: 100%;
  margin: 0 auto;
}

.video-wrapper {
  position: relative !important;
  max-width: 100% !important;
  height: 0 !important;
  padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
  overflow: hidden !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  z-index: 1 !important;
}

.video-iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.video-module-empty,
.video-error {
  text-align: center;
  padding: 3rem 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
}

.video-module-empty h3 {
  margin-bottom: 0.5rem;
  color: #333;
}

.video-error p {
  font-family: monospace;
  background: #fff;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #ddd;
  margin-top: 1rem;
  word-break: break-all;
}

/* Text Module Styles */
.text-module {
  margin: 2rem 0;
}

.text-module .module-header {
  margin-bottom: 1.5rem;
}

.text-module .module-excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

.text-module .text-content {
  line-height: 1.8;
  font-size: 16px;
}

.text-module .text-content h1,
.text-module .text-content h2,
.text-module .text-content h3,
.text-module .text-content h4,
.text-module .text-content h5,
.text-module .text-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.text-module .text-content p {
  margin-bottom: 1.5rem;
}

.text-module .text-content ul,
.text-module .text-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.text-module .text-content li {
  margin-bottom: 0.5rem;
}

.text-module-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
}

/* Image Module Styles */
.image-module {
  margin: 2rem 0;
  max-width: 100%;
}

/* Newsletter Module Styles */
.newsletter-module-container {
  margin: 2rem 0;
  padding: 1.875rem 1rem 2.375rem;
}

.newsletter-module-title {
  font-size: clamp(2rem, calc(1.71rem + 1.43vw), 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
  color: #333;
}

.newsletter-module-excerpt {
  margin-bottom: 1.5rem;
  color: #666;
  font-style: italic;
}

.newsletter-module-content {
  line-height: 1.6;
}

.newsletter-text {
  margin-bottom: 1.5rem;
  color: #333;
}

.newsletter-link {
  margin-top: 1rem;
}

.newsletter-link-button {
  display: inline-block;
  background: #007cba;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.newsletter-link-button:hover {
  background: #005a8a;
  color: white;
  text-decoration: none;
}

.newsletter-module-empty {
  margin: 2rem 0;
}

/* Iframe Module Styles */
.iframe-module-container {
  margin: 2rem 0;
  padding: 1rem;
}

.iframe-module-title {
  font-size: clamp(1.5rem, calc(1.21rem + 1.43vw), 2.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.iframe-module-excerpt {
  margin-bottom: 1.5rem;
  color: #666;
  font-style: italic;
}

.iframe-module-content {
  position: relative;
}

.iframe-module-content iframe {
  display: block;
  width: 100%;
  border: none;
}

.iframe-module-empty {
  margin: 2rem 0;
}

/* HTML Module Styles */
.html-module-container {
  margin: 2rem 0;
  padding: 1rem;
}

.html-module-title {
  font-size: clamp(1.5rem, calc(1.21rem + 1.43vw), 2.5rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.html-module-excerpt {
  margin-bottom: 1.5rem;
  color: #666;
  font-style: italic;
}

.html-module-content {
  line-height: 1.6;
}

.html-module-content h1,
.html-module-content h2,
.html-module-content h3,
.html-module-content h4,
.html-module-content h5,
.html-module-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.html-module-content p {
  margin-bottom: 1rem;
}

.html-module-content ul,
.html-module-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.html-module-content img {
  max-width: 100%;
  height: auto;
}

.html-module-empty {
  padding: 2rem;
  text-align: center;
  background: #f9f9f9;
  border-radius: 8px;
}

/* HTML Module Width Classes */
.html-width-25 {
  width: 25% !important;
  max-width: 25% !important;
  flex: 0 0 25% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.html-width-33 {
  width: 33.333% !important;
  max-width: 33.333% !important;
  flex: 0 0 33.333% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.html-width-50 {
  width: 50% !important;
  max-width: 50% !important;
  flex: 0 0 50% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.html-width-75 {
  width: 75% !important;
  max-width: 75% !important;
  flex: 0 0 75% !important;
  display: block !important;
  box-sizing: border-box !important;
}

.html-width-100 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Responsive behavior for HTML modules */
@media (max-width: 768px) {
  .html-width-25,
  .html-width-33,
  .html-width-50,
  .html-width-75 {
    max-width: 100%;
  }
}

/* Image Module Width Options */
.image-module.image-width-25 {
  max-width: 25%;
  margin-left: auto;
  margin-right: auto;
}

.image-module.image-width-33 {
  max-width: 33.333%;
  margin-left: auto;
  margin-right: auto;
}

.image-module.image-width-50 {
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
}

.image-module.image-width-75 {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.image-module.image-width-100 {
  max-width: 100%;
}

/* Responsive adjustments for image module widths */
@media (max-width: 768px) {
  .image-module.image-width-25,
  .image-module.image-width-33,
  .image-module.image-width-50,
  .image-module.image-width-75 {
    max-width: 100%;
  }
}

.image-module .module-header {
  margin-bottom: 1.5rem;
}

.image-module .module-excerpt {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

.image-content {
  text-align: center;
}

.image-wrapper {
  display: inline-block;
  max-width: 100%;
}

.image-link {
  display: block;
  text-decoration: none;
}

.module-image {
  max-width: 100%;
  height: auto;
}

.image-caption {
  font-size: 14px;
  color: #666;
  max-width: 600px;
  font-family: "Montserrat", sans-serif;
}

.image-module-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
}

/* Responsive for text and image modules */
@media (max-width: 768px) {
  .text-module .text-content {
    font-size: 1rem;
  }

  .text-module .module-excerpt,
  .image-module .module-excerpt {
    font-size: 1rem;
  }

  .text-module-empty,
  .image-module-empty {
    padding: 2rem 1rem;
  }
}

/* Featured Image Hero Styles */
.hero-section {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1616px;
  margin: 0 auto 2rem;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, calc(2rem + 2.5vw), 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-excerpt {
  font-size: clamp(1.125rem, calc(1rem + 0.5vw), 1.25rem);
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive hero adjustments */
@media (max-width: 768px) {
  .hero-content {
    padding: 1rem;
  }

  .hero-title {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 250px;
  }
}

/* Hero content below image styles */
.hero-content-below {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content-below .hero-title {
  font-size: clamp(2.5rem, calc(2rem + 2.5vw), 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: none;
  color: #333;
}

.hero-content-below .hero-excerpt {
  font-size: clamp(1.125rem, calc(1rem + 0.5vw), 1.25rem);
  line-height: 1.6;
  opacity: 1;
  text-shadow: none;
  color: #666;
}

/* Responsive adjustments for content below */
@media (max-width: 768px) {
  .hero-content-below {
    padding: 1.5rem 1rem;
  }

  .hero-content-below .hero-title {
    margin-bottom: 0.5rem;
  }
}

/* Notice Module Styles */
.notice-module {
  margin: 2rem 0;
}

.notice-module-title {
  color: #333;
  font-size: clamp(1rem, calc(0.95rem + 0.24vw), 1.13rem);
  font-weight: 600;
  color: inherit;
  font-family: inherit;
}

.notice-module-excerpt {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.6;
}

.notice {
  margin: 1rem 0;
  background-color: #fef8e3;
  border: 1px solid #fbecb5;
}

.notice-container {
  padding: 1.5rem;
}

.notice-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.notice-icon {
  flex-shrink: 0;
  font-size: 14px;
  color: #ecc449;
  font-size: 14px;
}

.notice-text-wrapper {
  flex: 1;
}

.notice-text {
  font-size: 1rem;
  line-height: 1.6;
  color: inherit;
  font-family: inherit;
}

.notice-text p:last-child {
  margin-bottom: 0;
}

.notice-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Notice Types - Different colors for each type */

/* Info - Light Blue */
.notice-info {
  background-color: #e7f3ff;
  border: 1px solid #b3d9ff;
}

.notice-info .notice-icon {
  color: #0066cc;
}

/* Success - Green */
.notice-success {
  background-color: #d4f4dd;
  border: 1px solid #9cd9a7;
}

.notice-success .notice-icon {
  color: #28a745;
}

/* Warning - Yellow */
.notice-warning {
  background-color: #fef8e3;
  border: 1px solid #fbecb5;
}

.notice-warning .notice-icon {
  color: #ecc449;
}

/* Danger - Red */
.notice-danger {
  background-color: #f8d7da;
  border: 1px solid #f1b2b5;
}

.notice-danger .notice-icon {
  color: #dc3545;
}

/* Notice Module Responsive Width Classes */
@media (max-width: 767px) {
  .notice-module {
    width: 100% !important;
  }

  .notice-content {
    flex-wrap: wrap;
  }
}

.location-info-section {
  border-bottom: 1px solid rgba(34, 34, 42, 0.125);
}

@media (min-width: 768px) {
  .notice-module.width-3 {
    width: 25%;
  }
  .notice-module.width-6 {
    width: 50%;
  }
  .notice-module.width-9 {
    width: 75%;
  }
  .notice-module.width-12 {
    width: 100%;
  }
  .location-info-section {
    width: 90%;
  }
}

.entry-content h3 {
  font-size: clamp(1.5rem, calc(1.21rem + 1.43vw), 2.5rem);
  font-weight: 400;
  line-height: 120%;
  margin-top: clamp(2rem, calc(1.14rem + 4.29vw), 5rem);
}

.entry-content p {
  font-size: clamp(1rem, calc(0.96rem + 0.18vw), 1.13rem);
  margin-top: clamp(1rem, calc(0.86rem + 0.71vw), 1.5rem);
}

/* Hide Leaflet attribution */
.leaflet-control-attribution {
  display: none !important;
}

.leaflet-control-attribution .leaflet-control {
  display: none !important;
}

/* Hide Leaflet grid lines and loading tiles */
.leaflet-tile-pane .leaflet-layer {
  border: none !important;
}

.leaflet-tile {
  border: none !important;
  outline: none !important;
}

.leaflet-tile-container {
  border: none !important;
}

.leaflet-layer .leaflet-tile-loaded {
  border: none !important;
}

/* Hide loading placeholder tiles */
.leaflet-tile-pane
  img[src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="] {
  display: none !important;
}

/* Google Maps Link Button */
.google-maps-link {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: white;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #333 !important;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  z-index: 1000;
}

.google-maps-link .map-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(95%) contrast(85%);
}

.google-maps-link:hover .map-icon {
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(0%) contrast(100%);
}

.footer {
  margin-top: clamp(3rem, calc(2.14rem + 4.29vw), 6rem);
}

.copy {
  font-size: 0.75rem;
}

/* Footer Menu Styles */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu li:last-child {
  margin-bottom: 0;
}

.footer-menu .footer-column-2 {
  font-size: 0.875rem; /* text-sm */
}

/* Footer Legal Menu (horizontal) */
.footer-legal-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}

.footer-legal-menu li {
  margin: 0;
}

@media (min-width: 1024px) {
  .footer-legal-menu {
    justify-content: flex-start;
  }

  .footer-social-menu {
    display: block;
    gap: 1rem;
  }
}

.footer-social-menu li {
  margin-bottom: 0;
}

.footer-social-menu a {
  display: inline-block;
  padding: 0.5rem;
}

/* 2xl screens: 2-column grid posts get horizontal flex layout like single posts */
@media (min-width: 1650px) {
  .page-wrapper,
  .hero-section {
    padding: 0;
    margin: 0 auto;
  }
}

.z-100 {
  z-index: 100 !important;
}

/* Menu Shortcuts Component */
.simple-menu-shortcuts {
  position: relative;
  margin: 2rem auto;
}

.simple-shortcuts-wrapper {
  background: white;
  padding: 2rem;
  border-radius: 12px;
}

.simple-shortcuts-content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.simple-shortcuts-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.simple-shortcuts-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

.simple-shortcuts-item {
  margin: 0;
  padding: 0;
}

.simple-shortcuts-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.simple-shortcuts-link:hover {
  text-decoration: none;
}

.simple-shortcuts-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #004f68;
  border-radius: 50%;
}

.simple-shortcuts-icon svg {
  width: 20px;
  height: 20px;
  fill: white !important;
}

/* Responsive rozmiary ikon */
@media screen and (min-width: 768px) {
  .simple-shortcuts-icon {
    width: 50px;
    height: 50px;
  }

  .simple-shortcuts-icon svg {
    width: 25px;
    height: 25px;
  }
}

@media screen and (min-width: 1024px) {
  .simple-shortcuts-icon {
    width: 60px;
    height: 60px;
  }

  .simple-shortcuts-icon svg {
    width: 30px;
    height: 30px;
  }
}

.simple-shortcuts-icon .icon-fallback {
  font-size: 40px;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}

.simple-shortcuts-label {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  text-align: center;
  line-height: 1.2;
}

.simple-shortcuts-label:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive na mobile */
@media screen and (max-width: 640px) {
  .simple-shortcuts-list {
    gap: 1.5rem;
  }

  .simple-shortcuts-icon svg {
    width: 20px;
    height: 20px;
  }

  .simple-shortcuts-label {
    font-size: 14px;
  }
}

.page-content .description:after {
  background-color: currentColor;
  content: "";
  display: block;
  height: 4px;
  margin: 1.75rem auto 0;
  opacity: 0.15;
  width: 57px;
}

/* ========================================
   Enhanced Focus Styles for Interactive Elements
   ======================================== */

/* Navigation menu items */
.header-menu a:focus,
.mobile-menu-list a:focus,
.footer-menu a:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
  background-color: rgba(251, 191, 36, 0.1);
  border-radius: 2px;
}

/* Buttons */
button:focus,
.btn:focus,
[type="button"]:focus,
[type="submit"]:focus,
[role="button"]:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

/* Mobile menu toggle */
.mobile-menu-toggle:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
  background-color: rgba(251, 191, 36, 0.1);
}

/* Form inputs */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 0;
  border-color: var(--focus-color);
}

/* Language switcher */
.language-switcher a:focus,
.language-switcher button:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

/* Search toggle */
.search-toggle:focus,
.header-search button:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
  background-color: rgba(251, 191, 36, 0.1);
}

/* Cards and clickable items */
.event-card:focus-within,
.post-card:focus-within {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

/* Ensure images don't get focus outline */
img:focus {
  outline: none;
}

/* Links that are images should still have focus */
a:focus img {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

/* Logo link focus */
.header-logo-link:focus,
.footer-logo a:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Pagination links */
.pagination a:focus,
.page-numbers:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
  background-color: rgba(251, 191, 36, 0.2);
}

/* Tabs focus */
[role="tab"]:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: -2px;
  z-index: 1;
}

/* Modal/Dialog close buttons */
[aria-label*="Close"]:focus,
[aria-label*="close"]:focus {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3);
}

/* ========================================
   Keyboard Interaction Enhancements
   ======================================== */

/* Ensure all interactive elements are keyboard accessible */
button,
a,
input,
select,
textarea,
[role="button"],
[role="tab"],
[role="option"],
[tabindex]:not([tabindex="-1"]) {
  cursor: pointer;
}

/* Visual feedback for keyboard-only users */
button:focus-visible,
a:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: 2px;
}

/* Dropdown containers - focus-within for better UX */
.header-search:focus-within,
.date-range-filter:focus-within {
  position: relative;
  z-index: 101;
}

/* Custom dropdowns keyboard accessible */
[role="listbox"] {
  max-height: 300px;
  overflow-y: auto;
}

[role="listbox"]:focus-within {
  outline: var(--focus-outline-width) solid var(--focus-color);
  outline-offset: -2px;
}

[role="option"]:focus {
  background-color: rgba(251, 191, 36, 0.2);
  outline: 2px solid var(--focus-color);
  outline-offset: -2px;
}

/* Disabled elements should not be focusable */
[disabled],
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

/* Hidden elements should not be in tab order */
/* Note: Do NOT include .hidden class here - it conflicts with Tailwind responsive utilities */
[hidden] {
  display: none !important;
}

/* aria-hidden only hides from screen readers, NOT visually */
/* Do NOT add display: none to [aria-hidden="true"] */

/* Screen reader only text for context */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Ensure sufficient click/tap target size (WCAG 2.5.5) */
button,
input[type="checkbox"],
input[type="radio"],
select {
  min-height: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Links - only apply min-height to standalone buttons/CTAs */
a.btn,
a.button,
a[role="button"] {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Exception for inline text links and menu links */
p a,
li a,
.text-link,
.header-menu a,
.footer-menu a,
.mobile-menu-list a,
nav a {
  min-height: auto;
  min-width: auto;
  display: inline;
}

.cookie-consent {
  z-index: 1000 !important;
}

.category-counter {
  background-color: #333;
}

.single-event-section p {
  padding-bottom: 15px;
}

.events-grid .error,
.events-grid .loading {
  text-align: center;
}
/**
 * Custom Cookie Consent Styling
 * Override default colors to match Falkenberg brand
 */

/* Scope to cookie consent only to not affect other elements */
.cookie-consent {
  --cookie-consent-bg: #ffffff;
  --cookie-consent-text: #000000;
  --cookie-consent-allow-button-bg: #ffcf01;
  --cookie-consent-allow-button-text: #000000;
  --cookie-consent-deny-button-bg: #e5e5e5;
  --cookie-consent-deny-button-text: #000000;
}

.cookie-consent__button--allow {
  background: #ffcf01 !important;
  color: #000000 !important;
}

.cookie-consent__button--allow:hover {
  background: #ffe111 !important;
}

.cookie-consent__button--deny {
  background: #e5e5e5 !important;
  color: #000000 !important;
}

.cookie-consent__button--deny:hover {
  background: #d5d5d5 !important;
}

.header-wrapper {
  margin-left: 190px;
}

/* Blockquote styling for description area */
.description blockquote {
  font-family: "BodoniStdPoster", serif;
  font-size: clamp(1.25rem, calc(1.04rem + 1.07vw), 2rem);
  margin-bottom: clamp(2rem, calc(1.43rem + 2.86vw), 4rem);
  margin-top: clamp(3rem, calc(2.14rem + 4.29vw), 6rem);
  position: relative;
  text-align: center;
  font-family: "BodoniStdPoster", serif;
}

.description blockquote p {
  line-height: 1.3 !important;
  padding-top: 30px;
}

.description blockquote::before {
  color: #e87454;
  content: "“";
  font-family: "BodoniStdPoster", serif;
  font-size: 80px;
  line-height: 32px;
  left: 50%;
  position: absolute;
  top: -1rem;
  transform: translateX(-50%);
  z-index: -1;
}
