/* =========================================================
   CG BHARTI ALERT
   Main Website Stylesheet
   ========================================================= */


/* =========================================================
   1. RESET & GLOBAL
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Noto Sans Devanagari", "Mangal", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}


/* =========================================================
   2. HEADER
   ========================================================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.top-header {
    padding: 17px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}


/* -------------------------
   BRAND
------------------------- */

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 300px;
}

.brand-logo {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    color: #ffffff;

    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 58px;

    box-shadow: 0 3px 10px rgba(11, 61, 145, 0.12);
}

.brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.brand-text {
    line-height: 1.3;
}

.brand-name {
    color: #0b3d91;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.brand-tagline {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}


/* -------------------------
   HEADER SEARCH
------------------------- */

.header-search {
    display: flex;
    width: min(500px, 100%);
    height: 44px;
}

.search-input-wrapper {
    flex: 1;

    display: flex;
    align-items: center;

    background: #ffffff;

    border: 1px solid #d1d5db;
    border-right: none;

    border-radius: 7px 0 0 7px;

    overflow: hidden;
}

.search-icon {
    padding-left: 13px;
    color: #6b7280;
    font-size: 14px;
}

.search-input-wrapper input {
    width: 100%;

    border: none;
    outline: none;

    padding: 0 12px;

    font-size: 14px;
    color: #111827;

    background: transparent;
}

.search-input-wrapper input::placeholder {
    color: #9ca3af;
}

.header-search button {
    border: none;

    background: #f28c28;
    color: #ffffff;

    padding: 0 22px;

    border-radius: 0 7px 7px 0;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.header-search button:hover {
    background: #dc7416;
}


/* =========================================================
   3. NAVIGATION
   ========================================================= */

.main-nav {
    background: #0b3d91;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-inner {
    width: 100%;
}

.nav-links {
    width: 100%;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-link {
    flex: 0 0 auto;
    color: #ffffff;
    padding: 13px 14px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
    color: #f28c28;
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: #f28c28;
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: #f28c28;
}

/* =========================================================
   3A. OLD MOBILE HAMBURGER IS NOT USED
   ========================================================= */

.mobile-menu-btn {
    display: none !important;
}

/* =========================================================
   4. HERO SECTION
   ========================================================= */

.hero {
    background: linear-gradient(
        135deg,
        #0b3d91 0%,
        #1558b0 100%
    );

    color: #ffffff;

    padding: 48px 0 52px;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;

    text-align: center;
}

.hero h1 {
    font-size: 34px;
    line-height: 1.35;

    margin-bottom: 10px;

    font-weight: 800;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);

    font-size: 16px;

    margin-bottom: 25px;
}


/* -------------------------
   HERO SEARCH
------------------------- */

.hero-search {
    display: flex;

    width: min(720px, 100%);

    margin: 0 auto;

    background: #ffffff;

    padding: 5px;

    border-radius: 9px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}

.hero-search input {
    flex: 1;

    min-width: 0;

    border: none;
    outline: none;

    padding: 13px 15px;

    color: #111827;

    font-size: 15px;
}

.hero-search input::placeholder {
    color: #9ca3af;
}

.hero-search button {
    border: none;

    background: #f28c28;
    color: #ffffff;

    padding: 0 25px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.hero-search button:hover {
    background: #dc7416;
}


/* =========================================================
   5. CATEGORY SECTION
   ========================================================= */

.categories-section {
    padding: 28px 0 15px;
}

.category-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 12px;
}

.category-card {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 58px;

    padding: 10px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    text-align: center;

    color: #374151;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.category-card:hover {
    color: #0b3d91;

    border-color: #0b3d91;

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(11, 61, 145, 0.10);
}


/* =========================================================
   6. MAIN SECTION
   ========================================================= */

.main-section {
    padding: 18px 0 25px;
}

.section-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 14px;

    gap: 15px;
}

.section-title h2 {
    position: relative;

    padding-left: 12px;

    color: #111827;

    font-size: 22px;
    font-weight: 800;
}

.section-title h2::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 4px;
    height: 24px;

    background: #f28c28;

    border-radius: 3px;
}

.view-all {
    color: #0b3d91;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
}

.view-all:hover {
    text-decoration: underline;
}


/* =========================================================
   7. JOB TABLE
   ========================================================= */

