/* ══════════════════════════════════════════
   Inner Page Styles — shared by all non-homepage pages
   ══════════════════════════════════════════ */


/* ── Page Background ── */

.page-main {
    background: var(--clr-page-bg);
}


/* ── Banner ── */

.page-banner {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    background: var(--clr-neutral);
}

.page-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(246, 246, 243, 0.88);
}

.page-banner-content {
    position: relative;
    z-index: 1;
    padding-top: 48px;
    padding-bottom: 40px;
    width: 100%;
}

.page-banner h1 {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--clr-dark);
    margin-bottom: 8px;
}

.page-banner-subtitle {
    font-size: var(--fs-body);
    color: var(--clr-secondary);
    margin-bottom: 20px;
    max-width: 600px;
}

.page-banner-cta {
    display: inline-block;
}

/* Breadcrumb */
.breadcrumb {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--clr-secondary);
}

.breadcrumb a:hover {
    color: var(--clr-green);
}

.breadcrumb-sep {
    margin: 0 8px;
    color: var(--clr-secondary);
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--clr-dark);
}

@media (min-width: 768px) {
    .page-banner {
        min-height: 260px;
    }

    .page-banner-content {
        padding-top: 56px;
        padding-bottom: 48px;
    }
}

@media (min-width: 1024px) {
    .page-banner {
        min-height: 320px;
    }

    .page-banner-content {
        padding-top: 64px;
        padding-bottom: 56px;
    }
}


/* ── Page Description ── */

.page-description {
    padding: 24px 0;
}


/* ── TOC Bar ── */

.toc-bar {
    background: var(--clr-neutral);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-left: 3px solid var(--clr-dark);
    border-right: 3px solid var(--clr-dark);
    position: sticky;
    top: 0;
    z-index: 40;
}

.toc-bar-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.toc-bar-inner::-webkit-scrollbar {
    display: none;
}

.toc-bar-list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.toc-bar-item {
    display: block;
    padding: 14px 0;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--clr-secondary);
    border-bottom: 2px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    cursor: pointer;
}

.toc-bar-item:hover,
.toc-bar-item.active {
    color: var(--clr-dark);
}

.toc-bar-item.active {
    border-bottom-color: var(--clr-green);
}

/* Mobile accordion */
.toc-bar-toggle {
    display: none;
}

@media (max-width: 767px) {
    .toc-bar-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 0;
        font-size: var(--fs-small);
        font-weight: var(--fw-medium);
        color: var(--clr-dark);
    }

    .toc-bar-toggle svg {
        transition: transform var(--transition-fast);
    }

    .toc-bar-toggle.is-open svg {
        transform: rotate(180deg);
    }

    .toc-bar-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-bottom: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding-bottom 0.3s ease;
    }

    .toc-bar-list.is-open {
        max-height: 500px;
        padding-bottom: 8px;
    }

    .toc-bar-item {
        padding: 10px 0;
        border-bottom: none;
    }

    .toc-bar-item.active {
        color: var(--clr-green);
    }
}


/* ── Content Layout ── */

.page-body {
    padding-top: 40px;
    padding-bottom: var(--section-py);
    overflow-wrap: break-word;
    word-break: break-word;
}


/* ── Content Area Typography ── */

.content-area h2 {
    color: var(--clr-green);
    font-size: var(--fs-h3);
    line-height: 1.35;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}

.content-area h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--clr-green);
    border-radius: 2px;
}

.content-area h3 {
    color: var(--clr-red);
    font-size: var(--fs-h4);
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    position: relative;
}

.content-area h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--clr-red);
    border-radius: 2px;
}

.content-area h4,
.content-area h5,
.content-area h6 {
    color: var(--clr-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-area p {
    color: var(--clr-dark);
    line-height: var(--lh-body);
    text-align: justify;
    margin-bottom: 16px;
}

.content-area a {
    color: var(--clr-green);
}

.content-area a:hover {
    color: var(--clr-green-hover);
}

.content-area ul,
.content-area ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-area ul {
    list-style: disc;
}

.content-area ol {
    list-style: decimal;
}

.content-area li {
    color: var(--clr-dark);
    line-height: var(--lh-body);
    margin-bottom: 6px;
}

.content-area img {
    border-radius: 8px;
    margin: 24px 0;
}

.content-area blockquote {
    border-left: 4px solid var(--clr-green);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--clr-neutral);
    border-radius: 0 8px 8px 0;
    color: var(--clr-secondary);
    font-style: italic;
}

.content-area table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin: 24px 0;
    border: 1px solid var(--clr-secondary);
}

.content-area .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.content-area table th,
.content-area table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--clr-secondary);
}

.content-area th {
    background: var(--clr-neutral);
    font-weight: var(--fw-semibold);
}


