/* =====================================================
   PREMIUM UNIVERSITY CSS — Red · Blue · White
   Font: Times New Roman | Ultra Animated | Modern
===================================================== */

/* ========================= */
/* RESET                     */
/* ========================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif !important;
}

/* ========================= */
/* CSS VARIABLES             */
/* ========================= */
:root {
  --blue:         #003366;
  --blue-mid:     #0a4a8f;
  --blue-light:   #e8f0ff;
  --blue-pale:    #f0f5ff;
  --red:          #c40000;
  --red-mid:      #e53935;
  --red-light:    #fceaea;
  --white:        #ffffff;
  --off-white:    #f8faff;
  --shadow-blue:  rgba(0,51,102,0.13);
  --shadow-red:   rgba(196,0,0,0.18);
  --text-main:    #111827;
  --text-mid:     #374151;
}

/* ========================= */
/* SCROLLBAR                 */
/* ========================= */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track {
  background: var(--off-white);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue), var(--red));
  border-radius: 10px;
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--red), var(--blue));
}

/* ========================= */
/* TEXT SELECTION            */
/* ========================= */
::selection {
  background: rgba(0,51,102,0.15);
  color: var(--blue);
}

/* ========================= */
/* BODY                      */
/* ========================= */
body {
  background: var(--white);
  min-height: 100vh;
  line-height: 1.8;
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
  animation: pageFade 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes pageFade {
  from { opacity: 0; filter: blur(4px); transform: scale(0.99); }
  to   { opacity: 1; filter: blur(0);   transform: scale(1); }
}

/* ── Animated dot grid ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0,51,102,0.055) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
  animation: gridShift 25s linear infinite alternate;
}
@keyframes gridShift {
  from { background-position: 0 0; }
  to   { background-position: 30px 30px; }
}

/* ── Subtle warm vignette ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%,   rgba(0,51,102,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(196,0,0,0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: vignetteShift 18s ease-in-out infinite alternate;
}
@keyframes vignetteShift {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* ========================= */
/* FLOATING ORBS             */
/* ========================= */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: 0;
  pointer-events: none;
}

.orb-blue {
  width: 580px; height: 580px;
  top: -180px; left: -180px;
  background: radial-gradient(circle, rgba(0,51,102,0.12), transparent 70%);
  animation: orbBlue 16s ease-in-out infinite alternate;
}

.orb-red {
  width: 480px; height: 480px;
  bottom: -160px; right: -160px;
  background: radial-gradient(circle, rgba(196,0,0,0.10), transparent 70%);
  animation: orbRed 20s ease-in-out infinite alternate;
}

.orb-mid {
  width: 350px; height: 350px;
  top: 45%; left: 55%;
  background: radial-gradient(circle, rgba(10,74,143,0.07), transparent 70%);
  animation: orbMid 24s ease-in-out infinite alternate;
  filter: blur(90px);
}

@keyframes orbBlue {
  0%   { transform: translate(0,0)     scale(1); }
  50%  { transform: translate(40px,30px) scale(1.07); }
  100% { transform: translate(20px,-20px) scale(0.95); }
}
@keyframes orbRed {
  0%   { transform: translate(0,0)       scale(1); }
  50%  { transform: translate(-35px,25px)  scale(1.06); }
  100% { transform: translate(15px,-30px) scale(0.97); }
}
@keyframes orbMid {
  0%   { transform: translate(0,0) scale(1); opacity: 0.5; }
  50%  { transform: translate(-20px,30px) scale(1.1); opacity: 0.8; }
  100% { transform: translate(25px,-15px) scale(0.93); opacity: 0.4; }
}

