/* ==========================================================================
   PGT & TGT Hindi Master Notes v2.1.0 - 100% Full-Page Layout (.pth-notes-*)
   ========================================================================== */

/* WordPress Theme Container Full-Width Breakout (Astra, GeneratePress, Block Themes, etc.) */
.entry-content:has(.pth-notes-wrapper),
.post-content:has(.pth-notes-wrapper),
.page-content:has(.pth-notes-wrapper),
.wp-block-post-content:has(.pth-notes-wrapper),
.is-layout-constrained:has(.pth-notes-wrapper),
.site-content:has(.pth-notes-wrapper) .content-area,
.site-content:has(.pth-notes-wrapper) #primary,
.ast-container:has(.pth-notes-wrapper),
.inside-article:has(.pth-notes-wrapper),
main:has(.pth-notes-wrapper),
article:has(.pth-notes-wrapper) {
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    flex: 1 1 100% !important;
}

.entry-content > .pth-notes-wrapper,
.wp-block-post-content > .pth-notes-wrapper,
.is-layout-constrained > .pth-notes-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Hide any legacy print/pdf buttons if cached anywhere */
[data-action="print-notes"],
.pth-print-btn {
    display: none !important;
}

.pth-notes-wrapper,
.pth-notes-wrapper *,
.pth-notes-wrapper *::before,
.pth-notes-wrapper *::after {
    box-sizing: border-box !important;
}

.pth-notes-wrapper {
    --pth-primary: #b91c1c;
    --pth-primary-dark: #991b1b;
    --pth-primary-light: #fef2f2;
    --pth-secondary: #047857;
    --pth-secondary-light: #ecfdf5;
    --pth-accent: #d97706;
    --pth-bg: #f8fafc;
    --pth-card: #ffffff;
    --pth-text: #0f172a;
    --pth-text-muted: #475569;
    --pth-border: #e2e8f0;
    --pth-radius-lg: 16px;
    --pth-radius-md: 12px;
    --pth-radius-sm: 8px;
    --pth-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --pth-shadow-hover: 0 12px 28px -4px rgba(185, 28, 28, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.06);

    font-family: 'Noto Sans Devanagari', 'Hind', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: var(--pth-text) !important;
    background: var(--pth-bg) !important;
    line-height: 1.75 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 !important;
    padding: 24px !important;
    border-radius: 20px !important;
    border: 1px solid var(--pth-border) !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.07) !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.pth-notes-hero {
    background: linear-gradient(135deg, #450a0a 0%, #991b1b 52%, #b45309 100%) !important;
    color: #ffffff !important;
    padding: 28px 28px !important;
    border-radius: var(--pth-radius-lg) !important;
    margin-bottom: 22px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px -5px rgba(153, 27, 27, 0.35) !important;
    width: 100% !important;
}

.pth-notes-hero::after {
    content: "अ आ क ख साहित्य" !important;
    position: absolute !important;
    right: -10px !important;
    bottom: -24px !important;
    font-size: 76px !important;
    font-weight: 800 !important;
    color: rgba(255, 255, 255, 0.07) !important;
    pointer-events: none !important;
    user-select: none !important;
    letter-spacing: 4px !important;
}

.pth-notes-hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fde68a !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
    border: 1px solid rgba(253, 230, 138, 0.35) !important;
}

.pth-notes-hero h2 {
    color: #ffffff !important;
    font-size: clamp(22px, 3vw, 32px) !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.3px !important;
}

.pth-notes-hero p {
    color: #fef2f2 !important;
    font-size: 15px !important;
    margin: 0 !important;
    max-width: 100% !important;
    line-height: 1.65 !important;
}

/* Course Selector Tabs (PGT First, TGT Second) */
.pth-notes-course-tabs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 22px !important;
    width: 100% !important;
}

.pth-notes-course-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 18px 22px !important;
    border-radius: var(--pth-radius-md) !important;
    background: var(--pth-card) !important;
    border: 2px solid var(--pth-border) !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    position: relative !important;
    box-shadow: var(--pth-shadow) !important;
    width: 100% !important;
}

.pth-notes-course-btn:hover {
    border-color: #f87171 !important;
    transform: translateY(-2px) !important;
}

.pth-notes-course-btn.pth-active {
    background: linear-gradient(135deg, #fff1f2 0%, #fef3c7 100%) !important;
    border-color: var(--pth-primary) !important;
    box-shadow: 0 8px 22px -4px rgba(185, 28, 28, 0.22) !important;
}

.pth-notes-course-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

.pth-notes-course-pill {
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    background: #fee2e2 !important;
    color: #991b1b !important;
    letter-spacing: 0.4px !important;
}

.pth-notes-course-btn.pth-active .pth-notes-course-pill {
    background: var(--pth-primary) !important;
    color: #ffffff !important;
}

.pth-notes-course-status {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
}

.pth-notes-course-btn.pth-active .pth-notes-course-status {
    color: var(--pth-primary) !important;
}

.pth-notes-course-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--pth-text) !important;
    margin: 2px 0 6px 0 !important;
}

