/* ============================================================
   AKTU One-View Student Result — result.css
   Flex-based, clean, responsive layout
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary:    #BB1438;   /* deep navy blue - #1a5276 */
  --color-accent:     #2e86c1;   /* link / highlight blue */
  --color-border:     #c8d6e0;
  --color-row-bg:     #fef0f0;   /* light rose – matches original */
  --color-row-border: #e8b4b8;
  --color-text:       #1a1a1a;
  --color-label:      #333;
  --color-muted:      #555;
  --color-footer-red: #c0392b;
  --color-white:      #ffffff;
  --color-bg:         #f4f6f8;

  --font-body:   'Segoe UI', Tahoma, Geneva, sans-serif;
  --font-hindi:  'Noto Sans Devanagari', 'Mangal', serif;
  --font-times: 'Times New Roman', serif;

  --radius:   4px;
  --shadow:   0 1px 4px rgba(0,0,0,0.10);
  --max-w:    1200px;
}

html {
  font-size: 14px;
  line-height: 1.5;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-text); }

/* ── Page Wrapper ── */
.page-wrapper {
  max-width: var(--max-w);
  margin: 20px auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#proceed_btn { cursor:pointer; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 2px solid var(--color-border);
  background: var(--color-white);
}

/* Logo images */
.header__logo-img {
  width: 80px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.header__logo-img--photo {
  width: 72px;
  border-radius: 2px;
}

/* Center text block */
.header__center {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.header__title-hi {
  font-family: var(--font-hindi);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.header__title-en {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 3px;
}

.header__formerly {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.header__oneview-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.section:last-of-type {
  border-bottom: none;
}

.section__heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}

/* ============================================================
   STUDENT CARD
   ============================================================ */
.student-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fafcfd;
}

/* Info occupies all available space */
.student-card__info {
  flex: 1;
  min-width: 0;
  padding: 16px;
  align-self: center;
}

/* Action column – print button */
.student-card__action {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  width:180px;
  flex-direction:column;
  border-left: 1px solid var(--color-border);
}

.student-card__action img { max-width:100%; height:auto; }

.heading-flex { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.heading-flex .student-card__action {}

/* Two-column info grid */
.info-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.info-col {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Each label : value row */
.info-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.85rem;
}

.info-label {
  font-weight: 700;
  color: var(--color-label);
  font-family: var(--font-times);
  letter-spacing: 0.5px;
  min-width: 140px;
  flex-shrink: 0;
  white-space: nowrap;
}

.info-sep {
  color: var(--color-muted);
  flex-shrink: 0;
}

.info-value {
  color: var(--color-text);
  word-break: break-word;
  text-transform: uppercase;
  font-family: Arial;
}

/* Print button */
.btn-print {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  white-space: nowrap;
}

.btn-print:hover {
  color: var(--color-primary);
}

/* ============================================================
   ONE VIEW RESULT LIST
   ============================================================ */
.result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Single result row */
.result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  background: var(--color-row-bg);
  border: 1px solid var(--color-row-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--color-text);
}

.result-row span {
  white-space: nowrap;
}

.result-row strong {
  font-weight: 700;
}

/* MOOCs row – slightly different */
.result-row--mooc {
  background: var(--color-row-bg);
  min-height: 48px;
  align-items: center;
}

.mooc-label {
  font-weight: 700;
  font-size: 0.85rem;
}

/* ============================================================
   FOOTER NOTE
   ============================================================ */
.page-footer {
  padding: 18px 24px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: var(--color-white);
}

.page-footer__note {
  font-size: 0.9rem;
  line-height: 1.7;
  
}

.info-col-istt { margin-bottom:6px; }

.result-list .result-row { gap:6px 10px; }
.result-row span {
    flex: 0 0 12.5%;
}
.result-row span:first-child {
    flex: 0 0 15.5%;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet: ≤ 768px */
@media (max-width: 768px) {
  .page-wrapper {
    margin: 10px;
    border-radius: 0;
  }

  .header {
    padding: 14px 16px;
    gap: 10px;
  }

  .header__title-hi  { font-size: 0.95rem; }
  .header__title-en  { font-size: 0.85rem; }
  .header__formerly  { font-size: 0.75rem; }

  .header__logo-img        { width: 56px; }
  .header__logo-img--photo { width: 52px; }

  .section { padding: 16px; }

  .student-card {
    flex-direction: column;
  }

  .student-card__action {
    width: 100%;
    justify-content: flex-end;
    padding-top: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
    margin-top: 4px;
  }

  .info-grid {
    flex-direction: column;
    gap: 4px;
  }

  .info-col {
    min-width: 0;
  }

  .info-label {
    min-width: 120px;
  }

  .result-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
  }

  .result-row span {
    white-space: normal;
  }
  
  .result-row span {
    flex: 0 0 50%;
    }
    .result-row span:first-child {
        flex: 0 0 50%;
    }
}

/* Mobile: ≤ 480px */
@media (max-width: 480px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header__logo-left,
  .header__logo-right {
    display: none; /* hide logos on very small screens if needed */
  }

  .info-row {
    flex-wrap: wrap;
  }

  .info-label {
    min-width: unset;
    width: 100%;
  }

  .info-sep {
    display: none;
  }

   /*.info-value {
   padding-left: 8px;
  }*/
  .info-col-istt { margin-bottom:15px; }
  .info-col { gap:15px; }

  .section__heading {
    font-size: 0.92rem;
  }
  
  .result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}


/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  body        { background: white; }
  .page-wrapper {
    box-shadow: none;
    border: none;
    margin: 0;
  }
  .btn-print  { display: none; }
  .result-row {
    display: block!important;
  }
  .result-row span, .result-row span:first-child {
    margin-right:20px;
    }
	.student-card__action { display:none; }
}
