.profile-header {
  text-align: center;
  margin: 2rem 0;
}
.profile-header img {  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-header h1 {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
}

.profile-container {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.profile-main {
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}
.profile-main img {
  width: 100%;
  height: auto;
  display: block;
}

.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.thumbnails img {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border 0.2s ease;
}
.thumbnails img:hover,
.thumbnails img.active {
  border-color: #111;
}

@media (max-width: 768px) {
  .profile-container {
    grid-template-columns: 1fr;
  }
  .thumbnails {
    flex-direction: row;
    justify-content: center;
  }
  .thumbnails img {
    width: 80px;
  }
}
/* global hide (very aggressive) */
.sp-simpleportfolio .sp-simpleportfolio-description > h2,
.sp-simpleportfolio-description > h2 {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}
.sp-simpleportfolio .sp-simpleportfolio-btns {
  display: none !important;
}
/* let clicks pass through the overlay to the image link,
   but keep any links inside the overlay clickable */
.sp-simpleportfolio-overlay {
  pointer-events: none;
}
.sp-simpleportfolio-overlay a {
  pointer-events: auto;
}

.social-icons {
  border-collapse: collapse;
  margin: 0; /* auto; */
  text-align: left;
}

.social-icons td {
  padding: 6px;
  text-align: center;
}

.social-icons img {
  filter: grayscale(100%);
  transition: none; /* prevent hover color transition */
}
.social-icons img:hover {
  filter: grayscale(100%); /* still black & white on hover */
}

.social-icons img {
  width: 35px; /* width: 90px; */
  height: 35px; /* height: 90px; */
  object-fit: contain;
  display: block;
  margin: auto;
  transition: transform 0.2s ease;
}

/* Optional hover effect for desktop */
@media (hover: hover) {
  .social-icons img:hover {
    transform: scale(1.1);
  }
}

/* ✅ Force smaller size for phones */
@media only screen and (max-width: 768px) { /* (max-width: 600px) { */
  .social-icons img {
    width: 25px !important; /* width: 55px !important; */
    height: 25px !important; /* height: 55px !important; */
    filter: grayscale(100%);
    transition: none; /* prevent hover color transition */
  }
  .social-icons td {
    padding: 4px !important;
  }
  .social-icons {
  border-collapse: collapse;
  margin: 0; /* auto; */
  text-align: left;
  }
}

/* lele: sp simple portfolio modified to smaller size 3:2 (300x200) */

/* --- SP Simple Portfolio Responsive Grid (4→3→3 layout) with 3:2 images --- */
.sp-simpleportfolio .sp-simpleportfolio-items {
  margin: -6px;
}

.sp-simpleportfolio .sp-simpleportfolio-item {
  padding: 6px;
  box-sizing: border-box;
}

/* Desktop: 4 columns */
.sp-simpleportfolio .sp-simpleportfolio-items .sp-simpleportfolio-item {
  width: 25%;
}

/* Tablets: 3 columns */
@media (max-width: 992px) {
  .sp-simpleportfolio .sp-simpleportfolio-items .sp-simpleportfolio-item {
    width: 33.3333%;
  }
}

/* Mobile: still 3 columns */
@media (max-width: 600px) {
  .sp-simpleportfolio .sp-simpleportfolio-items .sp-simpleportfolio-item {
    width: 33.3333%;
  }

  /* Optional: tighter gaps for small screens */
  .sp-simpleportfolio .sp-simpleportfolio-item {
    padding: 4px;
  }
}

/* --- Uniform 3:2 aspect ratio for all thumbnails --- */
.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-overlay-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

/* Make image fill the box neatly (cropped if needed) */
.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Optional: lighten overlay on small screens */
@media (max-width: 600px) {
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-overlay {
    background: rgba(0, 0, 0, 0.3);
  }
}

/* lele: image description below smaller / proportional */
/* --- Scale down overlay text & buttons on mobile --- */
@media (max-width: 992px) {
  /* Tablet */
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-overlay h3 {
    font-size: 14px;
    line-height: 1.2;
  }
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-btns a {
    font-size: 10px;
    padding: 5px 8px;
    letter-spacing: 1px;
  }
}

@media (max-width: 600px) {
  /* Mobile */
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-overlay h3 {
    font-size: 12px;
    line-height: 1.1;
  }
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-btns a {
    font-size: 9px;
    padding: 4px 6px;
    letter-spacing: 0.5px;
  }
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-vertical-middle > div .sp-simpleportfolio-title {
    font-size: 12px;
  }
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info {
    font-size: 11px;
    padding: 10px;
  }
}
/* --- Make overlay title & tags proportional on smaller images --- */

/* Default: slightly smaller and tighter */
.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-title {
  font-size: 16px;
  margin: 4px 0;
  line-height: 1.2;
}

.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-tags {
  font-size: 12px;
  margin-top: 2px;
  line-height: 1.2;
}

/* Tablet screens */
@media (max-width: 992px) {
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-title {
    font-size: 14px;
    margin: 2px 0;
  }
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-tags {
    font-size: 11px;
  }
}

/* Mobile screens */
@media (max-width: 600px) {
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-title {
    font-size: 12px;
    margin: 1px 0;
    padding: 0;
    line-height: 1.1;
  }
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-tags {
    font-size: 10px;
    margin: 0;
    padding: 0;
  }

  /* reduce vertical space inside overlay */
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-vertical-middle > div {
    padding: 4px 0;
  }
}
/* --- Make the info box (below image) smaller and tighter --- */
.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info {
  padding: 10px;            /* reduce padding (was ~20px) */
  font-size: 12px;          /* smaller base font */
  line-height: 1.2;
}

/* Title inside the info box */
.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info h3 {
  margin: 0 0 5px 0;        /* tighter spacing */
  font-size: 14px;          /* smaller font */
  line-height: 1.2;
}

/* Title link color and hover */
.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info h3 a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}
.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info h3 a:hover {
  color: #333;
}

/* Tags below the title */
.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-tags {
  font-size: 11px;
  line-height: 1.2;
  margin: 0;
}

/* Tablet adjustments */
@media (max-width: 992px) {
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info {
    padding: 8px;
    font-size: 11px;
  }
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info h3 {
    font-size: 13px;
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info {
    padding: 6px;
    font-size: 10px;
  }
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info h3 {
    font-size: 12px;
    margin: 0 0 3px 0;
  }
  .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-tags {
    font-size: 9px;
  }
}

/* Make SP Simple Portfolio logo images smaller and responsive */
.sp-simpleportfolio-img {
  width: 25%;
  max-width: 250px; /* adjust size as needed */
  height: auto;
  display: block;
  margin: 0 auto; /* center the image */
  object-fit: contain;
}

/* Optional: reduce size on smaller screens */
@media (max-width: 768px) {
  .sp-simpleportfolio-img {
    width: 50%;
    max-width: 180px;
  }
}

/* lele: logout menu too tight in mobile. make it wider  */
/* Make profile/logout dropdown items easier to tap on mobile */
.sp-dropdown ul > li > a {
  padding: 10px 16px !important; /* increase clickable area */
  font-size: 1rem; /* optional: make text a bit bigger */
}

.sp-dropdown ul > li {
  border-bottom: 1px solid #eee; /* optional: add separation line */
}

.sp-dropdown ul > li:last-child {
  border-bottom: none; /* remove line after Logout */
}

/* lele: member list article */
.member-list-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  display: block;
}

.member-list-table {
  min-width: 800px; /* ensures table doesn't shrink smaller than content */
  border-collapse: collapse;
  font-size: 1rem;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  table-layout: auto;
  white-space: nowrap; /* prevent wrapping */
}

.table-header {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
}

.table-header th {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.875rem;
  white-space: nowrap;
}

.member-list-table tbody tr {
  transition: all 0.25s ease;
  border-bottom: 1px solid #eaeaea;
}

.member-list-table tbody tr:last-child {
  border-bottom: none;
}

.member-list-table tbody td {
  padding: 1.25rem 1.5rem;
  color: #333;
  vertical-align: middle;
  white-space: nowrap;
}

/* Hover effect */
.member-list-table tbody tr:hover {
  background-color: #f8f9ff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(37, 117, 252, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .member-list-container {
    overflow-x: auto;
    display: block;
    -webkit-overflow-scrolling: touch;
  }

  .member-list-table {
    width: max-content; /* key fix: expands to full width of content */
    min-width: 700px; /* avoid cutoff */
    font-size: 0.9rem;
  }

  .member-list-table th,
  .member-list-table td {
    padding: 0.9rem 1rem;
    white-space: nowrap;
  }

  .table-header th {
    font-size: 0.8rem;
  }
}

