/* ITE Zie Pastpaper Modern Styles */
.izp-front-upload {
  max-width: 960px;
  margin: 5px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.izp-front-upload h2 {
    color: #283c74;
    margin-bottom: 15px;
    font-size: 20px;
    border-left: 4px solid #283c74;
    padding-left: 10px;
}

.izp-front-upload form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.izp-front-upload form p {
  margin: 0;
}

.izp-front-upload form label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.izp-front-upload form input[type="text"],
.izp-front-upload form select,
.izp-front-upload form input[type="file"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccd1d9;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: border 0.3s;
}

.izp-front-upload form input:focus,
.izp-front-upload form select:focus {
  border-color: #0077c2;
  outline: none;
}

.izp-front-upload form p:nth-of-type(4),
.izp-front-upload form p.submit {
  grid-column: 1 / -1;
}

.izp-front-upload form p.submit {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.izp-front-upload .button-primary {
  background-color: #0077c2;
  border: none;
  color: #fff;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.izp-front-upload .button-primary:hover {
  background-color: #005fa3;
}

.izp-front-upload .button {
  background-color: #888;
  border: none;
  color: #fff;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.izp-front-upload .button:hover {
  background-color: #666;
}

.izp-front-upload .notice {
  grid-column: 1 / -1;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-left: 6px solid;
  border-radius: 6px;
  font-size: 1rem;
}

.izp-front-upload .notice-success {
  background-color: #e6f9ed;
  border-color: #3c9c4c;
  color: #2d7035;
}

.izp-front-upload .notice-error {
  background-color: #fce7e7;
  border-color: #d32f2f;
  color: #7b1c1c;
}

/* Table styles */
.izp-front-upload .table-container {
  overflow-x: auto;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.izp-front-upload .table-container table.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background-color: #ffffff;
}

.izp-front-upload .table-container table.wp-list-table thead th {
  position: sticky;
  top: 0;
  background-color: #f1f5f9;
  color: #1a1a1a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95em;
  padding: 14px 12px;
  border-bottom: 2px solid #e5e5e5;
  z-index: 2;
}

.izp-front-upload .table-container table.wp-list-table th,
.izp-front-upload .table-container table.wp-list-table td {
  padding: 12px 12px;
  border: 1px solid #e5e5e5;
  font-size: 0. ninetyem; /* roughly 0.9em */
  color: #333;
}

.izp-front-upload .table-container table.wp-list-table tbody tr:nth-of-type(even) {
  background-color: #fafbfc;
}

.izp-front-upload .table-container table.wp-list-table tbody tr:hover {
  background-color: #f2f6fa;
  transition: background 0.2s ease-in-out;
}

.izp-front-upload .table-container table.wp-list-table a {
  color: #0077c2;
  text-decoration: none;
  font-weight: 500;
}

.izp-front-upload .table-container table.wp-list-table a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .izp-front-upload .table-container table.wp-list-table th,
  .izp-front-upload .table-container table.wp-list-table td {
    padding: 10px 8px;
    font-size: 0. ninetyem;
  }
}

.izp-front-upload .table-container table.wp-list-table td:nth-last-child(1) {
  text-align: center;
}

.izp-front-upload .table-container table.wp-list-table caption {
  caption-side: bottom;
  font-size: 0. eightem;
  color: #666;
  margin-top: 8px;
}


/* Centers the .izp-notice-wrap both vertically and horizontally */
.izp-notice-wrap {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Optional styling for visibility */
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}


/*────────────────────────────────────────────────────────────────────────
  Notice Styles: Success and Error
────────────────────────────────────────────────────────────────────────*/

/* Base notice container */
.izp-notice-wrap .notice {
  max-width: 960px;
  margin: 20px auto;
  padding: 16px 20px;
  border-left: 6px solid transparent;
  border-radius: 6px;
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Success Notice */
.izp-notice-wrap .notice.notice-success {
  background-color: #e6f9ed;
  border-color: #3c9c4c;
  color: #2d7035;
}

.izp-notice-wrap .notice.notice-success::before {
  content: "✔";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #3c9c4c;
}

/* Error Notice */
.izp-notice-wrap .notice.notice-error {
  background-color: #fce7e7;
  border-color: #d32f2f;
  color: #7b1c1c;
}

.izp-notice-wrap .notice.notice-error::before {
  content: "✖";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #d32f2f;
}

/* Notice text and padding adjustment */
.izp-notice-wrap .notice p {
  margin: 0;
  padding-left: 28px; /* make room for the icon */
  line-height: 1.5;
}


/* You already have .notice-success / .notice-error styling.
   If not, ensure these exist or adjust colors as needed. */

/* ─────────────────────────────────────────────────────────────────────
   LOADING OVERLAY & SPINNER
   ───────────────────────────────────────────────────────────────────── */
/* Container covers the entire form */
#izp-loading-overlay {
    display: none; /* hidden until form submit */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Spinner (simple CSS) */
#izp-loading-overlay .izp-loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #ccc;
    border-top-color: #0077c2;
    border-radius: 50%;
    animation: izp-spin 1s linear infinite;
}

@keyframes izp-spin {
    to { transform: rotate(360deg); }
}

/* Position the overlay relative to .izp-front-upload */
.izp-front-upload {
    position: relative;
}

/* ─────────────────────────────────────────────────────────────────────
   OPTIONAL: Style for disabled submit button
   ───────────────────────────────────────────────────────────────────── */
#izp-submit-btn:disabled {
    background-color: #cccccc !important;
    border-color: #bbbbbb !important;
    color: #666666 !important;
}
.section-divider {
  border-top: 2px solid #ccc;
  margin: 40px 0 20px;
}






