
/* ==========================================
   1. GLOBAL STYLES
========================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #16334b;
    background: #f5f8fb;
}


/* ==========================================
   2. RESULTS SECTION
========================================== */

.results-section {
    padding: 70px 18px;
}

.results-wrap {
    max-width: 1160px;
    margin: auto;
}


/* ==========================================
   3. SECTION HEADING
========================================== */

.results-head {
    text-align: center;
    margin-bottom: 35px;
}

.results-head span {
    color: #087d6d;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 12px;
}

.results-head h2 {
    font-size: clamp(24px, 3vw, 38px);
    margin: 12px 0;
}

.results-head p {
    color: #627587;
}


/* ==========================================
   4. ACADEMIC YEAR GRID
========================================== */

.year-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}


/* ==========================================
   5. ACADEMIC YEAR CARD
========================================== */

.year-card {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 1px solid #dce7ef;
    border-radius: 13px;
    overflow: hidden;
    background: white;
    cursor: pointer;
    text-align: left;
    font: inherit;

    box-shadow: 0 8px 24px #173b5810;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.year-card:hover,
.year-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px #173b5826;
    outline: 2px solid #91b8f4;
}


/* ==========================================
   6. CARD HEADER
========================================== */

.year-top {
    background: #124b91;
    color: white;
    padding: 20px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Alternate Green Card */

.year-card:nth-child(even) .year-top {
    background: #087b69;
}

/* Academic Icon */

.year-icon {
    font-size: 29px;
}

/* Academic Year Label */

.year-top small {
    display: block;
    font-size: 11px;
}

/* Academic Year */

.year-top strong {
    display: block;
    font-size: 21px;
    margin: 3px 0;
}

/* Student Result Label */

.year-top em {
    font-style: normal;
    color: #ffe47b;
    font-size: 11px;
    font-weight: 700;
}


/* ==========================================
   7. CARD BODY
========================================== */

.year-bottom {
    padding: 18px 15px;
}

/* Total Students Label */

.stat-label {
    color: #68798a;
    font-size: 12px;
}

/* Total Students Number */

.stat-number {
    display: block;
    font-size: 25px;
    font-weight: 800;
    margin: 4px 0;
}

/* Pass Percentage Badge */

.pass-pill {
    background: #e8f7f2;
    color: #00745b;
    display: inline-block;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
}

/* View Full Result Link */

.view-link {
    display: block;
    margin-top: 20px;
    color: #1257a0;
    font-size: 13px;
    font-weight: 700;
}


/* ==========================================
   8. MODAL OVERLAY
========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: #06172ac9;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 16px;
}

/* Active Modal */

.modal-overlay.active {
    display: flex;
}


/* ==========================================
   9. MODAL BOX
========================================== */

.modal-box {
    width: min(100%, 720px);
    max-height: 90vh;
    overflow: auto;

    background: #fff;
    border-radius: 16px;

    box-shadow: 0 20px 70px #0004;
}


/* ==========================================
   10. MODAL HEADER
========================================== */

.modal-header {
    background: #124b91;
    color: white;

    padding: 20px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Green Header */

.modal-header.green {
    background: #087b69;
}

/* Modal Title */

.modal-header h3 {
    margin: 3px 0;
    font-size: 25px;
    line-height: 1.3;
}

/* Academic Year Label */

.modal-header small {
    font-size: 12px;
}

/* Close Button */

.modal-close {
    border: 0;
    background: #ffffff2b;
    color: #fff;

    font-size: 26px;

    border-radius: 8px;
    width: 39px;
    height: 39px;

    cursor: pointer;
}


/* ==========================================
   11. MODAL BODY
========================================== */

.modal-body {
    padding: 22px;
}


/* ==========================================
   12. RESULT SUMMARY
========================================== */

.summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.summary div {
    padding: 14px 10px;
    text-align: center;
    background: #edf5fd;
    border-radius: 9px;
}

.summary span {
    display: block;
    color: #61758a;
    font-size: 12px;
}

.summary strong {
    display: block;
    color: #124b91;
    font-size: 24px;
    margin-top: 5px;
}


/* ==========================================
   13. RESULT TABLE
========================================== */

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
    min-width: 450px;
}

/* Table Cells */

th,
td {
    padding: 10px 8px;
    border: 1px solid #c9dff4;
}

/* Table Heading */

th {
    background: #dcecff;
    color: #124b91;
}

/* Alternate Table Rows */

tr:nth-child(even) td {
    background: #f3f8fe;
}

/* Total Row */

tr:last-child td {
    background: #e0eefc;
    font-weight: 700;
}


/* ==========================================
   14. MODAL FOOTER
========================================== */

.modal-foot {
    text-align: center;
    color: #087b69;
    font-size: 13px;
    margin-top: 18px;
    font-weight: 600;
}


/* ==========================================
   15. RESPONSIVE - TABLET
   Max Width: 1050px
========================================== */

@media (max-width: 1050px) {

    .year-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}


/* ==========================================
   16. RESPONSIVE - MOBILE
   Max Width: 650px
========================================== */

@media (max-width: 650px) {

    .year-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-section {
        padding: 48px 14px;
    }

    .modal-body {
        padding: 14px;
    }

    .summary strong {
        font-size: 19px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .year-top strong {
        font-size: 19px;
    }

}


/* ==========================================
   17. RESPONSIVE - SMALL MOBILE
   Max Width: 420px
========================================== */

@media (max-width: 420px) {

    .year-grid {
        grid-template-columns: 1fr;
    }

    .summary {
        gap: 5px;
    }

    .summary div {
        padding: 12px 4px;
    }

    .summary span {
        font-size: 10px;
    }

}

/* =========================================
   ACADEMIC RESULT CARDS - FINAL DESIGN
   Same styling as reference screenshot
========================================= */

#yearCards,
#junioryearCards {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 20px !important;
    max-width: 1390px;
    margin: 0 auto;
}

/* CARD */
#yearCards .year-card,
#junioryearCards .year-card {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    height: 100%;
    padding: 0 !important;
    border: 1px solid #dce7ef !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: #fff !important;
    text-align: left !important;
    font-family: Arial, sans-serif !important;
    box-shadow: 0 8px 25px rgba(23,59,88,.06);
    transition: transform .25s, box-shadow .25s;
}

