/*
 * Page     : Single Blog Post
 * File     : css/desktop/pages/pagesingle.css
 * Loaded by: single.php (mobile + desktop)
 *
 * Contains all single-post-specific styles.
 * Classes shared across many pages (panditcityContainer2, blog-heading, etc.) remain in style.css.
 */

/* ══════════════════════════════════════════
   HERO — PANDIT CITY CONTAINER
   ══════════════════════════════════════════ */
.panditcityContainer {
    padding-bottom: 40px;
    padding-top: 40px;
}

.panditcityContainerImg img {
    border-radius: 1rem;
}

/* ══════════════════════════════════════════
   AI TOOLS BAR
   ══════════════════════════════════════════ */
.ai-tools {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 8px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 32px;
}

/* ══════════════════════════════════════════
   AUTHOR META (HERO)
   ══════════════════════════════════════════ */
.name-author,
.upload-date,
.blog-date {
    font-weight: 600;
    color: #5c5c5c !important;
}

.blog-date {
    margin-left: 5px;
    font-size: 14px !important;
}

.name-author {
    font-size: 16px;
    margin-left: 9px;
    font-weight: 400;
}

.upload-date {
    font-size: 14px;
}

.author-post {
    border-bottom: 1px solid #f3eeee;
    border-top: 1px solid #f3eeee;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 0;
}

.hero-author-name img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    object-fit: cover;
}

span.written_by {
    font-weight: 400;
    font-size: 14px;
    color: #64666c;
}

/* ══════════════════════════════════════════
   ACHIEVEMENTS STRIP
   ══════════════════════════════════════════ */
.all-achievements {
    display: flex;
    justify-content: start;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.achievements_items {
    padding: 10px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #daa520;
}

.achievements_items_number {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    color: #daa520;
    transition: color 0.3s ease;
}

.achievements_items_label {
    font-size: 12px;
    color: #3e2723;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

/* ══════════════════════════════════════════
   BLOG CONTENT AREA
   ══════════════════════════════════════════ */
.blog-container img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 15px;
}

.blog-container {
    overflow: hidden;
}

.blog-container h1,
.blog-container h2,
.blog-container h3,
.blog-container p,
.blog-container ul {
    text-align: start;
    width: 100%;
}

.blog-container li {
    text-align: start;
}

.blog-container a button {
    border: 0 !important;
    text-align: left;
    font-size: 14px;
}

.blog_detail p {
    font-size: 18px !important;
}

.blog_detail ul li {
    font-size: 17px !important;
    font-family: 'Noto Sans', sans-serif;
}

.blog_detail table {
    border: 3px solid var(--np-text-dark, #3E2723) !important;
}

.blog_detail a strong {
    color: var(--np-saffron, #F37420) !important;
}

/* ── TOC wrapper (sticky behaviour handled by single.php scroll script) ── */

.blog-table-of-content {
    position: relative;
}

.blog-table-of-content.np-toc-fixed {
    position: fixed;
    top: 90px;
    z-index: 100;
}

/* ══════════════════════════════════════════
   RELATED ARTICLES
   ══════════════════════════════════════════ */
.np-related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e8e0d8;
}

.np-related-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--np-text-dark, #3E2723);
    margin-bottom: 20px;
}

.np-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.np-related-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.25s, transform 0.25s;
}

.np-related-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.np-related-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.np-related-card__img {
    position: relative;
    overflow: hidden;
}

.np-related-card__img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.np-related-card:hover .np-related-card__img-el {
    transform: scale(1.05);
}

.np-related-card__cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--np-saffron, #F37420);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: capitalize;
}

.np-related-card__body {
    padding: 14px 16px 16px;
}

.np-related-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--np-text-dark, #3E2723);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-related-card__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.np-related-card__meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.np-related-card__meta .material-symbols-outlined {
    font-size: 13px;
}


/* ══════════════════════════════════════════
   POST AUTHOR BOX
   ══════════════════════════════════════════ */
.post-author-box {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    padding: 50px 40px 20px;
    display: flex;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgb(227, 236, 231);
}

