:root {
            --primary: #142c8e;
            --cards: #C0AE8E;
            --background: #f3f3f6;
            --text-primary: #d1f1ff;
            --text-secondary: #001435;
            --main-font: 'titillium-web', 'serif';
        }

        body {
            font-family: var(--main-font);
            background-color: var(--background);
            color: var(--text-secondary);
            height: 100vh;
            overflow: hidden;
            margin: 0;
            padding: 0;
        }

        h1, h2, h3 {
            font-family: var(--main-font);
            color: var(--primary);
        }

        p, h4, h5, h6, a, span, li, input, textarea, button {
            font-family: var(--main-font);
        }
        html, body {
         min-height: 100%;
         margin: 0;
         padding: 0;
        }

        .navbar {
            background-color: white !important;
            height: 10vh !important;
            padding: 0;
        }

        .nav-btn {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 1.5rem;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            transition: all 0.3s ease;
        }

        .nav-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .image-container {
            height: 70vh !important;
            display: flex;
            align-items: center;
            padding: 0;
        }
        .hero-container{
        height: 100vh !important;
        }
        .carousel-container {

            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            height: auto !important;
        }

        /* Responsive image sizing */
        .carousel-img {
            width: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
         .carousel-caption {
            position: absolute;
            background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
            border-radius: 10px;
            bottom: 1.25rem;
            left: 10%;
            right: 15%;
            transform: none;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.1);
            z-index: 10;
        }


        .carousel-caption h5 {
            color: #fff;
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .carousel-caption p {
            color: #f8f9fa;
            font-size: 1rem;
            margin-bottom: 0;
            line-height: 1.4;
        }
        /* Enhanced indicators */
        .carousel-indicators {
            bottom: -20px;
            margin-bottom: 0;
        }

        .carousel-indicators [data-bs-target] {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid #3498db;
            background-color: transparent;
            transition: all 0.3s ease;
        }

        .carousel-indicators [data-bs-target].active {
            background-color: #3498db;
            transform: scale(1.2);
        }

        .carousel {
            height: 100%;
        }

        .carousel-inner {
            height: 100%;
        }

        .carousel-item {
            height: 100%;
        }

        .carousel-item img {
            height: 100%;
            object-fit: cover;
        }

        .cta-container {
            height: auto !important;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2rem;
        }

        .cta-btn {
            padding: 0.7rem 2rem;
            margin: 0.3rem 1rem;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-decoration: none;
            display: inline-block;
        }
        .cta-btn-header {
    padding: 0.25rem 0.9rem;           /* Slim padding */
    font-size: 0.9rem;
    font-weight: 600;
    color: solid #007BFF ;
    border: 2px solid #007BFF;         /* Bootstrap blue */
    border-radius: 25px;
    background-color: transparent;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.cta-btn-header:hover {
    background-color: #007BFF;
    color: white;
    transform: translateY(-1px);       /* Subtle lift effect */
}

        .cta-primary {
            background: linear-gradient(135deg, #142c8e, #142c8e);
            color: white;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        .cta-primary:hover {
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
        }

        /* Ensure no scrollbars */
        html, body {
            overflow: hidden;
        }
        .hero-image {
            width: 100%;
            height: 300px !important;
            object-fit: cover;
            border-radius: 20px;
            transition: all 0.3s ease;
            filter: brightness(0.9) contrast(1.1);
        }

        .hero-image:hover {
            transform: scale(1.05);
            filter: brightness(1) contrast(1.2);
        }
/* login container styling */
.login-container {

            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem 1rem;
        }

        .login-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(20, 44, 142, 0.1);
            padding: 1rem;
            padding-bottom: 1rem;
            width: 100%;
            max-width: 400px;
            border: 1px solid rgba(192, 174, 142, 0.2);
        }

        .login-title {
            text-align: center;
            margin-bottom: 2rem;
            color: var(--primary);
            font-weight: 600;
        }

        .form-label {
            color: var(--text-secondary);
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        .form-control {
            border: 2px solid rgba(192, 174, 142, 0.3);
            border-radius: 10px;
            padding: 0.75rem 1rem;
            font-size: 1rem;
            transition: all 0.3s ease;
            background-color: white;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 0.2rem rgba(20, 44, 142, 0.1);
            background-color: white;
        }

        .btn-login {
            background: linear-gradient(135deg, var(--primary), var(--primary));
            color: white;
            border: none;
            border-radius: 50px;
            padding: 0.75rem 2rem;
            font-weight: 600;
            font-size: 1rem;
            width: 100%;
            margin-top: 1rem;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(20, 44, 142, 0.2);
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(20, 44, 142, 0.3);
            color: white;
        }

        .alert {
            border-radius: 10px;
            border: none;
            margin-bottom: 1.5rem;
        }

        .alert-success {
            background-color: rgba(40, 167, 69, 0.1);
            color: #155724;
            border-left: 4px solid #28a745;
        }

        .alert-danger {
            background-color: rgba(220, 53, 69, 0.1);
            color: #721c24;
            border-left: 4px solid #dc3545;
        }

        .alert-warning {
            background-color: rgba(255, 193, 7, 0.1);
            color: #856404;
            border-left: 4px solid #ffc107;
        }

        .alert-info {
            background-color: rgba(23, 162, 184, 0.1);
            color: #0c5460;
            border-left: 4px solid #17a2b8;
        }

        .text-danger {
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }

        .back-link {
            text-align: center;
            margin-top: 1.5rem;
        }

        .back-link a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
        }

        .back-link a:hover {
            text-decoration: underline;
        }
/*styling for register pge*/
.register-container {
            min-height: 90vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem 1rem;
        }

        .register-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(20, 44, 142, 0.1);
            padding: 2.5rem;
            width: 100%;
            max-width: 500px;
            border: 1px solid rgba(192, 174, 142, 0.2);
        }

        .register-title {
            text-align: center;
            margin-bottom: 2rem;
            color: var(--primary);
            font-weight: 600;
        }

        .form-row {
            display: flex;
            gap: 1rem;
        }

        .form-row .form-group {
            flex: 1;
        }

        @media (max-width: 576px) {
            .form-row {
                flex-direction: column;
                gap: 0;
            }
        }

.footer-menu > img{
     height: 30px ;
     width : 30px ;
}

/**hero page styling */
.hero-subtitle{
        font-weight: 700;
        font-size: 1.03rem;
        }
        .hero-title{
        font-weight: 700;
        font-size: 1.8rem;
        }
        .login-btn {
            background-color: white;
            color: #333;
            border: 2px solid #333;
            border-radius: 25px;
            padding: 3px 24px;
            margin-top: 12px;
            margin-right: 0px;
            margin-bottom: 12px;
            margin-left: 48px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .login-btn:hover {
            background-color: #333;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .login-btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
         .outline-btn {
            background-color: transparent;
            color: #142c8e;
            border: 2px solid #142c8e;
        }

        .outline-btn:hover {
            background-color: #142c8e;
            color: white;
        }
        .ruler{
        margin: 0rem 0rem;
        color: inherit;
        border: 0;
        border-top: var(--bs-border-width) solid;
        }

/** profile page styling *//
        .personal-profile {
            min-height: calc(100vh - 100px);
            padding: 0.5rem 1rem;
        }

        .profile-header {
            background: white;
            border-radius: 20px;
            padding-top: 0rem;
            margin-bottom: 2rem;
            box-shadow: 0 5px 15px rgba(20, 44, 142, 0.1);
            border: 1px solid rgba(192, 174, 142, 0.2);
            text-align: center;
        }

        .profile-image {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid var(--primary);
            padding: 10px;
            background: var(--background);
            margin-bottom: 1rem;
        }

        .profile-name {
            color: var(--primary);
            font-weight: 600;
            font-size: 1.5rem;
            margin: 0;
        }

        .stats-grid {
            gap: 1rem;
        }

        .stat-card {
            background: #e8eaf4;
            border-radius: 15px;
            padding: 0.4rem;
            margin-bottom: 0.4rem;
            text-align: center;

            border: 1px solid rgba(192, 174, 142, 0.2);
            transition: all 0.3s ease;
        }
        hr{
          margin-bottom: 0.3rem !important;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(20, 44, 142, 0.15);
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 1rem;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .stat-value {
            color: var(--primary);
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0;
        }

        .footer-menu {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            height: 100px;
            border-top: 2px solid var(--primary);
            padding: 0.3rem 0;
            z-index: 1000;
            box-shadow: 0 -5px 15px rgba(20, 44, 142, 0.1);
        }

        .menu-item {
            text-decoration: none;
            color: var(--text-secondary);
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 0.5rem;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .menu-item:hover {
            color: var(--primary);
            background-color: rgba(20, 44, 142, 0.05);
            transform: translateY(-2px);
        }

        .menu-icon {
            width: 50px;
            height: 50px;
            margin-bottom: 0.25rem;
            filter: opacity(0.7);
        }

        .menu-item:hover .menu-icon {
            filter: opacity(1);
        }

        .menu-text {
            font-size: 0.75rem;
            font-weight: 500;
            text-align: center;
            line-height: 1.2;
        }

        @media (max-width: 576px) {
            .menu-text {
                font-size: 0.85rem;
            }

            .menu-icon {
                width: 40px;
                height: 40px;
            }

            .stat-value {
                font-size: 1.25rem;
            }
        }
         .navbar {
            background-color: white !important;
            box-shadow: 0 2px 10px var(--shadow);
            padding: 0.02rem 1rem;
            margin-bottom: 0rem ;
            height: 124px;
        }

        .navbar .nav-link {
            font-family: 'Roboto', sans-serif !important;
            font-size: 16px !important;
            color: white !important;
            transition: color 0.3s ease;
            position: relative;
        }
        .navbar .collapse {
           background-color: #142c8e;
           padding-right: 20px;
           padding-left: 20px;
           border-radius: 10px;
         }
         .navbar-collapse {

         }

        .navbar .nav-link:hover {
            color: var(--primary) !important;
        }

        .navbar .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 50%;
            background-color: var(--primary);
            transition: all 0.3s ease;
        }

        .navbar .nav-link:hover::after {
            width: 80%;
            left: 10%;
        }
        .underline {
            width: 90px;            /* Length of line */
            height: 2px;            /* Thickness */
             background-color: #142c8e; /* Bootstrap primary color */
           border-radius: 2px;
            }
        .nav-link.active {
                  font-weight: bold;
                  font-size: 1rem;
                  color: #142c8e !important;
                  background-color: #d0d5e8;
                  border-bottom: 2px solid #142c8e;
            }
/*apply loan pge*/
.loan-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .loan-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
        }

        .card-header {
            background: var(--card);
            color: white;
            padding: 2rem;
            text-align: center;
            border: none;
        }

        .card-header h2 {
            margin: 0;
            font-weight: 300;
            font-size: 1.8rem;
        }

        .card-body {
            padding: 3rem;
        }

        .status-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            display: block;
            text-align: center;
        }

        .status-success .status-icon {
            color: #28a745;
        }

        .status-failed .status-icon {
            color: #dc3545;
        }

        .loan-amount {
            background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 2.5rem;
            font-weight: bold;
            text-align: center;
            margin: 1.5rem 0;
        }

        .message-text {
            font-size: 1.1rem;
            line-height: 1.6;
            text-align: center;
            color: #6c757d;
            margin-bottom: 2rem;
        }

        .btn-apply {
            background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
            border: none;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            color: white;
            width: 100%;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        .btn-apply:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
            color: white;
        }

        .btn-fund {
            background: linear-gradient(45deg, #ff6b6b 0%, #ee5a24 100%);
            border: none;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            color: white;
            width: 100%;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
        }

        .btn-fund:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
            color: white;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .info-item {
            background: rgba(102, 126, 234, 0.1);
            padding: 1.5rem;
            border-radius: 15px;
            text-align: center;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .info-item h5 {
            color: #667eea;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        .info-item p {
            color: #6c757d;
            margin: 0;
            font-size: 0.9rem;
        }

        .decorative-element {
            position: absolute;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            top: -50px;
            right: -50px;
        }

        .container-custom {
            position: relative;
            z-index: 1;
        }

        @media (max-width: 768px) {
            .card-body {
                padding: 2rem 1.5rem;
            }

            .loan-amount {
                font-size: 2rem;
            }

            .card-header {
                padding: 1.5rem;
            }
        }