#yearCards .year-card:hover,
#junioryearCards .year-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(23,59,88,.13);
}

/* BLUE HEADER */
#yearCards .year-top,
#junioryearCards .year-top {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 140px;
    padding: 20px 24px !important;
    background: #174f94 !important;
    color: #fff !important;
}

/* GREEN ALTERNATE HEADER */
#yearCards .year-card:nth-child(even) .year-top,
#junioryearCards .year-card:nth-child(even) .year-top {
    background: #087d6d !important;
}

/* GRADUATION ICON */
#yearCards .year-icon,
#junioryearCards .year-icon {
    font-size: 30px !important;
    line-height: 1;
    flex-shrink: 0;
}

/* ACADEMIC YEAR LABEL */
#yearCards .year-top small,
#junioryearCards .year-top small {
    display: block;
    margin-bottom: 6px;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 400;
}

/* YEAR */
#yearCards .year-top strong,
#junioryearCards .year-top strong {
    display: block;
    margin: 0 0 12px !important;
    color: #fff !important;
    font-size: 25px !important;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* STUDENT RESULT */
#yearCards .year-top em,
#junioryearCards .year-top em {
    display: block;
    color: #ffe47b !important;
    font-size: 12px !important;
    font-style: normal;
    font-weight: 700;
}

/* CARD BODY */
#yearCards .year-bottom,
#junioryearCards .year-bottom {
    padding: 26px 18px 28px !important;
}

/* TOTAL STUDENTS */
#yearCards .stat-label,
#junioryearCards .stat-label {
    display: block;
    color: #68798a !important;
    font-size: 13px !important;
    font-weight: 400;
}

#yearCards .stat-number,
#junioryearCards .stat-number {
    display: block;
    margin: 8px 0 12px !important;
    color: #000 !important;
    font-size: 32px !important;
    font-weight: 800;
    line-height: 1.2;
}

/* PASS BADGE */
#yearCards .pass-pill,
#junioryearCards .pass-pill {
    display: inline-block;
    width: fit-content !important;
    max-width: 100%;
    padding: 10px 12px !important;
    border-radius: 7px !important;
    background: #e8f7f2 !important;
    color: #00745b !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1.3;
}

/* VIEW FULL RESULT */
#yearCards .view-link,
#junioryearCards .view-link {
    display: block;
    margin-top: 25px !important;
    color: #0052a5 !important;
    font-size: 13px !important;
    font-weight: 700;
    text-decoration: none;
}

/* TABLET */
@media (max-width: 1050px) {
    #yearCards,
    #junioryearCards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* MOBILE */
@media (max-width: 650px) {
    #yearCards,
    #junioryearCards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    #yearCards .year-top,
    #junioryearCards .year-top {
        padding: 16px 12px !important;
        gap: 8px !important;
        min-height: 120px;
    }

    #yearCards .year-top strong,
    #junioryearCards .year-top strong {
        font-size: 18px !important;
        white-space: normal;
    }

    #yearCards .year-bottom,
    #junioryearCards .year-bottom {
        padding: 18px 12px !important;
    }

    #yearCards .stat-number,
    #junioryearCards .stat-number {
        font-size: 26px !important;
    }
}

/* SMALL MOBILE */
@media (max-width: 420px) {
    #yearCards,
    #junioryearCards {
        grid-template-columns: 1fr !important;
    }
}



/* ASHRAM RESULT SECTION */
.ashram-results,
.ashram-results *,
.ashram-overlay,
.ashram-overlay * {
    box-sizing: border-box;
}