/* ── Sidebar Cards ── */

.sidebar-card {
    background: var(--clr-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-card-header i {
    color: var(--clr-green);
    font-size: 18px;
}

.sidebar-card-title {
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--clr-dark);
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

.top-item {
    display: block;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.top-item:hover {
    border-color: var(--clr-green);
    box-shadow: 0 2px 8px rgba(0, 150, 110, 0.1);
}

.top-item img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.top-item-name {
    padding: 10px 12px;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--clr-dark);
    text-align: center;
}

.top-item:hover .top-item-name {
    color: var(--clr-green);
}


/* ── Conclusion ── */

.conclusion {
    border-left: 4px solid var(--clr-green);
    background: var(--clr-neutral);
    border-radius: 0 12px 12px 0;
    padding: 28px 32px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.conclusion-label {
    font-size: var(--fs-label);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--clr-green);
    margin-bottom: 12px;
}

.conclusion-body {
    font-size: var(--fs-body);
    color: var(--clr-secondary);
    line-height: var(--lh-body);
}

.conclusion-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .conclusion {
        padding: 20px 24px;
    }
}


/* ── Page FAQ ── */

.page-faq {
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-faq-heading {
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    color: var(--clr-dark);
    margin-bottom: 8px;
}

.page-faq-line {
    width: 40px;
    height: 3px;
    background: var(--clr-green);
    border-radius: 2px;
    margin-bottom: 24px;
}

.page-faq .faq-item {
    border-bottom: 1px solid var(--border-light);
}

.page-faq .faq-item:first-child {
    border-top: 1px solid var(--border-light);
}

.page-faq .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--clr-dark);
    text-align: left;
    gap: 16px;
}

.page-faq .faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--clr-green);
    transition: transform var(--transition-fast);
}

.page-faq .faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.page-faq .faq-answer {
    display: none;
    padding-bottom: 20px;
    font-size: var(--fs-body);
    color: var(--clr-secondary);
    line-height: var(--lh-body);
}

.page-faq .faq-item.open .faq-answer {
    display: block;
}

@media (max-width: 767px) {
    .page-faq .faq-question {
        font-size: 15px;
        padding: 16px 0;
    }
}


/* ── About the Author ── */

.about-author {
    border-top: 3px solid var(--clr-green);
    background: var(--clr-white);
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    border-radius: 0 0 12px 12px;
    padding: 28px 32px;
    margin-top: 40px;
}

.about-author-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-author-avatar {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.about-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-author-name {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    color: var(--clr-dark);
    margin-bottom: 2px;
}

.about-author-designation {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--clr-green);
    margin-bottom: 8px;
}

.about-author-bio {
    font-size: var(--fs-small);
    color: var(--clr-secondary);
    line-height: var(--lh-body);
}

@media (max-width: 767px) {
    .about-author {
        padding: 24px;
    }

    .about-author-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-author-avatar {
        width: 56px;
        height: 56px;
    }
}


/* ── Blog Grid ── */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--clr-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.blog-card-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.blog-card-placeholder {
    aspect-ratio: 16 / 9;
    background: var(--clr-neutral);
}

.blog-card-body {
    padding: 20px;
}

.blog-card-category {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    color: var(--clr-green);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    color: var(--clr-dark);
    margin-bottom: 8px;
    line-height: var(--lh-snug);
}

.blog-card-title a:hover {
    color: var(--clr-green);
}

.blog-card-excerpt {
    font-size: var(--fs-small);
    color: var(--clr-secondary);
    line-height: var(--lh-body);
    margin-bottom: 12px;
}

.blog-card-meta {
    font-size: var(--fs-xs);
    color: var(--clr-secondary);
}

@media (max-width: 767px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Blog Pagination ── */

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--clr-secondary);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.blog-pagination a:hover {
    color: var(--clr-green);
    border-color: var(--clr-green);
}

.blog-pagination .current {
    background: var(--clr-green);
    color: var(--clr-white);
    border-color: var(--clr-green);
}


/* ── Bottom Bar ── */

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-bar.is-visible {
    transform: translateY(0);
}

.bottom-bar-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    font-family: var(--ff-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    line-height: 1;
}

.bottom-bar-item:hover {
    opacity: 0.9;
}

.bottom-bar-item i {
    font-size: 18px;
}

.bottom-bar-whatsapp {
    background: var(--clr-green);
    color: var(--clr-white);
}

.bottom-bar-call {
    background: var(--clr-white);
    color: var(--clr-dark);
}

.bottom-bar-counselling {
    background: var(--clr-red);
    color: var(--clr-white);
}

@media (max-width: 767px) {
    .bottom-bar-counselling {
        display: none;
    }

    .bottom-bar-item {
        padding: 18px 8px;
        font-size: var(--fs-xs);
    }
}