.table-wrapper {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.job-table {
    width: 100%;
    min-width: 0;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
    table-layout: fixed;
}

.job-table th {
    width: 32%;
    background: #0b3d91;
    color: #ffffff;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    border: 0 !important;
    border-radius: 6px 0 0 6px;
    line-height: 1.4;
}

.job-table td {
    width: 68%;
    padding: 11px 14px;
    background: #ffffff;
    color: #374151;
    font-size: 13px;
    vertical-align: middle;
    border: 0 !important;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.job-table tbody tr {
    background: transparent !important;
}

.job-table tbody tr:hover {
    background: transparent !important;
}

.job-table tbody tr:hover td {
    background: #f8fafc;
}

.job-title {
    color: #0b3d91;
    font-weight: 700;
    line-height: 1.45;
}


/* -------------------------
   VIEW BUTTON
------------------------- */

.view-btn {
    display: inline-block;

    background: #f28c28;

    color: #ffffff;

    padding: 7px 12px;

    border-radius: 5px;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;

    transition: 0.2s ease;
}

.view-btn:hover {
    background: #dc7416;
}


/* =========================================================
   8. CONTENT GRID
   ========================================================= */

.content-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.content-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    padding: 22px;

    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.content-card h3 {
    margin-bottom: 10px;

    color: #0b3d91;

    font-size: 18px;
}

.content-card p {
    color: #6b7280;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   9. FOOTER
   ========================================================= */

.site-footer {
    margin-top: 35px;

    background: #111827;

    color: #d1d5db;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.5fr;

    gap: 35px;

    padding: 45px 0;
}

.footer-column h3 {
    color: #ffffff;

    font-size: 17px;

    margin-bottom: 14px;
}

.footer-column p {
    color: #cbd5e1;

    font-size: 13px;

    line-height: 1.85;
}

.footer-column a {
    display: block;

    color: #cbd5e1;

    font-size: 13px;

    margin-bottom: 8px;

    transition: 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;

    padding-left: 3px;
}


/* -------------------------
   FOOTER BOTTOM
------------------------- */

.footer-bottom {
    border-top: 1px solid #374151;

    padding: 16px 0;

    color: #9ca3af;

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   10. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .header-inner {
        gap: 20px;
    }

    .brand {
        min-width: auto;
    }

    .brand-name {
        font-size: 22px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-link {
        padding: 12px 10px;

        font-size: 13px;
    }
}


/* =========================================================
   11. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .top-header {
        padding: 14px 0;
    }

    .header-inner {
        flex-direction: column;

        align-items: stretch;

        gap: 15px;
    }


    /* Brand */

    .brand {
        justify-content: center;

        min-width: 0;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        font-size: 17px;
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-tagline {
        font-size: 11px;
    }


    /* Search */

    .header-search {
        width: 100%;

        height: 42px;
    }


    /* Navigation
       Same horizontal menu style as Previous Papers page.
       It can be swiped left/right on mobile. */

    .nav-inner {
        width: 100%;
        padding: 0;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .nav-link {
        flex: 0 0 auto;
        width: auto;
        padding: 11px 14px;
        font-size: 13px;
        white-space: nowrap;
        border-top: 0;
    }


    /* Hero */

    .hero {
        padding: 34px 0 38px;
    }

    .hero h1 {
        font-size: 25px;
    }

    .hero p {
        font-size: 14px;
    }


    /* Hero Search */

    .hero-search {
        flex-direction: column;

        gap: 5px;

        background: transparent;

        box-shadow: none;

        padding: 0;
    }

    .hero-search input {
        width: 100%;

        background: #ffffff;

        border-radius: 7px;

        padding: 13px;
    }

    .hero-search button {
        width: 100%;

        padding: 12px;

        border-radius: 7px;
    }


    /* Categories */

    .categories-section {
        padding-top: 20px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 9px;
    }

    .category-card {
        min-height: 52px;

        font-size: 12px;
    }


    /* Section */

    .section-title {
        align-items: flex-start;
    }

    .section-title h2 {
        font-size: 19px;
    }

    .section-title h2::before {
        height: 21px;
    }


    /* Content */

    .content-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    /* Footer */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 25px;

        padding: 35px 0;
    }
}


/* =========================================================
   12. SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .container {
        width: 94%;
    }

    .brand-name {
        font-size: 19px;
    }

    .brand-tagline {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Job detail tables stay fluid on small screens. */
}

/* =========================================================
   CURRENT AFFAIRS
   ========================================================= */

.ca-hero {
    background: linear-gradient(135deg, #0b3d91 0%, #1558b0 100%);
    color: #fff;
    padding: 42px 0 46px;
}

.ca-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ca-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 11px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ca-hero h1 {
    font-size: 34px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.ca-hero p {
    color: rgba(255,255,255,.92);
    font-size: 15px;
    margin-bottom: 22px;
}

.ca-search {
    display: flex;
    width: min(720px, 100%);
    margin: 0 auto;
    background: #fff;
    padding: 5px;
    border-radius: 9px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.ca-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px 14px;
    font-size: 14px;
    color: #111827;
}

.ca-search button {
    border: 0;
    background: #f28c28;
    color: #fff;
    border-radius: 7px;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
}

.ca-page {
    padding: 30px 0 45px;
}

.ca-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.ca-filter a {
    padding: 7px 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 999px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.ca-filter a:hover,
.ca-filter a.active {
    background: #0b3d91;
    border-color: #0b3d91;
    color: #fff;
}

.ca-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ca-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 21px;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ca-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15,23,42,.09);
}

.ca-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #6b7280;
}

.ca-category {
    display: inline-block;
    background: #eef4ff;
    color: #0b3d91;
    padding: 4px 9px;
    border-radius: 999px;
    font-weight: 700;
}

.ca-card h3 {
    color: #0b3d91;
    font-size: 19px;
    line-height: 1.45;
    margin-bottom: 9px;
}

.ca-card p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.75;
}

.ca-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 13px;
    color: #f28c28;
    font-size: 13px;
    font-weight: 800;
}

.ca-read-more:hover {
    text-decoration: underline;
}

.ca-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 55px 20px;
    text-align: center;
}

.ca-empty-icon {
    font-size: 35px;
    margin-bottom: 8px;
}

.ca-empty h3,
.ca-empty h1 {
    color: #0b3d91;
    margin-bottom: 6px;
}

.ca-empty p {
    color: #6b7280;
    margin-bottom: 15px;
}

.ca-detail-page {
    padding: 35px 0 50px;
}

.ca-detail-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}

.ca-detail-card h1 {
    color: #0b3d91;
    font-size: 28px;
    line-height: 1.45;
    margin-bottom: 20px;
}

.ca-detail-content {
    color: #374151;
    font-size: 16px;
    line-height: 1.95;
    white-space: normal;
}

.ca-back {
    display: inline-block;
    margin-top: 25px;
    color: #0b3d91;
    font-weight: 700;
}

