/* Pages reserve a min-height on #footer to avoid layout shift while footer.html loads.
   Once this stylesheet arrives with the footer, drop the reservation so no blank space is left below it. */
#footer {
    min-height: 0 !important;
    content-visibility: visible !important;
    contain-intrinsic-size: none !important
}

.top-area-footer {
    background: #fff;
    border-top: 4px solid #bc2125;
    padding: 48px 0 36px;
    position: relative;
    overflow: hidden
}

.footer-top-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 0 40px;
    align-items: start
}

.footer-top-col {
    display: flex;
    flex-direction: column
}

.ftop-head {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #bc2125 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 0 0 14px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f5c6c7 !important;
    position: relative !important;
    display: block !important
}

.ftop-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: #bc2125;
    border-radius: 2px
}

.heof {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 12px 14px !important
}

.heof .lmp {
    color: #bc2125 !important;
    font-size: 18px !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important
}

.heof span {
    color: #444 !important
}

.footer-letstalk-head {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #bc2125 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin: 20px 0 10px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f5c6c7 !important;
    position: relative !important;
    display: block !important
}

.footer-letstalk-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: #bc2125;
    border-radius: 2px
}

.btnsprice a {
    display: inline-block;
    background: #bc2125;
    color: #fff !important;
    padding: 12px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .3s, transform .2s, box-shadow .3s;
    box-shadow: 0 4px 16px rgba(188, 33, 37, .25);
    position: relative;
    overflow: hidden
}

.btnsprice a:hover {
    background: #9a1a1d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(188, 33, 37, .35)
}

.mandp {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important
}

.mandp a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13.5px !important;
    color: #444 !important;
    text-decoration: none !important;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 9px 14px !important;
    transition: border-color .3s, color .3s, background .3s !important
}

.mandp a i {
    color: #bc2125 !important;
    font-size: 16px !important
}

.mandp a:hover {
    border-color: #bc2125 !important;
    color: #bc2125 !important;
    background: #fff5f5 !important
}

.footer-logos-wrap {
    margin-bottom: 20px
}

.imgtgma {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 0;
    margin: 0 0 8px 0 !important
}

.imgtgma a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 93px !important;
    height: 65px !important;
    background: #fff !important;
    border: 1.5px solid #ebebeb !important;
    border-radius: 10px !important;
    padding: 8px !important;
    transition: border-color .3s, box-shadow .3s, transform .2s !important;
    margin: 0 !important
}

.imgtgma a:hover {
    border-color: #bc2125 !important;
    box-shadow: 0 4px 16px rgba(188, 33, 37, .12) !important;
    transform: translateY(-2px) !important
}

.imgtgma a img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: grayscale(20%) !important;
    transition: filter .3s !important;
    padding: 0 !important
}

.imgtgma a:hover img {
    filter: grayscale(0%) !important
}

.footer-socials-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-top: 4px;
    border-top: 1.5px solid #f5f5f5
}

.footer-socials-col {
    flex: 1;
    min-width: 180px
}

.footer-socials-col .ftop-head {
    margin-top: 14px !important
}

.ftr-socila.mainsocmrgs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 10px !important;
    padding: 0 !important
}

.ftr-socila.mainsocmrgs a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: #fafafa !important;
    border: 1.5px solid #ebebeb !important;
    border-radius: 10px !important;
    padding: 8px !important;
    margin: 0 !important;
    transition: border-color .3s, box-shadow .3s, transform .2s, background .3s !important
}

.ftr-socila.mainsocmrgs a:hover {
    border-color: #bc2125 !important;
    background: #fff5f5 !important;
    box-shadow: 0 4px 12px rgba(188, 33, 37, .15) !important;
    transform: translateY(-3px) !important
}

.ftr-socila.mainsocmrgs a img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    padding: 0 !important;
    transition: transform .2s !important
}

.ftr-socila.mainsocmrgs a:hover img {
    transform: scale(1.1) !important
}

.footer-tab-menus {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1.5px solid #f0f0f0
}

.footer-tab-menus .footer-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important
}

.footer-tab-menus .footer-tabs .nav-item {
    margin: 0 !important
}

.footer-tab-menus .footer-tabs .nav-link {
    background: #f7f7f7 !important;
    color: #444 !important;
    border: 1.5px solid #e8e8e8 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 10px !important;
    line-height: 1.4 !important;
    transition: all .25s !important;
    white-space: nowrap !important;
    text-decoration: none !important
}

.footer-tab-menus .footer-tabs .nav-link:hover {
    background: #fff0f0 !important;
    border-color: #bc2125 !important;
    color: #bc2125 !important
}

.footer-tab-menus .footer-tabs .nav-link.active {
    background: #bc2125 !important;
    border-color: #bc2125 !important;
    color: #fff !important;
    font-weight: 700 !important
}

.footer-tab-menus .tab-content {
    border-radius: 8px;
    padding: 0 !important
}

.footer-tab-menus .tab-content>.tab-pane {
    padding: 0 !important;
    max-width: none
}