.ashram-results {
    padding: 45px 15px;
    background: #f5f8fb;
    font-family: Arial, sans-serif;
}

.ashram-container {
    max-width: 1390px;
    margin: auto;
}

.ashram-heading {
    text-align: center;
    margin-bottom: 30px;
}

.ashram-heading h2 {
    color: #1257a0;
    font-size: clamp(22px, 3vw, 32px);
    margin: 0 0 12px;
}

.ashram-heading p {
    color: #68798a;
    font-size: 14px;
}

/* FIVE CARDS */
.ashram-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.ashram-card {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 1px solid #dce7ef;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    text-align: left;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(23,59,88,.06);
    transition: transform .25s, box-shadow .25s;
}

.ashram-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(23,59,88,.13);
}

/* CARD HEADER */
.ashram-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 140px;
    padding: 20px 22px;
    background: #174f94;
    color: #fff;
}

.ashram-card:nth-child(even) .ashram-card-top {
    background: #087d6d;
}

.ashram-icon {
    font-size: 30px;
    flex-shrink: 0;
}

.ashram-card-top small {
    display: block;
    font-size: 12px;
    color: #fff;
    margin-bottom: 6px;
}

.ashram-card-top strong {
    display: block;
    font-size: 25px;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #fff;
    white-space: nowrap;
}

.ashram-card-top em {
    display: block;
    font-style: normal;
    color: #ffe47b;
    font-size: 12px;
    font-weight: 700;
}

/* CARD BODY */
.ashram-card-bottom {
    padding: 25px 18px 28px;
}

.ashram-stat-label {
    display: block;
    color: #68798a;
    font-size: 13px;
    margin-bottom: 8px;
}

.ashram-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #000;
    margin-bottom: 12px;
}

.ashram-pass {
    display: inline-block;
    padding: 10px 12px;
    background: #e8f7f2;
    color: #00745b;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.ashram-view {
    display: block;
    margin-top: 25px;
    color: #0052a5;
    font-size: 13px;
    font-weight: 700;
}

/* POPUP OVERLAY */
.ashram-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(6,23,42,.75);
}

.ashram-overlay.active {
    display: flex;
}

/* POPUP */
.ashram-modal {
    width: min(100%, 900px);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 70px rgba(0,0,0,.3);
}

.ashram-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 22px 25px;
    background: #174f94;
    color: #fff;
}

.ashram-modal-header small {
    font-size: 12px;
}

.ashram-modal-header h3 {
    margin: 6px 0;
    font-size: 26px;
    color: #fff;
}

.ashram-modal-header p {
    margin: 0;
    color: #ffe47b;
    font-size: 13px;
    font-weight: 700;
}

#ashramClose {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.ashram-modal-body {
    padding: 24px;
}

.ashram-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.ashram-summary > div {
    padding: 17px 12px;
    background: #edf5fd;
    border-radius: 9px;
    text-align: center;
}

.ashram-summary span {
    display: block;
    font-size: 12px;
    color: #61758a;
}

.ashram-summary strong {
    display: block;
    font-size: 25px;
    margin-top: 7px;
    color: #124b91;
}

/* TABLE */
.ashram-table-wrap {
    overflow-x: auto;
}

.ashram-table {
    width: 100%;
    min-width: 430px;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}

.ashram-table th,
.ashram-table td {
    border: 1px solid #c9dff4;
    padding: 11px 8px;
}

.ashram-table th {
    background: #dcecff;
    color: #124b91;
}

.ashram-table tbody tr:nth-child(even) {
    background: #f3f8fe;
}

.ashram-table tbody tr:last-child {
    background: #e0eefc;
    font-weight: 700;
}

.ashram-message {
    text-align: center;
    color: #087b69;
    font-size: 13px;
    font-weight: 700;
    margin: 20px 0 0;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .ashram-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ashram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ashram-card-top {
        padding: 17px 12px;
        min-height: 120px;
        gap: 8px;
    }

    .ashram-card-top strong {
        font-size: 18px;
        white-space: normal;
    }

    .ashram-card-bottom {
        padding: 18px 12px;
    }

    .ashram-stat-number {
        font-size: 26px;
    }

    .ashram-summary {
        grid-template-columns: 1fr;
    }

    .ashram-modal-body {
        padding: 14px;
    }
}

@media (max-width: 420px) {
    .ashram-grid {
        grid-template-columns: 1fr;
    }
}




/* =====================================================
   GIRLS HOSTEL ACADEMIC RESULTS
   SANATAN DHARAMA KANYA CHHATRALAYA
   Isolated CSS - Responsive Design
===================================================== */


/* ==========================================
   01. BOX SIZING
========================================== */

.girls-hostel-results,
.girls-hostel-results *,
.girls-hostel-overlay,
.girls-hostel-overlay * {
    box-sizing: border-box;
}


/* ==========================================
   02. MAIN SECTION
========================================== */

