/* ==========================================================================
   Exact Clone of https://support.gandhinagaruni.ac.in/UniExamResult/
   Pure CSS3 (no frameworks) matching computed layout, typography, & colors
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  font-family: sans-serif;
  line-height: 1.15;
  background-color: #F3F3F3;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #1D3459;
  background-color: #F3F3F3;
}

a {
  color: #1E468B;
  text-decoration: none;
  font-size: 11.5pt;
  font-weight: bold;
  transition: 0.5s color ease;
}

a:hover {
  color: #D1AF57;
}

img {
  border: 0;
  vertical-align: middle;
}

label {
  display: inline-block;
  margin-bottom: 0;
  font-weight: 400;
  color: inherit;
  cursor: default;
}

/* ---------- Page Container & Card ---------- */

.PageContentinner {
  padding: 0 8px;
  white-space: normal;
}

.form-group {
  margin-bottom: 21px;
}

.box-shadow-2 {
  box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.card {
  position: relative;
  display: block;
  margin-bottom: 26.25px;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 14px 21px;
  margin-bottom: 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #EEEEEE;
}

.card-block {
  padding: 21px;
}

.card-block::after,
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Grid System (Matches Original 12-Column Layout) ---------- */

.row {
  margin-right: -13.125px;
  margin-left: -13.125px;
  margin-bottom: 5px;
}

.col-md-1,
.col-md-3,
.col-md-7,
.col-sm-2,
.col-sm-4,
.col-sm-12 {
  position: relative;
  min-height: 1px;
  padding-right: 14px;
  padding-left: 14px;
}

.col-sm-12 {
  float: left;
  width: 100%;
}

@media (min-width: 544px) {
  .col-sm-2 {
    float: left;
    width: 16.666667%;
  }

  .col-sm-4 {
    float: left;
    width: 33.333333%;
  }
}

@media (min-width: 768px) {
  .col-md-1 {
    float: left;
    width: 8.333333%;
  }

  .col-md-3 {
    float: left;
    width: 25%;
  }

  .col-md-7 {
    float: left;
    width: 58.333333%;
  }
}

/* ---------- Header ---------- */

.header-row {
  padding-bottom: 0;
}

.logo-link {
  display: inline-block;
  line-height: 1;
}

.uni-title {
  width: 70%;
  color: #1D3459;
  margin: 0 0 7px auto;
  font-size: 35px;
  font-weight: 700;
  line-height: 1.2;
}

.uni-subtitle {
  font-size: 9px;
  width: 76%;
  margin-top: 16px;
  color: #1D3459;
  font-weight: 700;
  line-height: 1.45;
}

.HeaderDiv {
  border-bottom: 2px solid #D1AF57;
  margin-left: 5px;
}

/* ---------- Form Controls ---------- */

.plain-select {
  font-family: "Open Sans", sans-serif;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  width: 100%;
  font-size: 14px;
}

.plain-select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  border: 1px solid #C8C8C8;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
  color: #000000;
  background-color: #FFFFFF;
  padding: 5px;
  margin: 0;
  line-height: normal;
  cursor: pointer;
}

.plain-select::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 8px;
  top: 50%;
  margin-top: -3px;
  height: 0;
  width: 0;
  border-top: 6px solid #808080;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  pointer-events: none;
}

.form-control {
  display: block;
  width: 100%;
  padding: 7px 10.5px;
  font-family: inherit;
  font-size: 14px;
  line-height: 17.5px;
  color: #5A5A5A;
  background-color: #FFFFFF;
  background-image: none;
  background-clip: padding-box;
  border: 1px solid #D4D4D4;
  border-radius: 2.52px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #55595C;
  background-color: #FFFFFF;
  border-color: #66AFE9;
  outline: none;
}

.form-control::placeholder {
  color: #999999;
  opacity: 1;
}

/* ---------- Submit Button ---------- */

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  line-height: 17.5px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 7px 14px;
  font-size: 14px;
  border-radius: 2.52px;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  color: #FFFFFF;
  background-color: #1D3459;
  border-color: #1D3459;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #FFFFFF;
  background-color: #1D3459;
  border-color: #1D3459;
  outline: none;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ---------- Status / Validation Feedback ---------- */

.result-status {
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #C8D6EA;
  background-color: #F2F6FC;
  color: #1D3459;
  border-radius: 2px;
}

.result-status.is-error {
  border-color: #E6B8B8;
  background-color: #FDF2F2;
  color: #A94442;
}

/* ---------- Same-Page Result Display (Scoped to #resultSection) ---------- */

#tdlistStudent[hidden] {
  display: none;
}

#resultSection {
  margin-top: 0;
  text-align: left;
  width: 100%;
}

#resultSection[hidden] {
  display: none;
}

#resultSection .result-wrapper {
  width: 100%;
  background-color: #F3F3F3;
}