.pth-notes-course-desc {
    font-size: 13.5px !important;
    color: var(--pth-text-muted) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.5 !important;
}

.pth-notes-course-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    padding-top: 10px !important;
    border-top: 1px dashed #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
}

.pth-notes-course-meta span {
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 3px 9px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Search & Action Toolbar (NO Print/PDF button) */
.pth-notes-toolbar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    background: var(--pth-card) !important;
    padding: 14px 18px !important;
    border-radius: var(--pth-radius-md) !important;
    border: 1px solid var(--pth-border) !important;
    margin-bottom: 22px !important;
    box-shadow: var(--pth-shadow) !important;
    width: 100% !important;
}

.pth-notes-breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.pth-notes-bc-item {
    color: var(--pth-primary) !important;
    cursor: pointer !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    transition: all 0.15s ease !important;
}

.pth-notes-bc-item:hover {
    background: var(--pth-primary) !important;
    color: #ffffff !important;
}

.pth-notes-bc-sep {
    color: #94a3b8 !important;
    font-weight: 700 !important;
}

.pth-notes-bc-current {
    color: #1e293b !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
}

.pth-notes-search-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 340px !important;
    max-width: 600px !important;
}

.pth-notes-search-input {
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 14px !important;
    color: var(--pth-text) !important;
    background: #f8fafc !important;
    outline: none !important;
    transition: border-color 0.2s !important;
}

.pth-notes-search-input:focus {
    border-color: var(--pth-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12) !important;
}

.pth-notes-btn-action {
    padding: 10px 16px !important;
    border-radius: 8px !important;
    border: 1px solid var(--pth-primary) !important;
    background: var(--pth-primary) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.18s ease !important;
}

.pth-notes-btn-action:hover {
    background: var(--pth-primary-dark) !important;
}

/* Step 1: Subject List Grid (Always stays at top) */
.pth-notes-section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    width: 100% !important;
}

.pth-notes-section-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--pth-text) !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.pth-notes-subject-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 16px !important;
    margin-bottom: 26px !important;
    width: 100% !important;
}

.pth-notes-subject-card {
    background: var(--pth-card) !important;
    border: 1.5px solid var(--pth-border) !important;
    border-radius: var(--pth-radius-md) !important;
    padding: 18px !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: var(--pth-shadow) !important;
}

.pth-notes-subject-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--pth-shadow-hover) !important;
    border-color: var(--pth-primary) !important;
}

.pth-notes-subject-card.pth-active-subject {
    border: 2.5px solid var(--pth-primary) !important;
    background: linear-gradient(180deg, #fffafa 0%, #fff1f2 100%) !important;
    box-shadow: 0 8px 24px -4px rgba(185, 28, 28, 0.18) !important;
}

.pth-notes-subj-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
}

.pth-notes-subj-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
}

.pth-notes-subj-code {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
}

.pth-notes-subject-card.pth-active-subject .pth-notes-subj-code {
    background: var(--pth-primary) !important;
    color: #ffffff !important;
}

.pth-notes-subj-title {
    font-size: 16.5px !important;
    font-weight: 800 !important;
    color: var(--pth-text) !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.38 !important;
}

.pth-notes-subj-sub {
    font-size: 13px !important;
    color: var(--pth-text-muted) !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.5 !important;
}

.pth-notes-subj-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 10px !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: var(--pth-primary) !important;
}

/* ==========================================================================
   Step 2 & 3: 100% FULL-PAGE STUDY ZONE (Topic Pills Bar + Full-Page Notes)
   ========================================================================== */
.pth-fullpage-study-zone,
.pth-notes-reader-layout {
    display: block !important;
    grid-template-columns: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Horizontal Topic Pills Navigation Bar (Full Width) */
.pth-fullpage-topics-bar,
.pth-notes-sidebar {
    background: var(--pth-card) !important;
    border: 2px solid #fecaca !important;
    border-radius: var(--pth-radius-md) !important;
    padding: 18px 22px !important;
    margin-bottom: 22px !important;
    box-shadow: var(--pth-shadow) !important;
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    display: block !important;
}

.pth-fullpage-topics-toprow {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    width: 100% !important;
}

.pth-fullpage-topics-title {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #991b1b !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.pth-fullpage-topics-hint {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #475569 !important;
}

.pth-fullpage-topic-pills,
.pth-notes-topic-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
}

.pth-fullpage-topic-pill,
.pth-notes-topic-btn {
    flex: 1 1 220px !important;
    text-align: left !important;
    padding: 11px 16px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
}

.pth-fullpage-topic-pill:hover,
.pth-notes-topic-btn:hover {
    background: #fef2f2 !important;
    border-color: #f87171 !important;
    color: #991b1b !important;
}

