/* ------------------------
   GENERAL
------------------------- */

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: "Google Sans", sans-serif;
    background: #f5e9fb;
    color: #333;
}

/* ------------------------
   MAIN
------------------------- */

main {
    flex: 1;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

h4 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 300;
}

main p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.event-section {
    margin-top: 60px;
}

.event-section h2 {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 300;
    margin-bottom: 30px;
}

/* ------------------------
   EVENT LIST
------------------------- */

.event-list {
    max-width: 1100px;
    margin: auto;

    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ------------------------
   EVENT CARD
------------------------- */

.event-card {
    display: flex;
    align-items: center;

    background: white;

    border-radius: 18px;

    padding: 20px 24px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);

    transition: 0.25s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
}

/* ------------------------
   LOGO
------------------------- */

.event-logo {
    width: 120px;
    height: 120px;

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

    flex-shrink: 0;

    margin-right: 30px;
}

.event-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ------------------------
   INFO
------------------------- */

.event-info {
    display: flex;
    flex-direction: column;
}

.event-date {
    color: #777;
    font-size: 1.0rem;
    margin-bottom: 6px;
}

.event-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-location {
    color: #555;
    font-size: 1.25rem;
}

/* ------------------------
   FOOTER
------------------------- */

footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ------------------------
   MOBILE
------------------------- */

@media (max-width: 700px) {

    .event-card {
        flex-direction: column;
        text-align: center;
    }

    .event-logo {
        margin: 0 0 20px;
    }

    .event-title {
        font-size: 1.6rem;
    }

    .event-date,
    .event-location {
        font-size: 1rem;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }
}

.more-button {
    display: block;
    margin: 25px auto 0;

    background: #8f63d4;
    color: white;

    border: none;
    border-radius: 12px;

    padding: 12px 24px;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.more-button:hover {
    background: #7649bf;
    transform: translateY(-2px);
}

#extra-events {
    display: none;
    flex-direction: column;
    gap: 22px;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: #222;
  color: white;
  font-size: 20px;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;

  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
}
