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

/*sisu ilmumine*/
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

/* kui JS lisab .show */
.reveal.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}


/*TEKSTID*/

h1 {
  font-size:56px;
  margin-bottom: 20px;
  margin-top: 30px;
}

h2 {
  font-size: 40px;
  text-align: center;
  margin-top: 100px;
  color:#f6f3ee;
}

p {
  font-size: 18px;
}

/*väiksemad ekraanid - tekstid*/

/*tahvelarvuti*/
@media (max-width: 1024px) {

    h1 {
        font-size: 40px;
        margin-top: 60px;
    }

    h2 {
        font-size: 30px;
    }

}

/*telefon*/
@media (max-width: 600px) {

    h1 {
        font-size: 40px;
        margin-top: 10px;
    }

    h2 {
        font-size: 20px;
    }

}

/*lingid tekstis*/

p a{
  text-decoration: none;
  color:#f6f3ee;
}

p a:hover{
  color: #b0abab;
}

/*BODY*/
body {
    background-color: #083D77;
    padding-top: 95px;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
}

body.loaded{
  opacity: 1;
}

.esimene {
  margin-top: 110px;
}


/*HEADER*/
.header_esileht {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(taust.jpg) center/cover no-repeat;
}

.header_riided {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(riided.jpg) center/cover no-repeat;
}

.header_liikmed {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(liikmed.jpg) center/cover no-repeat;
}

.header_põhikiri {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(põhikiri.jpg) center/cover no-repeat;
}

.header_korraldame{
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(korraldame.jpg) center/cover no-repeat;
}

.header_tallinnamv {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(tallinnamv.jpg) center/cover no-repeat;
}

.header_arhiiv {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(arhiiv.jpg) center/cover no-repeat;
}

.header_uudised {
  background: none;
  max-height: 10vh;
}

.header_kontakt {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(kontakt.jpg) center/cover no-repeat;
}

.header-nool {
  position: absolute;
  bottom: 0;
  left: 50%; 
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid #083D77; 
}

@media (max-width: 1024px) {
  .header-nool {
    bottom: -2px;
  }
}

@media (max-width: 600px) {
  .header-nool {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid #083D77;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1px; 
  }
}

.header {
    min-height: 80vh;
    height: 99vh;
    margin-top: -95px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20px);

    color: white;
    font-size: 65px;
    font-weight: bold;
    text-align: center;

    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
    white-space: nowrap;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translate(-50%, -25%);
    }
}

/*väiksemad ekraanid - header*/

/*tahvelarvuti*/
@media (max-width: 1024px) {

    .hero-text {
        font-size: 48px;
        width: 90%;
    }

    .header {
        min-height: 40vh;
        height: 50vh;
        margin-bottom: -10vh;
    }

}

/*telefon*/
@media (max-width: 600px) {

    .hero-text {
        font-size: 34px;
    }

    .header {
        min-height: 30vh;
        height: 40vh;
        padding: 20px;
    }

}

/* NAVIGATSIOONIRIBA */
.nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 95px;

  background-color: rgba(11, 61, 117, 0.8);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

/* MENÜÜ */
.menu{
  display: flex;
  align-items: center;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;

  padding-left: 150px;
  padding-right: 120px;
}

