
/* =========================================================
   KRISHNAPREP - LATEST EXAMS PAGE
   ========================================================= */


/* =========================================================
   BASIC RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", Arial, sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    line-height: 1.6;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.exam-page {
    width: 92%;
    max-width: 1150px;
    margin: 30px auto 50px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.exam-page-header {
    text-align: center;
    margin-bottom: 22px;
}

.page-label {
    display: inline-block;
    padding: 5px 12px;
    background: #e8efff;
    color: #1d4ed8;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.7px;
}

.exam-page-header h1 {
    margin-top: 9px;
    color: #172554;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 700;
}

.exam-page-header p {
    max-width: 650px;
    margin: 7px auto 0;
    color: #64748b;
    font-size: 13px;
}


/* =========================================================
   SEARCH
   ========================================================= */

.exam-search {
    width: 100%;
    max-width: 680px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: 0.2s ease;
}

.exam-search:focus-within {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.08);
}

.exam-search i {
    padding-left: 16px;
    color: #64748b;
    font-size: 14px;
}

.exam-search input {
    width: 100%;
    padding: 13px 14px;
    border: none;
    outline: none;
    background: transparent;
    color: #1e293b;
    font-family: inherit;
    font-size: 13px;
}

.exam-search input::placeholder {
    color: #94a3b8;
}


/* =========================================================
   QUICK NAVIGATION
   ========================================================= */

.exam-quick-nav {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.exam-quick-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s ease;
}

.exam-quick-nav a i {
    color: #1d4ed8;
    font-size: 12px;
}

.exam-quick-nav a:hover {
    background: #172554;
    border-color: #172554;
    color: #ffffff;
}

.exam-quick-nav a:hover i {
    color: #ffffff;
}


/* =========================================================
   COMMON SECTION
   ========================================================= */

