/* ===== Hide Jetpack sharing & likes ===== */
.sharedaddy,
.sd-sharing,
.sd-like,
.jetpack-likes-widget-wrapper,
.sd-block,
.wp-block-jetpack-sharing-buttons {
    display: none !important;
}

/* ===== Smooth Page Transition ===== */
body {
    animation: pageFade 0.35s ease;
}

@keyframes pageFade {
    from {opacity:0;}
    to {opacity:1;}
}

/* ===== Transparent Header ===== */
.site-header {
    background: transparent !important;
    box-shadow: none;
}

/* ===== Main Navigation Menu Text ===== */
.main-navigation a,
.site-header .main-navigation a {
    color: #00325A;
    font-weight: 1000;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 8px;
    box-sizing: border-box;
    background-color: transparent;
}

/* ===== Hover Effect ===== */
.main-navigation a:hover {
    color: #5FAFB4 !important;
}

/* ===== Active / Selected Page ===== */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .menu-item-has-children.active > a {
    color: #5FAFB4 !important;
    font-weight: 700;
}

/* ===== Center-Out Animated Underline ===== */
.main-navigation a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #5FAFB4;
    transition: width 0.35s cubic-bezier(0.25,0.8,0.25,1), opacity 0.35s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.main-navigation a:hover::after {
    width: 100%;
    opacity: 1;
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    width: 100%;
    height: 3px;
    opacity: 1;
}

