/*
 * components.css
 *
 * Runtime CSS for VvvebJs element components (gallery, etc.) that must work
 * inside the editor preview iframe and on the live public page.
 *
 * These styles are extracted from vvvebjs/css/editor.css where they are
 * bundled with editor-only rules, making them unavailable in the iframe/public
 * context. Any new component that needs runtime CSS should be added here.
 */

/* -------------------------------------------------------------------------
 * Image alignment
 * Mirrors the .align-* rules in editor.css so they work in the preview
 * iframe and on the live public page (editor.css is only loaded in the
 * outer editor frame).
 * ------------------------------------------------------------------------- */

.align-left {
    float: left;
    margin-bottom: 25px;
    max-width: 50%;
}

.align-right {
    float: right;
    margin-bottom: 25px;
    max-width: 50%;
}

.align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------------
 * Gallery / masonry
 * Matches the elements/gallery component in components-elements.js
 * ------------------------------------------------------------------------- */

.gallery {
    column-count: 4;
    column-gap: 20px;
}

.gallery.flex {
    display: flex;
    flex-wrap: wrap;
}

.gallery.flex .item {
    flex: 1 0 21%;
}

.gallery.grid {
    display: grid;
}

.gallery.has-shadow .item img {
    box-shadow: 2px 2px 4px 0 #ccc;
}

.gallery.masonry {
    margin: 0;
    padding: 0;
}

.gallery .item {
    margin-bottom: 20px;
    width: 100%;
    transition: 1s ease all;
    box-sizing: border-box;
}

.gallery .item a {
    display: block;
}

.gallery .item img {
    max-width: 100%;
    width: 100%;
}

.gallery.hover-effect .item {
    overflow: hidden;
}

.gallery.hover-effect .item img {
    transition: transform 0.4s ease;
}

.gallery.hover-effect .item:hover img {
    transform: scale(1.05);
}

@media only screen and (max-width: 320px) {
    .gallery.masonry { column-count: 1; }
}

@media only screen and (min-width: 321px) and (max-width: 768px) {
    .gallery.masonry { column-count: 2; }
}

@media only screen and (min-width: 769px) and (max-width: 1200px) {
    .gallery.masonry { column-count: 3; }
}

@media only screen and (min-width: 1201px) {
    .gallery.masonry { column-count: 4; }
}

/* -------------------------------------------------------------------------
 * Line Awesome icon font
 * editor.css only loads in the outer editor frame, not in the preview iframe
 * or the live public page. These declarations make social-icons (and any other
 * component using lab/las/lar classes) render correctly everywhere.
 * Font files are vendored at subsite/vvvebjs/fonts/line-awesome/.
 * ------------------------------------------------------------------------- */

@font-face {
  font-family: "Line Awesome Brands";
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url("../vvvebjs/fonts/line-awesome/la-brands-400.54b0b4e7de85.woff2") format("woff2"),
       url("../vvvebjs/fonts/line-awesome/la-brands-400.fb598c9ccecd.woff") format("woff"),
       url("../vvvebjs/fonts/line-awesome/la-brands-400.bbf83f8bb103.ttf") format("truetype");
}

@font-face {
  font-family: "Line Awesome Free";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../vvvebjs/fonts/line-awesome/la-regular-400.88d9d9416c58.woff2") format("woff2"),
       url("../vvvebjs/fonts/line-awesome/la-regular-400.338f6f873b90.woff") format("woff"),
       url("../vvvebjs/fonts/line-awesome/la-regular-400.87dab6ff12ea.ttf") format("truetype");
}

@font-face {
  font-family: "Line Awesome Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../vvvebjs/fonts/line-awesome/la-solid-900.36fc297902c9.woff2") format("woff2"),
       url("../vvvebjs/fonts/line-awesome/la-solid-900.87292218024e.woff") format("woff"),
       url("../vvvebjs/fonts/line-awesome/la-solid-900.bb49393b04bb.ttf") format("truetype");
}

