/* CKHS Events Styles */

/* ===== Grid Layout ===== */
.ckhs-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ckhs-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #1e4d2b;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.ckhs-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ckhs-event-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e4d2b 0%, #2d6a4f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ckhs-event-placeholder .dashicons {
    font-size: 60px;
    color: rgba(255,255,255,0.3);
}

.ckhs-event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1e4d2b;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.ckhs-event-date-badge .ckhs-month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.ckhs-event-date-badge .ckhs-day {
    display: block;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.ckhs-event-content {
    padding: 25px;
}

.ckhs-event-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
}

.ckhs-event-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.ckhs-event-title a:hover {
    color: #1e4d2b;
}

.ckhs-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

.ckhs-event-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ckhs-event-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #1e4d2b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.ckhs-event-btn:hover {
    background: #2d6a4f;
}

/* ===== List Layout ===== */
.ckhs-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.ckhs-event-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-left: 4px solid #1e4d2b;
}

.ckhs-event-date-box {
    background: #1e4d2b;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
}

.ckhs-event-date-box .ckhs-day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.ckhs-event-date-box .ckhs-month {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
}

.ckhs-event-info {
    flex: 1;
}

.ckhs-event-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
}

.ckhs-event-info h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.ckhs-event-details {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.ckhs-btn-outline {
    padding: 8px 20px;
    border: 2px solid #1e4d2b;
    color: #1e4d2b;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ckhs-btn-outline:hover {
    background: #1e4d2b;
    color: white;
}

/* ===== Header Slider Styles ===== */
.ckhs-header-slider {
    background: #1e4d2b;
    padding: 12px 20px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.ckhs-slider-container {
    position: relative;
    width: 100%;
    height: 30px;
}

.ckhs-slider-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.ckhs-slider-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ckhs-slider-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    flex-wrap: wrap;
}

.ckhs-slider-label {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ckhs-slider-title {
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ckhs-slider-title:hover {
    text-decoration: underline;
}

.ckhs-slider-date {
    font-size: 13px;
    opacity: 0.9;
    white-space: nowrap;
}

/* Slider Dots */
.ckhs-slider-dots {
    display: flex;
    gap: 6px;
    margin-left: 15px;
}

.ckhs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ckhs-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.ckhs-dot:hover {
    background: rgba(255,255,255,0.7);
}

/* No events message */
.ckhs-no-events {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ===== Featured Event ===== */
.ckhs-featured-event {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ckhs-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ckhs-featured-content {
    padding: 40px;
}

.ckhs-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ckhs-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
}

.ckhs-btn-register {
    display: inline-block;
    padding: 15px 30px;
    background: #1e4d2b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.ckhs-btn-register:hover {
    background: #2d6a4f;
}

/* Responsive */
@media (max-width: 768px) {
    .ckhs-events-grid {
        grid-template-columns: 1fr;
    }

    .ckhs-event-list-item {
        flex-direction: column;
        text-align: center;
    }

    .ckhs-header-slider {
        padding: 10px 15px;
    }

    .ckhs-slider-link {
        font-size: 13px;
        gap: 8px;
    }

    .ckhs-slider-label {
        font-size: 10px;
        padding: 2px 8px;
    }

    .ckhs-slider-title {
        font-size: 14px;
    }

    .ckhs-featured-event {
        grid-template-columns: 1fr;
    }

    .ckhs-featured-content {
        padding: 25px;
    }
}

/* Animation for slider */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ckhs-slider-item.active {
    animation: slideIn 0.5s ease;
}
