/* europeannurserychampionship.com — Professional sheepdog trial event theme */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #2A2A2A;
  background: #F7F9F4;
}

a { color: #2B5F0A; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ------------------------------------------------------------------ */
/* HEADER                                                              */
/* ------------------------------------------------------------------ */
.enc__header {
  background: #1A3006;
  border-bottom: 3px solid #C9A227;
}
.enc__header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.enc__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.3px;
}
.enc__logo-icon {
  font-size: 28px;
}
.enc__logo span {
  color: #C9A227;
}
.enc__lang-switch {
  display: flex;
  gap: 6px;
}
.enc__lang-switch a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  color: #ccc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}
.enc__lang-switch a:hover,
.enc__lang-switch a.enc__lang--active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #C9A227;
}

/* ------------------------------------------------------------------ */
/* NAVIGATION                                                          */
/* ------------------------------------------------------------------ */
.enc__nav {
  background: #2B5F0A;
}
.enc__nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  padding: 0 20px;
  gap: 0;
  overflow-x: auto;
}
.enc__nav a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: background 0.15s;
}
.enc__nav a:first-child {
  border-left: 1px solid rgba(255,255,255,0.15);
}
.enc__nav a:hover,
.enc__nav a.enc__nav--active {
  background: rgba(255,255,255,0.15);
}

/* ------------------------------------------------------------------ */
/* HERO                                                                */
/* ------------------------------------------------------------------ */
.enc__hero {
  background: linear-gradient(135deg, #2B5F0A 0%, #3A7B12 50%, #1A3006 100%);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.enc__hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.02) 40px,
    rgba(255,255,255,0.02) 80px
  );
}
.enc__hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.enc__hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.enc__hero-sub {
  font-size: 18px;
  color: #C9A227;
  font-weight: 600;
  margin-bottom: 12px;
}
.enc__hero p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.enc__hero-badge {
  display: inline-block;
  background: #C9A227;
  color: #1A3006;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 20px;
  margin-top: 16px;
}

/* ------------------------------------------------------------------ */
/* PAGE LAYOUT                                                         */
/* ------------------------------------------------------------------ */
.enc__page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.enc__page h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  color: #1A3006;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 2px solid #C9A227;
}
.enc__page h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: #2B5F0A;
  margin: 24px 0 10px;
}
.enc__page h3 {
  font-size: 15px;
  color: #1A3006;
  margin: 16px 0 8px;
}

/* ------------------------------------------------------------------ */
/* ARTICLE BODY                                                        */
/* ------------------------------------------------------------------ */
.enc__body {
  font-size: 15px;
  line-height: 1.7;
}
.enc__body p {
  margin-bottom: 12px;
}
.enc__body ul, .enc__body ol {
  margin: 0 0 12px 24px;
}
.enc__body li {
  margin-bottom: 4px;
}

/* Meta */
.enc__meta {
  font-size: 13px;
  color: #6B7B5F;
  margin-bottom: 16px;
}

/* Tags */
.enc__tags {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #D4DFC8;
  font-size: 13px;
  color: #6B7B5F;
}
.enc__tags span {
  display: inline-block;
  background: #E8F0E0;
  color: #2B5F0A;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin: 2px 4px 2px 0;
}

/* Related */
.related {
  margin-top: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #D4DFC8;
  border-radius: 6px;
}
.related h3 {
  font-size: 15px;
  color: #1A3006;
  margin: 0 0 8px;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related li {
  padding: 4px 0;
  font-size: 14px;
}
.related li::before {
  content: "\2192 ";
  color: #2B5F0A;
}

/* ------------------------------------------------------------------ */
/* HOMEPAGE SECTIONS                                                   */
/* ------------------------------------------------------------------ */
.enc__section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: #1A3006;
  margin: 28px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid #C9A227;
}

