/* ════════════════════════════════
   RESET & VARIABLES (from campuses.css)
════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff5005;
  --primary-light: #ff6a4d;
  --dark: #0a0a0a;
}

/* ════════════════════════════════
   BODY + ANIMATED BACKGROUND
════════════════════════════════ */
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  color: #fff;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff4d00 0%, #1a0000 50%, #ff5005 100%);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  padding-top: 90px;
  overflow-x: hidden;
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ════════════════════════════════
   PARTICLES
════════════════════════════════ */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(255, 80, 5, 0.6);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

@keyframes float {
  from { transform: translateY(100vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateY(-10vh) translateX(100px); opacity: 0; }
}

/* ════════════════════════════════
   SCROLLBAR
════════════════════════════════ */
::-webkit-scrollbar       { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ════════════════════════════════
   Z-INDEX LAYERING
════════════════════════════════ */
.navbar, .container, .footer { position: relative; z-index: 1; }

/* ════════════════════════════════
   NAVBAR (Fixed + Styled like campuses.css)
════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 80, 5, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 5%;
  background: rgba(10, 10, 10, 0.95);
}

.logo img {
  width: 80px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(255, 80, 5, 0.5));
}

.logo img:hover {
  transform: scale(1.05) rotate(-2deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links li a {
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary);
}

.nav-links li a:hover,
.nav-links li a.active { color: var(--primary); }

.nav-links li a:hover::after,
.nav-links li a.active::after { width: 100%; }

/* Dropdown */
.dropdown {
  position: relative;
  color: white;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
  font-weight: 500;
  transition: color 0.3s;
}

.dropdown:hover { color: var(--primary); }

.dropdown-menu {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 80, 5, 0.3);
  border-radius: 12px;
  display: none;
  min-width: 200px;
  padding: 10px 0;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu p { padding: 0; margin: 0; }

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: white !important;
  font-size: 14px;
  transition: all 0.3s;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 80, 5, 0.2);
  color: var(--primary) !important;
  padding-left: 25px;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px; height: 2px;
  background: white;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Enroll Button */
.enroll-btn {
  background: linear-gradient(135deg, var(--primary), #ff3300);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 80, 5, 0.4);
}

.enroll-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.enroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 80, 5, 0.6);
}

.enroll-btn:hover::before { left: 100%; }

.enroll-btn a {
  text-decoration: none;
  color: white;
  font-size: 14px;
}

.active { color: var(--primary) !important; }

/* ════════════════════════════════
   REGISTRATION FORM STYLES (Original + Enhanced)
════════════════════════════════ */
.container {
  width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.reg-form h2 {
  text-align: center;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 35px;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 80, 5, 0.5);
}

.reg-form p {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  margin-bottom: 30px;
}

.reg-form {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  margin-top: 20px;
  border-radius: 40px;
  border: 1px solid rgba(255, 80, 5, 0.3);
  box-shadow: 0 19px 90px rgba(0, 0, 0, 0.5);
  padding: 40px;
}

.details {
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 80, 5, 0.2);
}

.location-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.loc {
  width: 20px;
  height: auto;
  filter: brightness(0) invert(1);
}

.details p {
  color: #fff;
  font-size: 15px;
  margin: 0;
  font-weight: 500;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.form-select {
  flex: 1;
  min-width: 200px;
  height: 50px;
  padding: 0 15px;
  border-radius: 10px;
  border: 2px solid rgba(255, 80, 5, 0.5);
  background-color: rgba(10, 10, 10, 0.6);
  color: #fff;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 80, 5, 0.3);
}

.form-select option {
  background: #1a0000;
  color: #fff;
}

.form-long {
  flex: 1;
  min-width: 200px;
  height: 100px;
  padding: 15px;
  border-radius: 10px;
  border: 2px solid rgba(255, 80, 5, 0.5);
  background-color: rgba(10, 10, 10, 0.6);
  color: #fff;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-long:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(255, 80, 5, 0.3);
}

.full-width {
  flex: 1 0 100%;
}

.term-condition {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 80, 5, 0.2);
}

