/********** Template CSS **********/
:root {
    --primary: #FF6F0F;
    --secondary: #FFF0E6;
    --light: #F8F8F9;
    --dark: #001D23;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 110px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    color: var(--primary);
    background: transparent;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.fixed-top {
    transition: .5s;
}

.top-bar {
    height: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 22px;
    padding: 25px 0;
    color: #FFFFFF;
    font-weight: 500;
    outline: none;
    white-space: nowrap;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Responsive Navbar for Laptops & Medium Screens (992px to 1399px) */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar.px-lg-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar .navbar-brand svg {
        max-width: 280px !important;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 14px;
        font-size: 0.92rem;
    }

    .navbar .btn-outline-primary {
        padding: 6px 14px !important;
        font-size: 0.9rem;
    }
}

/* Responsive Navbar for Smaller Laptops (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar.px-lg-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar .navbar-brand svg {
        max-width: 235px !important;
    }

    .navbar .navbar-nav .nav-link {
        margin-right: 9px;
        font-size: 0.85rem;
    }

    .navbar .btn-outline-primary {
        padding: 5px 10px !important;
        font-size: 0.84rem;
    }

    .navbar .btn-outline-primary .btn-sm-square {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid rgba(0, 0, 0, .07);
        background: var(--dark);
    }

    .navbar .navbar-nav .nav-link {
        padding: 10px 0;
        margin-right: 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 29, 35, .8);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--dark);
    border: 12px solid var(--dark);
    border-radius: 3rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 29, 35, .8), rgba(0, 29, 35, .8)), url(../img/newImages/carousel-1.png) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Causes ***/
.causes-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #FFFFFF;
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .06);
}


