
/* ==========================================================
   EXHIBITIO — GLOBAL SETTINGS & TYPOGRAPHY
========================================================== */

/*
 * Google Fonts are loaded dynamically through
 * the Exhibitio Typography Customizer.
 *
 * Do not add a Google Fonts @import here.
 */


/* ==========================================================
   GLOBAL SETTINGS
========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Hide caret outside editable elements */
* {
  caret-color: transparent;
}

/* Show caret in form fields */
input,
textarea,
[contenteditable="true"] {
  caret-color: auto;
}

/* Text selection */
::selection {
  background-color: var(--exhibitio-accent);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--exhibitio-accent);
  color: #ffffff;
}


/* ==========================================================
   EXHIBITIO — GLOBAL COLOR VARIABLES
========================================================== */

:root {

  /* Main theme color */
  --exhibitio-main: #373e43;

  /* Accent color */
  --exhibitio-accent: #503AA8;

  /* Default theme text */
  --exhibitio-text: #7b7e86;

  /* Heading color */
  --exhibitio-heading: var(--exhibitio-main);

  /* Supporting colors */
  --exhibitio-muted: #666666;
  --exhibitio-border: #dfdfdf;
  --exhibitio-meta: #999999;
  --exhibitio-menu: #222222;

}


/* ==========================================================
   EXHIBITIO — TYPOGRAPHY VARIABLES
========================================================== */

/*
 * These are fallback values.
 *
 * The Customizer dynamically overrides these variables
 * when typography settings are changed.
 */

:root {

  /* ============================
     BODY TYPOGRAPHY
  ============================ */

  --exhibitio-body-font: "Jost", sans-serif;

  --exhibitio-body-size: 17px;

  --exhibitio-body-color: #7b7e86;


  /* ============================
     HEADING TYPOGRAPHY
  ============================ */

  --exhibitio-heading-font: "Playfair Display", serif;


  /* H1 */
  --exhibitio-h1-size: 48px;
  --exhibitio-h1-color: #373e43;

  /* H2 */
  --exhibitio-h2-size: 40px;
  --exhibitio-h2-color: #373e43;

  /* H3 */
  --exhibitio-h3-size: 32px;
  --exhibitio-h3-color: #373e43;

  /* H4 */
  --exhibitio-h4-size: 26px;
  --exhibitio-h4-color: #373e43;

  /* H5 */
  --exhibitio-h5-size: 22px;
  --exhibitio-h5-color: #373e43;

  /* H6 */
  --exhibitio-h6-size: 18px;
  --exhibitio-h6-color: #373e43;

}


/* ==========================================================
   BODY TYPOGRAPHY
========================================================== */

