/* Tapasvi — Modern inner pages (about, gallery, contact, jobs, vision, legal) */

.pg-hero {
    background: linear-gradient(135deg, rgba(0, 145, 205, 0.08) 0%, rgba(0, 145, 205, 0.02) 50%, #f8fbfd 100%);
    border-bottom: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    padding: 2.25rem 0 2rem;
    margin-bottom: 0;
}
.pg-breadcrumb {
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 0.85rem;
}
.pg-breadcrumb a { color: var(--tc-primary, #0091cd); text-decoration: none; }
.pg-breadcrumb a:hover { text-decoration: underline; }
.pg-breadcrumb-sep { margin: 0 0.4rem; opacity: 0.5; }
.pg-hero-badge {
    display: inline-block;
    background: rgba(0, 145, 205, 0.12);
    color: var(--tc-primary, #0091cd);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.65rem;
}
.pg-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.pg-hero-sub {
    font-size: 1.05rem;
    color: #5a6a7a;
    max-width: 640px;
    margin-bottom: 0;
}

.pg-section { padding: 2.5rem 0; }
.pg-section.pg-section-alt { background: #f8fbfd; }
.pg-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 0.35rem;
}
.pg-section-lead { color: #6c757d; margin-bottom: 1.75rem; }

/* Stats row */
.pg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.pg-stat {
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pg-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 145, 205, 0.1); }
.pg-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tc-primary, #0091cd);
    line-height: 1.1;
}
.pg-stat span { font-size: 0.82rem; color: #6c757d; }

/* Content + image split */
.pg-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.pg-split-img {
    border-radius: var(--tc-box-radius, 14px);
    overflow: hidden;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.pg-split-img img { width: 100%; height: auto; display: block; object-fit: cover; min-height: 280px; }
.pg-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #3a4a5a;
}
.pg-content h2, .pg-content h3 { color: #1a2b3c; margin-top: 1.25rem; }
.pg-content p { margin-bottom: 1rem; }

/* Feature cards */
.pg-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.pg-feature {
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
    padding: 1.5rem;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pg-feature:hover { border-color: rgba(0, 145, 205, 0.4); box-shadow: 0 6px 18px rgba(0, 145, 205, 0.08); }
.pg-feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0091cd, #0077a8);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.pg-feature h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: #1a2b3c; }
.pg-feature p { font-size: 0.9rem; color: #6c757d; margin: 0; line-height: 1.55; }

/* Vision pillars */
.pg-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pg-pillar {
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.pg-pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0091cd, #00b4f0);
}
.pg-pillar.vision::before { background: linear-gradient(90deg, #0091cd, #0077a8); }
.pg-pillar.mission::before { background: linear-gradient(90deg, #28a745, #20c997); }
.pg-pillar h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
.pg-pillar.vision h3 { color: #0091cd; }
.pg-pillar.mission h3 { color: #28a745; }
.pg-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.pg-value {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
}
.pg-value i { font-size: 1.5rem; color: var(--tc-primary, #0091cd); margin-bottom: 0.5rem; }
.pg-value strong { display: block; font-size: 0.9rem; color: #1a2b3c; }

/* Gallery */
.pg-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    justify-content: center;
}
.pg-filter-btn {
    border: 2px solid rgba(0, 145, 205, 0.25);
    background: #fff;
    color: #3a4a5a;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}
.pg-filter-btn:hover, .pg-filter-btn.active {
    background: var(--tc-primary, #0091cd);
    border-color: var(--tc-primary, #0091cd);
    color: #fff;
}
.pg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.pg-gallery-item {
    position: relative;
    border-radius: var(--tc-box-radius, 14px);
    overflow: hidden;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    aspect-ratio: 4/3;
    cursor: pointer;
    background: #e9ecef;
}
.pg-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.pg-gallery-item:hover img { transform: scale(1.06); }
.pg-gallery-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2rem 1rem 0.85rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.25s;
}
.pg-gallery-item:hover .pg-gallery-cap { opacity: 1; }
.pg-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    border: 2px dashed rgba(0, 145, 205, 0.25);
    border-radius: var(--tc-box-radius, 14px);
}

/* Jobs */
.pg-jobs-grid { display: grid; gap: 1.25rem; }
.pg-job-card {
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
    padding: 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
    transition: box-shadow 0.2s;
}
.pg-job-card:hover { box-shadow: 0 8px 24px rgba(0, 145, 205, 0.1); }
.pg-job-title { font-size: 1.2rem; font-weight: 700; color: #1a2b3c; margin-bottom: 0.35rem; }
.pg-job-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.85rem; color: #6c757d; margin-bottom: 0.75rem; }
.pg-job-meta span i { color: var(--tc-primary, #0091cd); margin-right: 0.3rem; }
.pg-job-desc { font-size: 0.92rem; color: #5a6a7a; line-height: 1.6; margin: 0; }
.pg-job-actions { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.pg-job-expiry { font-size: 0.78rem; color: #6c757d; }
.pg-job-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}
.pg-job-featured { border-color: rgba(255, 193, 7, 0.45); }
.pg-job-skills { font-size: 0.85rem; color: #5a6a7a; margin-top: 0.5rem; }
.pg-job-apply-note {
    background: #f0f9ff;
    border: 2px solid rgba(0, 145, 205, 0.15);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

/* Job detail */
.pg-job-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: start; }
.pg-job-detail-card {
    background: #fff;
    border: 2px solid rgba(0, 145, 205, 0.18);
    border-radius: 14px;
    padding: 1.5rem;
}
.pg-job-detail-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.85rem; color: #6c757d; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.pg-job-detail-meta i { color: #0091cd; margin-right: 0.3rem; }
.pg-job-detail-h { font-size: 1rem; font-weight: 700; color: #0091cd; margin: 1.25rem 0 0.75rem; }
.pg-job-detail-body { font-size: 0.95rem; line-height: 1.7; color: #374151; }
.pg-job-apply-card {
    background: linear-gradient(135deg, #0091cd, #0077a8);
    color: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}
.pg-job-apply-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pg-job-apply-card p { font-size: 0.9rem; opacity: 0.9; }

/* Job application form */
.pg-apply-section-card {
    background: #fff;
    border: 2px solid rgba(0, 145, 205, 0.15);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.pg-apply-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0091cd;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}
.pg-apply-declaration {
    background: #f8fbfd;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.pg-apply-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.pg-apply-success {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border: 2px solid rgba(40, 167, 69, 0.25);
    border-radius: 14px;
}
.pg-apply-success-icon { font-size: 4rem; color: #28a745; margin-bottom: 1rem; }

/* Teacher application form */
.pg-teacher-form .pg-sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: #0091cd;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.5rem;
}
.pg-apply-table { font-size: 0.85rem; margin-bottom: 0; }
.pg-apply-table th { background: #f0f9ff; color: #0077a8; font-weight: 600; white-space: nowrap; }
.pg-apply-table td { vertical-align: middle; }
.pg-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem 1rem;
}
.pg-declaration-box { background: #f8fbfd; border-color: rgba(0, 145, 205, 0.25); }
.pg-empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    background: #f8fbfd;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
}
.pg-empty-state i { font-size: 2.5rem; color: rgba(0, 145, 205, 0.35); margin-bottom: 1rem; }

/* Contact */
.pg-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.pg-contact-card {
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: transform 0.2s;
}
.pg-contact-card:hover { transform: translateY(-3px); }
.pg-contact-card .pg-cc-icon {
    width: 52px; height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(0, 145, 205, 0.1);
    color: var(--tc-primary, #0091cd);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.pg-contact-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.pg-contact-card p { font-size: 0.9rem; color: #6c757d; margin: 0; line-height: 1.55; }
.pg-contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.pg-form-box, .pg-map-box {
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
    padding: 1.75rem;
}
.pg-form-box .form-control, .pg-form-box .form-select {
    border-radius: 10px;
    border: 2px solid rgba(0, 145, 205, 0.15);
    padding: 0.6rem 0.85rem;
}
.pg-form-box .form-control:focus {
    border-color: var(--tc-primary, #0091cd);
    box-shadow: 0 0 0 3px rgba(0, 145, 205, 0.12);
}
.pg-hours { margin-top: 1.25rem; }
.pg-hours-row {
    display: flex; justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 145, 205, 0.1);
    font-size: 0.9rem;
}
.pg-hours-row:last-child { border-bottom: none; }
.pg-social-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.pg-social-link {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: #3a4a5a;
    padding: 1rem; min-width: 90px;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
    transition: all 0.2s;
}
.pg-social-link:hover { border-color: var(--tc-primary, #0091cd); color: var(--tc-primary, #0091cd); transform: translateY(-2px); }
.pg-social-link i { font-size: 1.5rem; margin-bottom: 0.4rem; }
.pg-social-link span { font-size: 0.78rem; font-weight: 500; }

/* FAQ accordion */
.pg-faq .accordion-item {
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px) !important;
    margin-bottom: 0.65rem;
    overflow: hidden;
}
.pg-faq .accordion-button {
    font-weight: 600;
    color: #1a2b3c;
    background: #fff;
    box-shadow: none !important;
}
.pg-faq .accordion-button:not(.collapsed) {
    background: rgba(0, 145, 205, 0.06);
    color: var(--tc-primary, #0091cd);
}

/* Legal pages */
.pg-legal {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
    padding: 2rem 2.25rem;
}
.pg-legal h2 { font-size: 1.15rem; font-weight: 700; color: #1a2b3c; margin: 1.75rem 0 0.65rem; }
.pg-legal h2:first-child { margin-top: 0; }
.pg-legal p, .pg-legal li { font-size: 0.95rem; line-height: 1.7; color: #4a5a6a; }
.pg-legal ul { padding-left: 1.25rem; }
.pg-legal-updated { font-size: 0.82rem; color: #6c757d; margin-bottom: 1.5rem; }

/* CTA bar */
.pg-cta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, #0091cd, #0077a8);
    color: #fff;
    border-radius: var(--tc-box-radius, 14px);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}
.pg-cta-text strong { display: block; font-size: 1.1rem; }
.pg-cta-text span { font-size: 0.88rem; opacity: 0.9; }
.pg-cta-bar .btn { background: #fff; color: #0091cd; border: none; font-weight: 600; }
.pg-cta-bar .btn:hover { background: #f0f9ff; color: #0077a8; }

/* Map */
.pg-map-box .map-responsive, .pg-map-box iframe {
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}

/* Lightbox modal */
#pgLightbox .modal-content { border: none; border-radius: 14px; overflow: hidden; }
#pgLightbox .modal-body { padding: 0; }
#pgLightbox img { width: 100%; height: auto; display: block; }
#pgLightbox .modal-caption { padding: 1rem 1.25rem; background: #f8fbfd; font-size: 0.9rem; color: #3a4a5a; }

/* Teachers page — full photo, no crop */
.hm-teachers-page-grid .hm-teacher-card-full {
    max-width: 100%;
    width: 100%;
    padding: 1.25rem 1rem 1.35rem;
}
.hm-teacher-photo-box-full {
    width: 100%;
    max-width: 200px;
    height: 220px;
    border-radius: 14px;
    border: 2px solid rgba(0, 145, 205, 0.25);
    background: #f4f9fc;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}
.hm-teacher-photo-full {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center center;
    border-radius: 8px;
    background: transparent;
}
.pg-teacher-filters .pg-filter-btn { text-decoration: none; }
.pg-stats-teachers { margin-bottom: 1.5rem; }

/* Vision — mission list & history */
.pg-mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pg-mission-list li {
    padding: 0.45rem 0;
    font-size: 0.92rem;
    color: #4a5a6a;
    line-height: 1.55;
    border-bottom: 1px solid rgba(0, 145, 205, 0.08);
}
.pg-mission-list li:last-child { border-bottom: none; }
.pg-mission-list li i { color: #28a745; margin-right: 0.5rem; }
.pg-history-block {
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: var(--tc-box-radius, 14px);
    padding: 2rem;
}
.pg-history-head { margin-bottom: 1.25rem; }
.pg-history-content p { margin-bottom: 1rem; line-height: 1.75; color: #4a5a6a; }
.pg-history-img {
    border-radius: var(--tc-box-radius, 14px);
    overflow: hidden;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
}
.pg-history-img img { width: 100%; height: auto; display: block; }

/* Responsive */
@media (max-width: 991px) {
    .pg-stats { grid-template-columns: repeat(2, 1fr); }
    .pg-split, .pg-contact-split, .pg-pillars { grid-template-columns: 1fr; }
    .pg-features { grid-template-columns: repeat(2, 1fr); }
    .pg-values { grid-template-columns: repeat(2, 1fr); }
    .pg-contact-grid { grid-template-columns: 1fr; }
    .pg-job-card { grid-template-columns: 1fr; }
    .pg-job-actions { align-items: flex-start; }
    .pg-job-detail-grid { grid-template-columns: 1fr; }
    .pg-job-apply-card { position: static; }
    .pg-apply-actions { flex-direction: column; align-items: stretch; }
    .pg-apply-actions .btn { width: 100%; }
    .pg-check-grid { grid-template-columns: 1fr; }
    .pg-apply-table { font-size: 0.78rem; }
}
@media (max-width: 575px) {
    .pg-stats, .pg-features, .pg-values { grid-template-columns: 1fr; }
    .pg-section { padding: 1.75rem 0; }
    .pg-legal { padding: 1.5rem; }
    .pg-cta-bar { flex-direction: column; text-align: center; }
}

/* Institution SEO landing pages */
.pg-inst-link-card {
    display: block;
    padding: 1rem 1.1rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.pg-inst-link-card:hover {
    border-color: var(--tc-primary, #0091cd);
    box-shadow: 0 4px 14px rgba(0, 145, 205, 0.12);
    color: inherit;
}
.pg-inst-link-card-accent {
    background: linear-gradient(135deg, #0091cd 0%, #0077a8 100%);
    color: #fff;
    border-color: transparent;
}
.pg-inst-link-card-accent:hover { color: #fff; }
.pg-adm-card { border-width: 2px !important; }
.pg-adm-icon { min-width: 48px; }
.pg-inst-intro h3, .pg-features h3 { font-size: 1rem; font-weight: 600; }

/* HNGU history article */
.pg-hngu-article .pg-hngu-body h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--tc-primary, #0091cd);
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 145, 205, 0.15);
}
.pg-hngu-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.1rem;
}
.pg-hngu-toc a {
    display: block;
    padding: 0.3rem 0;
    color: #444;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 0.5rem;
}
.pg-hngu-toc a:hover {
    color: var(--tc-primary, #0091cd);
    border-left-color: var(--tc-primary, #0091cd);
}
.pg-hngu-body section { scroll-margin-top: 100px; }

/* HNGU question papers */
.qp-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 640px;
}
.qp-search input[type="search"] {
    flex: 1 1 220px;
    min-height: 44px;
    border: 2px solid rgba(0, 145, 205, 0.22);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-size: 1rem;
}
.qp-search input[type="search"]:focus {
    outline: 2px solid #0091cd;
    outline-offset: 2px;
}
.qp-courses { grid-template-columns: repeat(3, 1fr); }
.qp-course-card { text-decoration: none; color: inherit; display: block; }
.qp-course-card h3 { font-size: 1.05rem; font-weight: 600; color: #1a2b3c; margin-bottom: 0.5rem; }
.qp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.qp-tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: 14px;
    padding: 1.15rem 1rem;
    text-decoration: none;
    color: inherit;
    min-height: 88px;
}
.qp-tile:hover { border-color: rgba(0, 145, 205, 0.45); box-shadow: 0 6px 18px rgba(0, 145, 205, 0.08); }
.qp-tile strong { color: #0091cd; }
.qp-tile span { font-size: 0.85rem; color: #6c757d; }
.qp-list { display: flex; flex-direction: column; gap: 0.65rem; }
.qp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: 14px;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    min-height: 44px;
}
.qp-row:hover { border-color: rgba(0, 145, 205, 0.45); }
.qp-row strong, .qp-row-static strong { display: block; color: #1a2b3c; }
.qp-row span, .qp-row-static span { font-size: 0.85rem; color: #6c757d; }
.qp-view-btn {
    flex-shrink: 0;
    background: #0091cd;
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.qp-view-btn:hover { background: #0077a8; color: #fff !important; }
.qp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qp-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 2px solid rgba(0, 145, 205, 0.22);
    text-decoration: none;
    color: #1a2b3c;
    font-size: 0.9rem;
}
.qp-chips a:hover { border-color: #0091cd; color: #0091cd; }
.qp-faq details {
    background: #fff;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    margin-bottom: 0.65rem;
}
.qp-faq summary { cursor: pointer; font-weight: 600; color: #1a2b3c; min-height: 44px; display: flex; align-items: center; }
.qp-faq p { margin: 0.6rem 0 0; color: #5a6a7a; }
.qp-viewer-frame {
    background: #eef3f7;
    border: var(--tc-box-border, 2px solid rgba(0, 145, 205, 0.18));
    border-radius: 14px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}
.qp-viewer-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    background: #1a2b3c;
    color: #fff;
}
.qp-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
}
.qp-toolbar-nav {
    flex-wrap: nowrap;
}
.qp-toolbar-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.1rem 0;
}
.qp-toolbar-controls::-webkit-scrollbar { display: none; }
.qp-page-label {
    min-width: 5.5rem;
    flex: 1;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
}
.qp-zoom-label {
    min-width: 2.75rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b8d4e8;
    flex-shrink: 0;
}
.qp-page-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #0091cd;
    color: #fff;
    flex-shrink: 0;
}
.qp-page-btn:hover { background: #0077a8; }
.qp-zoom-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #2a3f54;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.qp-zoom-btn:hover { background: #0091cd; }
.qp-zoom-fit { width: 38px; }
.qp-print-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 0.7rem;
    border: 0;
    border-radius: 8px;
    background: #e87722;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}
.qp-print-btn:hover { background: #c86418; color: #fff; }
.qp-print-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.qp-progress {
    height: 6px;
    background: rgba(0, 145, 205, 0.15);
}
.qp-progress-bar {
    display: block;
    height: 100%;
    width: 8%;
    background: #0091cd;
    transition: width 0.2s ease;
}
.qp-canvas-wrap {
    padding: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background: #d8e2ea;
    min-height: 55vh;
    max-height: calc(100vh - 220px);
    touch-action: pan-x pan-y;
    overscroll-behavior: contain;
    position: relative;
}
body.qp-paper-page {
    touch-action: pan-x pan-y;
    overscroll-behavior: none;
}
body.qp-paper-page .qp-viewer-frame {
    touch-action: pan-x pan-y;
}
body.qp-paper-page .qp-canvas-wrap {
    touch-action: pan-x pan-y;
}
body.qp-paper-page .qp-canvas-wrap.qp-panning {
    touch-action: none;
    cursor: grabbing;
}
body.qp-paper-page .qp-canvas-wrap.qp-can-pan {
    cursor: grab;
}
.qp-pan-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    padding: 0.5rem;
    margin: 0 auto;
}
.qp-page-stage {
    display: inline-block;
    margin: 0;
    line-height: 0;
    flex-shrink: 0;
}
.qp-page-canvas {
    display: block;
    max-width: none;
    height: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}
.qp-viewer-container { max-width: 100%; }
.qp-view-hero .pg-hero-title { font-size: clamp(1.15rem, 4vw, 2rem); }
.qp-view-hero .pg-hero-sub { font-size: 0.9rem; }
.qp-view-note { display: none !important; }
#qp-print-root { display: none; }
@media print {
    body * { visibility: hidden !important; }
    #qp-print-root,
    #qp-print-root * { visibility: visible !important; }
    #qp-print-root {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #fff;
    }
    .qp-print-page {
        display: block;
        width: 100%;
        height: auto;
        page-break-after: always;
        box-shadow: none;
    }
    header, footer, .whatsapp-float, nav, .qp-viewer-section, .qp-view-hero { display: none !important; }
}
@media (max-width: 991px) {
    .qp-courses { grid-template-columns: repeat(2, 1fr); }
    .qp-row, .qp-row-static { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 768px) {
    .qp-viewer-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.65rem 1rem;
    }
    .qp-toolbar-row { width: auto; }
    .qp-toolbar-controls { overflow-x: visible; }
    .qp-page-label { flex: 0 1 auto; min-width: 6.5rem; }
}
@media (max-width: 575px) {
    .qp-courses { grid-template-columns: 1fr; }
    .qp-viewer-toolbar { padding: 0.45rem 0.4rem; gap: 0.35rem; }
    .qp-toolbar-controls { justify-content: flex-start; }
    .qp-page-label { font-size: 0.8rem; min-width: 4.5rem; }
    .qp-zoom-label { min-width: 2.4rem; font-size: 0.78rem; }
    .qp-page-btn { width: 38px; height: 38px; }
    .qp-zoom-btn, .qp-zoom-fit, .qp-print-btn { width: 36px; height: 36px; min-width: 36px; padding: 0; }
    .qp-print-text { display: none; }
    .qp-canvas-wrap {
        min-height: 62vh;
        max-height: calc(100dvh - 250px);
    }
    .qp-pan-inner { padding: 0.35rem; }
    .qp-view-hero { padding-top: 1rem; padding-bottom: 0.75rem; }
    .qp-view-hero .pg-breadcrumb { font-size: 0.75rem; }
}