.footer-tab-menus .tabintermenu {
    margin: 0 !important;
    font-size: 15.5px !important;
    line-height: 1.9 !important;
    color: #555 !important;
    font-weight: 500
}

.footer-tab-menus .tabintermenu a {
    color: #555 !important;
    text-decoration: none !important;
    transition: color .2s !important
}

.footer-tab-menus .tabintermenu a:hover {
    color: #bc2125 !important;
    text-decoration: underline !important
}

.ftr-first .row {
    align-items: flex-start
}

.ftr-first .col-8 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: -16px
}

.bottomceotext {
    margin-top: 15px !important;
    font-size: 14px;
    line-height: 1.7;
    color: #555
}

.ftrname {
    margin-top: 15px !important
}

.ftr-socila {
    margin-top: 8px !important
}

@media (max-width:991px) {
    .footer-top-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px
    }

    .footer-top-col:last-child {
        grid-column: span 2
    }
}

@media (max-width:600px) {
    .footer-top-inner {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .footer-top-col:last-child {
        grid-column: span 1
    }

    .top-area-footer {
        padding: 32px 0 24px
    }

    .footer-tab-menus .footer-tabs .nav-link {
        font-size: 11px !important;
        padding: 5px 10px !important
    }
}

.ceo {
    width: 100%;
    border-radius: 50%
}

@media (max-width:600px) {
    .ftr-first .ceo {
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
        display: block
    }

    .ftrname {
        font-size: 18px !important;
        line-height: 1.35 !important;
        word-break: break-word
    }

    .ftrname span {
        display: block !important;
        margin-top: 4px !important
    }

    .footer-tab-menus .tabintermenu {
        word-break: break-word;
        overflow-wrap: break-word
    }

    .footer-tab-menus .tab-content {
        max-width: 100%;
        overflow-x: hidden
    }
}

.footer-locations-section {
    background: linear-gradient(180deg, #ffffff 0%, #fdf6f6 100%);
    border-top: 1px dashed #bc2125;
    margin-top: 30px;
    padding: 38px 0 40px;
    position: relative
}

.footer-locations-title-wrap {
    text-align: center;
    margin-bottom: 32px
}

.footer-locations-eyebrow {
    font-size: 35px;
    font-weight: 800;
    color: #bc2125;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px
}

.footer-locations-eyebrow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 2px;
    background: #bc2125;
    border-radius: 2px
}

.footer-locations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px
}

.footer-location-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 26px 14px 22px;
    transition: border-color .3s, box-shadow .3s, transform .25s
}

.footer-location-item:hover {
    border-color: #bc2125;
    box-shadow: 0 10px 28px rgba(188, 33, 37, .14);
    transform: translateY(-4px)
}

.footer-location-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
    border: 2px solid #f5c6c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: border-color .3s, transform .3s, box-shadow .3s;
    flex-shrink: 0
}

.footer-location-item:hover .footer-location-icon {
    border-color: #bc2125;
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(188, 33, 37, .22)
}

.footer-location-icon svg {
    width: 100%;
    height: 100%;
    display: block
}

.footer-location-country {
    font-size: 16px;
    font-weight: 700;
    color: #252525;
    margin-bottom: 6px;
    line-height: 1.3
}

.footer-location-address {
    font-size: 13px;
    font-weight: 500;
    color: #777;
    line-height: 1.5;
    margin: 0
}

@media (max-width:991px) {
    .footer-locations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px
    }

    .footer-locations-section {
        padding: 32px 0 34px;
        margin-top: 24px
    }
}

@media (max-width:767px) {
    .footer-locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px
    }

    .footer-location-item {
        padding: 20px 12px 18px
    }

    .footer-location-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px
    }

    .footer-locations-eyebrow {
        font-size: 26px
    }

    .footer-location-item:last-child {
        grid-column: 1/-1;
        width: 100%;
        max-width: 220px;
        margin: 0 auto
    }
}

@media (max-width:480px) {
    .footer-locations-section {
        padding: 26px 0 28px;
        margin-top: 20px
    }

    .footer-locations-title-wrap {
        margin-bottom: 22px
    }

    .footer-locations-eyebrow {
        font-size: 22px
    }

    .footer-locations-grid {
        gap: 12px
    }

    .footer-location-item {
        padding: 16px 8px 14px;
        border-radius: 14px
    }

    .footer-location-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 10px
    }

    .footer-location-country {
        font-size: 14px
    }

    .footer-location-address {
        font-size: 12px
    }
}
/* Keep the NASSCOM and DesignRush logos side by side on one line */
.copy-right-text .col-md-3 p {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px
}

.copy-right-text .col-md-3 .fteimg {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(50% - 6px);
    width: auto;
    height: 60px;
    object-fit: contain
}

/* Vertically centre the copyright text, logos and links in the bottom bar */
.copy-right-text.row {
    align-items: center
}

.copy-right-text p,
.copy-right-text .btrftr {
    margin-top: 0;
    margin-bottom: 0
}

.copy-right-text .btrftr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-left: 0
}
