/* Internship portal styles, on top of the ncpcr.gov.in theme in style.css. */

body {
    overflow-x: hidden;
    background: #fff;
    /* The theme's #878d97 fails WCAG AA contrast on white; labels and lists used it. */
    color: #212529;
}

/* ================= Top bar & menu (as on ncpcr.gov.in) ================= */

.common-right,
.bhashini-dropdown-content {
    visibility: visible !important;
}

ul#bhashiniLanguageDropdown {
    position: absolute;
    top: 25px;
    min-width: auto !important;
    text-align: center;
    right: 0;
    z-index: 9999;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    padding: 15px;
    visibility: hidden;
    background: #fff;
}

ul#bhashiniLanguageDropdown img {
    vertical-align: middle;
    height: 25px;
    width: 25px;
}

span:has(+ a[href*="bhashini.gov.in"]) {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* The top bar (and its accessibility panel) always paints above the rest of the page. */
.tobbar_main {
    position: relative;
    z-index: 1030;
}

/* Options that are switched on */
.common-right ul li ul li:has(> a[aria-pressed="true"]) {
    background: #fff3e8;
    box-shadow: 0 0 0 2px #9c3f00;
}

.common-right ul li ul li a[aria-pressed="true"] span {
    font-weight: 700;
    color: #9c3f00;
}

.high-contrast .common-right ul li ul li:has(> a[aria-pressed="true"]) {
    background: #333 !important;
    box-shadow: 0 0 0 2px #ff0;
}

.common-right ul li ul li.a11y-reset {
    width: calc(100% - 10px);
    float: none;
    clear: both;
}

.common-right ul li ul li.a11y-reset i {
    font-size: 24px;
    color: #9c3f00;
}

/* Group headings inside the accessibility panel */
.common-right ul li ul li.a11y-group {
    float: none;
    clear: both;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.common-right ul li ul li.a11y-group h2 {
    margin: 0;
    padding: 12px 0 4px !important;
}

.common-right ul li.topbar-search {
    border-left: 0;
}

/* Keyboard users can open the menu dropdowns */
.nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* ================= Accessibility options ================= */

.high-contrast,
.high-contrast main,
.high-contrast .bg-light,
.high-contrast .toppihead,
.high-contrast .portal-bar,
.high-contrast .page-hero,
.high-contrast .section-alt,
.high-contrast .form-section,
.high-contrast .form-section > h3,
.high-contrast .opportunity-card,
.high-contrast .step,
.high-contrast .info-box,
.high-contrast .ack-card,
.high-contrast .status-card,
.high-contrast .dropdown-menu,
.high-contrast .dropdown-item,
.high-contrast #accessibilityTools,
.high-contrast .modal-content {
    background: #000 !important;
    color: #fff !important;
}

.high-contrast p,
.high-contrast span,
.high-contrast li,
.high-contrast label,
.high-contrast td,
.high-contrast th,
.high-contrast dt,
.high-contrast dd,
.high-contrast .form-text,
.high-contrast .table {
    color: #fff !important;
}

.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast h5,
.high-contrast h6,
.high-contrast a,
.high-contrast a:visited {
    color: #ff0 !important;
}

.high-contrast .btn,
.high-contrast button {
    background: #000 !important;
    color: #ff0 !important;
    border: 2px solid #ff0 !important;
}

.high-contrast input,
.high-contrast select,
.high-contrast textarea {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

.hightlight-link a {
    text-decoration: underline !important;
    text-decoration-color: purple !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px;
}

/* WCAG 1.4.12 text spacing values */
.text-spacing,
.text-spacing * {
    letter-spacing: 0.12em !important;
    word-spacing: 0.16em !important;
}

.ln-height,
.ln-height * {
    line-height: 1.8 !important;
}

.bg-cursor,
.bg-cursor * {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path d='M4 2l15 11-7 1 4 8-3 1.5-4-8-5 5z' fill='black' stroke='white' stroke-width='1.2'/></svg>") 4 2, auto !important;
}

.hd-image img {
    display: none !important;
}

/* Keep the top bar icons (including the accessibility button itself) so the option can be undone. */
.hd-image .tobbar_main img {
    display: inline !important;
}

/* On the root element a filter neither unfixes fixed elements nor creates stacking
   contexts that would hide the accessibility panel behind the page. */
html.saturte {
    filter: saturate(20%);
}

.inverted span,
.inverted h1,
.inverted h2,
.inverted h3,
.inverted h4,
.inverted h5,
.inverted h6,
.inverted a,
.inverted img,
.inverted video,
.inverted canvas {
    filter: invert(80%);
}

/* ================= Portal menu bar ================= */

.portal-bar {
    clear: both;
    background: #9c3f00;
    color: #fff;
}

.portal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 24px;
    min-height: 50px;
}

.portal-name {
    margin-right: auto;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.portal-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0 !important;
    list-style: none;
}

.portal-nav ul a {
    display: block;
    padding: 13px 16px 10px;
    border-bottom: 3px solid transparent;
    color: #fff;
    font-weight: 600;
}

.portal-nav ul a:hover,
.portal-nav ul a.active {
    background: rgba(255, 255, 255, 0.14);
    border-bottom-color: #ffd7b5;
    color: #fff;
}

.portal-nav ul a:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: -3px !important;
}

main:focus {
    outline: none;
}

/* style.css caps the mobile menu row at 25px, so the menu toggle spilled onto the portal bar. */
@media (max-width: 767.98px) {
    .header-top .container {
        max-height: none;
    }
}

/* style.css widens containers to 1450px, which puts content under the fixed social icon bar. */
@media (min-width: 1400px) {
    main .container,
    .portal-bar .container {
        max-width: 1280px;
    }
}

/* ================= Page hero ================= */

.page-hero {
    padding: 44px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.66)), url(../img/banner-img.jpg) center / cover no-repeat;
    color: #fff;
}

