/*
 * Patience Key Foundation — small overrides on top of truehelp.css.
 * The template ships with image logos; we use a styled text logo instead.
 */

.pkf-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.pkf-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 50%;
    background-color: var(--truehelp-base, #f74883);
    color: #fff;
    font-family: var(--truehelp-heading-font, 'Geologica', sans-serif);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.pkf-logo__text {
    font-family: var(--truehelp-heading-font, 'Geologica', sans-serif);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.15;
    color: var(--truehelp-black, #463650);
    max-width: 190px;
}

.pkf-logo--light .pkf-logo__text {
    color: #fff;
}

/* Form feedback messages */
.pkf-form-alert {
    margin-bottom: 24px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
}

.pkf-form-alert--success {
    background-color: #e5f6ed;
    color: #1c7a45;
}

.pkf-form-alert--error {
    background-color: #fdeaea;
    color: #b42323;
}

.pkf-form-alert ul {
    margin: 0;
    padding-left: 18px;
}

/* Program details body paragraphs keep their spacing */
.pkf-prose p {
    margin-bottom: 18px;
}

/* Event countdown timer */
.pkf-countdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pkf-countdown li {
    flex: 1 1 70px;
    min-width: 70px;
    text-align: center;
    background: linear-gradient(160deg, var(--truehelp-base, #8a65a0), var(--truehelp-black, #463650));
    border-radius: 14px;
    padding: 16px 8px;
    box-shadow: 0 10px 24px -12px rgba(70, 54, 80, 0.55);
}

.pkf-countdown li i {
    display: block;
    font-style: normal;
    font-family: var(--truehelp-heading-font, 'Geologica', sans-serif);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.pkf-countdown li span.label {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.pkf-countdown--ended {
    background: #eef0f4;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    font-weight: 600;
    color: var(--truehelp-black, #463650);
}

/* Event map embed */
.pkf-event-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(70, 54, 80, 0.12);
}

.pkf-event-map iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}

/* Event type / price badges */
.pkf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background-color: var(--truehelp-base, #8a65a0);
}

.pkf-badge--free {
    background-color: #2fb673;
}

.pkf-badge--paid {
    background-color: #e0973a;
}

/* Standalone gallery grid */
.pkf-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.pkf-gallery__item {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.pkf-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pkf-gallery__item:hover img {
    transform: scale(1.06);
}

.pkf-gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pkf-gallery__item:hover::after {
    opacity: 1;
}

.pkf-gallery__item .pkf-gallery__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pkf-gallery__item:hover .pkf-gallery__icon {
    opacity: 1;
}
