* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
  body {
  font-family: Arial, sans-serif;
  background-color: #f3f4f6;
  color: #333;
  line-height: 1.5;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
  .container {
    padding: 1rem;
  }

/* Main content area */
.page, main, .content-wrapper {
  flex: 1; /* pushes footer to bottom */
  min-height: 100vh; /* keeps footer down even with little content */
}

/* === FOOTER STYLING === */
footer {
  background-color: #1e1e2f;
  color: #ffffff;
  padding: 40px 20px;
  border-top: 3px solid #4F46E5;
  font-family: "Segoe UI", sans-serif;
  margin-top: auto; /* makes it stick to bottom */
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
  text-align: left;
}

.footer-section {
  min-width: 220px;
}

.footer-section h2 {
  color: #4F46E5;
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid #4F46E5;
  display: inline-block;
  padding-bottom: 5px;
}

.footer-section p {
  margin: 5px 0;
  font-size: 15px;
  opacity: 0.9;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #ffffff;
}

/* Bottom Line */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 30px;
  padding-top: 10px;
  font-size: 13px;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


  
  .bgimg {
    background-image: url("img/bg.jpg");
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    color:#e5dcc159;
  }

/* ===== NAVIGATION BAR ===== */
nav {
  background: linear-gradient(135deg, #b22222, #004aad);
  color: white;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav img {
  border-radius: 8px;
}

nav strong {
  font-size: 20px;
  letter-spacing: 0.5px;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== BUTTON BASE ===== */
nav button {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* ===== SOLID BUTTON ===== */
nav .btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(6px);
}

nav .btn:hover {
  color: black;
  background-color: white;
  transform: translateY(-2px);
}

/* ===== OUTLINE BUTTON ===== */
nav .btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

nav .btn-outline:hover {
  background: white;
  color: #b22222;
  transform: translateY(-2px);
}
  
/* ===== Dropdown Styling ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 6px;
  overflow: hidden;
}

.dropdown-content button {
  width: 100%;
  background: none;
  border: none;
  color: #333;
  text-align: left;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.dropdown-content button:hover {
background-color: #4F46E5;
color: white;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
display: block;
}

/* Optional: Adjust button alignment */
.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ==============================
 CARDS & CONTENT
============================== */
/* ===== CARD STYLING ===== */
.card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ===== INPUT FIELDS ===== */
.input {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* ===== BUTTONS ===== */
.btn-main {
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-main:hover {
  background: linear-gradient(135deg, #4338CA, #4F46E5);
  transform: translateY(-1px);
}

.btn-main:active {
  transform: translateY(1px);
  opacity: 0.9;
}



  /* ==============================
     TABLES
  ============================== */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
  }
  th, td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: left;
  }
  th {
    background: #f3f4f6;
  }
  
  /* ==============================
     CHATBOT
  ============================== */
  #chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
  }
  .chat-header {
    background: #4F46E5;
    color: white;
    padding: 8px;
    font-weight: bold;
  }
  #chat-messages {
    height: 220px;
    overflow-y: auto;
    padding: 8px;
    font-size: 14px;
  }
  #chat-messages .bot {
    background: #eee;
    padding: 6px;
    border-radius: 4px;
    margin: 4px 0;
  }
  #chat-messages .user {
    background: #4F46E5;
    color: white;
    padding: 6px;
    border-radius: 4px;
    margin: 4px 0;
    text-align: right;
  }
  .chat-input {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-top: 1px solid #ddd;
  }
  
  /* ==============================
     PRINT STYLES
  ============================== */
  @media print {
    nav, .btn-main, #chatbot, footer {
      display: none;
    }
  }
  
