





/*single-event.php styles*/

/* Hero container */
.event-hero {
  position: relative;
  padding: 200px 30px 60px;
  text-align: center;
  width: 100%;
  margin-top: -200px;
  overflow: hidden;
}

.event-hero::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: url("<?php echo get_the_post_thumbnail_url(get_the_ID(), 'full'); ?>") no-repeat center center;
  background-size: cover;
  filter: grayscale(50%) blur(1.5px);
  z-index: -2;
}

.event-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#ffffff 9.24%, rgb(255 255 255 / 49%) 48.32%, #f2f2f2 77.73%);
  z-index: -1;
}

.event-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.event-hero-thumbnail {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.event-hero-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Event details section */
.event-details {
  background: #fff;
  padding: 40px 80px;
  margin-top: -40px; /* overlap hero */
  border-radius: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 3;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.event-meta {
  font-size: 16px;
  margin-bottom: 25px;
  color: #555;
}

.event-description {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.6;
}

.event-meta-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.event-meta-list li {
  margin-bottom: 6px;
  font-size: 15px;
}

.event-meta-list strong {
  font-weight: 600;
}

.map-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 4px;
}

.event-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.event-details-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  text-align: center;
}


.event-detail h3 {
  font-size: 20px;
  font-weight: 700;
  color: #00105e;
  margin: 0 0 10px;
}

.event-detail p {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.event-cta {
  text-align: left;
}

.event-register-btn {
  display: inline-block;
  background: #946553;
  color: #fff;
  padding: 5px 20px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: 20px;
}

.event-register-btn:hover {
  background: #6c4739;
  color:#fff;
}


/* Related events */
.related-events {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.related-events h2 {
  font-size: 24px;
  margin-bottom: 30px;
}

.related-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.related-event-card {
  background: #fafafa;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.related-event-card:hover {
  transform: translateY(-4px);
}

.related-event-image img {
  width: 100%;
  /*height: 180px;*/
  object-fit: cover;
}

.related-event-title {
  padding: 15px;
  font-size: 18px;
  font-weight: 600;
}



.event-overlay-title{
    color:#fff;
    text-align: left;
}


.event-overlay-meta{
    color:#fff;
    text-align: left;
    font-size: 10px;
}


/*Archive-event.php styles*/ 

.hero-events-section {
    position: relative;
    text-align: center;
    width: 100%;
    min-height: 600px;
    margin-top: -250px;
    overflow: hidden;
    z-index: 0; /* stacking context */
}


.hero-events-section::before {
    content: "";
    position: absolute;
    inset: -30px;
    background: url("https://uus.vabakonnamaja.ee/wp-content/uploads/pexels-rdne-6518750-scaled.jpg") no-repeat center center;
    background-size: cover;
    filter: grayscale(50%) blur(1.5px);
    z-index: -2; 
}

.hero-events-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(#ffffff 9.24%, rgb(255 255 255 / 49%) 48.32%, #f2f2f2 77.73%);
    z-index: -1;
}


.hero-events-container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-content .ast-container {
    display: block;
}

/* === FADE TRANSITION === */
.fade-transition {
    height: 80px;
    background: linear-gradient(rgba(255, 255, 255, 0), #f2f2f2);
    margin-top: -80px;
    position: relative;
    z-index: 0;
}

/* === GREEN SECTION === */
.green-section {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    z-index: 1; /* kõrgem kui hero */
}



/* === EVENTS GRID + CARDS === */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto 60px;
}

.event-card-new {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1)!important;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: scale(1);
}

.event-card-new:hover {
    transform: translateY(-4px);
}

.event-card-new.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.event-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.event-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: linear-gradient(to top, rgb(0 2 61) 20%, rgb(0 0 0 / 9%) 100%);*/
  z-index: 1;
  pointer-events: none; /* et klikid ikka pildile/linkidele läheksid */
}


.hero-events-section {
  position: relative;
  margin-bottom: 40px;
}

.hero-events-slider {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  padding: 40px 0;
}

.swiper{
  margin-top:200px;
  height:800px;
}

.swiper-horizontal > .swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal, .swiper-pagination-custom, .swiper-pagination-fraction {
    margin-bottom: 200px;
}

.green-section {
    margin-top: -200px;
}

.hero-events-slider .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: scale(2);
  opacity: 1;
}

.hero-events-slider .swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
  padding: 200px 0;
}

.hero-events-slider .swiper-slide-prev,
.hero-events-slider .swiper-slide-next {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  padding: 200px 0;
}

.hero-events-slider .event-card-hero {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: #fff;
  text-decoration: none;
}

.hero-events-slider .event-image {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-events-slider .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-events-slider .swiper-slide-active .event-image {
  transform: scale(2.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 2;
  position: relative;
}

.hero-events-slider .event-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
  color: #fff;
}



.hero-events-slider .swiper-button-next,
.hero-events-slider .swiper-button-prev {
  padding: 100px;
  color: #fff;
  top: var(--swiper-navigation-top-offset, 60%);
}

.hero-events-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.6;
}

.hero-events-slider .swiper-pagination-bullet-active {
  opacity: 1;
}


