/* ==========================================================
   DIPR Chronicle / Catalyst / IQAC
   All classes prefixed "qp-" to avoid clashing with style.css
   ========================================================== */

.qp-section {
    padding: 60px 0;
}

.qp-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(46, 88, 56, .1);
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 12px;
}

/* ---------- Home cards ---------- */
.qp-home-section .section-title {
    margin-bottom: 40px;
}
.qp-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.qp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1);
    color: inherit;
}

.qp-card-logo {
    background: #f1f5f9;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.qp-card-logo img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
}

.qp-card-logo .qp-logo-fallback {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.qp-card-body {
    padding: 24px 24px 0;
    flex: 1;
}

.qp-card-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.qp-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 8px 0 10px;
    color: #1e293b;
}

.qp-card-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.qp-card-footer {
    padding: 20px 24px 24px;
}

/* ---------- Buttons ---------- */
.qp-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--primary);
    transition: background .2s;
    text-align: center;
}

.qp-btn:hover {
    background: #1f3d27;
    color: #fff;
}

.qp-card:hover .qp-btn {
    background: #1f3d27;
}

.qp-btn-block {
    display: block;
    width: 100%;
}

.qp-btn-outline {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    text-align: center;
}

.qp-btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.qp-btn-disabled,
.qp-btn-disabled:hover {
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
}

/* ---------- Page header (below site hero) ---------- */
.qp-page-logo {
    max-height: 80px;
    max-width: 240px;
    object-fit: contain;
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.qp-hero-subtitle {
    color: rgba(255, 255, 255, .85);
    margin: 8px 0 0;
    max-width: 760px;
}

.qp-action-bar {
    background: #fff;
    padding: 18px 24px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.qp-action-bar select {
    padding: 7px 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 14px;
}

/* ---------- Chronicle months ---------- */
.qp-month {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 25px;
    overflow: hidden;
}

.qp-month-head {
    background: #f1f5f9;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.qp-month-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.qp-month-meta {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

/* ---------- Tables ---------- */
.qp-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 640px;
}

.qp-table th,
.qp-table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    vertical-align: middle;
}

.qp-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
}

.qp-table tr:last-child td {
    border-bottom: none;
}

.qp-date-pill {
    background: rgba(46, 88, 56, .1);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.qp-muted {
    color: #94a3b8;
    font-size: 13px;
}

.qp-empty {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.qp-empty i {
    font-size: 2.5rem;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

/* ---------- Catalyst ---------- */
.qp-issue {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.qp-issue-head {
    background: #f1f5f9;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
}

.qp-issue.is-upcoming .qp-issue-head {
    background: #fefce8;
}

.qp-issue-cover {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    display: block;
}

.qp-badge {
    display: inline-block;
    background: rgba(46, 88, 56, .12);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.qp-issue.is-upcoming .qp-badge {
    background: #fef3c7;
    color: #92400e;
}

.qp-issue-head h3 {
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.qp-issue-body {
    padding: 20px;
    flex: 1;
}

.qp-issue-body h4 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.qp-issue-body ul {
    padding-left: 18px;
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.qp-issue-body li {
    margin-bottom: 4px;
}

.qp-issue-foot {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
}

.qp-issue-foot > * {
    flex: 1;
}

/* ---------- IQAC tabs ---------- */
.qp-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
}

.qp-tab-btn {
    background: #e2e8f0;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    font-size: 14px;
}

.qp-tab-btn.active {
    background: var(--primary);
    color: #fff;
}

.qp-panel {
    display: none;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.qp-panel.active {
    display: block;
}

.qp-panel h3 {
    color: var(--primary);
    margin-top: 0;
    font-size: 20px;
    font-weight: 700;
}

.qp-panel p {
    color: #444;
    line-height: 1.8;
}

@media (max-width: 575px) {
    .qp-section {
        padding: 40px 0;
    }

    .qp-action-bar,
    .qp-panel {
        padding: 16px;
    }

    .qp-tab-btn {
        flex: 1 1 45%;
        padding: 8px 10px;
        font-size: 13px;
    }
}
