/* Event card layout */
.event-card {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 10px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.event-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.event-card h3 {
    margin-top: 10px;
    font-size: 1.4rem;
}

.event-card p {
    font-size: 1rem;
    color: #444;
}

/* Responsive grid */
.event-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* space between cards */
}

@media (max-width: 768px) {
    .event-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* Hide header button on all pages except homepage */
body:not(.home) .header-widget-area .wp-block-button,
body:not(.home) .site-header .widget .wp-block-button {
    display: none !important;
}

/* Center and style button ONLY on homepage */
.home .header-widget-area,
.home .site-header .widget {
    width: 100%;
    display: flex;
    justify-content: center;  /* center horizontally */
    align-items: center;      /* center vertically if header is tall */
}

.home .header-widget-area .wp-block-button,
.home .site-header .widget .wp-block-button {
    margin: 0 !important;
}

.home .header-widget-area .wp-block-button__link,
.home .site-header .widget .wp-block-button__link {
    background-color: #ff7f2a;  /* warm orange */
    color: #fff;               /* white text */
    padding: 12px 35px;        /* side padding for circular look */
    border-radius: 50px;       /* pill-shaped button */
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.home .header-widget-area .wp-block-button__link:hover,
.home .site-header .widget .wp-block-button__link:hover {
    background-color: #e76a15; /* darker orange on hover */
    color: #fff;
}

/* Mobile tweak */
@media (max-width: 480px) {
    .home .header-widget-area,
    .home .site-header .widget {
        padding: 10px 0;
    }
}
/* Center page titles with spacing */
.page .entry-title {
    text-align: center;
    margin-top: 40px;   /* space above the title */
    margin-bottom: 30px; /* space below the title */
    font-size: 2.2em;    /* adjust size for better readability */
    line-height: 1.3;    /* makes multi-line titles look nicer */
}

/* Optional: slightly smaller on mobile screens */
@media (max-width: 768px) {
    .page .entry-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
}