/* Helix template compatibility */
.joomla-article .member-list-container {
  margin: 2rem auto;
  max-width: 1200px;
}

/* lele: additional settings for profile page to make main profile image's height as 3 stakced thumbnail images in desktop & tablet */
/* ===== Replace previous Option A block with this ===== */
@media (min-width: 768px) {
  :root {
    --thumb-w: 200px;   /* thumbnail column width */
    --thumb-gap: 8px;   /* gap between thumbnails */
  }

  /* layout: two columns (main image + thumbnails) */
  .profile-container {
    display: flex;        /* override grid */
    gap: 20px;
    align-items: stretch; /* children stretch to same height */
    max-width: 900px;     /* keep your existing constraint */
    margin: 2rem auto;
    padding: 0 1rem;
  }

  /* thumbnails column: fixed width and explicit total height */
  .profile-container .thumbnails {
    width: var(--thumb-w);
    display: flex;
    flex-direction: column;
    gap: var(--thumb-gap);
    /* explicit height = 3 thumbnails + 2 gaps */
    height: calc( (var(--thumb-w) * 3) + (var(--thumb-gap) * 2) );
    box-sizing: border-box;
  }

  /* thumbnail images become square and fill column rows */
  .profile-container .thumbnails img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* square thumbnails */
    object-fit: cover;
    display: block;
    flex: 0 0 auto;        /* fixed height determined by aspect-ratio & column width */
  }

  /* main image column: flex-grow and match thumbnails' height */
  .profile-container .profile-main {
    flex: 1 1 auto;
    min-width: 0;
    height: calc( (var(--thumb-w) * 3) + (var(--thumb-gap) * 2) ); /* match thumbnails height */
    box-sizing: border-box;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
  }

  /* make the main img fill the profile-main container */
  .profile-container .profile-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* lele: remove dark tint when mouse hover on profile page selection */
