/* ==========================================================================
   Senior Paws Mobility - Consolidated Master Production Stylesheet
   ========================================================================== */


/* ==========================================================================
   1. GLOBAL BACKGROUND
   ========================================================================== */

body.blog, body.archive, body.home,
.blog #page, .archive #page, .home #page,
.blog #content, .archive #content, .home #content,
.blog #main, .archive #main, .home #main {
    background-color: #ffffff !important;
}


/* ==========================================================================
   2. BLOG / ARCHIVE — DESKTOP GRID (3 COLUMNS)
   ========================================================================== */

@media (min-width: 769px) {
    .blog #main, .archive #main {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }

    /* Hero post spans full width */
    .blog #main article:first-of-type,
    .archive #main article:first-of-type {
        grid-column: 1 / -1 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* GeneratePress wrapper gap fix */
    .separate-containers .site-main article:first-of-type {
        margin-bottom: 5px !important;
    }

    /* Hero post image */
    .blog #main article:first-of-type .post-image,
    .blog #main article:first-of-type .post-image img,
    .archive #main article:first-of-type .post-image,
    .archive #main article:first-of-type .post-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: 400px !important;
        object-fit: cover !important;
    }

    /* Hero post title size */
    .blog #main article:first-of-type .entry-title a,
    .archive #main article:first-of-type .entry-title a {
        font-size: 26px !important;
    }

    /* Pagination spans full grid width */
    .blog #main nav.navigation,
    .archive #main nav.navigation {
        grid-column: 1 / -1 !important;
    }
}


/* ==========================================================================
   3. HOME PAGE — HERO IMAGE
   ========================================================================== */

.home .wp-block-image img,
.home .featured-image img,
.home .post-image img,
.home main article img {
    border-radius: 12px !important;
    overflow: hidden !important;
}


/* ==========================================================================
   4. BLOG / ARCHIVE — CARD LAYOUT & STYLING
   ========================================================================== */

/* Article flex wrapper */
.blog #main article,
.archive #main article {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Inside-article card box */
.separate-containers .site-main .blog article .inside-article,
.separate-containers .site-main .archive article .inside-article,
.separate-containers .blog article .inside-article,
.separate-containers .archive article .inside-article,
.separate-containers #main .inside-article {
    background: #ffffff !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01) !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    height: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Card hover */
body.blog .inside-article:hover,
body.archive .inside-article:hover,
.blog #main article .inside-article:hover,
.archive #main article .inside-article:hover,
.separate-containers .blog article .inside-article:hover,
.separate-containers .archive article .inside-article:hover {
    transform: translateY(-8px) scale(1.02) !important;
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 8px 10px -6px rgba(0, 0, 0, 0.08) !important;
    z-index: 5 !important;
}

/* Post thumbnail wrapper */
.blog .post-image,
.archive .post-image {
    margin: 0 0 10px 0 !important;
    width: 100% !important;
    display: block !important;
}

.blog .post-image a,
.archive .post-image a {
    display: block !important;
}

/* Card thumbnail image */
.blog .post-image img,
.archive .post-image img {
    border-radius: 8px !important;
    width: 100% !important;
    height: 215px !important;
    object-fit: cover !important;
}

/* Image zoom on card hover */
body.blog article .post-image img:hover,
body.archive article .post-image img:hover,
.blog #main article .inside-article:hover .post-image img,
.archive #main article .inside-article:hover .post-image img {
    transform: scale(1.06) !important;
    transition: transform 0.45s ease !important;
}

/* Entry header & summary strip */
.blog .entry-header, .archive .entry-header,
.blog .entry-summary, .archive .entry-summary {
    padding: 0 !important;
    text-align: left !important;
}


/* ==========================================================================
   5. BLOG / ARCHIVE — CARD TYPOGRAPHY
   ========================================================================== */

/* All card titles — no underline */
.blog #main article .entry-title a,
.archive #main article .entry-title a {
    text-decoration: none !important;
}

