/*--------------------------------------------------------------
# Reset
--------------------------------------------------------------*/
body {
  width: 100%;
  font-family: 'SolaimanLipi', Arial, sans-serif;
  color: #333;
  font-size: 18px;
  margin: 0 auto;
  padding: 0;
}
.container {
  width: 90%;
  margin: 0 auto;
}
.container-fluid {
  width: 100%;
}
a {
  color: #333;
  text-decoration: none;
  transition: all .3s;
}
a:hover {
  text-decoration: none;
}
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}
ul {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
img {
  width: 100%;
}
.f-arial {
  font-family: Arial;
}
/*--------------------------------------------------------------
# Banner Area
--------------------------------------------------------------*/
.banner-area {
  background-color: #2D3192;
  padding: 20px 0;
  display: flex;
  justify-content: center;
}
.banner-area .banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;

  .left-logo-media {
    max-width: 110px;
  }
  .left-logo-media img {
    max-width: 110px;
    transition: all .5s;
    animation: circle1 6s linear infinite;
  }
  .right-banner-media {
    max-width: 550px;
  }

}

/* For circle animation*/
@keyframes circle1 {
  0% {
    transform: rotate(0deg) translate(-8px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translate(-8px) rotate(-360deg);
  }
}

/*--------------------------------------------------------------
# fomr input style
--------------------------------------------------------------*/
.custom-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f7f7fb;
}

/*--------------------------------------------------------------
# Main Filter Area
--------------------------------------------------------------*/
.main-filter-area {
  background-image: url(../img/bodybg.jpeg);
  background-position: top;
  background-repeat: repeat;
}
.filter-details {
  max-width: 770px;
  margin: 0 auto;
  padding: 20px 20px 30px 20px;
}

.filter-details .tabs {
  background-color: #fff;
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: space-between;
  border: 1px solid #e5e7eb;
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);

  .tab {
    padding: 12px 5px;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 300;
    color: #2D3192;
    font-size: 20px;
    transition: 0.3s;
    width: 238px;
    text-align: center;
  }
  .tab.active {
    background: #2D3192;
    color: #fff;
  }
}

.filter-details {
  .tab-content {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    padding: 29px 24px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s ease, transform 0.4s ease;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

}
.tab-content .form-group {
  margin-bottom: 20px;

  label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 18px;
    span {
      color: #FF0033;
    }
  }

  input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    color: rgba(0,0,0,.7);
    font-weight: 600;
    background-color: rgba(45,49,146,.04);
  }

  input:focus {
    outline: none;
    box-shadow: none;
  }
}

.tab-content .buttons {
  display: grid;
  grid-gap: 15px;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;

  .btn {
    background-color: transparent;
    color: #2D3192;
    border: 1px solid #2D3192 !important;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 300;
    transition: all .3s;
  }

  .btn.submit, .btn.reset:hover {
    background-color: #2D3192;
    color: white;
  }

  .btn.submit:hover {
    background-color: #2D3192;
    opacity: .9;
  }
}

/* Custom Dropdown Styles */
.tab-content .form-group .custom-dropdown {
  position: relative;
  user-select: none;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  background: white;

  .dropdown-selected {
    padding: 10px;
    font-size: 16px;
    color: rgba(0,0,0,.7);
    position: relative;
    background-color: rgba(45,49,146,.04);
  }
  .dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 3px;
    max-height: 250px;
    overflow-y: auto;
    padding: 4px;
  }

  .dropdown-item {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    color: rgba(0,0,0,.7);
    border-radius: 6px;
  }
  .dropdown-item:hover, .dropdown-item.active {
    background-color: rgba(45,49,146,.04);;
  }
}
.custom-dropdown > span {
  position: absolute;
  right: 0;
  font-size: 25px;
  line-height: 30px;
  top: 8px;
  color: rgba(0,0,0,.7);
}

.sub-tab-details {
  .sub-tabs {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;

    .sub-tab {
      border-radius: 12px;
      padding: 8px;
      width: 70px;
      text-align: center;
      cursor: pointer;
      transition-property: background-color, color;
      transition-duration: 0.3s;
      color: #2D3192;
    }

    .sub-tab.active {
      background-color: #2D3192;
      color: #fff;
    }
  }
  .sub-tab-content.active {
    display: block;
  }

  .sub-tab-content {
    display: none;
  }

}

