* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::-webkit-scrollbar {
    display: none;
}

* {
    scrollbar-width: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    background-color: #fff;
}

.nav-logo img {
    height: 120px;
    width: 150px;
    font-weight: bold;
    margin-left: 80px;
}

.navbar-menu-icon {
    position: relative;
    width: 30px;
    height: 30px;
    background: transparent;
    cursor: pointer;
    display: none;
}

.navbar-menu-icon input {
    display: none;
}

.navbar-menu-icon span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: black;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    right: 5%;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.navbar-menu-icon span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
}

.navbar-menu-icon span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.navbar-menu-icon span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.navbar-menu-icon input:checked~span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 5px;
}

.navbar-menu-icon input:checked~span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
}

.navbar-menu-icon input:checked~span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 28px;
    left: 5px;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    margin-right: 270px;

}

.nav-list li {
    margin: 0 25px;
}

.nav-list a {
    color: black;
    text-decoration: none;
    font-size: 1.07rem;
    font-family: "PT Serif", serif;
    font-weight: 600;
    font-style: normal;
}

.nav-list .list-item::after {
    content: "";
    width: 0;
    height: 2px;
    display: block;
    margin-top: 1px;
    right: 0;
    background: #000;
    transition: width 0.4s ease;
}

.nav-list .list-item:hover::after {
    width: 100%;
    left: 0;
    background: #000;
}

.nav-buttons {
    position: absolute;
    right: 0%;
    top: 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
}

.nav-library-btn {
    padding: 12px 28px;
    border-radius: 50px;
    background-color: #60c4a0;
    color: black;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: "PT Serif", serif;
    font-weight: 600;
    font-style: normal;
    border: 1px solid black;
    box-shadow: #777;
    letter-spacing: 0.5px;
}

.nav-signin-btn {
    padding: 12px 30px;
    border-radius: 50px;
    background-color: #d4b036;
    color: black;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: "PT Serif", serif;
    font-weight: 600;
    font-style: normal;
    border: 1px solid black;
    box-shadow: #777;
    letter-spacing: 0.8px;
    transition: all 0.3s ease-in;
}

.nav-library-btn:hover {
    background-color: #000;
    color: rgb(163, 204, 82);
    font-size: 0.88rem;
    padding: 12px 28px;
}

.nav-signin-btn:hover {
    background-color: #000;
    color: #4cbb92;
    /* padding: 11.5px 29px;
    font-size: 0.88rem; */
}

.hover-items-hide {
display: none;
}

.nav-hover-items {
    color: #000;
    width: 210px;
    height: 270px;
    background: transparent;
    position: absolute;
    z-index: 99;
    margin-left: 350px;
    transition: linear 0.5s ease-in-out;
}

ul {
    list-style: none;
}
ul a{
    text-decoration: none;
    color: #000;
}
ul a:hover{
    color: #a06119;
}

.nav-items {
    margin-left: 30px;
    padding-top: 30px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    row-gap: 0.5rem;
    z-index: 99;
    background-color: #fff;
    width: 250px;
    height: 180px;
    font-family: "PT Serif", serif;
    font-weight: 600;
    font-style: normal;
    transition: all 5s ease-in-out;
}

.nav-items .nav-list-item {
    font-size: 1.1rem;
}

.nav-list-item:hover {
    color: rgb(240, 202, 132);
}


.event-section{
    width: 100%;
    min-height: 80vh;
}

.events-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    grid-auto-rows: 1fr;
    justify-content: center;
    width: 100%;
    padding: 30px;
    @media (width >= 40em /*640px*/) {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
    }
    @media (width >= 60em /*960px*/) {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
}

.events-container a{
    text-decoration: none;
    color: #000;
}

.event-card {
    border: 1px solid #000;
    width: 430px;
    height: 400px;
    /* text-align: left; */
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: column;
    overflow: hidden;
}

.event-date {
    font-size: 0.9rem;
    font-weight: normal;
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    font-style: normal;
    margin: 2em;
    position: relative;
    z-index: 2;
    padding-top: 10px;
    padding-left: 20px;
}

.event-title {
    font-size: 3.2rem;
    font-weight: bold;
    font-family: "TiemposTextWeb", Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-style: normal;
    margin-bottom: 47px;
}

.event-card-part{
    gap: 90px;
    margin-left: 50px;
    position: relative;
    z-index: 2;
    margin-top: 20px;
}
.event-card-part hr{
 width: 40px;
 height: 6px;
 background-color: #000;
 /* margin-left: 30px; */
 border: none;
}

.event-title-2 { 
    font-size: 3rem;
}

.event-category {
    font-size: 0.7rem;
    font-weight: bold;
    color: #000;
    /* padding-left: 40px; */
    font-family: "TiemposTextWeb", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-style: normal;
    padding-bottom: 100px;
    margin-left: 70px;
    position: relative;
    z-index: 2;
}

.event-card::before {
    content: '';
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;  
    opacity: 0;
    transition: opacity 0.3s ease;

}

.event-card:hover .event-date, 
.event-card:hover .event-card-part, 
.event-card:hover .event-category {
    color: white;
}
.event-card:hover p{
 color: white;
}
.event-card:hover hr{
    background-color: white;
}

.event-card img {
    width: 430px;
    height: 400px;
   opacity: 0;
   position: absolute;
   object-fit: cover;
   z-index: 1; 
   transition: opacity 0.5s ease;
}

@media (min-width: 640px) and (max-width: 960px) {
    .events-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-card img{
        width: 430px;
        height: 400px;
    }
}
@media (max-width: 640px) {
    .events-container {
        grid-template-columns: repeat(1, 1fr);
        justify-content: center;
        width: fit-content; 
        margin: 0 auto;
    }
    .event-title {
        font-size: 2.8rem;
    }

    .event-category {
        margin-left: 50px;
    }

    .event-card img{
        width: 430px;
        height: 400px;
    }
}

@media (min-width: 640px) and (max-width: 960px) {
    .events-container {
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        width: fit-content; 
        margin: 0 auto;
    }
    .event-title {
        font-size: 2.8rem;
    }

    .event-category {
        margin-left: 30px;
    }
}


@media only screen and (max-width:600px) {
    .nav-list {
        position: absolute;
        top: 2%;
        background-color: #0056b3;
        height: 80vh;
        width: 80%;
        color: #fff;
        z-index: 9;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding-top: 30px;
        gap: 30px;
       display: none;
      }
    
      .nav-list .list-item {
        color: white;
      }
    
      .nav-list .list-item:hover::after {
        width: 10%;
        background: #e0d6d6;
      }
      .nav-items a{
        font-size: 0.7rem;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    
      .nav-items {
        width: 180px;
        height: 150px;
        background-color: #fff;
        color: #000;
        font-size: 0.4rem;
        position: absolute;
        left: -85%;
        top: 20%;
      }
      .nav-items:hover{
        color: rgb(179, 131, 44);
      }
    
      .nav-buttons {
        display: none;
      }
    
      .navbar-menu-icon {
        display: inline;
        margin-right: 30px;
        margin-top: 20px;
        font-size: 2.1rem;
        z-index: 9;
      }
    
      .navbar {
        display: flex;
        justify-content: space-between;
        width: 100vw;
        margin: 0;
        padding: 0;
      }
    
      .nav-logo {
        margin-left: -80px;
        padding-bottom: 20px;
      }
    
      .nav-logo img {
        height: 100px;
        width: 120px;
      }
}