/*
 * Test & Assignment Page – TWO-COLUMN layout (main + sticky sidebar)
 * Distinct design: no stats strip, article left + downloads right
 * KIIT Entrance Wings | Bootstrap 5
 */

/* ===== Page wrapper ===== */
.test-assignment-page .content-section {
    background: #fff;
    padding: 2rem 0 4rem;
}

/* ===== Two-column layout ===== */
.ta-two-col {
    display: grid;
    gap: 2rem;
}
@media (min-width: 992px) {
    .ta-two-col {
        grid-template-columns: 1fr 340px;
        align-items: start;
    }
    .ta-sidebar { position: sticky; top: 100px; }
}

/* ===== Main content – article style ===== */
.ta-main .ta-article-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 1rem;
}

.ta-main .ta-article-lead {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.ta-main .ta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ta-main .ta-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.ta-main .ta-list li:last-child { border-bottom: none; }

.ta-main .ta-list .ta-list-icon {
    width: 44px;
    height: 44px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ta-main .ta-list .ta-list-num {
    font-weight: 800;
    color: #dc2626;
    font-size: 0.9rem;
    min-width: 1.5rem;
}

.ta-main .ta-list strong { color: #0a1628; display: block; margin-bottom: 0.25rem; }
.ta-main .ta-list span { font-size: 0.95rem; color: #475569; line-height: 1.6; }

/* ===== Sidebar – download cards only ===== */
.ta-sidebar-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #dc2626;
}

.ta-sidebar .ta-pdf-card {
    margin-bottom: 1rem;
}

.ta-sidebar .ta-pdf-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Hide stats strip when using two-col layout */
.ta-use-two-col .ta-stats-strip { display: none; }


/* ===== Stats strip (kept for backward compat, hidden in new layout) ===== */
.ta-stats-strip {
    background: linear-gradient(90deg, #0a1628 0%, #1a365d 50%, #0d2847 100%);
    color: #fff;
    padding: 1.25rem 0;
    margin-bottom: 0;
    border-bottom: 3px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,31,63,0.2);
}

.ta-stats-strip .ta-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.5rem 0.75rem;
}

.ta-stats-strip .ta-stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: #93c5fd;
}

.ta-stats-strip .ta-stat-value {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0;
    color: #fff;
}

.ta-stats-strip .ta-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== Section blocks ===== */
.ta-section-block {
    padding: 3.5rem 0;
}

.ta-section-block:nth-child(even) {
    background: #fff;
}

.ta-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.ta-section-desc {
    font-size: 1.05rem;
    color: #475569;
    max-width: 640px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ===== Intro card ===== */
.ta-intro-card {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #1a365d 100%);
    border-radius: 24px;
    padding: 2.5rem 2.5rem;
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10,22,40,0.25);
}

.ta-intro-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.ta-intro-card .ta-intro-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.ta-intro-card .ta-intro-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 0.75rem;
    line-height: 1.45;
    max-width: 600px;
}

.ta-intro-card .ta-intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.88);
    margin: 0;
    max-width: 580px;
}

/* ===== Evaluation system – step cards ===== */
.ta-eval-wrap {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 32px rgba(0,31,63,0.08);
    border: 1px solid rgba(0,31,63,0.06);
    margin-bottom: 3rem;
}

.ta-eval-intro {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.ta-eval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.ta-eval-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ta-eval-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #dc2626, #b91c1c);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.ta-eval-card:hover {
    background: #fff;
    box-shadow: 0 8px 28px rgba(0,31,63,0.1);
    border-color: rgba(220,38,38,0.25);
}

.ta-eval-card:hover::before {
    transform: scaleY(1);
}

.ta-eval-card .ta-eval-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.ta-eval-card .ta-eval-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ta-eval-card .ta-eval-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}

.ta-eval-card .ta-eval-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ===== PDF / resource cards – premium style ===== */
.ta-resources-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0a1628;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.ta-resources-sub {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.ta-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.ta-pdf-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 2px 12px rgba(0,31,63,0.04);
}

.ta-pdf-card:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 28px rgba(220,38,38,0.12);
    color: inherit;
    transform: translateY(-2px);
}

.ta-pdf-card .ta-pdf-icon-wrap {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.ta-pdf-card .ta-pdf-body {
    flex: 1;
    min-width: 0;
}

.ta-pdf-card .ta-pdf-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

.ta-pdf-card .ta-pdf-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.ta-pdf-card .ta-pdf-dl {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    color: #0a1628;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ta-pdf-card:hover .ta-pdf-dl {
    background: #dc2626;
    color: #fff;
}

/* ===== Resource section block (for Papers / Results) ===== */
.ta-resource-block {
    padding: 2.5rem 0;
}

.ta-resource-block .ta-resources-title {
    margin-top: 0;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .ta-section-block { padding: 2.5rem 0; }
    .ta-intro-card { padding: 2rem; }
    .ta-eval-wrap { padding: 1.75rem; }
    .ta-eval-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .ta-stats-strip .ta-stat-item { margin-bottom: 0.5rem; }
    .ta-intro-card { padding: 1.5rem; }
    .ta-intro-card .ta-intro-title { font-size: 1.2rem; }
    .ta-eval-wrap { padding: 1.5rem; }
    .ta-pdf-grid { grid-template-columns: 1fr; }
    .ta-pdf-card { padding: 1.25rem; }
    .ta-section-title { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .ta-pdf-card { flex-wrap: wrap; }
    .ta-pdf-card .ta-pdf-dl { margin-left: auto; }
}
