/* ----------------------------
   SINGLE EVENT PAGE & EVENTS GRID
------------------------------*/

.single-event-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.single-event-header img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.single-event-content-area {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.single-event-container h1.event-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #800000;
    margin: 10px 0 15px;
    font-family: 'Poppins', sans-serif;
}

.event-date-post-wrapper {
    text-align: center;
}

.event-date-post {
    display: inline-block;
    background: #800000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.event-content p {
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 18px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.wp-block-gallery {
    margin-top: 30px;
}

.wp-block-gallery img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.wp-block-gallery img:hover {
    transform: scale(1.03);
}

/* Related events */
.related-events h3 {
    font-size: 24px;
    color: #800000;
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
}

.related-events .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* General Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.event-card {
    background: #f4e5e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 42, 112, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 42, 112, 0.3);
}

.event-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #660033;
}

.event-info {
    padding: 15px;
}

.event-info .event-title {
    font-size: 18px;
    color: #800000;
    margin: 8px 0 0;
    font-weight: 600;
}

.event-info .event-title a {
    text-decoration: none;
    color: inherit;
}

.event-info .event-title a:hover {
    color: #660033;
}

.event-info .event-date {
    font-size: 13px;
    background: #800000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .single-event-content-area {
        padding: 20px;
    }
    .single-event-container h1.event-title {
        font-size: 26px;
    }
    .event-content p {
        font-size: 16px;
    }
}



/* pdf */
/* ============================
   FORCE PDF STYLING IN CONTENT
============================= */

/* File block + normal links */
.event-content a,
.event-content .wp-block-file a {
    position: relative;
    padding-left: 42px;
}

/* Add PDF badge only for file links */
.event-content .wp-block-file a::before,
.event-content a[href*="pdf"]::before {
    content: "PDF";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #800000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 4px;
}

.event-content .wp-block-file a {
    font-weight: 600;
    color: #800000;
    text-decoration: none;
}

.event-content .wp-block-file a:hover::before {
    background: #D4AF37;
    color: #800000;
}

/* button and links */
/* ============================
   DEFAULT WORDPRESS BUTTON
============================= */

.wp-block-button__link {
    background-color: #800000;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(128, 0, 0, 0.25);
}

/* Hover */
.wp-block-button__link:hover {
    background-color: #660033;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(128, 0, 0, 0.35);
}

/* Focus (accessibility) */
.wp-block-button__link:focus {
    outline: 3px solid rgba(212, 175, 55, 0.6);
    outline-offset: 3px;
}

/* Center button block */
.wp-block-button {
    margin: 20px 0;
}

/* Wide & full alignment support */
.wp-block-button.alignwide .wp-block-button__link,
.wp-block-button.alignfull .wp-block-button__link {
    width: 100%;
    text-align: center;
}