.Latesexam,
.results,
.admit-card,
.govt-documents {

    width: 100%;
    margin-bottom: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    scroll-margin-top: 20px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    width: 100%;
    padding: 17px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-heading>div {
    min-width: 0;
}

.section-heading>div>span {
    display: inline-block;
    margin-bottom: 3px;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-heading h2 {
    color: #172554;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.section-heading p {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}


/* =========================================================
   VIEW ALL
   ========================================================= */

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.2s ease;
}

.view-all i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.view-all:hover {
    color: #172554;
}

.view-all:hover i {
    transform: translateX(3px);
}


/* =========================================================
   EXAM / RESULT / ADMIT CARD LIST
   ========================================================= */

.exam-list {
    width: 100%;
    background: #ffffff;
}

.results-admit-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* =========================================================
   SINGLE ROW
   ========================================================= */

.exam-row {
    width: 100%;
    min-height: 78px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #edf1f5;
    transition: background 0.2s ease;
}

.exam-row:last-child {
    border-bottom: none;
}

.exam-row:hover {
    background: #f8fafc;
}


/* =========================================================
   NUMBER
   ========================================================= */

.exam-number {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   EXAM CONTENT
   ========================================================= */

.exam-content {
    flex: 1;
    min-width: 0;
}

.exam-content h3 {
    margin: 0 0 2px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.exam-content p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   STATUS
   ========================================================= */

.exam-status {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2px;
}


/* Active */

.exam-status.active {
    background: #ecfdf5;
    color: #15803d;
}


/* Upcoming */

.exam-status.upcoming {
    background: #fff7ed;
    color: #c2410c;
}


/* Result */

.exam-status.result {
    background: #eef2ff;
    color: #4338ca;
}


/* Admit */

.exam-status.admit {
    background: #ecfeff;
    color: #0e7490;
}


/* =========================================================
   ACTION BUTTON
   ========================================================= */

.exam-action {
    flex-shrink: 0;
}

.exam-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 105px;
    padding: 8px 12px;
    background: #1d4ed8;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: 0.2s ease;
}

.exam-action a:hover {
    background: #172554;
    transform: translateY(-1px);
}

.exam-action a i {
    font-size: 9px;
}


/* =========================================================
   GOVERNMENT DOCUMENTS
   ========================================================= */

.document-list {
    width: 100%;
    background: #ffffff;
}

.document-row {
    width: 100%;
    min-height: 70px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-bottom: 1px solid #edf1f5;
    transition: background 0.2s ease;
}

.document-row:last-child {
    border-bottom: none;
}

.document-row:hover {
    background: #f8fafc;
}


/* Document Icon */

.document-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    border-radius: 5px;
    font-size: 14px;
}


/* Document Content */

.document-content {
    flex: 1;
    min-width: 0;
}

.document-content h3 {
    margin: 0 0 2px;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
}

.document-content p {
    margin: 0;
    color: #64748b;
    font-size: 10px;
}


/* Document Action */

.document-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid #dbe2ea;
    border-radius: 5px;
    background: #ffffff;
    color: #1d4ed8;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    transition: 0.2s ease;
}

.document-action:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .exam-page {
        width: 94%;
        margin-top: 25px;
    }

    .results-admit-wrapper {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /* MAIN */

    .exam-page {
        width: 94%;
        margin: 20px auto 35px;
    }


    /* PAGE HEADER */

    .exam-page-header {
        margin-bottom: 18px;
    }

    .page-label {
        padding: 4px 10px;
        font-size: 8px;
    }

    .exam-page-header h1 {
        margin-top: 8px;
        font-size: 22px;
    }

    .exam-page-header p {
        margin-top: 6px;
        font-size: 10px;
        line-height: 1.6;
    }


    /* SEARCH */

    .exam-search {
        margin-bottom: 16px;
        border-radius: 6px;
    }

    .exam-search i {
        padding-left: 12px;
        font-size: 12px;
    }

    .exam-search input {
        padding: 11px;
        font-size: 11px;
    }


    /* QUICK NAV */

    .exam-quick-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-bottom: 22px;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .exam-quick-nav::-webkit-scrollbar {
        display: none;
    }

    .exam-quick-nav a {
        flex-shrink: 0;
        padding: 7px 11px;
        gap: 5px;
        font-size: 9px;
    }

    .exam-quick-nav a i {
        font-size: 9px;
    }


    /* SECTIONS */

    .Latesexam,
    .results,
    .admit-card,
    .govt-documents {
        margin-bottom: 20px;
        border-radius: 7px;
    }


    /* SECTION HEADING */

    .section-heading {
        padding: 13px 14px;
        gap: 10px;
    }

    .section-heading>div>span {
        font-size: 8px;
    }

    .section-heading h2 {
        font-size: 15px;
    }

    .section-heading p {
        margin-top: 2px;
        font-size: 9px;
    }

    .view-all {
        font-size: 9px;
    }

    .view-all i {
        font-size: 8px;
    }


    /* EXAM ROW */

    .exam-row {
        min-height: 70px;
        padding: 12px 13px;
        gap: 10px;
    }

    .exam-number {
        width: 27px;
        height: 27px;
        font-size: 8px;
    }

    .exam-content h3 {
        font-size: 11px;
        line-height: 1.4;
    }

    .exam-content p {
        font-size: 9px;
        line-height: 1.4;
    }

    .exam-status {
        margin-top: 4px;
        padding: 2px 5px;
        font-size: 7px;
    }


    /* ACTION */

    .exam-action a {
        min-width: 75px;
        padding: 6px 7px;
        gap: 4px;
        font-size: 8px;
    }

    .exam-action a i {
        font-size: 7px;
    }


    /* DOCUMENTS */

    .document-row {
        min-height: 64px;
        padding: 11px 13px;
        gap: 9px;
    }

    .document-icon {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .document-content h3 {
        font-size: 10px;
    }

    .document-content p {
        font-size: 8px;
    }

    .document-action {
        padding: 5px 7px;
        font-size: 8px;
        gap: 4px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .exam-page {
        width: 95%;
    }

    .exam-page-header h1 {
        font-size: 20px;
    }

    .exam-page-header p {
        font-size: 9px;
    }

    .section-heading h2 {
        font-size: 14px;
    }

    .section-heading p {
        font-size: 8px;
    }

    .view-all {
        font-size: 8px;
    }

    .exam-row {
        gap: 8px;
    }

    .exam-number {
        width: 25px;
        height: 25px;
    }

    .exam-content h3 {
        font-size: 10px;
    }

    .exam-content p {
        font-size: 8px;
    }

    .exam-action a {
        min-width: 67px;
        padding: 5px 6px;
        font-size: 7px;
    }

    .document-content h3 {
        font-size: 9px;
    }

    .document-content p {
        font-size: 7px;
    }

    .document-action {
        font-size: 7px;
        padding: 4px 6px;
    }
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #0d1b2a;
    color: #fff;
    padding-top: 60px;
}

.footer-container {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-box h3 {
    margin-bottom: 20px;
    color: #25D366;
}

.footer-box p {
    line-height: 1.8;
    color: #ccc;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-box ul li a:hover {
    color: #25D366;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: #1b263b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #25D366;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    color: #aaa;
}