@media (max-width: 700px) {
    .ca-hero {
        padding: 32px 0 35px;
    }

    .ca-hero h1 {
        font-size: 26px;
    }

    .ca-search {
        flex-direction: column;
        gap: 6px;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .ca-search input,
    .ca-search button {
        width: 100%;
        min-height: 44px;
        border-radius: 7px;
    }

    .ca-grid {
        grid-template-columns: 1fr;
    }

    .ca-detail-card {
        padding: 20px;
    }

    .ca-detail-card h1 {
        font-size: 23px;
    }
}


/* =========================================================
   CARD SHADOW SYSTEM
   Consistent soft shadow + stronger active/hover effect
   ========================================================= */

/* All website cards */
.category-card,
.content-card,
.ca-card,
.ca-empty,
.ca-detail-card,
.static-page-card,
.contact-form-card,
.pp-card,
.gs-card,
.cutoff-card,
.cutoff-card-main,
.scheme-detail-card,
.syllabus-card {
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Hover: slightly stronger shadow */
.category-card:hover,
.content-card:hover,
.ca-card:hover,
.ca-empty:hover,
.ca-detail-card:hover,
.static-page-card:hover,
.contact-form-card:hover,
.pp-card:hover,
.gs-card:hover,
.cutoff-card:hover,
.cutoff-card-main:hover,
.scheme-detail-card:hover,
.syllabus-card:hover {
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.11);
}

/* Active / selected cards: clearly stronger shadow */
.category-card.active,
.category-card.selected,
.category-card.is-active,
.content-card.active,
.content-card.selected,
.content-card.is-active,
.ca-card.active,
.ca-card.selected,
.ca-card.is-active,
.pp-card.active,
.pp-card.selected,
.pp-card.is-active,
.gs-card.active,
.gs-card.selected,
.gs-card.is-active,
.cutoff-card.active,
.cutoff-card.selected,
.cutoff-card.is-active,
.scheme-detail-card.active,
.scheme-detail-card.selected,
.scheme-detail-card.is-active,
.syllabus-card.active,
.syllabus-card.selected,
.syllabus-card.is-active,
.static-page-card.active,
.static-page-card.selected,
.static-page-card.is-active,
.contact-form-card.active,
.contact-form-card.selected,
.contact-form-card.is-active {
    box-shadow: 0 12px 30px rgba(11, 61, 145, 0.18);
    border-color: rgba(11, 61, 145, 0.22);
}

/* Keyboard focus / interactive card */
.category-card:focus-visible,
.content-card:focus-within,
.ca-card:focus-within,
.pp-card:focus-within,
.gs-card:focus-within,
.cutoff-card:focus-within,
.scheme-detail-card:focus-within,
.syllabus-card:focus-within,
.static-page-card:focus-within,
.contact-form-card:focus-within {
    box-shadow: 0 10px 28px rgba(11, 61, 145, 0.16);
    border-color: rgba(11, 61, 145, 0.25);
}

/* Keep mobile cards clean and stable */
@media (max-width: 700px) {
    .category-card:hover,
    .content-card:hover,
    .ca-card:hover,
    .ca-empty:hover,
    .ca-detail-card:hover,
    .static-page-card:hover,
    .contact-form-card:hover,
    .pp-card:hover,
    .gs-card:hover,
    .cutoff-card:hover,
    .cutoff-card-main:hover,
    .scheme-detail-card:hover,
    .syllabus-card:hover {
        transform: none;
        box-shadow: 0 7px 20px rgba(15, 23, 42, 0.09);
    }
}


/* =========================================================
   GLOBAL BUTTON & ACTION EFFECTS
   Keeps the existing site colors/design intact.
   ========================================================= */

button,
.btn,
a.btn,
input[type="submit"],
input[type="button"],
input[type="reset"],
.download-btn,
.download-button,
.search-btn,
.search-button,
.view-more,
.read-more,
.apply-btn,
.action-btn,
.quick-btn {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease,
        background-color 0.18s ease;
    cursor: pointer;
}

/* Normal button depth */
button,
.btn,
a.btn,
input[type="submit"],
input[type="button"],
input[type="reset"],
.download-btn,
.download-button,
.search-btn,
.search-button,
.view-more,
.read-more,
.apply-btn,
.action-btn,
.quick-btn {
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.12);
}

/* Hover: lift + stronger shadow */
button:hover,
.btn:hover,
a.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.download-btn:hover,
.download-button:hover,
.search-btn:hover,
.search-button:hover,
.view-more:hover,
.read-more:hover,
.apply-btn:hover,
.action-btn:hover,
.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.18);
    filter: brightness(0.88);
}

/* Click/press effect */
button:active,
.btn:active,
a.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
.download-btn:active,
.download-button:active,
.search-btn:active,
.search-button:active,
.view-more:active,
.read-more:active,
.apply-btn:active,
.action-btn:active,
.quick-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.16);
}

/* Keyboard focus */
button:focus-visible,
.btn:focus-visible,
a.btn:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="reset"]:focus-visible,
.download-btn:focus-visible,
.download-button:focus-visible,
.search-btn:focus-visible,
.search-button:focus-visible,
.view-more:focus-visible,
.read-more:focus-visible,
.apply-btn:focus-visible,
.action-btn:focus-visible,
.quick-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(11, 61, 145, 0.18),
        0 6px 15px rgba(15, 23, 42, 0.16);
}

/* Don't make disabled buttons look clickable */
button:disabled,
input:disabled,
.btn.disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: none;
    opacity: 0.65;
}

/* Search controls: subtle depth without changing their existing colors */
.search-button,
.search-btn,
.header-search button,
.search-form button,
form button[type="submit"] {
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.14);
}

.search-button:hover,
.search-btn:hover,
.header-search button:hover,
.search-form button:hover,
form button[type="submit"]:hover {
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.20);
}

/* Download links/buttons */
.download-btn,
.download-button,
a[href*="download"],
a[download] {
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.14);
}

.download-btn:hover,
.download-button:hover,
a[href*="download"]:hover,
a[download]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.20);
}

/* Card interaction remains slightly stronger than buttons */
.card:hover,
.job-card:hover,
.paper-card:hover,
.syllabus-card:hover,
.result-card:hover,
.current-affair-card:hover,
.scheme-card:hover,
.gs-card:hover,
.static-page-card:hover {
    transform: translateY(-2px);
}


/* Universal dark hover for every real button/control */
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
a[role="button"]:hover,
[role="button"]:hover {
    filter: brightness(0.88) !important;
}

/* Pressed state */
button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active,
a[role="button"]:active,
[role="button"]:active {
    filter: brightness(0.84) !important;
}




/* =========================================================
   FINAL JOB DETAIL TABLE OVERRIDE
   ========================================================= */

.job-table {
    width: 100% !important;
    min-width: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
    table-layout: fixed !important;
}

.job-table tbody tr {
    background: transparent !important;
}

.job-table th {
    width: 32% !important;
    background: #0b3d91 !important;
    color: #fff !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-radius: 6px 0 0 6px !important;
    vertical-align: middle !important;
    white-space: normal !important;
}

.job-table td {
    width: 68% !important;
    background: #fff !important;
    color: #374151 !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-radius: 0 6px 6px 0 !important;
    vertical-align: middle !important;
}

@media (max-width: 700px) {
    .job-table {
        min-width: 0 !important;
        border-spacing: 0 5px !important;
        table-layout: fixed !important;
    }

    .job-table th {
        width: 35% !important;
        min-width: 0 !important;
        padding: 10px 9px !important;
        font-size: 12px !important;
    }

    .job-table td {
        width: 65% !important;
        padding: 10px 9px !important;
        font-size: 12px !important;
    }
}

/* =====================================================
   HOME PAGE PROFESSIONAL NOTIFICATION SECTIONS
   ===================================================== */
