/* Joomla 4/5 additions: core modules styled to match the original ARI menu and EasyBlog blocks */

/* Main menu: core mod_menu, dropdowns on hover (the ARI menu did this with ExtJS) */
.imainmenu .desktopmenu ul {
  margin: 0;
  padding: 0;
}
.imainmenu .desktopmenu ul li {
  position: relative;
}
.imainmenu .desktopmenu ul li ul {
  display: none;
  position: absolute;
  top: 30px;
  left: 0;
  z-index: 1000;
  padding: 0;
}
.imainmenu .desktopmenu ul li:hover > ul {
  display: block;
}
.imainmenu .desktopmenu ul li ul li ul {
  top: 0;
  left: 200px;
}
.imainmenu .desktopmenu ul li ul li a,
.imainmenu .desktopmenu ul li.current ul li a {
  background: none;
  border-radius: 0;
}
.imainmenu .desktopmenu ul li ul li a:hover {
  background-color: #521311;
  color: #ffffff;
}
@media (min-width: 751px) {
  .hiddenmobile {
    display: none;
  }
}
/* Mobile menu button: Bootstrap marks the open menu with .in/.collapsing, which template.css
   never showed (the menu was broken on the live Joomla 3 site too) */
@media (max-width: 750px) {
  .nav-collapse.in,
  .nav-collapse.collapsing {
    display: block;
    height: auto !important;
  }
  .hiddenmobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #521311;
  }
  .hiddenmobile ul li a {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: block;
    padding: 8px 12px;
  }
  .hiddenmobile ul ul li a {
    padding-left: 28px;
  }
  .hiddenmobile ul ul ul li a {
    padding-left: 44px;
  }
}

/* Search box (Smart Search module), drawn like the old mod_search box: field + maroon icon button */
.mainsearch form,
.mainsearch .mod-finder {
  margin: 0;
}
.mainsearch .mod-finder__search {
  border: #CCCCCC solid 1px;
  height: 26px;
  width: 200px;
  box-sizing: border-box;
  display: flex;
}
.mainsearch .mod-finder__search input[type="text"] {
  border: 0 none;
  box-shadow: none;
  color: #000000;
  flex: 1 1 auto;
  font-size: 12px;
  height: 24px;
  margin: 0;
  min-width: 0;
  padding: 0 0 0 10px;
}
.mainsearch .mod-finder__search .btn {
  background: url(../images/searchButton.gif) no-repeat center center;
  border: 0 none;
  border-radius: 0;
  flex: 0 0 24px;
  font-size: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  width: 24px;
}
.mainsearch .mod-finder__search .btn span {
  display: none;
}

/* "Immigration Updates": dated headlines like the old EasyBlog block */
.latest-updates .mod-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 0;
}
.latest-updates .mod-item:last-child {
  border-bottom: 0;
}
.latest-updates .mod-muted {
  color: #888888;
  font-size: 12px;
}
.latest-updates .eb-mod-title a {
  font-weight: bold;
  font-size: 13px;
  line-height: 18px;
}

/* Sidebar categories (core mod_articles_categories) */
.right ul.mod-articlescategories,
.right ul.categories-module {
  list-style: none;
  margin: 0;
  padding: 0;
}
.right ul.mod-articlescategories li,
.right ul.categories-module li {
  padding: 6px 0;
  border-bottom: 1px solid #e5e5e5;
}
.right ul.mod-articlescategories li h4,
.right ul.categories-module li h4 {
  font-size: 14px;
  font-weight: normal;
  margin: 0;
}

/* FAQs topic index (core categories view): one card per topic, like the EasyBlog category list */
.com-content-categories__items {
  margin: 10px 0 0;
}
.com-content-categories__item {
  background: #f4f4f4;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  margin: 0 0 10px;
  padding: 14px 16px;
}
.com-content-categories__item-title {
  font-size: 16px;
  margin: 0;
}
.com-content-categories__item .badge {
  display: none;
}

/* Blog listings (FAQ topics, Resources): dated excerpt cards with a "Read more" button */
.com-content-category-blog__item,
.blog-items .blog-item {
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  margin: 0 0 20px;
  padding: 16px 20px;
}
.blog-item .item-title,
.blog-item h2 {
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 6px;
}
.blog-item .item-title a,
.blog-item h2 a {
  color: #093552;
}
.blog-item .article-info,
.item-page .article-info {
  color: #888888;
  font-size: 12px;
  margin: 0 0 10px;
  padding: 0;
}
.article-info dd {
  margin: 0;
}
.article-info .icon-calendar {
  display: none;
}
.readmore .btn,
p.readmore a {
  background: #eeeeee;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  color: #333333;
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  text-decoration: none;
}
.readmore .btn:hover,
p.readmore a:hover {
  background: #521311;
  border-color: #521311;
  color: #ffffff;
}
.readmore .icon-chevron-right,
.readmore .icon-chevron-left {
  display: none;
}

/* Category lists (FAQs topics, Resources): date column and pagination */
.com-content-category table.category {
  width: 100%;
}
.com-content-category table.category th,
.com-content-category table.category td {
  padding: 6px 4px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: top;
}
.com-content-category .pagination ul,
.pagination ul.pagination {
  list-style: none;
  padding: 0;
}
.pagination li {
  display: inline-block;
  margin: 0 3px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}