.izp-public-classes {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
    font-family: "Segoe UI", Roboto, sans-serif;

}

.izp-public-classes h2 {
    color: #283c74;
    margin-bottom: 15px;
    font-size: 20px;
    border-left: 4px solid #283c74;
    padding-left: 10px;
}

.izp-public-classes form p {
    margin-bottom: 20px;
}

.izp-public-classes input[type="text"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 400px;
    font-size: 16px;
}

.izp-public-classes .button-primary {
    background: #283c74;
    border-color: #283c74;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 6px;
}

.izp-public-classes .button {
    padding: 8px 16px;
    font-size: 14px;
    margin-right: 8px;
    border-radius: 6px;
}

.izp-public-classes .button-danger {
    background: #d63638;
    color: #fff;
    border-color: #b32d2e;
}

.izp-notice {
    padding: 10px 15px;
    margin: 20px 0;
    border-left: 4px solid #46b450;
    background-color: #f0fdf4;
    color: #1a472a;
    border-radius: 5px;
}

.izp-class-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.izp-class-table th,
.izp-class-table td {
    padding: 12px;
    border: 1px solid #eee;
    text-align: left;
}

.izp-class-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.izp-class-table tr:hover {
    background-color: #f1f6ff;
}

.section-divider {
    height: 1px;
    background: #ddd;
    margin: 30px 0;
}







.izp-public-subjects {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
    font-family: "Segoe UI", Roboto, sans-serif;
}

.izp-public-subjects h2 {
    color: #283c74;
    margin-bottom: 15px;
    font-size: 20px;
    border-left: 4px solid #283c74;
    padding-left: 10px;
}

.izp-public-subjects form p {
  margin-bottom: 15px;
}

.izp-public-subjects form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.izp-public-subjects form input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.izp-public-subjects .button-primary,
.izp-public-subjects .button {
  padding: 8px 16px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 8px;
}

.izp-public-subjects .button-primary {
  background-color: #0077c2;
  border: 1px solid #005fa3;
  color: #fff;
}

.izp-public-subjects .button {
  background-color: #aaa;
  border: 1px solid #888;
  color: #fff;
}

.izp-public-subjects .notice-success,
.izp-public-subjects .notice-error {
  padding: 12px;
  margin-bottom: 20px;
  border-left: 4px solid;
  border-radius: 4px;
}

