/* Announcement Bar at the very top */
.announcement-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 5%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold);
    position: relative;
    z-index: 1001;
}

.announcement-bar span {
    color: var(--gold);
    text-transform: uppercase;
}

.announcement-link {
    background: var(--gold);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    margin-left: 10px;
    padding: 2px 12px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.announcement-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: var(--primary-color);
}

/* Mobile responsive adjustments for announcement bar */
@media (max-width: 600px) {
    .announcement-bar {
        font-size: 0.75rem;
        padding: 10px 2%;
    }
    .announcement-link {
        display: block;
        margin: 5px auto 0;
        width: fit-content;
    }
}

/* Events Section */
.events-section {
    padding: 5rem 5%;
    background-color: var(--white);
    text-align: center;
}

.events-placeholder {
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem;
    border: 2px dashed var(--gold);
    background: var(--parchment);
    border-radius: 12px;
}

.events-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.events-placeholder h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.events-placeholder p {
    color: #666;
    font-style: italic;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--gold);
    position: relative;
    display: flex;
    flex-direction: row; /* Horizontal layout */
    text-align: left; /* Align text to left */
}

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

.event-card-body {
    padding: 2rem 1.5rem;
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
}

.event-card-image {
    width: 40%; /* Take 40% of the card width */
    height: auto;
    min-height: 250px;
    display: flex; /* Centering for object-fit: contain */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-left: 1px solid #f0f0f0;
    background-color: #fdfdfd; /* Light background for gaps */
}

.event-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Shows full image without cropping */
    transition: transform 0.5s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .event-card {
        flex-direction: column; /* Stack on mobile */
        max-width: 450px;
        margin: 0 auto;
    }
    .event-card-image {
        width: 100%;
        height: 200px; /* Reduced height for mobile */
        min-height: 200px;
        order: -1; /* Image on top for mobile */
        border-left: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .event-card-body {
        padding: 1.5rem;
    }
    .event-card-body h3 {
        font-size: 1.2rem;
    }
}

.event-card-body h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    margin-top: 0.5rem;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.event-date i {
    color: var(--gold);
}

.event-description {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.event-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 5;
}

.admin-mini-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    color: white;
}

.admin-mini-btn.edit { background: #1976d2; }
.admin-mini-btn.delete { background: #d32f2f; }
.admin-mini-btn:hover { transform: scale(1.1); opacity: 0.9; }

/* Hero Badge */
.hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold-gradient);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