.girls-hostel-results {
    padding: 48px 16px;
    background: #f5f8fb;
    font-family: Arial, sans-serif;
    color: #16334b;
}

.girls-hostel-container {
    max-width: 1390px;
    margin: auto;
}


/* ==========================================
   03. SECTION HEADING
========================================== */

.girls-hostel-heading {
    text-align: center;
    margin-bottom: 30px;
}

.girls-hostel-heading h2 {
    font-size: clamp(20px, 2.8vw, 30px);
    color: #1257a0;
    margin: 0 0 10px;
}

.girls-hostel-heading p {
    color: #68798a;
    margin: 0;
    font-size: 14px;
}


/* ==========================================
   04. ACADEMIC YEAR GRID
========================================== */

.girls-hostel-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}


/* ==========================================
   05. ACADEMIC YEAR CARD
========================================== */

.girls-hostel-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    padding: 0;

    border: 1px solid #dce7ef;
    border-radius: 15px;

    overflow: hidden;
    background: #fff;

    cursor: pointer;
    text-align: left;
    font-family: Arial, sans-serif;

    box-shadow: 0 8px 25px #173b5810;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

/* Card Hover */

.girls-hostel-card:hover,
.girls-hostel-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px #173b5826;
    outline-offset: 3px;
}


/* ==========================================
   06. CARD HEADER
========================================== */

.girls-hostel-card-top {
    display: flex;
    align-items: center;

    gap: 13px;
    min-height: 140px;

    padding: 18px;

    background: #174f94;
    color: #fff;
}

/* Alternate Green Header */

.girls-hostel-card:nth-child(even) .girls-hostel-card-top {
    background: #087d6d;
}


/* ==========================================
   07. CARD HEADER CONTENT
========================================== */

/* Graduation Icon */

.girls-hostel-icon {
    font-size: 29px;
    flex-shrink: 0;
}

/* Academic Year Label */

.girls-hostel-card-top small {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #fff;
}

/* Academic Year */

.girls-hostel-card-top strong {
    display: block;

    font-size: clamp(18px, 1.65vw, 25px);
    line-height: 1.25;

    white-space: nowrap;
    margin-bottom: 10px;

    color: #fff;
}

/* Student Benefitted Label */

.girls-hostel-card-top em {
    display: block;

    font-size: 12px;
    font-style: normal;
    font-weight: 700;

    color: #ffe47b;
}


/* ==========================================
   08. CARD BODY
========================================== */

.girls-hostel-card-bottom {
    padding: 24px 17px 27px;
    flex: 1;
}

/* Total Students Label */

.girls-hostel-stat-label {
    display: block;

    color: #68798a;
    font-size: 13px;

    margin-bottom: 8px;
}

/* Total Students Number */

.girls-hostel-stat-number {
    display: block;

    color: #000;
    font-size: 32px;
    font-weight: 800;

    margin-bottom: 12px;
}

/* Pass Percentage Badge */

.girls-hostel-pass {
    display: inline-block;

    background: #e8f7f2;
    color: #00745b;

    border-radius: 7px;
    padding: 9px 11px;

    font-size: 12px;
    font-weight: 700;
}

/* View Full Result Link */

.girls-hostel-view {
    display: block;

    margin-top: 25px;

    color: #0052a5;
    font-size: 13px;
    font-weight: 700;
}


/* ==========================================
   09. MODAL OVERLAY
========================================== */

.girls-hostel-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;

    display: none;
    align-items: center;
    justify-content: center;

    background: #06172ac9;
    padding: 16px;

    font-family: Arial, sans-serif;
}

/* Active Modal */

.girls-hostel-overlay.active {
    display: flex;
}


/* ==========================================
   10. MODAL BOX
========================================== */

.girls-hostel-modal {
    width: min(100%, 850px);
    max-height: 92vh;

    overflow-y: auto;

    background: #fff;
    border-radius: 15px;

    box-shadow: 0 20px 70px #0004;
}


/* ==========================================
   11. MODAL HEADER
========================================== */

.girls-hostel-modal-header {
    display: flex;
    justify-content: space-between;

    gap: 15px;
    padding: 22px 24px;

    background: #174f94;
    color: #fff;
}

/* Green Header */

.girls-hostel-modal-header.green {
    background: #087d6d;
}

/* Academic Year Label */

.girls-hostel-modal-header small {
    font-size: 12px;
}

/* Academic Year Title */

.girls-hostel-modal-header h3 {
    font-size: 25px;
    margin: 5px 0;
    color: #fff;
}

/* School Name */

.girls-hostel-modal-header p {
    font-size: 13px;
    font-weight: 700;
    color: #ffe47b;
    margin: 0;
}

/* Close Button */

.girls-hostel-close {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 8px;

    background: #ffffff30;
    color: #fff;

    font-size: 26px;
    cursor: pointer;

    flex-shrink: 0;
}


