.c-block__image-name{
    background-color: #f1f1f1;
    min-height: 84px;
    margin: 0px;
    text-align: left;
    padding: 20px;
    max-width: 320px;
    overflow: hidden;
    font-size: 16px;
}

.cb-7{
    border: 2px solid #f1f1f1;
    border-radius: 30px 0;
    overflow: hidden;
}

@media screen and (max-width: 991px){
    .c-block__image-name{
        max-width: none;
        min-height: unset;
    }

    .cb-7{
        margin-bottom: 30px;
    }
}


/* Video hero updates */
.page-header__bg video{
    filter: grayscale(100%) brightness(70%) contrast(200%);
}

.page-header__bg:after{
    background: linear-gradient(90deg, #2C4E8B 0%, #2C4E8B 20%, #4A4E75 35%, #C14E1B 65%, #C14E1B 78%, #CA9754 100%);
    opacity: 0.9;
}

/* Nav */
.page-nav__menu{
    padding-bottom: 2px;
}

.page-nav__menu a{
    font-weight: 600;
    transition: none;
}

@media (min-width: 991px) {
    .page-nav__menu li a:hover{
        border-bottom: 3px solid #e05d2a;
        opacity: 1;
        transition: none;
    }

    .page-footer__menu li a:hover{
        border-bottom: 3px solid #fff;
        opacity: 1;
    }
}

@media (min-width: 1200px) {
    .page-nav__menu {
        gap: 40px;
    }
    .c-block__bg {
        padding: 50px 0;
    }
}

/* Blue Block */
.c-block__bg-blue p{
    line-height: 1.2;
}

.justify-items-center:not(.order-lg-0){
    justify-items: center;
}

a.btn{
    transition: background-color .2s ease-in-out !important;
}

a.btn:hover{
    transition: background-color .2s ease-in-out !important;
}


/* Home hero images */
.info-block__image{
    position: relative;
}

.info-block__image img:nth-child(1){
    position: absolute;
    top: 20px;
}

.info-block__image img:nth-child(2){
    position: absolute;
    top: 80px;
    right: 0px;
}

.curved-shadow {
    position: absolute;
    top: 370px;
    right: -50px;
    z-index: -2;
    width: 550px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 50%, transparent 80%);
    filter: blur(0px);
    opacity: 1;
}

@media (max-width: 1200px) {

    .info-block__image{
        top: 60px;
        scale: 0.9;
    }

    .info-block__image img:nth-child(2){
        right: -60px;
    }

    .curved-shadow{
        width: 100%;
        right: -10%;
    }
}

@media (max-width: 991px) {
    .info-block__image img:nth-child(1){
        position: relative;
        max-width: 36%;
        top: 0px;
    }

    .info-block__image img:nth-child(2){
        position: relative;
        top: -180px;
        right: 10%;
    }

    .curved-shadow{
        width: 100%;
        right: -3%;
    }

    .info-block__image{
        height: 450px;
        top: initial;
    }
}

@media (max-width: 768px) {
    .info-block__image{
        top: initial;
        scale: initial;
        height: 410px;
    }

    .info-block__image img:nth-child(2){
        max-width: 50%;
        top: -28%;
    }

    .curved-shadow{
        top: initial;
        bottom: 5%;
    }
}

@media (max-width: 560px) {
    .info-block__image{
        height: 74vw;
    }

    .curved-shadow{
        bottom: -2%;
    }
}

body, section{
    overflow-x: hidden;
}

section{
    overflow-y: hidden;
}


/* 1. Define the initial state (before scrolling into view) */
[data-aos="fade-up-rotate-zoom"] {
    opacity: 0;
    /* translateY(50px) -> pushes it down (for fade up)
       rotate(5deg)     -> slight rotation
       scale(0.8)       -> zoom in effect (starts smaller)
    */
    transform: translateY(50px) rotate(5deg) scale(0.8);

    /* Ensure the transform and opacity changes are smooth */
    transition-property: transform, opacity;
}

/* 2. Define the final state (when scrolled into view) */
[data-aos="fade-up-rotate-zoom"].aos-animate {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
}

/* 1. Base Settings: Hidden by default (for Desktop) */
#custom-back-to-top {
    display: none; /* This ensures it does not exist on large screens */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #F3AA65;
    border-radius: 50%;
    z-index: 99999;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);

    /* Animation settings */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    /* Mobile tap fix */
    -webkit-tap-highlight-color: transparent;
}

/* 2. The Triangle */
#custom-back-to-top::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 18px solid #2C5696;
    transform: translateY(-2px);
}

/* 3. Mobile Constraint: Only activate flex display on screens 768px or smaller */
@media (max-width: 991px) {
    #custom-back-to-top {
        display: flex; /* Enables the button layout only on mobile */
        justify-content: center;
        align-items: center;
    }
}

/* 4. Show State (Triggered by JS on scroll) */
#custom-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991px) {
    .m-width-n .img-mobile-f-width{
        max-width: 522px;
    }
}

@media (max-width: 576px) {
 .m-width-n{
     padding: 15px;
     padding-right: 20px;
 }
}