#resultSection .result-header-row {
  display: block;
  padding: 21px 21px 0 33px;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 4px;
  overflow: hidden;
  background-color: #F3F3F3;
}

#resultSection .result-header-logo {
  float: left;
  width: 23%;
}

#resultSection .result-header-logo img {
  height: 70px;
  width: 200px;
  max-width: 100%;
  object-fit: contain;
  border-width: 0;
  display: block;
}

#resultSection .result-header-titles {
  float: left;
  width: auto;
  text-align: center;
  color: #1D3459;
  padding-left: 48px;
  line-height: 1.35;
}

#resultSection .result-uni-name {
  font-size: 17px;
  font-weight: 700;
}

#resultSection .result-sem-grade {
  font-size: 16px;
  font-weight: 700;
}

#resultSection .result-faculty-name {
  font-size: 14px;
  font-weight: 700;
}

#resultSection .result-header-act {
  font-size: 10px;
  text-align: right;
  width: 76%;
  margin-top: 35px;
  color: #1D3459;
  font-weight: 700;
  line-height: 1.4;
}

#resultSection .result-body {
  background: #FFFFFF;
}

#resultSection .result-body-inner {
  padding: 21px;
}

#resultSection td,
#resultSection th {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
  text-align: left;
  border: 1px solid #000000;
  color: #373A3C;
}

#resultSection th {
  text-align: center;
  background-color: #E8F0F6;
  padding: 1px 4px;
  white-space: nowrap;
}

#resultSection .Newtd {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 8.5pt;
  font-weight: bold;
  text-align: left;
  border: 1px solid #FFFFFF;
  padding: 2px;
  color: #373A3C;
}

#resultSection .GrdCel {
  text-align: center;
  padding: 1px 4px;
}

#resultSection .PedagogyCel {
  text-align: left;
}

#resultSection .cellClass {
  border-bottom-color: #FFFFFF;
}

#resultSection .result-info-table {
  margin-left: 15px;
  margin-right: 50px;
  border: none;
  border-collapse: collapse;
  width: 82%;
}

#resultSection .result-course-table {
  border: 2px solid #000000;
  border-collapse: collapse;
  margin-left: 15px;
  margin-right: 50px;
  width: 78%;
}

#resultSection .result-course-table tr.course-header-row {
  border: 3px solid #000000;
}

#resultSection .result-course-inner {
  width: 100%;
  border-collapse: collapse;
}

#resultSection .result-course-inner td {
  padding: 1px 2px;
}

#resultSection .result-course-inner td:nth-child(1) {
  width: 15%;
}

#resultSection .result-course-inner td:nth-child(2) {
  width: 70%;
}

#resultSection .result-course-inner td:nth-child(3) {
  width: 15%;
  text-align: left;
}

#resultSection .result-perf-table {
  border: 1px solid #000000;
  border-collapse: collapse;
  margin-left: 15px;
  margin-right: 50px;
  width: 78%;
}

#resultSection .result-perf-table td {
  padding: 3px;
  text-align: center;
}

#resultSection .result-perf-header {
  background-color: #E8F0F6;
}

#resultSection .result-perf-label {
  background-color: #FFFFFF;
}

#resultSection .result-photo-table {
  margin-left: 15px;
  border: 0;
  border-collapse: collapse;
}

#resultSection .result-photo-table td {
  border: 0;
  padding: 2px 0;
}

#resultSection .result-student-photo {
  display: block;
  height: 100px;
  width: 100px;
  object-fit: contain;
  border: 0;
}

#resultSection .result-notif-table {
  margin-left: 15px;
  margin-right: 50px;
  width: 78%;
  border-collapse: collapse;
}

#resultSection .result-notif-center {
  text-align: center;
  white-space: nowrap;
}

#resultSection .result-notif-right {
  text-align: right;
  white-space: nowrap;
}

#resultSection .result-note-wrap {
  padding: 18px 0 12px 0;
  text-align: left;
  background-color: #F3F3F3;
}

#resultSection .noteStyle {
  margin-left: 15px;
  margin-right: 50px;
  width: 78%;
  border-collapse: collapse;
}

#resultSection .noteStyle td {
  font-weight: normal;
  border: none;
  padding: 1px 0;
  color: #373A3C;
}

#resultSection .note-heading {
  font-size: 15px;
  font-weight: 600;
  color: #373A3C;
}

#resultSection .note-link-num {
  font-size: 11.5pt;
  font-weight: bold;
  color: #373A3C;
}

#resultSection .note-link {
  text-decoration: underline;
  color: #0000EE;
  font-size: 11.5pt;
  font-weight: bold;
  cursor: pointer;
}

#resultSection .note-link:hover {
  color: #D1AF57;
}

#resultSection .result-back-cell {
  text-align: right;
  padding-top: 8px;
}

#resultSection .result-back-btn {
  display: inline-block;
  background: none;
  border: none;
  color: #1E468B;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
}

#resultSection .result-back-btn:hover {
  color: #D1AF57;
}

