/* BaseFrame -> Chota — ultra-minimal, like the 3KB framework itself */

/* Chota uses html { font-size: 62.5% } which breaks all rem values in base.css.
   Fix: reset to 100% and override Chota's --font-size to keep body text correct. */
html { font-size: 100% !important; }
:root {
  --font-size: 1rem;
  --bf-accent: #1a9fff;
  --bf-bg: #fff;
  --bf-text: #333;
  --bf-text-soft: #888;
  --bf-border: #e2e2e2;
  --bf-hover-bg: #e3f2fd;
  --bf-topbar-hover: #1a9fff;
  --bf-mark-bg: #e3f2fd;
  --bf-mark-text: #1a9fff;
  --bf-topbar-bg: #f0f7fe;
  --bf-topbar-border: #dde9f5;
}

/* ---- Header -------------------------------------------------------- */
.bf-header {
  background: #fff;
  border-bottom: 1px solid #e2e2e2;
}
.bf-logo { font-size: 20px; }
.bf-logo-label { color: #1a9fff; }
.bf-logo-site { color: #333; }

/* Override Chota's .nav a padding/sizing */
.bf-nav .nav-item > a,
.bf-nav .mod-menu__toggle-sub { color: #333; text-decoration: none; font-size: 14px; padding: .5rem .75rem; }
/* Override Chota's .nav min-height: 5rem */
.bf-nav .mod-menu.nav { min-height: auto; }
.bf-nav .nav-item > a:hover,
.bf-nav .mod-menu__toggle-sub:hover { color: #1a9fff; }
.bf-nav .mod-menu__sub { border-color: #e2e2e2; border-radius: .3rem; }
.bf-nav .mod-menu__sub .nav-item > a { color: #333; }
.bf-nav .mod-menu__sub .nav-item > a:hover { background: #e3f2fd; color: #1a9fff; }
.bf-nav .nav-item.current > a,
.bf-nav .nav-item.active > a { color: #1a9fff; font-weight: 600; }
.bf-hamburger span { background: #333; }

@media (max-width: 768px) {
  .bf-nav { background: #fff; }
}

/* ---- Hero ---------------------------------------------------------- */
.bf-hero { background: #1a9fff; color: #fff; }
.bf-hero .title { color: #fff; font-size: 2.25rem; font-weight: 700; }
.bf-hero .subtitle { color: rgba(255,255,255,.8); }

/* ---- Cards --------------------------------------------------------- */
.bf-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.bf-card {
  background: #fff; border-radius: .3rem;
  box-shadow: 0 1px 3px #747681;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s;
}
.bf-card:hover { border-color: #1a9fff; }
.bf-card-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.bf-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.bf-card-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; }
.bf-tag {
  display: inline-block; padding: .15rem .5rem; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; background: #e3f2fd; color: #1a9fff; border-radius: .3rem;
}
.bf-card-title { font-size: 1.05rem; font-weight: 600; margin: 0 0 .3rem; }
.bf-card-title a { color: #333; text-decoration: none; }
.bf-card-title a:hover { color: #1a9fff; }
.bf-card-date { font-size: .8rem; color: #888; margin-bottom: .4rem; display: block; }
.bf-card-text { font-size: .9rem; color: #555; flex: 1; }
.bf-card-readmore {
  display: inline-block; margin-top: auto; padding-top: .6rem;
  font-size: .85rem; font-weight: 600; color: #1a9fff;
  text-decoration: none; border-top: 1px solid #e2e2e2;
}
.bf-card-readmore:hover { text-decoration: underline; }

/* Leading card */
.bf-blog-leading { margin-bottom: 1.5rem; }
.bf-blog-leading .bf-card { flex-direction: row; }
.bf-blog-leading .bf-card-image { flex: 0 0 50%; }
.bf-blog-leading .bf-card-image img { height: 100%; min-height: 260px; }
.bf-blog-leading .bf-card-title { font-size: 1.4rem; }
@media (max-width: 768px) {
  .bf-blog-leading .bf-card { flex-direction: column; }
  .bf-blog-leading .bf-card-image { flex: none; }
  .bf-blog-leading .bf-card-image img { height: 200px; min-height: auto; }
}

/* ---- Sidebar ------------------------------------------------------- */
.bf-module {
  background: #fff; border: 1px solid #e2e2e2; border-radius: .3rem;
  padding: 1rem; margin-bottom: 1.5rem;
}
.bf-module-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #888; border-bottom: 1px solid #e2e2e2;
  padding-bottom: .4rem; margin-bottom: .6rem;
}

.bf-sidebar .mod-articles-items { list-style: none; padding: 0; margin: 0; }
.bf-sidebar .mod-articles-item {
  margin: 0 !important; padding: 0 !important;
  background: none !important; box-shadow: none !important; border-radius: 0 !important;
}
.bf-sidebar .mod-articles-item-content { display: contents; }
.bf-sidebar .mod-articles-title { font-size: .88rem !important; font-weight: 400 !important; margin: 0 !important; }
.bf-sidebar .mod-articles-link {
  display: block; padding: .35rem .4rem; text-decoration: none;
  color: #333; border-radius: .3rem; transition: background .15s;
}
.bf-sidebar .mod-articles-link:hover { background: #e3f2fd; color: #1a9fff; }

.bf-sidebar .tagspopular ul { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; }

/* ---- Content ------------------------------------------------------- */
body.bf { color: #333; }
.bf-content { color: #333; }

.page-header h1 { font-size: 2.25rem; font-weight: 700; color: #333; margin-bottom: 1rem; }

.com-content-article__body h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; color: #333; }
.com-content-article__body h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; color: #333; }
.com-content-article__body hgroup { margin-bottom: 1.5rem; }
.com-content-article__body hgroup p { color: #888; }
.com-content-article__body section + section {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e2e2e2;
}
.com-content-article__body .grid > article,
.com-content-article__body .home-grid > article {
  background: #fff; color: #333; border-radius: .3rem;
  border: 1px solid #e2e2e2; padding: 1.25rem;
  transition: border-color .15s;
}
.com-content-article__body .grid > article:hover,
.com-content-article__body .home-grid > article:hover { border-color: #1a9fff; }
.com-content-article__body .grid > article ul,
.com-content-article__body .home-grid > article ul {
  list-style: disc; padding-left: 1.25rem; margin: .5rem 0 .75rem;
}
.com-content-article__body .grid > article li,
.com-content-article__body .home-grid > article li { margin-bottom: .2rem; }
.com-content-article__body .grid > article > header,
.com-content-article__body .home-grid > article > header {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #1a9fff; margin-bottom: .6rem; padding-bottom: .4rem;
  border-bottom: 1px solid #e2e2e2;
}
.com-content-article__body .grid > article > h3,
.com-content-article__body .home-grid > article > h3 { margin-top: 0; color: #1a9fff; font-size: 1.3rem; }
.com-content-article__body .grid > article > hgroup > h3,
.com-content-article__body .home-grid > article > hgroup > h3 { margin-top: 0; color: #1a9fff; font-size: 1.75rem; font-weight: 700; }
.com-content-article__body .grid > div > h3 { font-size: 1.75rem; font-weight: 700; color: #1a9fff; margin-bottom: .25rem; }

/* Button-like links */
.com-content-article__body a[role="button"] {
  display: inline-flex; padding: .5rem 1.25rem; font-weight: 600; font-size: .9rem;
  text-decoration: none; border-radius: .3rem; transition: background .15s;
  background: #1a9fff; color: #fff; border: none;
}
.com-content-article__body a[role="button"]:hover { background: #0d7fd9; }
.com-content-article__body a[role="button"].secondary { background: #d2d6dd; color: #333; }

/* Blockquote */
blockquote {
  background: #f9f9f9; border-left: 3px solid #1a9fff;
  padding: 1rem 1.5rem; margin: 1.5rem 0; font-style: italic;
}
blockquote footer { font-style: normal; margin-top: .5rem; background: none; padding: 0; }
blockquote cite { font-weight: 600; color: #333; }

/* FAQ accordion */
details {
  border: 1px solid #e2e2e2; border-radius: .3rem;
  margin-bottom: .6rem; overflow: hidden; background: #fff; color: #333;
}
details summary { padding: .75rem 1rem; font-weight: 600; cursor: pointer; color: #333; }
details summary:hover { background: #f5f5f5; }
details[open] summary { border-bottom: 1px solid #e2e2e2; background: #1a9fff; color: #fff; }
details > *:not(summary) { padding: 0 1rem; }
details > p:last-child { padding-bottom: .75rem; }

/* Mark */
mark { background: #e3f2fd; color: #1a9fff; padding: .1em .2em; }

/* Code */
code { background: #f5f5f5; color: #d63384; padding: .1em .3em; border-radius: .2rem; font-size: .88em; }

/* Table */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid #e2e2e2; }
th { font-weight: 600; color: #333; }

/* Tags (Joomla output) */
.tags .btn-info {
  display: inline-block; padding: .2rem .55rem; font-size: .7rem; font-weight: 600;
  text-transform: uppercase; text-decoration: none;
  background: #e3f2fd; color: #1a9fff; border-radius: .3rem; border: none;
}
.tags .btn-info:hover { background: #1a9fff; color: #fff; }

/* Read more */
.readmore .btn-secondary {
  display: inline-block; padding: .35rem .7rem; font-size: .8rem; font-weight: 600;
  text-decoration: none; color: #1a9fff; border: 1px solid #1a9fff; border-radius: .3rem;
}
.readmore .btn-secondary:hover { background: #1a9fff; color: #fff; }
.readmore .icon-chevron-right { display: none; }

/* Pagination */
.bf-pagination .pagination { display: flex; gap: .2rem; list-style: none; padding: 0; justify-content: center; }
.bf-pagination .page-link {
  display: flex; align-items: center; justify-content: center; min-width: 34px; height: 34px;
  padding: 0 .6rem; border: 1px solid #e2e2e2; border-radius: .3rem;
  text-decoration: none; font-size: .85rem; color: #333; transition: all .15s;
}
.bf-pagination .page-link:hover { border-color: #1a9fff; color: #1a9fff; }
.bf-pagination .active .page-link { background: #1a9fff; color: #fff; border-color: #1a9fff; }
.bf-pagination .disabled .page-link { opacity: .3; pointer-events: none; }
.pagination__wrapper { display: contents; }

/* Contact form */
.com-contact input[type="text"], .com-contact input[type="email"],
.com-contact textarea, .com-contact select {
  width: 100%; padding: .5rem .75rem; font-size: 1rem;
  border: 1px solid #e2e2e2; border-radius: .3rem;
  background: #fff; color: #333;
}
.com-contact input:focus, .com-contact textarea:focus, .com-contact select:focus {
  border-color: #1a9fff; outline: none;
}
.control-group { margin-bottom: .75rem; }
.control-label label { display: block; margin-bottom: .3rem; font-weight: 600; font-size: .9rem; }
.com-contact .btn-primary, .com-contact button[type="submit"] {
  display: inline-flex; padding: .5rem 1.25rem; font-weight: 600; font-size: .9rem;
  background: #1a9fff; color: #fff; border: none;
  border-radius: .3rem; cursor: pointer;
}
.com-contact .btn-primary:hover, .com-contact button[type="submit"]:hover { background: #0d7fd9; }

/* Footer */
.bf-footer { background: #f9f9f9; border-top: 1px solid #e2e2e2; }
.bf-footer-bottom { color: #888; font-size: 13px; }
.bf-footer a { color: #555; text-decoration: none; }
.bf-footer a:hover { color: #1a9fff; }
.bf-footer .bf-module-title {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: #888; margin-bottom: .6rem;
}
.bf-footer ul { list-style: none; padding: 0; }
.bf-footer ul li { padding: .1rem 0; }
.bf-footer ul a { font-size: .9rem; }

/* Alerts */
.alert { padding: 1rem; border-radius: .3rem; margin: 1rem 0; }
.alert-info { background: #e3f2fd; color: #0d7fd9; }
.alert-success { background: #e3f2fd; color: #2e7d32; }
.alert-warning { background: #fff8e1; color: #f57f17; }
.alert-danger { background: #fce4ec; color: #c62828; }

/* Article image */
.com-content-article figure.item-image { margin: 0 0 1.5rem; }
.com-content-article figure.item-image img { width: 100%; max-height: 480px; object-fit: cover; border-radius: .3rem; }

/* Tag results */
.com-tags-tag__category.list-group { list-style: none; padding: 0; }
.com-tags-tag__category .list-group-item { padding: 0; border: none; background: none; }
.com-tags-tag__category .list-group-item h3 a {
  display: block; padding: .5rem .6rem; text-decoration: none;
  border-radius: .3rem; transition: background .15s;
}
.com-tags-tag__category .list-group-item h3 a:hover { background: #e3f2fd; color: #1a9fff; }

/* ---- Kunena — Chota's .row and [class*="col-"] break Bootstrap grid ---- */
#kunena .row {
  margin-left: calc(-.5 * var(--bs-gutter-x, 1.5rem)) !important;
  margin-right: calc(-.5 * var(--bs-gutter-x, 1.5rem)) !important;
}
#kunena [class*="col-"] {
  margin: 0 !important;
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
}
#kunena .col-md-2 { flex: 0 0 auto; width: 16.6667%; }
#kunena .col-md-10 { flex: 0 0 auto; width: 83.3333%; }
#kunena .col-3 { flex: 0 0 auto; width: 25%; max-width: 25% !important; }
/* Kunena SVG icons */
#kunena svg { display: inline !important; height: 1em !important; }
/* Kunena table text alignment */
#kunena .table { text-align: left !important; }
