/* ════════════════════════════════════════════════ */
/* ▶ SECTION STYLING                                */
/* ════════════════════════════════════════════════ */

.section1 {
  position: relative;
  background: linear-gradient(180deg, #0B2A4A 100%, #3A5C82 100%);
  padding-bottom: 120px;
  overflow: visible;
  z-index: 0;
}



/* Decorative stars pattern for the upper part of section1 */
.section1::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  background: url("data:image/svg+xml;utf8,<svg width='400' height='220' viewBox='0 0 400 220' fill='none' xmlns='http://www.w3.org/2000/svg'><g opacity='0.7'><circle cx='30' cy='40' r='2.5' fill='white'/><circle cx='120' cy='60' r='1.5' fill='white'/><circle cx='200' cy='30' r='2' fill='white'/><circle cx='350' cy='80' r='1.7' fill='white'/><circle cx='300' cy='50' r='2.2' fill='white'/><circle cx='80' cy='120' r='1.2' fill='white'/><circle cx='250' cy='110' r='1.8' fill='white'/><circle cx='370' cy='30' r='1.3' fill='white'/><circle cx='60' cy='180' r='1.5' fill='white'/><circle cx='180' cy='170' r='1.1' fill='white'/><circle cx='320' cy='160' r='1.6' fill='white'/></g></svg>") repeat-x top center;
  background-size: 400px 220px;
  pointer-events: none;
  z-index: 2;
}

.section2 {
  background: linear-gradient(180deg, #ffce00 80%, #ffe97a 100%);
}
.section3 {
  background: linear-gradient(180deg, #f17fb2 80%, #ffe0ef 100%);
}
.section4 {
  background: linear-gradient(180deg, #04a7d9 80%, #b8eafd 100%);
}


/* Sinterklaas SVG watermark positioned bottom-left of section1 */
.section1 { position: relative; }

.section1 .sint-svg {
  position: absolute;
  left: 20px;
  bottom: 6px;
  width: 500px;
  height: auto;
  pointer-events: none;
  z-index: 3;
  transform: translateY(6px);
  filter: drop-shadow(0 6px 18px rgba(11,86,214,0.04));
}

/* smaller on narrow screens */
@media (max-width: 720px) {
  .section1 .sint-svg {
    width: 200px;
    left: 10px;
    bottom: 5px;
  }
}

.rooftop {
  border: none;
  height: 20px;
  background: #182029; /* Choose your color */
  width: 100%;
}


/* ════════════════════════════════════════════════ */
/* ▶ ABOUT US FLEXBOX                               */
/* ════════════════════════════════════════════════ */

.flexbox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin: 25px
}

.flexbox-item {
    flex-grow: 1;
    flex-basis: calc(33.33% - 40px);
    max-width: 300px;
    min-width: 25vw;
    align-self: center;
    text-align: justify;
    margin: 10px;
}


/* ABOUT US FLEXBOX (separate from news) */
.about-flexbox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin: 25px;
}

.about-item {
    flex: 1 1 350px;
    flex-direction: column;

    /* flex-basis: calc(33.33% - 40px); */
    /* max-width: 300px; */
    /* min-width: 25vw; */
    align-self: stretch; /* Ensures equal height within flex container */
    text-align: justify;
    margin: 10px;
    background: white;
    color: #222;
    border-radius: 16px;
    box-shadow: 5px 15px 10px rgba(0, 0, 0, 0.1);
    padding: 25px 25px;
    box-sizing: border-box;
    /* height: 100%;  */
}

.about-title {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: center;
}

.about-content {
    font-weight: lighter;
    line-height: 1.5;
    color: #333;
    font-size: 1.1rem;
    text-align: justify;
    margin-top: 20px;
}


/* ════════════════════════════════════════════════ */
/* ▶ NEWS FLEXBOX                                   */
/* ════════════════════════════════════════════════ */

.news-flexbox {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
    gap: 30px;
    margin: 25px 5%;
}

.news-item {
    flex: 1 1 350px;
    flex-direction: column;
    /* max-width: 80%; */
    /* min-width: 0; */
    text-align: justify;
    margin: 10px;
    background: white;
    color: #222;
    border-radius: 16px;
    box-shadow: 5px 15px 10px rgba(0, 0, 0, 0.1);
    padding: 25px 25px;
    box-sizing: border-box;
    display: flex;
}

.news-item .news-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center center;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #eee;
}

.post-title {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: center;
}

.post-date {
    display: block;
    font-size: 1.1rem;
    color: #5f5f5f;
    font-weight: lighter;
    text-align: center;
    margin: 10px 0px;
}

.post-content {
    font-weight: lighter;
    line-height: 1.5;
    color: #333;
    font-size: 1.1rem;
    text-align: justify;
    margin-top: 20px;
    margin-bottom: 30px;
}

.post-tags {
    font-weight: lighter;
    color: #184ad4;
    background-color: #d5def7;
    font-size: 18px;
    display: inline; /* Only background behind text */
    padding: 4px 6px;
    border-radius: 5px;
}

