:root {
    --main-color: #004f9f;
    --secondary-color: #e30613;
    --white-color: #ffffff;
    --black-color: #000000;
    --blue-main-color: #8e9ed1;
    --pantone-rich-back: #030000;
    --gray-color: #f4f4f4;
}

@font-face {
    font-family: "IrisUPC";
    src: url("../fonts/myriad-pro/MYRIADPRO-REGULAR.OTF") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "IrisUPC", sans-serif;
}

.heading-section {
    min-height: 100px;
    padding: 2rem 0;
    background-color: #f1f3f5;
    color: var(--secondary-color);
}

.section-heading-color {
    color: var(--main-color);
    font-size: 30px;
}

.heading-section a:hover {
    color: var(--secondary-color);
}

.margin-bottom-space {
    margin: 20px 0 40px 0;
}

.main-color {
    color: var(--main-color);
}

.secondary-color {
    color: var(--secondary-color);
}

.secondary-color {
    color: var(--secondary-color);
}

.bg-product-color {
    background-color: var(--gray-color);
}

.btn-outline-filter {
    border: 1px solid var(--main-color);
    background-color: transparent;
    color: var(--main-color);
    transition: all 0.3s ease;
}

.btn-outline-filter:hover {
    background-color: var(--main-color);
    color: var(--white-color);
    border-color: var(--main-color);
}

