/* ============================================================
   ROOT THEME VARIABLES
   ============================================================ */

/* Theme-mode driven colors (JS should toggle data-theme on <html>:
   "light", "dark", or "auto") */

:root {
  /* Default to light baseline; overridden by data-theme + prefers-color-scheme */
  --theme-background: linear-gradient(
    to right,
    #050814 0%,
    #1f2940 50%,
    #050814 100%
  );
  --color-text: #045b71;
  --color-background: rgba(0,0,0,0.4);
  --color-surface: #141926;
  --color-border: rgba(255,255,255,0.15);
  --color-accent: #39ff14;
  --color-accent-strong: #1fb5a8;
  --menu-hover-bg: #1fb5a8;
  --menu-hover-text: #04101a;
  --tile-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

/* GLOBAL RADIUS OVERRIDE */
:root {
    --global-radius: 20px;
}

.card,
.container-component,
.sidebar-right,
.main-top,
.main-body,
.tile,
.module,
.moduletable,
.article,
.blog-item,
div,
section {
    border-radius: var(--global-radius) !important;
}


/* ============================================================
   LIGHT MODE — RESTORED FABRIC BACKGROUND + WHITE BLOG CONTAINER
   ============================================================ */

html[data-theme="light"] {
  /* RESTORED: stonewashed blue fabric background */
  --theme-background: linear-gradient(
    to right,
    #cfd4df 0%,
    #3b547a 50%,
    #cfd4df 100%
  );

  /* readable text */
  --color-text: #333333;

  /* white blog container only (global background stays fabric) */
  --color-background: rgba(255,255,255,0.95);
  --color-surface: #ffffff;

  --color-border: rgba(0,0,0,0.12);

  --color-accent: #1b8ae6;
  --color-accent-strong: #1b6bd6;
  --menu-hover-bg: #1b8ae6;
  --menu-hover-text: #ffffff;

  --tile-shadow: 0 4px 16px rgba(0,0,0,0.16);
}


/* ============================================================
   DARK MODE
  ============================================================ */

html[data-theme="dark"] {
  --theme-background: linear-gradient(
    to right,
    #02030b 0%,
    #111a2f 50%,
    #02030b 100%
  );
  --color-text: #e7eaf0;
  --color-background: rgba(3, 7, 20, 0.96);
  --color-surface: #151b28;
  --color-border: rgba(255,255,255,0.18);
  --color-accent: #39ffb4;
  --color-accent-strong: #1fb5a8;
  --menu-hover-bg: #1fb5a8;
  --menu-hover-text: #050814;
  --tile-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

/* ============================================================
   LIGHT MODE — WHITE CONTAINER ONLY FOR BLOG (Notebook)
   ============================================================ */

html[data-theme="light"] .com-content-category-blog .blog-items,
html[data-theme="light"] .com-content-category-blog .blog,
html[data-theme="light"] .com-content-category-blog .items-leading,
html[data-theme="light"] .com-content-category-blog .items-row,
html[data-theme="light"] .com-content-category-blog .item {
  background: #ffffff !important;
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  color: #333 !important;
}

/* Optional: spacing around the container */
html[data-theme="light"] .com-content-category-blog {
  padding: 1rem;
}

/* ============================================================
   DARK MODE — DARK BLUE CONTAINER FOR BLOG (Notebook)
   ============================================================ */

html[data-theme="dark"] .com-content-category-blog .blog-items,
html[data-theme="dark"] .com-content-category-blog .blog,
html[data-theme="dark"] .com-content-category-blog .items-leading,
html[data-theme="dark"] .com-content-category-blog .items-row,
html[data-theme="dark"] .com-content-category-blog .item {
  background: #111827 !important; /* deep navy-blue container */
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow:
    0 0 14px rgba(0,0,0,0.45),
    inset 0 0 10px rgba(255,255,255,0.04);
  color: var(--color-text) !important;
}

/* Optional: spacing around the container */
html[data-theme="dark"] .com-content-category-blog {
  padding: 1rem;
}


/* ============================================================
   SPOKEN TEXT — SUBTLE GLOW FOR BOTH MODES
  ============================================================ */

/* Light mode: soft white halo for contrast */
html[data-theme="light"] .spoken-text {
  text-shadow:
    0 0 3px rgba(255,255,255,0.65),
    0 0 6px rgba(255,255,255,0.45);
}

/* Dark mode: subtle black/charcoal depth glow */
html[data-theme="dark"] .spoken-text {
  text-shadow:
    0 0 3px rgba(0,0,0,0.55),
    0 0 6px rgba(0,0,0,0.45),
    0 2px 4px rgba(0,0,0,0.6);
}

/* Auto mode (when system is dark) */
html[data-theme="auto"][data-bs-theme="dark"] .spoken-text {
  text-shadow:
    0 0 3px rgba(0,0,0,0.55),
    0 0 6px rgba(0,0,0,0.45),
    0 2px 4px rgba(0,0,0,0.6);
}

/* Auto mode: follow OS, but still use same CSS variables */
html[data-theme="auto"][data-bs-theme="dark"],
html[data-theme="auto"] @media (prefers-color-scheme: dark) {
  --theme-background: linear-gradient(
    to right,
    #02030b 0%,
    #111a2f 50%,
    #02030b 100%
  );
  --color-text: #e7eaf0;
  --color-background: rgba(3, 7, 20, 0.96);
  --color-surface: #151b28;
  --color-border: rgba(255,255,255,0.18);
  --color-accent: #39ffb4;
  --color-accent-strong: #1fb5a8;
  --menu-hover-bg: #1fb5a8;
  --menu-hover-text: #050814;
  --tile-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

/* ============================================================
   DARK MODE — Overview page container shine
   ============================================================ */

html[data-theme="dark"] .overview-container,
html[data-theme="auto"][data-bs-theme="dark"] .overview-container {
  background: linear-gradient(
      to bottom right,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.02)
    ),
    #cfdee2;
  border-radius: 10px;
  padding: 0.01rem;
  box-shadow:
    0 0 12px rgba(0,0,0,0.45),
    inset 0 0 8px rgba(255,255,255,0.05);
}

/* Sidebar shine */
html[data-theme="dark"] .sidebar,
html[data-theme="auto"][data-bs-theme="dark"] .sidebar {
  background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.01)
    ),
    #cfdee2;
  border-radius: 12px;
  box-shadow:
    0 0 10px rgba(0,0,0,0.4),
    inset 0 0 6px rgba(255,255,255,0.04);
}

