/**
 * Events Custom Styles
 */

/* Event Card Styles */
.event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.event-card-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f5f5f5;
}

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

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

.event-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card-meta {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.event-card-meta i {
    margin-right: 5px;
    color: var(--theme-color, #ff6b35);
}

.event-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.event-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-card-title a:hover {
    color: var(--theme-color, #ff6b35);
}

.event-card-text {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.event-card .link-btn {
    color: var(--theme-color, #ff6b35);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    margin-top: auto;
}

.event-card .link-btn i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.event-card .link-btn:hover {
    color: var(--theme-color, #ff6b35);
}

.event-card .link-btn:hover i {
    transform: translateX(5px);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Alert Styles */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-heading {
    margin-bottom: 10px;
}

/* Event Detail Styles */
#event-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

#event-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content {
    margin-top: 30px;
}

.blog-content .blog-meta {
    margin-bottom: 20px;
}

.blog-content .blog-meta a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.blog-content .blog-meta i {
    margin-right: 5px;
    color: var(--theme-color, #ff6b35);
}

.blog-content .blog-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #333;
}

.blog-content #event-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.blog-content #event-description p {
    margin-bottom: 20px;
}

.blog-content #event-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.blog-content #event-description h1,
.blog-content #event-description h2,
.blog-content #event-description h3,
.blog-content #event-description h4,
.blog-content #event-description h5,
.blog-content #event-description h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

.blog-content #event-description ul,
.blog-content #event-description ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-content #event-description li {
    margin-bottom: 10px;
}

.blog-content #event-description a {
    color: var(--theme-color, #ff6b35);
    text-decoration: none;
}

.blog-content #event-description a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .event-card-img {
        height: 200px;
    }

    .event-card-title {
        font-size: 18px;
    }

    .blog-content .blog-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .event-card-content {
        padding: 15px;
    }

    .event-card-title {
        font-size: 16px;
    }

    .blog-content .blog-title {
        font-size: 20px;
    }
}

/* Empty State */
#events-empty,
#event-not-found {
    padding: 60px 20px;
}

#events-empty .alert,
#event-not-found .alert {
    max-width: 600px;
    margin: 0 auto;
}

/* Error State */
#events-error,
#event-error {
    padding: 60px 20px;
}

#events-error .alert,
#event-error .alert {
    max-width: 600px;
    margin: 0 auto;
}

