/* Blog card with social card image and hover overlay */
.blog-card {
    background-color: var(--color-custom-off-white, #f5f5f0);
}

.blog-card-image-wrap {
    position: relative;
    aspect-ratio: 1200 / 630;
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0;
    transition: background-color 0.25s, opacity 0.25s;
}

.blog-card:hover .blog-card-overlay {
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 1;
}

.blog-card-mobile-read {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-custom-dark-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    align-items: center;
    justify-content: center;
}

@media (hover: none) {
    .blog-card-mobile-read {
        display: flex;
    }
}

/* Hero scroll-down arrow */
.hero-scroll-arrow {
    color: var(--color-custom-off-white, #f5f5f0);
    opacity: 0.75;
    transition: opacity 0.2s;
    animation: hero-bounce 2s ease-in-out infinite;
}

.hero-scroll-arrow svg {
    width: 3rem;
    height: 3rem;
}

.hero-scroll-arrow:hover {
    opacity: 1;
}

@keyframes hero-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* Utility class for dark banner backgrounds (not in compiled output.css) */
.bg-custom-dark-blue {
    background-color: var(--color-custom-dark-blue);
}

.bg-custom-purple {
    background-color: var(--color-custom-purple);
}

.border-custom-purple {
    border-color: var(--color-custom-purple);
}

.group:hover .group-hover-text-custom-purple {
    color: var(--color-custom-purple);
}

/* Navbar scroll hide/show */
.navbar-hidden {
    transform: translateY(-100%);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--color-custom-light-blue);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #5570c4;
    color: #fff;
}

.btn-dark-outline {
    display: inline-block;
    background-color: #fff;
    color: var(--color-custom-dark-blue);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0.75rem;
    border-radius: 0.375rem;
    border: 2px solid var(--color-custom-dark-blue);
    transition: background-color 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn-dark-outline:hover {
    background-color: #e8ecf5;
    color: var(--color-custom-dark-blue);
}

.btn-secondary {
    display: inline-block;
    background-color: #fff;
    color: var(--color-custom-light-blue);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0.75rem;
    border-radius: 0.375rem;
    border: 2px solid var(--color-custom-light-blue);
    transition: background-color 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #eef1fd;
    color: var(--color-custom-light-blue);
}

/* Inline prose links */
.prose-link {
    color: var(--color-custom-dark-blue);
    text-decoration: underline;
}

.prose-link:hover {
    opacity: 0.75;
}

/* Markdownx admin editor - full width */
.markdownx,
.markdownx .markdownx-editor,
.markdownx .markdownx-preview {
    width: 100% !important;
    box-sizing: border-box;
}

/* Remove extra gap when a paragraph is immediately followed by a list */
article .prose p:has(+ ul),
article .prose p:has(+ ol) {
    margin-bottom: 0;
}

/* Testimonials carousel */
.testimonials-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonials-window {
    overflow: hidden;
    flex: 1;
    touch-action: pan-y;
}

.testimonials-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonials-track .review,
.testimonials-track .talk-card,
.testimonials-track .article-card {
    flex: 0 0 calc(33.333% - 1rem);
}

.btn-cyan {
    background-color: var(--color-custom-cyan);
    color: var(--color-custom-dark-blue);
}

.btn-cyan:hover {
    background-color: #63cdd3;
    color: var(--color-custom-dark-blue);
}

.btn-dark {
    background-color: var(--color-custom-dark-blue);
    color: #f5f5f0;
}

.btn-dark:hover {
    background-color: #2a3a5c;
    color: #f5f5f0;
}

.testimonials-arrow {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--color-custom-light-blue);
    color: var(--color-custom-light-blue);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.testimonials-arrow:hover:not(:disabled) {
    background: var(--color-custom-light-blue);
    color: #fff;
}

.testimonials-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonials-arrow svg {
    width: 1.1rem;
    height: 1.1rem;
}

.testimonials-dots {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonials-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.testimonials-dot.active {
    background: var(--color-custom-light-blue);
}

/* Jan photo collage */
.jan-collage {
    position: relative;
    height: 430px;
}

.jan-collage img {
    position: absolute;
    width: 52%;
    height: 52%;
    object-fit: cover;
    border-radius: 0.375rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 1.6s ease, box-shadow 1.6s ease;
}

.jan-collage img:nth-child(1) { top: 0; left: 0; transform: rotate(-4deg); z-index: 1; }
.jan-collage img:nth-child(2) { top: 0; right: 0; transform: rotate(3deg); z-index: 2; }
.jan-collage img:nth-child(3) { bottom: 0; left: 0; transform: rotate(2deg); z-index: 3; }
.jan-collage img:nth-child(4) { bottom: 0; right: 0; transform: rotate(-3deg); z-index: 4; }
.jan-collage img:nth-child(5) { top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(1deg); z-index: 5; }

/* Photo carousel (mobile/tablet replacement for collage & scrapbook) */
.photo-carousel .testimonials-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.photo-carousel .testimonials-dots {
    display: flex;
}

/* About page scrapbook gallery */
.about-scrapbook {
    position: relative;
    height: 940px;
}

.about-scrapbook > * {
    position: absolute;
    width: 72%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.375rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 1.6s ease, box-shadow 1.6s ease, opacity 1.6s ease;
    opacity: 0.65;
}

.about-scrapbook > *:nth-child(1) { top:   0px; left: 10%; transform: rotate(-5deg); z-index: 1; }
.about-scrapbook > *:nth-child(2) { top: 130px; left: 18%; transform: rotate(4deg);  z-index: 2; }
.about-scrapbook > *:nth-child(3) { top: 260px; left: 7%;  transform: rotate(-3deg); z-index: 3; }
.about-scrapbook > *:nth-child(4) { top: 390px; left: 20%; transform: rotate(5deg);  z-index: 4; }
.about-scrapbook > *:nth-child(5) { top: 520px; left: 11%; transform: rotate(-4deg); z-index: 5; }
.about-scrapbook > *:nth-child(6) { top: 650px; left: 21%; transform: rotate(3deg);  z-index: 6; }
.about-scrapbook > *:nth-child(7) { top: 780px; left: 8%;  transform: rotate(-6deg); z-index: 7; }

.about-scrapbook .gallery-placeholder {
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .testimonials-track .review,
    .testimonials-track .talk-card,
    .testimonials-track .article-card,
    .testimonials-track > img {
        flex: 0 0 100%;
    }

    .testimonials-track {
        gap: 1rem;
    }

    .testimonials-arrow {
        display: none;
    }

    .testimonials-dots {
        display: flex;
    }
}
