/* ── KoiDent Events Grid ────────────────────────────────────── */
.koident-events-grid {
    display: grid;
    gap: 24px;
    width: 100%;
}
.koident-cols-1 { grid-template-columns: 1fr; }
.koident-cols-2 { grid-template-columns: repeat(2, 1fr); }
.koident-cols-3 { grid-template-columns: repeat(3, 1fr); }
.koident-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .koident-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .koident-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .koident-cols-2,
    .koident-cols-3,
    .koident-cols-4 { grid-template-columns: 1fr; }
}

/* ── Card ───────────────────────────────────────────────────── */
.koident-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}
.koident-has-shadow {
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.koident-event-card:hover {
    transform: translateY(-3px);
}

/* ── Image ──────────────────────────────────────────────────── */
.koident-card-image-wrap {
    position: relative;
}
.koident-card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}
.koident-no-image {
    background-color: #e8eaf0;
}

/* ── Badge ──────────────────────────────────────────────────── */
.koident-badge-wrap {
    position: absolute;
    top: 14px;
    left: 14px;
}
.koident-badge-no-image {
    position: relative;
    top: auto;
    left: auto;
    padding: 14px 14px 0;
}
.koident-event-badge {
    display: inline-block;
    background: #1a73e8;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* ── Card Body ──────────────────────────────────────────────── */
.koident-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* ── Date ───────────────────────────────────────────────────── */
.koident-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin: 0;
}
.koident-card-date svg {
    flex-shrink: 0;
}

/* ── Locations ──────────────────────────────────────────────── */
.koident-locations-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.koident-location-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}
.koident-pin-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.koident-location-label {
    color: inherit;
    text-decoration: none;
}
.koident-location-label:hover {
    text-decoration: underline;
}

/* ── Title ──────────────────────────────────────────────────── */
.koident-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 4px 0 0;
    line-height: 1.3;
}
.koident-card-title a {
    color: inherit;
    text-decoration: none;
}
.koident-card-title a:hover {
    text-decoration: underline;
}

/* ── Description ────────────────────────────────────────────── */
.koident-card-desc {
    font-size: 14px;
    color: #444;
    margin: 0;
    line-height: 1.6;
    flex: 1;
}

/* ── CTA Link ───────────────────────────────────────────────── */
.koident-card-cta {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
}
.koident-card-cta:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* ── Single Event Page ──────────────────────────────────────── */
.koident-single-event {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px 70px;
    font-family: inherit;
}
.koident-single-hero {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 32px;
}
.koident-single-hero img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}
.koident-single-hero .koident-badge-wrap {
    position: absolute;
    top: 18px;
    left: 18px;
}
.koident-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #555;
    font-size: 15px;
}
.koident-single-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
}
.koident-single-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
    margin: 0 0 16px;
}
.koident-single-desc {
    font-size: 17px;
    color: #444;
    line-height: 1.75;
    margin: 0 0 32px;
}
.koident-single-content {
    font-size: 16px;
    color: #333;
    line-height: 1.8;
}
.koident-single-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
}
.koident-single-back:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .koident-single-title { font-size: 24px; }
    .koident-single-hero img { height: 220px; }
}

/* ── Badge as clickable link ────────────────────────────────── */
a.koident-event-badge,
.koident-badge-link {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
a.koident-event-badge:hover,
.koident-badge-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.koident-badge-row-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* ── Location pill grid (single page) ───────────────────────── */
.koident-loc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 20px;
}
.koident-loc-pill {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    background: #f0f4ff;
    border: 1px solid #d0d9f5;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    color: #333;
}
.koident-loc-pin {
    flex-shrink: 0;
    margin-top: 2px;
    color: #1a73e8;
}
.koident-loc-pill-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}
.koident-loc-pill-text a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}
.koident-loc-pill-text a:hover {
    text-decoration: underline;
}
.koident-loc-pill-text small {
    font-size: 12px;
    color: #777;
}

/* ── Related events section ─────────────────────────────────── */
.koident-related-section {
    background: #f7f8fc;
    padding: 50px 20px 60px;
    margin-top: 40px;
}
.koident-related-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.koident-related-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 28px;
}

/* ── Taxonomy archive page ──────────────────────────────────── */
.koident-archive-wrap {
    min-height: 60vh;
}
.koident-archive-header {
    background: #f7f8fc;
    padding: 70px 20px 70px;
    border-bottom: 1px solid #e8ebf5;
}
.koident-archive-header-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.koident-archive-badge-wrap {
    margin: 0 0 16px;
}
.koident-badge-lg {
    font-size: 13px;
    padding: 5px 14px;
}
.koident-archive-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.15;
}
.koident-archive-desc {
    font-size: 16px;
    color: #555;
    margin: 0;
}
.koident-archive-grid-wrap {
    padding: 40px 20px 60px;
}
.koident-archive-grid-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.koident-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.koident-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #d0d9f5;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    background: #fff;
}
.koident-pagination .page-numbers.current {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}
.koident-pagination .page-numbers:hover:not(.current) {
    background: #f0f4ff;
}

/* ── Image Carousel (single page) ───────────────────────────── */
.koident-carousel-wrap {
    position: relative;
    margin-bottom: 32px;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    user-select: none;
}
.koident-carousel-track-outer {
    overflow: hidden;
    border-radius: 14px;
}
.koident-carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.koident-carousel-slide {
    flex: 0 0 100%;
    position: relative;
}
.koident-carousel-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}
.koident-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: #fff;
    font-size: 14px;
    padding: 28px 18px 14px;
    pointer-events: none;
}

/* Navigation arrows */
.koident-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    z-index: 10;
    transition: background 0.15s ease, transform 0.15s ease;
    color: #1a1a2e;
    padding: 0;
}
.koident-carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}
.koident-carousel-prev { left: 14px; }
.koident-carousel-next { right: 14px; }

/* Pagination dots */
.koident-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 12px 0 6px;
    background: transparent;
}
.koident-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccd2e8;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.koident-carousel-dot.active {
    background: #1a73e8;
    transform: scale(1.3);
}

@media (max-width: 640px) {
    .koident-carousel-slide img { height: 240px; }
    .koident-carousel-nav { width: 36px; height: 36px; }
}