/* HAMBURGER */
.hamburger{
  display: none;
  position: absolute;
  right: 25px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* MENÜÜ LINGID */
.menu li a{
  font-size: 17px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.menu li a:hover{
  color: #b0abab;
}

/* LOGO */
.logo{
  position: absolute;
  left: 20px;
  z-index: 1100;
}

.logo img{
  height: 130px;
  display: block;
  margin-top: 70px;
}

/* SOTSIAALMEEDIA */
.socials{
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  gap: 18px;

  font-size: 22px;
  color: white;
}

.telefon_socials{
  display: none;
}

.socials i{
  color: white;
}

.socials i:hover{
  color: #b0abab;
}

/* DROPDOWN */
.dropdown{
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* MENÜÜ PEALKIRI + NOOL */
.dropdown-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* NOOLEKE */
.submenu-toggle{
  color: white;
  font-size: 14px;
  cursor: pointer;
  margin-left: 8px;
}

/* ALAMENÜÜ */
/* ARVUTI DROPDOWN */

.dropdown{
  position: relative;
}

.submenu{
  position: absolute;
  top: 100%;
  left: 0;
  background: #083D77;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 180px;

  display: none;
  flex-direction: column;
}

.dropdown:hover .submenu{
  display: flex;
}

.submenu li a{
  display: block;
  padding: 10px 16px;
  color: #fff;
}

.submenu li a:hover{
  color: #b0abab;
}

.submenu-toggle {
  display: none;
}

/*väiksemad ekraanid - navigatsiooniriba*/
/*tahvelarvuti*/
@media (max-width: 1024px){

  .nav{
    height: 70px;
  }

  .hamburger{
    display: block;
  }

  .menu{
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: rgba(11, 61, 117, 0.8);
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 20px;
    gap: 20px;
    display: none;
  }

  .menu.active{
    display: flex;
  }

  .menu li{
    width: 100%;
  }

  .menu li a{
    width: auto;
    text-align: left;
    padding: 2px 0;
    display: inline-block;
  }

  /* sotsiaalid telefoni menüüs */
  .telefon_socials{
    width: 100%;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    display: flex !important;
  }

  .telefon_socials .socials{
    position: static;
    display:flex;
    flex-direction: row;
    gap: 20px;
    transform: none;

    justify-content: flex-start;
    gap: 15px;
  }

  .logo img{
    height: 75px;
    margin-top: 35px;
  }

  .arvuti_socials{
    display: none;
  }

  .dropdown:hover .submenu {
    display: none; 
  }

  /* alamenüü algseis peidetud */
  .submenu {
    position: static;
    background: transparent;
    padding-left: 20px;
    display: none; /* Peidetud */
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  /* avab alamenüü */
  .submenu.open {
    display: flex !important;
  }

  /* nooleke nähtavale */
  .submenu-toggle {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    margin-left: 0;
  }

  .dropdown-header {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    align-items: center;
    width: fit-content;
    cursor: pointer;
  }
}

/*telefon*/
@media (max-width: 600px) {

  .nav{
    height: 70px;
  }

  .hamburger{
    display: block;
  }

  .menu{
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: rgba(11, 61, 117, 0.8);
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 20px;
    gap: 20px;
    display: none;
  }

  .menu.active{
    display: flex;
  }

  .menu li{
    width: 100%;
  }

  .menu li a{
    width: auto;
    text-align: left;
    padding: 2px 0;
    display: inline-block;
  }

  /* sotsiaalid telefoni menüüs */
  .telefon_socials{
    width: 100%;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    display: flex !important;
  }

  .telefon_socials .socials{
    position: static;
    display:flex;
    flex-direction: row;
    gap: 20px;
    transform: none;

    justify-content: flex-start;
    gap: 15px;
  }

  .logo img{
    height: 75px;
    margin-top: 35px;
  }

  .arvuti_socials{
    display: none;
  }

  .dropdown:hover .submenu {
    display: none; 
  }

  /* alamenüü algseis peidetud */
  .submenu {
    position: static;
    background: transparent;
    padding-left: 20px;
    display: none; /* Peidetud */
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  /* avab alamenüü */
  .submenu.open {
    display: flex !important;
  }

  /* nooleke nähtavale */
  .submenu-toggle {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    margin-left: 0;
  }

  .dropdown-header {
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    align-items: center;
    width: fit-content;
    cursor: pointer;
  }
}

/*======ESILEHT/KLUBIST======*/

/*sinise taustaga blokid*/
.esileht_p {
  font-size: 18px;
}

.sinine_blokk {
  text-align: center;
  color: #f6f3ee;
  padding: 15px 200px 15px 200px;
}

/*valge taustaga blokid*/
.split-hero {
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  min-height:100vh;
  max-width:1300px;
  margin:0 auto;
}

.split-left_1, .split-left_2 {            /*vasak tekstiosa*/
  padding:90px 70px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  margin:0;
  line-height:1.05;
  text-align: left;
}

.split-left_1 {
  background:#f6f3ee;
  color: black;
}

.split-left_2 {
  background:#083D77;
  color:#f6f3ee;
}

.desc {
  margin-bottom:25px;
  max-width:450px;
}


.split-right_1, .split-right_2 {            /*parempoolne pilt*/
  min-height: 600px;
}

.slider {              /*piltide esitlus*/
  position: relative;
  height: 100%;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

.arrow {
  position: absolute;
  top: 50%;

  background: none;
  color: white;
  border: none;
  font-size: 28px;

  width: 42px;
  height: 42px;
  transition: transform 0.1s;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.enne { 
  left: 15px; 
}

.järg { 
  right: 15px; 
}

.arrow:hover {
  transform: scale(1.3);
}

.split-right_3 {             /*parempoolne video*/
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.poola_video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/*väiksemad ekraanid - esileht*/

/*tahvelarvuti*/
@media (max-width: 1024px) {

    .esileht_p {
        font-size: 18px;
        margin-left: 20px;
        margin-right: 20px;
    }

    .esileht_p, .split-left_1 h1, .split-left_2 h1{
      margin-left: 20px;
      margin-right: 20px;
    }

    .sinine_blokk {
      padding: 15px 100px 15px 100px;
    }

    .split-hero {
      grid-template-columns: 1fr 1fr;
      min-height: auto;
      height: 500px;
    }

    .split-left_1, .split-left_2 {
      padding: 30px 25px;
      font-size: 14px;
    }

    .pildid {
      min-width: 320px;
      height: 220px;
    }

    .split-right_1, .split-right_2, .split-right_3 {
      min-height: 100%;
      height: 100%;
    }

    .h1_hei {
      margin-top: 140px;
    }

    
}

/*telefon*/
@media (max-width: 600px) {

    .sinine_blokk{
      padding: 20px 30px;
    }

    .esileht_p{
      font-size: 16px;
      padding-left: 25px;
      padding-right: 25px;
      text-align: center;
    }

    .split-hero{
      display: flex;
      flex-direction: column;
      grid-template-columns: 1fr;
      min-height: auto;
      height: auto;
      box-shadow: none;
      margin-top: 0;
      margin-bottom: 0;
    }

    .split-left_1, .split-left_2{
      padding: 40px 30px;
      text-align: center; 
      order: 1;   
    }

    .desc{
      max-width: 100%;
    }

    .split-right_1, .split-right_2, .split-right_3 {
      order: 2;
      min-height:300px;
    }

    .h1_hei {
      margin-top: 90px;
    }
}


/*======RIIDED======*/
.riided_pealkiri1 {
  text-align: center;
  color: #f6f3ee;
}

.riided_pealkiri3 {
  text-align: left;
  color: #f6f3ee;
}

.pood_konteiner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 70px;
    margin: 15vh 10vh 5vh 10vh;
    justify-items: center;
}

.toode-kaart {
    width: 100%;
    max-width: 350px;
    text-align: center;
}

.riided_pealkiri3 {
    color: white;
    font-size: 0.9rem;
    margin-top: 15px;
    min-height: 40px;
}

.slider-container {
    position: relative;
    background: transparent;
    padding: 0;            
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    overflow: hidden;  
}

.slider-img {
    display: none;
    width: 100%;
    max-height: 330px;
    min-height: 330px;
    object-fit: cover;
}

.slider-img.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 68, 136, 0.7);
    color: white;
    border: none;
    padding: 12px 8px;
    cursor: pointer;
    z-index: 10;
}

.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }

.prev:hover, .next:hover { background: #004488; }

/*väiksemad ekraanid - riided*/

/*tahvelarvuti*/
@media (max-width: 1024px) {

  .pood_konteiner {
    margin: 15vh 5vh 5vh 5vh;
  }
}

/*telefon*/
@media (max-width: 600px) {

  .pood_konteiner {
      grid-template-columns: repeat(2, 1fr); 
      gap: 30px;
      margin: 15vh 5vh 5vh 5vh;
    }

    .toode-kaart {
      max-width: 100%;
    }

    .slider-img {
      max-height: 200px;
      min-height: 200px;
    }

    .riided_pealkiri3 {
      font-size: 0.6rem;
      min-height: auto;
    }
  }


/*======LIIKMED======*/
.liikmed_h3 {
  text-align: center;
  color: #f6f3ee;
  padding: 5px 0px 5px 0px;
}

.liikmed_nimekiri {
  margin-top: 15vh;
  margin-bottom: 5vh;
}

/*väiksemad ekraanid - liikmed*/

/*telefon*/
@media (max-width: 600px) {

  .liikmed_h3 {
      font-size: 0.8rem;
    }
}


/*======KORRALDAME======*/
.events {
  display: flex;
  gap: 38px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  margin: 15vh 10vh 5vh 10vh;
}

.event-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1/1;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 14px;
}

.event-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* tumedam kiht */
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.overlay h2 {
  font-size: 40px;
  margin: 0 0 10px 0;
}

.overlay p {
  font-size: 16px;
  margin: 5px 0px;
  text-align: center;
}

.btn {
  margin-top: 15px;
  padding: 12px 30px;
  border: 1px solid white;
  color: #f6f3ee;
  text-decoration: none;
  transition: 0.3s;
  border-radius: 14px;
}

.btn:hover {
  background: #083D77;
  color: #f6f3ee;
  border: 1px solid #083D77;
}

/*väiksemad ekraanid - korraldame*/
/*tavelarvuti*/
@media (max-width: 1024px) {

  .events {
    margin: 15vh 5vh 5vh 5vh;
  }
}

/*telefon*/
@media (max-width: 600px) {

    .overlay h2 {
        font-size: 28px;
    }

    .overlay p {
      font-size: 14px;
    }

    .events {
      gap: 15px;
      margin: 15vh 5vh 5vh 5vh;
    }
}



/*======TALLINNA MV=======*/

.tallinnamv-card {
  position: relative;
  height: 350px;
  width: 500px;
  overflow: hidden;
  border-radius: 14px;
}

.tallinnamv-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bulletin-icon {
  font-size: 50px;
  margin-bottom: 20px;
  color: #f6f3ee;
}

.tallinnamv_p_pealkiri {
  text-align: center;
  font-size: 30px;
  margin-top: 0px;
}

.tallinnamv, 
.image-row, 
.tallinnamv_p {

    max-width: 1100px; 
    margin-left: auto;
    margin-right: auto;
}

.tallinnamv_p {
    text-align: center;
    padding: 20px 0;
    color: #f6f3ee;
    line-height: 1.6;
}

.tallinnamv {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15vh; 
    margin-bottom: 5vh;
}

.image-row {
    display: flex;
    gap: 50px; 
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5vh;
}

.image-box {
  overflow: hidden;
  border-radius: 14px;
  height: 350px;
  width: 500px;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  display: block;
  border-radius: 14px;
}

/*väiksemad ekraanid - tallinna mv*7
/*tahvelarvuti*/
@media (max-width: 1024px) {

  .bulletin-icon {
    font-size: 40px;
  }

  .tallinnamv_p {
    font-size: 18px;
    width: 85vw;
    margin-bottom: 5vh;
  }

  .tallinnamv {
    margin: 15vh 5vw 5vh 5vw;
  }

  .image-box {
    width: 85vw;
  }

  .tallinnamv-card {
    width: 85vw;
  }
}

/*telefon*/
@media (max-width: 600px) {
    
  .bulletin-icon {
    font-size: 30px;
  }

  .tallinnamv-text h2 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 24px;
  }

  .tallinnamv_p_pealkiri {
    font-size: 22px;
  }

  .tallinnamv_p {
    font-size: 16px;
    text-align: center;
    width: auto;
    display: block;
  }

  .tallinnamv,
  .image-row, .tallinnamv_p {
    margin-left: 10vw;
    margin-right: 10vw;
  }

  .competition-info,
  .tallinnamv,
  .image-row {
    gap: 30px;
  }

  .tallinnamv-card,
  .image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    margin-bottom: 0;
  }

  .image-box img {
    width: 100%;
    height: 100%;
  }
}


/*======UUDISED======*/

/*layout*/
.news-layout{
  max-width:1200px;
  margin: 15vh 10vh 5vh 10vh;
  padding:0 20px;

  display:flex;
  gap:20px;
  align-items:flex-start;
}

/*postitused*/
.news-list{
  flex: 2.25;
  display: grid;
  gap: 40px;
}

.post{
  background:#f6f3ee;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 25px #111827;
  transition:0.25s;
  height: 400px;
  width: 800px;
}

.post:hover{
  transform:translateY(-4px);
}

.post img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.post-content{
  padding:10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.post h3{
  margin-bottom:8px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.post p{
  margin-bottom:10px;
  color:black;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.date{
  font-size:12px;
  opacity:0.7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/*insta ja fb postitused*/
.social-feed{
  display:flex;
  flex: 1;
  flex-direction:column;
  gap:40px;
}

.instagram-media{
  margin:0 auto !important;
  padding: 5px;
  min-width:100% !important;
  max-width:100% !important;
  border-radius:14px !important;
  box-shadow:0 6px 20px rgba(0,0,0,0.1);
}

.fb-frame{
  width:100%;
  height:500px;
  border:none;
  border-radius:12px;
}

/*väiksemad ekraanid - uudised*/

/*tahvelarvuti*/
@media (max-width: 1024px) {
  .news-layout {
    flex-direction: column; /* Uudised ja sotsiaalmeedia üksteise alla */
    align-items: center;
    margin: 10vh 5vh 5vh 5vh;
  }

  .news-list {
    width: 100%;
    flex: none;
  }

  .post {
    width: 100%; 
    max-width: 800px;
    height: auto; 
    margin: 0 auto;
  }

  .social-feed {
    width: 100%;
    flex: none;
    margin-top: 40px;
  }
}

/* telefon*/
@media (max-width: 600px) {
  .news-layout {
    padding: 0 15px;
    margin: 10vh 5vh 5vh 5vh;
  }

  .news-list {
    gap: 25px; 
  }

  .post img {
    height: 180px; 
  }

  .post-content {
    padding: 15px;
  }

  .post h3 {
    font-size: 1.2rem;
  }

  .post p {
    font-size: 16px;
    line-height: 1.5;
  }

  .instagram-media, .fb-frame {
    flex: 1;
    min-width: 0 !important;
    width: 50% !important;
    height: 300px !important;
  }

  .social-feed {
    flex-direction: row;
    gap: 10px;
    align-items: stretch;
    width: 100%;
  }

  .fb-frame {
    height: 300px;
  }
}



/*======KONTAKT======*/

.contact-info {
  padding: 60px;
  color:#f6f3ee;
  justify-content: center;
}

.kontakt_p i {
    margin-right: 8px;
    color: #f6f3ee;
}

.container {
  display: flex;
  flex-direction: row;     
  align-items: center;   
  justify-content: center; 
  gap: 200px;       
  margin: 15vh;
  background: #083D77; 
}

/* Vasakpoolne tekstiosa */
.intro-text {
  flex: 1;                  
  max-width: 400px;
}

.intro-text h3 {
  color: #f6f3ee;
  margin-bottom: 40px;
  letter-spacing: 1px;
  font-size: 50px;
  text-transform: uppercase;
  text-align: center;
}

.intro-text p {
  text-align: center;       /* Tekst on oma kasti sees keskel */
  color: #f6f3ee;
  font-size: 20px;
  line-height: 1.6;
  margin: 0;                /* Eemaldab vaikimisi marginaalid */
}

/* Parempoolne vormi osa */
.contact-card {
  flex: 1;                  /* Võtab teise poole ruumist */
  max-width: 500px;         /* Et vorm ei läheks liiga laiaks */
}

/* Vormi väljad */
.field {
  margin-bottom: 30px;
}

.field label {
  display: block;
  color: #f6f3ee;
  font-size: 14px;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f6f3ee;
  padding: 10px 0;
  color: #fff;
  font-size: 16px;
  resize: none;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom: 1px solid #f6f3ee;
}

/* Nupp */
.btn-send {
  margin-top: 20px;
  padding: 12px 28px;
  color: #f6f3ee;
  background: none;
  border: 1px solid #f6f3ee;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-send:hover {
  color: #083D77;
  background: #f6f3ee;
  transform: translateY(-1px);
}

.btn-send:active {
  transform: translateY(0);
}

.kontakt_sektsioon {
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 100%;
  max-width: 89vw;
  margin: 5vh 10vh 5vh 10vh;
  box-sizing: border-box;
}

.kontakt_kaart {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  background: #083D77;
  height: 250px;
  padding-right: 20px;
  box-sizing: border-box;
  box-shadow: 20px 20px 20px #052a52;
  margin-bottom: 60px;
  border-radius:14px;
}

/*pilt*/
.kontakt_pilt {
  width: 100%;
  width: 100%;
  max-width: 250px;
  height: 250px;
  object-fit: cover;
  margin-right: 30px;
  border-radius: 14px 0px 0px 14px;
}

/*tekst*/
.kontakt_info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kontakt_h2 {
  text-align: left;
  color: #f6f3ee;
  font-size: 22px;
  margin-top: 3px;
}

.kontakt_p {
  margin-top: 4px; 
  margin-bottom: 4px;
  font-size: 18px;
  color: #f6f3ee;
}

/*väiksemad ekraanid - kontakt*/

/*tahvelarvuti*/
@media (max-width: 1170px) {

  .kontakt_sektsioon {
    flex-direction: column;
    align-items: center;
    margin: 5vh auto;
  }

  .kontakt_kaart {
    margin-bottom: 40px;
    width: 95%;
  }

  .container {
    gap: 100px;
    margin: 15vh 6vh 5vh 6vh;
  }

  .intro-text {
    margin-top: 50px;
  }
    
  .intro-text p {
    font-size: 18px;
  }

  .intro-text h3 {
    font-size: 30px;
  }
}

/* telefon*/
@media (max-width: 600px) {

  .kontakt_sektsioon, 
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 85%;
    max-width: 300px;
    padding: 0 !important;
  }

  .kontakt_sektsioon {
    margin: 5vh auto;
  }

  .container {
    margin: 15vh auto 5vh;
  }

  .kontakt_kaart {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 150px;
    max-height: 160px;
    margin: 0;
    box-sizing: border-box;
  }

  .kontakt_pilt {
    height: 160px;
    width: 130px;
    min-width: 130px;
    margin-right: 15px;
  }

  .kontakt_h2 {
    font-size: 16px;
  }

  .kontakt_p {
    font-size: 14px;
    white-space: nowrap;
  }

  .fas {
    font-size: 12px;
  }

  .intro-text, .contact-card {
    width: 100%;
    text-align: center;
  }

  .intro-text h3 {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .intro-text p {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .field {
    width: 100%;
    text-align: left;
  }

  .field input, .field textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .btn-send {
    display: block;
    margin: 20px auto 30px auto;
    width: fit-content;
  }
}


/*======PÕHIKIRI======*/
.põhikiri_p {
  text-align: justify;
  color: #f6f3ee;
  line-height: 1.5;
  font-size: 18px;
}

.põhikiri_section {
  margin: 15vh 10vh 20vh 10vh;
}

.esimene {
  text-align: left;
}

/*väiksemad ekraanid - põhikiri*/

/*tahvelarvuti*/
@media (max-width: 1024px) {

    .põhikiri_p {
      font-size: 16px;
    }

    .põhikiri_section {
      margin: 15vh 5vh 5vh 5vh;
    }
}

/*telefon*/
@media (max-width: 600px) {

    .põhikiri_p {
      font-size: 16px;
    }

    .põhikiri_section {
      margin: 15vh 5vh 5vh 5vh;
    }
}

/*======ARHIIV======*/

.archive-section {
  background-color: #083D77;
  padding: 60px 0;
  color: white;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin-top: 15vh;
}

.year-title {
  list-style: none;
  text-align: center;
  font-size: 60px;
  font-weight: bold;
  color: #f6f3ee;
  cursor: pointer;
  margin-bottom: 50px;
}
.year-title::-webkit-details-marker { display: none; }

.timeline-wrapper {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 40px 0;
}

/*keskjoon*/
.vertical-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #f6f3ee;
  z-index: 1;
}

.timeline-item {
  display: flex;
  width: 100%;
  align-items: flex-start;
  margin-bottom: 30px;
  position: relative;
}

.content-side, .date-side {
  flex: 1;
  display: flex;
  box-sizing: border-box;
}

/*kastide kujundus*/
.event-details {
  width: 100%;
  max-width: 450px;
}

.event-box {
  background: #083D77;
  color: #f6f3ee;
  padding: 15px 20px;
  font-weight: bold;
  text-transform: uppercase;
  border: 3px solid #f6f3ee;
  border-radius: 14px;
  text-align: center;
  font-size: 18px;
  list-style: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

details [open] .event-box {
  border-bottom: none;
  border-radius: 14px 14px 0 0;
}

.event-box::-webkit-details-marker { display: none; }

.event-info {
  background: #083D77;
  padding: 15px;
  border: 3px solid #f6f3ee;
  border-top: none;
  border-radius: 0 0 14px 14px;
  text-align: left;
}

/*kuupäeva kujundus*/
.date {
  font-size: 18px;
  color: #b0abab;
  padding-top: 15px;
}

/*täpp joone peal*/
.dot {
  width: 16px;
  height: 16px;
  background: #f6f3ee;
  border: 5px solid #083D77;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  z-index: 3;
}

/*vasakpoolne sisu*/
.timeline-item.left .content-side {
  justify-content: flex-end;
  padding-right: 45px;
}
.timeline-item.left .date-side {
  justify-content: flex-start;
  padding-left: 45px;
}

/*parempoolne sisu*/
.timeline-item.right .content-side {
  justify-content: flex-start;
  padding-left: 45px;
}
.timeline-item.right .date-side {
  justify-content: flex-end;
  padding-right: 45px;
}

.archive-video, .archive-picture {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display:block;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/*väiksemad ekraanid - arhiiv*/

/*tahvelarvuti*/
@media (max-width: 1024px) {

    .event-details {
        max-width: 300px;
    }

}

/*telefon*/
@media (max-width: 600px) {

  .archive-section {
    margin-top: 50px;
  }
  
  .vertical-line, 
  .dot {
    display: none !important;
  }

  .year-title {
    text-align: center !important;
    padding: 0 !important;
    margin: 15px 0 15px 0 !important;
    display: block !important;
    font-size: 30px;
  }

  .timeline-item, 
  .timeline-item.left, 
  .timeline-item.right {
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    padding: 0 15px !important;
    text-align: center !important;
  }

  .content-side {
    order: 1 !important; 
    width: 100% !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .date-side {
    order: 2 !important; 
    width: 100% !important;
    justify-content: center !important;
    padding: 0 !important;
    margin-top: 12px !important; 
  }

  .event-details {
    max-width: 300px;
  }

  .event-info {
    text-align: justify;
  }

  .event-box {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 18px !important;
    padding: 15px !important;
  }

  .date {
    display: block !important;
    padding: 0 !important;
    text-align: center !important;
    color: #b0abab;
    font-size: 16px;
  }
}

/*FOOTER*/
footer {
  margin: 30px 60px 30px 60px;
}

footer p {
  color: #f6f3ee;
  font-size: 16px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
}

.footer-bankinfo {
    display: flex;
    flex-direction: column;
    text-align: right;
}

hr {
  width: 90%;
  margin: 0 auto;
  border: 1px solid #f6f3ee;
  opacity: 0.5;
}

/*väiksemad ekraanid - footer*/

/*telefon*/
@media (max-width: 600px) {

  footer {
    margin: 30px;
  }

  footer p {
    font-size: 12px;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bankinfo {
    text-align: center;
    margin-top: 10px;
  }

  hr {
    width: 80%;
  }
}