.read-more {
    display: inline-block;
    margin-top: auto;
    font-size: 1rem;
    text-decoration: none;
    color: #0051a4;
    transition: all 0.5s ease-in-out;
    position: relative; /* Ensure ::after is positioned relative to this */
    align-self: flex-start;
}


.read-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #0051a4;
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}


/* ════════════════════════════════════════════════ */
/* ▶ MEDIA QUERIES                                  */
/* ════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .news-flexbox {
        gap: 20px;
    }
    .news-item {
        max-width: 100%;
        min-width: 180px;
        flex: 1 1 45%;
    }
    .about-flexbox {
        gap: 20px;
    }
    .about-item {
        max-width: 100%;
        min-width: 180px;
        flex: 1 1 45%;
    }
}

@media (max-width: 600px) {
    .news-flexbox {
        flex-direction: column;
        gap: 16px;
    }
    .news-item {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
        padding: 20px 20px;
    }
    .news-item .news-image {
        height: 120px;
    }
    .flexbox {
        flex-direction: column;
        gap: 16px;
    }
    .flexbox-item {
        min-width: 0;
        max-width: 100%;
        flex-basis: 100%;
    }
    .about-flexbox {
        flex-direction: column;
        gap: 16px;
    }
    .about-item {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
        padding: 20px 20px;
    }
}


.event-item {
  display: flex;
  flex-wrap: wrap;
  color: black;
  background-color: white;
  align-items: stretch;
  gap: 50px;
  border: 3px solid transparent;
  border-radius: 16px;
  width: 80vw;
  max-width: 1050px;
  min-height: 120px;
  max-height: 220px;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 15px;
  padding-bottom: 15px;
  box-shadow: 5px 15px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  margin-bottom: 20px;
  transition: all ease-in 0.2s;
  box-sizing: border-box;
}

.event-date {
    display: inline-block;
    align-content: center;
    /* border: 2px solid #37ee4f; */
}

.event-weekday {
    font-weight:lighter;
    font-size: 20px;
}

.event-day {
    font-weight: bold;
    font-size: 30px
}

.event-month {
    font-weight: lighter;
    font-size: 20px
}

.event-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-around;
    /* border: 2px solid #3740ee; */
    text-align: left;
}

.event-header {
    display: flex;
    flex-direction: row;         /* Place title and time on the same line */
    align-items: center;         /* Vertically center them */
    justify-content: space-between; /* Push time to the right */
    width: 100%;
    gap: 2em;                    /* Optional: space between title and time */
}

.event-title {
    /* border: 2px solid #37e8ee; */
    font-size: 1.4rem;
    font-weight: 700;
}

.event-description {
    /* border: 2px solid #eeb437; */
    font-size: 1.1rem;
    font-weight: lighter;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 5px;
}

.event-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px; /* optional: space between time and location */
}

.event-time {
    font-weight: lighter;
    color: #5f5f5f;
    /* background-color: #f5defff5; */
    font-size: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 5px;
    text-align: left;
    width: 70px;
}

.event-location {
    font-weight: lighter;
    color: #5f5f5f;
    /* background-color: #d5def7; */
    font-size: 20px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 5px;
    text-align: left;
    width: 200px;
}

.tag.recurring-tag {
    background-color: #f5e9fa;
    color: #a023d6;
}

.tag.extra-dates-tag {
    background-color: #1b79c611;
    color: #1876c3;
}

a:hover {
    text-decoration: none;
}




@media (max-width: 700px) {
  .event-item {
    width: 96vw;
    min-width: 0;
    max-width: 100vw;
    height: auto;
    min-height: 0;
    max-height: none;
    padding-left: 10px;
    padding-right: 10px;
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }

  .event-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .event-time, .event-location {
    min-width: 0;
    width: 100%;
    text-align: left;
  }

}

.sint-button {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: white;
    font-size: clamp(0.8rem, 1.2rem, 1.5rem);
    font-weight: bolder;
    background-color: #e20613;
    border: none;
    border-radius: 50px;
    padding: clamp(5px, 2vw, 10px) clamp(10px, 1.5vw, 20px);
    text-decoration: none;
    transition: all 0.5s ease;
}

.sint-button:hover {
    background-color: white;
    cursor: pointer;
    color: #182029;
}

/* Halloween event decorations */
.halloween-event {
    position: relative;
    overflow: visible;
}

.halloween-event::before {
    content: "🕸️";
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 30px;
    z-index: 10;
    opacity: 0.7;
}

.halloween-event::after {
    content: "🕷️";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 18px;
    z-index: 11;
    animation: spider-swing 4s ease-in-out infinite;
}

@keyframes spider-swing {
    0%, 100% { 
        transform: rotate(-5deg) translateY(0px); 
    }
    50% { 
        transform: rotate(5deg) translateY(2px); 
    }
}