/* ========================= */
/* PAGE WRAPPER              */
/* ========================= */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding: 65px 44px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================= */
/* MAIN HEADING              */
/* ========================= */
.main-heading {
  text-align: center;
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 75px;
  position: relative;
  opacity: 0;
  animation: headingEntrance 1s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;

  /* Shimmer gradient text */
  background: linear-gradient(90deg, var(--blue) 0%, #0a4a8f 30%, var(--red) 60%, var(--blue) 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: headingEntrance 1s cubic-bezier(0.22,1,0.36,1) 0.1s forwards,
             headingShimmer   6s linear 1.2s infinite;
}

@keyframes headingEntrance {
  from { opacity: 0; transform: translateY(-35px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);     filter: blur(0); }
}
@keyframes headingShimmer {
  from { background-position: 0% center; }
  to   { background-position: 300% center; }
}

/* Animated gradient underline */
.main-heading::after {
  content: "";
  display: block;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--blue));
  background-size: 200% auto;
  margin: 18px auto 0;
  border-radius: 20px;
  animation: lineGrow    0.9s 0.8s cubic-bezier(0.22,1,0.36,1) forwards,
             lineShimmer 3s   1.8s linear infinite;
  box-shadow: 0 0 16px rgba(196,0,0,0.3), 0 0 32px rgba(0,51,102,0.2);
}
@keyframes lineGrow {
  to { width: 200px; }
}
@keyframes lineShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Glow orb behind heading */
.main-heading::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 120px;
  background: radial-gradient(ellipse, rgba(0,51,102,0.07), transparent 70%);
  pointer-events: none;
  animation: headingGlow 4s ease-in-out infinite alternate;
  border-radius: 50%;
}
@keyframes headingGlow {
  from { opacity: 0.5; transform: translate(-50%,-50%) scale(0.9); }
  to   { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
}

/* ========================= */
/* SUB HEADING               */
/* ========================= */
.sub-heading {
  font-size: 26px;
  font-weight: bold;
  color: var(--blue);
  margin: 65px 0 28px;
  padding: 16px 22px 16px 26px;
  border-radius: 0 14px 14px 0;
  position: relative;
  background: linear-gradient(90deg, rgba(0,51,102,0.06) 0%, transparent 100%);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  opacity: 0;
  animation: subHeadEntrance 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
  cursor: default;
  overflow: hidden;
}

@keyframes subHeadEntrance {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Animated gradient left bar */
.sub-heading::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--red), var(--blue), var(--red));
  background-size: 100% 300%;
  border-radius: 4px;
  animation: barFlow 3s linear infinite;
}
@keyframes barFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 0% 300%; }
}

/* Background sweep on hover */
.sub-heading::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,51,102,0.05), transparent);
  transition: left 0.6s ease;
}
.sub-heading:hover::after { left: 100%; }

.sub-heading:hover {
  transform: translateX(12px);
  background: linear-gradient(90deg, rgba(0,51,102,0.1), transparent);
  color: var(--red);
  box-shadow: 4px 0 20px rgba(0,51,102,0.08);
}

/* ========================= */
/* TABLE                     */
/* ========================= */
.po-table {
  width: 100%;
  margin: 0 auto 85px auto;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 12px 50px var(--shadow-blue),
    0 2px 10px rgba(0,0,0,0.04),
    0 0 0 1px rgba(0,51,102,0.06);
  opacity: 0;
  animation: tableRise 0.9s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
  position: relative;
  transition: box-shadow 0.4s ease;
}

.po-table:hover {
  box-shadow:
    0 20px 70px var(--shadow-blue),
    0 6px 20px rgba(0,0,0,0.06),
    0 0 0 1px rgba(0,51,102,0.1);
}

/* Animated top gradient bar */
.po-table::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--blue));
  background-size: 200% auto;
  z-index: 2;
  animation: topBarFlow 4s linear infinite;
}
@keyframes topBarFlow {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

@keyframes tableRise {
  from { opacity: 0; transform: translateY(45px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* ── Table Header ── */
.po-table thead tr {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-mid) 50%, var(--red) 100%);
  background-size: 200% auto;
  animation: headerGradient 8s linear infinite;
  position: relative;
}
@keyframes headerGradient {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.po-table th {
  color: var(--white);
  padding: 22px 26px;
  font-size: 17px;
  letter-spacing: 1.5px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  transition: background 0.3s;
}

/* Vertical divider between headers */
.po-table th:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.18);
}

/* ── Table Body ── */
.po-table tbody tr {
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
  border-bottom: 1px solid rgba(0,51,102,0.07);
  position: relative;
}

.po-table tbody tr:nth-child(even) {
  background: var(--blue-pale);
}
.po-table tbody tr:nth-child(odd) {
  background: var(--white);
}

/* Left border reveal */
.po-table tbody tr::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(180deg, var(--blue), var(--red));
  transition: width 0.35s cubic-bezier(0.22,1,0.36,1);
  border-radius: 0 4px 4px 0;
}
.po-table tbody tr:hover::before {
  width: 5px;
}