/* ===== Editorial Links (improved discoverability) ===== */
.site-main :is(p, li, h1, h2, h3, h4, h5) a:not(.wp-block-button__link) {
    color: #00325A;
    text-decoration: none;
    border-radius: 3px;
    position: relative;

    background-image: linear-gradient(#5FAFB4,#5FAFB4);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;

    transition:
        color .3s ease,
        background-size .35s ease,
        background-color .3s ease;
}

.site-main :is(p, li, h1, h2, h3, h4, h5) a:not(.wp-block-button__link):hover {
    color: #5FAFB4;
    background-size: 100% 2px;
    background-color: rgba(95,175,180,0.15);
}

/* ===== External links ===== */
.site-main a.external-link:not(.wp-block-button__link) {
    color: #00325A;
    text-decoration: none;
    border-radius: 4px;
    background-color: transparent;
    transition:
        color .35s ease,
        background-color .35s ease;
}

.site-main a.external-link:not(.wp-block-button__link):hover {
    color: #5FAFB4;
    background-color: rgba(95,175,180,0.18);
}

/* ===== Accessibility ===== */
.site-main a:focus {
    outline: 2px dashed rgba(95,175,180,0.6);
    outline-offset: 2px;
}

/* ===== Scroll Reveal Animation (optional for sections) ===== */
.fade-up {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Homepage Stats Section ===== */
.stats-section {
    display: flex;
    justify-content: space-evenly;
    margin: 40px auto;
    max-width: 1200px;
    gap: 100px;
    text-align: center;
    flex-wrap: wrap;
}

.stats-section .stats-card {
    flex: 0 1 auto;
}

.stats-section .stats-card h2 {
    font-size: 72px !important;
    color: #00325A !important;
    margin: 0;
    font-weight: 800 !important;
    line-height: 1.05;
    transition: transform .35s ease;
}

.stats-section .stats-card p {
    font-size: 20px !important;
    color: #5FAFB4 !important;
    margin: 10px 0 0;
    font-weight: 500 !important;
}

/* subtle number interaction only */
.stats-section .stats-card:hover h2 {
    transform: scale(1.06);
}

/* ===== Image Hover Zoom (very subtle) ===== */
.image-hover {
    overflow: hidden;
}

.image-hover img {
    transition: transform .45s ease;
}

.image-hover:hover img {
    transform: scale(1.04);
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 820px) {

    .stats-section {
        flex-direction: column;
        gap: 40px;
    }

    .main-navigation a {
        padding: 6px 10px;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        color: #5FAFB4 !important;
    }

    .site-main a.external-link:not(.wp-block-button__link) {
        padding: 1px 3px;
    }
}

/* ===== Hide raw JS text at bottom ===== */
body > script,
body > div:last-child {
    display: none !important;
}

/* ===== Hide Theme Credit ===== */
.site-info {
    display: none !important;
}/* Editorial typography boost */
body {
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65;
}
/* Fixed top-right compact panel */
.minds-dashboard-buttons {
    position: fixed;
    top: 0px;            /* adjust to match your header */
    right: 20px;          /* distance from right edge */
    display: flex;
    justify-content: flex-end; /* align buttons right inside panel */
    align-items: center;
    gap: 10px;            /* spacing between buttons */
    flex-wrap: nowrap;     /* keep buttons in one line */
    width: auto;           /* fit content */
    max-width: 280px;      /* smaller panel width */
    z-index: 9999;
    background: #ffffff;
    padding: 5px 10px;     /* smaller panel padding */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-20px); /* slide-in from above */
    transition: opacity 0.5s ease, transform 0.5s ease;
    white-space: nowrap;    /* prevent wrapping */
}

/* Slide-in animation */
.minds-dashboard-buttons.slide-in {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons styling */
.minds-dashboard-btn {
    background: #5FAFB4;
    color: #fff !important;
    padding: 8px 15px;      /* smaller buttons */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;        /* smaller font */
    white-space: nowrap;     /* prevent text wrapping inside button */
    transition: background 0.3s, transform 0.2s;
}

.minds-dashboard-btn:hover {
    background: #00325A;
    transform: translateY(-2px);
}

.minds-dashboard-logout {
    background: #00325A;
}

.minds-dashboard-logout:hover {
    background: #5FAFB4;
}

/* Responsive for mobile */
@media (max-width: 4000px) {
    .minds-dashboard-buttons {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 90%;
    }
    .minds-dashboard-buttons a {
        flex: 1 1 auto;
        text-align: center;
    }
}
/* Make content full-width on this page only */
.page-id-485 .entry-content {
    max-width: 1200px !important;
    width: 100% !important;
}
/* Expand page width for Members page */
.page-id-485 .site-content,
.page-id-485 .content-area,
.page-id-485 .container {
    max-width: 1600px;
    width: 96%;
    margin-left: auto;
    margin-right: auto;
}
/* Expand Members page width */
.page-id-485 .site-content,
.page-id-485 .content-area,
.page-id-485 .entry-content {
    max-width: 1550px;
    width: 96%;
    margin-left: auto;
    margin-right: auto;
}
/* Make Looker Studio embeds look native */
iframe[src*="lookerstudio"] {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
}
/* Clean Looker Studio embed edges */
iframe[src*="lookerstudio"] {
    transform: scale(1.02);
    transform-origin: top center;
}
/* Improve Google Drive embed appearance */
iframe[src*="drive.google.com"] {
    background: #ffffff;
    border-radius: 16px;
}

/* Make document cards breathe more */
.minds-tab iframe {
    padding-top: 6px;
}
/* Improve Google Drive embed appearance */
iframe[src*="drive.google.com"] {
    background: #ffffff;
    border-radius: 16px;
}

/* Make document cards breathe more */
.minds-tab iframe {
    padding-top: 6px;
}

/* Subtle hover effect for the library container */
.minds-tab div {
    transition: box-shadow 0.25s ease;
}

.page-id-486 .site-content {
    max-width: none !important;
    width: 100% !important;
}

.page-id-486 .content-area {
    max-width: none !important;
    width: 100% !important;
}

.page-id-486 .entry-content {
    max-width: none !important;
}
/* Exact match for the Forgot Password link */
.um-login a.um-button[href="https://minds-international.com/password-reset/"] {
    display: none !important;
}
.minds-dashboard-buttons a.minds-dashboard-btn.minds-dashboard-primary {
    background-color: #5FAFB4 !important;
    color: #ffffff !important;
    border: none;
}
.minds-new-badge {
    display: inline-block;
    width: 42px;
    height: 18px;
    margin-left: 6px;
    border-radius: 4px;
    background: #e53935;
    position: relative;
    vertical-align: middle;

    animation: mindsPop 0.6s ease-out, mindsPulse 2.5s 0.8s infinite;
}

.minds-new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 18px;
    margin-left: 6px;
    border-radius: 4px;
    background: #b0b0b0; /* default = not new */

    font-size: 10px;
    font-weight: bold;
    color: #fff;
}

/* Always show text */
.minds-new-badge::after {
    content: "NEW";
}

/* NEW state */
.minds-new-badge.is-new {
    background: #e53935;
    animation: mindsPulse 1.2s infinite ease-in-out, mindsPop 0.5s ease-out;
}

/* Subtle idle (non-new) */
.minds-new-badge.is-old {
    opacity: 0.4;
}

/* pop-in effect */
@keyframes mindsPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* pulsing glow */
@keyframes mindsPulse {
    0% {
        box-shadow: 0 0 0 rgba(229,57,53,0.3);
    }
    50% {
        box-shadow: 0 0 8px rgba(229,57,53,0.6);
    }
    100% {
        box-shadow: 0 0 0 rgba(229,57,53,0.3);
    }
}
.minds-dashboard-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* spacing between buttons */
}

