/* Blog content */
body{padding: 0px!important; margin: 0px!important;}

.blog_detail_content {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}

.blog_detail_content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 8px;
}

.blog_detail_content h2,
.blog_detail_content h3,
.blog_detail_content h4 {
  margin: 30px 0 14px;
  color: #172b4d;
  font-weight: 700;
  line-height: 1.3;
}

/* Sidebar */
.blog_categories {
  width: 100%;
  padding: 0;
}

.admissionEnquiry,
.RecommendedCourses,
.right_LB {
  width: 100%;
  border-radius: 8px;
}

/* Admission enquiry */
.admissionEnquiry {
  margin-bottom: 30px;
  padding: 20px 14px;
  background: #f5f9fc;
  box-shadow: 0 8px 24px rgba(17, 45, 78, 0.08);
}

.admissionEnquiry h4,
.RecommendedCourses h3,
.right_LB h3 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  color: #20252b;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
  text-transform: uppercase;
  border-bottom: 1px solid #dfe5e9;
}

.admissionEnquiry h4::after,
.RecommendedCourses h3::after,
.right_LB h3::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 64px;
  height: 3px;
  background: #20252b;
  content: '';
}

.admissionEnquiry form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.admissionEnquiry .form-control {
  width: 100%;
  height: 36px;
  padding: 8px 10px;
  color: #333;
  font-size: 13px;
  background: #fff;
  border: 1px solid #d4dde4;
  border-radius: 6px;
  outline: none;
  box-shadow: none;
}

.admissionEnquiry .form-control::placeholder {
  color: #60666b;
}

.admissionEnquiry .form-control:focus {
  border-color: #0864a5;
  box-shadow: 0 0 0 3px rgba(8, 100, 165, 0.1);
}

.admissionEnquiry input[type='submit'] {
  width: 198px;
  height: 38px;
  margin: 2px auto 0;
  padding: 0 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: #075e9f;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.admissionEnquiry input[type='submit']:hover {
  background: #064b80;
  transform: translateY(-1px);
}

/* Recommended courses */
.RecommendedCourses {
  margin-bottom: 30px;
}

.RecommendedCourses .overflow-scrolls {
  max-height: 382px;
  padding: 12px 10px;
  overflow-y: auto;
  background: #f5f9fc;
  border-radius: 6px;
  scrollbar-color: #c7ced3 transparent;
  scrollbar-width: thin;
}

.RecommendedCourses .overflow-scrolls::-webkit-scrollbar,
.right_LB .overflow-scrolls::-webkit-scrollbar {
  width: 5px;
}

.RecommendedCourses .overflow-scrolls::-webkit-scrollbar-thumb,
.right_LB .overflow-scrolls::-webkit-scrollbar-thumb {
  background: #c7ced3;
  border-radius: 10px;
}

.box_RecommendedCourses {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #dfe6ea;
}

.box_RecommendedCourses:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.box_RecommendedCourses > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.box_RecommendedCourses img {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}

.box_RecommendedCourses > div > div {
  min-width: 0;
  padding-top: 2px;
}

.box_RecommendedCourses h4 {
  margin: 0 0 6px;
  color: #262b30;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1px;
  line-height: 1.3;
  text-transform: uppercase;
}

.box_RecommendedCourses p {
  min-height: 36px;
  margin: 0 0 12px;
  color: #252a2e;
  font-size: 13px;
  line-height: 1.4;
}

.box_RecommendedCourses a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 5px 12px;
  color: #075e9f;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #075e9f;
  border-radius: 18px;
  transition: color 0.2s ease, background 0.2s ease;
}

.box_RecommendedCourses a:hover {
  color: #fff;
  background: #075e9f;
}

/* Latest blogs */
.right_LB {
  margin-top: 0;
}

.right_LB .overflow-scrolls {
  max-height: 405px;
  margin: 0;
  padding: 12px 9px 10px 0;
  overflow-y: auto;
  background: #f5f9fc;
  border-radius: 6px;
  list-style: none;
  scrollbar-color: #c7ced3 transparent;
  scrollbar-width: thin;
}

.right_LB ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.latest-blog-item {
  padding: 0 8px 14px 0;
  margin: 0 0 14px;
  border-bottom: 1px solid #dfe6ea;
}

.latest-blog-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.latest-blog-item .blog_box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 65px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.latest-blog-item .blog_box > img {
  flex: 0 0 85px;
  width: 85px;
  height: 65px;
  object-fit: cover;
  border-radius: 4px;
}

.latest-blog-item .blog_box > div {
  min-width: 0;
  padding-top: 1px;
}

.latest-blog-item h4 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: #30353a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.latest-blog-item p {
  display: none;
}

