body {
  font-family: "DM Sans", sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  overflow-y: auto !important; /* Ensures scrolling if content overflows */
}

.container {
  max-width: 1070px; /* Restrict width for better readability on large screens */
  margin: auto; /* Center horizontally */
  padding: 20px;
  height: auto;
}

.row {
  display: flex;
}

/* Main container with equal parts */
.email-entry-container {
  display: flex;
  max-width: 1170px;
  margin: auto;
  height: auto;
  padding: 20px;
  flex-wrap: wrap; /* Allows content to wrap instead of forcing a fixed height */
}

/* Left Section (Image Side) */
.email-entry-left {
  flex: 1; /* Takes equal space */
  background-color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Prevents any extra spacing */
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  margin: 0 auto;
}

/* Image fills the left section properly */
.email-entry-left img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area */
}

/* Right Section (Form Side) */
.email-entry-right {
  flex: 1; /* Takes equal space */
  background: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
  margin: 0;
  max-height: 200vh;
}

/* Headings and Text */
.email-entry-right h2 {
  font-size: 24px;
  margin-bottom: 4px;
  color: #131836;
  font-weight: 400;
}

.email-entry-right p {
  font-size: 16px;
  color: #333;
  margin-bottom: 50px;
  text-align: justify;
}

/* Align the logo to the left */
.email-entry-right .logo {
  max-width: 120px; /* Restrict maximum width */
  height: auto; /* Maintain aspect ratio */
  display: inline-block; /* Prevents it from stretching */
  margin-bottom: 20px; /* Adds space below */
}

.email-entry-right {
  text-align: left; /* Aligns all content to the left */
}

/* Form Styling */
.email-form label {
  display: block;
  margin-bottom: 5px;
  /* font-weight: bold; */
  font-size: 16px !important;
}

.email-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}

.email-form button {
  width: 100%;
  padding: 16px;
  background-color: #131836;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.3s ease-in-out;
  margin-bottom: 30px;
}

.email-form button:hover {
  background-color: #434190;
}

.email-form button:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(19, 24, 54, 0.5);
}

/* Login link styling */
.email-login-link {
  color: red;
  text-decoration: none;
}

.email-login-link:hover {
  text-decoration: underline;
}

/* Responsive Design - Stack Sections on Small Screens */
@media (max-width: 768px) {
  .email-entry-container {
    flex-direction: column; /* Stack sections on small screens */
    height: auto; /* Adjust height */
  }

  .email-entry-left {
    height: 300px; /* Give a fixed height to image section */
  }

  .email-entry-left img {
    height: 100%;
  }

  .email-entry-right {
    padding: 40px;
  }

  .email-entry-right p {
    text-align: left;
  }
}

/* Responsive Design - Large Screens */
@media (min-width: 1600px) {
  .container .email-entry-container {
    max-width: 95%; /* Adjust width for large screens */
  }
}

@media (min-width: 1920px) {
  .container .email-entry-container {
    max-width: 85%; /* Further optimize for ultra-wide screens */
  }
}

/* Sidebar */
.sidebar {
  background-color: #ffe6e6;
  padding: 20px;
  min-height: auto;
}

.sidebar h2 {
  text-align: center;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar li {
  padding: 10px;
  margin: 5px 0;
  border-left: 5px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  color: #808080;
}

.sidebar li.active {
  border-right: 2px solid red;
  font-weight: bold;
  color: black;
}

/* Step counter inside the sidebar */
.sidebar li .step-counter {
  font-weight: normal;
  font-size: 14px;

  display: block;
  margin-bottom: 5px;
}

.sidebar li.completed {
  color: black;
}

/* Only the step counter turns green when completed */
.sidebar li.completed .step-counter {
  color: green;
}

.form-container {
  flex: 1;
  padding: 40px 80px 40px 80px;
  background-color: white;
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
}

.form-step {
  display: none;
}

.form-step .icon-back {
  cursor: pointer;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.step-counter {
  font-size: 16px;
  font-weight: bold;
  color: black;
  margin-bottom: 5px;
}

.completed .step-counter {
  color: green;
}

h3 {
  margin-top: 0;
}

label {
  display: block;
  /* margin-top: 25px; */
}

input,
select {
  width: 50%;
  margin-top: 5px;
  border: none !important; /* Force remove all borders */
  border-bottom: 1px solid #808080 !important; /* Only keep bottom border */
  border-radius: 0 !important; /* Remove rounded corners */
  outline: none !important; /* Remove focus outline */
  background: transparent !important; /* Ensure clean background */
  box-shadow: none !important; /* Remove any box shadows */
  font-size: 16px !important; /* Match label size */
}

input:focus,
select:focus {
  border-bottom: 2px solid #808080 !important; /* Change color on focus */
}

input[type="radio"] {
  margin: 0;
  width: auto;
  height: auto;
  accent-color: black;
}

/* Style the first option (the placeholder option) */
#country option:first-child {
  color: gray; /* Example styling */
  font-style: italic;
}

.grey-radio label {
  color: #808080;
  margin-top: 10px;
}

.grey-radio input[type="radio"] {
  color: #808080;
}

label.form-label {
  color: black;
  margin-top: 25px;
  font-size: 16px !important;
}

.scholarship-type-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out,
    padding 0.3s ease-out;
  padding: 0;
}