.term-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.term-header img {
  width: 22px;
  height: auto;
  filter: brightness(0) invert(1);
}

.term-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.term-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.term-item input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--primary);
}

.term-item label {
  font-size: 14px;
  color: white;
  line-height: 1.5;
  cursor: pointer;
}

.term-img {
  width: 50px;
}

.submit-wrap {
  width: 90%;
  max-width: 900px;
  margin: 30px auto;
}

.submit-btn {
  width: 100%;
  height: 55px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary), #ff3300);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 80, 5, 0.4);
  font-family: 'Poppins', sans-serif;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 80, 5, 0.6);
}

.submit-btn:hover::before { left: 100%; }

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.D-btn {
  width: 100%;
  height: 55px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #ff3300);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.D-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.35);
}

.D-btn:active {
  transform: scale(0.98);
}

.D-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.D-btn a {
  text-decoration: none;
  color: #ffffff;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 80, 5, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 2000;
  transition: 0.35s ease;
  color: #fff;
}

.popup.show {
  transform: translate(-50%, -50%) scale(1);
}

#confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1500;
}

/* ════════════════════════════════
   FOOTER (Full styling from campuses.css)
════════════════════════════════ */
.footer {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), #0a0a0a);
  color: #fff;
  padding: 60px 5% 20px;
  border-top: 1px solid rgba(255, 80, 5, 0.2);
  position: relative;
  z-index: 10;
  margin-top: 60px;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-about .footer-logo {
  width: 140px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(255, 80, 5, 0.3));
}

.footer-about p {
  font-size: 0.95em;
  line-height: 1.8;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-about i {
  color: var(--primary);
  margin-right: 10px;
  width: 20px;
}

.footer-links h3,
.footer-courses h3,
.footer-resources h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.1em;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.footer-links h3::after,
.footer-courses h3::after,
.footer-resources h3::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 30px; height: 2px;
  background: var(--primary);
}

.footer-links ul,
.footer-courses ul,
.footer-resources ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-courses ul li,
.footer-resources ul li {
  margin-bottom: 12px;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links ul li::before,
.footer-courses ul li::before {
  content: '›';
  color: var(--primary);
  font-size: 1.2em;
  transition: transform 0.3s;
}

.footer-links ul li:hover,
.footer-courses ul li:hover,
.footer-resources ul li:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links ul li:hover::before,
.footer-courses ul li:hover::before { transform: translateX(3px); }

.footer-bottom {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9em;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 968px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .container { width: 95%; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 70px; left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 30px;
    padding: 40px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-links.show { transform: translateX(0); }

  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255, 80, 5, 0.1);
    border: 1px solid rgba(255, 80, 5, 0.3);
    margin-top: 10px;
    opacity: 1;
    display: none;
  }

  .dropdown-menu.show { display: block; transform: none; }

  .enroll-btn { display: none; }

  .container { padding: 20px 15px; }
  
  .reg-form {
    padding: 25px;
    border-radius: 25px;
    margin-top: 10px;
  }

  .reg-form h2 { font-size: 28px; }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-select,
  .form-long {
    width: 100%;
    min-width: 100%;
  }

  .details,
  .term-condition,
  .submit-wrap {
    width: 95%;
    margin: 20px auto;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about .footer-logo { margin: 0 auto 20px; }

  .footer-links h3::after,
  .footer-courses h3::after,
  .footer-resources h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links ul li,
  .footer-courses ul li { justify-content: center; }
}

@media (max-width: 480px) {
  .reg-form h2 { font-size: 24px; }
  .reg-form p { font-size: 13px; }
  .submit-btn { font-size: 16px; height: 50px; }
  .footer-bottom { font-size: 0.8em; }
}