/* Joomla 6 / 5 compatibility layer for JA Fixel RTL */
html, body {
  direction: rtl;
  overflow-x: hidden;
  font-family: 'Cairo', 'Markazi Text', Tahoma, Arial, sans-serif;
  background-color: #f2f2f2;
  color: #333;
  margin: 0;
}
#t3-mainnav.t3-mainnav {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
  z-index: 100;
}
#t3-mainnav .navbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 15px;
}
#t3-mainnav .logo .brand a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #222 !important;
  font-weight: 700;
  font-size: 22px;
}
#t3-mainnav .logo .brand img {
  max-height: 44px;
  width: auto;
}
#t3-mainnav ul.mod-menu,
#t3-mainnav ul.nav {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
#t3-mainnav ul.mod-menu > li,
#t3-mainnav ul.nav > li {
  position: relative;
  background: transparent !important;
}
#t3-mainnav ul.mod-menu > li > a,
#t3-mainnav ul.nav > li > a {
  display: block;
  padding: 18px 14px;
  background: transparent !important;
  color: #222222 !important;
  text-decoration: none;
  font-family: 'Markazi Text', serif;
  font-size: 20px;
  line-height: 24px;
}
#t3-mainnav ul.mod-menu > li.active > a,
#t3-mainnav ul.mod-menu > li > a:hover,
#t3-mainnav ul.nav > li.active > a,
#t3-mainnav ul.nav > li > a:hover {
  color: #e65100 !important;
}
#t3-mainnav ul.mod-menu ul.mod-menu__sub,
#t3-mainnav ul.nav ul.nav-child {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  z-index: 200;
}
#t3-mainnav ul.mod-menu li:hover > ul.mod-menu__sub,
#t3-mainnav ul.nav li:hover > ul.nav-child {
  display: block;
}
#t3-mainnav ul.mod-menu ul.mod-menu__sub li a,
#t3-mainnav ul.nav ul.nav-child li a {
  display: block;
  padding: 8px 16px;
  color: #222 !important;
  text-decoration: none;
  font-size: 16px;
}
#t3-mainnav ul.mod-menu ul.mod-menu__sub li a:hover {
  background: #f5f5f5;
  color: #e65100 !important;
}
#t3-mainbody {
  padding-top: 24px;
  padding-bottom: 40px;
}

/* JA Fixel 4-column dense grid */
.fixel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 0;
  background: #fff;
}
.fixel-grid .items {
  position: relative;
  overflow: hidden;
  margin: 0;
  width: 100% !important;
  height: 100% !important;
}
.fixel-grid .items.grid-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}
.fixel-grid .items.grid-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}
.fixel-grid .items > article,
.fixel-grid .item-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}
.fixel-grid .item-image.front {
  width: 100%;
  height: 100%;
}
.fixel-grid .item-image.front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fixel-grid .item-desc.back {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.86);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.fixel-grid .items:hover .item-desc.back,
.fixel-grid .items.no-image .item-desc.back {
  opacity: 1;
}
.fixel-grid .item-desc.back h2.article-title {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 8px;
}
.fixel-grid .item-desc.back h2.article-title a {
  color: #fff;
  text-decoration: none;
}
.fixel-grid .item-desc.back .item-cat {
  font-size: 13px;
  color: #ffb74d;
}
.fixel-grid .items.highlight {
  background: #d82b31;
  color: #fff;
  overflow-y: auto;
}
.fixel-grid .items.blue {
  background: #0077b5;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.com-content-article,
.com-content-category,
.com-content-categories {
  background: #fff;
  padding: 24px;
  border: 1px solid #e6e6e6;
}
.com-content-article img {
  max-width: 100%;
  height: auto;
}
table.category,
.com-content-category__table {
  width: 100% !important;
  max-width: 100% !important;
  background: #fff;
}
table.category td a,
.com-content-category__table td a {
  color: #222 !important;
}
.t3-footer {
  background: #222;
  color: #aaa;
  padding: 24px 0;
}
.t3-footer a {
  color: #fff;
}
@media (max-width: 979px) {
  .fixel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .fixel-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .fixel-grid .items.grid-2x2 {
    grid-column: span 1;
    grid-row: span 1;
  }
  .fixel-grid .items.grid-1x1 {
    height: 240px !important;
  }
}