.section-subtitle{
    margin:5px 0 0;
    color:#6b7280;
    font-size:13px;
    font-weight:400;
}
.section-muted{
    background:#f8fafc;
}
.notice-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}
.notice-item{
    display:flex;
    align-items:center;
    gap:18px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:15px 17px;
    box-shadow:0 3px 12px rgba(15,23,42,.06);
}
.notice-item:hover{
    box-shadow:0 7px 20px rgba(15,23,42,.10);
}
.notice-date{
    width:125px;
    flex:0 0 125px;
    text-align:center;
    border-right:1px solid #e5e7eb;
    padding-right:15px;
}
.notice-date strong{
    display:block;
    font-size:14px;
    color:#b91c1c;
}
.notice-date span{
    display:block;
    margin-top:4px;
    font-size:11px;
    color:#6b7280;
}
.notice-main{
    flex:1;
    min-width:0;
}
.notice-org{
    font-size:12px;
    color:#0b3d91;
    font-weight:700;
    margin-bottom:3px;
}
.notice-main h3{
    margin:0;
    font-size:15px;
    color:#111827;
    line-height:1.5;
}
.notice-meta{
    display:inline-block;
    margin-top:5px;
    font-size:11px;
    color:#6b7280;
}
.card-heading-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}
.card-heading-row h3{
    margin:0;
}
.small-link{
    color:#0b3d91;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}
.home-list{
    border-top:1px solid #eef0f3;
}
.home-list-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 2px;
    border-bottom:1px solid #eef0f3;
    border-radius:9px;
    text-decoration:none;
    -webkit-tap-highlight-color:transparent;
}
.home-list-item:last-child{
    border-bottom:0;
}
.home-list-item span{
    min-width:0;
}
.home-list-item strong{
    display:block;
    color:#1f2937;
    font-size:13px;
    line-height:1.55;
}
.home-list-item small{
    display:block;
    margin-top:3px;
    color:#6b7280;
    font-size:11px;
}
.home-list-item b{
    color:#f28c28;
    font-size:16px;
    flex:0 0 auto;
}
.empty-state{
    text-align:center;
    padding:30px;
}
.empty-state h3{
    margin:0 0 7px;
    font-size:16px;
}
.empty-state p{
    margin:0 0 15px;
}
.home-info-section{
    padding-bottom:55px;
}
.home-info{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:28px;
    box-shadow:0 4px 16px rgba(15,23,42,.06);
}
.home-info h2{
    margin:0 0 8px;
    color:#0b3d91;
    font-size:22px;
}
.home-info > p{
    margin:0;
    color:#4b5563;
    line-height:1.8;
    font-size:14px;
}
.info-points{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:20px;
}
.info-points div{
    border:1px solid #e5e7eb;
    border-radius:8px;
    padding:13px;
    background:#f8fafc;
}
.info-points strong{
    display:block;
    color:#111827;
    font-size:13px;
    margin-bottom:4px;
}
.info-points span{
    display:block;
    color:#6b7280;
    font-size:11px;
    line-height:1.5;
}
@media(max-width:700px){
    .notice-item{
        align-items:flex-start;
        flex-wrap:wrap;
    }
    .notice-date{
        width:100%;
        flex-basis:100%;
        border-right:0;
        border-bottom:1px solid #e5e7eb;
        padding:0 0 10px;
        text-align:left;
    }
    .notice-item .view-btn{
        width:100%;
        text-align:center;
    }
    .info-points{
        grid-template-columns:1fr 1fr;
    }
}
@media(max-width:480px){
    .info-points{
        grid-template-columns:1fr;
    }
    .home-info{
        padding:20px;
    }
}

/* =========================================================
   HOMEPAGE POLISH - EXPIRING JOBS + INFO SECTION
   ========================================================= */