.page-hero h2 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #f1f1f1;
    font-size: 17px;
}

.page-hero .breadcrumb {
    margin: 0 0 10px !important;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item.active {
    color: #fff;
}

.page-hero .breadcrumb-item a {
    color: #ffd7b5;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: #ddd;
}

/* ================= Content ================= */

.section {
    padding: 48px 0;
}

.section-alt {
    background: #faf6f2;
}

.section-title {
    margin-bottom: 24px;
    font-size: 26px;
    font-weight: 700;
    color: #351b6f;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    margin-top: 10px;
    background: #e2732e;
}

.lead-text {
    font-size: 17px;
    line-height: 1.7;
}

.btn.btn-ncpcr,
.btn.btn-ncpcr-outline {
    padding: 10px 22px;
    border: 2px solid #9c3f00;
    border-radius: 4px;
    font-size: 15px;
}

.btn.btn-ncpcr {
    background: #9c3f00;
    color: #fff;
}

.btn.btn-ncpcr:hover {
    background: #7a3100;
    border-color: #7a3100;
    color: #fff;
}

.btn.btn-ncpcr-outline {
    background: #fff;
    color: #9c3f00;
}

.btn.btn-ncpcr-outline:hover {
    background: #fff3e8;
    color: #7a3100;
}

.btn.btn-sm.btn-ncpcr,
.btn.btn-sm.btn-ncpcr-outline {
    padding: 5px 12px;
    font-size: 14px;
}

.opportunity-card,
.step,
.info-box {
    height: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}

.opportunity-card {
    display: flex;
    flex-direction: column;
    border-top: 4px solid #e2732e;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.opportunity-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.opportunity-card summary {
    font-weight: 600;
    color: #9c3f00;
    cursor: pointer;
}

.status-tag {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.status-tag.open {
    background: #e3f4e5;
    color: #1b5e20;
}

.status-tag.upcoming {
    background: #fff1e0;
    color: #7a3d00;
}

.meta-list {
    padding: 0;
    margin: 0 0 16px !important;
    list-style: none;
}

.meta-list li {
    display: flex;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed #e5e5e5;
    font-size: 15px;
}

.meta-list i {
    width: 18px;
    margin-top: 4px;
    color: #e2732e;
}

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    margin-bottom: 14px;
    border-radius: 22px;
    background: #e2732e;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.step h3,
.info-box h3 {
    font-size: 18px;
    font-weight: 700;
}

.check-list {
    padding: 0;
    margin: 0 !important;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 6px 0 6px 28px;
}

.check-list li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 7px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #00772d;
}

.fact-list {
    margin: 0 0 20px;
}

.fact-list dt {
    font-weight: 700;
    color: #351b6f;
}

.fact-list dt i {
    width: 20px;
    color: #e2732e;
}

.fact-list dd {
    margin: 2px 0 0;
    padding: 0 0 10px 24px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e5e5e5;
}

.doc-list li {
    padding: 5px 0 5px 4px;
}

/* The theme gives tables the same low-contrast grey as body text. */
.table {
    color: #212529;
}

.weightage-table thead th {
    background: #faf6f2;
}

.weightage-table tfoot th {
    border-bottom: 0;
    color: #351b6f;
}

/* The theme's open accordion is white on orange (about 2.4:1); use the darker brand brown. */
.faq-section .accordion .accordion-item .accordion-header .accordion-button {
    background: #9c3f00;
    color: #fff;
    font-weight: 600;
}

.faq-section .accordion .accordion-item .accordion-header .accordion-button.collapsed {
    background: #fff;
    color: #1a1a1a;
}

.faq-section .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.faq-section .accordion-button:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: -3px !important;
}

/* ================= Forms ================= */

.form-section {
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}