/*_______*/

.event-content {
    padding: 12px 15px;
    flex-grow: 1;
}

.event-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}


.event-location {
    margin: 0;
    font-size: 14px;
    color: #666;
}





.event-date-desc{
    color: black;
    font-size: 15px;
}




/* === FILTER BUTTONS === */
.event-filters {
    text-align: center;
    margin: 20px auto 40px;
}

.filter-btn {
    border: none;
    border-radius: 4px;
    color: #fff;
    padding: 10px 22px;
    margin: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background .2s ease;
}

.filter-btn:hover {
    background: #060086;
}

.filter-btn.active {
    background: #fff;
    color: #969696;
}



@media (max-width: 768px) {

    .green-section {
        margin-top: -400px;
    }
    .events-grid {
      grid-template-columns: 1fr;
    }
    .event-card-new {
        width: 100%;
        margin: 0 auto;
    }
    .event-details-grid {
    grid-template-columns: repeat(2, 1fr);
    }
    .event-details {
    padding: 40px 10px;
    margin: 0px 30px;
    }
    .event-cta {
    text-align: center;
    }
    .event-details-grid {
    text-align: left;
    }
    .highlight-hero-container{
        display:none!important;
    }
    .related-events-section {
        margin: 0px 30px;
    }

}

  

/* === HERO CARDS === */
.highlight-hero {
    background: #fff7ee;
    padding: 80px 20px;
}

.highlight-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;

    border-radius: 20px;
}

.highlight-hero-text h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-align: left;
    padding-left: 40px;
}

.highlight-hero-text p {
    font-size: 16px;
    line-height: 1.6;
    color: white;
    text-align:left;
    padding-left: 40px;
}

.highlight-hero-cards {
    position: relative;
    height: 320px;
}

.highlight-card {
    width: 330px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: absolute;
    transition: transform .3s ease, box-shadow .3s ease;
}

.highlight-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0px;
}

.highlight-card h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #222;
}

.highlight-card p {
    font-size: 14px;
    color: #666;
}

.card1 { top: 0; left: 0; transform: rotate(-6deg); }
.card2 { top: 40px; left: 150px; transform: rotate(6deg); }
.card3 { top: 40px; left: 320px; transform: rotate(-2deg); }

.highlight-card:hover {
    transform: scale(1.05) rotate(0);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}


.related-events-section {
    padding-top: 50px;
}


.blue-section::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    bottom: -30px;
    left: -30px;
    background: url("https://uus.vabakonnamaja.ee/wp-content/uploads/Ruumide-rent-Parnus-Saal_2-scaled.jpg") no-repeat center center;
    background-size: cover;
    filter: blur(5px);
    transform: scale(1.1); 
    z-index: -2;

}


.blue-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(#ffffff 24.24%, rgba(255, 255, 255, 0.43) 48.32%, #f2f2f2 77.73%);
    z-index: -1;
    transform: scale(1.3);
}

.blue-section {
  position: relative;
    padding: 200px 30px; /* veidi ruumi ümber teksti */
    text-align: center; /* tekst keskele */
    width:100%;
    min-height: 600px;
    height: auto;          /* laseb kasvada mobiilis */
    margin-top: -200px;
    z-index: -1;
    overflow: hidden; /* nüüd saab scrolli eemaldada */

}



.site-content .ast-container {
display: block;
} 

.blue-section-container{
  max-width: 1200px;
  margin: 0 auto; /* keskendab konteineri */
}


/* ainult mobiili puhul (nt alla 768px) */
@media (max-width: 768px) {
    .blue-section-container,
    .green-section-container {
        margin: 0px 40px; /* lisab ääredele margini */
        text-align: left; /* soovi korral vasakule joondus mobiilis */
    }
}


/* tabletivaade */
@media (min-width: 769px) and (max-width: 1024px) {
    .blue-section-container,
    .green-section-container {
        margin: 0 40px; /* natuke rohkem ruumi kui mobiilis */
    }
}


/*RUUMID*/
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* täpselt 4 kaarti */
    gap: 25px;
    max-width: 1200px;
    margin: 20px auto 60px; /* vasak + parem auto = keskendab */
}

.room-card {
    /*max-width: 300px;*/
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform .2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* kaardi sisu */
.room-content {
    padding: 12px 15px;
    flex-grow: 1;
}


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


/* pildi konteiner 16:9 */

/*
.room-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.room-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(177deg, rgba(0, 0, 0, 0.32), rgba(95, 69, 48, 1));
  z-index: 1;
}

.room-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  z-index: 2; 
}


.room-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.room-meta li {
    background: #F2F2F2;
    color: #5e5e5e;
    font-weight: 500;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
} 
*/


@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr); /* tahvlis 2 */
    }
}

@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: 1fr; /* mobiilis 1 */
    }
    .event-desc-button {
    display: block;
    text-align: center;
    }
    .event-content {
    text-align: center;
    }
}

.fade-transition {
    height: 80px;
    background: linear-gradient(
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,1) 100%
    );
    margin-top: -80px; /* katab serva */
    position: relative;
    z-index: -1;
}