/* Make buttons smaller and tighter */
.minds-dashboard-btn {
    padding: 8px 14px !important;
    font-size: 14px;
    line-height: 1;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Optional: make them more compact on mobile */
@media (max-width: 768px) {
    .minds-dashboard-btn {
        width: 100%;
        justify-content: center;
    }
}
.minds-dashboard-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Hover lift effect */
.minds-dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Press effect */
.minds-dashboard-btn:active {
    transform: translateY(0px) scale(0.98);
}
.minds-dashboard-btn {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease forwards;
}

/* stagger effect */
.minds-dashboard-btn:nth-child(1) { animation-delay: 0.05s; }
.minds-dashboard-btn:nth-child(2) { animation-delay: 0.15s; }
.minds-dashboard-btn:nth-child(3) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    .minds-dashboard-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .minds-dashboard-btn {
        flex: 1;
        justify-content: center;
        padding: 10px !important;
        font-size: 12px;
    }
}
.minds-container {
  font-family: 'Inter','Segoe UI',Arial,sans-serif;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  margin-bottom: 60px;
}

.minds-card {
  background: #f4f8f9;
  border-radius: 18px;
  padding: 36px;
  width: 100%;
  max-width: 1100px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}

.minds-title {
  margin: 0 0 12px 0;
  color: #00325A;
  font-size: 28px;
  font-weight: 600;
}

.minds-text {
  color: #333;
  line-height: 1.7;
  max-width: 900px;
  font-size: 16px;
  margin-bottom: 24px;
}

/* NAVIGATION */
.minds-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.minds-nav::-webkit-scrollbar {
  display: none;
}

/* BUTTON STYLE (applies to ALL links including external) */
.minds-nav-btn,
.minds-nav-btn:link,
.minds-nav-btn:visited {
  flex: 0 0 auto;
  background: #5FAFB4;
  color: #ffffff !important;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 13px;
  white-space: nowrap;

  display: inline-block;

  transition: all 0.2s ease;
}

/* HOVER */
.minds-nav-btn:hover {
  background: #00325A !important;
  transform: translateY(-1px);
}

/* ACTIVE STATE */
.minds-nav-btn.active {
  background: #00325A !important;
}

/* SMOOTH SCROLL OFFSET */
html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 120px;
}

/* MOBILE */
@media (max-width: 768px) {
  .minds-card {
    padding: 24px;
  }

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

  .minds-nav {
    justify-content: flex-start;
  }
}
.minds-nav-btn,
.minds-nav-btn:link,
.minds-nav-btn:visited,
.minds-nav a.minds-nav-btn,
.minds-nav a.minds-nav-btn[target="_blank"] {
  flex: 0 0 auto !important;
  display: inline-block !important;

  background-color: #5FAFB4 !important;
  color: #ffffff !important;

  padding: 8px 14px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-size: 13px !important;
  white-space: nowrap !important;

  border: none !important;
  box-shadow: none !important;

  transition: all 0.2s ease;
}
.minds-nav a.minds-nav-btn:hover,
.minds-nav-btn:hover {
  background-color: #00325A !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.minds-nav a.minds-nav-btn.active,
.minds-nav-btn.active {
  background-color: #00325A !important;
  color: #ffffff !important;
}
.minds-nav a.minds-nav-btn.active {
  background-color: #00325A !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.minds-nav-btn {
  position: relative;
}
.minds-nav-btn {
  position: relative;
}

.minds-nav-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);

  background: #00325A;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;

  max-width: 380px;     /* controls overall size */
  width: max-content;   /* allows natural expansion */
  min-width: 220px;     /* prevents it from becoming too narrow */

  white-space: normal;
  text-align: center;

  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 999;
}

/* Arrow */
.minds-nav-btn::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);

  border-width: 5px;
  border-style: solid;
  border-color: #00325A transparent transparent transparent;

  opacity: 0;
  transition: all 0.2s ease;
}

/* Show on hover */
.minds-nav-btn:hover::after,
.minds-nav-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.minds-nav a.minds-nav-btn::after {
  content: attr(data-tooltip) !important;
}
.minds-nav {
  overflow: visible;
}
.page .entry-title {
  display: none;
}
@media (max-width: 768px) {
  .minds-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    overflow: visible;
  }

  .minds-nav-btn {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #00325A;
  color: #fff;
  padding: 10px 14px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

.back-to-top:hover {
  background: #00213d;
}