
/* ========== BLOG CARDS ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Base card — used in both grid and slider */
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--clr-border, #eee);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.10);
    border-color: transparent;
}

.blog-card-img {
    width: 100%;
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

.blog-card-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.blog-card-date {
    font-size: 0.78rem;
    color: var(--clr-primary, #ff6b35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--clr-secondary, #1a1a2e);
}

.blog-card-body p {
    color: var(--clr-gray, #666);
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--clr-primary, #ff6b35);
    font-weight: 600;
    font-size: 0.875rem;
    transition: gap 0.2s ease;
}

.blog-card-link:hover {
    gap: 10px;
}

/* ===== BLOG SLIDER ===== */
/* overflow: hidden clips to rectangle so card border-radius shows properly.
   Padding + negative margin trick lets the hover shadow breathe vertically. */
.blog-slider-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 4px;
    padding-bottom: 16px;
    margin-bottom: -16px;
}

.blog-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
}

/* 3 visible (desktop): (100% - 2*20px) / 3 */
.blog-slide {
    flex: 0 0 calc(33.333% - 13.333px);
    min-width: 0;
}

.blog-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-secondary, #1a1a2e);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.blog-slider-nav:hover {
    background: #ff6b35;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.blog-slider-prev { left: 10px; }
.blog-slider-next { right: 10px; }

/* 2 visible (tablet): (100% - 20px) / 2 */
@media (max-width: 991px) {
    .blog-slide { flex: 0 0 calc(50% - 10px); }
}

/* 1 visible (mobile) */
@media (max-width: 600px) {
    .blog-slider { gap: 0; }
    .blog-slide  { flex: 0 0 100%; }
    .blog-slider-nav  { width: 34px; height: 34px; font-size: 1.1rem; }
    .blog-slider-prev { left: 4px; }
    .blog-slider-next { right: 4px; }
}


/* ===== TESTIMONIAL SLIDER ===== */
.testimonial-slider-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 0;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    margin-bottom: 16px;
}

.testimonial-rating i {
    color: #ddd;
    margin-right: 2px;
}

.testimonial-rating i.filled {
    color: #ffc107;
}

.testimonial-content {
    flex: 1;
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.testimonial-avatar {
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--clr-secondary);
    font-weight: 600;
}

.testimonial-info span {
    font-size: 0.85rem;
    color: #888;
}

.testimonial-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-secondary);
    font-size: 1rem;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.testimonial-slider-nav:hover {
    background: var(--clr-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-slider-prev { left: 10px; }
.testimonial-slider-next { right: 10px; }

@media (max-width: 991px) {
    .testimonial-slide { flex: 0 0 calc(50% - 15px); }
}

@media (max-width: 600px) {
    .testimonial-slider { gap: 0; }
    .testimonial-slide  { flex: 0 0 100%; }
    .testimonial-card   { padding: 20px; }
    .testimonial-author { flex-direction: column; text-align: center; gap: 8px; }
    .testimonial-slider-nav  { width: 38px; height: 38px; }
    .testimonial-slider-prev { left: 4px; }
    .testimonial-slider-next { right: 4px; }
}


/* ========== PET GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    group: true;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-overlay {
    transform: translateY(0);
}

.gallery-card-overlay h4 {
    font-size: 1.05rem;
    margin-bottom: 3px;
}

.gallery-card-overlay span {
    font-size: 0.82rem;
    opacity: 0.8;
}

/* Pet Gallery slider styles start */
.gallery-slider-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.45s ease;
    will-change: transform;
}

/* 4 visible desktop: (100% - 3*20px) / 4 = 25% - 15px */
.gallery-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;
}

.gallery-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md, 0 4px 14px rgba(0,0,0,0.15));
    color: var(--clr-secondary);
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.gallery-slider-nav:hover {
    background: var(--clr-primary, #ff6b35);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-slider-prev { left: 8px; }
.gallery-slider-next { right: 8px; }

@media (max-width: 600px) {
    .gallery-slider-nav  { width: 34px; height: 34px; font-size: 0.85rem; }
    .gallery-slider-prev { left: 4px; }
    .gallery-slider-next { right: 4px; }
}

.gallery-card {
    cursor: zoom-in;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 24px;
}

.gallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-panel {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 18px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
}

.gallery-lightbox-image {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    position: relative;
}

.gallery-lightbox-image img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-lightbox-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    border: none;
    cursor: pointer;
}

.gallery-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    z-index: 2;
}

.gallery-lightbox-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--clr-primary);
    color: #fff;
}

.gallery-lightbox-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

@media (max-width: 991px) {


    .gallery-slide {
        flex-basis: calc(33.333% - 14px);
    }

    .gallery-lightbox-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .gallery-slide {
        flex-basis: 100%;
    }
}

/* Gallery slider styles end */