/*** Donate ***/
.donate {
    background: rgba(0, 29, 35, .8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer p {
    overflow-wrap: anywhere;
    word-break: break-word;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item > .overflow-hidden,
.team-item .team-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.team-item > .overflow-hidden img,
.team-item .team-img-wrapper img,
.team-item img.img-fluid {
    width: 100% !important;
    height: 280px !important;
    max-width: none !important;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: .5s ease;
}

.team-item:hover img {
    transform: scale(1.06);
}

.team-item .team-text {
    position: relative;
    height: 100px;
    transition: .5s;
}

.team-item:hover .team-text {
    margin-top: -60px;
    height: 160px;
}

.team-item .team-text .team-social {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text .team-social {
    opacity: 1;
}

.team-item .team-social .btn {
    display: inline-flex;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: var(--light);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary);
    transform: scale(1);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.footer .btn.btn-square:hover {
    color: var(--secondary);
    border-color: var(--light);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* Chat Menu Button Styles */
.chat-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-width: 85%;
}

.menu-btn {
    background: #ffffff;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: #0d6efd;
    color: #ffffff;
}

.user-message {
    background: #0d6efd;
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    border-top-right-radius: 2px;
    font-size: 14px;
    align-self: flex-end;
    margin: 10px 0;
    max-width: 85%;
    float: right;
    clear: both;
}

/* =============================================
   Ratna Innovation Chatbot Core Styles
============================================= */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.custom-robot-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(234, 88, 12, 0.4) !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatBot 3s ease-in-out infinite;
    padding: 0;
}

.custom-robot-btn svg {
    width: 44px;
    height: 44px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.custom-robot-btn .fa-robot {
    font-size: 32px;
    color: #ffffff;
}

.custom-robot-btn:hover {
    transform: scale(1.12) translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), 0 0 0 3px #EA580C !important;
}

@keyframes floatBot {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.chat-popup {
    position: fixed;
    bottom: 105px;
    right: 35px;
    background-color: #000000;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 15px;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.chat-popup.show {
    opacity: 1;
    visibility: visible;
}

.chat-notification {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background-color: #dc3545;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.chat-notification.show {
    opacity: 1;
}

.chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 320px;
    height: 400px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: #000000;
    color: #ffffff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-robot-avatar {
    background: linear-gradient(135deg, #0d6efd 0%, #00c6ff 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
}

.custom-robot-avatar .fa-robot {
    color: #fff;
    font-size: 20px;
}

.chat-details h4 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.chat-details span {
    font-size: 12px;
    color: #28a745;
}

#closeChat {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    overflow-y: auto;
}

.bot-message {
    background: #e9ecef;
    color: #333;
    padding: 10px 15px;
    border-radius: 15px;
    border-top-left-radius: 2px;
    font-size: 14px;
    display: inline-block;
    max-width: 85%;
}

.chat-footer {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    outline: none;
}

.chat-footer button {
    background: #0d6efd;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}
.col-lg-6.px-5.text-start small{
    font-size: .75em !important;
}

/*** Mobile Navbar Responsive ***/
@media (max-width: 991.98px) {
    .navbar {
        padding: 8px 15px !important;
    }

    .navbar .navbar-brand {
        margin: 0 !important;
        flex-shrink: 1;
        min-width: 0;
    }

    .navbar .navbar-brand svg {
        max-width: 200px !important;
        height: auto;
    }

    .navbar .navbar-toggler {
        margin-left: auto !important;
        margin-right: 0 !important;
        border-color: rgba(255, 255, 255, 0.3);
        padding: 4px 8px;
        flex-shrink: 0;
    }
}

@media (max-width: 575.98px) {
    .navbar .navbar-brand svg {
        max-width: 160px !important;
    }
}

/*** Proposal Page Styles ***/
.proposal-badge {
    background: linear-gradient(135deg, rgba(255, 111, 15, 0.15), rgba(255, 111, 15, 0.05));
    border: 1px solid rgba(255, 111, 15, 0.3);
    color: #FF6F0F;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.credential-box {
    background: linear-gradient(135deg, #001D23 0%, #063139 100%);
    border-left: 5px solid #FF6F0F;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.pillar-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid rgba(0, 29, 35, 0.08);
    transition: all 0.35s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(255, 111, 15, 0.15);
    border-color: rgba(255, 111, 15, 0.4);
}

.pillar-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.pillar-edu {
    border-top: 4px solid #3B82F6;
}
.pillar-edu .pillar-icon-box {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
}

.pillar-health {
    border-top: 4px solid #10B981;
}
.pillar-health .pillar-icon-box {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.pillar-social {
    border-top: 4px solid #FF6F0F;
}
.pillar-social .pillar-icon-box {
    background: rgba(255, 111, 15, 0.12);
    color: #FF6F0F;
}

.activity-list-item {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
}

.activity-list-item:last-child {
    border-bottom: none;
}

.activity-list-item i {
    margin-top: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.objective-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #ECEEF1;
    transition: all 0.3s ease;
    height: 100%;
}

.objective-item:hover {
    border-color: #FF6F0F;
    background: #FFFBF8;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.objective-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6F0F, #FFA053);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.step-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #E5E7EB;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.step-card:hover {
    box-shadow: 0 14px 30px rgba(0, 29, 35, 0.08);
    transform: translateY(-5px);
    border-color: #FF6F0F;
}

.step-num-badge {
    position: absolute;
    top: -16px;
    left: 24px;
    background: #001D23;
    color: #FF6F0F;
    border: 2px solid #FF6F0F;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.funding-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    height: 100%;
}

.funding-card.featured {
    border-color: #FF6F0F;
    background: linear-gradient(180deg, #FFF9F5 0%, #FFFFFF 100%);
    box-shadow: 0 12px 35px rgba(255, 111, 15, 0.15);
    position: relative;
}

.funding-card.featured::before {
    content: "RECOMMENDED / INTEGRATED";
    position: absolute;
    top: -14px;
    right: 25px;
    background: #FF6F0F;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.06em;
}

.funding-card:hover {
    transform: translateY(-6px);
}

.quote-highlight {
    background: linear-gradient(135deg, rgba(255, 111, 15, 0.08), rgba(0, 29, 35, 0.04));
    border-left: 4px solid #FF6F0F;
    border-radius: 0 12px 12px 0;
    padding: 24px 30px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #001D23;
}

/* Print Stylesheet for proposal document export */
@media print {
    .fixed-top, .back-to-top, .chat-toggle, .chat-window, .chat-notification,
    .chat-popup, .whatsapp-float, .btn-print-hide, footer, .modal {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .container, .container-fluid, .container-xxl {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .pillar-card, .step-card, .objective-item, .funding-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
        margin-bottom: 20px !important;
    }

    .page-header {
        background: #001D23 !important;
        color: #fff !important;
        padding: 20px !important;
    }

    .text-primary {
        color: #FF6F0F !important;
    }
}