/* =====================================================================
   Jagan Nath University — Statutory Committees page
   Location: wwwroot/assets/css/statutory-committees.css

   Every selector starts with "section.statutory-committees" so these
   rules beat older About-page theme rules without needing !important.
   The title banner and the sidebar are left to the site theme.
   ===================================================================== */

section.statutory-committees .sc-committees {
    --sc-accent: #CB4C06;
    --sc-accent-deep: #9A3904;
    --sc-tint: #FDF3EC;
    --sc-ink: #1F2328;
    --sc-muted: #5B6168;
    --sc-line: #E6E1DC;
    color: var(--sc-ink);
    margin-bottom: 2.5rem;
    text-align: left;
}

/* ---------- Heading ---------- */
section.statutory-committees .sc-committees .sc-heading {
    position: relative;
    margin: 0 0 1rem;
    padding: 0 0 0.85rem;
    background: none;
    border: 0;
    font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--sc-ink);
}

section.statutory-committees .sc-committees .sc-heading::before {
    content: none;
}

section.statutory-committees .sc-committees .sc-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    background: var(--sc-accent);
}

section.statutory-committees .sc-committees .sc-intro {
    max-width: 60ch;
    margin: 0 0 1.75rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--sc-muted);
}

/* ---------- List (resets any theme bullets/padding on ul and li) ---------- */
section.statutory-committees .sc-committees ul.sc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--sc-line);
}

section.statutory-committees .sc-committees ul.sc-list > li {
    list-style: none;
    margin: 0;
    padding: 0;
    background: none;
    border-bottom: 1px solid var(--sc-line);
}

section.statutory-committees .sc-committees ul.sc-list > li::before,
section.statutory-committees .sc-committees ul.sc-list > li::after {
    content: none;
    display: none;
}

/* ---------- Row link ---------- */
section.statutory-committees .sc-committees a.sc-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.3rem 1.5rem;
    align-items: center;
    padding: 1.3rem 1.25rem 1.3rem 1.4rem;
    border-left: 4px solid transparent;
    background: transparent;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

section.statutory-committees .sc-committees a.sc-item:hover {
    background: var(--sc-tint);
    border-left-color: var(--sc-accent);
    color: inherit;
    text-decoration: none;
}

section.statutory-committees .sc-committees a.sc-item:focus-visible {
    outline: 3px solid var(--sc-accent);
    outline-offset: 2px;
}

section.statutory-committees .sc-committees .sc-item__name {
    display: block;
    grid-column: 1;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sc-ink);
    transition: color 0.2s ease;
}

section.statutory-committees .sc-committees a.sc-item:hover .sc-item__name {
    color: var(--sc-accent-deep);
}

section.statutory-committees .sc-committees .sc-item__desc {
    display: block;
    grid-column: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--sc-muted);
}

section.statutory-committees .sc-committees .sc-item__action {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sc-accent);
    white-space: nowrap;
}

section.statutory-committees .sc-committees .sc-item__action svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

section.statutory-committees .sc-committees a.sc-item:hover .sc-item__action svg {
    transform: translateX(3px);
}

/* Screen-reader-only text */
section.statutory-committees .sc-committees .sc-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    section.statutory-committees .sc-committees {
        padding-right: 1.5rem;
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    section.statutory-committees .sc-committees a.sc-item {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.1rem 1rem;
    }

    section.statutory-committees .sc-committees .sc-item__action {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    section.statutory-committees .sc-committees a.sc-item,
    section.statutory-committees .sc-committees .sc-item__name,
    section.statutory-committees .sc-committees .sc-item__action svg {
        transition: none;
    }

    section.statutory-committees .sc-committees a.sc-item:hover .sc-item__action svg {
        transform: none;
    }
}
