/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #F9FAFB;
  color: #111827;
  line-height: 1.6;
}

/* Header */
header.site-header {

  width: 100%;
  padding: 50px 20px;
  background: #1E3A8A;
  color: #fff;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  box-sizing: border-box;
}

header h1.site-title {
  font-size: 2.8rem;
  font-weight: 700;
}

/* Header with Navbar */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.site-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #FBBF24;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 1100; /* make sure it stays on top */
}

/* Sidebar for mobile */
@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%; /* hidden by default */
    height: 100%;
    width: 250px;
    background: #1E3A8A;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 0;
    margin: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-list.active {
    right: 0; /* visible when active */
  }

  .nav-list li {
    list-style: none;
  }

  .nav-list a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
  }
}

/* Overlay for sidebar */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 900; /* behind sidebar but above page content */
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}


/* Hero Section */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden; /* hide overflowing slides */
}

.hero-slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Overlay for readability */
.hero-slideshow::after {
  content: '';
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-content {
  position: relative; /* above slideshow */
  z-index: 2;
}


/* Optional: Overlay for text readability */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* dark overlay */
  z-index: 0;
}

.hero-title, .hero-subtitle, .btn-group {
  position: relative; /* ensures text is above overlay */
  z-index: 1;
}



.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #1E3A8A;
  color: #fff;
}

.btn-primary:hover {
  background: #162c6b;
}

.btn-secondary {
  background: #10B981;
  color: #fff;
}

.btn-secondary:hover {
  background: #0e7a64;
}

/* Sections */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1E3A8A;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: stretch;
}

.card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.card h3.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1E3A8A;
}

.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* Alternate card background for variety */
.card:nth-child(even) {
  background: #F3F4F6;
}

/* Footer */
footer.site-footer {
  text-align: center;
  padding: 40px 20px;
  background: #1E3A8A;
  color: #fff;
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }
}

/* Registration Form Styling */
form.form {
  background: #fff;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 40px auto;
}

form.form header {
  font-size: 2rem;
  font-weight: 700;
  color: #1E3A8A;
  text-align: center;
  margin-bottom: 30px;
}

.input-box {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.input-box label {
  font-weight: 600;
  margin-bottom: 6px;
}

.input-box input {
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.column {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.column .input-box {
  flex: 1;
}

/* Partner fields hidden by default */
#partner-fields {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* Registration Type Toggle Buttons */
.registration-type {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.toggle-btn {
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border: 2px solid #1E3A8A;
  border-radius: 12px;
  background: #fff;
  color: #1E3A8A;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: #f0f0f0;
}

.toggle-btn.active {
  background: #1E3A8A;
  color: #fff;
}

/* Form container */
form.form {
  background: #fff;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 40px auto;
  box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  form.form {
    margin: 20px;
    padding: 20px 15px; /* add padding for small screens */
  }

  header {
    font-size: 1.5rem;
    padding: 30px 15px; /* tighter header on small devices */
  }

  footer {
    font-size: 0.85rem;
    padding: 15px;
  }
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.95rem;
  color: #fff;
  background: #1E3A8A;
}
.registration-type{
  position: relative;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden; /* hide overflowing slides */
  
}

/* =====================
   Login Page Styling
===================== */

.login-container {
  max-width: 450px;
  margin: 60px auto;
  padding: 30px 25px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.login-form .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.login-form label {
  font-weight: 600;
  margin-bottom: 6px;
}

.login-form input {
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-login:hover {
  background: linear-gradient(135deg, #B8860B, #FFD700);
}

.register-link {
  text-align: center;
  margin-top: 15px;
}
.register-link a {
  color: #1E3A8A;
  text-decoration: none;
  font-weight: 600;
}
.register-link a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .login-container {
    margin: 20px;
    padding: 20px 15px;
  }
  .btn-login {
    font-size: 0.95rem;
  }
}

/* =====================
   Floating Registration Form
===================== */
form.form {
  position: relative; /* enables z-index and floating effect */
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); /* deeper shadow for floating effect */
  max-width: 600px;
  margin: -100px auto 40px; /* negative top margin to float above section */
  z-index: 10; /* ensures it stays above other content */
  transition: all 0.3s ease;
}

form.form:hover {
  transform: translateY(-5px); /* subtle lift effect */
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}

/* Input Fields inside the floating form */
form.form .input-box input {
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

form.form .input-box input:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 5px rgba(30, 58, 138, 0.5);
  outline: none;
}

/* Submit Button inside the floating form */
form.form .btn {
  width: 100%;
  padding: 140px;
  border: none;
  border-radius: 12px;
  background: #1E3A8A;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

form.form .btn:hover {
  background: #162c6b;
}

/* Responsive tweaks for floating form */
@media (max-width: 768px) {
  form.form {
    margin: 500px 20px 20px;
    padding: 25px 20px;
  }
}

/* Floating Form - Mobile Friendly */
@media (max-width: 768px) {
  form.form {
    margin: -500px 150px 200px; /* more space on sides */
    padding: 30px 20px;       /* increased padding for input comfort */
    border-radius: 15px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  }

  form.form .input-box {
    margin-bottom: 15px;
  }

  form.form .column {
    flex-direction: column;  /* stack fields vertically */
    gap: 15px;
  }

  form.form .btn {
    font-size: 1rem;
    padding: 12px;
  }
}

/* Buttons in Registration Form */
form.form .btn {
  display: inline-block;
  width: 300px;           /* default width on desktop */
  padding: 14px 0;        /* vertical padding */
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 10px 5px;       /* spacing between buttons */
}

form.form .btn.btn-danger {
  background: #EF4444;   /* red */
  color: #fff;
}

form.form .btn.btn-danger:hover {
  background: #B91C1C;   /* darker red on hover */
}

/* Make buttons full-width on mobile */
@media (max-width: 768px) {
  form.form .btn {
    width: 100%;
  }
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #F9FAFB;
  color: #111827;
  line-height: 1.6;
}

/* Header */
header.site-header {
  width: 100%;
  padding: 40px 20px;
  background: #1E3A8A;
  color: #fff;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
}

header.site-header h1 {
  font-size: 2.5rem;
}

/* Login Container */
.login-container {
  max-width: 450px;
  margin: 60px auto;
  padding: 30px 25px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Login Form */
.login-form .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.login-form label {
  font-weight: 600;
  margin-bottom: 6px;
}

.login-form input {
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* Checkbox */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* Login Button */
.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background: linear-gradient(135deg, #B8860B, #FFD700);
}

/* Error Message */
.error-message {
  color: #EF4444;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

/* Register Link */
.register-link {
  text-align: center;
  margin-top: 15px;
}

.register-link a {
  color: #1E3A8A;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Footer */
footer.site-footer {
  text-align: center;
  padding: 20px;
  background: #1E3A8A;
  color: #fff;
  font-size: 0.95rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .login-container {
    margin: 20px;
    padding: 20px 15px;
  }

  header.site-header {
    padding: 30px 15px;
    font-size: 1.5rem;
  }

  footer.site-footer {
    font-size: 0.85rem;
    padding: 15px;
  }
}