/* Info cards grid */
.enc__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.enc__card {
  background: #fff;
  border: 1px solid #D4DFC8;
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.enc__card:hover {
  border-color: #2B5F0A;
  box-shadow: 0 2px 8px rgba(43,95,10,0.1);
}
.enc__card-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
}
.enc__card strong {
  display: block;
  font-size: 15px;
  color: #1A3006;
  margin-bottom: 4px;
}
.enc__card span {
  font-size: 13px;
  color: #6B7B5F;
  line-height: 1.4;
}
.enc__card a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Intro text */
.enc__intro {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.enc__intro p {
  margin-bottom: 10px;
}

/* Quick facts */
.enc__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.enc__fact {
  background: #1A3006;
  color: #fff;
  padding: 16px 12px;
  border-radius: 6px;
  text-align: center;
}
.enc__fact-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #C9A227;
  font-family: Georgia, 'Times New Roman', serif;
}
.enc__fact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* Sponsors */
.enc__sponsors {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #D4DFC8;
  border-radius: 6px;
  margin-bottom: 24px;
}
.enc__sponsor {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #F7F9F4;
  border: 1px solid #e0e8d8;
  border-radius: 4px;
  font-size: 13px;
  color: #6B7B5F;
}
.enc__sponsor-icon {
  font-size: 20px;
}

/* Schedule table */
.enc__schedule {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.enc__schedule th {
  background: #2B5F0A;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.enc__schedule td {
  padding: 6px 12px;
  border-bottom: 1px solid #D4DFC8;
}
.enc__schedule tbody tr:nth-child(even) {
  background: #fff;
}
.enc__schedule tbody tr:hover {
  background: #E8F0E0;
}
.enc__schedule-day {
  background: #E8F0E0;
  font-weight: 700;
  color: #1A3006;
}
.enc__schedule-day td {
  padding: 8px 12px;
  border-bottom: 2px solid #2B5F0A;
}

/* Results */
.enc__result-card {
  background: #fff;
  border: 1px solid #D4DFC8;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 12px;
}
.enc__result-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #1A3006;
}
.enc__result-medal {
  display: inline-block;
  font-size: 18px;
  margin-right: 4px;
}
.enc__result-score {
  float: right;
  font-weight: 700;
  color: #2B5F0A;
  font-size: 16px;
}

/* Photo grid */
.enc__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.enc__gallery-item {
  background: #E8F0E0;
  border: 1px solid #D4DFC8;
  border-radius: 4px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

/* Notice box */
.enc__notice {
  background: #FFF8E1;
  border: 1px solid #E8D880;
  border-left: 4px solid #C9A227;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  border-radius: 0 4px 4px 0;
}

/* ------------------------------------------------------------------ */
/* ARTICLE LIST (homepage)                                             */
/* ------------------------------------------------------------------ */
.enc__articles-list {
  display: none;
}

/* ------------------------------------------------------------------ */
/* FOOTER                                                              */
/* ------------------------------------------------------------------ */
.enc__footer {
  background: #1A3006;
  color: #a0b090;
  padding: 24px 20px 16px;
  margin-top: 40px;
}
.enc__footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
}
.enc__footer-col {
  flex: 1;
}
.enc__footer-col h4 {
  color: #C9A227;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  font-family: Georgia, 'Times New Roman', serif;
}
.enc__footer-col a {
  display: block;
  color: #a0b090;
  font-size: 13px;
  padding: 2px 0;
}
.enc__footer-col a:hover {
  color: #fff;
}
.enc__footer-col span {
  display: block;
  font-size: 13px;
  padding: 2px 0;
}
.enc__footer-copy {
  max-width: 1100px;
  margin: 16px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: #6B7B5F;
}
.enc__footer-copy a {
  color: #a0b090;
}

/* ------------------------------------------------------------------ */
/* RESPONSIVE                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
  .enc__header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }
  .enc__nav-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .enc__hero h1 {
    font-size: 22px;
  }
  .enc__hero-sub {
    font-size: 15px;
  }
  .enc__cards {
    grid-template-columns: 1fr;
  }
  .enc__facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .enc__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .enc__footer-inner {
    flex-direction: column;
    gap: 16px;
  }
  .enc__schedule {
    font-size: 13px;
  }
  .enc__schedule td,
  .enc__schedule th {
    padding: 5px 8px;
  }
}
