/* Built in (local) fonts */
@font-face {
    font-family: 'libre_baskervilleregular';
    src: url('/media/templates/site/cassiopeia_cassiopeia_gdpr/fonts/librebaskerville-regular-webfont.woff2') format('woff2'),
         url('/media/templates/site/cassiopeia_cassiopeia_gdpr/fonts/librebaskerville-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'libre_baskervilleitalic';
    src: url('/media/templates/site/librebaskerville-italic-webfont/fonts/librebaskerville-regular-webfont.woff2') format('woff2'),
         url('/media/templates/site/librebaskerville-italic-webfont/fonts/librebaskerville-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'balooregular';
    src: url('/media/templates/site/cassiopeia_cassiopeia_gdpr/fonts/baloo-regular-webfont.woff2') format('woff2'),
         url('/media/templates/site/cassiopeia_cassiopeia_gdpr/fonts/baloo-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Template size changes*/
.grid-child {
  max-width: 1440px;
}
@supports (display: grid) {
  .site-grid {
    grid-gap: 0 1em;
    grid-template-columns:
      [full-start] minmax(0, 1fr)              /* Left outer margin */
      [main-start] minmax(0, 20rem)            /* Sidebar-left */
                     minmax(0, 24rem)          /* Main area - left half */
                     minmax(0, 24rem)          /* Main area - right half */
                     minmax(0, 20rem)          /* Sidebar-right */
      [main-end] minmax(0, 1fr)                /* Right outer margin */
      [full-end];
  }
}
/* new logo bar */
.logo-bar-floated {
    padding: 1rem 0;
    position: relative;
    width: 100%;
}
/* Logo bar wrapper with top margin */
.logo-bar-floated {
    margin-top: 2rem;
    padding: 1rem 0;
    position: relative;
    width: 100%;
}

/* Clearfix to ensure floats don't collapse the container */
.logo-bar-floated::after {
    content: "";
    display: table;
    clear: both;
}
/* Left side of the logo bar (main logo + text) */
.logo-left-float {
    float: left;
    width: 85%;
    margin-left: 0.5rem;
}
/* Right side of the logo bar (second logo or module) */
.logo-right-float {
    float: right;
    width: 15%;
    text-align: right;
    margin-bottom: -2.5rem;
}

/* General logo image styling */
.logo-bar-floated img {
    max-height: 90px;
    height: auto;
    width: auto;
}
@media (max-width: 768px) {
    .logo-bar-floated {
        margin-top: 1rem;
    .logo-left-float img {
        width: 85%; /* Adjust this as needed */
    }
  }
}

/* wide left margin*/
@media (max-width: 768px) {
.brand-logo, .site-description, .mod-menu.mod-list.nav {
  margin-left: 0.5rem;
}
}
/* Add space under banners */
.mod-banners__item.banneritem {
  margin-bottom: 1rem;
}

/* Add a white border/box to the main horizontal menu */
ul.mod-menu > li.nav-item {
    display: inline-block;
    margin: 0 0.4rem;
}

ul.mod-menu > li.nav-item > a {
    display: block;
    padding: 0.4rem 0.8rem;
    border: 1px solid white;
    border-radius: 4px;
    color: white;
    text-decoration: none;
}

ul.mod-menu > li.nav-item > a:hover,
ul.mod-menu > li.nav-item.current > a {
    background-color: rgba(255, 255, 255, 0.5);
}



/* MISC: custom fonts */
/* GUIDE: font-weight: 100 → thin / font-weight: 300 → light / font-weight: 400 → normal / font-weight: 700 → bold */
body {
    font-family: 'libre_baskervilleregular', sans-serif;
    font-size: 95%;
}
H3 {
    font-family: 'balooregular', sans-serif;
    font-weight: 300;
}

.banner_small_text {
  font-size: 80%;
  line-height: 1rem;
}
/****** KUNENA FORUM ******/
.my-category-icon {
  width: 2.5em;
  height: auto;
  vertical-align: middle;
  margin-right: 0.3em;
}

/* Icon cell: small, fixed width */
#kcat-icon {
  width: 3rem;
  max-width: 3rem;
  text-align: center;
  vertical-align: middle;
  padding: 0.25rem 0.5rem;
}

/* Main name/description cell */
.category td[colspan="6"] {
  width: 75%;
}

/* Last post + meta cell */
.category td[colspan="5"] {
  width: 20%;
  text-align: left;
}

/* change margin for count of topics */
#kcatcount, .hidden-xs-down {
  margin-left: 1rem;
}

/*** STYLING *** ***/
/* Apply styles within each Kunena forum block */
.kfrontend {
  background-color: #eff3f7;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  margin-bottom: 2rem;
}

/*** Table rows forum categories ***/
/* Even rows – light blue */
.kfrontend tr.category:nth-of-type(even) {
  background-color: #dee7ef;
}
/* Odd rows – slightly darker blue tint */
.kfrontend tr.category:nth-of-type(odd), .category-item {
  background-color: #cedbe6;
}
/* Hover effect – subtle highlight */
.kfrontend tr.category:hover {
  background-color: #fdfaf5 !important;
}

/*** Table rows topics ***/
/* Even topic rows – light blue */
.kfrontend tr.topic:nth-of-type(even) {
  background-color: #dee7ef;
}

/* Odd topic rows – slightly darker blue tint */
.kfrontend tr.topic:nth-of-type(odd) {
  background-color: #cedbe6;
}

/* Hover effect for topics – light sand tint */
.kfrontend tr.topic:hover {
  background-color: #fdfaf5 !important;
}

/*** Typography ***/
/* Main forum section titles (like "Where to buy", "Services & practicalities") */
.kfrontend h1.card-header {
  font-family: 'balooregular', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: #330000;
  margin-bottom: 0.5rem;
  background: none;
  border: none;
  padding: 0;
}

/* Link inside main forum title */
.kfrontend h1.card-header a {
  color: #330000;
  text-decoration: none;
}

.kfrontend h1.card-header a:hover {
  color: #f57c00;
  text-decoration: underline;
}

/* Sub-category titles like "Groceries", "Visa", etc. */
.kfrontend h3 {
  font-family: 'balooregular', sans-serif;
  font-weight: 300;
  color: #330000;
  margin-bottom: 0.2rem;
}

.kfrontend h3 a {
  color: #330000;
  text-decoration: none;
}

.kfrontend h3 a:hover {
  color: #f57c00;
  text-decoration: underline;
}
#kcatcount, .hidden-xs-down {
  color: #cc6600;  
}
/****** KUNENA FORUM END ******/