.heroimage {
    background-image: url(/NewSimuPath/images/logo.jpg);
    background-position: left;
    background-repeat: no-repeat;
    background-size: 100%;
    height: 100px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Responsive Hero Image */
.hero-wrapper {
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: scale-down;
    display: block;
}

.hero-text {
    right: 20%;
    bottom: 10%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-image {
        aspect-ratio: 16 / 9;
    }
    
    .hero-text {
        right: 10% !important;
        bottom: 5% !important;
        padding: 10px !important;
    }
    
    .hero-text h3 {
        font-size: 1.0rem;
    }
}

@media (max-width: 576px) {
    .hero-image {
        aspect-ratio: 1 / 1;
    }
    
    .hero-text {
        right: 5% !important;
        bottom: 5% !important;
        padding: 15px !important;
    }
    
    .hero-text h3 {
        font-size: 0.9rem;
    }
}

.lttdkblue {
    color: #003A5D;
}

.lttbrblue {
    color: #007FFF;
}

.lttliblue {
    color: #8EC6DE
}

.lttgreen{
    color: rgb(29, 202,  110);
}

/* Body-copy sizing: Bootstrap's .lead default (1.25rem/300) is too large
   when used as the sitewide paragraph class. */
.lead {
    font-size: 1.05rem;
    font-weight: 400;
}

/* Textured gradient fills, replacing flat brand-color backgrounds */
.bg-texture-dark {
    background: linear-gradient(135deg, #002a44 0%, #003a5d 55%, #0a5f8c 100%) !important;
}

.bg-texture-light {
    background: linear-gradient(135deg, #6fb3d4 0%, #8ec6de 55%, #c3e3f0 100%) !important;
}


.banner {
    --banner-height: 240px;
    background-image: image-set(
        url('/NewSimuPath/images/') 1x,
        url('/NewSimuPath/images/') 2x
    );
    background-repeat: repeat-x;
    background-size: auto var(--banner-height);
    background-position: center top;
    height: var(--banner-height);
}

.bg-primary {
    background-color: #007fff !important;
}

.btn-dark-blue {
    background-color: #003a5d !important;
    color: white !important;
}

.btn-dark-blue:hover {
    background-color: rgb(29, 202,  110) !important;
    color: #003a5d !important;
}

.btn-light-blue {
    background-color: #8ec6de !important;
    color: #003a5d !important;
}

.btn-light-blue:hover {
    background-color: rgb(29, 202,  110) !important;
    color: #003a5d !important;
}

.h2 {
    color: #003a5d;
}

.card-header {
    background-color: rgb(0, 127, 255);
    color: white;
}

.quick-links a,
.quick-links button.quick-links-toggle {
    color: #003a5d;
    text-decoration: none;
    font-weight: 600;
}

.quick-links a:hover,
.quick-links button.quick-links-toggle:hover {
    text-decoration: underline;
}

.quick-links .is-active {
    background:rgb(29, 202,  110);
    color: white;
}

.list-group-item.is-active a {
    color: white;
}

.quick-links-submenu {
    padding-left: 1rem;
}

.quick-links-submenu a {
    display: block;
    padding: 0.2rem 0;
    font-weight: 500;
}

/* Card polish */
.card-muted .card-body {
    background: rgb(242, 240, 240);
}

.card-hover {
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Document/policy card two-row layout */
.doc-card-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-card-title-row .card-title {
    font-size: 1rem;
}

.doc-card-btn-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

/* Pale grey panel behind document card grids, matching the accordion-body treatment */
.doc-card-panel {
    background: rgb(245, 244, 244);
    border-radius: 8px;
    padding: 1.5rem;
}

/* Footer link/social styling */
.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.socials {
    color: #fff;
    font-size: 1.25rem;
    opacity: 0.85;
    transition: opacity 150ms ease;
}

.socials:hover {
    opacity: 1;
}

/* Homepage scrolling carousel */
.coverflow-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    background: #fff;
}

.coverflow-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    transition: transform 700ms ease;
}

.coverflow-track.no-anim {
    transition: none;
}

.coverflow-slide {
    position: relative;
    flex: 0 0 auto;
    transition: transform 700ms ease;
}

.coverflow-slide img {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: filter 700ms ease;
    filter: grayscale(0.75) brightness(0.55);
    transform: scale(0.9);
}

.coverflow-slide.is-center {
    transform: scale(1.05);
    z-index: 2;
}

.coverflow-slide.is-center img {
    filter: grayscale(0) brightness(1);
    transform: scale(1);
}

.coverflow-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 700ms ease, transform 700ms ease;
    pointer-events: none;
}

.coverflow-slide.is-center .coverflow-caption {
    opacity: 1;
    transform: translateY(0);
}

.coverflow-caption h4 {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.coverflow-caption p {
    margin: 0;
    font-size: 0.9rem;
}

.coverflow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 200ms ease;
}

.coverflow-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.coverflow-btn-prev {
    left: 1rem;
}

.coverflow-btn-next {
    right: 1rem;
}

@media (max-width: 768px) {
    .coverflow-slide img {
        height: 260px;
    }
    .coverflow-caption {
        padding: 0.85rem 1rem;
    }
}

/* Quick access / services strip tiles */
.tile-card {
    text-decoration: none;
    color: #003a5d;
    display: block;
    text-align: center;
    padding: 1.25rem 0.5rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(0, 58, 93, 0.1);
}

.tile-card:hover {
    color: #003a5d;
    background: rgb(242, 240, 240);
}

.service-pill {
    text-decoration: none;
    color: #003a5d;
    background: #fff;
    border: 1px solid rgba(0, 58, 93, 0.15);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.service-pill:hover {
    background: rgb(29, 202, 110);
    color: white;
    border-color: rgb(29, 202, 110);
}
