@font-face {
    font-family: 'Open Sauce';
    src: url('/fonts/OpenSauceSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Tan Nimbus';
    src: url('/fonts/tan-nimbus.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Open Sauce', sans-serif;
    background-color: #ead1ba;
    margin: 0;
    padding: 0;
    color: #333;
}

.hero {
    position: relative;
    text-align: center;
    padding: 120px 20px;
    color: white;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('/files/index/readingpeople.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    z-index: 1;
    transform: scale(1.1);
    /* Prevents blur edges from showing */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1{
    font-family: 'Tan Nimbus', sans-serif;
    font-size: 4.5rem;
    margin: 0;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-section h2, .events-section h2{
    font-family: 'Tan Nimbus', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 2rem;
}


.hero h2 {
    font-size: 2rem;
    margin: 15px 0;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    max-width: 800px;
    margin: 20px auto;
    margin-top: 40px;
    line-height: 1.5;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: justify;
    hyphens: auto;
}

.cta-button {
    display: inline-block;
    background-color: #8b4513;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background-color: #723a0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Add these styles to your CSS */
.events-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.no-events-found{
    display:block;
}

.events-grid {
    text-align: unset;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.event-card {
    background: #fff;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    padding: 20px;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
    background: linear-gradient(to bottom, #f8f4ec, #fff);
}



.event-card:hover {
    transform: translateY(-5px);
}

.event-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: #8b4513;
    border-radius: 0 0 5px 5px;
}

.event-description {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
}

.event-description p {
    margin: 10px 0;
}

.event-date {
    font-family: 'Tan Nimbus', sans-serif;
    font-size: 1.4rem;
    color: #8b4513;
    margin-bottom: 15px;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 10px;
}
.event-details {
    padding: 0;
    margin: 15px 0;
}

.event-details p {
    margin: 10px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-details a {
    color: unset;
}


.card-footer {
    margin: 20px auto;
    padding-top:20px;
}

.ticket-button {
    background-color: #8b4513;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.ticket-button:hover {
    background-color: #723a0f;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}


.gallery-section, .events-section{
    text-align: center;
}

.table-container {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f4e9d9;
    font-weight: 600;
}

tr:hover {
    background-color: #f9f9f9;
}

.action-button {
    background-color: #8b4513;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #723a0f;
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 40px;
        margin-bottom: 40px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .events-section, .events-section{
        margin: 40px auto;
        margin-bottom: 80px;
    }
}

.social-section {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.social-section h2 {
    font-family: 'Tan Nimbus', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.instagram-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.instagram-link img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.instagram-link img:hover {
    transform: scale(1.1);
}