.post-author-avatar.mt-2 {
    width: 200px;
    margin: 0 auto;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--np-saffron, #F37420);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.post-author-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-author-title p {
    font-size: 18px !important;
    font-weight: 600;
    margin-bottom: 0;
    width: max-content;
}

.post-author-content {
    text-align: left;
}

.author_tags {
    position: absolute;
    top: 0;
    background: var(--np-saffron, #F37420);
    color: #fff;
    padding: 6px 28px;
    border-radius: 0 0 10px 10px;
    font-size: 16px;
    font-weight: 700;
}

.post-author-bio {
    color: #424347;
    font-size: 14px !important;
}

.author_media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e9efec;
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    color: #0b3b33;
    font-size: 12px;
}

/* ══════════════════════════════════════════
   FLOATING BOOK BUTTON
   ══════════════════════════════════════════ */
.puja-floating-btn {
    background: var(--np-saffron, #F37420);
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 12px 24px;
    border: 2px solid #fff;
    border-radius: 30px;
    z-index: 9999;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
    overflow: hidden;
    box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
    animation: 2.5s infinite heartbeat;
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (min-width: 1281px) and (max-width: 1700px) {
    .panditcityContainer h1 { font-size: 24px; }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .panditcityContainer h1  { font-size: 22px; }
    .panditcityContainer     { padding-bottom: 35px; padding-top: 35px; padding-right: 2rem; padding-left: 2rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .panditcityContainer     { padding-bottom: 30px; padding-top: 30px; padding-right: 2rem; padding-left: 2rem; }
}

@media (min-width: 1200px) {
    .h3, h3 { font-size: 1.60rem; }
}

@media screen and (max-width: 1399px) {
    .table-scroll-bar {
        overflow-x: scroll;
        width: 100%;
        display: flex;
        max-width: max-content;
    }
}

@media (max-width: 767px) {
    .panditcityContainer     { padding-top: 10px; }
    .panditcityContainer h1  { font-size: 22px; }

    .ai-tools                { gap: 12px !important; padding: 8px !important; }
    .ai-tools span           { font-size: 12px !important; }

    .name-author             { font-size: 12px; }
    .upload-date             { font-size: 13px; display: block; line-height: 7px; }
    .blog-date               { margin-left: 5px; font-size: 13px !important; }

.all-achievements        { gap: 8px; }
    .achievements_items      { padding: 8px; }

    .np-related-grid         { grid-template-columns: 1fr; gap: 16px; }

.post-author-avatar img  { margin: 0 auto; }

    .puja-floating-btn::before {
        content: '';
        position: absolute;
        top: -5px; left: -5px;
        width: calc(100% + 10px);
        height: calc(100% + 10px);
        border-radius: 40px;
        background: conic-gradient(transparent 0deg, #ff4d4d 90deg, transparent 180deg, #ff4d4d 270deg, transparent 360deg);
        animation: 2s linear infinite rotate;
        z-index: 0;
        filter: blur(4px);
        opacity: .3;
    }
}

@media (max-width: 520px) {
    .feedback-review-card { height: max-content !important; }
}

/* ══════════════════════════════════════════
   FLOATING SHARE SIDEBAR (blog-page-icon)
   ══════════════════════════════════════════ */
.blog-page-icon.sticky-icon {
    display: block;
}

.blog-page-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 25px;
    height: 25px;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #f3dbc2;
    border-radius: 50px;
    padding: 14px;
}

.blog-page-icon a:nth-child(2),
.blog-page-icon a:nth-child(3),
.blog-page-icon a:nth-child(4) {
    margin-top: 22px !important;
}

.blog-page-icon {
    border: 1px solid #f3dbc2;
    width: 40px;
    border-radius: 30px;
    position: fixed;
    top: 32%;
    background-color: #fff;
    display: none;
    padding: 15px 0;
    left: 5px;
}

.blog-page-icon a:hover {
    box-shadow: 0 5px 10px 3px #f3dbc2;
}

@media (max-width: 767px) {
    .blog-page-icon {
        border: 0 !important;
        background-color: transparent !important;
        width: 40px !important;
        left: -3px !important;
    }
}


/* ══════════════════════════════════════════
   BLOG CONTENT LINKS & TABLE
   ══════════════════════════════════════════ */
.blog_detail a {
    text-decoration: underline;
    color: var(--np-saffron, #F37420);
}



/* ══════════════════════════════════════════
   NEW BLOG HERO SECTION
   ══════════════════════════════════════════ */

.np-blog-hero {
    background: linear-gradient(160deg, var(--np-cream, #FFF8F0) 0%, var(--np-light, #FFFBF5) 55%, var(--np-cream, #FFF8F0) 100%);
    padding: 44px 0;
}


/* Left column — all content centered */
.np-blog-hero .col-lg-9 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

/* Center the breadcrumb nav inside the left col */
.np-blog-hero .np-breadcrumb {
    justify-content: center;
    margin-bottom: 20px;
}

.np-blog-hero-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--np-text-dark, #3E2723);
    line-height: 1.25;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
}

.np-blog-hero-divider {
    width: 48px;
    height: 3px;
    background: var(--np-saffron, #F37420);
    border-radius: 2px;
    margin: 0 auto 24px;
}

.np-blog-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Pill badges */
.np-blog-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--np-white, #fff);
    border: 1.5px solid var(--np-border-saffron, rgba(243, 116, 32, 0.2));
    border-radius: var(--np-radius-pill, 999px);
    padding: 6px 18px 6px 6px;
    box-shadow: var(--np-shadow, 0 2px 10px rgba(0, 0, 0, 0.08));
}

.np-blog-meta-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--np-border-saffron, rgba(243, 116, 32, 0.2));
}

.np-blog-meta-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin: 0;
}

.np-blog-meta-icon--cal {
    background: var(--np-white, #fff);
    border: 1.5px solid var(--np-border-saffron, rgba(243, 116, 32, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.np-blog-meta-icon--cal i {
    color: var(--np-text-light, #9e8f87);
    font-size: 14px;
}

.np-blog-meta-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.np-blog-meta-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--np-text-light, #9e8f87);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1;
}

.np-blog-meta-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--np-text-mid, #6B5B4F);
    line-height: 1.3;
}

/* ── Booking Widget (right column) ────────────────── */

.np-blog-booking-widget {
    background: var(--np-white, #fff);
    border: 1.5px solid var(--np-border-saffron, rgba(243, 116, 32, 0.2));
    border-radius: var(--np-radius, 10px);
    padding: 22px 18px 18px;
    box-shadow: var(--np-shadow, 0 2px 10px rgba(0, 0, 0, 0.08));
    width: 100%;
}

.np-blog-booking-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
}

/* Connecting dotted line through step centres */
.np-blog-booking-steps::before {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(12.5% + 22px);
    right: calc(12.5% + 22px);
    height: 1.5px;
    background: repeating-linear-gradient(
        90deg,
        var(--np-border-saffron, rgba(243, 116, 32, 0.2)) 0,
        var(--np-border-saffron, rgba(243, 116, 32, 0.2)) 4px,
        transparent 4px,
        transparent 9px
    );
    z-index: 0;
}

.np-blog-booking-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.np-blog-booking-step > span {
    font-size: 10px;
    font-weight: 600;
    color: var(--np-text-light, #9e8f87);
    text-align: center;
    line-height: 1.2;
}

/* Step icon circle */
.np-blog-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--np-cream, #FFF8F0);
    border: 1.5px solid var(--np-border-saffron, rgba(243, 116, 32, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.np-blog-step-icon i {
    font-size: 17px;
    color: var(--np-text-light, #9e8f87);
}

/* Step number — small saffron badge at top-right */
.np-blog-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: var(--np-saffron, #F37420);
    color: var(--np-white, #fff);
    font-size: 9px;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
    z-index: 2;
}


/* np-blog-booking-btn removed — uses np_d_button() component */

/* ── AI Tools bar — floating fixed bottom-center ── */

.np-blog-ai-tools {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 20px;
    background: var(--np-white, #fff);
    border: 1.5px solid var(--np-border-saffron, rgba(243, 116, 32, 0.2));
    border-radius: var(--np-radius-pill, 999px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.np-blog-ai-tools.np-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(16px);
}

.np-blog-ai-label {
    font-size: 13px;
    color: var(--np-text-mid, #6B5B4F);
    white-space: nowrap;
    font-weight: 500;
}

.np-blog-ai-tools .ai-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.np-blog-ai-tools .ai-tool:hover {
    opacity: 1;
    transform: scale(1.15);
}

.np-blog-ai-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    background: var(--np-cream, #FFF8F0);
    border: 1px solid var(--np-border-saffron, rgba(243, 116, 32, 0.2));
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: var(--np-text-light, #9e8f87);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.np-blog-ai-close:hover {
    background: var(--np-saffron, #F37420);
    color: var(--np-white, #fff);
    border-color: var(--np-saffron, #F37420);
}

/* On mobile: sit above the fixed bottom nav (~60px tall) */
@media (max-width: 991px) {
    .np-blog-ai-tools {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
        z-index: 10000;
        font-size: 12px;
        gap: 9px;
        padding: 8px 14px 8px 16px;
    }
}

/* ══════════════════════════════════════════
   HERO — MOBILE OVERRIDES (≤ 767px)
   ══════════════════════════════════════════ */

@media (max-width: 767px) {
    .np-blog-hero {
        padding: 24px 0 20px;
    }

    .np-blog-hero .col-lg-9 {
        align-items: flex-start;
        text-align: left;
    }

    .np-blog-hero .np-breadcrumb {
        justify-content: flex-start;
        margin-bottom: 12px;
    }

    .np-blog-hero-title {
        font-size: 22px;
        line-height: 1.3;
        margin: 0 0 12px;
        letter-spacing: -0.2px;
    }

    .np-blog-hero-divider {
        width: 36px;
        height: 2px;
        margin: 0 0 16px;
    }

    .np-blog-hero-meta {
        gap: 8px;
        justify-content: flex-start;
    }

    .np-blog-meta-badge {
        padding: 4px 12px 4px 4px;
        gap: 7px;
    }

    .np-blog-meta-icon {
        width: 26px;
        height: 26px;
    }

    .np-blog-meta-icon--cal i {
        font-size: 12px;
    }

    .np-blog-meta-label {
        font-size: 8px;
    }

    .np-blog-meta-value {
        font-size: 11px;
    }

    /* Hide booking widget on mobile — no space */
    .np-blog-hero .col-lg-3 {
        display: none !important;
    }

    /* Hide AI tools label on very small screens */
    .np-blog-ai-label {
        display: none;
    }
}

/* ══════════════════════════════════════════
   BLOG CONTENT — MOBILE FONT SCALING
   ══════════════════════════════════════════ */

@media (max-width: 767px) {
    /* Base container */
    .blog_detail,
    .blog-container,
    .panditcityContainer2 {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Headings — proportional scale */
    .blog_detail h1 { font-size: 22px; line-height: 1.3; }
    .blog_detail h2 { font-size: 19px; line-height: 1.35; }
    .blog_detail h3 { font-size: 17px; line-height: 1.4; }
    .blog_detail h4 { font-size: 15px; line-height: 1.4; }
    .blog_detail h5,
    .blog_detail h6 { font-size: 14px; }

    /* Body text — !important to beat desktop overrides */
    .blog_detail p                { font-size: 14px !important; line-height: 1.7; }
    .blog_detail ul li,
    .blog_detail ol li            { font-size: 14px !important; line-height: 1.65; font-family: var(--np-font, 'Noto Sans', sans-serif) !important; }
    .blog_detail td,
    .blog_detail th               { font-size: 13px !important; }

    /* Post author box */
    .post-author-title p          { font-size: 15px !important; }
    .post-author-bio              { font-size: 13px; line-height: 1.6; }

    /* Related articles */
    .np-related-grid              { grid-template-columns: 1fr; }
    .np-related-heading           { font-size: 18px; }
}
