/* Law Academy overrides on top of the EduPlus template styles. */

body {
  font-family: var(--font-open-sans), "Open Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-noto-serif), "Droid Serif", serif;
}

/* Text wordmark used until the logo is ready. */
.site-wordmark {
  display: inline-block;
  font-family: var(--font-noto-serif), "Droid Serif", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #202c45;
}
.site-wordmark:hover,
.site-wordmark:focus {
  color: #202c45;
}
.site-wordmark span {
  color: #F2184F;
}
.footer .site-wordmark {
  color: #fff;
}

/* Menuzord dropdowns: opened by hover/focus instead of the jQuery plugin. */
.menuzord-menu > li > a .indicator {
  margin-left: 6px;
}
@media only screen and (min-width: 901px) {
  .menuzord-menu > li:hover > ul.dropdown,
  .menuzord-menu > li:focus-within > ul.dropdown {
    display: block;
  }
}

/* Menuzord mobile toggle (the template's jQuery plugin is replaced by React state). */
.menuzord .showhide {
  border: 0;
  background: transparent;
  cursor: pointer;
}
@media only screen and (max-width: 900px) {
  .menuzord .showhide {
    display: block;
  }
  .menuzord .menuzord-menu {
    display: none;
    width: 100%;
    float: left !important;
  }
  .menuzord.menu-open .menuzord-menu {
    display: block;
  }
  .menuzord .menuzord-menu > li {
    width: 100%;
    display: block;
    position: relative;
  }
  .menuzord .menuzord-menu > li > a {
    width: 100%;
    padding: 12px 20px;
    display: block;
    border-bottom: solid 1px #f0f0f0;
  }
  .menuzord .menuzord-menu ul.dropdown {
    display: block;
    position: static;
    width: 100%;
    float: none;
    box-shadow: none;
  }
  .menuzord .menuzord-menu ul.dropdown li a {
    float: none;
    display: block;
    padding-left: 40px;
  }
}

/* Icon-box grid: equal rows, with a short last row centred (e.g. five resources). */
.row.feature-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.row.feature-boxes::before,
.row.feature-boxes::after {
  display: none;
}

/* Template "working-process" steps, sized for six steps (icons are spans, not links). */
.working-process {
  padding: 0;
}
.working-process li .icon-circle {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  color: #fff;
  background-color: #202c45;
}
.working-process li .icon-circle i {
  font-size: 18px;
}
.working-process > li h5 {
  margin-top: 15px;
}
.working-process > li p {
  font-size: 13px;
}

/* MCQ practice and mock exams. */
.mcq-question {
  margin-bottom: 30px;
}
.mcq-options {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mcq-options li {
  margin-bottom: 8px;
}
.mcq-options button {
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #555;
}
.mcq-options button:hover:not(:disabled) {
  border-color: #202c45;
}
.mcq-options button.selected {
  border-color: #202c45;
  background: #f2f4f8;
}
.mcq-options button.correct {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
}
.mcq-options button.incorrect {
  border-color: #c62828;
  background: #ffebee;
  color: #b71c1c;
}
.exam-timer {
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Responsive 16:9 video frame for lectures. */
.video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #202c45;
}
.video-frame iframe,
.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hero slider (replaces Revolution Slider). */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background-color: #202c45;
}
.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}
.hero-slider .hero-slide.active {
  opacity: 1;
  visibility: visible;
}
.hero-slider .hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
}
.hero-slider .hero-slide .container {
  position: relative;
}
.hero-slider .hero-title {
  max-width: 700px;
  font-size: 56px;
  font-weight: 800;
  line-height: 70px;
}
.hero-slider .hero-text {
  max-width: 600px;
  font-size: 18px;
  font-weight: 600;
  line-height: 30px;
}
.hero-slider .hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  text-align: center;
}
.hero-slider .hero-dots button {
  width: 12px;
  height: 12px;
  margin: 0 5px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
}
.hero-slider .hero-dots button.active {
  background: #fff;
}
@media only screen and (max-width: 767px) {
  .hero-slider {
    min-height: 440px;
  }
  .hero-slider .hero-title {
    font-size: 36px;
    line-height: 45px;
  }
  .hero-slider .hero-text {
    font-size: 14px;
    line-height: 25px;
  }
}

/* Carousel (replaces Owl Carousel): scroll-snap track with owl-style nav. */
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  margin: 0 -15px;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track > .item {
  flex: 0 0 100%;
  padding: 0 15px;
  scroll-snap-align: start;
}
@media only screen and (min-width: 768px) {
  .carousel-track.cols-3 > .item { flex-basis: 50%; }
  .carousel-track.cols-4 > .item { flex-basis: 50%; }
}
@media only screen and (min-width: 992px) {
  .carousel-track.cols-3 > .item { flex-basis: 33.3333%; }
  .carousel-track.cols-4 > .item { flex-basis: 25%; }
}
.carousel-nav {
  text-align: center;
  margin-top: 10px;
}
.carousel-nav button {
  width: 36px;
  height: 36px;
  margin: 0 4px;
  border: 0;
  color: #fff;
  background-color: #202c45;
}
.carousel-nav button:hover {
  background-color: #F2184F;
}

/* Section backgrounds set from props instead of the template's data-bg-img script. */
.bg-cover {
  background-size: cover;
  background-position: center;
}

/* MDX article body inside the template's entry-content. */
.article-body p {
  margin-bottom: 15px;
}
.article-body h2,
.article-body h3 {
  margin-top: 25px;
}