/* ==========================================
   12. MODAL BODY
========================================== */

.girls-hostel-modal-body {
    padding: 23px;
}


/* ==========================================
   13. RESULT SUMMARY
========================================== */

.girls-hostel-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
    margin-bottom: 15px;
}

/* Summary Card */

.girls-hostel-summary > div {
    background: #edf5fd;

    padding: 15px 10px;
    border-radius: 9px;

    text-align: center;
}

/* Summary Label */

.girls-hostel-summary span {
    display: block;

    color: #61758a;
    font-size: 12px;
}

/* Summary Number */

.girls-hostel-summary strong {
    display: block;

    color: #124b91;
    font-size: 24px;

    margin-top: 7px;
}


/* ==========================================
   14. ACADEMIC NOTE
========================================== */

.girls-hostel-note {
    font-size: 12px;
    color: #765000;

    margin: 0 0 14px;
    line-height: 1.5;
}

/* Hide Empty Note */

.girls-hostel-note:empty {
    display: none;
}


/* ==========================================
   15. RESULT TABLE
========================================== */

.girls-hostel-table-wrap {
    overflow-x: auto;
}

.girls-hostel-table {
    width: 100%;
    min-width: 430px;

    border-collapse: collapse;
    text-align: center;

    font-size: 13px;
}

/* Table Cells */

.girls-hostel-table th,
.girls-hostel-table td {
    border: 1px solid #c9dff4;
    padding: 10px 8px;
}

/* Table Heading */

.girls-hostel-table th {
    background: #dcecff;
    color: #124b91;
}

/* Alternate Table Rows */

.girls-hostel-table tbody tr:nth-child(even) {
    background: #f3f8fe;
}

/* Total Row */

.girls-hostel-table tbody tr:last-child {
    background: #e0eefc;
    font-weight: 700;
}


/* ==========================================
   16. MODAL FOOTER
========================================== */

/* Motivational Message */

.girls-hostel-message {
    text-align: center;

    color: #087b69;
    font-size: 13px;
    font-weight: 700;

    margin: 18px 0;
}

/* Academic Report Footer */

.girls-hostel-footer {
    text-align: center;

    color: #68798a;
    font-size: 12px;

    margin: 0;
}


/* ==========================================
   17. RESPONSIVE - TABLET
========================================== */

@media (max-width: 1100px) {

    .girls-hostel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ==========================================
   18. RESPONSIVE - MOBILE
========================================== */

@media (max-width: 700px) {

    .girls-hostel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .girls-hostel-card-top {
        min-height: 120px;
        padding: 15px 11px;
        gap: 8px;
    }

    .girls-hostel-card-top strong {
        font-size: 18px;
        white-space: normal;
    }

    .girls-hostel-card-bottom {
        padding: 18px 12px;
    }

    .girls-hostel-stat-number {
        font-size: 26px;
    }

    .girls-hostel-summary {
        grid-template-columns: 1fr;
    }

    .girls-hostel-modal-body {
        padding: 14px;
    }

}


/* ==========================================
   19. RESPONSIVE - SMALL MOBILE
========================================== */

@media (max-width: 420px) {

    .girls-hostel-grid {
        grid-template-columns: 1fr;
    }

}




/* =====================================================
   RISHI VALMIKI HOSTEL
   ACADEMIC RESULTS SECTION
   Fully Isolated CSS - Responsive Design
===================================================== */


/* ==========================================
   01. BOX SIZING
========================================== */

.valmiki-results,
.valmiki-results *,
.valmiki-overlay,
.valmiki-overlay * {
    box-sizing: border-box;
}


/* ==========================================
   02. MAIN SECTION
========================================== */

.valmiki-results {
    padding: 48px 16px;
    background: #f5f8fb;
    font-family: Arial, sans-serif;
    color: #16334b;
}

.valmiki-container {
    max-width: 1390px;
    margin: auto;
}


/* ==========================================
   03. SECTION HEADING
========================================== */

.valmiki-heading {
    text-align: center;
    margin-bottom: 30px;
}

.valmiki-heading h2 {
    font-size: clamp(20px, 2.8vw, 30px);
    color: #1257a0;
    margin: 0 0 10px;
}

.valmiki-heading p {
    color: #68798a;
    margin: 0;
    font-size: 14px;
}


/* ==========================================
   04. ACADEMIC YEAR GRID
========================================== */

.valmiki-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}


/* ==========================================
   05. ACADEMIC YEAR CARD
========================================== */

.valmiki-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    padding: 0;

    border: 1px solid #dce7ef;
    border-radius: 15px;

    overflow: hidden;
    background: #fff;

    cursor: pointer;
    text-align: left;
    font-family: Arial, sans-serif;

    box-shadow: 0 8px 25px #173b5810;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

/* Card Hover Effect */

.valmiki-card:hover,
.valmiki-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px #173b5826;
    outline-offset: 3px;
}