.scholarship-type-section.show {
  max-height: 300px; /* Adjust as needed */
  opacity: 1;
  padding: 10px 0;
}

.custom-dropdown {
  position: relative;
  width: 100%;
  margin-top: 5px;
  border-bottom: 1px solid #808080; /* Only the bottom border */
  border-radius: 0; /* Remove rounded corners */
}

.dropdown-selected {
  padding: 8px;
  border: none; /* Remove all borders */
  border-radius: 25px; /* Remove rounded corners */
  outline: none;
  background: white; /* Ensure clean background */
  color: #808080; /* Default text color */
  width: 100%; /* Ensure it spans the full width */
  box-shadow: none; /* Remove any box shadows */
}

.dropdown-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0px;
  width: 100%;
  background: white;
  color: black;
}

.dropdown-arrow {
  transition: transform 0.3s ease-in-out;
}

/* Rotate arrow when dropdown is open */
.dropdown-wrapper.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown options */
.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #ccc; /* Default border for the options */
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 150px; /* Limit the height */
  overflow-y: auto; /* Make it scrollable */
  display: none; /* Hide by default */
  scrollbar-width: thin; /* Firefox only, to control scrollbar width */
  z-index: 999;
}

/* Custom scrollbars for Webkit-based browsers (Chrome, Safari) */
.dropdown-options::-webkit-scrollbar {
  width: 40px;
}

.dropdown-options::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-options::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

.dropdown-options li {
  padding: 8px;
  cursor: pointer;
}

.dropdown-options li:hover {
  background-color: #f0f0f0;
}

.dropdown-selected:focus {
  border-bottom: 2px solid #808080 !important; /* Focus border color */
}

/* Style checkboxes inside dropdown */
.dropdown-options li {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between checkbox and text */
  padding: 6px 8px;
  cursor: pointer;
}

/* Make checkboxes smaller */
.dropdown-options li input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

button {
  margin-top: 10px;
  padding: 16px !important;
  background-color: #131836 !important;
  color: white !important;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #434190;
}

/* Ensure form adjusts properly on all screen sizes */
@media (max-width: 992px) {
  .sidebar {
    width: 100%;
    min-height: auto;
    padding: 10px;
  }

  .form-container {
    padding: 20px;
    border-radius: 0px;
  }
}

@media (max-width: 768px) {
  .row {
    flex-direction: column; /* Stack sidebar and form vertically */
  }

  .form-container {
    width: 100%;
    padding: 20px;
  }
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 400px; /* Adjust the height */
  height: 40vh; /* You can adjust this to a fixed value or percentage */
}

.carousel-inner {
  height: 100%; /* Ensures inner content takes up full height */
}

.carousel-item {
  height: 100%; /* Ensure each item takes up the full height of the carousel */
}

.carousel img {
  width: 100%; /* Makes image fill entire width */
  height: 100%; /* Ensures the image takes the full height of the container */
  object-fit: cover; /* Ensures the image covers the full space without stretching */
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent !important;
  color: red !important; /* Ensure the color applies */
  border-radius: 50%; /* Makes it circular */
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px; /* Make it more visible */
}

/* Override Bootstrap icons if needed */
.carousel-prev span,
.carousel-next span {
  filter: invert(32%) sepia(100%) saturate(7461%) hue-rotate(356deg)
    brightness(92%) contrast(117%);
}

.carousel-prev:hover,
.carousel-next:hover {
  /*    border: 2px solid red !important; */
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-indicators {
  text-align: center;
  margin-top: 10px;
}

.indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.indicator.active {
  background-color: #5a67d8;
}

/* Smooth Fade-In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Styling */
.site-footer {
  color: #131836;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
  position: relative;
  bottom: 0;
  width: 100%;
}

/* Footer links */
.site-footer a {
  color: grey;
  text-decoration: none;
  margin: 0 10px;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Ensure footer is always pushed down when content is short */
html,
body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.email-entry-container {
  flex: 1; /* Pushes footer down */
}
/* Dashboard Table Styles */
.dashboard-container {
  max-width: 1200px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Table Wrapper */
.dashboard-table-container {
  overflow-x: auto;
}

/* Table Styling */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table thead {
  background-color: #131836;
  color: white;
}

.dashboard-table th,
.dashboard-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* Apply alternating row colors */
.dashboard-table tbody tr:nth-child(odd) {
  background-color: #ffffff; /* White row */
}

.dashboard-table tbody tr:nth-child(even) {
  background-color: #f0f0f0; /* Light gray row */
}

.dashboard-table tbody tr:hover {
  background-color: #131836 !important;
  color: white !important;
}

/* Pagination */
.dashboard-pagination {
  margin-top: 20px;
  text-align: center;
}

.dashboard-pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  color: #007bff;
  border: 1px solid #007bff;
  border-radius: 5px;
}

.dashboard-pagination a.active {
  background-color: #007bff;
  color: white;
}

.dashboard-pagination a:hover {
  background-color: #0056b3;
  color: white;
}

/* Logout Button */
.dashboard-logout-btn {
  display: block;
  width: 150px;
  text-align: center;
  margin: 20px auto;
  padding: 10px;
  background-color: #dc3545;
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

.dashboard-logout-btn:hover {
  background-color: #a71d2a;
}
#confirmation {
  width: auto;
}
.mail-sample {
  margin-bottom: 0 !important;
}

/* Form Spinner*/
.spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