/* Main content shine */
html[data-theme="dark"] .main-content,
html[data-theme="auto"][data-bs-theme="dark"] .main-content {
  background: linear-gradient(
      to top left,
      rgba(255,255,255,0.05),
      rgba(255,255,255,0.015)
    ),
    #1c1c1c;
  border-radius: 12px;
  box-shadow:
    0 0 14px rgba(0,0,0,0.45),
    inset 0 0 10px rgba(255,255,255,0.04);
}

html[data-theme="dark"] .overview-container .main-top.card,
html[data-theme="auto"][data-bs-theme="dark"] .overview-container .main-top.card {
    background: var(--color-main-top) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text) !important;
}

/* ============================================================
   GLOBAL BACKGROUND + GRADIENT + FABRIC
   ============================================================ */

/* Animated gradient trademark */
body {
  background: var(--theme-background);
  background-attachment: fixed;
  background-size: 200% 200%;
  animation: gradientShift 16s ease-in-out infinite;
  position: relative;   /* <-- important */
  z-index: 0;           /* <-- important */
  color: var(--color-text);
  overflow-x: hidden;
}

/* Gradient animation */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Fabric weave — light mode */
html[data-theme="light"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* always behind content */
  
  background-image:
    repeating-linear-gradient(45deg, rgba(52,93,137,0.05) 0px, rgba(52,93,137,0.05) 2px, transparent 2px, transparent 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.05) 0px, rgba(0,0,0,0.05) 2px, transparent 2px, transparent 6px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.05'/></svg>");
}
  
/* Fabric weave — dark mode (midnight fabric glow) */
html[data-theme="dark"] body::before,
html[data-theme="auto"][data-bs-theme="dark"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    /* bright thread */
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.14) 0px,
      rgba(255,255,255,0.10) 2px,
      transparent 2px,
      transparent 6px
    ),
    /* dark thread */
    repeating-linear-gradient(
      -45deg,
      rgba(0,0,0,0.32) 0px,
      rgba(0,0,0,0.32) 2px,
      transparent 2px,
      transparent 6px
    ),
    /* noise texture */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.06'/></svg>");
}

/* Kill Cassiopeia’s default blue header background */
body .header,
body .site-header,
body .container-header {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}
body .container-header {
  min-height: 0 !important;
  padding: 0 !important;
}

/* Ensure site-grid does not add its own veil */
body .site-grid,
body .site {
  background: transparent !important;
  background-image: none !important;
}

/* Disable gradient animation for Overview only, if desired */
/*
body.itemid-109 {
  animation: none !important;
}
*/

/* ============================================================
   NEON THEME SWITCHER (LIGHT / AUTO / DARK)
   ============================================================ */

.neon-switcher {
  display: flex;
  position: relative;
  gap: 0;
  padding: 6px;
  border-radius: 40px;
  background: #0d1b3d; /* solid, no backdrop blur */
  width: fit-content;
  margin: 0;
}

.neon-indicator {
  position: absolute;
  top: 4px;
  left: 6px;
  width: calc((100% - 12px) / 3);
  height: calc(100% - 12px);
  background: #1fb5a8;
  border-radius: 30px;
  box-shadow: 0 0 12px rgba(31,181,168,0.6);
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1);
  pointer-events: none;
  z-index: 1;
}

.mode-btn {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 30px;
  transition: color 0.25s ease;
  color: #cfe3ff;
}

.mode-btn.active-mode {
  color: #ffffff;
}

.mode-btn:hover {
  color: #1fb5a8;
}

