@import url('../components/variables.php');


.results-header-section {
  background: url('../images/result-banner.png') no-repeat center center/cover;
  position: relative;
  background-blend-mode: overlay;
  min-height: 90vh;
  background-color: rgba(0, 0, 0, 0.750);
  padding: 80px 0;
}

.results-header-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.results-header-section .container {
  position: relative;
  z-index: 2;
}

.success-quote {
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-search-section h2 {
  color: var(--main-blue) !important;
}

.result-search-section .btn {
  background-color: var(--main-blue);
  border: none;
  color: var(--white);
}

.result-search-section option.btn:hover {
  background-color: var(--hover-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.result-display-section {
  background-color: #f8f9fc;
}

.result-display-section .card {
  border: none;
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease;
}

.result-display-section .card:hover {
  transform: translateY(-5px);
}

.result-display-section .card-body h5,
.result-display-section .card-body h6 {
  color: var(--main-blue);
}

.result-display-section .table {
  border-radius: 10px;
  overflow: hidden;
}

.result-display-section .table th {
  background-color: var(--main-blue);
  color: var(--white);
  text-align: center;
  font-weight: 600;
}

.result-display-section .table td {
  text-align: center;
  vertical-align: middle;
}

.result-display-section p {
  margin-bottom: 8px;
  font-size: 16px;
}

.btn-primary-custom,
.btn-outline-primary-custom {
  padding: 10px 28px;
  font-size: 16px;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
}

.btn-primary-custom {
  background-color: var(--white);
  color: var(--main-blue);
  border: none;
  font-weight: 600;
}

.btn-primary-custom:hover {
  background-color: #2563EB;
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.4);
}

.btn-outline-primary-custom {
  color: var(--main-blue);
  border: 2px solid var(--white);
  background-color: transparent;
  font-weight: 600;
}

.btn-outline-primary-custom:hover {
  background-color: var(--white);
  color: var(--main-blue);
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.3);
}


/* Top Performer Card */
.topper-card {
    background: linear-gradient(135deg, #ffffff, #f4f8ff);
    border-radius: 18px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topper-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Trophy Badge */
.topper-badge {
    width: 60px;
    height: 60px;
    background: var(--light-blue-bg);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Percentage Circle */
.percentage-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-blue), var(--light-blue-bg));
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.text-main-blue {
  color: var(--main-blue) !important;
}

.bg-main-blue {
  background-color: var(--main-blue);
}

.accordion-button {
  background-color: #f8f9fa;
  color: var(--main-blue);
  font-weight: 600;
}

.accordion-button:focus {
  box-shadow: none;
  outline: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--main-blue);
  color: var(--white);
}

.bg-light-blue {
  background-color: var(--main-blue);
}

.text-white {
  color: var(--white);
}

/* ===========================
   TRANSCRIPT PRINT STYLES
   =========================== */

.print-transcript {
    padding: 20px;
}

.transcript-wrapper {
    max-width: 800px;
    margin: auto;
}

.transcript-card {
    border: 3px solid var(--main-blue);
    box-shadow: none;
}

.transcript-title {
    color: var(--main-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.transcript-info,
.transcript-marks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    font-size: 15px;
}

.transcript-info p span,
.transcript-marks p span {
    font-weight: 600;
    color: #333;
}

.transcript-divider {
    border-top: 2px solid var(--main-blue);
    margin: 15px 0;
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }
}

/* ===============================
   SCHOOL HEADER (PRINT ONLY)
   =============================== */

.print-header {
    display: none;
    text-align: center;
    margin-bottom: 15px;
}

.print-school-logo {
    max-height: 80px;
    margin-bottom: 5px;
}

.print-school-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SHOW ONLY IN PRINT */
@media print {
    .print-header {
        display: block;
    }
}