/*  Events Page CSS */
/* General Styles */

  @import url('https://fonts.googleapis.com/css2?family=Joan&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;300;400;500&family=Joan&family=Cinzel:wght@400;500&family=Montserrat:wght@300;400;500&display=swap');

  @import url('https://fonts.googleapis.com/css2?family=Helvetica+Neue:wght@400;700&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;700&display=swap');
  @import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');



  body {
    margin: 0;
    /* font-family: 'Joan','Arial', sans-serif; */
    background-color: rgb(239,239,239);
    color: #1e1e3f;
    font-weight: 250 !important;
  }

  /* blog page details sections */
  .section-upcoming-events, .section-3 {
    background-color: rgb(241,238,226);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 8%;
    gap: 50px;
    flex-wrap: wrap;
  }


  .section-2{
    background-color: rgb(239,239,239);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 8%;
    gap: 50px;
    flex-wrap: wrap;
  }



  .text {
    flex: 1 1 500px;
    max-width: 500px;
    justify-content: center;
    align-items: center;
    
  }

  .text h2 {
    font-size: 30px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-weight: 500;
    color: #1e1e3f !important;
    font-family: 'Joan', serif !important;
  }

  .text h4 {
    font-size: 17px;
    color: #d18c78;
    font-family: 'Joan', serif !important;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 400;
  }

  .text p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 300;
    color: #1e1e3f;
    font-family: 'Raleway', serif;
  }

  .image {
    flex: 1 1 500px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-radius: 12px;
  }

  .image img {
    width: 100%;
    height: 500px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  /* Overlapping image setup*/
  .image-group {
    position: relative;
    width: 100%;
    max-width: 600px;
  }

  .image-group img.bg-img {
    width: 100%;
    border-radius: 12px;
    object-fit: contain;
    
  }

  .image-group img.overlay-img {
    position: absolute;
    bottom: -60px;
    left: -100px;
    width: 65%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    max-width: 250px;
    object-fit: cover;
  

  }

  /* moments-section */
  .moments-section{
    background-color: rgb(239,239,239);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-height: 1400px;
    padding : 100px 20px;
    gap: 50px;
    flex-wrap: wrap;
  }

  .moments-section .left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 1200px;
    width: 700px;
    max-width: 700px;
    background-color: rgb(239,239,239);
  }


  .left .text {
    flex: 1;
    padding-top: 100px;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    text-align:start;
  }

  .left-image {
    flex: 0 0 auto;
    height: 400px;
    max-height: 450px;
    width: 400px;
    max-width: 400px;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 12px;
  }

  .left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .right-image {
    flex: 1 1 600px;
    max-width: 700px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 12px;
    background-color: rgb(239,239,239);
  }

  .right-image img {
    width: 700px;
    height: 1200px;
    max-height: 1200px;
    max-width: 700px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  


  @media screen and (max-width: 768px) {
    section {
      flex-direction: column;
      padding: 60px 6%;
      text-align: center;
    }

    .image-group img.overlay-img {
      position: static;
      margin-top: 20px;
      width: 100%;
    }

    .card {
      flex: 0 0 100%;
      max-width: 100%;
    }

    .moments-section {
      flex-direction: column;
      align-items: center;
      padding: 60px 20px;
      gap: 40px; /* same spacing between all blocks */
    }

    .moments-section .left {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: transparent;
    }

    .left-image {
      width: 100%;
      max-width: 400px;
      height: auto;
      margin-bottom: 20px;
      border-radius: 12px;
    }

    .left-image img {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 12px;
    }

    .left .text {
      max-width: 400px;
      text-align: center;
      padding: 0 10px;
    }

    .right-image {
      width: 100%;
      max-width: 400px;
      justify-content: center;
      align-items: center;
      padding: 0;
    }

    .right-image img {
      width: 100%;
      height: auto;
      object-fit: cover;
      border-radius: 12px;
    }
  }
