/* ============================================================
   Exam Circulars & Notifications — Production Stylesheet
   © 2025 VTU Circle | https://vtucircle.com | MIT License
   ============================================================ */

#post-8537 h1 {
  background: repeating-linear-gradient(33deg, #000000 0 0, #2d2c2c 21px 25px);
  color: #fff;
  text-align: center;
  font-size: 25px;
  padding: 8px;
  border-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow:
    rgb(50 50 105 / 0.15) 0 2px 5px 0,
    rgb(0 0 0 / 0.05) 0 1px 1px 0;
}

@media (max-width: 380px) {
   #post-8537 h1  {
        font-size: 21px;
    }
}


/* ---------- Root Variables ---------- */
:root {
  --exam-primary: #6200ee;
  --exam-primary-light: #7b5cff;
  --exam-bg: #ffffff;
  --exam-bg-alt: #f6f6fa;
  --exam-text: #333333;
  --exam-border: #e0e0e0;
  --exam-radius: 10px;
  --exam-transition: all 0.25s ease;
}

/* ---------- Filters ---------- */
.exam-filters {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.exam-filters select {
  appearance: none;
  background: #fff;
  border: 1.5px solid #d4d7dc;
  border-radius: 8px;
  padding: 10px 30px 12px 15px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjNjY2IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZD0iTTUuNTE2IDcuNTQ4TDEwIDEyLjAzMmwyLjQ4NC00LjQ4NEwxNiA4LjA2M2wtNiA2LTYtNnoiLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 22px;
}

.exam-filters select:focus {
  outline: none;
  border-color: var(--exam-primary);
  box-shadow: 0 0 0 3px #6200ee1c;
}

.exam-filters select:hover {
  border-color: var(--exam-primary);
  box-shadow: 0 0 0 3px #6200ee1c;
}

/* ---------- Cards ---------- */
.exam-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--exam-bg);
  border-radius: 7px;
  padding: 0.9rem 1rem;
  box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px,
              rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
  transition: box-shadow 0.2s ease;
  margin-bottom: 14px;
}

.exam-card:hover {
  box-shadow: 0 0 0 1px var(--exam-primary);
}

/* ---------- Date Box ---------- */
.exam-date {
  flex-shrink: 0;
  text-align: center;
  border-radius: var(--exam-radius);
  background: var(--exam-bg-alt);
  padding: 0.5rem 0.7rem;
  min-width: 60px;
  border: 1px solid #e6e6f0;
}

.exam-day {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--exam-text);
}

.exam-month {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--exam-primary);
  text-transform: uppercase;
}

.exam-year {
  font-size: 0.75rem;
  color: #888;
}

/* ---------- Card Content ---------- */
.exam-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 1rem;
  flex-wrap: wrap;
}

.exam-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--exam-text);
  flex: 1;
  line-height: 1.4;
  word-break: break-word;
}

/* ---------- Button ---------- */
.exam-btn {
  background: var(--exam-primary);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--exam-transition);
}

.exam-actions
 {
    display: flex;
    gap: 12px;
}

.exam-btn:hover,
.exam-btn:focus-visible {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--exam-primary);
}

/* ---------- States ---------- */
.exam-loading,
.exam-error,
.exam-empty {
  text-align: center;
  color: #555;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease;
}

/* ---------- Skeleton Loader ---------- */
.exam-skeleton {
  pointer-events: none;
  opacity: 0.9;
}

.skeleton-box,
.skeleton-line,
.skeleton-btn {
  background: linear-gradient(90deg, #f0f0f0 25%, #e2e2e2 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 8px;
}

.skeleton-box { width: 60px; height: 60px; }
.skeleton-line { height: 16px; width: 70%; margin-bottom: 8px; }
.skeleton-btn { height: 28px; width: 90px; }

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* ---------- Pagination ---------- */
div#exam-circulars-notification-pager {
  display: flex;
  flex-wrap: wrap;
  margin-top: 25px;
  gap: 10px;
  justify-content: center;
}

.exam-page-btn {
  border: 1px solid var(--exam-border);
  background: #fff;
  color: var(--exam-text);
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--exam-transition);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}

.exam-page-btn:hover:not(.active):not(:disabled),
.exam-page-btn:focus-visible:not(.active):not(:disabled) {
  background: #efedff;
  border-color: #c7c4ff;
  color: var(--exam-primary);
}

.exam-page-btn.active {
  background: linear-gradient(90deg, var(--exam-primary-light), var(--exam-primary));
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(106, 103, 206, 0.3);
}

.exam-page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .exam-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .exam-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
  }
  .exam-btn {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .exam-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .exam-filters select { width: 100%; }
  .exam-card { padding: 0.9rem; }
  .exam-day { font-size: 1.15rem; }
  .exam-title { font-size: 0.88rem; }
  .exam-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}
