@font-face {
    font-family: 'Pacifico';
    src: url('../fonts/Pacifico/Pacifico-Regular.ttf') format('truetype'); /* Adjust path and format as necessary */
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;

    
}

/* Ensure two events per row */
@media (min-width: 600px) {
    .events-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .events-container {
        margin-left: 180px;
        margin-right: 180px;
    }
}

@media (max-width: 992px) {
    .events-container {
        margin-left: 50px;
        margin-right: 50px;
    }
}

.right-margin{
    margin-right: 5px;
}

.left-margin{
    margin-left: 5px;
}

@media(max-width: 768px){
    .right-margin{
        margin-right: 0px;
    }

    .left-margin{
        margin-left: 0px;
    }
    
}



.event-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Increased shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column; /* Ensure column layout */
    background-color: #fff;
    height: 100%; /* Ensure it takes the full height available */
    border: 6px solid #f3f3f3; /* Thick border */
}

.event-card:hover {
    transform: translateY(-8px); /* Lift on hover */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25); /* Stronger shadow on hover */
    
}

.event-card img {
    width: 100%;
    height: 350px;
    transition: transform 0.3s ease-in-out;
    position: relative; /* Added */
}

.img-container {
    position: relative; /* Added */
}

.img-container .overlay { /* Updated selector */
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.img-container:hover .overlay { /* Updated selector */
    opacity: 0.8;
}

.event-info {
    padding: 20px; /* More padding for content */
    background-color: rgba(255, 255, 255, 0.9); /* Vintage overlay */
    display: flex; /* Use Flexbox */
    flex-direction: column; /* Vertical stacking */
    justify-content: flex-start; /* Align to top vertically */
    align-items: flex-start; /* Align to top horizontally (left) */
    height: 100%; /* Ensure it takes the full height of the parent */
    
    flex: 1 1 auto;
}

.event-title a:hover{
    text-decoration: underline;
}

.event-title {
    font-size: 1.1em; /* Larger font size */
    font-weight: bold;
    margin-bottom: 10px;
    color: #086268;
}

.event-title a{
    color: #086268;
}

.event-date {
    font-size: 1em; /* Slightly larger date */
    color: #666;
    margin-bottom: 10px; /* Space between date and link */
    white-space: pre;
}
.overlay-content {
    text-align: center;
}

.overlay-content h5 {
    font-size: 1.1em; /* Larger title in overlay */
    margin-bottom: 15px;
    color: #f0f0f0;
    padding-left: 5px;
    padding-right: 5px;
}

.overlay-content p {
    font-size: 1.2em; /* Larger text in overlay */
    margin-bottom: 0;
}

.overlay-content a {
    font-family: "Pacifico", cursive;
    font-weight: 400;
    font-style: normal;
    text-shadow: 1px 1px 2px rgba(135, 12, 12, 0.2);
    font-size: 1.1em !important;
    color: rgb(255, 255, 255);
}

.overlay-content a:hover {
    cursor: pointer;
    text-decoration: underline;
}


/* Media query for smaller screens */
@media (max-width: 768px) {
    .events-container {
        grid-template-columns: 1fr; /* One event per row on smaller screens */
    }
}




.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
.pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}
.page-item {
    margin: 0 5px;
}
.page-link {
    padding: 10px 15px;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.page-link:hover {
    background-color: #f0f0f0;
}
.page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}





.view-event-link {
    color: rgb(24, 74, 166);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.6s ease, padding 0.6s ease, color 0.6s ease;
}

.view-event-link:hover {
    background-color: #064d4f;
    color: whitesmoke;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}












.people-heading{
	font-family: "Pacifico", cursive;
    font-weight: 400;
    font-style: normal;
    text-decoration: underline;
    text-shadow: 1px 1px 2px rgba(135, 12, 12, 0.2);
    text-align: center;
    font-size: 35px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.people-heading::first-letter{
	font-size: 45px;	
}