/* Right shimmer sweep */
.po-table tbody tr::after {
  content: "";
  position: absolute;
  top: 0; left: -200%;
  width: 80%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0,51,102,0.04), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.po-table tbody tr:hover::after {
  left: 150%;
}

.po-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(0,51,102,0.07), rgba(196,0,0,0.04), transparent);
  transform: scale(1.013);
  box-shadow: 0 6px 28px var(--shadow-blue), 0 2px 8px var(--shadow-red);
  z-index: 1;
}

/* ── Table Cells ── */
.po-table td {
  padding: 20px 26px;
  font-size: 16px;
  line-height: 1.9;
  vertical-align: top;
  transition: color 0.3s ease;
}

.po-table td:first-child {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  color: var(--blue);
  min-width: 65px;
}

.po-table td:last-child {
  text-align: left;
  color: var(--text-mid);
}

.po-table tbody tr:hover td:first-child {
  color: var(--red);
}

/* ========================= */
/* BUTTON                    */
/* ========================= */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid), var(--red));
  background-size: 250% auto;
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 28px var(--shadow-red),
    0 4px 12px var(--shadow-blue),
    inset 0 1px 0 rgba(255,255,255,0.18);
  animation: btnGradient 5s linear infinite;
}
@keyframes btnGradient {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Shine sweep */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.55s ease;
}
.btn:hover::before { left: 150%; }

/* Glow ring */
.btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--blue), var(--red));
  opacity: 0;
  z-index: -1;
  filter: blur(10px);
  transition: opacity 0.4s;
}
.btn:hover::after { opacity: 0.5; }

.btn:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow:
    0 22px 50px var(--shadow-red),
    0 8px 20px var(--shadow-blue);
  color: var(--white);
}
.btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* ========================= */
/* BADGE / TAG               */
/* ========================= */
.badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.badge::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s;
}
.badge:hover::before { left: 150%; }

.badge-blue {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid rgba(0,51,102,0.18);
  box-shadow: 0 2px 10px rgba(0,51,102,0.08);
}
.badge-blue:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--shadow-blue);
}

.badge-red {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid rgba(196,0,0,0.18);
  box-shadow: 0 2px 10px rgba(196,0,0,0.08);
}
.badge-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--shadow-red);
}

/* ========================= */
/* CARD                      */
/* ========================= */
.card {
  background: var(--white);
  border: 1px solid rgba(0,51,102,0.09);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px var(--shadow-blue);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
  animation: cardAppear 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animated top accent bar */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  background-size: 200% auto;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: topBarFlow 4s linear infinite paused;
}

.card:hover::before {
  opacity: 1;
  animation-play-state: running;
}

/* Shine sweep on card */
.card::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(0,51,102,0.04), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.card:hover::after { left: 150%; }

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(196,0,0,0.12);
  box-shadow:
    0 26px 65px var(--shadow-blue),
    0 8px 20px var(--shadow-red);
}

/* ========================= */
/* SECTION DIVIDER           */
/* ========================= */
.divider {
  width: 100%;
  height: 2px;
  margin: 65px 0;
  border-radius: 20px;
  position: relative;
  overflow: visible;
  background: linear-gradient(90deg, transparent, var(--blue), var(--red), transparent);
  background-size: 200% auto;
  opacity: 0.35;
  animation: dividerFlow 5s linear infinite,
             dividerPulse 3s ease-in-out infinite;
}
@keyframes dividerFlow {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}
@keyframes dividerPulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.55; }
}

