:root {
    --hpa-card-image-ratio: 4 / 5;
}


.btn {
    font-size: 0.9rem
}

.hpa-brand-text {
    font-size: 0.85rem;
}

body {
    /*font-size: 1.25rem;*/
    line-height: 1.5;
}

.plain {
    font-weight: normal;
}

/*ignore spelling: endregion*/

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--hpa-focus-ring-color);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.hpa-img-cover {
    object-fit: cover;
}

.hpa-img-contain-center {
    object-fit: contain;
    object-position: center;
}

.hpa-img-scale-down {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.hpa-blend-screen {
    mix-blend-mode: screen;
}

.image-viewer {
    width: 100%; /* Make the image take up the full width of the container */
    height: auto; /* Maintain the aspect ratio */
}

.image-mat {
    padding: 10px; /* This is colored (if there's a background) and is inside the border */
}

/*#region Cards: equal-height image slot (CSS-only)
  - Aligns content across card rows by forcing a consistent image-mat height.
  - Adjust --hpa-card-image-ratio (in :root) if you want a different crop (ex: 1 / 1 or 3 / 4).
  - Uses object-fit: cover (Option A) to keep the grid uniform.
  -------------------------------------------------------------------------- */
.row-uniform-image-size .image-mat {
    width: 100%;
    aspect-ratio: var(--hpa-card-image-ratio);
    overflow: hidden; /* clip the image to the mat (incl. rounded corners) */
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

    .row-uniform-image-size .image-mat > img.image-viewer {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
/*#endregion */

.hpa-section-desc {
    border: 1px solid var(--hpa-mat-border);
    border-radius: 1rem;
    box-shadow: var(--hpa-mat-shadow);
    padding: 1.1rem 1.15rem;
    margin: 0.75rem 0 1rem 0;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: 0.01em;
    flex: 1 1 auto;
}

.rounded-circle-email-confimration {
    width: 90px;
    height: 90px;
}

/* Disable Bootstrap carousel motion so only Animate.css runs */
.carousel-no-bs-transition .carousel-item {
    transition: none !important;
}

.carousel-no-bs-transition .carousel-item,
.carousel-no-bs-transition .carousel-item-next,
.carousel-no-bs-transition .carousel-item-prev,
.carousel-no-bs-transition .carousel-item-start,
.carousel-no-bs-transition .carousel-item-end {
    transform: none !important;
}

/* Prevent "flash" of the incoming slide before the IN animation is applied */
.hpa-carousel-prehide {
    opacity: 0 !important;
}
.h-p-v-required {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/*#region Leadership: full-width split cards (image + text side-by-side, alternating) */
@media (min-width: 768px) {
    #leadership-cards .image-mat {
        height: 100%;
        min-height: 280px;
        aspect-ratio: auto !important;
        margin: 0;
    }

    #leadership-cards img.image-viewer {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}
/*#endregion */

/*#region spinner*/
/* Full-page overlay styles */
#loadingSpinner {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* Make sure the overlay is on top */
}

    /* Center the spinner, combining translation and rotation */
    #loadingSpinner .spinner-border {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(0deg);
        animation: spinner-border 0.75s linear infinite;
    }

/* Custom key frames to ensure the translation remains in effect while rotating */
@keyframes spinner-border {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.big-spinner {
    width: 5rem;
    height: 5rem;
    border-width: 0.5rem;
}

.rotate-90 {
    transform: rotate(90deg);
}

.button-spinner {
    display: inline-block;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #555;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*#endregion */