.btn-outline-filter.active {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.btn-custom {
    color: var(--main-color) !important;
    transition: 0.3s;
    border-color: var(--main-color);
    border-radius: 15px !important;
}

.btn-custom:hover {
    background-color: var(--white-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    border-radius: 15px !important;
}

.btn-custom-welcome {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    font-size: 16px;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-custom-welcome .arrow {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-custom-welcome:hover .arrow {
    transform: translateX(6px);
}

.btn-custom-welcome:hover {
    color: var(--white-color);
}

.bg-main-color {
    background-color: var(--main-color);
}

.bg-secondary-color {
    background-color: var(--secondary-color);
}

.paragraph-space {
    padding: 85px 0;
}

/* lader */
#loader-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    background: var(--white-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.dot-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.dot-loader span {
    width: 10px;
    height: 10px;
    background-color: var(--main-color);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.2s infinite ease-in-out;
}

.dot-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* top navigation */
.top-nav {
    border-bottom: 3px solid var(--secondary-color);
}

.ticker-wrapper {
    display: inline-block;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 15s linear infinite;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .ticker {
        animation-duration: 10s;
    }

    .separator-line {
        display: none !important;
    }
}

.social-icon i {
    color: var(--white-color);
    cursor: pointer;
}

.separator-line {
    width: 2px;
    background-color: var(--white-color);
    align-self: stretch;
}

.nav-link {
    color: var(--black-color);
    font-weight: 400;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link.show,
.nav-link.dropdown-toggle:focus,
.nav-link.dropdown-toggle[aria-expanded="true"] {
    color: var(--secondary-color);
}

.nav-link.active {
    color: var(--secondary-color);
}

/* navigation */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-brand img {
    height: 70px;
}

.navbar {
    font-weight: 500;
    font-size: 16px;
}

.navbar .nav-link {
    padding: 12px 20px;
    color: var(--black-color);
    transition: all 0.3s ease;
    position: relative;
}

.navbar .dropdown:hover > .nav-link {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 5px;
}

.navbar .nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 5px;
}

.dropdown-menu {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: none;
    padding: 10px 0;
    min-width: 200px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 5px;
}

/* hero section */
.carousel-item {
    position: relative;
    height: 76vh;
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
}

.carousel-caption {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.carousel-item p {
    max-width: 700px;
    margin: 0 auto 35px auto;
}

.carousel-control-prev {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    left: 0;
    background: var(--main-color);
    border-radius: 0 50px 50px 0;
    opacity: 1;
}

.carousel-control-prev:hover {
    background: var(--secondary-color);
    transition: 0.8s;
}

.carousel-control-next {
    width: 90px;
    height: 60px;
    position: absolute;
    top: 50%;
    right: 0;
    background: var(--main-color);
    border-radius: 50px 0 0 50px;
    opacity: 1;
}

.carousel-control-next:hover {
    background: var(--secondary-color);
    transition: 0.8s;
}

.carousel-caption .carousel-content a button.carousel-content-btn2 {
    background: var(--main-color);
    color: var(--bs-white);
    opacity: 1;
    border: 0;
    border-radius: 20px;
}

.carousel-caption .carousel-content a button.carousel-content-btn2:hover {
    background: var(--secondary-color);
    color: var(--white-color);
    border: 0;
    opacity: 1;
    transition: 1s;
    border-radius: 20px;
}

@media (max-width: 992px) {
    .carousel-item {
        min-height: 500px;
    }

    .carousel-item img {
        min-height: 500px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 40px !important;
    }

    .carousel-item p {
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-height: 400px;
    }

    .carousel-item img {
        min-height: 400px;
        object-fit: cover;
    }

    .carousel-item h1 {
        font-size: 28px !important;
    }

    .carousel-item p {
        font-size: 14px !important;
    }
}

/* about us */
.about-details {
    padding: 0 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.about-us-section {
    background-color: var(--white-color);
}

.dots-background {
    background-image: radial-gradient(rgb(186, 186, 186) 1px, transparent 3px);
    background-size: 25px 25px;
    height: 500px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-image {
    width: 300px;
    height: 300px;
    z-index: 2;
    position: relative;
    left: 50px;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 6px solid var(--white-color);
    border-radius: 50%;
}

.about-card {
    background-color: var(--main-color);
    position: relative;
    margin-top: 0;
    margin-left: -150px;
    z-index: 1;
    width: calc(100% + 150px);
    height: 490px;
    color: var(--white-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-slider {
    display: inline-block;
    white-space: nowrap;
    animation: slide-left 18s linear infinite;
    font-size: 1.1rem;
    font-weight: 600;
}

.stats-slider span {
    margin-right: 3rem;
}

@keyframes slide-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.fade-left,
.fade-right {
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, #f8f9fa 80%, transparent);
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, #f8f9fa 80%, transparent);
}

/* news */
.news .card-title {
    color: var(--main-color);
    font-weight: 700 !important;
}

.btn-link {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--main-color);
    text-decoration: underline;
    font-weight: 500;
}

.card-news {
    border-radius: 15px !important;
    cursor: pointer;
}

.card-news:hover {
    border-color: var(--secondary-color);
}

.news .card-img-top {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
}

/* footer  */
.footer {
    min-height: 400px;
    width: 100%;
    position: relative;
}

.bg-footer {
    background-image: url("../images/v1/website-footer.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--main-color);
    background-attachment: scroll;
    background-color: var(--main-color);
    width: 100%;
}

.footer ul li {
    margin-bottom: 10px;
}

.btn-subscribe {
    color: var(--white-color);
    border: 1px solid var(--white-color);
    background-color: transparent;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-subscribe:hover {
    color: var(--white-color);
}

.footer-link:hover {
    color: var(--secondary-color) !important;
}

/* partner page */
.partner img {
    width: 110px;
    height: 100px;
}

/*  about */
.image-profile {
    cursor: pointer;
}

.image-profile a:hover {
    color: var(--secondary-color);
}

.image-profile:hover {
    border-color: var(--main-color);
}

.image-profile img {
    height: 260px;
}

/* news page */
.news-page {
    padding-top: 20px;
    padding-bottom: 40px;
    background-color: #f9f9f9;
}

.cool-link-arrow {
    position: relative;
    display: inline-block;
    color: var(--main-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cool-link-arrow .arrow {
    display: inline-block;
    margin-left: 1px;
    transition: transform 0.3s ease;
    will-change: transform;
}

.cool-link-arrow:hover {
    color: var(--secondary-color);
}

.cool-link-arrow:hover .arrow {
    transform: translateX(6px);
}

/* News Card Styling */
.news-card {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #f9f9f9;
    height: 360px;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.news-card img {
    height: 240px;
    object-fit: cover;
    width: 100%;
}

.news-card .card-body {
    padding: 15px;
}

.card-title a {
    color: var(--main-color);
}

.card-title a:hover {
    color: var(--secondary-color);
}

.news-card .card-title {
    font-size: 18px;
    font-weight: 600;
}

.news-card .card-text {
    font-size: 14px;
    color: #555;
}

.categories-box {
    border-radius: 12px;
}

.categories-box h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.category-badges a {
    display: inline-block;
    margin: 5px 6px;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    border-radius: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.category-badges a:hover {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

/* contact us */
.contact-section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.contact-info {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-info h5 {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: start;
    margin-bottom: 15px;
}

.info-icon {
    font-size: 20px;
    color: var(--main-color);
    margin-right: 15px;
}

.contact-form {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--main-color);
    box-shadow: none;
}

.info-icon {
    color: var(--main-color);
}

.send-message {
    background-color: var(--secondary-color) !important;
    border: 0;
}

/* career */
.career-card {
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(22, 52, 145, 0.15);
    transition: box-shadow 0.3s ease;
    border: none;
    margin-bottom: 1.5rem;
}
.career-card:hover {
    box-shadow: 0 10px 18px rgba(22, 52, 145, 0.3);
}

.career-card .card-body {
    padding: 1.5rem;
}

.career-card .card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--main-color);
}

.career-card .badge {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 9999px;
}

.career-card .text-muted.small {
    font-size: 0.85rem;
}

.btn-outline-filter {
    color: var(--main-color);
    border-color: var(--main-color);
    transition: background-color 0.3s, color 0.3s;
}
.btn-outline-filter:hover,
.btn-outline-filter:focus {
    background-color: var(--main-color);
    color: var(--white-color);
    border-color: var(--main-color);
}

/* Pagination styles (if you want them to stay global, no change here) */
.pagination .page-link {
    color: var(--main-color);
    border-radius: 50% !important;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}
.pagination .page-item.active .page-link {
    background-color: var(--main-color);
    color: var(--white-color);
    border-color: var(--main-color);
}
.pagination .page-link:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
}

.text-muted {
    display: none !important;
}

/* products */
.single-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        background-color 0.4s ease;
}

.single-product-card:hover {
    transform: translateY(-10px);
    cursor: pointer;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: var(--main-color);
}

.single-product-card:hover .card-title {
    color: var(--white-color) !important;
}

.single-product-card:hover .product-btn {
    color: var(--white-color) !important;
    border-color: var(--white-color) !important;
}

.single-product-card:hover .card-text {
    color: var(--white-color);
}

.product-cards .card-img-top {
    height: 220px;
    object-fit: cover;
}

.product-cards .card-title {
    color: var(--main-color);
    transition: color 0.3s ease;
}

.product-cards .card-title {
    color: var(--main-color);
}

.product-btn {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
    transition: 0.3s;
}

.product-btn:hover {
    border: 1px solid var(--white-color);
    color: var(--white-color);
}

.single-product-card .card-body {
    display: flex;
    flex-direction: column;
}

.single-product-card .card-text {
    flex-grow: 1;
}

.single-product-card .btn-custom-welcome {
    margin-top: auto;
    align-self: flex-start; /* Keeps the button left-aligned and auto-width */
}

/* services */
.service-card .btn-outline-primary {
    color: var(--main-color) !important;
    transition: 0.3s;
    border-color: var(--main-color);
}

.service-card .btn-outline-primary:hover {
    background-color: var(--main-color) !important;
    color: #fff !important;
    border-color: var(--main-color) !important;
}

.service-img {
    transition: transform 0.3s ease;
    height: 350px;
    width: 100%;
}

.service-img:hover {
    transform: scale(1.03);
}

/* customer stories */
.testimonial-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(#ebebeb 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    padding: 20px 0 !important;
}
.testimonial {
    position: relative;
    max-width: 900px;
    width: 100%;
    padding: 10px 0;
    overflow: hidden;
}
.testimonial .slide img {
    height: 200px;
    width: 200px;
    object-fit: cover;
    border-radius: 50%;
}
.testimonial .slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    row-gap: 30px;
    height: 100%;
    width: 100%;
}
.testimonial .slide p {
    text-align: center;
    padding: 0 160px;
}
.testimonial .slide .quote-icon {
    font-size: 30px;
    color: var(--main-color);
}
.testimonial .slide .details {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.testimonial .details .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--black-color);
}
.testimonial .details .job {
    font-size: 12px;
    font-weight: 400;
    color: var(--black-color);
}
.testimonial .nav-btn {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    transform: translateY(30px);
    background-color: rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}
.testimonial .nav-btn:hover {
    background-color: rgba(0, 0, 0, 0.2);
}
.testimonial .nav-btn::after,
.testimonial .nav-btn::before {
    font-size: 20px;
    color: var(--main-color);
}
.swiper-pagination-bullet {
    height: 12px;
    width: 12px;
    background-color: rgba(0, 0, 0, 0.8);
}
.swiper-pagination-bullet-active {
    background-color: var(--main-color);
}
@media screen and (max-width: 768px) {
    .testimonial .slide p {
        padding: 0 20px;
    }
    .testimonial .nav-btn {
        display: none;
    }
}

/* popup card */
.popup-card {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.popup-card.show {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: linear-gradient(145deg, #f2f2f2, #ffffff);
    padding: 50px 60px;
    width: 90%;
    max-width: 50%;
    min-height: 50%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    animation: popIn 0.5s ease-out;
}

.popup-content h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: var(--main-color);
    font-weight: 700;
    text-align: left !important;
}

.popup-content p {
    font-size: 18px;
    color: #333;
    text-align: justify !important;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    font-weight: bold;
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--gray-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.popup-content h2.blink {
    animation: blink 1s step-start infinite;
}

/* loan calculator */
.loan-calculator-card {
    padding: 2.5rem;
    border-radius: 1rem;
    background-color: var(--gray-color);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.05);
}

.text-primary-custom {
    color: var(--main-color) !important;
}

.btn-apply {
    background-color: var(--main-color);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.btn-apply:hover {
    background-color: var(--main-color);
    color: white;
}

.custom-range::-webkit-slider-thumb {
    background-color: var(--main-color);
    border: none;
}

.custom-range::-moz-range-thumb {
    background-color: var(--main-color);
    border: none;
}

.custom-range::-webkit-slider-thumb:hover {
    background-color: var(--main-color);
}

.custom-range::-moz-range-thumb:hover {
    background-color: var(--main-color);
}

/* related service */
.related-services .service-link {
    padding: 0.5rem 0;
    transition: all 0.2s ease-in-out;
    border-bottom: 1px solid var(--gray-color);
}

.related-services .service-link:hover {
    color: var(--secondary-color) !important;
    transform: translateX(5px);
}

.related-services .text-primary-custom {
    color: var(--main-color);
}

.related-services .bi {
    transition: transform 0.2s ease;
}

.related-services .service-link:hover .bi {
    transform: translateX(5px);
}

/* mission, vision, card */
.mvc-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 30px;
    border: 2px solid var(--black-color);
    border-radius: 30px;
}

.mvc-icon-circle {
    font-size: 30px;
}

.mvc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    color: var(--white-color) !important;
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
}

/* gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.image-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    font-size: 1rem;
    font-weight: 500;
}

.gallery-item:hover .image-title-overlay {
    opacity: 1;
}
