:root {
    --primary-color: #0056b3;
    --secondary-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333;
    --error-color: #c0392b;
    --field-height: 30px;
    --border: #1e1e1e;
    --muted: #555;
    --heading: #000;
    --gap: 10px;
    --pad: 8px;
    --pad-sm: 6px;
    --font: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }

*{
    padding: 0;
    margin: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--secondary-bg);
    color: var(--text-color);
  }
ul, li{list-style: none;}
a{text-decoration: none; color: inherit;}
  
  .header {
    position: relative;
    background: none;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
    background: transparent;
  }
  
  /*.header-nav.add_bg{
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
  }*/
  .main-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #FFF;
    align-items: center;
    transition: all .3s;
  }
  
.college-header-box {
    background: #ffffff;
    border: 2px solid #008000;
    border-radius: 6px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0;
  }

  .college-logo img {
    width: 90px;
    height: auto;
  }

.college-title {
    flex: 0 1 auto;      /* shrink to content so it stays near the logo */
    text-align: left;    /* align text within the block */
  }

  .college-title h1 {
    font-size: 20px;
    font-weight: 700;
    color: #0056b3;
    margin: 0;
  }

  .college-title p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
  }

  .college-title .online-portal {
    margin-top: 4px;
    font-weight: 600;
  }

.brand {
    display: flex;
    align-items: center;
    height: 72px;
    position: relative;
}
  .header-nav {
    background: transparent;
  }
  
  .header-nav.active {
    background: #06298b;
    position: fixed;
    width: 100%;
    z-index: 9;
    top: 0;
  }
  
  .navigation {
    display: flex;
    margin-left: auto;
  
  }
  
  .navigation li {
    margin-left: 15px;
  
  }
  
  .navigation li a {
    color: #fff;
    transition: all .3s;
    font-family: "Inter", sans-serif;
    border-radius: 25px;
    font-weight: 500;
    font-size: 16px;
  }
  
  .mobile-open-btn,
  .mobile-close-btn {
    display: none;
  }

  
  .header-nav.active .brand {
    color: #7c7c7c;
    font-size: 19px;
    line-height: 25px;
    position: relative;
    padding: unset;
  }
  
 .registration-form {
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Legend styling */
.registration-form legend {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  text-align: center;
}

/* Labels smaller */
.registration-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
  display: block;
}

/* All inputs & selects same height */
.registration-form .form-control,
.registration-form .form-select {
  height: var(--field-height);
  line-height: var(--field-height);
  padding: 0 0.75rem;
  border-radius: 4px;
  border: 1px solid #ced4da;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Focus state */
.registration-form .form-control:focus,
.registration-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Error message */
.registration-form .error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--error-color);
}

/* Submit button full width */
.registration-form .btn-primary {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  background-color: var(--primary-color);
  color:#FFF;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.registration-form .btn-primary:hover {
  background-color: #004a9f;
  border-color: #004a9f;
}

/* Ensure date-of-birth selects line up */
.registration-form .d-flex .form-select {
  flex: 1;
  max-width: 33%;
}

/* Remove max-width overrides on columns so fields fill their column */
.registration-form .col-md-2 .form-control,
.registration-form .col-md-2 .form-select,
.registration-form .col-md-3 .form-control,
.registration-form .col-md-3 .form-select,
.registration-form .col-md-4 .form-control,
.registration-form .col-md-4 .form-select,
.registration-form .col-md-6 .form-control,
.registration-form .col-md-6 .form-select,
.registration-form .col-md-9 .form-control {
  max-width: 100% !important;
}

/* Tighten up paragraph spacing */
.registration-form p.mb-4 {
  margin-bottom: 1rem;
}
a.brand.logo_text img {
  width: 90px !important;
  margin: 0;
  display: block;
}
.page-wrapper {
  padding: 40px 0 60px; /* reduced top gap under college header */
  min-height: 88vh;
}
footer.footer {
    background: #a5150f;
    padding: 10px 0;
}
footer.footer p{
    color: #FFF;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}
footer.footer p a{color:#ffe100}
.designed p{text-align: right;}
.footer_nav{
  width: 100%;
}

.footer_nav ul{
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  margin: 0;
  padding: 0;
}
.footer_nav li{
  list-style: none;
}

.footer_nav li a{
  display: block;
  color: #FFF;
  font-weight: 500;
  font-size: 15px;
}
.ug-wrapper{
  width: 100%;
  border: 1px solid #001485;
  position: relative;
  padding: 30px 15px 0;
}
.ug-heading {
    position: absolute;
    top: -23px;
    left: 17px;
    z-index: 99;
}
.ug-heading h2 {
    font-size: 20px;
    padding: 10px;
    background: #f8f9fa;
}
.form-wrapper {
    width: 100%;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 15px;
}
.form-wrapper label {
    width: 100%;
    margin-bottom: 6px;
}
.form-wrapper input, .form-wrapper select{
  width: 100%;
  height: 40px;
  padding-left: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.sub-cust-btn {
    width: 100%;
    height: 40px;
    margin: 10px 0 0 0;
    border: none;
    background: #06298b;
    border-radius: 5px;
    color: #FFF;
}
.form-wrapper .error{
  position: absolute;
  bottom: 0;
  left: 0;
  color: #c0392b;
  font-size:11px;
}
.student_details_container{
  width: 100%;
}
.main-nav.top_nav h3 {
    margin-bottom: 0;
    position: relative;
    font-size: 22px;
    top: 10px;
    text-align: left;
    width: 100%;
    padding-left: 30px;
    box-sizing: border-box;
    font-weight: 900;
}