body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f4f6f8;
}

.header {
  text-align: center;
  padding: 40px 20px 25px;
}

.header h1 {
  font-size: 42px;
  font-weight: 900;
  color: #064e3b;
  letter-spacing: 1.5px;
}

.header p {
  font-size: 18px;
  color: #065f46;
  margin-top: 8px;
}
}

.page-title {
  text-align: center;
  margin: 20px 0;
}

.class-grid,
.student-grid {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.class-card,
.student-card {
  padding: 15px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-card a {
  text-decoration: none;
  background: #1e40af;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
}

.student-card a:hover {
  background: #1d4ed8;
}

.class-card:hover {
  background: #1e3a8a;
  color: #ffffff;
  transform: translateY(-3px);

}

.print-box {
  text-align: center;
  margin: 15px;
}

.print-box 
button:hover {
  background: #1e40af;
}


.marks-table {
  width: 80%;
  margin: auto;
  border-collapse: collapse;
}

.marks-table th,
.marks-table td {
  border: 1px solid #333;
  padding: 10px;
  text-align: center;
}

.marks-table th {
  background: #1e40af;
  color: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* TABLE HEADER */
thead th {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #fff;
  font-weight: 600;
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
}

/* SUBJECT COLUMN */
td.subject {
  font-weight: 600;
  background: #f1f5ff;
  text-align: left;
  padding-left: 14px;
}

/* TABLE BODY */
tbody td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

/* ZEBRA STRIPES */
tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

/* HOVER EFFECT (SCREEN ONLY) */
tbody tr:hover {
  background-color: #eef2ff;
}

/* ===================== */
/* PRINT SETTINGS */
/* ===================== */

@page {
  size: A4 landscape;
  margin: 15mm;
}

@media print {
  body {
    margin: 0;
    padding: 0;
  }

  /* hide buttons */
  button, .no-print {
    display: none !important;
  }

  /* allow full page printing */
  .container,
  .marksheet,
  table {
    height: auto !important;
    overflow: visible !important;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    page-break-inside: avoid;
  }

  th, td {
    border: 1px solid #000;
    padding: 6px;
    font-size: 12px;
  }

  h1, h2, h3 {
    text-align: center;
  }
}
  /* Force colors */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
/* SCHOOL HEADER */
.school-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  border-bottom: 2px solid #1e3a8a;
  padding-bottom: 10px;
}

.school-logo {
  width: 80px;
  height: auto;
}

.school-title h1 {
  margin: 0;
  font-size: 26px;
  color: #1e3a8a;
}

.school-title p {
  margin: 0;
  font-size: 14px;
  color: #444;
}

/* TEXT WATERMARK */
.text-watermark {
  text-align: center;
  line-height: 1.2;
}
position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 70px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

}
@media print {
  .text-watermark {
    color: rgba(0, 0, 0, 0.06);
  }

  button {
    display: none;
  }
}
.exam-name {
  margin: 6px 0 10px;
  padding: 4px 12px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* HEADER CARD */
.marksheet-header {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(30,58,138,.35);
  margin-bottom: 25px;
}
.school-header {
  background: linear-gradient(135deg, #e6fbf7, #f0fffc);
  padding: 30px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.school-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.school-logo {
  width: 72px;
  height: 72px;
  background: #ffffff;
  padding: 10px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.school-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.school-text h1 {
  font-size: 60px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1.2px;
}

.affiliation {
  font-size: 30px;
  opacity: 0.8;
}

.exam-badge {
  margin-top: 6px;
  margin-left: 6px;
  background: #1e40af;
  color: #fff;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 30px;
  width: fit-content;
}
.student-info {
  margin-top: 14px;
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}
/* PRINT BUTTON (ICON ONLY) */
.print-btn {
  background: #2563eb;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.print-btn img {
  width: 24px;
  height: 24px;
  filter: invert(1); /* makes icon white */
}

.print-btn:hover {
  background: #1e40af;
  transform: scale(1.05);
}
.print-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}
/* RESET */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f4f6fb;
  color: #111827;
}


/* MAIN SECTION */
.class-container {
  max-width: 1100px;
  margin: Auto;
  background: white;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 25px 40px rgba(0,0,0,0.12);
}

.class-container h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 30px;
  background:green ;
  padding: Auto;
  border-radius: Auto;
  box-shadow: 0 25px 40px rgba(0,0,0,0.12);
  color: orange;
  
}

/* CLASS GRID */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}

/* CLASS CARD */
.class-card {
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(6, 78, 59, 0.18);
  transition: all 0.3s ease;
  border-top: 6px solid #10b981;
}


/* HOVER EFFECT */
.class-card:hover {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 20px 40px rgba(37,99,235,0.45);
}
@media (max-width: 600px) {
  .hero h1 {
    font-size: 30px;
  }

  .class-container {
    margin: -20px 10px 20px;
    padding: 25px;
  }
}
/* BANNER IMAGE */
.banner {
  width: 100%;
  height: Auto;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: Auto;
  object-fit: Auto;   /* keeps banner attractive */
  display: block;
}

/* MOBILE FRIENDLY */
@media (max-width: 100%) {
  .banner {
    height: Auto;
  }
}
/* MAIN SECTION TITLES */
.section-title {
  width: 100%;
  text-align: center;
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  padding: 14px 20px;
  margin: 25px auto 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #14532d, #0ea5e9);
  box-shadow: 0 14px 32px rgba(15, 61, 46, 0.45);
}

/* SUB TITLE */
.section-subtitle {
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  padding: 14px 20px;
  margin: 25px auto 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #22d3ee);

  box-shadow: 0 14px 32px rgba(15, 61, 46, 0.45);
}
.class-panel {
  background: rgba(255,255,255,0.75);
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
}
.page-title {
  font-size: 100px;
  font-weight: 900;
  color: #064e3b;
  margin: 30px 40px 20px;
}
.students-container {
  max-width: 2500px;
  margin: auto;
  padding: 20px 40px 50px;
  display: grid;
  grid-template-rows: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.student-card {
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #064e3b;
  box-shadow: 0 6px 18px rgba(6, 78, 59, 0.18);
  border-left: 5px solid #10b981;
  cursor: pointer;
  transition: all 0.25s ease;
}
.student-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: linear-gradient(135deg, #10b981, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
}
.student-card span {
  font-weight: 800;
  margin-right: 6px;
}
.school-header {
  text-align: center;
  padding: 35px 20px 28px;
  background: linear-gradient(135deg, #064e3b, #10b981);
  border-radius: 0 0 30px 30px;
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.45);
}
.school-name {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: 1.6px;
}
.class-name {
  font-size: 22px;
  font-weight: 700;
  color: #ecfdf5;
  margin-top: 8px;
  letter-spacing: 1px;
}
.school-header::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: #ffffff;
  margin: 14px auto 0;
  border-radius: 6px;
}
.breadcrumb {
  max-width: 1200px;
  margin: 15px auto 10px;
  padding: 0 40px;
  font-size: 14px;
  font-weight: 600;
  color: #065f46;
}

.breadcrumb a {
  text-decoration: none;
  color: #10b981;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
}
@media print {
  .breadcrumb {
    display: none;
  }
}