.izp-public-subjects .notice-success {
  background: #e6f9ed;
  border-color: #46a74b;
}

.izp-public-subjects .notice-error {
  background: #fbeaea;
  border-color: #d32f2f;
}

.izp-public-subjects .izp-subject-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.izp-public-subjects .izp-subject-table th {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.izp-public-subjects .izp-subject-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.izp-public-subjects .button-danger {
  background-color: #d9534f;
  color: #fff;
  border: none;
}

@media (max-width: 600px) {
  .izp-public-subjects .izp-subject-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.izp-subject-table td, 
.izp-subject-table th {
    padding: 10px;
    border: 1px solid #ddd;
}








/* Container */
.izp-browse-classes,
.izp-browse-subjects {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.izp-browse-classes li,
.izp-browse-subjects li {
  margin-bottom: 10px;
}

.izp-browse-classes a,
.izp-browse-subjects a {
  display: inline-block;
  background: #d0ebff;
  color: #0077c2;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 600;
}

.izp-browse-classes a:hover,
.izp-browse-subjects a:hover {
  background: #b3defa;
}

/* Table of pastpapers */
.izp-browse-papers th {
  background: #f7f7f7;
  font-weight: 600;
}

.izp-browse-papers th,
.izp-browse-papers td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.izp-browse-papers tr:nth-child(even) {
  background: #fcfcfc;
}

.izp-browse-papers a {
  color: #0077c2;
  text-decoration: none;
}

.izp-browse-papers a:hover {
  text-decoration: underline;
}

/* Back links */
.izp-browse-classes + p,
.izp-browse-subjects + p,
.izp-browse-papers + p {
  margin-bottom: 15px;
}

.izp-browse-classes p a,
.izp-browse-subjects p a,
.izp-browse-papers p a {
  color: #555;
  font-size: 0.95em;
  text-decoration: none;
}

.izp-browse-classes p a:hover,
.izp-browse-subjects p a:hover,
.izp-browse-papers p a:hover {
  text-decoration: underline;
}

/* Responsive table scroll */
@media (max-width: 600px) {
  .izp-browse-papers {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}










@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");

.izp-class-list {
  list-style: none;
  counter-reset: list;
  padding: 0 1rem;
  font-family: Montserrat, sans-serif;
}

.izp-class-list li {
  --stop: calc(100% / var(--length) * var(--i));
  --l: 62%;
  --l2: 88%;
  --h: calc((var(--i) - 1) * (180 / var(--length)));
  --c1: hsl(var(--h), 71%, var(--l));
  --c2: hsl(var(--h), 71%, var(--l2));
  
  position: relative;
  counter-increment: list;
  max-width: 45rem;
  margin: 2rem auto;
  padding: 2rem 1rem 1rem;
  box-shadow: 0.1rem 0.1rem 1.5rem rgba(0, 0, 0, 0.3);
  border-radius: 0.25rem;
  overflow: hidden;
  background-color: white;
}

.izp-class-list li::before {
  content: '';
  display: block;
  width: 100%;
  height: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to right, var(--c1) var(--stop), var(--c2) var(--stop));
}

.izp-class-list h3 {
  display: flex;
  align-items: baseline;
  margin: 0 0 1rem;
  color: rgb(70,70,70);
}

.izp-class-list h3::before {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 1rem;
  width: 3rem;
  height: 3rem;
  content: counter(list);
  padding: 1rem;
  border-radius: 50%;
  background-color: var(--c1);
  color: white;
}

.izp-class-list h3 a {
  text-decoration: none;
  color: inherit;
}

.izp-class-list p {
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 40em) {
  .izp-class-list li {
    margin: 3rem auto;
    padding: 3rem 2rem 2rem;
  }
  
  .izp-class-list h3 {
    font-size: 2.25rem;
    margin: 0 0 2rem;
  }
  
  .izp-class-list h3::before {
    margin-right: 1.5rem;
  }
}
/* Turn the list into a CSS grid */
.izp-class-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* On small screens (≤ 600px), switch to a single column */
@media (max-width: 600px) {
  .izp-class-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Adjust max-width so two cards fit nicely */
.izp-class-list li {
  max-width: none; /* let grid handle width */
}




/* Container for your numbered class cards */
.izp-class-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 600px) {
  .izp-class-list {
    grid-template-columns: 1fr;
  }
}

/* Each class “card” */
.izp-class-list li {
  --stop: calc(100% / var(--length) * var(--i));
  --l: 62%;
  --l2: 88%;
  --h: calc((var(--i) - 1) * (180 / var(--length)));
  --c1: hsl(var(--h), 71%, var(--l));
  --c2: hsl(var(--h), 71%, var(--l2));
  position: relative;
  counter-increment: list;
  padding: 2rem 1rem 1rem;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
}

/* Top gradient bar */
.izp-class-list li::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0.5rem;
  background: linear-gradient(to right, var(--c1) var(--stop), var(--c2) var(--stop));
}

/* Class title */
.izp-class-list h3 {
  display: flex;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #333;
}

/* Number bubble */
.izp-class-list h3::before {
  content: counter(list);
  counter-reset: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.75rem;
  border-radius: 50%;
  background: var(--c1);
  color: white;
  font-weight: 700;
}

/* Title link */
.izp-class-list h3 a {
  text-decoration: none;
  color: inherit;
}

/* Intro / subjects paragraph */
.izp-class-list li p {
  margin: 1rem 0 0;
  line-height: 1.5;
  font-size: 0.95rem;
  color: #555;
}

/* Inline subject links container */
.izp-class-list li p a {
  color: #0077c2;
  text-decoration: none;
  margin-right: 0.5rem;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.izp-class-list li p a:hover {
  background: rgba(0,119,194,0.1);
}

/* Ensure final punctuation is neutral */
.izp-class-list li p a:last-of-type {
  margin-right: 0;
}

/* “Back” link */
.izp-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: #0077c2;
  font-size: 0.9rem;
  text-decoration: none;
}
.izp-back:hover {
  text-decoration: underline;
}

/* Subjects grid (step 2) */
.izp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}
.izp-card {
  flex: 1 1 160px;
  max-width: 200px;
  background: #f8faff;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  border: 1px solid #e0eafc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.izp-card:hover {
  transform: translateY(-3px);
}
.izp-card a {
  text-decoration: none;
  color: #0057a4;
  font-weight: 600;
}

/* Pastpapers table */
.izp-browse-papers {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.izp-browse-papers th,
.izp-browse-papers td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}
.izp-browse-papers th {
  background: #f0f8ff;
  font-weight: 600;
}
.izp-browse-papers tr:nth-child(even) {
  background: #fcfcfc;
}
.izp-browse-papers a {
  color: #0077c2;
  text-decoration: none;
}
.izp-browse-papers a:hover {
  text-decoration: underline;
}


.izp-papers-grid {
  column-count: 3;
  column-gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .izp-papers-grid { column-count: 2; }
}
@media (max-width: 480px) {
  .izp-papers-grid { column-count: 1; }
}

.izp-card-paper {
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.izp-card-paper:hover {
  transform: translateY(-3px);
}

.izp-card-paper a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: #0057a4;
  font-weight: 600;
}






/* Modal container   //pdf displaying pp*/
.izp-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

/* Modal content */
.izp-modal-content {
  position: fixed;
  top: 1vh;
  left: 2.5vw;
  width: 95vw;
  height: 150vh;
  margin: 0;
  padding: 0;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  overflow: hidden;
  max-width: none;    /* remove any max-width constraint */
}


/* Close button */
.izp-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.izp-close:hover,
.izp-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive iframe */
.izp-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}





#izp-search-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.2s;
}

#izp-search-input:focus {
  border-color: #0077c2;
  outline: none;
  box-shadow: 0 0 3px rgba(0,119,194,0.5);
}