/* Glowing center dot */
.divider::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--red), 0 0 28px rgba(196,0,0,0.5);
  animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);   box-shadow: 0 0 12px var(--red), 0 0 28px rgba(196,0,0,0.4); }
  50%      { transform: translate(-50%,-50%) scale(1.6); box-shadow: 0 0 20px var(--red), 0 0 50px rgba(196,0,0,0.7); }
}

/* ========================= */
/* ALERT / NOTIFICATION      */
/* ========================= */
.alert {
  padding: 15px 22px;
  border-radius: 14px;
  border-left: 4px solid;
  font-size: 15px;
  letter-spacing: 0.3px;
  margin-bottom: 22px;
  animation: alertSlide 0.5s cubic-bezier(0.22,1,0.36,1),
             alertGlow   2s ease-in-out 0.5s infinite alternate;
  position: relative;
  overflow: hidden;
}
.alert::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: alertSweep 2s ease 0.5s;
}
@keyframes alertSweep {
  from { left: -100%; }
  to   { left: 200%; }
}
@keyframes alertSlide {
  from { opacity: 0; transform: translateX(-25px); }
  to   { opacity: 1; transform: translateX(0); }
}

.alert-success {
  background: linear-gradient(90deg, rgba(0,51,102,0.08), rgba(0,51,102,0.03));
  border-color: var(--blue);
  color: var(--blue);
}
@keyframes alertGlow {
  from { box-shadow: 0 4px 16px rgba(0,51,102,0.1); }
  to   { box-shadow: 0 4px 28px rgba(0,51,102,0.2); }
}

.alert-error {
  background: linear-gradient(90deg, rgba(196,0,0,0.08), rgba(196,0,0,0.02));
  border-color: var(--red);
  color: var(--red);
  animation: alertSlide 0.5s cubic-bezier(0.22,1,0.36,1),
             errorShake   0.5s ease 0.1s;
}
@keyframes errorShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}

/* ========================= */
/* FORM INPUTS               */
/* ========================= */
.form-group {
  margin-bottom: 24px;
  position: relative;
}
.form-label {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0,51,102,0.55);
  margin-bottom: 8px;
  transition: color 0.3s;
}
.form-group:focus-within .form-label {
  color: var(--blue);
}

.form-input {
  width: 100%;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(0,51,102,0.15);
  background: var(--off-white);
  color: var(--text-main);
  font-size: 15px;
  font-family: "Times New Roman", Times, serif !important;
  outline: none;
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.form-input:focus {
  border-color: var(--blue-mid);
  background: var(--white);
  box-shadow:
    0 0 0 4px rgba(0,51,102,0.08),
    0 6px 20px rgba(0,51,102,0.1);
  transform: translateY(-2px);
}
.form-input:hover:not(:focus) {
  border-color: rgba(0,51,102,0.3);
}

/* Animated bottom accent */
.input-line {
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.22,1,0.36,1);
  margin-top: -2px;
}
.form-group:focus-within .input-line {
  width: 100%;
}

/* ========================= */
/* STAGGER ANIMATION HELPERS */
/* ========================= */
.stagger-1 { animation-delay: 0.10s; }
.stagger-2 { animation-delay: 0.20s; }
.stagger-3 { animation-delay: 0.30s; }
.stagger-4 { animation-delay: 0.40s; }
.stagger-5 { animation-delay: 0.50s; }
.stagger-6 { animation-delay: 0.60s; }

/* ========================= */
/* RESPONSIVE                */
/* ========================= */
@media (max-width: 992px) {
  .page-wrapper { padding: 45px 28px; }
  .main-heading { font-size: 36px; }
}

@media (max-width: 768px) {
  .main-heading  { font-size: 26px; letter-spacing: 1.5px; }
  .sub-heading   { font-size: 20px; }
  .po-table th,
  .po-table td   { font-size: 14px; padding: 14px 15px; }
  .btn           { padding: 13px 28px; font-size: 14px; }
  .page-wrapper  { padding: 30px 16px; }
}