:root {
  --sk5ae-red: #cf0000;
  --sk5ae-red-dark: #a40000;
  --sk5ae-black: #111111;
  --sk5ae-charcoal: #1d1d1d;
  --sk5ae-bg: #e3e3e3;
  --sk5ae-surface: #efefef;
  --sk5ae-card: #f7f7f7;
  --sk5ae-border: #d3d3d3;
  --sk5ae-text: #202020;
  --sk5ae-muted: #666666;
  --sk5ae-width: 1320px;
  --sk5ae-frame: #c8c8c8;
  --sk5ae-frame-shadow: 0 0 0 1px rgba(17, 17, 17, 0.12), 0 18px 45px rgba(17, 17, 17, 0.14);
}

.site-shell {
  width: min(100% - 2rem, var(--sk5ae-width));
  margin: 0 auto;
}

body {
  margin: 0;
  color: var(--sk5ae-text);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

body:not(.custom-background) {
  background: linear-gradient(180deg, var(--sk5ae-frame), var(--sk5ae-bg));
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  width: min(100% - 1rem, var(--sk5ae-width) + 2.5rem);
  background: rgba(255, 255, 255, 0.24);
  border-left: 1px solid rgba(17, 17, 17, 0.08);
  border-right: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: var(--sk5ae-frame-shadow);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--sk5ae-red-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0;
}

.site-main {
  padding: 1.4rem 0 2rem;
}

.masthead {
  position: relative;
  padding: 2.2rem 0;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.83), rgba(0, 0, 0, 0.58)), radial-gradient(circle at 78% 35%, rgba(40, 40, 40, 0.95), rgba(8, 8, 8, 0.95));
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 2px, transparent 2px, transparent 40px);
  opacity: 0.3;
  pointer-events: none;
}

.masthead-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.custom-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.site-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.01em;
}

.site-title a {
  color: #ffffff;
}

.site-description {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
}

.site-nav-bar {
  background: var(--sk5ae-menu-surface, var(--sk5ae-red));
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav {
  min-width: 0;
}

.site-nav > ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
  position: relative;
}

.site-nav a {
  display: inline-block;
  padding: 1rem 1.25rem;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--sk5ae-menu-hover, var(--sk5ae-red-dark));
  text-decoration: none;
}

.site-nav .sub-menu {
  list-style: none;
  display: none;
  min-width: 16rem;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  background: var(--sk5ae-menu-surface, var(--sk5ae-red));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.site-nav .sub-menu li {
  width: 100%;
}

.site-nav .sub-menu a {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  text-transform: none;
}

.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.site-nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 0.55rem;
  vertical-align: middle;
  border-left: 0.3rem solid transparent;
  border-right: 0.3rem solid transparent;
  border-top: 0.38rem solid currentColor;
}

.menu-search-form {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: opacity 0.18s ease, transform 0.18s ease, width 0.18s ease;
}

.menu-search {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  position: relative;
}

.menu-search-toggle {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.18);
}

