/* ================================
   Background Image
=================================*/
body.events-page {
    background-image: url('/images/wormhole.png');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

#upcoming-events {
      display: inline-block;
      position: relative;
      max-width: 500px;
      margin: 40px 20px;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
      text-align: left;
    }

    #upcoming-events h2 {
      margin-top: 0;
      font-size: 1.9rem;
    }

  

    #upcoming-events ul {
      list-style: none;
      padding: 0;
    }

    #upcoming-events li {
      margin-bottom: 15px;
      padding: 10px;
      border: 1px solid #555;
      border-radius: 6px;
    }

    #upcoming-events li strong {
      color: #ffd700;
    }

    /* ================================
    Events Calendar Styling
=================================*/
.events-container {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Wrapper for maintaining aspect ratio */
.events-container .calendar-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Default: 16:9 aspect ratio */
    max-height: 1200px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 1);
}

/* Responsive iframe inside wrapper */
.events-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

/* Adjust height on smaller screens */
@media (max-width: 600px) {
    .events-container .calendar-wrapper {
        padding-bottom: 0; /* Taller aspect ratio for small screens */
    }
}