.form-section > h3 {
    margin: 0;
    padding: 14px 20px;
    background: #faf6f2;
    border-bottom: 1px solid #e2e2e2;
    border-radius: 8px 8px 0 0;
    font-size: 19px;
    font-weight: 700;
    color: #351b6f;
}

.form-section .section-body {
    padding: 20px;
}

.form-label {
    font-weight: 600;
}

.req {
    color: #b3261e;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #e2732e;
    box-shadow: 0 0 0 0.2rem rgba(226, 115, 46, 0.25);
}

.form-check-input:checked {
    background-color: #9c3f00;
    border-color: #9c3f00;
}

.captcha-box {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f3f3;
    border: 1px dashed #888;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

#error-summary:focus {
    outline: 3px solid #b3261e;
    outline-offset: 2px;
}

/* ================= Acknowledgement & status ================= */

.ack-card,
.status-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}

.ack-number {
    display: inline-block;
    padding: 10px 22px;
    background: #fff3e8;
    border: 2px dashed #e2732e;
    border-radius: 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #9c3f00;
}

.ack-print-head {
    display: none;
}

.detail-list {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 8px 16px;
    margin: 0;
}

.detail-list dt {
    font-weight: 600;
    color: #555;
}

.detail-list dd {
    margin: 0;
    word-break: break-word;
}

.timeline {
    padding: 0 0 0 24px;
    margin: 0 !important;
    list-style: none;
    border-left: 3px solid #e2e2e2;
}

.timeline li {
    position: relative;
    padding: 0 0 22px 12px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 3px;
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #e2732e;
    box-shadow: 0 0 0 2px #e2732e;
}

.timeline .when {
    font-size: 14px;
    color: #555;
}

.timeline .remark {
    margin-top: 6px;
    padding: 8px 12px;
    background: #faf6f2;
    border-radius: 4px;
}

.timeline .note {
    margin-top: 6px;
    padding: 8px 12px;
    background: #eef1f7;
    border-radius: 4px;
    font-size: 14px;
}

/* ================= Footer ================= */

.footer-heading {
    color: #9c3f00;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 40px;
}

.footer-logos img {
    width: auto;
    max-width: 100%;
}

.copyright,
.copyright span,
.copyright div {
    color: #ddd;
}

.back-to-top:not(.show) {
    display: none !important;
}

@media (max-width: 767.98px) {
    .page-hero h2 {
        font-size: 24px;
    }

    .detail-list {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .detail-list dd {
        margin-bottom: 10px;
    }

    .ack-card,
    .status-card {
        padding: 20px;
    }
}

/* ================= Admin ================= */

.admin-body {
    background: #f4f5f7;
}

.admin-header {
    background: #fff;
    border-bottom: 3px solid #e2732e;
}

.admin-header img {
    height: 50px;
    width: auto;
}

.admin-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    color: #ca5507;
}

.admin-subtitle {
    font-size: 14px;
    color: #383838;
}

.admin-nav {
    background: #351b6f;
}

.admin-nav a {
    display: inline-block;
    padding: 11px 14px;
    color: #fff;
    font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.admin-nav a:focus-visible,
.admin-nav button:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: -3px !important;
}

.admin-nav .who {
    margin-right: 12px;
    font-size: 14px;
    color: #e6e1f3;
}

.admin-card {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}

.admin-card h2 {
    margin-bottom: 16px;
    font-size: 19px;
    font-weight: 700;
    color: #351b6f;
}

.admin-page-title {
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-tile {
    display: block;
    height: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-left: 4px solid #e2732e;
    border-radius: 6px;
    color: #222;
}

.stat-tile:hover {
    background: #fffaf5;
    color: #222;
}

.stat-tile.active {
    background: #f1edfa;
    border-left-color: #351b6f;
}

.stat-tile .num {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-tile .lbl {
    font-size: 13px;
    color: #555;
}

.admin-body .table thead th {
    background: #faf6f2;
    font-size: 14px;
    white-space: nowrap;
}

.admin-body .table td {
    font-size: 14px;
    vertical-align: middle;
}

.admin-login {
    max-width: 440px;
    margin: 48px auto;
}

.admin-footer {
    padding: 16px;
    font-size: 13px;
    text-align: center;
    color: #666;
}

/* ================= Print (acknowledgement slip) ================= */

@media print {
    .tobbar_main,
    .toppihead,
    .header-top,
    .portal-bar,
    .page-hero,
    footer,
    .icon-bar,
    .back-to-top,
    .no-print {
        display: none !important;
    }

    .ack-print-head {
        display: flex !important;
        align-items: center;
        gap: 16px;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 2px solid #000;
    }

    .ack-print-head img {
        height: 60px;
    }

    .ack-card {
        max-width: none;
        padding: 0;
        border: 0;
    }

    .section {
        padding: 0;
    }
}