body {
  margin: 0;

  font-family: var(
    --exhibitio-body-font,
    "Jost", sans-serif
  );

  font-size: var(--exhibitio-body-size, 17px);

  font-weight: 300;

  line-height: 1.6;

  color: var(--exhibitio-body-color, #7b7e86);

  background-color: #f4f1eb;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================
   FORM ELEMENTS
========================================================== */

button,
input,
select,
textarea {
  font-family: var(--exhibitio-body-font, "Jost", sans-serif);
}

/* Inherit font size where appropriate */
button,
input,
select,
textarea {
  font-size: inherit;
}


/* ==========================================================
   PARAGRAPHS & GENERAL TEXT
========================================================== */

p,
li,
blockquote,
figcaption {
  font-family: inherit;
}

p {
  margin-top: 0;
  margin-bottom: 1.5em;
}


/* ==========================================================
   HEADINGS — SHARED FONT
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.blog-title,
.comments-title {

  font-family: var(
    --exhibitio-heading-font,
    "Playfair Display", serif
  );

  font-optical-sizing: auto;

  font-style: normal;

  line-height: 1.25;

  margin-top: 0;

  margin-bottom: 0.6em;

}


/* ==========================================================
   H1 TYPOGRAPHY
========================================================== */

h1 {
  font-size: var(--exhibitio-h1-size, 48px);
  color: var(--exhibitio-h1-color, #373e43);
  font-weight: 600;
}


/* ==========================================================
   H2 TYPOGRAPHY
========================================================== */

h2 {
  font-size: var(--exhibitio-h2-size, 40px);
  color: var(--exhibitio-h2-color, #373e43);
  font-weight: 600;
}


/* ==========================================================
   H3 TYPOGRAPHY
========================================================== */

h3 {
  font-size: var(--exhibitio-h3-size, 32px);
  color: var(--exhibitio-h3-color, #373e43);
  font-weight: 500;
}


/* ==========================================================
   H4 TYPOGRAPHY
========================================================== */

h4 {
  font-size: var(--exhibitio-h4-size, 26px);
  color: var(--exhibitio-h4-color, #373e43);
  font-weight: 500;
}


/* ==========================================================
   H5 TYPOGRAPHY
========================================================== */

h5 {
  font-size: var(--exhibitio-h5-size, 22px);
  color: var(--exhibitio-h5-color, #373e43);
  font-weight: 500;
}


/* ==========================================================
   H6 TYPOGRAPHY
========================================================== */

h6 {
  font-size: var(--exhibitio-h6-size, 18px);
  color: var(--exhibitio-h6-color, #373e43);
  font-weight: 500;
}


/* ==========================================================
   SPECIAL HEADING CLASSES
========================================================== */

.page-title {
  font-size: var(--exhibitio-h1-size, 48px);
  color: var(--exhibitio-h1-color, #373e43);
  font-weight: 600;
}

.blog-title {
  font-size: var(--exhibitio-h2-size, 40px);
  color: var(--exhibitio-h2-color, #373e43);
  font-weight: 600;
}

.comments-title {
  font-size: var(--exhibitio-h3-size, 32px);
  color: var(--exhibitio-h3-color, #373e43);
  font-weight: 500;
}


/* ==========================================================
   LINKS
========================================================== */

a {
  color: var(--exhibitio-accent, #503AA8);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}


/* ==========================================================
   ACCESSIBILITY — FOCUS STATES
========================================================== */

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--exhibitio-accent, #503AA8);
  outline-offset: 2px;
}


/* ==========================================================
   SPECIAL MENU BUTTON
========================================================== */

.menu-button-link {
  background-color: var(--exhibitio-accent, #503AA8);
}


/* ==========================================================
   RESPONSIVE TYPOGRAPHY
========================================================== */

/*
 * Responsive heading sizes use clamp().
 *
 * The maximum size is controlled by the Customizer.
 * This helps prevent oversized headings on mobile.
 */

@media (max-width: 767px) {

  h1,
  .page-title {
    font-size: clamp(
      28px,
      7vw,
      var(--exhibitio-h1-size, 48px)
    );
  }

  h2,
  .blog-title {
    font-size: clamp(
      26px,
      6vw,
      var(--exhibitio-h2-size, 40px)
    );
  }

  h3,
  .comments-title {
    font-size: clamp(
      22px,
      5vw,
      var(--exhibitio-h3-size, 32px)
    );
  }

  h4 {
    font-size: clamp(
      20px,
      4.5vw,
      var(--exhibitio-h4-size, 26px)
    );
  }

  h5 {
    font-size: clamp(
      18px,
      4vw,
      var(--exhibitio-h5-size, 22px)
    );
  }

  h6 {
    font-size: clamp(
      16px,
      3.5vw,
      var(--exhibitio-h6-size, 18px)
    );
  }

}



/* ==========================================================
   TOP BAR VISIBILITY CONTROL
========================================================== */
body.topbar-none .top-bar { 
  display: none !important;
}
body.topbar-desktop .top-bar { 
  display: block; 
}
@media (max-width: 767px) {
  body.topbar-desktop .top-bar { 
    display: none !important; 
  }
}
body.topbar-mobile .top-bar { 
  display: block; 
}
@media (min-width: 768px) {
  body.topbar-mobile .top-bar { 
    display: none !important; 
  }
}


.top-bar { position: relative;
  z-index: 1000; background:#111; color:#fff; font-size:.9rem; }
.top-bar .topbar-widget { padding:6px 0; }
.top-bar a { color:#fff; text-decoration:none; }
.top-bar a:hover { text-decoration:underline; }
.top-bar .top-bar-inner {
  display:flex; gap:16px; align-items:center; justify-content:space-between;
}
.top-bar .widget_nav_menu ul,
.top-bar .menu,
.top-bar .menu > ul {
  display:flex; gap:16px; margin:0; padding:0; list-style:none;
}
.top-bar .widget_nav_menu li { list-style:none; }
.top-bar .widget_nav_menu a { color:#fff; text-decoration:none; }
.top-bar .widget_nav_menu a:hover { text-decoration:underline; }


/* ==========================================================
   EXHIBITIO — LAYOUT & HEADER
========================================================== */

:root {
  --z-header: 10000;
  --z-submenu: 10010;
  --header-min-h: 80px;
}

/* ============================
   LAYOUT HELPERS
============================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  padding-top: 0;
}

.container-full {
  width: 100%;
  padding: 10px;
  padding-top: 0;
}

/* Offset Bootstrap row margins where the blog container nears the viewport edges. */
#primary.with-sidebar:is(.blog-page, .single-post-page) > .container {
  padding-inline: clamp(10px, calc(615px - 50%), 15px);
}

/* Match Exhibitio content padding to WPBakery row gutters. */
#primary.container-full:has(.entry-content > #wpb-content-root.wpb-content-wrapper),
#primary.container:has(.entry-content > #wpb-content-root.wpb-content-wrapper),
#primary.front-page-content > .container:has(> #wpb-content-root.wpb-content-wrapper) {
    padding-inline: 15px;
}


/* ==========================================================
   EXHIBITIO — HEADER POSITIONING
========================================================== */

:root {
  --z-header: 10000;
  --header-min-h: 80px;
}

/* ============================
   DEFAULT HEADER
============================ */

.site-header {
  position: relative;
  top: auto;
  z-index: var(--z-header, 10000);

  width: 100%;
  min-height: var(--header-min-h, 80px);

  overflow: visible;

  background-color: #f4f1eb;
  border-bottom: 1px solid var(--exhibitio-border, #dfdfdf);

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* ============================
   STICKY HEADER ENABLED
============================ */

/*
 * Sticky positioning is active immediately
 * when enabled in the WordPress Customizer.
 *
 * JavaScript only adds .is-sticky for visual changes.
 */

#exhibitio-sticky-anchor {
  display: block;
  height: 0;
}

#primary {
  scroll-margin-top: var(--exhibitio-skip-offset, 0px);
}

body.has-sticky-header-enabled .site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header, 10000);
}

/* ============================
   TRANSPARENT HEADER
============================ */

/* Maintain contrast over both light and dark artwork. */
.site-header.has-transparent-hero.is-transparent:not(.is-sticky) {
  background-color: rgb(0 0 0 / 60%);
  color: #ffffff;
  border-bottom-color: transparent;
}

.site-header.has-transparent-hero.is-transparent:not(.is-sticky) :is(
  .header-center .menu > li > a,
  .header-center .menu > li > .mega-toggle,
  .header-search-toggle,
  .site-title-text
) {
  color: #fff;
}

.site-header.has-transparent-hero.is-transparent:not(.is-sticky) .offcanvas-toggle .burger-bar {
  background-color: #fff;
}

.site-header.has-transparent-hero.is-transparent:not(.is-sticky) .header-logo > .logo-default {
  background-color: #f4f1eb;
}

.site-header.has-transparent-hero.is-transparent:not(.is-sticky) :is(
  .header-logo,
  .offcanvas-toggle,
  .header-search-toggle,
  .menu-button-link,
  .header-center .menu > li > a,
  .header-center .menu > li > .mega-toggle
):focus-visible {
  outline-color: #fff;
}

/* ============================
   STICKY HEADER APPEARANCE
============================ */

body.has-sticky-header-enabled .site-header.is-sticky {
  background-color: #ffffff;
  color: var(--exhibitio-menu, #222222);

  border-bottom: 1px solid var(--exhibitio-border, #dfdfdf);

  z-index: var(--z-header, 10000);
}

/* Transparent header becomes solid when sticky */
body.has-sticky-header-enabled
.site-header.is-transparent.is-sticky {
  background-color: #ffffff;
  color: var(--exhibitio-menu, #222222);
  border-bottom-color: var(--exhibitio-border, #dfdfdf);
}

/* ============================
   WORDPRESS ADMIN BAR
============================ */

body.admin-bar.has-sticky-header-enabled .site-header {
  top: 32px;
}

@media (max-width: 782px) {

  body.admin-bar.has-sticky-header-enabled .site-header {
    top: 46px;
  }

}

@media (max-width: 600px) {

  body.admin-bar.has-sticky-header-enabled .site-header {
    top: 0;
  }

}

/* ============================
   STICKY HEADER SHADOW
============================ */

.site-header.is-sticky-shadow {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

/* ============================
   CONTENT STACKING
============================ */

/*
 * Normal content should remain below
 * the header's stacking level.
 */

#primary,
.site-main,
.front-page-content {
  position: relative;
  z-index: 1;
}

/* ============================
   HEADER DROPDOWNS
============================ */

.site-header .sub-menu,
.site-header .mega-menu {
  z-index: 10010;
}


/* ============================
   HEADER GRID
============================ */

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  min-height: var(--header-min-h, 80px);
  gap: 20px;
}

.header-left,
.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.header-left {
  justify-content: flex-start;
}

.header-right {
  justify-content: flex-end;
}

/* ============================
   BRANDING / LOGO
============================ */

.site-branding {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 74px;
}

.site-branding .custom-logo-link img,
.header-logo img,
.site-logo img,
.logo-img {
  height: auto;
  max-height: 74px;
  width: auto;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* Default logo */
.logo-default,
.logo-sticky,
.logo-transparent {
  display: none;
}

.logo-default {
  display: inline-block;
}

/* Switch branding only when the requested state has an image. */
.site-header.is-transparent:not(.is-sticky).has-transparent-logo .header-logo > :is(.logo-default, .site-title-text),
.site-header.is-sticky.has-sticky-logo .header-logo > :is(.logo-default, .site-title-text) {
  display: none;
}

.site-header.is-transparent:not(.is-sticky).has-transparent-logo .logo-transparent,
.site-header.is-sticky.has-sticky-logo .logo-sticky {
  display: inline-block;
}

/* Site title */
.site-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--exhibitio-accent);
}

.site-title:hover {
  text-decoration: underline;
}

.site-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--exhibitio-muted);
}

/* ============================
   HEADER MENUS
============================ */

.header-left .menu,
.header-center .menu,
.header-right .menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 400;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  color: var(--exhibitio-menu, #222222);
}

/* Relative positioning for normal dropdowns */
.header-left .menu > li:not(.has-mega),
.header-center .menu > li:not(.has-mega),
.header-right .menu > li:not(.has-mega) {
  position: relative;
}

/* Menu links */
.header-left .menu a,
.header-center .menu a,
.header-right .menu a {
  display: inline-block;
  padding: 6px 8px;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.15s ease;
}

/* Hover */
.header-left .menu a:hover,
.header-center .menu a:hover,
.header-right .menu a:hover {
  color: var(--exhibitio-accent);
}

/* Active menu */
.header-left .menu .current-menu-item > a,
.header-center .menu .current-menu-item > a,
.header-right .menu .current-menu-item > a {
  color: var(--exhibitio-accent);
}

/* ============================
   CONTENT / SIDEBAR
============================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.card .thumb {
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  display: block;
}

.card .inner {
  padding: 16px;
}

.pagination {
  margin: 32px 0;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.sidebar {
  padding: 24px;
  background: #ffffff;
  margin-top: 30px;
}

.sidebar .widget {
  margin-bottom: 24px;
}

.widget-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ============================
   SEARCH ICON + DROPDOWN
============================ */

.header-search-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-search {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 16px;
}

.header-search-toggle {
  background: none;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--exhibitio-accent);
  font-size: 1.2em;
  border: none;
  position: relative;
  z-index: 1;
}

/* ============================
   DROPDOWN STACKING
============================ */

.site-header .sub-menu,
.site-header .mega-menu {
  z-index: var(--z-submenu, 10010);
}

/* ============================
   PAGE CONTENT STACKING
============================ */

/* Normal page content stays below header */
#primary,
.site-main,
.front-page-content {
  position: relative;
  z-index: 1;
}

/* Avoid unnecessary stacking priority on WPBakery rows */
.vc_row,
.vc_section {
  z-index: auto;
}

/* ============================
   SEARCH DROPDOWN BELOW THE HEADER
============================ */
.search-bar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #000;
  padding: 20px 30px;
  z-index: 1;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.4s ease;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.search-bar-dropdown.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}


.search-bar-dropdown .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.search-bar-dropdown form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}


.search-bar-dropdown input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 0;
}

.search-bar-dropdown input[type="search"]:focus {
  outline: none;
  box-shadow: none;
}

.search-bar-dropdown input::placeholder {
  color: #aaa;
}

.search-bar-dropdown button {
  background:var(--exhibitio-accent);
  color: #000;
  border: none;
  padding: 12px 28px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  border-radius: 0;
  margin-right: 60px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Add the arrow */
.search-bar-dropdown button::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
  transition: all 0.3s ease;
  font-weight: 800;
}

/* Hover effect */
.search-bar-dropdown button:hover {
  background: #ffd633;
  padding-right: 42px; /* make space for arrow */
}

.search-bar-dropdown button:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}



/* ============================
   FOOTER
============================ */

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text-color);
  padding: 20px;
  text-align: center;
}


/* ============================
   FOOTER WIDGETS
============================ */

.footer-widgets {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


/* ============================
   DYNAMIC FOOTER GRID
============================ */

.footer-grid {
  display: grid;

  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 250px), 1fr)
  );

  gap: 24px;

  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  text-align: left;
  align-items: start;

  box-sizing: border-box;
}


/* ============================
   FOOTER COLUMNS
============================ */

.footer-col {
  color: var(--footer-text-color);

  width: 100%;
  max-width: 100%;
  min-width: 0;

  box-sizing: border-box;
  overflow-wrap: anywhere;
}


/* ============================
   FOOTER HEADINGS
============================ */

.footer-col h1,
.footer-col h2,
.footer-col h3,
.footer-col h4,
.footer-col h5,
.footer-col h6 {
  color: var(--footer-title-color);
  margin-bottom: 10px;
}

.footer-title {
  font-size: 22px;
}


/* ============================
   FOOTER LINKS
============================ */

/* Remove underline from all footer links */

.site-footer a,
.site-footer a:link,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:active,
.site-footer a:focus {
  text-decoration: none;
}


/* Normal link color */

.site-footer a,
.site-footer a:link,
.site-footer a:visited {
  color: var(--footer-link-color, #cccccc);
  transition: color 0.3s ease;
}


/* Hover and focus color */

.site-footer a:hover,
.site-footer a:focus {
  color: var(--footer-link-hover-color, #503AA8);
  text-decoration: none;
}


/* ============================
   REMOVE FOOTER LIST BULLETS
============================ */

/* All footer lists */

.site-footer ul,
.site-footer ol {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}


/* All footer list items */

.site-footer li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}


/* Remove theme-generated bullets */

.site-footer li::before,
.site-footer li::after {
  content: none;
}


/* WordPress navigation menu */

.site-footer .menu,
.site-footer .menu ul,
.site-footer .widget_nav_menu ul,
.site-footer .wp-block-navigation__container {
  list-style: none;
  margin: 0;
  padding: 0;
}


/* Footer menu links */

.site-footer .menu a,
.site-footer .widget_nav_menu a,
.site-footer .wp-block-navigation-item__content {
  text-decoration: none;
}


/* ============================
   FOOTER COPYRIGHT
============================ */

.footer-copy {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--footer-text-color);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}


/* ============================
   RESPONSIVE FOOTER
============================ */

@media (max-width: 600px) {

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-col {
    width: 100%;
  }

}


/* ============================
   ACCESSIBILITY & MOTION
============================ */

@media (prefers-reduced-motion: reduce) {

  * {
    transition: none !important;
    animation: none !important;
  }

}
/* ============================
   SPECIAL BUTTON
============================ */
.menu-button-link {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  background-color: var(--exhibitio-accent);
  color: #fff !important;
  padding: 10px 20px;
  text-transform: uppercase;
  font-weight: 400;                            /* ✅ slightly bolder for buttons */
  letter-spacing: 0.5px;
  display: inline-block;
  border-radius: 0;
  position: relative;
  z-index: 1;
  margin-left: 20px;
  text-decoration: none !important;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Animated overlay effect */
.menu-button-link::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #373e43;
  z-index: -1;
  transition: width 0.4s ease;
}

.menu-button-link:hover::before {
  width: 100%;
}

.menu-button-link:hover {
  color: #fff !important;
  text-decoration: none;
}

/* ============================
   BURGER TOGGLE
============================ */
.offcanvas-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s ease;
  position: relative;
  z-index: 1001; /* above header content */
}

/* bars */
.offcanvas-toggle .burger-bar {
  width: 24px;
  height: 2px;
  background: #3f3f3f;
  border-radius: 1px;
  margin: 3.5px 0; /* evenly space bars */
  transition:
  transform 0.3s ease,
  opacity 0.3s ease;
}

/* Animate to X */
.offcanvas-toggle.is-active .burger-bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}
.offcanvas-toggle.is-active .burger-bar:nth-child(2) {
  opacity: 0;
}
.offcanvas-toggle.is-active .burger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================
   EXHIBITIO — RESPONSIVE HEADER
========================================================== */

@media (max-width: 1160px) {

    /* Hide desktop navigation only */
    .header-center .nav-left,
    .header-center .nav-right,
    .header-left .menu,
    .header-center .menu,
    .header-right .menu {
        display: none !important;
    }

    /* Mobile header layout */
    .header-grid {
        display: grid;
        grid-template-columns: 50px minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
    }

    /* Left area */
    .header-left {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    /* Centered logo */
    .header-center {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    /* Right area */
    .header-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Keep hamburger visible */
    .offcanvas-toggle {
        display: inline-flex;
        position: relative;
        z-index: 1001;
    }

    /* Search */
    .header-search-wrapper {
        display: flex;
        align-items: center;
    }

    /* Mobile logo */
    .header-logo img,
    .logo-img {
        max-height: 80px;
        width: auto;
    }


    .header-center .site-branding,
    .header-center .header-logo {
        min-width: 0;
        max-width: 100%;
    }

    .header-center .header-logo {
        text-align: center;
    }

    .header-center .site-branding .logo-img {
        max-width: min(100%, var(--logo-w, 160px));
    }

    .site-header:where(:has(.logo-default), .is-sticky.has-sticky-logo, .is-transparent:not(.is-sticky).has-transparent-logo) .header-center .site-branding {
        padding-inline: min(var(--logo-pad-x, 0px), max(0px, calc((100% - min(var(--logo-w, 160px), 120px)) / 2)));
    }
}

/* Keep title and image branding in the same narrow header grid. */
@media (max-width: 540px) {
    .header-grid {
        grid-template-columns: 50px minmax(0, 1fr) 50px;
    }

    .header-grid > .header-right:has(.menu-button-link, .header-search-toggle) {
        grid-column: 1 / -1;
    }

    .header-grid .site-branding {
        min-height: calc(80px + 2 * var(--logo-pad-y, 0px));
    }
}

/* ============================
   NORMAL & MEGA DROPDOWNS (Unified Behavior)
============================ */
.site-header .header-center .menu .sub-menu {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(var(--header-min-h, 66px));
  min-width: 220px;
  background: #fff;
  padding: 12px 0;
  margin: 0;
  list-style: none;
  border: 1px solid #e9e9f1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  z-index: var(--z-submenu, 990);
  margin-top: -13px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition:
  clip-path 0.5s ease,
  opacity 0.4s ease,
  transform 0.4s ease;
}

.site-header .header-center .menu .sub-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0% 0);
  transform: translateY(var(--header-min-h, 66px));
}

/* Submenu links */
.menu .sub-menu li a {
  display: block;
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 6px;
  color: var(--exhibitio-menu);
  text-decoration: none;
  transition: background 0.2s ease;
}
.menu .sub-menu li a:hover {
  background: #fff;
}

/* Submenu animation */
.menu .sub-menu li {
  opacity: 0;
  transform: translateY(-10px);
}
.menu .sub-menu.is-open li {
  animation: slideIn 0.3s ease forwards;
}

/* Optional staggered delay */
.menu .sub-menu.is-open li:nth-child(1) { animation-delay: 0.05s; }
.menu .sub-menu.is-open li:nth-child(2) { animation-delay: 0.1s; }
.menu .sub-menu.is-open li:nth-child(3) { animation-delay: 0.15s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================
   MEGA MENU (Exhibitio)
============================ */

/* Mega menu wrapper */
.menu > li.has-mega {
  position: static;
}
.site-header .mega-toggle {
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.site-header .mega-toggle-icon {
  padding-inline: 4px;
}
.site-header .mega-toggle:hover {
  color: var(--exhibitio-accent);
}
.mega-menu {
  position: absolute;
  top: 100%;
  inset-inline: 0;
  background: #fff;
  padding: 35px 0px 20px 0px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
  border-top: 1px solid var(--exhibitio-border, #dfdfdf);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition:
    opacity .3s ease,
    transform .3s ease,
    visibility .3s ease;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-property: opacity, transform;
}

.mega-menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.mega-left {
  flex: 0 1 260px;
}
.mega-parent-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.mega-image img {
  width: 100%;
  display: block;
  border-radius: 6px;
  height: 180px;
  object-fit: cover;
}

/* ============================
   MEGA COLUMNS
============================ */

/* Add vertical line to each column except the first */
.mega-col {
  position: relative;
  padding-left: 20px; /* space for line */
}

.mega-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0; /* line at the left edge */
  width: 1px;
  height: 100%;
  background: var(--exhibitio-border, #dfdfdf);
}

/* Remove line for the very first column */
.mega-col:first-child::before {
  display: none;
}

.mega-columns {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.mega-cols-2 .mega-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mega-cols-3 .mega-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mega-title {
  font-size: 15px !important;

  margin: 0 0 12px;
  padding: 0 20px;
  color: var(--exhibitio-text, #111);
}
.mega-title:hover {
  color: var(--exhibitio-accent);
}

/* ============================
   LINKS
============================ */

.mega-link-item a,
.mega-link-item > .mega-title,
.mega-link-item > .mega-link-label {
  display: block;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--exhibitio-text);
  overflow-wrap: anywhere;
}

/* Hover state */
.mega-link-item a:hover {
  color: var(--exhibitio-accent);
}

/* Current page state */
.mega-link-item.current-menu-item > a,
.mega-link-item.current_page_item > a,
.mega-links li.current-menu-item > a,
.mega-links li.current_page_item > a {
  color: var(--exhibitio-accent) !important;
  font-weight: 600;
}

/* ============================
   RESET LISTS
============================ */

.mega-links,
.mega-links li {
  list-style: none;       /* no bullets */
  margin: 0;
  padding: 0;
}

.mega-link-item {
  list-style-type: none;
}

.mega-sublinks {
  margin: 0;
  padding-inline-start: 12px;
  list-style: none;
}

/* ============================
   Widget Social Icons 
============================ */
.exhibitio-social-icons {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.exhibitio-social-icons li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover styles */
.exhibitio-social-icons li a:hover {
  color: var(--icon-hover-color, #000);
  background-color: var(--icon-bg-hover, transparent);
  text-decoration: none;
}

/* Circle shape */
.exhibitio-social-icons.circle li a {
  border-radius: 50%;
}

/* Square shape */
.exhibitio-social-icons.square li a {
  border-radius: 5px;
}

/* No shape (default) */
.exhibitio-social-icons.none li a {
  border-radius: 0;
}
.exhibitio-social-icons li a i {
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* ============================
   Top Bar Navigation Menu
============================ */
.top-bar .widget_nav_menu a,
.top-bar .menu a {
  color: #a8a8a8;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar .widget_nav_menu a:hover,
.top-bar .menu a:hover {
  color: var(--exhibitio-accent, #c00); /* fallback to red if accent not defined */
  text-decoration: none;
}

/* ==========================================================
   BLOG PAGE — Exhibitio Theme
   ========================================================== */

/* ------------------------------
   GENERAL PAGE STRUCTURE
------------------------------- */
.blog-page.with-sidebar .container {
  max-width: 1200px;
  margin: 0 auto;
}

#primary.blog-page.with-sidebar > .container > .row {
  display: grid;
  grid-template-columns: minmax(0, 17fr) minmax(0, 8fr);
  align-items: start;
  gap: 40px;
}

#primary.blog-page.with-sidebar > .container > .row::after {
  content: none;
}

#primary.blog-page.with-sidebar > .container > .row > :is(.col-lg-8, .col-lg-4) {
  min-width: 0;
  max-width: none;
}

/* Prevent float conflicts from older themes */
#secondary,
.sidebar,
.widget-area {
  float: none !important;
  clear: none !important;
}

/* ------------------------------
   POST GRID STYLE
------------------------------- */
#primary.blog-page.with-sidebar .blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

@media (max-width: 991.98px) {
  #primary.blog-page.with-sidebar > .container > .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 60px;
  }

  #primary.blog-page.with-sidebar .blog-posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  }
}

.blog-card {
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
  margin-top: 30px;
  border: 1px solid var(--exhibitio-border, #dfdfdf);
}


.blog-thumb img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}

.blog-content {
  padding: 20px;
}

.blog-title {
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 20px;
}

.blog-title a {
  text-decoration: none;
  color: var(--exhibitio-heading, #222);
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--exhibitio-accent, #c19f5f);
}


/* ==========================================================
   BLOG META — SIMPLE INLINE TEXT LINKS (NO ICONS)
   ========================================================== */

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--exhibitio-meta, #999);
}
.blog-meta .date{
color: var(--exhibitio-heading, #222);
}
.blog-meta .author {
color: var(--exhibitio-heading, #222);
}
.blog-meta .category {
color: var(--exhibitio-heading, #222);
}
.blog-meta .comments {
color: var(--exhibitio-heading, #222);
}
.blog-meta span {
  position: relative;
}

.blog-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--exhibitio-border, #ddd);
  margin-left: 18px;
  vertical-align: middle;
}

.blog-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-meta a:hover {
  color: var(--exhibitio-accent, #c19f5f);
}
/* ==========================================================
   BLOG EXCERPT STYLE
   ========================================================== */

.blog-excerpt a {
  color: var(--exhibitio-accent, #c19f5f);
  text-decoration: none;
}

.blog-excerpt a:hover {
  text-decoration: underline;
}

/* ==========================================================
   READ MORE LINK WITH SLIDING UNDERLINE EFFECT
   ========================================================== */

.read-more {
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  position: relative;
  padding-bottom: 3px; /* gives space for the animated line */
  color: var(--exhibitio-heading, #c19f5f);
  text-decoration: none; /* ✅ prevents the default underline */
  line-height: 1.2; /* ✅ slightly taller to avoid descender clipping */
  transition: color 0.3s ease;
}

.read-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* ✅ align exactly at the bottom */
  width: 0%;
  height: 2px;
  background-color: var(--exhibitio-accent, #c19f5f);
  transition: width 0.3s ease;
}

.read-more:hover {
  color: var(--exhibitio-accent, #c19f5f);
  text-decoration: none; /* ✅ ensures no native underline appears */
}

.read-more:hover::after {
  width: 100%;
}


/* ------------------------------
   PAGINATION
------------------------------- */
.pagination {
  text-align: center;
  margin-top: 60px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  background: #f8f8f8;
  border-radius: 5px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--accent-color, #c19f5f);
  color: #fff;
}

.pagination .current {
  background: var(--accent-color, #c19f5f);
  color: #fff;
}

/* ------------------------------
   SIDEBAR STYLING
------------------------------- */
.sidebar,
#secondary,
.widget-area {
  padding: 0 15px;
}

.widget {
  margin-bottom: 40px;
  background: #fff;
  padding: 25px 20px;
  border: 1px solid var(--exhibitio-border, #dfdfdf);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--exhibitio-heading, #222);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--exhibitio-accent, #c19f5f);
  display: inline-block;
  padding-bottom: 4px;
}

/* ==========================================================
   EXHIBITIO — CUSTOM CATEGORIES WIDGET
========================================================== */

ul.exhibitio-categories {
  display: flex;
  flex-direction: column;
  gap: var(--ec-gap, 12px);

  width: 100%;
  margin: 0;
  padding: 0;

  list-style: none;
  box-sizing: border-box;
}


/* ============================
   CATEGORY ITEMS
============================ */

ul.exhibitio-categories > li {
  position: relative;
  display: block;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: 0;

  list-style: none;
  border: 0;
  background: none;
  box-sizing: border-box;
}


/* ============================
   REMOVE DEFAULT BULLETS
   AND GENERATED ARROWS
============================ */

ul.exhibitio-categories > li::before,
ul.exhibitio-categories > li::after,
ul.exhibitio-categories > li > a.ec-link::before,
ul.exhibitio-categories > li > a.ec-link::after {
  content: none;
  display: none;
}


/* ============================
   CATEGORY CARD
============================ */

ul.exhibitio-categories > li > a.ec-link {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  width: 100%;
  min-width: 0;

  margin: 0;
  padding: var(--ec-padding, 14px);

  background-color: var(--ec-bg, #ffffff);

  border:
    var(--ec-border-width, 1px)
    solid
    var(--ec-border, #dfdfdf);

  border-radius: var(--ec-radius, 0px);

  color: var(--ec-text, #555555) !important;

  font-family: var(--exhibitio-body-font, inherit);
  font-size: var(--ec-font-size, 16px);
  font-weight: var(
    --ec-weight,
    var(--exhibitio-body-weight, 400)
  );

  line-height: 1.4;
  text-decoration: none;

  box-sizing: border-box;

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}


/* ============================
   CATEGORY NAME
============================ */

.exhibitio-categories .ec-name {
  display: block;

  flex: 1;
  min-width: 0;

  margin: 0;
  padding: 0;

  color: inherit;

  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;

  line-height: inherit;
  overflow-wrap: anywhere;

  transition: color 0.3s ease;
}


/* ============================
   CATEGORY POST COUNT
============================ */

.exhibitio-categories .ec-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  margin: 0;
  padding: 0;

  color: var(--ec-count, #888888);

  font-family: inherit;
  font-size: 0.85em;
  font-weight: inherit;

  line-height: 1;
  white-space: nowrap;

  transition: color 0.3s ease;
}


/* ============================
   CATEGORY ARROW
============================ */

.exhibitio-categories .ec-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  margin: 0;
  padding: 0;

  color: var(--ec-arrow, #748e9c);

  font-size: 0.9em;
  line-height: 1;

  transform: translateX(0);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}


/* ============================
   CATEGORY HOVER STATE
============================ */

ul.exhibitio-categories > li > a.ec-link:hover,
ul.exhibitio-categories > li > a.ec-link:focus-visible {
  background-color: var(--ec-hover-bg, #f5f5f5);

  border-color: var(--ec-border, #dfdfdf);

  color: var(
    --ec-hover-text,
    var(--exhibitio-accent, #503AA8)
  ) !important;

  text-decoration: none;

  transform: translateY(-2px);
}


/* Category name hover */

.exhibitio-categories .ec-link:hover .ec-name,
.exhibitio-categories .ec-link:focus-visible .ec-name {
  color: inherit;
}


/* Preserve custom post count color */

.exhibitio-categories .ec-link:hover .ec-count,
.exhibitio-categories .ec-link:focus-visible .ec-count {
  color: var(--ec-count, #888888);
}


/* Preserve arrow color and animate */

.exhibitio-categories .ec-link:hover .ec-arrow,
.exhibitio-categories .ec-link:focus-visible .ec-arrow {
  color: var(--ec-arrow, #748e9c);

  transform: translateX(4px);
}


/* ============================
   ACTIVE CATEGORY
============================ */

ul.exhibitio-categories > li.current-cat > a.ec-link,
ul.exhibitio-categories > li.current-cat-parent > a.ec-link,
ul.exhibitio-categories > li > a.ec-link[aria-current="page"] {
  background-color: var(--ec-hover-bg, #f5f5f5);

  border-color: var(--ec-border, #dfdfdf);

  color: var(
    --ec-hover-text,
    var(--exhibitio-accent, #503AA8)
  ) !important;
}


/* ============================
   FOOTER COMPATIBILITY
============================ */

.site-footer ul.exhibitio-categories {
  display: flex;
  flex-direction: column;
  gap: var(--ec-gap, 12px);

  margin: 0;
  padding: 0;
}

.site-footer ul.exhibitio-categories > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer ul.exhibitio-categories > li > a.ec-link,
.site-footer ul.exhibitio-categories > li > a.ec-link:visited {
  color: var(--ec-text, #555555) !important;

  background-color: var(--ec-bg, #ffffff);

  text-decoration: none;
}

.site-footer ul.exhibitio-categories > li > a.ec-link:hover,
.site-footer ul.exhibitio-categories > li > a.ec-link:focus-visible,
.site-footer ul.exhibitio-categories > li.current-cat > a.ec-link,
.site-footer ul.exhibitio-categories > li.current-cat-parent > a.ec-link,
.site-footer ul.exhibitio-categories > li > a.ec-link[aria-current="page"] {
  color: var(--ec-hover-text, #503AA8) !important;

  background-color: var(--ec-hover-bg, #f5f5f5);

  text-decoration: none;
}


/* ============================
   ACCESSIBILITY
============================ */

.exhibitio-categories .ec-link:focus-visible {
  outline: 2px solid var(--exhibitio-accent, #503AA8);
  outline-offset: 3px;
}


/* ============================
   RESPONSIVE
============================ */

@media (max-width: 600px) {

  ul.exhibitio-categories > li > a.ec-link {
    gap: 8px;
  }

  .exhibitio-categories .ec-name {
    min-width: 0;
  }

  .exhibitio-categories .ec-count {
    font-size: 0.85em;
  }

  .exhibitio-categories .ec-arrow {
    font-size: 0.85em;
  }

}


/* ============================
   REDUCED MOTION
============================ */

@media (prefers-reduced-motion: reduce) {

  ul.exhibitio-categories > li > a.ec-link,
  .exhibitio-categories .ec-name,
  .exhibitio-categories .ec-count,
  .exhibitio-categories .ec-arrow {
    transition: none;
  }

  ul.exhibitio-categories > li > a.ec-link:hover,
  ul.exhibitio-categories > li > a.ec-link:focus-visible,
  .exhibitio-categories .ec-link:hover .ec-arrow,
  .exhibitio-categories .ec-link:focus-visible .ec-arrow {
    transform: none;
  }

}

/* ------------------------------
   RESPONSIVE TWEAKS
------------------------------- */
@media (max-width: 600px) {
  .blog-thumb img {
    height: 280px;
  }

  .blog-content {
    padding: 16px;
  }

  .blog-title {
    font-size: 1.7rem;
  }
}

/* ==========================================================
   SIDEBAR SEARCH WIDGET (Custom Exhibitio Style)
   ========================================================== */
.widget_search {
  background: #fff;
  padding: 25px 20px;
}

.widget_search .widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--exhibitio-heading, #222);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--exhibitio-accent, #c19f5f);
  display: inline-block;
  padding-bottom: 4px;
}
/* ==========================================================
   SIDEBAR SEARCH WIDGET — RESPONSIVE FIX
   ========================================================== */
.widget_search .search-form {
  display: flex;
  align-items: center;
  position: relative;
}

/* Search input */
.widget_search .search-field {
  flex: 1;
  height: 44px;
  padding: 0 50px 0 16px; /* leave space for button */
  border: 1px solid #ddd;
  font-size: 15px;
  outline: none;
  color: #333;
  background: #f9f9f9;
  transition: all 0.3s ease;
  min-width: 0; /* important for flex shrinkage */
  box-sizing: border-box;
}

.widget_search .search-field:focus {
  border-color: var(--exhibitio-accent, #c19f5f);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(193,159,95,0.15);
}

/* Search button */
.widget_search .search-submit {
  position: absolute;
  top: 40%;
  right: 6px;
  transform: translateY(-50%);
  background: var(--exhibitio-accent, #503AA8);
  color: #fff;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.widget_search .search-submit:hover {
  background: #000;
}

.widget_search .search-submit i {
  font-size: 16px;
}

/* ----------------------------------------------------------
   RESPONSIVE FIXES
   ---------------------------------------------------------- */

/* On smaller sidebars or screens */
@media (max-width: 900px) {
  .widget_search .search-field {
    height: 42px;
    padding-right: 46px; /* slightly smaller padding */
    font-size: 14px;
  }
  .widget_search .search-submit {
    width: 32px;
    height: 32px;
    right: 5px;
  }
}

/* On very narrow mobile (prevent overlap entirely) */
@media (max-width: 600px) {
  .widget_search .search-field {
    padding-right: 42px; /* tighter space */
    font-size: 13px;
  }
  .widget_search .search-submit {
    width: 28px;
    height: 28px;
    right: 4px;
  }
  .widget_search .search-submit i {
    font-size: 13px;
  }
}

/* ==========================================================
   RECENT POSTS WIDGET (with thumbnail + date + title)
   ========================================================== */
.widget_recent_posts_custom {
  /*background: #fff;*/
  padding: 25px 20px;
  border: 1px solid var(--exhibitio-border, #dfdfdf);
  margin-bottom: 30px;
}

.widget_recent_posts_custom .widget-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--exhibitio-heading, #222);
  margin-bottom: 18px;
  border-bottom: 2px solid var(--exhibitio-accent, #c19f5f);
  display: inline-block;
  padding-bottom: 4px;
}

.widget_recent_posts_custom ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget_recent_posts_custom li.rp-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.widget_recent_posts_custom li.rp-item:last-child {
  margin-bottom: 0;
}

/* Thumbnail */
.widget_recent_posts_custom .rp-thumb-wrap {
  flex: 0 0 70px;
  display: block;
  border-radius: 6px;
  overflow: hidden;
}

.widget_recent_posts_custom .rp-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.widget_recent_posts_custom .rp-thumb-placeholder {
  width: 70px;
  height: 70px;
  background: #ddd;
  border-radius: 6px;
}

/* Info Section */
.widget_recent_posts_custom .rp-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.widget_recent_posts_custom .rp-date {
  font-size: 0.9rem;
  color: var(--exhibitio-meta, #999);
  margin-bottom: 3px;
  display: block;
  font-weight: 300;
}

.widget_recent_posts_custom .rp-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--exhibitio-heading, #222);
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget_recent_posts_custom .rp-title:hover {
  color: var(--exhibitio-accent, #c19f5f);
}

/* Responsive */
@media (max-width: 600px) {
  .widget_recent_posts_custom li.rp-item {
    gap: 10px;
  }
  .widget_recent_posts_custom .rp-thumb,
  .widget_recent_posts_custom .rp-thumb-placeholder {
    width: 60px;
    height: 60px;
  }
  .widget_recent_posts_custom .rp-title {
    font-size: 0.9rem;
  }
}
/* ==========================================================
   TAG CLOUD STYLING — Exhibitio Theme
   ========================================================== */
.tagcloud a {
  display: inline-block;
  border: 1px solid var(--exhibitio-border, #dfdfdf);
  font-size: 13px !important;
  text-transform: uppercase;
  height: 40px;
  line-height: 40px;
  padding: 0 21px;
  margin-right: 5px;
  margin-bottom: 10px;
  color: var(--exhibitio-text, #333);
  background-color: #fff;
  border-radius: 0;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease;
}

/* Hover & Focus States */
.tagcloud a:hover,
.tagcloud a:focus {
  background-color: var(--exhibitio-accent, #503AA8);
  color: #fff;
  border-color: var(--exhibitio-accent, #503AA8);
  transform: translateY(-2px);
}

/* Optional subtle shadow on hover */
.tagcloud a:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .tagcloud a {
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    font-size: 12px !important;
  }
}
/* ==========================================================
   SINGLE POST — FULL WIDTH FEATURED IMAGE STYLE
   ========================================================== */

.single-blog-article.fullwidth-feature {
  margin: 0;
  padding: 0;
}

/* Fullwidth featured image */
.single-blog-article.fullwidth-feature .single-featured-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  max-height: 600px;
}

.single-blog-article.fullwidth-feature .single-featured-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

/* White card-style content area */
.single-blog-article.fullwidth-feature .single-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  margin: -100px auto 80px; /* pulls content upward under image */
  position: relative;
  z-index: 5;
  max-width: 900px;
  padding: 40px;
}

.single-blog-article.fullwidth-feature .blog-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--exhibitio-heading, #222);
}

.single-blog-article.fullwidth-feature .blog-meta {
  font-size: 0.9rem;
  color: var(--exhibitio-meta, #999);
  margin-bottom: 25px;
}

.single-blog-article.fullwidth-feature .blog-meta i {
  margin-right: 6px;
  color: var(--exhibitio-accent, #c19f5f);
}

.single-blog-article.fullwidth-feature .entry-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

.single-blog-article.fullwidth-feature .entry-content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 25px 0;
}

/* ============================
   POST TAGS STYLE (All Caps)
============================ */
.post-tags {
  margin-top: 25px;
  font-size: 0.8rem;
}

.post-tags a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--exhibitio-border, #e7e7e7);
  color: var(--exhibitio-text, #222);
  text-decoration: none;
  text-transform: uppercase; /* 👈 Makes all tags uppercase */
  letter-spacing: 0.5px;     /* optional: improves readability */
  font-weight: 400;          /* optional: adds slight boldness */
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background: var(--exhibitio-accent, #503AA8);
  border-color: var(--exhibitio-accent, #503AA8);
  color: #fff;
}



/* Hover/scroll polish */
.single-blog-article.fullwidth-feature .single-featured-image img {
  transition: transform 6s ease, filter 0.5s ease;
}

.single-blog-article.fullwidth-feature .single-featured-image:hover img {
  transform: scale(1.05);
  filter: brightness(0.95);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .single-blog-article.fullwidth-feature .single-featured-image img {
    height: 450px;
  }
  .single-blog-article.fullwidth-feature .single-inner {
    margin: -70px auto 60px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .single-blog-article.fullwidth-feature .single-featured-image img {
    height: 350px;
  }
  .single-blog-article.fullwidth-feature .single-inner {
    margin: -50px auto 50px;
    padding: 25px;
  }
  .single-blog-article.fullwidth-feature .blog-title {
    font-size: 1.6rem;
  }
}
/* ==========================================================
   SINGLE POST — NAVIGATION & COMMENTS (MATCH BLOG CARD)
   ========================================================== */
.single-blog-article > .blog-content > h1.blog-title {
  font-size: min(var(--exhibitio-h1-size, 48px), max(32px, 6vw));
  font-weight: var(--exhibitio-h1-weight, 700);
  line-height: 1.2;
}

.single-blog-article > .blog-content > .entry-content > h2 {
  font-size: min(var(--exhibitio-h2-size, 40px), clamp(24px, 3vw, 32px));
  line-height: 1.25;
}

.single-blog-article > .blog-content > .entry-content > h3 {
  font-size: min(var(--exhibitio-h3-size, 32px), clamp(20px, 2.5vw, 26px));
  line-height: 1.3;
}

.single-blog-article > .blog-content > .entry-content :is(p, li, blockquote):not(.wpb-content-wrapper *),
.single-blog-article .post-navigation .nav-label {
  color: var(--exhibitio-muted, #666);
}

.post-navigation {
  margin: 40px auto 60px;
  max-width: 900px;
  padding: 0 15px;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--exhibitio-border, #e7e7e7);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.post-navigation .nav-label {
  display: block;
  font-size: 0.85rem;
  color: var(--exhibitio-accent, #c19f5f);
  margin-bottom: 5px;
}

.post-navigation .nav-title a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--exhibitio-heading, #222);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-navigation .nav-title a:hover {
  color: var(--exhibitio-accent, #c19f5f);
}

/* Comments */
.comments-area {
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  margin: 0 auto 80px;
  max-width: 900px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.comments-area h2,
.comments-area h3 {
  color: var(--exhibitio-heading, #222);
}

.comment-body {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--exhibitio-border, #e7e7e7);
}

.comment-meta a {
  color: var(--exhibitio-accent, #c19f5f);
  font-weight: 500;
}

.comment-reply-link {
  color: var(--exhibitio-accent, #c19f5f);
  font-weight: 600;
  text-decoration: none;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* Comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  background: #fafafa;
  transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--exhibitio-accent, #c19f5f);
  outline: none;
  background: #fff;
}

.comment-form input[type="submit"] {
  background: var(--exhibitio-accent, #c19f5f);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.comment-form input[type="submit"]:hover {
  background: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .post-navigation .nav-links {
    flex-direction: column;
  }
  .comments-area {
    padding: 25px;
  }
}
/* ==========================================================
   RELATED POSTS GRID LAYOUT
========================================================== */

.related-posts {
  margin-top: 60px;
  padding-top: 40px;
}

.related-title {
  font-family: "Jost", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
  color: var(--exhibitio-heading, #222);
}

/* Grid Layout */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Related Post Cards */
.related-card {
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Image */
.related-card .blog-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Content */
.related-card .blog-content {
  padding: 20px;
}

.related-card .blog-title {
  font-size: 1.1rem;
  margin: 10px 0;
  line-height: 1.4;
}

.related-card .blog-title a {
  text-decoration: none;
  color: var(--exhibitio-heading, #222);
  transition: color 0.3s ease;
}

.related-card .blog-title a:hover {
  color: var(--exhibitio-accent, #503AA8);
}

.related-card .blog-meta {
  font-size: 0.85rem;
  color: var(--exhibitio-meta, #777);
  margin-bottom: 8px;
}

/* Read More */
.related-card .read-more {
  display: inline-block;
  color: var(--exhibitio-accent, #503AA8);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 10px;
}

.related-card .read-more:hover {
  text-decoration: underline;
}

/* =======================
   Responsive Adjustments
======================= */
@media (max-width: 992px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   COMMENTS STYLING — Exhibitio Theme
   ========================================================== */
/* Comments */
.comments-area {
  background: #fff;
  padding: 20px;
  margin: 0 auto 20px;
  max-width: 900px;
  box-shadow:none;
  clear: both;
  display: block;
  width: 100%;
}

.comments-area h2,
.comments-area h3 {
  color: var(--exhibitio-heading, #222);
  margin-bottom: 40px;
}

.comment-body {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--exhibitio-border, #e7e7e7);
}

.comment-meta a {
  color: var(--exhibitio-accent, #c19f5f);
  font-weight: 500;
}

.comment-reply-link {
  color: var(--exhibitio-accent, #c19f5f);
  font-weight: 600;
  text-decoration: none;
}

.comment-reply-link:hover {
  text-decoration: underline;
}

/* Comment form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 15px;
  font-size: 0.95rem;
  background: #fafafa;
  transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--exhibitio-accent, #c19f5f);
  outline: none;
  background: #fff;
}

.comment-form input[type="submit"] {
  background: var(--exhibitio-accent, #c19f5f);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.comment-form input[type="submit"]:hover {
  background: #000;
}

/* Responsive */
@media (max-width: 768px) {
  .post-navigation .nav-links {
    flex-direction: column;
  }
  .comments-area {
    padding: 25px;
  }
}

/* ==========================================================
   COMMENT LIST CLEANUP — REMOVE BULLETS BEFORE AVATAR
========================================================== */
.comment-list,
.comment-list ul,
.comment-list ol {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.comment-list .children {
  margin-left: 70px;
  border-left: 2px solid var(--exhibitio-border, #ddd);
  padding-left: 20px;
}

.comment-list .reply a {
  color: var(--exhibitio-accent, #503AA8);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.comment-list .reply a:hover {
  color: #000;
}

/* Each comment item */
.comment-list li {
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

.comment-list .stacked-comment {
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.comment-avatar img {
  border-radius: 50%;
  width: 70px;
  height: 70px;
  object-fit: cover;
  margin-right: 30px;
}

.comment-main {
  flex: 1;
}

.comment-meta-stacked {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  color: var(--exhibitio-meta, #777);
  margin-bottom: 8px;
}

.comment-meta-stacked i {
  color: var(--exhibitio-accent, #503AA8);
  margin-right: 6px;
}

.comment-author {
  font-weight: 500;
  color: var(--exhibitio-heading, #222);
  font-size: 1.5rem;
  
}

.comment-text {
  color: var(--exhibitio-text, #555);
  line-height: 1.6;
  font-weight: 300;
  font-size: 17px;
}

.comment-awaiting-moderation {
  background: #fff5e0;
  border-left: 4px solid var(--exhibitio-accent, #503AA8);
  padding: 8px 14px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #555;
}

.comment-list .reply {
  margin-top: 8px;
}

.comment-list .reply a {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--exhibitio-accent, #503AA8);
  text-decoration: none;
}

.comment-list .reply a:hover {
  color: #000;
}

/* Nested Replies Indent */
.comment-list .children {
  margin-left: 70px;
  margin-top: 20px;
  border-left: none;
  padding-left: 20px;
}

/* Reply Form Styling */
#respond,
#respond-wrapper {
  clear: both;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
}

/* Prevent Sidebar Drop */
.site-main .row::after {
  content: "";
  display: block;
  clear: both;
}

/* Responsive */
@media (max-width: 700px) {
  .comment-body {
    flex-direction: column;
  }
  .comment-avatar img {
    width: 50px;
    height: 50px;
  }
  .comment-list .children {
    margin-left: 30px;
    padding-left: 10px;
  }
}

/* ==========================================================
   EXHIBITIO — FRONT PAGE
========================================================== */

/* Full-width main area */
.front-page-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Full-width hero slider */
.front-page-content > .hero-slider {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/*
 * Homepage content uses the global .container class.
 * No homepage-specific WPBakery row overrides.
 */

/* ==========================================================
   EXHIBITIO — HEADER & OFF-CANVAS STACKING FIX
========================================================== */

:root {
    --z-header: 10000;
    --z-submenu: 10010;
    --z-offcanvas-backdrop: 20000;
    --z-offcanvas-panel: 20001;
}

/* ============================
   DEFAULT HEADER
============================ */

html body #site-header.site-header {
    position: relative;
    top: auto;
    z-index: var(--z-header) !important;
    overflow: visible;

    /* Do not use isolation: isolate */
}

/* ============================
   STICKY HEADER
============================ */

html body.has-sticky-header-enabled #site-header.site-header {
    position: sticky !important;
    top: 0;
    z-index: var(--z-header) !important;
}

/* ============================
   STICKY HEADER APPEARANCE
============================ */

html body.has-sticky-header-enabled
#site-header.site-header.is-sticky {
    background-color: #ffffff;
    color: var(--exhibitio-menu, #222222);
    border-bottom: 1px solid var(--exhibitio-border, #dfdfdf);
}

/* Transparent header becomes solid when sticky */
html body.has-sticky-header-enabled
#site-header.site-header.is-transparent.is-sticky {
    background-color: #ffffff;
    color: var(--exhibitio-menu, #222222);
    border-bottom-color: var(--exhibitio-border, #dfdfdf);
}

/* ============================
   WORDPRESS ADMIN BAR
============================ */

html body.admin-bar.has-sticky-header-enabled
#site-header.site-header {
    top: 32px;
}

@media (max-width: 782px) {
    html body.admin-bar.has-sticky-header-enabled
    #site-header.site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    html body.admin-bar.has-sticky-header-enabled
    #site-header.site-header {
        top: 0;
    }
}

/* ============================
   HEADER DROPDOWNS
============================ */

/* Desktop navigation only */
#site-header .header-left .sub-menu,
#site-header .header-center .sub-menu,
#site-header .header-right .sub-menu,
#site-header .mega-menu {
    z-index: var(--z-submenu);
}

/* ============================
   OFF-CANVAS BACKDROP
============================ */

html body #exhibitio-offcanvas-backdrop.offcanvas-backdrop {
    position: fixed;
    inset: 0;
    z-index: var(--z-offcanvas-backdrop) !important;
}

/* Keep backdrop hidden when closed */
html body #exhibitio-offcanvas-backdrop[hidden] {
    display: none !important;
}

/* ============================
   OFF-CANVAS PANEL
============================ */

html body #exhibitio-offcanvas.offcanvas-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    z-index: var(--z-offcanvas-panel) !important;

    /* Preserve sliding animation from offcanvas.css */
}

/* ============================
   PAGE CONTENT STACKING
============================ */

#primary,
.site-main,
.front-page-content {
    position: relative;
    z-index: 1;
}

/* ============================
   MOBILE HEADER
============================ */

@media (max-width: 1160px) {

    /* Keep hamburger button accessible */
    #site-header .offcanvas-toggle {
        position: relative;
        z-index: 2;
    }

    /* Keep logo and search properly aligned */
    #site-header .header-grid {
        align-items: center;
    }
}
/* ==========================================================
   EXHIBITIO — RECENT POSTS WIDGET
========================================================== */

/* Widget container */

.exhibitio-recent-posts {
    --erp-card-bg: #ffffff;
    --erp-card-hover-bg: #f5f5f5;
    --erp-card-border: #eeeeee;
    --erp-title-color: #373e43;
    --erp-title-hover-color: var(--exhibitio-accent, #503AA8);
    --erp-date-color: #7b7e86;
    --erp-card-radius: 0px;
    --erp-card-padding: 12px;
    --erp-card-gap: 10px;
    --erp-thumbnail-size: 65px;

    display: flex;
    flex-direction: column;
    gap: var(--erp-card-gap);

    width: 100%;
    margin: 0;
    padding: 0;

    list-style: none;

    font-family: var(--exhibitio-body-font, inherit);
}

.exhibitio-recent-posts,
.exhibitio-recent-posts * {
    box-sizing: border-box;
}


/* ==========================================================
   INDIVIDUAL POST CARD
========================================================== */

.exhibitio-recent-posts .erp-card {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: var(--erp-card-padding);

    list-style: none;

    background-color: var(--erp-card-bg);
    border: 1px solid var(--erp-card-border);
    border-radius: var(--erp-card-radius);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}


/* Card hover */

.exhibitio-recent-posts .erp-card:hover {
    background-color: var(--erp-card-hover-bg);
}


/* Remove default sidebar list decorations */

.exhibitio-recent-posts .erp-card::before,
.exhibitio-recent-posts .erp-card::after {
    content: none;
}


/* ==========================================================
   FEATURED IMAGE
========================================================== */

.exhibitio-recent-posts .erp-thumbnail {
    display: block;

    flex: 0 0 var(--erp-thumbnail-size);

    width: var(--erp-thumbnail-size);
    height: var(--erp-thumbnail-size);

    margin: 0;
    padding: 0;

    overflow: hidden;

    border-radius: var(--erp-card-radius);
    text-decoration: none;
}

.exhibitio-recent-posts .erp-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.exhibitio-recent-posts .erp-card:hover .erp-thumbnail img {
    transform: scale(1.06);
}


/* ==========================================================
   POST CONTENT
========================================================== */

.exhibitio-recent-posts .erp-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    flex: 1;
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   POST TITLE
========================================================== */

.exhibitio-recent-posts .erp-content a.erp-title,
.site-footer .exhibitio-recent-posts .erp-content a.erp-title {
    display: block;

    margin: 0;
    padding: 0;

    color: var(--erp-title-color);

    font-family: var(--exhibitio-body-font, inherit);
    font-size: 15px;
    font-weight: var(--exhibitio-body-weight, 400);

    line-height: 1.4;

    text-decoration: none;
    overflow-wrap: anywhere;

    transition: color 0.25s ease;
}


/* Post title hover */

.exhibitio-recent-posts .erp-content a.erp-title:hover,
.exhibitio-recent-posts .erp-content a.erp-title:focus-visible,
.site-footer .exhibitio-recent-posts .erp-content a.erp-title:hover,
.site-footer .exhibitio-recent-posts .erp-content a.erp-title:focus-visible {
    color: var(--erp-title-hover-color);
    text-decoration: none;
}


/* ==========================================================
   POST DATE
========================================================== */

.exhibitio-recent-posts .erp-date {
    display: block;

    margin: 0;
    padding: 0;

    color: var(--erp-date-color);

    font-family: var(--exhibitio-body-font, inherit);
    font-size: 12px;
    font-weight: var(--exhibitio-body-weight, 400);

    line-height: 1.4;
}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

.exhibitio-recent-posts a:focus-visible {
    outline: 2px solid var(--erp-title-hover-color);
    outline-offset: 3px;
}


/* ==========================================================
   MOBILE RESPONSIVE
========================================================== */

@media (max-width: 600px) {

    .exhibitio-recent-posts .erp-card {
        gap: 10px;
    }

    .exhibitio-recent-posts .erp-content a.erp-title {
        font-size: 14px;
    }

    .exhibitio-recent-posts .erp-date {
        font-size: 11px;
    }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .exhibitio-recent-posts .erp-card,
    .exhibitio-recent-posts .erp-thumbnail img,
    .exhibitio-recent-posts .erp-title {
        transition: none;
    }

    .exhibitio-recent-posts .erp-card:hover .erp-thumbnail img {
        transform: none;
    }
}