:root {
    --joinup-blue-dark: #004b93;
    --joinup-blue-light: #00aef0;
    --joinup-green: #38b449;
    --joinup-orange: #f7941d;
    --joinup-yellow: #fff200;
    --joinup-white: #ffffff;
    --joinup-offwhite: #f1f1f1;
    --joinup-offgreen: #e6ffe6;
    --joinup-black: #333;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-color: #f0f0f0;
    --support-gradient: linear-gradient(90deg, #0093e9 0%, #38b449 100%);
}

/* Dropdown Menu Animation */
.nav-item {
    position: relative;
}

.menu-submenu {
    background: var(--joinup-white);
    position: absolute;
    top: 120%;
    left: 0;
    z-index: 1000;
    width: 220px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    /* Smooth Transition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease-in-out;
}

/* Show on hover */
.nav-item:hover .menu-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.menu-items:hover {
    background: var(--joinup-offwhite);
    color: var(--joinup-blue-light);
}

/* Section Colors */
.label-orange {
    background: #fff3e0;
}

.label-purple {
    background: #f3e5f5;
}

/* Dashboard Constraints */
.dashboard-container {
    max-width: 500px;
    margin: auto;
    background: white;
}

.sticky-top {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.nav-link {
    color: var(--joinup-black);
    font-weight: 500;
}

.sign-in-btn {
    background: var(--joinup-blue-light);
    color: var(--joinup-white);
    border: none;
    padding: 8px 16px;
    font-weight: 500;
}

.sign-in-btn:hover {
    background: var(--joinup-blue-dark);
    transition: 0.5s ease-in-out;
    color: var(--joinup-white);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

/* Banner Styling */
/* Responsive Banner Height */
.banner-img {
    height: 60vh;
    /* Dynamic height for mobile */
    object-fit: cover;
    width: 100%;
}

@media (min-width: 992px) {
    .banner-img {
        height: 550px;
        /* Fixed height for desktop */
    }
}

/* Updated Overlay with Gradient and Blur */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient adapted from the support banner style */
    background: linear-gradient(to right, rgba(0, 75, 147, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    backdrop-filter: blur(2px);
    /* Subtle glassmorphism effect */
    z-index: 1;
}

/* Adaptive Caption Positioning */
.carousel-caption {
    bottom: 10%;
    /* Closer to bottom on mobile */
    left: 5%;
    right: 5%;
    z-index: 2;
    text-align: left;
    padding: 0;
}

@media (min-width: 768px) {
    .carousel-caption {
        bottom: 20%;
        right: 8%;
        left: auto;
        padding: 0;
    }
}

/* Refined Caption Card */
.caption-card {
    max-width: 550px;
    background: rgba(255, 255, 255, 0.85);
    /* Semi-transparent white */
    padding: 25px;
    border-radius: 20px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    /* Matching your preferred shadow style */
    animation: fadeInUp 0.8s ease-out;
}

.caption-card h1 {
    color: var(--joinup-blue-dark);
    /* Using brand blue for headers */
    font-size: calc(1.5rem + 1.2vw);
    /* Fluid typography */
    margin-bottom: 15px;
    font-weight: 800;
}

.caption-card p {
    color: #444;
    font-size: calc(0.9rem + 0.2vw);
    margin-bottom: 25px;
}

/* Upgraded Button Style */
.btn-joinup-lg {
    background: var(--joinup-blue-light);
    color: white;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-joinup-lg:hover {
    background: var(--joinup-blue-dark);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 75, 147, 0.3);
}

/* Modern Controls */
.control-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: 0.3s;
}

.carousel-control-prev:hover .control-circle,
.carousel-control-next:hover .control-circle {
    background: var(--joinup-blue-light);
}

/* Custom Indicators */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: var(--joinup-blue-light);
}

/* Entrance Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-section-card {
    background: var(--joinup-white);
    border-radius: 16px;
    padding: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.service-link {
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
    background: var(--joinup-offwhite);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding-bottom: 12px;
}

.service-link:hover {
    transform: translateY(-5px);
    background: var(--joinup-offgreen);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    transition: 0.5s ease-in-out;
}

.service-icon-wrapper {
    font-size: 2.2rem;
    color: var(--joinup-blue-dark);
    margin-bottom: -4px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    color: var(--joinup-black);

}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .service-icon-wrapper {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.2rem;
    }
}

.promo-card {
    background: var(--joinup-white);
    border-radius: 40px;
    /* Modern ultra-rounded corners */
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Icon Styles */
.promo-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.promo-green .promo-icon-box {
    background-color: var(--joinup-green);
    color: white;
}

.promo-blue .promo-icon-box {
    background-color: #e3f2fd;
    color: var(--joinup-blue-light);
}

/* Content Styles */
.promo-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--joinup-blue-dark);
    line-height: 1.2;
}

.promo-content .highlight {
    color: var(--joinup-orange);
}

.promo-code {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.promo-code span {
    font-weight: 700;
    color: #444;
}

.promo-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Action Button Styles */
.btn-promo {
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-green {
    background-color: #e6ffe6;
    color: var(--joinup-green);
    border: 1px solid var(--joinup-green);
}

.btn-blue {
    background-color: #e3f2fd;
    color: var(--joinup-blue-light);
    border: 1px solid var(--joinup-blue-light);
}

.btn-promo:hover {
    filter: brightness(0.95);
    padding-right: 28px;
}

@media (max-width: 768px) {
    .promo-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .promo-action {
        margin-top: 15px;
    }
}

.service-hub-card {
    background: var(--joinup-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.hub-item {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.hub-item:hover {
    background: #fcfcfc;
    transform: scale(1.02);
    z-index: 2;
}

/* Icon Box Styling */
.hub-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.hub-item:hover .hub-icon {
    transform: rotate(-5deg) translateY(-3px);
}

.hub-text h6 {
    font-weight: 700;
    margin-bottom: 2px;
    color: #333;
    font-size: 0.95rem;
}

.hub-text span {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

/* Soft Backgrounds for Icons */
.bg-green-soft {
    background: #e8f5e9;
    color: var(--joinup-green);
}

.bg-blue-soft {
    background: #e3f2fd;
    color: var(--joinup-blue-light);
}

.bg-orange-soft {
    background: #fff3e0;
    color: #ff9800;
}

.bg-yellow-soft {
    background: #fffde7;
    color: #fbc02d;
}

.bg-red-soft {
    background: #ffebee;
    color: #f44336;
}

.bg-purple-soft {
    background: #f3e5f5;
    color: #9c27b0;
}

.bg-teal-soft {
    background: #e0f2f1;
    color: #009688;
}

.bg-dark-soft {
    background: #f5f5f5;
    color: #444;
}

.view-all-link {
    text-decoration: none;
    font-weight: 700;
    color: var(--joinup-blue-light);
    font-size: 0.9rem;
    transition: 0.2s;
}

.view-all-link:hover {
    padding-right: 5px;
    color: var(--joinup-blue-dark);
}

.support-banner-pill {
    background: var(--support-gradient);
    /* Large border radius to create the pill shape */
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-banner-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 147, 233, 0.3) !important;
}

.support-logo-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Button Styling */
.btn-outline-light {
    border-width: 2px !important;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white !important;
    color: #0093e9 !important;
    transform: scale(1.05);
}

/* Responsive Mobile Handling */
@media (max-width: 767px) {
    .support-banner-pill {
        /* Reduce radius for mobile to prevent text clipping */
        border-radius: 20px;
        flex-direction: column;
        text-align: center;
        padding: 20px 5px !important;
        gap: 20px;
    }

    .support-logo-circle {
        margin: 0 auto;
    }
}

/* Ensure the offcanvas has proper depth and visibility */
.offcanvas {
    background-color: #ffffff;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    height: 100vh;
}

.offcanvas-body {
    overflow-y: visible !important;
    background: var(--joinup-offwhite);
    height: 100vh;
}

/* Style the Accordion for JoinUp branding */
.offcanvas-body .accordion-button {
    color: #004b93;
    /* JoinUp Dark Blue */
    font-size: 1.1rem;
    padding: 1.2rem;
}

.offcanvas-body .accordion-button:not(.collapsed) {
    background-color: #e6ffe6;
    color: #38b449;
    /* JoinUp Green */
}

.offcanvas-body .list-group-item-action {
    color: #555 !important;
    font-weight: 500;
    transition: 0.3s;
}

.offcanvas-body .list-group-item-action:hover {
    color: #00aef0 !important;
    background-color: #f8f9fa;
    padding-left: 2rem !important;
}

li {
    list-style: none;
}