.latest-blog-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 4px 13px;
  color: #075e9f;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #075e9f;
  border-radius: 18px;
  transition: color 0.2s ease, background 0.2s ease;
}

.latest-blog-item a:hover {
  color: #fff;
  background: #075e9f;
}

.latest-blog-item span {
  display: none;
}

/* Related articles */
.RelatedArticles_sec {
  padding: 55px 0 20px;
}

.related-articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  border-bottom: 1px solid #899198;
}

.related-articles-header h4 {
  margin: 0 0 10px;
  color: #20252b;
  font-size: 22px;
  font-weight: 800;
}

.related-articles-buttons {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
}

.related-articles-buttons button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #1769aa;
  font-size: 21px;
  line-height: 1;
  background: #fff;
  border: 1px solid #d3dbe0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.related-articles-buttons button:hover {
  color: #fff;
  background: #1769aa;
}

.related-articles-slider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.related-articles-slider::-webkit-scrollbar {
  display: none;
}

.related-article-slide {
  min-width: calc((100% - 48px) / 3);
}

.related-article-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
}

.related-article-card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.related-article-content {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  padding: 16px;
}

.related-article-content h5 {
  min-height: 45px;
  margin: 0 0 10px;
  color: #292d31;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.related-article-content p {
  display: -webkit-box;
  margin: 0 0 15px;
  overflow: hidden;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.related-article-content a {
  width: max-content;
  margin-top: auto;
  color: #1769aa;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.blog_detail_content table {
  display: block;
  overflow: scroll;
}

/* Tablet */
@media (max-width: 991px) {
  .box_RecommendedCourses img {
    flex-basis: 95px;
    width: 95px;
    height: 95px;
  }

  .related-article-slide {
    min-width: calc((100% - 24px) / 2);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .blog_detail_content {
    font-size: 15px;
    line-height: 1.7;
  }

  .admissionEnquiry {
    padding: 18px 12px 20px;
  }

  .RecommendedCourses .overflow-scrolls,
  .right_LB .overflow-scrolls {
    max-height: none;
  }

  .box_RecommendedCourses img {
    width: 105px;
    height: 105px;
  }

  .related-article-slide {
    min-width: 88%;
  }

  .related-articles-header h4 {
    font-size: 19px;
  }
}

.blog_description_head h1 {
    font-size: 25px;
    font-weight: 700;
    color: #3d3b3b;
    margin-bottom: 15px;
}
.blog_det_sec {
    padding: 30px 0 50px;
}

.blog_det_sec nav {
    box-shadow: #0000001a 0 10px 50px;
    position: relative;
    margin: 0 0 40px;
    padding: 10px;
    border-radius: 3px;
}

li.breadcrumb-item {
    color: #3d3b3b;
    font-size: 14px;
    font-weight: 600;
}

.blog_det_sec a.active, li.breadcrumb-item a{
    color: #d9235c;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline !important;
}

ol.breadcrumb {
    margin-bottom: 0px;
}

#CMSModal.modal {
  background: rgba(0, 0, 0, 0.45);
}

#CMSModal.modal .modal-dialog {
  width: min(980px, calc(100% - 2rem));
  max-width: 980px;
  margin: 1.75rem auto;
}

#CMSModal .admissionEnquiry .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
}

#CMSModal .admissionEnquiry .col-md-6 {
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  min-width: 0;
  padding: 0;
}

#CMSModal .admissionEnquiry .col-md-6:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 12px 24px;
}

#CMSModal .admissionEnquiry img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  #CMSModal.modal .modal-dialog {
    width: calc(100% - 1.5rem);
    max-width: calc(100% - 1.5rem);
  }

  #CMSModal .admissionEnquiry .row {
    flex-wrap: wrap;
  }

  #CMSModal .admissionEnquiry .col-md-6 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  #CMSModal .admissionEnquiry img {
    height: auto;
  }
}

#CMSModal #pop-btn {
  width: 100%;
  height: auto;
  margin: 24px 0 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: #000;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

#CMSModal #pop-btn:hover {
  background: #111;
  transform: none;
}

#CMSModal .phone-container {
  display: flex;
  align-items: stretch;
  width: 100%;
}

#CMSModal .phone-container .country-code {
  width: 28%;
  max-width: 110px;
}

#CMSModal .phone-container select.form-select {
  height: 100%;
  border-radius: 5px 0 0 5px;
}

#CMSModal .phone-container input.form-control {
  margin-bottom: 0;
  border-radius: 0 5px 5px 0;
}

#CMSModal .text-danger {
  margin: 8px 0 0;
  color: #dc3545;
  font-size: 13px;
}