.menu-search-icon {
  position: relative;
  width: 0.92rem;
  height: 0.92rem;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.menu-search-icon::after {
  content: "";
  position: absolute;
  width: 0.52rem;
  height: 2px;
  background: currentColor;
  right: -0.34rem;
  bottom: -0.18rem;
  transform: rotate(45deg);
  transform-origin: center;
}

.js .menu-search-form {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(0.5rem);
}

.js .menu-search.is-open .menu-search-form {
  width: min(23rem, 36vw);
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.menu-search-input {
  min-width: 180px;
  width: clamp(180px, 18vw, 280px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  padding: 0.45rem 0.6rem;
}

.menu-search-input::placeholder {
  color: rgba(255, 255, 255, 0.95);
}

.menu-search-submit {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.18);
  color: #ffffff;
  padding: 0.45rem 0.65rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  overflow: visible;
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.55rem 0.8rem;
  background: #ffffff;
  color: var(--sk5ae-black);
  border: 2px solid var(--sk5ae-red-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.site-main :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.wp-block-button__link:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.home-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
}

.home-main-column,
.home-sidebar-column {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.home-editor-section {
  line-height: 1.6;
}

.home-editor-section .wp-block-group,
.home-editor-section .wp-block-cover,
.home-editor-section .wp-block-columns,
.home-editor-section .wp-block-media-text {
  margin-bottom: 1rem;
}

.home-editor-section > *:first-child {
  margin-top: 0;
}

.home-editor-section > *:last-child {
  margin-bottom: 0;
}

.home-widget-area {
  display: grid;
  gap: 0.8rem;
}

.section-title-row {
  border-left: 4px solid var(--sk5ae-red);
  padding-left: 0.75rem;
}

.section-title-row h2 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.featured-post {
  background: var(--sk5ae-card);
  border: 1px solid var(--sk5ae-border);
}

.featured-post-link {
  display: block;
}

.featured-media {
  position: relative;
  min-height: 340px;
}

.featured-media img,
.news-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.featured-media-fallback,
.news-card-fallback {
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #b8d7ef, #8fbad8 50%, #d8c99d);
}

.featured-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
  color: #ffffff;
}

.post-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--sk5ae-red);
  margin-bottom: 0.55rem;
}

.featured-title {
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  margin-bottom: 0.3rem;
}

.featured-meta,
.news-card-meta {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.news-card-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card {
  border: 1px solid var(--sk5ae-border);
  background: var(--sk5ae-card);
}

.news-card-media {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.news-card .post-chip {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  margin: 0;
}

.news-card-body {
  padding: 0.85rem;
}

.news-card-title {
  font-size: 1.75rem;
  margin-bottom: 0.4rem;
}

.news-card-meta {
  color: var(--sk5ae-muted);
  margin-bottom: 0.45rem;
}

.news-card-excerpt {
  color: #333333;
  line-height: 1.45;
}

.home-widget,
.sidebar-widget,
.footer-widget {
  background: var(--sk5ae-surface);
  border: 1px solid var(--sk5ae-border);
  padding: 1rem;
}

.home-widget-title,
.widget-title {
  font-size: 1.28rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.link-list,
.event-list,
.latest-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.event-list li,
.latest-news-list li {
  border-top: 1px solid #d8d8d8;
  padding-top: 0.65rem;
  line-height: 1.35;
}

.event-list li:first-child,
.latest-news-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.event-date {
  display: inline-block;
  min-width: 3.8rem;
  font-weight: 800;
  color: var(--sk5ae-red-dark);
}

.latest-news-list span {
  display: block;
  margin-top: 0.15rem;
  color: var(--sk5ae-muted);
  font-size: 0.86rem;
}

.standard-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.2fr) minmax(0, 0.9fr);
  align-items: start;
}

.layout-sidebar {
  display: grid;
  gap: 0.8rem;
}

.layout-content {
  min-width: 0;
}

.content-grid {
  display: grid;
  gap: 1rem;
}

.content-grid-columns-1 {
  grid-template-columns: 1fr;
}

.content-grid-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid-columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card {
  background: var(--sk5ae-surface);
  border: 1px solid var(--sk5ae-border);
  border-radius: 0;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 2rem;
  background: #3a3a3d;
  color: #f2f2f2;
  padding: 2.2rem 0 1.8rem;
}

.site-footer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-footer .footer-widget {
  background: transparent;
  border: 0;
  padding: 0;
  color: #d4d4d4;
}

.site-footer .widget-title,
.site-footer a {
  color: #ffffff;
}

.site-footer .widget_nav_menu ul,
.site-footer .widget_pages ul,
.site-footer .widget_recent_entries ul,
.site-footer .widget_categories ul,
.site-footer .widget_archive ul,
.site-footer .widget_meta ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0 0 0.55rem;
}

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

.site-footer li a {
  color: #d8d8d8;
}

.site-footer li a:hover,
.site-footer li a:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.site-footer-bottom {
  margin-top: 1.8rem;
  background: #2f2f31;
}

.site-footer-bottom-inner {
  min-height: 3.6rem;
  display: flex;
  align-items: center;
}

.site-footer-bottom-text,
.site-footer-bottom-text p {
  color: #f6f6f6;
  font-size: 1rem;
  margin: 0;
}

.site-footer-bottom-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.site-footer-version {
  display: inline-block;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  color: #d4d4d4;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-bottom-text a {
  color: #ffffff;
}

button,
input[type=submit],
input[type=button],
input[type=reset],
.wp-element-button,
.wp-block-button__link {
  border: 1px solid var(--sk5ae-red-dark);
  background: linear-gradient(165deg, var(--sk5ae-red), var(--sk5ae-red-dark));
  color: #ffffff;
  border-radius: 0;
  padding: 0.64rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

input[type=text],
input[type=email],
input[type=url],
input[type=search],
input[type=password],
input[type=number],
input[type=tel],
input[type=date],
textarea,
select {
  width: 100%;
  border: 1px solid var(--sk5ae-border);
  border-radius: 0;
  background: #ffffff;
  color: var(--sk5ae-text);
  padding: 0.65rem 0.75rem;
  font: inherit;
}

textarea {
  min-height: 8rem;
}

.header-social {
  margin-left: auto;
}

.social-links-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.social-links-list a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.social-links-list a:hover,
.social-links-list a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.footer-social .social-links-list a {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.footer-social .social-links-list a:hover,
.footer-social .social-links-list a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1180px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .standard-layout {
    grid-template-columns: 1fr;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .layout-sidebar-left {
    order: 2;
  }
  .layout-content {
    order: 1;
  }
  .layout-sidebar-right {
    order: 3;
  }
}
@media (max-width: 900px) {
  .js .menu-search.is-open .menu-search-form {
    width: min(19rem, 58vw);
  }
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-card-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .menu-search {
    width: 100%;
    margin-left: 0;
  }
  .js .menu-search.is-open .menu-search-form {
    width: 100%;
  }
  .masthead-inner {
    justify-items: start;
  }
  .header-social {
    margin-left: 0;
  }
  .social-links-list {
    flex-wrap: wrap;
  }
  .masthead-inner,
  .nav-bar-inner {
    display: grid;
    grid-template-columns: 1fr;
  }
  .site-nav a {
    padding: 0.8rem 0.9rem;
    font-size: 0.86rem;
  }
  .menu-search-form {
    width: 100%;
    margin-left: 0;
  }
  .menu-search-input {
    width: 100%;
    min-width: 0;
  }
  .featured-media {
    min-height: 260px;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0;
  }
}
.home-bottom-widgets {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.home-bottom-widget-column {
  min-width: 0;
}

.home-bottom-widget-column .home-widget {
  height: 100%;
}

.news-card-grid > .content-card {
  grid-column: 1/-1;
}

@media (max-width: 900px) {
  .home-bottom-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .home-bottom-widgets {
    grid-template-columns: 1fr;
  }
}