.notice-list{
    gap:14px;
}
.notice-item{
    position:relative;
    display:grid;
    grid-template-columns:52px minmax(0,1fr) auto;
    align-items:center;
    gap:16px;
    padding:16px 18px;
    border:1px solid #e7ebf2;
    border-radius:14px;
    box-shadow:0 4px 16px rgba(15,23,42,.055);
    overflow:hidden;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.notice-item::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:4px;
    background:#f28c28;
}
.notice-item:hover{
    transform:translateY(-2px);
    border-color:#d9e1ef;
    box-shadow:0 9px 24px rgba(15,23,42,.09);
}
.notice-item.is-critical::before{background:#dc2626}
.notice-item.is-warning::before{background:#f59e0b}
.notice-item.is-soon::before{background:#f28c28}
.notice-icon{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:13px;
    background:#fff5e9;
    border:1px solid #ffe0bd;
    font-size:24px;
}
.notice-main{
    min-width:0;
}
.notice-org{
    margin-bottom:4px;
    color:#0b3d91;
    font-size:12px;
    font-weight:800;
}
.notice-main h3{
    margin:0;
    color:#111827;
    font-size:16px;
    font-weight:800;
    line-height:1.45;
}
.notice-details{
    display:flex;
    flex-wrap:wrap;
    gap:6px 18px;
    margin-top:8px;
    color:#64748b;
    font-size:11px;
}
.notice-details span{
    position:relative;
}
.notice-details b{
    color:#475569;
}
.notice-action{
    min-width:125px;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;
}
.deadline-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:27px;
    padding:4px 9px;
    border-radius:999px;
    background:#fff1f2;
    color:#b91c1c;
    border:1px solid #fecdd3;
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}
.is-warning .deadline-badge{
    background:#fffbeb;
    color:#a16207;
    border-color:#fde68a;
}
.is-soon .deadline-badge{
    background:#fff7ed;
    color:#c2410c;
    border-color:#fed7aa;
}
.notice-action .view-btn{
    padding:8px 13px;
    border-radius:7px;
    font-size:11px;
    box-shadow:0 2px 5px rgba(242,140,40,.18);
}
.notice-action .view-btn span{
    margin-left:3px;
}

/* Professional information panel */
.home-info-section{
    padding-top:12px;
    padding-bottom:58px;
}
.home-info{
    position:relative;
    overflow:hidden;
    padding:30px 32px 32px;
    border:1px solid #dfe6f0;
    border-radius:16px;
    background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
    box-shadow:0 8px 26px rgba(15,23,42,.07);
}
.home-info::after{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    right:-75px;
    top:-85px;
    border-radius:50%;
    background:rgba(11,61,145,.045);
    pointer-events:none;
}
.home-info-heading{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    gap:14px;
}
.home-info-icon{
    width:46px;
    height:46px;
    flex:0 0 46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#0b3d91;
    color:#fff;
    font-size:22px;
    font-weight:900;
    box-shadow:0 5px 13px rgba(11,61,145,.18);
}
.home-info-kicker{
    display:block;
    margin-bottom:2px;
    color:#f28c28;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.3px;
}
.home-info h2{
    margin:0;
    color:#0b3d91;
    font-size:22px;
    line-height:1.35;
}
.home-info-intro{
    position:relative;
    z-index:1;
    max-width:850px;
    margin:14px 0 0;
    color:#64748b;
    line-height:1.8;
    font-size:13px;
}
.info-points{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:22px;
}
.info-point{
    min-width:0;
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 16px;
    align-items:center;
    gap:10px;
    padding:14px 12px;
    border:1px solid #e4e9f1;
    border-radius:11px;
    background:#fff;
    transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.info-point:hover{
    transform:translateY(-2px);
    border-color:#cbd8ea;
    box-shadow:0 7px 18px rgba(15,23,42,.07);
}
.info-point-icon{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:#f1f5ff;
    font-size:18px;
}
.info-point span:nth-child(2){
    min-width:0;
}
.info-point strong{
    display:block;
    margin:0 0 3px;
    color:#172033;
    font-size:13px;
    line-height:1.35;
}
.info-point small{
    display:block;
    color:#64748b;
    font-size:10px;
    line-height:1.5;
}
.info-point > b{
    color:#f28c28;
    font-size:15px;
    text-align:right;
}

@media(max-width:900px){
    .info-points{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
    .notice-item{
        grid-template-columns:42px minmax(0,1fr);
        align-items:start;
        padding:14px;
    }
    .notice-icon{
        width:42px;
        height:42px;
        font-size:19px;
        border-radius:10px;
    }
    .notice-action{
        grid-column:2;
        width:100%;
        min-width:0;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
    }
    .notice-action .view-btn{
        width:auto;
    }
    .home-info{
        padding:24px 18px;
    }
    .home-info-heading{
        align-items:flex-start;
    }
    .home-info h2{
        font-size:19px;
    }
    .info-points{
        grid-template-columns:1fr;
    }
}
@media(max-width:420px){
    .notice-details{gap:5px 12px}
    .notice-main h3{font-size:14px}
    .notice-action{gap:7px}
    .deadline-badge{font-size:10px}
    .notice-action .view-btn{font-size:10px;padding:7px 10px}
}

/* =====================================================
   MOBILE NOTIFICATION / EXPIRING JOBS - ROJGAR MELA STYLE
   ===================================================== */
@media (max-width:700px){
    .notice-list{
        gap:14px;
    }

    .notice-item{
        display:block;
        width:100%;
        box-sizing:border-box;
        padding:15px;
        margin:0;
        border-radius:12px;
        overflow:hidden;
    }

    .notice-item::before{
        width:4px;
    }

    .notice-icon{
        width:42px;
        height:42px;
        margin-bottom:11px;
    }

    .notice-main{
        width:100%;
    }

    .notice-org{
        margin-bottom:5px;
    }

    .notice-main h3{
        font-size:15px;
        line-height:1.55;
        margin:0;
        overflow-wrap:anywhere;
    }

    .notice-details{
        display:flex;
        flex-direction:column;
        gap:7px;
        margin-top:10px;
        padding-top:10px;
        border-top:1px solid #eef0f3;
        font-size:12px;
    }

    .notice-action{
        display:flex;
        width:100%;
        min-width:0;
        margin-top:13px;
        padding-top:12px;
        border-top:1px solid #eef0f3;
        flex-direction:column;
        align-items:stretch;
        gap:9px;
    }

    .deadline-badge{
        width:100%;
        box-sizing:border-box;
        min-height:30px;
        text-align:center;
    }

    .notice-action .view-btn{
        display:flex;
        width:100%;
        box-sizing:border-box;
        align-items:center;
        justify-content:center;
        min-height:40px;
        font-size:13px;
        padding:9px 12px;
    }
}

@media (max-width:420px){
    .notice-item{
        padding:13px;
        border-radius:11px;
    }

    .notice-main h3{
        font-size:14px;
    }

    .notice-details{
        font-size:11px;
    }
}

/* =====================================================
   UNIVERSAL TABLE HORIZONTAL SCROLL
   All public tables remain readable on mobile.
   ===================================================== */
.table-scroll{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    scrollbar-width:thin;
    margin:0;
}
.table-scroll table{
    width:100%;
}
@media (max-width:700px){
    .table-scroll{
        border-radius:12px;
    }
    .table-scroll table{
        min-width:760px;
    }
}


/* Current Affairs rich-content background normalization */
.ca-detail-card .detail-section .article-content,
.ca-detail-card .detail-section .article-content * {
    background: transparent !important;
    background-color: transparent !important;
}

/* Keep intentionally highlighted quotations readable without creating editor white blocks. */
.ca-detail-card .detail-section .article-content blockquote {
    background: rgba(255,255,255,.45) !important;
}

/* =========================================================
   GLOBAL MOBILE WIDTH FIX
   Force the document and full-width structural sections to use
   the complete viewport. This prevents shrink-to-fit layouts from
   leaving a blank area on the right side of mobile screens.
   ========================================================= */
html, body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.site-header,
.top-header,
.main-nav,
main,
.site-footer,
.footer-bottom {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

@media (max-width: 700px) {
    html, body {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100vw !important;
    }

    .site-header,
    .top-header,
    .main-nav,
    main,
    .site-footer,
    .footer-bottom {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100vw !important;
    }

    .container,
    .job-container {
        width: calc(100% - 18px) !important;
        max-width: none !important;
        min-width: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* =========================================================
   FINAL MOBILE RESPONSIVE SAFETY LAYER
   Prevent fixed-width content from creating horizontal layout
   problems on phones while preserving the desktop design.
   ========================================================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

@media (max-width: 700px) {
    .container {
        width: calc(100% - 24px);
        max-width: 100%;
    }

    .site-header,
    .top-header,
    .header-inner,
    .main-nav,
    .nav-inner,
    .nav-links,
    main,
    section,
    footer {
        max-width: 100%;
    }

    .header-inner {
        width: 100%;
        gap: 12px;
    }

    .brand {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-name,
    .brand-tagline {
        overflow-wrap: anywhere;
    }

    .header-search {
        width: 100%;
        min-width: 0;
    }

    .search-input-wrapper {
        min-width: 0;
    }

    .search-input-wrapper input {
        min-width: 0;
    }

    .nav-links {
        max-width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .main-content,
    .page-content,
    .content-area,
    .detail-page,
    .job-detail-page,
    .result-detail-page,
    .cutoff-detail-page,
    .syllabus-detail-page,
    .admit-card-detail-page,
    .scheme-detail-page,
    .ca-detail-page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .ca-detail-card,
    .scheme-detail-card,
    .cutoff-card-main,
    .static-page-card,
    .contact-form-card,
    .pp-card,
    .gs-card,
    .syllabus-card,
    .content-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .ca-detail-card,
    .scheme-detail-card,
    .cutoff-card-main {
        padding: 16px;
    }

    .article-content,
    .ca-detail-content,
    .scheme-detail-content,
    .detail-content {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .article-content img,
    .ca-detail-content img,
    .scheme-detail-content img,
    .detail-content img {
        width: auto;
        height: auto;
        max-width: 100%;
    }

    pre,
    code {
        max-width: 100%;
        overflow-x: auto;
    }

    .table-scroll {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .table-scroll table {
        max-width: none;
    }

    /* Do not let action rows or metadata force the page wider. */
    .card-heading-row,
    .job-actions,
    .detail-actions,
    .action-row,
    .meta-row,
    .breadcrumb,
    .breadcrumb-nav {
        max-width: 100%;
        min-width: 0;
    }

    a,
    span,
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    td,
    th {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .container {
        width: calc(100% - 18px);
    }

    .brand-logo {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-tagline {
        font-size: 9px;
    }

    .header-search button {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ca-detail-card,
    .scheme-detail-card,
    .cutoff-card-main {
        padding: 14px;
    }
}


/* =========================================================
   FINAL CONTENT WIDTH STANDARDIZATION
   All public listing pages use the same readable content width.
   ========================================================= */
.site-content-width {
    width: 100% !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 700px) {
    .site-content-width {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   STEP 7 — UI/UX POLISH & ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 3px solid rgba(242, 140, 40, .55);
    outline-offset: 2px;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
.btn,
a.btn,
.action-btn,
.view-btn,
.download-btn,
.apply-btn,
.search-btn,
.search-button {
    min-height: 40px;
}

.header-search input:focus,
.search-input-wrapper:focus-within {
    border-color: #0b3d91;
    box-shadow: 0 0 0 3px rgba(11, 61, 145, .10);
}

img {
    height: auto;
}

.article-content table,
.ca-detail-content table,
.scheme-detail-content table,
.detail-content table {
    max-width: 100%;
}

.article-content a,
.ca-detail-content a,
.scheme-detail-content a,
.detail-content a {
    overflow-wrap: anywhere;
}

/* Keep long action rows usable instead of forcing horizontal overflow. */
@media (max-width: 700px) {
    .job-actions,
    .detail-actions,
    .action-row,
    .form-actions,
    .notice-action {
        flex-wrap: wrap;
        gap: 8px;
    }

    .job-actions > *,
    .detail-actions > *,
    .action-row > * {
        max-width: 100%;
    }

    .btn,
    a.btn,
    .action-btn,
    .view-btn,
    .download-btn,
    .apply-btn,
    .search-btn,
    .search-button {
        min-height: 42px;
    }

    .article-content,
    .ca-detail-content,
    .scheme-detail-content,
    .detail-content {
        font-size: 15px;
        line-height: 1.8;
    }

    .article-content h2,
    .ca-detail-content h2,
    .scheme-detail-content h2,
    .detail-content h2 {
        font-size: 21px;
        line-height: 1.4;
    }

    .article-content h3,
    .ca-detail-content h3,
    .scheme-detail-content h3,
    .detail-content h3 {
        font-size: 18px;
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .header-search {
        height: 44px;
    }

    .header-search button {
        min-width: 62px;
    }
}

/* Floating back-to-top control is injected by main.js. */
.cg-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #0b3d91;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.cg-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cg-back-to-top:hover {
    background: #082f70;
}

@media (max-width: 480px) {
    .cg-back-to-top {
        right: 12px;
        bottom: 12px;
        width: 42px;
        height: 42px;
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .cg-main-nav,
    .header-search,
    .footer-social-block,
    .cg-back-to-top,
    .site-footer {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .container,
    .site-content-width {
        width: 100% !important;
        max-width: none !important;
    }
}


/* CG Bharti Alert - rich table rendering */
.article-content .table-scroll,
.ca-detail-content .table-scroll,
.scheme-detail-content .table-scroll,
.detail-content .table-scroll {
    width:100%;
    max-width:100%;
    overflow-x:auto;
    margin:14px 0;
    -webkit-overflow-scrolling:touch;
}
.article-content .table-scroll table,
.ca-detail-content .table-scroll table,
.scheme-detail-content .table-scroll table,
.detail-content .table-scroll table {
    width:100%;
    min-width:620px;
    border-collapse:collapse;
    table-layout:auto;
}
.article-content .table-scroll th,
.article-content .table-scroll td,
.ca-detail-content .table-scroll th,
.ca-detail-content .table-scroll td,
.scheme-detail-content .table-scroll th,
.scheme-detail-content .table-scroll td,
.detail-content .table-scroll th,
.detail-content .table-scroll td {
    border:1px solid #cbd5e1;
    padding:10px 11px;
    text-align:left;
    vertical-align:top;
    line-height:1.6;
}
.article-content .table-scroll th,
.ca-detail-content .table-scroll th,
.scheme-detail-content .table-scroll th,
.detail-content .table-scroll th {
    background:#eef4ff;
    color:#0b3d91;
    font-weight:800;
}
@media (max-width:700px) {
    .article-content .table-scroll table,
    .ca-detail-content .table-scroll table,
    .scheme-detail-content .table-scroll table,
    .detail-content .table-scroll table {
        min-width:620px;
    }
}

/* =========================================================
   FINAL MOBILE DETAIL-PAGE OVERFLOW FIX
   Prevent child tables/content from expanding the parent card.
   Tables themselves may scroll inside their own wrapper only.
   ========================================================= */
.job-page,
.job-container,
.job-layout,
.job-main,
.job-side,
.job-card,
.job-hero,
.ca-detail-page,
.ca-detail-card,
.scheme-detail-page,
.scheme-detail-card,
.detail-content,
.article-content,
.ca-detail-content,
.scheme-detail-content {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.job-main,
.job-card,
.job-hero,
.ca-detail-card,
.scheme-detail-card {
    width: 100%;
}

.job-text,
.rich-public-content,
.article-content,
.ca-detail-content,
.scheme-detail-content,
.detail-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.job-table-wrap,
.job-table-wrap .table-scroll,
.table-scroll {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.job-table-wrap .table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
}

.job-table-wrap .job-table-new {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.job-table-new th,
.job-table-new td {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 700px) {
    .job-layout {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .job-main,
    .job-side,
    .job-card,
    .job-hero {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .job-card,
    .job-hero {
        overflow: hidden;
    }

    .job-table-wrap {
        overflow: hidden;
    }

    .job-table-wrap .table-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        max-width: 100%;
    }

    /* Key-value tables fit the phone instead of forcing page-level scroll. */
    .job-table-wrap .job-table-new {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    .job-table-wrap .job-table-new th {
        width: 38% !important;
    }

    .job-table-wrap .job-table-new th,
    .job-table-wrap .job-table-new td {
        padding: 9px 10px;
        font-size: 14px;
        line-height: 1.55;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .job-text,
    .rich-public-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .job-text p,
    .rich-public-content p,
    .rich-public-content li {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* =====================================================
   UPCOMING JOBS — FINAL RESPONSIVE SYSTEM
   Desktop  : one table only
   Mobile   : one card list only
   IMPORTANT: keep this block at the end so it wins over
              older responsive/table rules in this stylesheet.
===================================================== */
.upcoming-page{
    background:transparent;
    min-height:0;
    padding-bottom:0;
}

.upcoming-page-intro h1{
    margin-top:0;
    color:#0b3d91;
    font-size:32px;
    line-height:1.25;
}
.upcoming-page-intro p{
    margin-bottom:0;
    color:#6b7280;
    line-height:1.7;
}

.upcoming-tabs{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:0 0 12px;
    margin-bottom:8px;
    -webkit-overflow-scrolling:touch;
}
.upcoming-tabs a{
    flex:0 0 auto;
    white-space:nowrap;
    background:#fff;
    border:1px solid #e1e6ef;
    color:#374151;
    padding:9px 13px;
    border-radius:7px;
    text-decoration:none;
    font-weight:700;
    font-size:13px;
}
.upcoming-tabs a.active,
.upcoming-tabs a:hover{
    background:#0b3d91;
    color:#fff;
    border-color:#0b3d91;
}

.upcoming-filters{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
    background:#fff;
    border:1px solid #e5e7eb;
    padding:12px;
    border-radius:8px;
    margin:0 0 20px;
}
.upcoming-filters select{
    padding:9px 10px;
    border:1px solid #d1d5db;
    border-radius:6px;
    min-width:180px;
    background:#fff;
    color:#374151;
}
.upcoming-filters button{
    background:#f28c28;
    color:#fff;
    border:0;
    border-radius:6px;
    padding:9px 14px;
    font-weight:700;
    cursor:pointer;
}
.upcoming-filters a{
    color:#0b3d91;
    font-weight:700;
    text-decoration:none;
    padding:8px 2px;
}

/* ---------- DESKTOP TABLE ---------- */
.upcoming-page .upcoming-table-wrap,
.upcoming-home-section .home-upcoming-table{
    display:block;
    width:100%;
    overflow:hidden;
}
.upcoming-page .upcoming-table-wrap .table-scroll,
.upcoming-home-section .home-upcoming-table .table-scroll{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
}
.upcoming-page .upcoming-job-table,
.upcoming-home-section .home-upcoming-table .job-table{
    width:100% !important;
    min-width:0 !important;
    table-layout:auto !important;
    border-collapse:separate !important;
    border-spacing:0 5px !important;
}
.upcoming-page .upcoming-job-table th,
.upcoming-home-section .home-upcoming-table .job-table th{
    white-space:nowrap !important;
    vertical-align:middle !important;
    padding:12px 14px !important;
}
.upcoming-page .upcoming-job-table td,
.upcoming-home-section .home-upcoming-table .job-table td{
    vertical-align:top !important;
    padding:13px 14px !important;
    overflow-wrap:break-word !important;
    word-break:normal !important;
    hyphens:auto;
}

/* Give the long title and organisation enough room on desktop. */
.upcoming-page .upcoming-job-table th:nth-child(1),
.upcoming-page .upcoming-job-table td:nth-child(1){width:105px;white-space:nowrap !important}
.upcoming-page .upcoming-job-table th:nth-child(2),
.upcoming-page .upcoming-job-table td:nth-child(2){width:190px}
.upcoming-page .upcoming-job-table th:nth-child(3),
.upcoming-page .upcoming-job-table td:nth-child(3){width:135px}
.upcoming-page .upcoming-job-table th:nth-child(4),
.upcoming-page .upcoming-job-table td:nth-child(4){width:290px}
.upcoming-page .upcoming-job-table th:nth-child(5),
.upcoming-page .upcoming-job-table td:nth-child(5){width:135px}
.upcoming-page .upcoming-job-table th:nth-child(6),
.upcoming-page .upcoming-job-table td:nth-child(6){width:125px;white-space:nowrap !important}
.upcoming-page .upcoming-job-table th:nth-child(7),
.upcoming-page .upcoming-job-table td:nth-child(7){width:125px;white-space:nowrap !important}
.upcoming-page .upcoming-job-table th:nth-child(8),
.upcoming-page .upcoming-job-table td:nth-child(8){width:145px}

.upcoming-home-section .home-upcoming-table .job-table th:nth-child(1),
.upcoming-home-section .home-upcoming-table .job-table td:nth-child(1){width:105px;white-space:nowrap !important}
.upcoming-home-section .home-upcoming-table .job-table th:nth-child(2),
.upcoming-home-section .home-upcoming-table .job-table td:nth-child(2){width:220px}
.upcoming-home-section .home-upcoming-table .job-table th:nth-child(3),
.upcoming-home-section .home-upcoming-table .job-table td:nth-child(3){width:290px}
.upcoming-home-section .home-upcoming-table .job-table th:nth-child(4),
.upcoming-home-section .home-upcoming-table .job-table td:nth-child(4){width:145px}
.upcoming-home-section .home-upcoming-table .job-table th:nth-child(5),
.upcoming-home-section .home-upcoming-table .job-table td:nth-child(5){width:125px;white-space:nowrap !important}
.upcoming-home-section .home-upcoming-table .job-table th:nth-child(6),
.upcoming-home-section .home-upcoming-table .job-table td:nth-child(6){width:125px;white-space:nowrap !important}
.upcoming-home-section .home-upcoming-table .job-table th:nth-child(7),
.upcoming-home-section .home-upcoming-table .job-table td:nth-child(7){width:145px}

.upcoming-job-table .upcoming-title-text{
    display:block;
    color:#1f2937;
    font-weight:700;
    line-height:1.5;
    overflow-wrap:break-word;
    word-break:normal;
}
.upcoming-table-sub{
    display:block;
    margin-top:4px;
    color:#6b7280;
    font-size:11px;
}

.short-notice-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:7px 10px;
    border-radius:7px;
    background:#eff6ff;
    border:1px solid #bfdbfe;
    color:#0b3d91;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}
.short-notice-btn:hover{
    background:#dbeafe;
    border-color:#93c5fd;
}
.short-notice-empty{
    color:#94a3b8;
    font-weight:700;
}

.up-status{
    display:inline-block;
    padding:5px 9px;
    border-radius:20px;
    font-size:11px;
    font-weight:800;
    white-space:nowrap;
}
.up-status-open{background:#dcfce7;color:#166534}
.up-status-soon{background:#fef3c7;color:#92400e}
.up-status-exam{background:#dbeafe;color:#1d4ed8}
.up-status-expected{background:#f3f4f6;color:#4b5563}

/* ---------- MOBILE CARDS ARE OFF BY DEFAULT ---------- */
.upcoming-mobile-cards,
.home-upcoming-mobile-cards{
    display:none !important;
}

/* ---------- MOBILE: table OFF, cards ON ---------- */
@media (max-width:700px){
    .upcoming-page .upcoming-table-wrap,
    .upcoming-home-section .home-upcoming-table{
        display:none !important;
    }

    .upcoming-mobile-cards,
    .home-upcoming-mobile-cards{
        display:flex !important;
        flex-direction:column;
        gap:14px;
        width:100%;
    }

    .upcoming-page .container,
    .upcoming-home-section .container{
        width:94%;
        max-width:100%;
        min-width:0 !important;
    }

    .upcoming-page-intro{
        padding:16px !important;
        margin-bottom:14px !important;
    }
    .upcoming-page-intro h1{font-size:27px}
    .upcoming-page-intro p{font-size:13px;line-height:1.6}

    .upcoming-tabs{
        margin-bottom:8px;
        padding-bottom:8px;
    }
    .upcoming-tabs a{font-size:12px;padding:8px 11px}

    .upcoming-filters{
        gap:8px;
        padding:10px;
    }
    .upcoming-filters select{
        flex:1 1 calc(50% - 4px);
        min-width:0 !important;
        width:auto;
    }
    .upcoming-filters button{
        flex:1 1 auto;
    }

    .upcoming-mobile-card,
    .home-upcoming-mobile-card{
        display:block;
        width:100%;
        max-width:100%;
        min-width:0;
        box-sizing:border-box;
        overflow:hidden;
        background:#fff;
        border:1px solid #e5e7eb;
        border-left:4px solid #f28c28;
        border-radius:12px;
        padding:16px;
        box-shadow:0 3px 12px rgba(15,23,42,.07);
    }

    .up-mobile-top,
    .home-up-mobile-top{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        margin-bottom:10px;
    }
    .up-mobile-posted,
    .home-up-mobile-top>span:first-child{
        font-size:11px;
        color:#6b7280;
        font-weight:700;
        line-height:1.4;
    }

    .upcoming-mobile-card h3,
    .home-upcoming-mobile-card h3{
        margin:0 0 7px;
        color:#0b3d91;
        font-size:17px;
        line-height:1.45;
        font-weight:800;
        overflow-wrap:anywhere;
    }
    .up-mobile-org,
    .home-up-mobile-org{
        margin:0 0 12px;
        color:#374151;
        font-size:14px;
        line-height:1.55;
        font-weight:600;
        overflow-wrap:anywhere;
    }

    .up-mobile-meta,
    .home-up-mobile-meta{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:9px;
        margin-bottom:13px;
    }
    .up-mobile-meta>div,
    .home-up-mobile-meta>div{
        background:#f8fafc;
        border-radius:8px;
        padding:9px 10px;
        min-width:0;
    }
    .up-mobile-meta span,
    .home-up-mobile-meta span{
        display:block;
        color:#6b7280;
        font-size:11px;
        margin-bottom:3px;
        font-weight:700;
    }
    .up-mobile-meta strong,
    .home-up-mobile-meta strong{
        display:block;
        color:#1f2937;
        font-size:13px;
        line-height:1.45;
        font-weight:700;
        overflow-wrap:anywhere;
    }

    .up-mobile-description{
        margin:0 0 12px;
        color:#4b5563;
        font-size:13px;
        line-height:1.6;
    }

    .up-mobile-notice,
    .home-up-mobile-notice{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:8px;
        width:100%;
        box-sizing:border-box;
        padding:10px 12px;
        border-radius:8px;
        background:#eff6ff;
        border:1px solid #bfdbfe;
        color:#0b3d91;
        text-decoration:none;
        font-size:13px;
        font-weight:800;
    }
    .up-mobile-official{
        display:block;
        margin-top:8px;
        text-align:center;
        color:#0b3d91;
        font-size:12px;
        font-weight:800;
        text-decoration:none;
    }

    .upcoming-mobile-empty,
    .home-upcoming-mobile-empty{
        background:#fff;
        border:1px dashed #cbd5e1;
        border-radius:12px;
        padding:28px 18px;
        text-align:center;
        color:#64748b;
    }
}

@media (max-width:420px){
    .up-mobile-top,
    .home-up-mobile-top{
        align-items:flex-start;
        flex-direction:column;
    }
    .up-mobile-meta,
    .home-up-mobile-meta{
        grid-template-columns:1fr;
    }
}


/* Current Affairs quiz participation indicator */
.quiz-analytics-public{margin-top:12px;display:inline-flex;align-items:center;gap:2px;padding:8px 12px;border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc;color:#475569;font-size:12px;line-height:1.3}
.quiz-analytics-public strong{color:#0b3d91}
@media(max-width:600px){.quiz-analytics-public{font-size:11px;padding:7px 10px;max-width:100%;flex-wrap:wrap}}
