.mt-20 {
  margin-top: 20px;
  /* mt-20 */
}

.form-container {
  margin: 70px auto 70px;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-width: 70%;
}
@media (min-width: 769px) {
  .form-container {
      width:70% ;
  }
}
/* Headings */
h1 {
  font-size: 2.25rem;
  /* text-3xl */
  font-weight: 700;
  /* font-extrabold */
  color: #010101;
  /* text-gray-800 */
  margin-bottom: 2rem;
  /* mb-8 */
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  /* text-2xl */
  font-weight: 600;
  /* font-semibold */
  color: #374151;
  /* text-gray-700 */
  margin-bottom: 1.5rem;
  /* mb-6 */
}

h3 {
  font-size: 1.25rem;
  /* text-xl */
  font-weight: 500;
  /* font-medium */
  margin-bottom: 1rem;
  /* mb-4 */
}

@media (max-width: 991px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }
}

.collapsible-header h6 {
  font-weight: 600;
}

.student-update-profile .section-title {
  margin-bottom: 40px;
}

/* Grid Layouts */
.grid-cols-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  /* gap-6 */
}

.grid-cols-1.md-grid-cols-2 {
  padding-bottom: 1rem;
}
@media (min-width: 640px) {
  .form-container {
      padding: 1rem;
  }
}
@media (min-width: 768px) {

  /* md: */
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-container {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {

  /* lg: */
  .lg-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .default-content.student-update-profile {
    padding: 0 15px;
  }
}

/* Form Elements - Label, Input, Select, Textarea */
label {
  display: block;
  font-size: 0.875rem;
  /* text-sm */
  font-weight: 500;
  /* font-medium */
  color: #010101;
  /* text-gray-700 */
  margin-bottom: 0.25rem;
  /* Adjusted for better spacing */
  font-family: "Montserrat", sans-serif;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="tel"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  /* px-4 py-2 */
  margin-top: 0.25rem;
  /* mt-1 */
  border: 1px solid #d1d5db;
  /* border border-gray-300 */
  border-radius: 0.375rem;
  /* rounded-md */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* shadow-sm */
  font-size: 0.875rem;
  /* sm:text-sm */
  color: #374151;
  /* text-gray-700 */
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
  /* focus:border-blue-500 */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
  /* focus:ring-blue-500 equivalent */
}

textarea {
  min-height: 5rem;
  /* h-20 equivalent, for example */
  resize: vertical;
}
.select2-container {
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #374151;
  background: #fff;
}
/* Radio Buttons */
.flex-wrap-gap-4 {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  /* gap-4 */
}

.radio-label {
  /* Changed from .checkbox-label */
  display: inline-flex;
  align-items: center;
}

.form-radio {
  /* Changed from .form-checkbox */
  height: 1.25rem;
  /* h-5 */
  width: 1.25rem;
  /* w-5 */
  border-radius: 50%;
  /* Make it round for radio */
  accent-color: #2563eb;
  /* text-blue-600 */
  cursor: pointer;
}

.radio-label span {
  margin-left: 0.5rem;
  /* ml-2 */
  color: #374151;
  /* text-gray-700 */
}

/* Education Sections */
.education-section {
  display: none;
  /* Initially hidden */
  padding: 1.5rem;
  /* p-6 */
  border-radius: 0.5rem;
  /* rounded-lg */
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  /* shadow-inner */
  margin-top: 1rem;
  /* space-y-4 for sections */
}

.education-section h6 {
  margin-bottom: 1rem;
}

/* Specific background colors for education sections */
#primarySecondarySection {
  background-color: #eff6ff;
  /* bg-blue-50 */
}

#primarySecondarySection h6 {
  color: #1e40af;
  /* text-blue-800 */
}

#higherSecondarySection {
  background-color: #ecfdf5;
  /* bg-green-50 */
}

#higherSecondarySection h6 {
  color: #065f46;
  /* text-green-800 */
}

#diplomaSection {
  background-color: #fffbeb;
  /* bg-yellow-50 */
}

#diplomaSection h6 {
  color: #92400e;
  /* text-yellow-800 */
}

#underGraduateSection {
  background-color: #fef2f2;
  /* bg-red-50 */
}

#underGraduateSection h6 {
  color: #991b1b;
  /* text-red-800 */
}

#postGraduateSection {
  background-color: #f5f3ff;
  /* bg-purple-50 */
}

#postGraduateSection h6 {
  color: #5b21b6;
  /* text-purple-800 */
}

#itiSection {
  background-color: #f0f9ff;
  /* bg-sky-50 */
}

#itiSection h6 {
  color: #075985;
  /* text-sky-800 */
}

#integratedCoursesSection {
  background-color: #eef2ff;
  /* bg-indigo-50 */
}

#integratedCoursesSection h6 {
  color: #3730a3;
  /* text-indigo-800 */
}

#certificateOtherCoursesSection {
  background-color: #f9fafb;
  /* bg-gray-50 */
}

#certificateOtherCoursesSection h6 {
  color: #1f2937;
  /* text-gray-800 */
}

/* Required fields asterisk */
.required::after {
  content: "*";
  color: #ef4444;
  /* Red color */
  margin-left: 0.25rem;
}

/* Buttons */
.button-group {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Message Box Styling */
.message-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #333;
  color: white;
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
  display: none;
  /* Hidden by default */
  text-align: center;
}

.message-box button {
  background-color: #4caf50;
  /* Green */
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-top: 15px;
  cursor: pointer;
  border-radius: 5px;
}

/* Conditional section styling */
.conditional-section {
  display: none;
  /* Hidden by default */
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: #f0f4f8;
  /* Light blue-gray background */
  border-left: 4px solid #3b82f6;
  /* Blue border on the left */
  border-radius: 0.375rem;
}

/* Styling for collapsible section header */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* cursor: pointer; */
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  margin-right: 0;
  border-bottom: 1px solid #D4D4E4;
}

.collapsible-header h2 {
  margin-bottom: 0;
}

.collapsible-content {
  padding-top: 0.5rem;
}

.arrow-icon {
  position: relative;
  top: -15px;
  font-size: 1rem;
  margin-top: 1.3rem;
  transition: transform 0.5s ease-in-out;
}

.arrow-icon.rotated {
  transform: rotate(180deg);
}

.select2-container {
  border: 1px solid #0101011A;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  padding: 10px 20px;
  resize: none;
  height: 55px;
  margin-top: 5px;
  outline: 0;
}

.select2-container .select2-selection {
  background-color: unset !important;
  border: unset !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 10px !important;
  right: 15px !important;
}

select + .select2-container{
  padding: 5px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 15px;
}
.select2-container {
  padding: 0;
}
@media (max-width: 1200px) and (min-width: 769px) {
  .form-container {
    width: 70%;
    margin: 30px auto 60px;
  }

  .sidebar-container {
    width: 200px;
  }
}

@media (max-width: 768px) {
  .sidebar-container {
    width: 50px;
    padding: 0 0 15px;
  }

  .form-container {
    width: 85%;
    margin-top: 30px;
    max-width: 100%;
  }

  .sidebar-header {
    display: none;
  }
}

@media (max-width: 600px) {
  .sidebar-container {
    width: 100%;
    padding: 15px;
  }

  .form-container {
    max-width: 100%;
    margin-top: 20px;
    padding: 15px;
    width: 90%;
  }

  .select2-container {
    border-radius: 6px;
  }

  .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 12px;
    padding-left: 5px;
  }

  .button-group {
    gap: 10px;
    justify-content: center;
  }
}

@media (max-width: 340px) {
  .button-group button {
    font-size: 13px;
  }
}