/* ==========================================
   06. CARD HEADER
========================================== */

.valmiki-card-top {
    display: flex;
    align-items: center;

    gap: 13px;
    min-height: 140px;
    padding: 18px;

    background: #174f94;
    color: #fff;
}

/* Alternate Green Header */

.valmiki-card:nth-child(even) .valmiki-card-top {
    background: #087d6d;
}


/* ==========================================
   07. CARD HEADER CONTENT
========================================== */

/* Graduation Icon */

.valmiki-icon {
    font-size: 29px;
    flex-shrink: 0;
}

/* Academic Year Label */

.valmiki-card-top small {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #fff;
}

/* Academic Year */

.valmiki-card-top strong {
    display: block;

    font-size: clamp(18px, 1.65vw, 25px);
    line-height: 1.25;

    white-space: nowrap;
    margin-bottom: 10px;

    color: #fff;
}

/* Student Benefitted Label */

.valmiki-card-top em {
    display: block;

    font-size: 12px;
    font-style: normal;
    font-weight: 700;

    color: #ffe47b;
}


/* ==========================================
   08. CARD BODY
========================================== */

.valmiki-card-bottom {
    padding: 24px 17px 27px;
    flex: 1;
}

/* Total Students Label */

.valmiki-stat-label {
    display: block;
    color: #68798a;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Total Students Number */

.valmiki-stat-number {
    display: block;
    color: #000;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* Pass Percentage Badge */

.valmiki-pass {
    display: inline-block;

    background: #e8f7f2;
    color: #00745b;

    border-radius: 7px;
    padding: 9px 11px;

    font-size: 12px;
    font-weight: 700;
}

/* View Full Result Link */

.valmiki-view {
    display: block;

    margin-top: 25px;

    color: #0052a5;
    font-size: 13px;
    font-weight: 700;
}


/* ==========================================
   09. MODAL OVERLAY
========================================== */

.valmiki-overlay {
    position: fixed;
    inset: 0;
    z-index: 100001;

    display: none;
    align-items: center;
    justify-content: center;

    background: #06172ac9;
    padding: 16px;

    font-family: Arial, sans-serif;
}

/* Active Modal */

.valmiki-overlay.active {
    display: flex;
}


/* ==========================================
   10. MODAL BOX
========================================== */

.valmiki-modal {
    width: min(100%, 850px);
    max-height: 92vh;

    overflow-y: auto;

    background: #fff;
    border-radius: 15px;

    box-shadow: 0 20px 70px #0004;
}


/* ==========================================
   11. MODAL HEADER
========================================== */

.valmiki-modal-header {
    display: flex;
    justify-content: space-between;

    gap: 15px;
    padding: 22px 24px;

    background: #174f94;
    color: #fff;
}

/* Green Modal Header */

.valmiki-modal-header.green {
    background: #087d6d;
}

/* Academic Year Label */

.valmiki-modal-header small {
    font-size: 12px;
}

/* Academic Year Title */

.valmiki-modal-header h3 {
    font-size: 25px;
    margin: 5px 0;
    color: #fff;
}

/* Hostel Name */

.valmiki-modal-header p {
    font-size: 13px;
    font-weight: 700;
    color: #ffe47b;
    margin: 0;
}

/* Close Button */

.valmiki-close {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 8px;

    background: #ffffff30;
    color: #fff;

    font-size: 26px;
    cursor: pointer;

    flex-shrink: 0;
}


/* ==========================================
   12. MODAL BODY
========================================== */

.valmiki-modal-body {
    padding: 23px;
}


/* ==========================================
   13. RESULT SUMMARY
========================================== */

.valmiki-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
    margin-bottom: 15px;
}

/* Summary Card */

.valmiki-summary > div {
    background: #edf5fd;

    padding: 15px 10px;
    border-radius: 9px;

    text-align: center;
}

/* Summary Label */

.valmiki-summary span {
    display: block;
    color: #61758a;
    font-size: 12px;
}

/* Summary Number */

.valmiki-summary strong {
    display: block;

    color: #124b91;
    font-size: 24px;

    margin-top: 7px;
}


/* ==========================================
   14. ACADEMIC NOTE
========================================== */

.valmiki-note {
    font-size: 12px;
    color: #765000;

    margin: 0 0 14px;
    line-height: 1.5;
}

/* Hide Empty Note */

.valmiki-note:empty {
    display: none;
}


/* ==========================================
   15. RESULT TABLE
========================================== */

.valmiki-table-wrap {
    overflow-x: auto;
}

.valmiki-table {
    width: 100%;
    min-width: 430px;

    border-collapse: collapse;
    text-align: center;

    font-size: 13px;
}

/* Table Cells */

.valmiki-table th,
.valmiki-table td {
    border: 1px solid #c9dff4;
    padding: 10px 8px;
}

/* Table Heading */

.valmiki-table th {
    background: #dcecff;
    color: #124b91;
}

/* Alternate Table Rows */

.valmiki-table tbody tr:nth-child(even) {
    background: #f3f8fe;
}

/* Total Row */

.valmiki-table tbody tr:last-child {
    background: #e0eefc;
    font-weight: 700;
}


/* ==========================================
   16. MODAL FOOTER
========================================== */

/* Motivational Message */

.valmiki-message {
    text-align: center;

    color: #087b69;
    font-size: 13px;
    font-weight: 700;

    margin: 18px 0;
}

/* Academic Report Footer */

.valmiki-footer {
    text-align: center;

    color: #68798a;
    font-size: 12px;

    margin: 0;
}


/* ==========================================
   17. RESPONSIVE - TABLET
   Max Width: 1100px
========================================== */

@media (max-width: 1100px) {

    .valmiki-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ==========================================
   18. RESPONSIVE - MOBILE
   Max Width: 700px
========================================== */

@media (max-width: 700px) {

    .valmiki-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .valmiki-card-top {
        min-height: 120px;
        padding: 15px 11px;
        gap: 8px;
    }

    .valmiki-card-top strong {
        font-size: 18px;
        white-space: normal;
    }

    .valmiki-card-bottom {
        padding: 18px 12px;
    }

    .valmiki-stat-number {
        font-size: 26px;
    }

    .valmiki-summary {
        grid-template-columns: 1fr;
    }

    .valmiki-modal-body {
        padding: 14px;
    }

}


/* ==========================================
   19. RESPONSIVE - SMALL MOBILE
   Max Width: 420px
========================================== */

@media (max-width: 420px) {

    .valmiki-grid {
        grid-template-columns: 1fr;
    }

}



/* =====================================================
   VAIDEHI KANYA ASHRAMSHALA, PANGAM
   ACADEMIC RESULTS SECTION
   Fully Isolated CSS - Responsive Design
===================================================== */


/* ==========================================
   01. BOX SIZING
========================================== */

.pangam-results,
.pangam-results *,
.pangam-overlay,
.pangam-overlay * {
    box-sizing: border-box;
}


/* ==========================================
   02. MAIN SECTION
========================================== */

.pangam-results {
    padding: 48px 16px;
    background: #f5f8fb;
    font-family: Arial, sans-serif;
    color: #16334b;
}

.pangam-container {
    max-width: 1390px;
    margin: auto;
}


/* ==========================================
   03. SECTION HEADING
========================================== */

.pangam-heading {
    text-align: center;
    margin-bottom: 30px;
}

.pangam-heading h2 {
    font-size: clamp(20px, 2.8vw, 30px);
    color: #1257a0;
    margin: 0 0 10px;
}

.pangam-heading p {
    color: #68798a;
    margin: 0;
    font-size: 14px;
}


/* ==========================================
   04. ACADEMIC YEAR GRID
========================================== */

.pangam-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}


/* ==========================================
   05. ACADEMIC YEAR CARD
========================================== */

.pangam-card {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;
    padding: 0;

    border: 1px solid #dce7ef;
    border-radius: 15px;

    overflow: hidden;
    background: #fff;

    cursor: pointer;
    text-align: left;
    font-family: Arial, sans-serif;

    box-shadow: 0 8px 25px #173b5810;

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

/* Card Hover Effect */

.pangam-card:hover,
.pangam-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px #173b5826;
    outline-offset: 3px;
}


/* ==========================================
   06. CARD HEADER
========================================== */

.pangam-card-top {
    display: flex;
    align-items: center;

    gap: 13px;
    min-height: 140px;
    padding: 18px;

    background: #174f94;
    color: #fff;
}

/* Alternate Green Header */

.pangam-card:nth-child(even) .pangam-card-top {
    background: #087d6d;
}


/* ==========================================
   07. CARD HEADER CONTENT
========================================== */

/* Graduation Icon */

.pangam-icon {
    font-size: 29px;
    flex-shrink: 0;
}

/* Academic Year Label */

.pangam-card-top small {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #fff;
}

/* Academic Year */

.pangam-card-top strong {
    display: block;

    font-size: clamp(18px, 1.65vw, 25px);
    line-height: 1.25;

    white-space: nowrap;
    margin-bottom: 10px;

    color: #fff;
}

/* Student Benefitted Label */

.pangam-card-top em {
    display: block;

    font-size: 12px;
    font-style: normal;
    font-weight: 700;

    color: #ffe47b;
}


/* ==========================================
   08. CARD BODY
========================================== */

.pangam-card-bottom {
    padding: 24px 17px 27px;
    flex: 1;
}

/* Total Students Label */

.pangam-stat-label {
    display: block;
    color: #68798a;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Total Students Number */

.pangam-stat-number {
    display: block;
    color: #000;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* Pass Percentage Badge */

.pangam-pass {
    display: inline-block;

    background: #e8f7f2;
    color: #00745b;

    border-radius: 7px;
    padding: 9px 11px;

    font-size: 12px;
    font-weight: 700;
}

/* View Full Result Link */

.pangam-view {
    display: block;

    margin-top: 25px;

    color: #0052a5;
    font-size: 13px;
    font-weight: 700;
}


/* ==========================================
   09. MODAL OVERLAY
========================================== */

.pangam-overlay {
    position: fixed;
    inset: 0;
    z-index: 100002;

    display: none;
    align-items: center;
    justify-content: center;

    background: #06172ac9;
    padding: 16px;

    font-family: Arial, sans-serif;
}

/* Active Modal */

.pangam-overlay.active {
    display: flex;
}


/* ==========================================
   10. MODAL BOX
========================================== */

.pangam-modal {
    width: min(100%, 850px);
    max-height: 92vh;

    overflow-y: auto;

    background: #fff;
    border-radius: 15px;

    box-shadow: 0 20px 70px #0004;
}


/* ==========================================
   11. MODAL HEADER
========================================== */

.pangam-modal-header {
    display: flex;
    justify-content: space-between;

    gap: 15px;
    padding: 22px 24px;

    background: #174f94;
    color: #fff;
}

/* Green Modal Header */

.pangam-modal-header.green {
    background: #087d6d;
}

/* Academic Year Label */

.pangam-modal-header small {
    font-size: 12px;
}

/* Academic Year Title */

.pangam-modal-header h3 {
    font-size: 25px;
    margin: 5px 0;
    color: #fff;
}

/* School Name */

.pangam-modal-header p {
    font-size: 13px;
    font-weight: 700;
    color: #ffe47b;
    margin: 0;
}

/* Close Button */

.pangam-close {
    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 8px;

    background: #ffffff30;
    color: #fff;

    font-size: 26px;
    cursor: pointer;

    flex-shrink: 0;
}


/* ==========================================
   12. MODAL BODY
========================================== */

.pangam-modal-body {
    padding: 23px;
}


/* ==========================================
   13. RESULT SUMMARY
========================================== */

.pangam-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
    margin-bottom: 15px;
}

/* Summary Card */

.pangam-summary > div {
    background: #edf5fd;

    padding: 15px 10px;
    border-radius: 9px;

    text-align: center;
}

/* Summary Label */

.pangam-summary span {
    display: block;
    color: #61758a;
    font-size: 12px;
}

/* Summary Number */

.pangam-summary strong {
    display: block;

    color: #124b91;
    font-size: 24px;

    margin-top: 7px;
}


/* ==========================================
   14. ACADEMIC NOTE
========================================== */

.pangam-note {
    font-size: 12px;
    color: #765000;

    margin: 0 0 14px;
    line-height: 1.5;
}

/* Hide Empty Note */

.pangam-note:empty {
    display: none;
}


/* ==========================================
   15. RESULT TABLE
========================================== */

.pangam-table-wrap {
    overflow-x: auto;
}

.pangam-table {
    width: 100%;
    min-width: 430px;

    border-collapse: collapse;
    text-align: center;

    font-size: 13px;
}

/* Table Cells */

.pangam-table th,
.pangam-table td {
    border: 1px solid #c9dff4;
    padding: 10px 8px;
}

/* Table Heading */

.pangam-table th {
    background: #dcecff;
    color: #124b91;
}

/* Alternate Table Rows */

.pangam-table tbody tr:nth-child(even) {
    background: #f3f8fe;
}

/* Total Row */

.pangam-table tbody tr:last-child {
    background: #e0eefc;
    font-weight: 700;
}


/* ==========================================
   16. MODAL FOOTER
========================================== */

/* Motivational Message */

.pangam-message {
    text-align: center;

    color: #087b69;
    font-size: 13px;
    font-weight: 700;

    margin: 18px 0;
}

/* Academic Report Footer */

.pangam-footer {
    text-align: center;

    color: #68798a;
    font-size: 12px;

    margin: 0;
}


/* ==========================================
   17. RESPONSIVE - TABLET
   Max Width: 1100px
========================================== */

@media (max-width: 1100px) {

    .pangam-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* ==========================================
   18. RESPONSIVE - MOBILE
   Max Width: 700px
========================================== */

@media (max-width: 700px) {

    .pangam-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .pangam-card-top {
        min-height: 120px;
        padding: 15px 11px;
        gap: 8px;
    }

    .pangam-card-top strong {
        font-size: 18px;
        white-space: normal;
    }

    .pangam-card-bottom {
        padding: 18px 12px;
    }

    .pangam-stat-number {
        font-size: 26px;
    }

    .pangam-summary {
        grid-template-columns: 1fr;
    }

    .pangam-modal-body {
        padding: 14px;
    }

}


/* ==========================================
   19. RESPONSIVE - SMALL MOBILE
   Max Width: 420px
========================================== */

@media (max-width: 420px) {

    .pangam-grid {
        grid-template-columns: 1fr;
    }

}

