/*
Theme Name: Amity Child
Theme URI: https://amity.keydesign.xyz/
Description: Charity & Donation Elementor WordPress Theme
Author: Key-Design
Author URI: http://themeforest.net/user/Key-Design
Template: amity
Version: 1.0
License: Envato Standard License
License URI: https://themeforest.net/licenses/standard
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-menu, featured-images, flexible-header, post-formats, sticky-post, translation-ready
Text Domain: amity-child
*/

/* Custom Events Manager Card Styles */
.em-events-grid .em-event-card,
.em-events-list .em-event-card {
    background: #fff;
    border-radius: var(--global-border-radius, 8px);
    box-shadow: var(--box-shadow, 0 10px 30px rgba(0,0,0,0.05));
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid #eee;
}

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

.em-event-card .event-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16/9;
    background: #f0f0f0;
}

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

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

.em-event-card .date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--e-global-color-primary, #007bff);
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    z-index: 4;
    min-width: 50px;
}

.em-event-card .date-badge span {
    display: block;
    color: #fff !important;
}

.em-event-card .date-badge .day {
    font-size: 20px;
}

.em-event-card .date-badge .month {
    font-size: 12px;
    text-transform: uppercase;
}

/* Event Countdown Styles */
.event-countdown {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    color: #fff !important;
    z-index: 3;
    transition: all 0.3s ease;
}

.em-event-card:hover .event-countdown {
    background: rgba(0, 123, 255, 0.9);
}

.countdown-item {
    text-align: center;
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-item:last-child {
    border-right: none;
}

.countdown-item span {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
}

.countdown-item label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.9;
    color: #fff !important;
    letter-spacing: 1px;
}

.event-started {
    width: 100%;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    color: #fff !important;
}

.em-event-card .event-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.em-event-card .event-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.em-event-card .event-title a {
    color: var(--color-text, #333);
    text-decoration: none !important;
}

.em-event-card .event-title a:hover {
    color: var(--e-global-color-primary, #007bff);
}

.em-event-card .event-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.em-event-card .event-meta i,
.em-event-card .event-meta .fas {
    color: var(--e-global-color-primary, #007bff);
    font-style: normal;
}

.em-event-card .event-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.em-event-card .event-footer {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.em-event-card .btn-event {
    display: inline-block;
    background: var(--e-global-color-primary, #007bff);
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
}

.em-event-card .btn-event:hover {
    background: var(--e-global-color-secondary, #0056b3);
}

/* Grid Layout for Events List */
.em-events-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
    margin-top: 20px !important;
}

/* Editor Styles Wrapper Specifics */
.editor-styles-wrapper .em-events-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
}

.editor-styles-wrapper .em-event-card {
    max-width: 100% !important;
    margin-bottom: 20px !important;
}

/* Ensure images are visible in editor */
.editor-styles-wrapper .em-event-card .event-image {
    min-height: 150px;
    background: #f5f5f5 !important;
}

.em-events-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.em-events-count {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text, #333);
    margin: 0;
}

/* Fix for possible missing parent variables in editor */
:root {
    --e-global-color-primary: #FF7700;
    --e-global-color-secondary: #101840;
}

.em-event-card .em-item-image-placeholder {
    width: 100% !important;
    height: 100% !important;
    background-color: #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    min-height: 180px;
}

.em-event-card .em-item-image-placeholder .date {
    text-align: center;
    opacity: 0.2 !important;
    pointer-events: none;
    color: #000 !important;
}

.em-event-card .em-item-image-placeholder .date .day {
    font-size: 60px !important;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.em-event-card .em-item-image-placeholder .date .month {
    font-size: 20px !important;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
}

/* Sticky Footer */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1 0 auto;
}

#colophon {
    flex-shrink: 0;
}