.la, .lar, .las, .lab {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.lab {
  font-family: "Line Awesome Brands", monospace;
  font-weight: 400;
}

.lar {
  font-family: "Line Awesome Free", monospace;
  font-weight: 400;
}

.las, .la {
  font-family: "Line Awesome Free", monospace;
  font-weight: 900;
}

.la-xs  { font-size: 0.75em; }
.la-sm  { font-size: 0.875em; }
.la-lg  { font-size: 1.33333em; line-height: 1.2em; vertical-align: -0.0667em; }
.la-2x  { font-size: 2em; }
.la-3x  { font-size: 3em; }
.la-4x  { font-size: 4em; }
.la-5x  { font-size: 5em; }
.la-fw  { text-align: center; width: 1.25em; }

/* Icon code points used by the social-icons component */
.la-facebook-f:before    { content: "\f39e"; }
.la-facebook:before      { content: "\f09a"; }
.la-linkedin-in:before   { content: "\f0e1"; }
.la-linkedin:before      { content: "\f08c"; }
.la-twitter:before       { content: "\f099"; }
.la-instagram:before     { content: "\f16d"; }
.la-github:before        { content: "\f09b"; }
.la-youtube:before       { content: "\f167"; }
.la-pinterest:before     { content: "\f0d2"; }
.la-tiktok:before        { content: "\e07b"; }

/* -------------------------------------------------------------------------
 * Flip box
 * Matches the elements/flip-box component in components-elements.js
 * State classes toggled by the Enabled / Show back / Vertical properties.
 * ------------------------------------------------------------------------- */

.flip-box {
    perspective: 1000px;
    min-height: 200px;
}

.flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-box-front,
.flip-box-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.flip-box-back {
    transform: rotateY(180deg);
}

/* Vertical flip variant */
.flip-box.vertical .flip-box-back {
    transform: rotateX(180deg);
}

/* Show back face (editor "Show back" toggle) */
.flip-box.back .flip-box-inner {
    transform: rotateY(180deg);
}

.flip-box.vertical.back .flip-box-inner {
    transform: rotateX(180deg);
}

/* Hover flip on the live page when .enabled is set */
.flip-box.enabled:hover .flip-box-inner {
    transform: rotateY(180deg);
}

.flip-box.enabled.vertical:hover .flip-box-inner {
    transform: rotateX(180deg);
}

/* Team — Cards live component */
.mmt-team-card {
    background-color: var(--bs-body-bg, #ffffff);
    border-radius: var(--bs-border-radius, 0.375rem);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mmt-team-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.mmt-team-name {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
    font-weight: 700;
    color: var(--bs-body-color, #212529);
    font-size: var(--bs-body-font-size, 1rem);
}

.mmt-team-designation {
    font-family: var(--bs-font-sans-serif, sans-serif);
    font-size: calc(var(--bs-body-font-size, 1rem) * 0.9);
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
    letter-spacing: 0.02em;
}

.mmt-team-initials {
    background-color: var(--bs-primary, #0d6efd);
    color: #ffffff;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.mmt-team-photo {
    object-fit: cover;
    width: 88px;
    height: 88px;
}

.mmt-team-heading {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
}

.mmt-team-photo-lg {
    object-fit: cover;
    width: 120px;
    height: 120px;
}

.mmt-team-initials-lg {
    background-color: var(--bs-primary, #0d6efd);
    color: #ffffff;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    font-size: 2rem;
}

/* Gallery — Photo Grid live component */
.mmt-gallery-heading {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
}

.mmt-gallery-album-name {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
    color: var(--bs-primary, #1a3a6b);
}

.mmt-gallery-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--bs-border-radius, 0.375rem);
    cursor: pointer;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mmt-gallery-thumb:hover {
    transform: scale(1.04);
    opacity: 0.88;
}

.mmt-gallery-video-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--bs-border-radius, 0.375rem);
    cursor: pointer;
    display: block;
}

.mmt-gallery-video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.mmt-gallery-video-thumb:hover .mmt-gallery-video-img {
    transform: scale(1.04);
}

.mmt-gallery-video-bg {
    width: 100%;
    height: 100%;
    background-color: #1a1a2e;
    display: block;
}

.mmt-gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.mmt-gallery-video-thumb:hover .mmt-gallery-play {
    transform: translate(-50%, -50%) scale(1.15);
}

/* Gallery — sidebar + panel layout */
.mmt-gallery-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 2rem;
    align-items: start;
}

.mmt-gallery-sidebar {
    position: sticky;
    top: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
    border: 1px solid rgba(var(--bs-primary-rgb, 13,110,253), 0.15);
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    background: rgba(var(--bs-primary-rgb, 13,110,253), 0.04);
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bs-primary-rgb, 13,110,253), 0.3) transparent;
}

.mmt-gallery-sidebar::-webkit-scrollbar {
    width: 4px;
}
.mmt-gallery-sidebar::-webkit-scrollbar-thumb {
    background: rgba(var(--bs-primary-rgb, 13,110,253), 0.3);
    border-radius: 2px;
}

.mmt-gallery-album-list {
    list-style: none;
    padding: 0.4rem;
    margin: 0;
}

.mmt-gallery-album-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: calc(var(--bs-border-radius, 0.375rem) - 2px);
    cursor: pointer;
    font-family: var(--bs-font-sans-serif, system-ui, sans-serif);
    font-size: 0.875rem;
    color: var(--bs-body-color, #212529);
    transition: background-color 0.15s ease, color 0.15s ease;
    user-select: none;
}

.mmt-gallery-album-item:hover {
    background-color: rgba(var(--bs-primary-rgb, 13,110,253), 0.1);
}

.mmt-gallery-album-item.active {
    background-color: var(--bs-primary, #0d6efd);
    color: #fff;
}

.mmt-gallery-album-item.active .badge {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.mmt-gallery-album-name-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Search input inside sidebar */
.mmt-gallery-search-wrap {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.5rem 0.4rem 0.3rem;
    background: rgba(var(--bs-primary-rgb, 13,110,253), 0.04);
    border-bottom: 1px solid rgba(var(--bs-primary-rgb, 13,110,253), 0.1);
}

.mmt-gallery-search-input {
    display: block;
    width: 100%;
    padding: 0.3rem 0.6rem;
    font-size: 0.8125rem;
    border: 1px solid rgba(var(--bs-primary-rgb, 13,110,253), 0.25);
    border-radius: var(--bs-border-radius, 0.375rem);
    background: transparent;
    color: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.mmt-gallery-search-input:focus {
    border-color: var(--bs-primary, #0d6efd);
    background: rgba(255, 255, 255, 0.8);
}

/* Mobile toggle — hidden on desktop */
.mmt-gallery-mobile-toggle {
    display: none;
}

/* Right content panel */
.mmt-gallery-panel {
    min-height: 200px;
}

.mmt-gallery-panel-title {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
    color: var(--bs-primary, #1a3a6b);
}

.mmt-gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

/* Mobile: sidebar becomes a collapsible dropdown */
@media (max-width: 767px) {
    .mmt-gallery-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mmt-gallery-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        border: none;
        background: none;
    }

    .mmt-gallery-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.6rem 0.85rem;
        background: rgba(var(--bs-primary-rgb, 13,110,253), 0.07);
        border: 1px solid rgba(var(--bs-primary-rgb, 13,110,253), 0.2);
        border-radius: var(--bs-border-radius, 0.375rem);
        cursor: pointer;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--bs-body-color, #212529);
        text-align: left;
        transition: background-color 0.15s ease;
    }

    .mmt-gallery-mobile-toggle:hover {
        background: rgba(var(--bs-primary-rgb, 13,110,253), 0.12);
    }

    .mmt-gallery-mobile-toggle .bi-chevron-down {
        flex-shrink: 0;
        transition: transform 0.2s ease;
        color: var(--bs-primary, #0d6efd);
    }

    .mmt-gallery-mobile-toggle.open .bi-chevron-down {
        transform: rotate(180deg);
    }

    .mmt-gallery-mobile-current {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-right: 0.5rem;
    }

    .mmt-gallery-dropdown-panel {
        display: none;
        max-height: 55vmax;
        overflow-y: auto;
        border: 1px solid rgba(var(--bs-primary-rgb, 13,110,253), 0.2);
        border-top: none;
        border-radius: 0 0 var(--bs-border-radius, 0.375rem) var(--bs-border-radius, 0.375rem);
        background: var(--bs-body-bg, #fff);
        scrollbar-width: thin;
        scrollbar-color: rgba(var(--bs-primary-rgb, 13,110,253), 0.3) transparent;
    }

    .mmt-gallery-dropdown-panel.open {
        display: block;
    }

    .mmt-gallery-search-wrap {
        background: var(--bs-body-bg, #fff);
        border-bottom: 1px solid rgba(var(--bs-primary-rgb, 13,110,253), 0.1);
    }

    .mmt-gallery-album-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.4rem;
    }

    .mmt-gallery-album-item {
        white-space: normal;
    }
}

/* Placeholder squares shown in the sections panel picker */
.mmt-gallery-placeholder {
    aspect-ratio: 1 / 1;
    opacity: 0.35;
}

/* Lightbox media */
.mmt-lightbox-img {
    max-height: 80vh;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.mmt-lightbox-video {
    max-height: 80vh;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 575px) {
    #mmtLightbox .modal-dialog {
        margin: 0.25rem;
    }

    .mmt-lightbox-img,
    .mmt-lightbox-video {
        max-height: 65vh;
    }
}

/* ============================================================
   Funding Projects live section  (data-mmt-live="funding-projects")
   Training Programs live section  (data-mmt-live="training-programs")
   — both share mmt-funding-card / mmt-funding-type-badge / mmt-funding-subheading
   ============================================================ */

.mmt-funding-heading {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
}

.mmt-funding-subheading {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.mmt-funding-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mmt-funding-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.mmt-funding-type-badge {
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.3em 0.75em;
}

.mmt-funding-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bs-primary);
}

/* ============================================================
   Contact live section  (data-mmt-live="contact")
   ============================================================ */

.mmt-contact-heading {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
}

.mmt-contact-info-panel {
    background-color: var(--bs-body-bg, #ffffff);
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    box-shadow: var(--bs-box-shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.75rem;
}

.mmt-contact-info-heading {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
    color: var(--bs-primary, #0d6efd);
}

.mmt-contact-item {
    font-family: var(--bs-font-sans-serif, sans-serif);
    font-size: var(--bs-body-font-size, 1rem);
    color: var(--bs-body-color, #212529);
    line-height: var(--bs-body-line-height, 1.5);
}

.mmt-contact-link {
    color: var(--bs-link-color, #0d6efd);
}

.mmt-contact-link:hover {
    color: var(--bs-link-hover-color, #0a58ca);
}

.mmt-contact-label {
    font-family: var(--bs-font-sans-serif, sans-serif);
    font-weight: 500;
    color: var(--bs-body-color, #212529);
}

.mmt-contact-input {
    border-radius: var(--bs-border-radius, 0.375rem) !important;
    font-family: var(--bs-font-sans-serif, sans-serif);
    font-size: var(--bs-body-font-size, 1rem);
    color: var(--bs-body-color, #212529);
    background-color: var(--bs-body-bg, #ffffff);
}

.mmt-contact-input:focus {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.2);
}

.mmt-captcha-img {
    height: 48px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--bs-border-radius, 0.375rem);
    background-color: var(--bs-body-bg, #ffffff);
}

/* ============================================================
   Document Gallery live section  (data-mmt-live="document-gallery")
   ============================================================ */

.mmt-vault-heading {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
}

.mmt-vault-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 767.98px) {
    .mmt-vault-layout {
        grid-template-columns: 1fr;
    }
}

.mmt-vault-sidebar {
    background: var(--bs-body-bg, #ffffff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius-lg, 0.5rem);
    overflow: hidden;
}

.mmt-vault-folder-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmt-vault-folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.mmt-vault-folder-item:last-child {
    border-bottom: none;
}

.mmt-vault-folder-item:hover {
    background: var(--bs-light, #f8f9fa);
}

.mmt-vault-folder-item.active {
    background: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.08);
    color: var(--bs-primary, #0d6efd);
    font-weight: 600;
}

.mmt-vault-folder-item.active .badge {
    background-color: var(--bs-primary, #0d6efd) !important;
}

.mmt-vault-folder-name-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mmt-vault-panel {
    min-height: 200px;
}

.mmt-vault-loading {
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.mmt-vault-file-card {
    cursor: pointer;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mmt-vault-file-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
}

.mmt-vault-file-icon {
    flex-shrink: 0;
    line-height: 1;
}

.mmt-vault-file-name {
    font-size: 0.875rem;
}

/* =========================================================================
 * SUBSITE HEADER & FOOTER — Base structural styles
 * Visual/colour overrides live in the per-theme CSS files (themes/*.css).
 * ========================================================================= */

/* Header */
.subsite-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Footer layout */
.subsite-footer-main {
    padding: 3.5rem 0 2.5rem;
}

.subsite-footer-bottom {
    padding: 1rem 0;
}

.footer-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0;
    opacity: 0.8;
}

.footer-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a,
.footer-links li {
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.footer-contact-icon {
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease,
                color 0.2s ease, border-color 0.2s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
}

.footer-copy {
    font-size: 0.85rem;
}

.subsite-powered-link {
    text-decoration: none;
}

.subsite-powered-link:hover {
    text-decoration: underline;
}

/* =========================================================================
 * PARTNER SECTORS — Live component
 * ========================================================================= */

.mmt-sector-card {
    background-color: #ffffff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mmt-sector-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-3px);
}

.mmt-sector-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bs-primary, #0d6efd);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mmt-sector-initial {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.mmt-sector-name {
    color: var(--bs-heading-color, inherit);
}

.mmt-sector-description {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.mmt-sector-heading {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
}

.mmt-sector-subheading {
    font-size: 1.0625rem;
}

/* =========================================================================
 * PROGRAM CENTERS — Live component
 * ========================================================================= */

.mmt-pc-heading {
    font-family: var(--bs-font-headings, var(--bs-font-sans-serif, sans-serif));
}

.mmt-pc-sector-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bs-primary, #0d6efd);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bs-primary, #0d6efd);
    display: inline-block;
}

.mmt-pc-sector-group:last-child {
    margin-bottom: 0 !important;
}

.mmt-pc-card {
    background-color: var(--bs-body-bg, #ffffff);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mmt-pc-card:hover {
    box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb, 0, 0, 0), 0.15) !important;
    transform: translateY(-3px);
}

.mmt-pc-name {
    color: inherit;
}

.mmt-pc-location {
    font-size: 0.875rem;
}

.mmt-pc-address {
    font-size: 0.875rem;
    line-height: 1.5;
}

.mmt-pc-about-link {
    color: var(--bs-link-color, #0d6efd);
    text-decoration: none;
    font-family: var(--bs-font-sans-serif, sans-serif);
    font-size: 1rem;
    font-weight: 600;
}

.mmt-pc-about-link:hover {
    color: var(--bs-link-hover-color, #0a58ca);
    text-decoration: underline;
}

.mmt-pc-about-link .bi {
    font-size: 1.15rem;
    vertical-align: -0.1em;
}

/* =========================================================================
 * TESTIMONIALS (Live section — data-mmt-live="testimonials")
 * Card grid: quote mark, italic body, avatar initials, author block.
 * ========================================================================= */

.mmt-testimonial-heading {
    color: var(--bs-body-color);
}

.mmt-testimonial-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mmt-testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.mmt-testimonial-quote-mark {
    font-size: 3rem;
    line-height: 1;
    color: var(--bs-primary);
    opacity: 0.25;
    font-family: Georgia, serif;
    font-weight: 700;
}

.mmt-testimonial-text {
    color: var(--bs-body-color);
    line-height: 1.7;
}

.mmt-testimonial-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.12);
    color: var(--bs-primary);
    font-size: 0.85rem;
}

.mmt-testimonial-name {
    font-size: 0.95rem;
    color: var(--bs-body-color);
}

.mmt-testimonial-designation {
    display: block;
    font-size: 0.8rem;
    color: var(--bs-secondary-color, #6c757d);
}

.mmt-testimonial-context {
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

/* =========================================================================
 * ACCORDION (FAQ) — Theme-aware Bootstrap variable overrides
 * Bootstrap bakes #0d6efd blue into --bs-accordion-active-color,
 * --bs-accordion-active-bg, the focus ring, and the expanded-state chevron
 * icon at compile time, so overriding --bs-primary alone has no effect.
 * Re-point those variables to --bs-primary so all themes apply correctly —
 * same pattern used for .btn-primary / .btn-outline-primary below.
 * ========================================================================= */

.accordion {
    --bs-accordion-active-color: var(--bs-primary);
    --bs-accordion-active-bg: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.08);
    --bs-accordion-btn-focus-border-color: rgba(var(--bs-primary-rgb, 13, 110, 253), 0.5);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb, 13, 110, 253), 0.25);
    /* Replace the hardcoded-blue expanded chevron with a neutral body-colour one */
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c%2fsvg%3e");
}

/* =========================================================================
 * SUBSITE THEME BUTTON OVERRIDES
 * Bootstrap compiles btn-outline-primary with #0d6efd baked in via local
 * --bs-btn-* variables, so overriding --bs-primary alone has no effect.
 * Re-point those variables to --bs-primary so all themes apply correctly.
 * ========================================================================= */

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

/* =========================================================================
 * HERO SECTIONS — Text-centered (data-name="hero") and
 *                 Background-image (data-name="hero-image") variants.
 * Targets VvvebJs section types placed by the editor.
 * Both section types double-stack py-5 (section + inner container), so we
 * zero the container padding and rely on the section's own py-5 for gutters.
 * ========================================================================= */

section[data-name="hero"],
section[data-name="hero-image"] {
    min-height: 42vh;
    display: flex;
    align-items: center;
}

section[data-name="hero"] > .container,
section[data-name="hero-image"] > .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100%;
}

/* Theme heading rules set a direct color on h1–h6, beating text-white
   inheritance. Restore white inside hero sections that carry text-white. */
section[data-name="hero"].text-white h1,
section[data-name="hero"].text-white h2,
section[data-name="hero"].text-white h3,
section[data-name="hero-image"] h1,
section[data-name="hero-image"] h2,
section[data-name="hero-image"] h3 {
    color: #fff;
}

/* ── Text-centered hero ─────────────────────────────────────────────────── */

section[data-name="hero"] {
    position: relative;
    overflow: hidden;
}

/* Decorative translucent circles — add depth without an image */
section[data-name="hero"]::before {
    content: '';
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -180px;
    right: -130px;
    pointer-events: none;
}

section[data-name="hero"]::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -110px;
    left: -90px;
    pointer-events: none;
}

section[data-name="hero"] h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.025em;
    line-height: 1.12;
}

section[data-name="hero"] .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    line-height: 1.7;
}

section[data-name="hero"] .btn {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section[data-name="hero"] .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ── Background-image hero ─────────────────────────────────────────────── */

section[data-name="hero-image"] {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

/* Lighten the heavy inline overlay (0.55 black) slightly by layering white */
section[data-name="hero-image"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

section[data-name="hero-image"] > .container {
    position: relative;
    z-index: 1;
}

section[data-name="hero-image"] h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -0.025em;
    line-height: 1.12;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

section[data-name="hero-image"] .lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    opacity: 0.95;
}

section[data-name="hero-image"] .btn {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

section[data-name="hero-image"] .btn:hover {
    transform: translateY(-2px);
}

section[data-name="hero-image"] .btn-outline-light {
    border-width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

section[data-name="hero-image"] .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 767.98px) {
    section[data-name="hero"],
    section[data-name="hero-image"] {
        min-height: 35vh;
    }
}