/* Remove dark overlay on hover for Simple Portfolio items */
.sp-simpleportfolio-overlay {
  background: none !important;
  opacity: 0 !important;
  transition: none !important;
}

/* Prevent the overlay from appearing when hovering */
.sp-simpleportfolio-overlay-wrapper:hover .sp-simpleportfolio-overlay {
  background: none !important;
  opacity: 0 !important;
}
.sp-simpleportfolio-overlay-wrapper,
.sp-simpleportfolio-overlay {
  transition: none !important;
}
/* 💡 Force-disable SP Simple Portfolio hover dark overlay */
.sp-simpleportfolio .sp-simpleportfolio-overlay-wrapper:hover .sp-simpleportfolio-overlay,
.sp-simpleportfolio .sp-simpleportfolio-overlay {
  background: transparent !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: none !important;
}
.sp-simpleportfolio .sp-simpleportfolio-overlay-wrapper:hover img.sp-simpleportfolio-img {
  filter: none !important;
  opacity: 1 !important;
}

/* lele: reduce gap from portfolio logo to body/ description */
/* Completely remove spacing around w-full wrappers in portfolio details */
.sp-simpleportfolio-details {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.sp-simpleportfolio-description .w-full {
  margin: 0 !important;
  padding: 0 !important;
}

/* Also remove any empty paragraphs that add vertical space */
.sp-simpleportfolio-description .w-full p:empty,
.sp-simpleportfolio-description .w-full p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* Default: center align on mobile */
.sp-simpleportfolio-image {
  text-align: center;
}

/* Desktop: align left */
@media (min-width: 768px) {
  .sp-simpleportfolio-image {
    text-align: left;
  }
}

/* lele: white link background if background is dark */
/* -----------------------------
   GLOBAL: default links (site)
   ----------------------------- */
a,
a:link,
a:visited {
  color: #000 !important;
}
a:hover,
a:focus,
a:active {
  color: #111 !important;
}

/* -------------------------------------------------
   FOOTER: footer menu + contact links (desktop)
   (keeps white in footer modules)
   ------------------------------------------------- */
.sp-module .menu a,
.sp-module .menu a:link,
.sp-module .menu a:visited,
.sp-module .mod-custom a[href^="https://wa.me"],
.sp-module .mod-custom a[href^="mailto:"] {
  color: #fff !important;
  text-decoration: none !important;
}

/* hover/active states */
.sp-module .menu a:hover,
.sp-module .mod-custom a[href^="https://wa.me"]:hover,
.sp-module .mod-custom a[href^="mailto:"]:hover {
  color: #ddd !important;
  text-decoration: underline !important;
}

/* extra specificity for anchors that use classes like "block" or Tailwind utilities */
.sp-module .mod-custom a.block,
.sp-module .mod-custom a[class*="block"],
.sp-module .mod-custom .flex a,
.sp-module .mod-custom .flex a.block {
  color: #fff !important;
  text-decoration: none !important;
}

/* -----------------------------
   MOBILE & TABLET (responsive)
   Ensure footer links remain white on small screens
   ----------------------------- */
@media (max-width: 1024px) {
  .sp-module .menu a,
  .sp-module .mod-custom a[href^="https://wa.me"],
  .sp-module .mod-custom a[href^="mailto:"],
  .sp-module .mod-custom a.block,
  .sp-module .mod-custom .flex a {
    color: #fff !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #fff !important; /* catches some mobile renderers */
  }

  .sp-module .menu a:hover,
  .sp-module .mod-custom a[href^="https://wa.me"]:hover,
  .sp-module .mod-custom a[href^="mailto:"]:hover {
    color: #ddd !important;
    -webkit-text-fill-color: #ddd !important;
  }
}

/* Extra ultra-specific rule if some builder injects very specific CSS */
body .sp-module .mod-custom a[href^="https://wa.me"],
body .sp-module .mod-custom a[href^="mailto:"],
body .sp-module .menu a {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* If some rules set color on the parent and children inherit, force the anchors */
.sp-module .mod-custom a,
.sp-module .menu a {
  color: #fff !important;
}

/* lele: offcanvas menu bg color */
.offcanvas-menu,
.offcanvas-inner,
body.offcanvas-open .offcanvas-menu {
    background-color: #808080 !important;
}

.offcanvas-menu a {
    color: #000 !important;
}

/* lele: fix simple port folio hover */
/* === Fix SP Simple Portfolio Filter Colors === */
.sp-simpleportfolio-filter ul li a {
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #000 !important;
}

.sp-simpleportfolio-filter ul li.active a,
.sp-simpleportfolio-filter ul li:hover a {
  background: #000 !important;
  color: #fff !important;
}

/* Optional: make borders consistent on all states */
.sp-simpleportfolio-filter ul li a {
  border: 1px solid #000 !important;
  border-radius: 4px;
  padding: 6px 12px;
  display: inline-block;
}

/* Ensure no default theme shadows or gradients interfere */
.sp-simpleportfolio-filter ul li a,
.sp-simpleportfolio-filter ul li.active a,
.sp-simpleportfolio-filter ul li:hover a {
  box-shadow: none !important;
  background-image: none !important;
}

/* lele: pagination */
/* Default state (optional, if you want light background before hover) */
.pagenavigation .btn.btn-secondary {
  background-color: #fff;
  color: #222;
  border: 1px solid #222;
  transition: all 0.3s ease;
}

/* Hover and active states: white text on dark background */
.pagenavigation .btn.btn-secondary:hover,
.pagenavigation .btn.btn-secondary:focus {
  background-color: #222; /* dark background */
  color: #fff !important; /* white text */
  border-color: #222;
}

/* lele: remove reg & last visit date */
.com-users-profile__core dt.registered,
.com-users-profile__core dd.registered,
.com-users-profile__core dt.lastvisited,
.com-users-profile__core dd.lastvisited {
    display: none !important;
}

/* lele: sub-menu login. profile & logout */
/* Make profile dropdown larger and more readable */
.sp-profile-dropdown {
  min-width: 160px;
  padding: 8px 0;
  border-radius: 8px;
  background: #fff; /* or your preferred dropdown color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* lele: hide profile & logout menu underneath username */
/* ============================================================
   HIDE PROFILE + LOGOUT DROPDOWN (Helix Ultimate 5)
   ============================================================ */

/* Hide the entire dropdown (Profile + Logout) for logged-in users */
body.logged-in .sp-profile-wrapper .sp-profile-dropdown {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Optional: hide the small down-arrow beside the username */
body.logged-in .sp-profile-wrapper .arrow-icon {
  display: none !important;
}

/* Optional: keep layout clean (no dropdown space) */
body.logged-in .sp-profile-wrapper {
  position: relative;
  overflow: hidden;
}

/* lele: login & search button */
/* Global override for all primary buttons (e.g., Login, Search) */
.btn.btn-primary {
  background-color: #444 !important; /* dark grey */
  border-color: #444 !important;
  color: #fff !important; /* white text */
}

/* Hover and focus states */
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: #333 !important; /* darker grey on hover */
  border-color: #333 !important;
  color: #fff !important;
}

/* Optional: fix icons inside buttons */
.btn.btn-primary .icon-white,
.btn.btn-primary i,
.btn.btn-primary span.fas {
  color: #fff !important;
}

/* lele: advanced search button */
/* Advanced Search button (btn-secondary.ads) */
.btn.btn-secondary.ads {
  background-color: #444 !important; /* dark grey */
  border-color: #444 !important;
  color: #fff !important; /* white text */
}

/* Hover + focus states */
.btn.btn-secondary.ads:hover,
.btn.btn-secondary.ads:focus {
  background-color: #333 !important; /* darker on hover */
  border-color: #333 !important;
  color: #fff !important;
}

/* Make the icon white too */
.btn.btn-secondary.ads .fas {
  color: #fff !important;
}

/* lele: login icon bigger in off-canvas menu */
/* Make login icon bigger inside off-canvas on mobile */
@media (max-width: 991px) { /* adjust breakpoint if needed */
  .offcanvas-menu .fa-user {
    font-size: 1.6rem;  /* or 2rem for larger */
  }
  .offcanvas-menu .fa-user-circle {
    font-size: 1.6rem;  /* or 2rem for larger */
  }
}