/*--------------------------------------------------------------
# Footer Area
--------------------------------------------------------------*/
.footer-area {
  background-color: #2D3192;
  padding: 20px 30px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left .copy-right p {
  color: #fff;
  font-weight: 300;
  font-size: 16px;
}
.footer-right a {
  color: #fff;
  font-size: 16px;
}
.footer-right a:hover {
  color: #ddd;
}


/*--------------------------------------------------------------
# Responsive CSS
--------------------------------------------------------------*/

@media only screen and (max-width: 767px) {
  .container {
    width: 95%;
  }
  .filter-details {
    padding: 30px 10px;
    .tabs .tab {
      padding: 10px 12px;
      border-radius: 16px;
      width: auto;
    }
  }
  .footer-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 10px;
    place-items: center;
    text-align: center;
  }
}

@media only screen and (max-width: 575px) {
  .banner-area {
    padding: 10px 0;
  }
  .banner-area .banner-content {
    grid-gap: 15px;

    .left-logo-media {
      max-width: 90px;
    }

    .left-logo-media img {
      max-width: 90px;
    }
  }

 .filter-details .tabs {
    gap: 5px;
    padding: 5px;
    border-radius: 8px;
    .tab {
      padding: 5px 5px;
      font-size: 14px;
      border-radius: 8px;
    }
  }
  .tab-content .buttons .btn {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
  }
  .tab-content .form-group label {
    font-size: 17px;
  }
}

/*Personal Result CSS*/

/*@page {
  size: A4;
  margin: 20mm;
}*/
.page-tools button {
  border: none;
  background-color: #2D3192;
  color: #fff;
  padding: 7px 10px;
  cursor: pointer;
  transition: all .3s;
  border-radius: 10px;
}
.personal-result-area, .center-result-area {
  position: relative;
}
.page-tools {
  position: sticky;
  right: 5px;
  top: 10px;
  text-align: right;
}
.page-tools button:hover {
  box-shadow: 0 2px 3px #aaa;
}
.page-tools button i {
  margin-right: 5px;
  font-size: 14px;
}
@media print {
  .page-tools {
    display: none !important;
  }
}

.print-area {
  width: 100%;
  height: 100%;
  page-break-after: always;
}
.printed-banner {
  max-width: 800px;
  margin: 0 auto;
}
.printed-banner img {
  width: 100%;
}

.personal-result-details {
  max-width: 700px;
  margin: 0 auto 20px;
  margin-top: 40px;
}
.result-date h3 {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
}
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #8B8B8B;
  padding: 4px;
  vertical-align: middle;
}

.title {
  background-color: #D7E3BD;
  text-align: center;
  font-weight: bold;
  font-size: 22px;
}
@media print {
  .title {
    background-color: #D7E3BD;
  }
}
.subject-header {
  background-color: #D7E3BD;
  text-align: center;
}
.subject-header th {
  font-size: 18px;
}
.center {
  text-align: center;
}
.left {
  text-align: left;
}
.right {
  text-align: right;
}
.no-border {
  border: none;
}

/*Center Result CSS*/
.center-result-details {
  max-width: 900px;
  margin: 0 auto 20px;
  margin-top: 10px;
  .result-date h3 {
    text-align: center;
  } 
}
.center-result-area .printed-banner {
  max-width: 900px;
  margin: 0 auto;
}
table tr.center-result-title th {
  background-color: #D7E3BD;
  font-weight: bold;
  font-size: 18px;
}

@media print {
  table tr.center-result-title th {
    background-color: #D7E3BD;
  }
}
.center-result-details table tr td {
  text-align: center;
}
.center-result-details table tr td:nth-child(4) {
  text-align: left;
}

.center-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notice p {
    text-align: left;
    font-size: 16px;
}
.publish-date {
    margin-top: 10px;
}
.signature img {
    max-width: 120px;
}
.signature p {
    text-align: right;
}

@media (max-width: 575px) {
  .center-footer {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
  }
  .signature {
    text-align: right;
  }
}
/*Merit List CSS*/

.merit-result-details {
    max-width: 900px;
    margin: 10px auto 20px;
}

.merit-result-details .result-date {
    text-align: center;
    margin-bottom: 20px;
}

.result-date h4 {
    font-size: 24px;
    font-weight: 300;
}

.merit-result-details table tr td {
  text-align: center;
}
.merit-result-details table tr td:is(:nth-child(4), :nth-child(5)) {
  text-align: left;
}
.result-table {
  width: 100%;
  overflow-x: auto;
}

.result-table table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.result-table th,
.result-table td {
  white-space: nowrap;
}
@media (max-width: 768px) {
  .result-table  {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.center-footer.merit-result-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 0;
}