/* Non-hero card title */
.blog #main article:not(:first-of-type) .entry-title a,
.archive #main article:not(:first-of-type) .entry-title a {
    font-size: 17.8px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    color: #111111 !important;
    display: block !important;
}

.blog #main article:not(:first-of-type) .entry-title {
    margin-top: 0 !important;
    margin-bottom: 6px !important;
}

/* Card excerpt */
.blog .entry-summary,
.archive .entry-summary {
    font-size: 15.8px !important;
    line-height: 1.68 !important;
    color: #374151 !important;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
    flex-grow: 1 !important;
}


/* ==========================================================================
   6. BLOG / ARCHIVE — CARD FOOTER & CATEGORY PILLS
   ========================================================================== */

.blog footer.entry-meta,
.archive footer.entry-meta {
    display: block !important;
    margin-top: auto !important;
    padding: 0 !important;
    padding-top: 5px !important;
    text-align: left !important;
}

/* Category pill */
.blog footer.entry-meta .cat-links a,
.archive footer.entry-meta .cat-links a {
    display: inline-block !important;
    background-color: #e8ecf1 !important;
    color: #4a5568 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
    margin-right: 6px !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.1px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.blog footer.entry-meta .cat-links a:hover,
.archive footer.entry-meta .cat-links a:hover {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

/* Remove clutter from card footer */
.blog footer.entry-meta .cat-links,
.archive footer.entry-meta .cat-links {
    font-size: 0 !important;
    display: block !important;
}

.blog .gp-icon, .archive .gp-icon,
.entry-meta .byline,
.entry-meta .tags-links,
.entry-meta .entry-date,
.entry-summary .read-more,
.blog footer.entry-meta::before,
.archive footer.entry-meta::before {
    display: none !important;
}

/* ==========================================================================
   7. SINGLE POST — CUSTOM META BAR (above title)
   ========================================================================== */

.single .custom-post-meta {
    background-color: #f8fafc !important;
    padding: 14px 20px !important;
    border-radius: 12px !important;
	margin-top: 8px !important;
    margin-bottom: 10px !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Category pill */
.single .custom-post-meta .cat-links {
    font-size: 0 !important;
}

.single .custom-post-meta .single-category-pill {
    display: inline-block !important;
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    padding: 5px 14px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.single .custom-post-meta .single-category-pill:hover {
    background-color: #1e2937 !important;
    color: #ffffff !important;
}

/* Date & Author */
.single .custom-post-meta .posted-on,
.single .custom-post-meta .byline {
    color: #64748b !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.single .custom-post-meta .byline a {
    color: #334155 !important;
    text-decoration: none !important;
}

/* ==========================================================================
   8. SINGLE POST — HIDE ORIGINAL GP META BAR (below title)
   ========================================================================== */

.single .entry-header .entry-meta {
    display: none !important;
}

/* Also hide old standalone category pill if it ever appears */
.single .single-top-category {
    display: none !important;
}

.single .single-category-pill {
    display: inline-block !important;
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    padding: 8px 20px !important;
    border-radius: 9999px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.single .single-category-pill:hover {
    background-color: #1e2937 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   SINGLE POST — BOTTOM FOOTER CATEGORY PILL
   ========================================================================== */

.single footer.entry-meta .cat-links {
    font-size: 0 !important;
}

.single footer.entry-meta .cat-links a {
    display: inline-block !important;
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    padding: 5px 14px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.single footer.entry-meta .cat-links a:hover {
    background-color: #1e2937 !important;
    color: #ffffff !important;
}

/* Hide the folder icon next to category */
.single footer.entry-meta .gp-icon,
.single footer.entry-meta svg {
    display: none !important;
}

/* ==========================================================================
   9. SINGLE POST — CONTENT READABILITY
   ========================================================================== */

.single .entry-content {
    font-size: 18px !important;
    line-height: 1.75 !important;
    color: #1f2937 !important;
    max-width: 720px !important;
    margin: 0 auto !important;
}

.single .entry-content p {
    margin-bottom: 1.65em !important;
}

.single .entry-content h2 {
    font-size: 28px !important;
    line-height: 1.35 !important;
    margin-top: 2.3em !important;
    margin-bottom: 0.9em !important;
    color: #111827 !important;
}

.single .entry-content h3 {
    font-size: 23px !important;
    margin-top: 1.9em !important;
    margin-bottom: 0.8em !important;
}

.single .entry-content ul,
.single .entry-content ol {
    margin-left: 0.5em !important;
    padding-left: 1em !important;
    margin-bottom: 1.7em !important;
}

.single .entry-content li {
    margin-bottom: 0.7em !important;
}


/* ==========================================================================
   10. CUSTOM CONTENT CALLOUT BOXES (AI Articles)
   ========================================================================== */

div.ai-vet-tip,
div.ai-safety-alert {
    padding: 15px 15px 15px 25px !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-radius: 6px !important;
    margin: 25px 0 !important;
    display: block !important;
}

div.ai-vet-tip {
    background-color: #f0f7fa !important;
    border-left: 5px solid #005a87 !important;
}

div.ai-safety-alert {
    background-color: #fff9e6 !important;
    border-left: 5px solid #d97706 !important;
}


/* ==========================================================================
   11. PAGINATION
   ========================================================================== */

.blog #main nav.navigation,
.archive #main nav.navigation {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin-top: 40px !important;
    padding-bottom: 20px !important;
    display: flex !important;
    justify-content: center !important;
    order: 99;
}

.nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;          /* Forces single line */
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

/* All page number circles */
.nav-links .page-numbers,
.nav-links a.next,
.nav-links a.prev {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 45px !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;            /* Prevents squishing */
}

/* Active/current page */
.nav-links .page-numbers.current {
    background-color: #1e2937 !important;
    color: #ffffff !important;
}

/* Dots (...) — no background, just the symbol */
.nav-links .page-numbers.dots {
    background-color: transparent !important;
    box-shadow: none !important;
    cursor: default !important;
    font-size: 18px !important;
    letter-spacing: 1px !important;
    color: #94a3b8 !important;
}

/* Arrows — hide text, show symbol via pseudo-element */
.nav-links a.next,
.nav-links a.prev {
    font-size: 0 !important;
}

.nav-links a.next::after  { content: '→'; font-size: 20px; }
.nav-links a.prev::before { content: '←'; font-size: 20px; }

/* Hover states */
.nav-links a.page-numbers:hover,
.nav-links a.next:hover,
.nav-links a.prev:hover {
    background-color: #cbd5e1 !important;
    transform: scale(1.1) !important;
}


/* ==========================================================================
   12. MOBILE — RESPONSIVE OVERRIDES (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

    .single .entry-title {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    .single .entry-content {
        font-size: 17.5px !important;
        line-height: 1.78 !important;
        padding: 0 8px !important;
    }

    .single .entry-content h2 { font-size: 26px !important; }
    .single .entry-content h3 { font-size: 21px !important; }

    .single .entry-meta {
        padding: 16px 18px !important;
        margin-bottom: 30px !important;
    }

    .single .single-category-pill {
        padding: 7px 16px !important;
        font-size: 13.5px !important;
    }

    .blog .entry-summary,
    .archive .entry-summary {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
    }
}


/* Fix content left-alignment on single posts */
.single .entry-content {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.single .entry-header,
.single .entry-title {
    padding-left: 0 !important;
    margin-left: 0 !important;
	margin-bottom: 20px !important;	
}

.single .inside-article {
    padding-left: 40px !important;
    padding-right:40px !important;
} 

/* Table of Contents Plus*/
#toc_container {
    border: 1px solid #ccc !important; /* עובי וצבע המסגרת */
    padding: 20px !important; /* המרווח הפנימי */
    border-radius: 8px; /* עיגול פינות למראה מודרני */
    background-color: #ffffff !important; /* צבע רקע לבן */
	margin-top: 5px;
}