@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&display=swap');

@font-face {
  font-family: 'WesternBangBang';
  src: url('WesternBangBang.ttf');
}

@font-face {
  font-family: 'Autography';
  src: url('Autography.otf');
}

@font-face {
  font-family: 'Brushter';
  src: url('Brushter.otf');
}

@font-face {
  font-family: 'CowboyOutlaw';
  src: url('CowboyOutlaw.otf');
}

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

a:link, a:active, a:visited { color: #27211B; text-decoration:text-decoration:underline;; }
a:hover { text-decoration:none; }

body {
  background: url('k/bg.png');
  color: #2a2622;
  font-family: 'Domine', sans-serif;
font-size: 17px;
text-align:justify;
}

/* NAVBAR */
.navbar {
background-color: #27211B;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 35px 80px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
height: 90px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.navbar a {
  font-family: 'CowboyOutlaw', serif;
  color: rgba(255,255,255,0.85);
  margin-left: 40px;
  font-size: 20px;
  letter-spacing: 3px;
  text-decoration: none;
text-transform:uppercase;
  position: relative;
  transition: color 0.3s ease;
}

/* underline */
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #c2a87a; /* dusty gold */
  transition: width 0.35s ease;
}

/* hover effect */
.navbar a:hover {
  color: #ffffff;
text-shadow: 0 0 4px rgba(194,168,122,0.4);
}

.navbar a:hover::after {
  width: 100%;
}

.logo { margin-top: -15px; }

/* HERO */
.hero {
  background: url('k/bg2.png');
width: 90%; max-width: 1400px; margin:0 auto;
  display: flex;
  max-height: 600px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* LEFT IMAGE */
.hero-image {
  width: 45%;filter: sepia(0.4);
  background: url('k/7.jpg') center/cover no-repeat;
  /* Fade last 30% to transparent */
  -webkit-mask-image: linear-gradient(
    to right,
    black 70%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    black 70%,
    transparent 100%
  );
}

/* RIGHT CONTENT */
.hero-content {
  width: 55%;
  padding: 140px 100px;
}

/* MAIN TITLE */
h1 {
  font-family: 'CowboyOutlaw', serif;
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: 4px;
  margin: 10px 0 20px;
  color: #2a2622;
text-align:center;
font-weight:400;
text-transform:uppercase;
}

/* SUBTITLE */
.subtitle {
  font-family: 'Oswald';
  font-size: 22px;
  letter-spacing: 3px;
  margin: 30px 0;
  color: #6e645a;
text-align:center;
font-weight: 500;
}

/* QUOTE */
.quote {
font-family: 'Brushter', serif;
  font-size: 38px;
  line-height: 1.6;
  color: #5c5248;
  margin-bottom: 40px;
text-align:center;
font-weight: 400;
}


/* INFO BAR */
.info-bar {
width: 90%; max-width: 1400px; margin:0 auto;
  background: #1c1815;
  color: #e6ded4;
  display: flex;
  justify-content: space-between;
  padding: 30px 20px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.info-item {
  width: 25%;
border-left: solid #44382B 1px;
padding: 20px 0 20px 40px;
}

.info-item2 {
  width: 25%;
padding: 20px 0 20px 40px;
}

.info-item h4, .info-item2 h4 {
  font-family: 'CowboyOutlaw', serif;
  font-size: 20px;
letter-spacing: 2px;
  color: #9b9085;
margin-bottom: 5px;
text-transform:uppercase;
font-weight:700;
}

.info-item h5, .info-item2 h5 {
  font-family: 'CowboyOutlaw', serif;
  font-size: 20px;
letter-spacing: 2px;
  color: #9b9085;
margin-bottom: 5px;
margin-top: 40px;
text-transform:uppercase;
font-weight:700;
}

.info-item p, .info-item2 p {
  font-size: 15px;
  line-height: 1.5;
}

.info-bar a:link, .info-bar a:active, .info-bar a:visited { color: rgba(255,255,255,0.85); text-decoration:text-decoration:underline;; }
.info-bar a:hover { text-decoration:none; }

/* ABOUT */
.about {
  background: url('k/bg2.png');
width: 90%; max-width: 1400px; margin:0 auto;
  display: flex;
  padding: 40px;
  gap: 30px;
  align-items: center;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* IMAGE */
.about-image {
  width: 35%;
  height: 460px;
  background: url('k/horse.jpg') center/cover no-repeat;
  filter: grayscale(100%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* TEXT */
.about-text {
  width: 65%;
}

.about-text-full {
  width: 100%;
}

.about-text-full2 {
  width: 100%;
padding-top: 90px;
}

h2 {
  font-family: 'CowboyOutlaw', serif;
  font-size: 32px;
  letter-spacing: 3px;
  margin: 0 0 25px 30px;
text-transform:uppercase;
}

h3 {
  font-family: 'CowboyOutlaw', serif;
  font-size: 22px;
  letter-spacing: 3px;
  margin: 0 0 25px 30px;
text-transform:uppercase;
}

.about p {
  line-height: 1.8;
  margin-bottom: 18px;
  color: #4e463d;
}

.hr { text-align:center; }
.hr img { width: 90%; }

.pikkuinfo { font-size: 13px; margin-left: 5px; color: #9b9085; }
.kisainfo { font-size: 13px; margin-left: 5px; color: #9b9085; }

/* RESPONSIVE TEXT TIGHTENING */
@media (max-width: 768px) {
  .results-table th,
  .results-table td {
    padding: 10px;
    font-size: 13px;
  }
}


.kuvagalleria {
  margin: 0px auto 0px auto;
  width: 100%;
  text-align: center;
  margin-top:10px;
}

.kuvagalleria-grid {
  column-count: 5; 
  column-gap: 20px;
}

.kuvagalleria-grid img {
  width: 100%;
  margin-bottom: 16px;
box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.15);
border-radius:5px;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kuvagalleria-grid img:hover {
  transform: scale(1.03);
}




/* WRAPPER */
.pedigree {
width:100%;
}

.pedigree td {
  color: #f2e9dd;
  background: linear-gradient(145deg, #3a2f26, #1c1815);
  border: 1px solid #c2a87a;
  border-radius: 6px;
padding: 10px 15px;
width: 33%;
line-height: 1.4;
}

.pedigree small { text-transform:uppercase; font-size: 10px; }




/* FOOTER */
.footer {
  height: 50px;
  background-color: #27211B;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer p {
  font-size: 13px;
  line-height: 1.6;
  color: #FFFFFF;
text-align:center;
font-weight: 600;
text-transform:uppercase;
}

.footer a:link, .footer a:active, .footer a:visited { color: #FFFFFF; }


.ruusukkeet { text-align:center; margin: 20px 0 0 0; }
.ruusukkeet img { max-height: 200px; }













.competition-stats { --stat-gold:#c6a66d; --stat-plum:#211027; color:#29232b; }
.stats-intro { max-width:760px; margin:12px 0 25px; color:#756a73; font-size:14px; }
.stats-overview { display:grid; grid-template-columns:auto auto auto auto auto; gap:12px; margin:25px 0 28px; }
.stat-card { position:relative; min-height:70px; padding:28px 15px; background:linear-gradient(145deg,#fffdfa,#f1ebe2); border:1px solid rgba(198,166,109,.55); text-align:center; overflow:hidden; }
.stat-card:before,.stat-card:after { content:""; position:absolute; width:35px; height:35px; border-color:rgba(198,166,109,.65); border-style:solid; pointer-events:none; }
.stat-card:before { left:6px; top:6px; border-width:1px 0 0 1px; }
.stat-card:after { right:6px; bottom:6px; border-width:0 1px 1px 0; }
.stat-icon { display:block; color:#9c8054; font-size:18px; line-height:1; margin-bottom:8px; }
.stat-number { display:block; color:#26172b; font:500 28px CowboyOutlaw; }
.stat-label { display:block; font-family: 'CowboyOutlaw', serif;
  font-size: 18px; color: #9b8055;
  letter-spacing: 1px;
  margin-top: 10px; text-transform:uppercase; }
.stats-lower { display:grid; grid-template-columns:minmax(0,0.3fr) minmax(0,1fr); gap:22px; margin-bottom:28px; }
.stats-panel { border:1px solid #e3d8c9; background:#fffdfa; padding:19px 20px; min-width:0; }
.stats-panel-title { margin:0 0 17px; color:#342538; font:24px/1.1 var(--font1); }

.discipline-row { display:grid; grid-template-columns:150px 1fr 26px; align-items:center; gap:10px; margin:13px 0; font-size:17px; }
.discipline-name { color:#5b4b5b; }
.discipline-track { height:6px; background:#eee6df; overflow:hidden; }
.discipline-fill { height:100%; width:0; background:linear-gradient(90deg,#765579,#c6a66d); transition:width .35s ease; }
.discipline-count { color:#9b8055; text-align:right; font:18px "Cormorant Garamond",serif; }

.stats-highlights { display:grid; grid-template-columns:auto auto auto; gap:10px; }
.stats-highlights2 { display:grid; grid-template-columns: auto auto; gap:10px; margin-top: 10px; }

.highlight-box { padding:13px 14px; border-left:2px solid #9b8055; font-size:17px; line-height: 1.6; }
.highlight-box small { display:block; font-family: 'CowboyOutlaw', serif;
  font-size: 22px;
  letter-spacing: 3px;
  margin: 0; text-transform:uppercase; }
.highlight-box strong { display:block; margin-top:8px; font:18px/1.2 var(--font2); font-weight:400; letter-spacing: 1px; }
.highlight-box span { display:block; color:#cbbfca; font-size:15px; margin-top:2px; }

.results-heading-row { display:flex; align-items:end; justify-content:space-between; gap:18px; margin:30px 0 12px; }
.results-heading-row h3 { margin:0; }
.results-count { font-family: 'CowboyOutlaw', serif; color:#92785d; font-size:16px; text-transform:uppercase; letter-spacing: 1px; white-space:nowrap; }
.results-controls { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 14px; }
.results-controls label { color:#8b7768; text-transform:uppercase; letter-spacing:.12em; font-size:15px; display:flex; flex-direction:column; gap:5px; flex:1; min-width:130px; }
.results-controls select,.results-controls input { width:100%; min-height:38px; border:1px solid #d9cbbb; background:#fffdfa; color:#342538; padding:8px 10px; border-radius:0; font:14px var(--font1); outline-color:#c6a66d; }

.results-table-wrap { width:100%; overflow-x:auto; border:1px solid #e3d8c9; }
.results-table { width:100%; border-collapse:collapse; text-align:left; font-size:15px; min-width:590px; background: #FAF6F1; }
.results-table th { background:#2E271F; color: #F1E9DC; padding: 16px 14px; font-family: 'CowboyOutlaw', sans-serif; text-transform: uppercase; letter-spacing: 3px; font-size: 16px; border-bottom: 2px solid #c2a87a; }
.results-table td { padding: 14px 14px; border-bottom: 1px solid #eee3d6; color: #2a2622; font-size: 15px; letter-spacing: 1px; vertical-align:middle; }
.results-table tbody tr:nth-child(even) { background:#FFFFFF; }
.results-table tbody tr:hover { background: #F0E6D7; }
.result-location { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.result-flag { vertical-align:middle; margin-right: 5px; }
.result-place { display:inline-flex; align-items:center; justify-content:center; font:15px var(--font1); }
.result-place.highlighted { font-family: 'CowboyOutlaw', serif; color: #2E271F; font-weight: 700; }
.result-highlight-toggle { display:flex; align-items:center; gap:5px; margin-top:6px; color:#8b7768; font-size:9px; line-height:1.3; cursor:pointer; white-space:nowrap; }
.result-highlight-toggle input { accent-color:#211027; cursor:pointer; margin:0; }
.result-class {  }
.result-empty { text-align:center; padding:24px !important; color:#9b8b99 !important; }






















/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 900px) {

  .navbar {
    height: 60px; padding: 20px 25px; position: absolute;
  }

.logo img { max-width:90%; margin-top: 10px; }

  .menu-toggle {
    display: block;
  }

  .navbar nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #27211B;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .navbar nav a {
    margin: 15px 0;
    font-size: 18px;
  }

  .navbar nav.active {
    max-height: 300px;
  }
}

/* HERO MOBILE */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    max-height: none;
  }

  .hero-image {
    width: 100%;
    height: 450px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero-content {
    width: 100%;
    padding: 40px 20px;
  }

  h1 {
    font-size: 42px;
  }

.subtitle { font-size: 16px; }

  .quote {
    font-size: 24px;
  }
}

/* INFO BAR MOBILE */
@media (max-width: 900px) {
  .info-bar {
    flex-direction: column;
  }

  .info-item,
  .info-item2 {
    width: 100%;
    border-left: none;
    padding: 15px 20px;
  }
}

/* ABOUT MOBILE */
@media (max-width: 900px) {
  .about {
    flex-direction: column;
    padding: 20px;
  }

  .about-image {
    width: 100%;
    height: 250px;
  }

  .about-text,
  .about-text-full,
  .about-text-full2 {
    width: 100%;
    padding: 0;
  }

  h2, h3 {
    margin-left: 0;
  }
   h2 { font-size: 26px; }
}