.auto-label {
  display: block;
  font-size: 0.55rem;
  margin-top: -4px;
  color: #1fb5a8;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

.mode-btn.active-mode .auto-label {
  opacity: 0;
}

/* ============================================================
   OVERVIEW FOOTER — FROSTED GLASS PANEL
   ============================================================ */

.footer-overview {
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  margin: 2rem auto 1rem;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border-top: 3px solid #2c3e60;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   GRID + BLOCKS
   ============================================================ */

.footer-overview .footer-grid {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.footer-overview .footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   TITLES
   ============================================================ */

.footer-overview .footer-block h4,
.footer-overview .footer-block h5 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #fff;
  border-bottom: 3px solid rgba(255,255,255,0.35);
  padding-bottom: 0.15rem;
  display: inline-block;
  transition: border-color 0.25s ease;
}

.footer-overview .footer-block h4:hover,
.footer-overview .footer-block h5:hover {
  border-bottom-color: rgba(255,255,255,0.65);
}

/* ============================================================
   BUTTON ROWS + BUTTONS
   ============================================================ */

.footer-overview .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

/* Neutral footer buttons */
.footer-overview .footer-btn {
  padding: 0.25rem 0.4rem;
  border-radius: 24px;
  font-size: 0.75rem;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-overview .footer-btn:hover {
  background: #00698c;
  color: #000;
  border-color: #111;
}

/* ============================================================
   DIVISION BUTTON COLORS (protected from neutral overrides)
   ============================================================ */

.footer-overview .footer-btn.meetmarco-btn { background-color: #0099ad; }
.footer-overview .footer-btn.goshopping-btn { background-color: #004c58; }
.footer-overview .footer-btn.bookings-btn  { background-color: #112855; }
.footer-overview .footer-btn.software-btn  { background-color: #292e38; }

/* Division button hover (keeps individuality) */
.footer-overview .footer-btn.meetmarco-btn:hover { background-color: #00bcd4; }
.footer-overview .footer-btn.goshopping-btn:hover { background-color: #006b59; }
.footer-overview .footer-btn.bookings-btn:hover  { background-color: #003170; }
.footer-overview .footer-btn.software-btn:hover  { background-color: #444; }

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

.footer-overview .footer-bottom {
  width: 100%;
  text-align: center;
  border-top: 1px solid #2c3e60;
  margin-top: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.footer-overview .footer-bottom p {
  font-size: 0.6rem;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  display: inline-block;
  padding: 4px 8px;
  background: rgba(0,0,0,0.24);
  border-radius: 6px;
}

/* ============================================================
   LINK STYLING (no underline, bold)
   ============================================================ */

.footer-overview .footer-links a {
  text-decoration: none;
  font-weight: 700;
  color: #fff;
}

.footer-overview .footer-links a:hover {
  opacity: 0.85;
}

/* ============================================================
   LIGHT MODE — TEXT + NEUTRAL BUTTONS
   ============================================================ */

html[data-theme="light"] .footer-overview .footer-links a,
html[data-theme="light"] .footer-overview .footer-btn,
html[data-theme="light"] .footer-overview .footer-bottom p {
  color: #fff;
}

html[data-theme="light"] .footer-overview .footer-btn:not(.meetmarco-btn):not(.goshopping-btn):not(.bookings-btn):not(.software-btn) {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .footer-overview .footer-btn:not(.meetmarco-btn):not(.goshopping-btn):not(.bookings-btn):not(.software-btn):hover {
  background: rgba(0, 150, 170, 0.35);
  border-color: rgba(0, 150, 170, 0.55);
}

/* ============================================================
   MOBILE (STACKED)
   ============================================================ */

@media (max-width: 768px) {
  .footer-overview .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-overview .footer-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
  }

  .footer-overview .footer-block h4,
  .footer-overview .footer-block h5 {
    font-size: 0.85rem;
  }
}

/* ============================================================
   SIDEBARS + CONTAINERS
   ============================================================ */

.sidebar-right .card,
.sidebar-left .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--tile-shadow);
}
.sidebar-right .card-header,
.sidebar-left .card-header {
  background: var(--color-background);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  padding: 0.75rem 1rem;
}
.sidebar-right .card-body,
.sidebar-left .card-body {
  padding: 1rem;
  color: var(--color-text);
}

/* Sidebar menus */
.sidebar-right .card-body .mod-menu,
.sidebar-left .card-body .mod-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}
.sidebar-right .mod-menu .nav-item,
.sidebar-left .mod-menu .nav-item {
  width: 100%;
  max-width: 200px;
}
.sidebar-right .mod-menu .nav-item > a,
.sidebar-left .mod-menu .nav-item > a {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  text-align: center;
  background: var(--color-background);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sidebar-right .mod-menu .nav-item > a:hover,
.sidebar-left .mod-menu .nav-item > a:hover {
  background: var(--menu-hover-bg);
  color: var(--menu-hover-text);
  border-color: var(--menu-hover-bg);
}
.sidebar-right .mod-menu li a,
.sidebar-right .mod-menu li.active a {
  font-size: 15px;
}

/* Legal Shortcuts horizontal menu */
.legal-shortcuts ul.mod-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-shortcuts ul.mod-menu > li {
  display: inline-flex;
  margin: 0;
}
.legal-shortcuts ul.mod-menu > li > a {
  display: inline-block;
  padding: 6px 12px;
  background-color: #d3d3d3;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.legal-shortcuts ul.mod-menu > li > a:hover {
  background-color: #003366;
  color: #fff;
}

/* ============================================================
   BLOG INTRO IMAGES / MAIN-TOP GRID
   ============================================================ */

.blog .img-intro-none,
.blog .img-intro-left,
.blog .img-intro-right {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 12px;
}
.blog .img-intro-none img,
.blog .img-intro-left img,
.blog .img-intro-right img {
  width: 320px;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: var(--tile-shadow);
}
.blog .img-intro-none:hover img,
.blog .img-intro-left:hover img,
.blog .img-intro-right:hover img {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 64, 128, 0.5);
}
.blog .img-intro-none::after,
.blog .img-intro-left::after,
.blog .img-intro-right::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 64, 128, 0.8);
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s ease;
  border-radius: 0 0 8px 8px;
}
.blog .img-intro-none:hover::after,
.blog .img-intro-left:hover::after,
.blog .img-intro-right:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* MAIN-TOP grid (blog + projects modules) */
#main-top {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
#main-top .blog-box,
#main-top .projects-box {
  flex: 1 1 45%;
  max-width: 500px;
  box-sizing: border-box;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 23px;
  padding: 1rem;
  box-shadow: var(--tile-shadow);
  color: var(--color-text);
}
@media (max-width: 768px) {
  #main-top .blog-box,
  #main-top .projects-box {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ============================================================
   HANDSHAKE BLOCK — RESPONSIVE BACKGROUND + FLUID OVERLAY
   ============================================================ */

.handshake-block {
    width: 100%;
    max-width: 600px; /* optional */
    margin: 0 auto;
    background-image: url('/images/logos/handshake-with-colours.png');
    background-size: cover; /* image fills container */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px; /* optional */
}

/* Transparent underlay that grows with text */
.handshake-overlay {
    background: rgba(0, 0, 0, 0.55);
    padding: 6px; /* EXACT spacing you want */
    color: #fff;
    text-align: center;
    border-radius: 8px;
    margin: 6px; /* keeps overlay inside image with small gap */
}

/* Text styling */
.handshake-overlay .intro-main-text {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.handshake-overlay .intro-footnote {
    font-size: 0.75rem;
    margin: 0;
}

/* Mobile refinements */
@media (max-width: 768px) {
    .handshake-block {
        max-width: 100%;
    }

    .handshake-overlay {
        padding: 6px;
        margin: 6px;
    }

    .handshake-overlay .intro-main-text {
        font-size: 0.9rem;
    }

    .handshake-overlay .intro-footnote {
        font-size: 0.65rem;
    }
}

/* ============================================================
   POPUPS / MEDIA BOXES
   ============================================================ */

.popup-wrapper {
  width: 100%;
  max-width: 460px;
  height: 600px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.4;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--tile-shadow);
}
.popup-media {
  text-align: center;
  margin-bottom: 10px;
}
.popup-media img,
.popup-media iframe {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: var(--tile-shadow);
}
.popup-message {
  text-align: center;
  margin: 10px 0;
  font-weight: 700;
  color: var(--color-text);
}
.popup-lyrics {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.popup-lyrics .lyrics-col {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text);
}
.popup-credits {
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 10px;
  text-align: center;
}
.popup-details {
  margin: 15px 0;
  padding: 10px;
  background: var(--color-background);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.popup-details p {
  margin: 6px 0;
  display: flex;
  align-items: center;
}
.popup-details strong {
  min-width: 80px;
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
}
.popup-details a {
  color: var(--color-accent-strong);
  text-decoration: none;
  font-weight: 600;
}
.popup-details a:hover {
  text-decoration: underline;
}

/* Mediabox overlay */
.wf-mediabox-container,
.wf-mediabox-content,
.wf-mediabox-content-iframe,
.wf-mediabox-content-item {
  background: transparent !important;
}
.wf-mediabox-container {
  background: rgba(0,0,0,0.85) !important;
}

/* Popup scrollbars */
.popup-wrapper::-webkit-scrollbar,
.popup-lyrics::-webkit-scrollbar {
  width: 8px;
}
.popup-wrapper::-webkit-scrollbar-track,
.popup-lyrics::-webkit-scrollbar-track {
  background: var(--color-background);
}
.popup-wrapper::-webkit-scrollbar-thumb,
.popup-lyrics::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 12px;
}
.popup-wrapper,
.popup-lyrics {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-background);
}

/* ============================================================
   SONG LAYOUT (MUSIC ARTICLES)
   ============================================================ */

.song-layout {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  margin: 2em 0;
  padding: 1em;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--tile-shadow);
  color: var(--color-text);
}
.song-layout .song-block {
  flex: 0 0 350px;
  max-width: 350px;
}
.cover-image {
  max-width: 350px;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  border-radius: 12px;
  box-shadow: var(--tile-shadow);
}
.song-layout .lyrics-block {
  flex: 1;
  column-count: 2;
  column-gap: 2rem;
  font-size: 0.9rem;
  line-height: 1.4;
  max-height: 70vh;
  overflow-y: auto;
  color: var(--color-text);
}
.lyrics-block p {
  margin: 0 0 0.6rem;
  break-inside: avoid;
}
.instrumental-note {
  font-style: italic;
  opacity: 0.7;
}
.lyrics-meta,
.lyrics-block .credits,
.lyrics-block .released,
.lyrics-block .copyright {
  display: block;
  column-span: all;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.8;
  font-style: italic;
}

/* Song scrollbars */
.song-layout .lyrics-block::-webkit-scrollbar {
  width: 8px;
}
.song-layout .lyrics-block::-webkit-scrollbar-track {
  background: var(--color-background);
}
.song-layout .lyrics-block::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 12px;
}
.song-layout .lyrics-block {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-background);
}

/* Download button */
.download-button {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  transition: background 0.25s ease;
}
.download-button:hover {
  background: var(--color-accent-strong);
}

/* Random Song module */
.mod-random-song .random-song-player {
  max-width: 350px;
  margin: 0 auto;
}
.mod-random-song .random-song-player iframe {
  width: 100%;
  aspect-ratio: 1 / 1.25;
}
.mod-random-song .lyrics-button,
.mod-random-song .back-home-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--color-background);
  color: var(--color-text);
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  transition: background 0.2s ease, color 0.2s ease;
}
.mod-random-song .lyrics-button:hover,
.mod-random-song .back-home-button:hover {
  background: var(--menu-hover-bg);
  color: var(--menu-hover-text);
}

/* Responsive song layout */
.mobile-arrow {
  display: none;
  text-align: center;
  margin-top: 0.4rem;
}
.mobile-arrow img {
  max-width: 160px;
  height: auto;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .mobile-arrow {
    display: block;
  }
  .song-layout {
    flex-direction: column;
    max-width: 95%;
    padding: 0.5rem;
  }
  .song-layout .song-block {
    max-width: 100%;
    flex: 1 1 auto;
  }
  .song-layout .lyrics-block {
    column-count: 1;
    max-height: none;
    overflow-y: visible;
    font-size: 1rem;
  }
}

/* Songs category back arrow */
body.view-article.category-songs .back-link-wrapper {
  text-align: right;
  margin: 0 0 1rem;
}
body.view-article.category-songs .back-link {
  display: inline-block;
  font-size: 3rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background: #112855;
  padding: 0.2em 0.2em;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}
body.view-article.category-songs .back-link:hover,
body.view-article.category-songs .back-link:focus {
  background: #333;
  color: #333;
  outline: none;
}

/* ============================================================
   DIVISION BUTTONS (GLOBAL)
   ============================================================ */

.division-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease, filter 0.25s ease;
  color: #fff;
}
.division-btn:hover {
  filter: brightness(1.15);
  text-decoration: none;
}

