/* Events Page Styles */

/* Events section styling - aligned with site-wide design */
.events-section {
    padding: var(--spacing-xl) 0;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

/* First events section (Upcoming Events) gets top padding */
.events-section:first-of-type {
    padding-top: var(--spacing-xl);
}

/* Subsequent events sections (What's New) get consistent spacing from previous section */
.events-section:not(:first-of-type) {
    padding-top: var(--spacing-xl);
    margin-top: 0;
}

/* Section headers - aligned with global heading styles */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-top: var(--spacing-md);
}

.section-header h2 {
    /* Using the global h2 style from styles.css */
    color: var(--color-accent);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.section-header h3 {
    /* Using the global h3 style from styles.css */
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}

/* Events Grid Layout - aligned with site-wide card grid patterns */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.second-row {
    margin-top: var(--spacing-lg);
    padding-top: 0;
}

/* Event Card Styles - aligned with site-wide card patterns */
.event-card {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

/* Event image container */
.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background-color: #b89b56;
    color: white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    z-index: 1;
}

.date-number {
    font-size: 18px;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    text-transform: uppercase;
}

.event-info {
    padding: 20px;
}

.event-time {
    color: #b89b56;
    font-size: 14px;
    margin-bottom: 8px;
}

.event-title {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* Mailing List Section */
.mailing-list-section {
    background-color: #333;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 60px;
}

.mailing-content {
    max-width: 500px;
    margin: 0 auto;
}

.mailing-title {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: normal;
}

.mailing-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.form-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: none;
    background-color: #444;
    color: white;
    outline: none;
    font-size: 14px;
}

.form-input::placeholder {
    color: #999;
}

.subscribe-btn {
    background-color: #b89b56;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.subscribe-btn:hover {
    background-color: #a18545;
}

.form-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

.form-disclaimer a {
    color: #b89b56;
    text-decoration: none;
}

.form-disclaimer a:hover {
    text-decoration: underline;
}

/* Responsive Styles - aligned with site-wide breakpoints */
@media (max-width: 1024px) {
    .events-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .section-header h3 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 960px) {
    .events-section {
        padding: var(--spacing-md);
    }
    
    .events-section:first-of-type,
    .events-section:not(:first-of-type) {
        padding-top: var(--spacing-lg);
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-header h3 {
        font-size: 1.8rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .event-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .section-header h3 {
        font-size: 1.6rem;
    }
    
    .event-image {
        height: 160px;
    }
}