.pth-fullpage-topic-pill.pth-active,
.pth-notes-topic-btn.pth-active {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    color: #ffffff !important;
    border-color: #7f1d1d !important;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.28) !important;
}

/* 100% Full-Page Reading Area Below Topic Pills */
.pth-fullpage-reading-area,
.pth-notes-content-area {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.pth-notes-topic-card {
    background: var(--pth-card) !important;
    border: 1.5px solid var(--pth-border) !important;
    border-radius: var(--pth-radius-lg) !important;
    padding: 32px 36px !important;
    margin-bottom: 24px !important;
    box-shadow: var(--pth-shadow) !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.pth-notes-topic-header {
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 18px !important;
    margin-bottom: 24px !important;
    width: 100% !important;
}

.pth-notes-topic-badge-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.pth-notes-tag {
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.pth-notes-topic-title {
    font-size: clamp(21px, 2.6vw, 27px) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.38 !important;
}

.pth-notes-block {
    margin-bottom: 22px !important;
    padding: 22px 26px !important;
    border-radius: var(--pth-radius-md) !important;
    border: 1px solid var(--pth-border) !important;
    width: 100% !important;
    max-width: 100% !important;
}

.pth-notes-block-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    margin: 0 0 14px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.pth-block-concept {
    background: #ffffff !important;
    border-left: 5px solid #dc2626 !important;
}

.pth-block-concept .pth-notes-block-title {
    color: #991b1b !important;
}

.pth-block-concept p {
    margin: 0 0 12px 0 !important;
    font-size: 16px !important;
    color: #1e293b !important;
    line-height: 1.8 !important;
}

.pth-block-concept ul,
.pth-block-concept ol {
    margin: 8px 0 0 0 !important;
    padding-left: 24px !important;
}

.pth-block-concept li {
    margin-bottom: 10px !important;
    font-size: 15.5px !important;
    color: #1e293b !important;
    line-height: 1.75 !important;
}

.pth-block-formulas {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    border-left: 5px solid #d97706 !important;
}

.pth-block-formulas .pth-notes-block-title {
    color: #92400e !important;
}

.pth-formula-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
}

.pth-formula-item {
    background: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #fcd34d !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
}

.pth-formula-bullet {
    color: #d97706 !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
}

.pth-block-tricks {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%) !important;
    border-color: #a7f3d0 !important;
    border-left: 5px solid #059669 !important;
}

.pth-block-tricks .pth-notes-block-title {
    color: #065f46 !important;
}

.pth-block-tricks div,
.pth-block-tricks p,
.pth-block-tricks li {
    font-size: 15.5px !important;
    color: #064e3b !important;
    line-height: 1.75 !important;
}

.pth-examples-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-bottom: 22px !important;
    width: 100% !important;
}

.pth-example-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 5px solid #4f46e5 !important;
    border-radius: var(--pth-radius-md) !important;
    padding: 20px 24px !important;
    width: 100% !important;
}

.pth-example-head {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #3730a3 !important;
    margin-bottom: 10px !important;
}

.pth-example-prob {
    background: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 10px !important;
}

.pth-example-sol {
    font-size: 15px !important;
    color: #1e293b !important;
    padding-left: 4px !important;
    line-height: 1.75 !important;
}

.pth-practice-box {
    background: #f5f3ff !important;
    border: 1px solid #ddd6fe !important;
    border-left: 5px solid #7c3aed !important;
    border-radius: var(--pth-radius-md) !important;
    padding: 20px 24px !important;
    width: 100% !important;
}

.pth-practice-q {
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: #4c1d95 !important;
    margin-bottom: 12px !important;
}

.pth-practice-toggle {
    background: #7c3aed !important;
    color: #ffffff !important;
    border: none !important;
    padding: 9px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.18s !important;
}

.pth-practice-toggle:hover {
    background: #6d28d9 !important;
}

.pth-practice-ans {
    margin-top: 12px !important;
    padding: 14px 16px !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #c4b5fd !important;
    color: #1e293b !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: none !important;
}

.pth-practice-ans.pth-show {
    display: block !important;
}

.pth-notes-nav-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 26px !important;
    padding-top: 18px !important;
    border-top: 1px solid var(--pth-border) !important;
    width: 100% !important;
}

.pth-nav-btn {
    padding: 11px 20px !important;
    border-radius: 10px !important;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.18s !important;
}

.pth-nav-btn:hover:not(:disabled) {
    background: var(--pth-primary) !important;
    color: #ffffff !important;
    border-color: var(--pth-primary) !important;
}

.pth-nav-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

@media (max-width: 768px) {
    .pth-notes-wrapper {
        padding: 14px !important;
    }
    .pth-notes-topic-card {
        padding: 20px 18px !important;
    }
    .pth-notes-block {
        padding: 16px 16px !important;
    }
}