/* Outline variant */
.division-btn.outline {
  background: transparent;
  border: 2px solid currentColor;
  color: var(--color-text);
}
.division-btn.outline:hover {
  background: var(--menu-hover-bg);
  color: var(--menu-hover-text);
}

/* Square variant */
.division-btn.square {
  border-radius: 6px;
}

/* Dark mode outline tweak */
@media (prefers-color-scheme: dark) {
  .division-btn.outline {
    color: var(--color-text);
    border-color: var(--color-border);
  }
}

/* Division-specific */
.meetmarco-btn { background: #00ccaa; }
.goshopping-btn { background: #006b59; }
.bookings-btn { background: #003170; }
.software-btn { background: #292e38; }
.software-btn:hover {
  background: #333;
}

/* ============================================================
   GATEWAY TILES
   ============================================================ */

/* Grid container */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

/* Individual tile */
.tile {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 70%);
  background-size: 200% 200%;
  background-position: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-position 0.4s ease;
}
.tile:hover {
  transform: perspective(800px) rotateX(4deg) rotateY(-4deg) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  background-position: 40% 40%;
}

/* Tile images */
.tile img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideIn 0.6s ease forwards;
  transition: transform 0.4s ease;
}
.tile:hover img {
  transform: scale(1.08);
}
.tile img:active {
  transform: scale(0.97);
  transition: transform 0.15s ease;
}

/* Titles and links */
.tile h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #333;
}
.tile a {
  text-decoration: none;
  color: inherit;
}

/* Responsive */
@media (max-width: 500px) {
  .tile-grid { grid-template-columns: 1fr; }
}

/* Dark mode overrides for tiles */
@media (prefers-color-scheme: dark) {
  .tile {
    background: #0f1115;
    box-shadow: 0 10px 28px rgba(0,0,0,0.55);
    color: #e7eaf0;
  }
  .tile img {
    filter: brightness(0.95) contrast(1.05) saturate(1.05);
  }
  .tile-label,
  .tile h3 {
    color: #e7eaf0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  }
  .tile:hover {
    box-shadow: 0 16px 36px rgba(0,0,0,0.6);
  }
}

/* Bootstrap dark theme tile support */
:root[data-bs-theme="dark"] .tile {
  background: #0f1115;
  box-shadow: 0 10px 28px rgba(0,0,0,0.55);
  color: #e7eaf0;
}
:root[data-bs-theme="dark"] .tile img {
  filter: brightness(0.95) contrast(1.05) saturate(1.05);
}
:root[data-bs-theme="dark"] .tile-label,
:root[data-bs-theme="dark"] .tile h3 {
  color: #e7eaf0;
}

/* Force 2x2 layout on larger screens */
@media (min-width: 501px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (min-width: 1200px) {
  .tile-grid {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* Gateway intro animations + treasure */
.intro-container {
  opacity: 0;
  transform: translateY(20px);
  animation: introFadeSlide 0.8s ease-out forwards;
}
.intro-image {
  opacity: 0;
  transform: translateX(-30px) scale(1.05);
  animation: introImageCurtain 1s ease-out forwards 0.3s;
}
.intro-text {
  opacity: 0;
  transform: translateX(30px);
  animation: introTextCurtain 0.8s ease-out forwards 0.5s;
  color: #000;
}
.intro-buttons .btn {
  opacity: 0;
  transform: translateY(10px);
  animation: buttonFadeUp 0.5s ease-out forwards;
}
.intro-buttons .btn:nth-child(1) { animation-delay: 0.8s; }
.intro-buttons .btn:nth-child(2) { animation-delay: 1s; }
.intro-buttons .btn:nth-child(3) { animation-delay: 1.2s; }

#mod-custom164 .tile-grid a,
#mod-custom164 .tile-grid a:link,
#mod-custom164 .tile-grid a:visited {
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
#mod-custom164 .tile-grid a:hover,
#mod-custom164 .tile-grid a:focus {
  color: #ffeb3b !important;
}

/* Overview treasure animation */
.treasure {
  display: inline-block;
  font-weight: 900;
  color: #0d1b3d;
  text-shadow: 0 0 5px #66a3ff, 0 0 10px #3399ff, 0 0 20px #004080;
  animation: treasureGlow 1.5s infinite alternate;
}
@keyframes treasureGlow {
  0%   { transform: scale(1);   text-shadow: 0 0 5px #66a3ff; }
  50%  { transform: scale(1.2); text-shadow: 0 0 20px #3399ff, 0 0 30px #004080; }
  100% { transform: scale(1);   text-shadow: 0 0 10px #66a3ff; }
}
.sparkle {
  display: inline-block;
  animation: twinkle 2s infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.3) rotate(20deg); }
}

/* ============================================================
   HEADER / DIVISION GROUP
   ============================================================ */

.header-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 2rem;
}
.logo-welcome {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.welcome-text {
  font-family: 'Dancing Script', cursive;
  font-size: 2.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.divisions {
  display: flex;
  gap: 1.2rem;
}
.division-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: navFade 0.6s ease-out forwards;
}
.division-block:nth-child(1) { animation-delay: 0.5s; }
.division-block:nth-child(2) { animation-delay: 0.7s; }
.division-block:nth-child(3) { animation-delay: 0.9s; }
.division-block:nth-child(4) { animation-delay: 1.1s; }
.main-logo img {
  max-height: 85px;
  opacity: 0;
  animation: logoFade 1s ease-out forwards 0.4s;
}
.division-logo img {
  max-height: 70px;
  margin-bottom: -0.06rem;
}

/* Division buttons under logos (header variant) */
.division-btn.header-division {
  display: inline-block;
  padding: 0.1rem 0.7rem;
  font-size: 0.80rem;
  font-weight: bold;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.2s ease;
}
.division-btn.header-division::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
}
.division-btn.header-division:hover::after {
  animation: spotlight 0.75s ease-out;
}
.meetmarco-btn { background-color: #0084aa; }
.goshopping-btn { background-color: #004c58; }
.bookings-btn  { background-color: #112855; }
.software-btn  { background-color: #292e38; }
.meetmarco-btn:hover,
.goshopping-btn:hover,
.bookings-btn:hover,
.software-btn:hover {
  background-color: #b7b7b7;
}

/* Responsive header tweaks */
@media (max-width: 340px) {
  header .header-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.1rem;
  }
  .division-group {
    justify-content: center;
    flex-wrap: wrap;
  }
  .main-logo img { max-height: 85px; }
  .division-logo img { max-height: 70px; }
  .division-btn.header-division {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
}
@media (min-width: 993px) {
  .division-group {
    position: relative;
    left: -16px;
  }
  header .header-flex {
    justify-content: flex-start !important;
    gap: clamp(2rem, 4vw, 5rem);
  }
}

/* Animations */
@keyframes headerFadeSlide { to { opacity: 1; transform: translateY(0); } }
@keyframes logoFade        { to { opacity: 1; } }
@keyframes navFade         { to { opacity: 1; } }
@keyframes spotlight       { to { left: 125%; } }
@keyframes fadeSlideIn     { to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   UNIFIED DIVISION TOPBAR (THEME-ADAPTIVE)
   ============================================================ */
/* ============================================================
   MOBILE: LEFT‑ALIGN LOGO + SPOKEN TEXT
   ============================================================ */

.division-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* left block + right block */
  padding: 0.75rem 0.5rem;
  background: transparent;
  color: var(--color-text);
  position: relative;
  z-index: 10;
}

/* Left side stays as-is */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Right side: 4 buttons in a tight row */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px; /* your requested spacing */
}

/* Ensure buttons don’t stretch */
.topbar-right .division-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.division-topbar .topbar-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
}

.division-topbar .topbar-logo img {
  max-height: 100px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.35));
}

.spoken-text {
  font-family: 'Dancing Script', cursive;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-left: -0.4rem;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Topbar container colors */
:root {
  --topbar-container-bg: #3a7892;
  --topbar-container-bg-transparent: rgba(58, 120, 146, 0.6);
}

html[data-theme="dark"],
html[data-theme="auto"][data-bs-theme="dark"] {
  --topbar-container-bg: #192639;
  --topbar-container-bg-transparent: rgba(25, 38, 57, 0.5);
}

.division-topbar .topbar-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  background: var(--topbar-container-bg-transparent);
  padding: 0.75rem 1.25rem;
  border-radius: 0 40px 40px 0;
}

.topbar-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.topbar-link-item img {
  display: block;
  max-width: 60px;
  height: auto;
  margin-bottom: -12px;
  z-index: 1;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.topbar-link-item:hover img {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

.topbar-btn {
  margin-top: 0.25rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.12);
  transition: background 0.25s ease, color 0.25s ease;
}

.topbar-btn:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Responsive topbar */
@media (max-width: 991px) {
  .division-topbar {
    flex-direction: column;
    text-align: center;
    padding: 0.5rem;
  }

  .division-topbar .topbar-logo {
    justify-content: center;
  }

  .division-topbar .topbar-links {
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 12px;
  }
}

/* MOBILE: scale the entire iopro topbar logo block */
@media (max-width: 768px) {
  .iopro-topbar-logo {
    transform: scale(0.75);   /* 25% smaller */
    transform-origin: left center; /* keeps it aligned like desktop */
    display: inline-flex;     /* ensures horizontal alignment */
    align-items: center;
    gap: 0;                   /* no spacing between logo + text */
  }
}

/* DESKTOP + MOBILE: soft white backlight behind iopro topbar logo */
.iopro-topbar-logo {
  position: relative;
}

.iopro-topbar-logo::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: radial-gradient(
    circle at 25% center,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.25) 40%,
    rgba(255,255,255,0.00) 80%
  );
  filter: blur(6px);
  border-radius: 8px;
  z-index: -1;
}

/* Dark mode: slightly stronger glow */
html[data-theme="dark"] .iopro-topbar-logo::before {
  background: radial-gradient(
    circle at 25% center,
    rgba(255,255,255,0.70) 0%,
    rgba(255,255,255,0.35) 40%,
    rgba(255,255,255,0.00) 80%
  );
}

@media (max-width: 767px) {
  .division-topbar .topbar-links {
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
  }

  .topbar-link-item {
    flex: 1 1 45%;
    min-width: 120px;
  }

  .topbar-link-item img {
    max-width: 50px;
  }

  .topbar-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.6rem;
  }
}

/* Overview mobile accordion */
@media (max-width: 900px) {
  .overview-topbar .divisions-desktop {
    display: none !important;
  }

  .overview-topbar .divisions-mobile {
    display: block !important;
    width: 100%;
    max-width: 260px;
    margin-left: auto;
  }

  .overview-topbar .division-header {
    padding: 10px 14px;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 4px;
    opacity: 0.95;
    transition: opacity 0.2s ease;
  }

  .overview-topbar .division-header:hover {
    opacity: 1;
  }

  .overview-topbar .division-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 10px;
    transition: max-height 0.35s ease, opacity 0.35s ease;
  }

  .overview-topbar .division-content.open {
    max-height: 200px;
    opacity: 1;
    padding: 10px;
  }

  .overview-topbar .division-content .division-btn {
    display: inline-block;
    margin-top: 6px;
  }

  .overview-topbar .division-header[data-division="akamawa"] { background: #00ccaa; }
  .overview-topbar .division-header[data-division="shop"]     { background: #006b59; }
  .overview-topbar .division-header[data-division="bookings"] { background: #003170; }
  .overview-topbar .division-header[data-division="software"] { background: #333; }
}

@media (min-width: 901px) {
  .overview-topbar .divisions-mobile {
    display: none !important;
  }
}

.overview-topbar .division-logo img {
  max-height: 40px !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   MAWA MUSIC WHITE PANELS
   ============================================================ */

body.itemid-513 .com-content-article.item-page,
body.itemid-513 .com-content-article__body,
body.itemid-513 .com-content-categories__items {
  background-color: #ffffff;
  color: #000000;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin: 0 auto 2em;
  width: 100%;
  white-space: normal;
}
body.itemid-513 .com-content-article.item-page > :first-child,
body.itemid-513 .com-content-article__body > :first-child,
body.itemid-513 .com-content-categories__items > :first-child {
  margin-top: 0;
}
body.itemid-513 .com-content-article.item-page > :last-child,
body.itemid-513 .com-content-article__body > :last-child,
body.itemid-513 .com-content-categories__items > :last-child {
  margin-bottom: 0;
}

/* Print-friendly */
@media print {
  body.itemid-513 .com-content-article.item-page,
  body.itemid-513 .com-content-article__body,
  body.itemid-513 .com-content-category-blog__item.blog-item .item-content {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none;
    padding: 0;
  }
}

/* PhocaCart white container */
body.com-phocacart #phocacart {
  max-width: 1100px;
  margin: 2rem auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ============================================================
   GLOBAL MAIN MENU BUTTONS
   ============================================================ */

.main-nav a,
.mod-menu a {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin: 0.2rem 0.3rem;
  border-radius: 999px;
  background: #5d5d5d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}
.main-nav a:hover,
.mod-menu a:hover {
  background: #666;
  color: #1a3862;
}

/* Active item: ghosted text, non-clickable */
.main-nav li.current a,
.mod-menu li.current a,
.main-nav li.active a,
.mod-menu li.active a {
  color: rgba(255,255,255,0.25) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  cursor: default;
  pointer-events: none;
}

/* ============================================================
   BLA BLABLOG BIO + INTRO
   ============================================================ */

.page-header h2,
.item-title {
  display: none;
}
.bio-container {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  max-width: 800px;
  margin: auto;
}
.bio-container h2 {
  font-size: 22px;
  margin-top: 2em;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.3em;
  color: #444;
}
.bio-container img {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin: 0 1em 1em 0;
  max-width: 100%;
  height: auto;
}
.bio-container .float-left { float: left; }
.bio-container .float-right { float: right; }
.bio-container blockquote {
  font-style: italic;
  background: #f9f9f9;
  border-left: 4px solid #ccc;
  margin: 1.5em 0;
  padding: 0.8em 1em;
}
@media (max-width: 768px) {
  .bio-container .float-left,
  .bio-container .float-right {
    float: none;
    display: block;
    margin: 1em auto;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */

html {
  scroll-behavior: smooth;
}
#songs-slideshow {
  scroll-margin-top: 72px;
}

/* ============================================================
   MEETMARCO MODULE on Overview
   ============================================================ */

/* Wrapper */
.intro-image-wrapper {
  position: relative;
  max-width: 480px;
  margin: 0 auto 1rem auto;
}

/* Image stays bright and visible */
.intro-image-wrapper img.handshake {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Overlay box: smaller, lighter, elegant */
.intro-overlay-box {
  position: absolute;
  bottom: 4px;              /* sits slightly above the bottom */
  left: 50%;
  transform: translateX(-50%);
  width: 95%;                /* narrower so image stays visible */
  padding: 0.6rem 0.8rem;
  background: rgba(0,0,0,0.35);   /* MUCH lighter */
  border-radius: 10px;
  color: #fff;
  text-align: center;
  line-height: 1.15;         /* tighter lines */
  backdrop-filter: blur(2px); /* subtle, not darkening */
}

/* Main text */
.intro-main-text {
  font-size: 0.78rem;
  display: block;
}

/* Footnote */
.intro-footnote {
  margin: 0.3rem 0 0 0;
  font-size: 0.6rem;
  opacity: 0.9;
}

.intro-footnote a {
  color: #fff;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .intro-overlay-box {
    width: 94%;
    padding: 0.5rem 0.7rem;
  }
  .intro-main-text {
    font-size: 0.72rem;
  }
  .intro-footnote {
    font-size: 0.55rem;
  }
}

.tile-symbiosoft {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 0.8rem 0.6rem;
}


html[data-theme="dark"] {
    --body-bg: #111827 !important;
    --card-bg: #111827 !important;
}

html[data-theme="dark"] .main-top.card {
    background-color: var(--card-bg) !important;
}

html[data-theme="dark"] .main-top.card {
    border: 0 !important;
    --card-border-width: 0 !important;
    --card-border-color: transparent !important;
}

html[data-theme="dark"] .site-grid > .container-sidebar-right {
    border-color: #2a2f3a !important; /* a soft dark grey */
}

html[data-theme="dark"] .main-top.card {
    --card-border-width: 4px !important;
    --card-border-color: #40545e !important;
    border: 4px solid #40545e !important;
}

.login-collapsible {
  display: none;
  transition: all 0.3s ease;
}

.login-collapsible.open {
  display: block;
}

.login-toggle-btn {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: #112855;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-toggle-btn:hover {
  background: #0099ad;
}

/* ============================================================
   FRONT-END EDITOR FIX — RESET TEMPLATE STYLING
   ============================================================ */

body.com_content.layout-edit,
body.com_content.view-form {
  /* Restore a clean editing environment */
  background: #ffffff !important;
  color: #333 !important;
  padding: 1rem !important;
  display: block !important;
}

/* Reset all children so gradients, shadows, and flex rules don't break editor */
body.com_content.layout-edit *,
body.com_content.view-form * {
  background: none !important;
  box-shadow: none !important;
  color: #333 !important;
  text-shadow: none !important;
  filter: none !important;
}

/* ============================================================
   FRONT-END EDITOR FIX — STOP BODY FROM BECOMING FLEX
   ============================================================ */

body.view-form,
body.layout-edit {
  display: block !important;
  flex-direction: unset !important;
  align-items: unset !important;
  justify-content: unset !important;
}

body.view-form,
body.layout-edit {
  background: #ffffff !important;
  color: #333 !important;
}

/* LEAVE THIS HERE!!! Neutralize Cassiopeia default footer */
footer.footer {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* LEAVE THIS HERE!!! Remove Cassiopeia's footer container constraints */
footer.footer .grid-child,
footer.footer .container-component,
footer.footer .container,
footer.footer {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  text-align: center !important;
}

/* ============================================================
   OVERVIEW PAGE — LIGHT MODE MENU BUTTONS (Steel Grey)
   ============================================================ */

html[data-theme="light"] .overview-topbar a,
html[data-theme="light"] .overview-topbar .mod-menu a,
html[data-theme="light"] .overview-topbar nav a,
html[data-theme="light"] .overview-topbar .topbar-link-item a {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: #4d697c !important;        /* steel grey */
  color: #bed3e0 !important;             /* soft ice-blue text */
  border: 1px solid #98a8b2 !important;  /* lighter steel border */
  border-radius: 999px !important;       /* pill shape */
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
html[data-theme="light"] .overview-topbar a:hover,
html[data-theme="light"] .overview-topbar .mod-menu a:hover,
html[data-theme="light"] .overview-topbar nav a:hover,
html[data-theme="light"] .overview-topbar .topbar-link-item a:hover {
  background: #99aebd !important;        /* lighter steel hover */
  color: #c66800 !important;             /* warm accent pop */
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* ============================================================
   OVERVIEW PAGE — LIGHT MODE SIDEBAR MENU BUTTONS (Steel Grey)
   ============================================================ */

html[data-theme="light"] .sidebar-right .mod-menu .nav-item > a,
html[data-theme="light"] .sidebar-left .mod-menu .nav-item > a {
  display: block;
  padding: 0.45rem 1.1rem;
  background: #4d697c !important;        /* steel grey */
  color: #bed3e0 !important;             /* soft ice-blue text */
  border: 1px solid #98a8b2 !important;  /* lighter steel border */
  border-radius: 999px !important;       /* pill shape */
  text-decoration: none !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Hover effect */
html[data-theme="light"] .sidebar-right .mod-menu .nav-item > a:hover,
html[data-theme="light"] .sidebar-left .mod-menu .nav-item > a:hover {
  background: #99aebd !important;        /* lighter steel hover */
  color: #c66800 !important;             /* warm accent pop */
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

/* Light-mode only: white content card */
html[data-theme="light"] .grid-child.container-component > main > .contact-box {
    background: #ffffff !important;
    padding: 2rem;
    border-radius: 24px;
}

/* Dark-mode only: deep-blue content card */
html[data-theme="dark"] .grid-child.container-component > main > .contact-box {
    background: #0d1b2a !important; /* your deep navy */
    padding: 2rem;
    border-radius: 24px;
}

/* Retro clock being centered */
.sidebar-right, #aside, #right, #sidebar-right { display: flex; flex-direction: column; align-items: center; } #sevenseg-clock-wrapper { margin: 0 auto; }

