/* Added smooth scrolling behavior as a progressive enhancement */
html {
    scroll-behavior: smooth;
}

:root {
    --primary: #0066CC;
    --primary-dark: #0055aa;
    --secondary: #FF9900;
    --accent: #00CC99;
    --dark: #333333;
    --light: #F5F5F5;
}

/* Using a custom property for the gradient to easily apply it */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    /* In the future, you can add a background image here like so: */
    background-image: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 85, 170, 0.2) 100%), url('../images/imukafront.jpg');
    background-size: cover;
    background-position: center;

}

.footer-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);

}

/* Custom styles for database-driven lists */
.prose ul,
.prose ol {
    list-style: none;
    padding-left: 0;
}

.prose li {
    position: relative;
    padding-left: 1.75rem;
    /* Space for the icon */
    margin-bottom: 0.75rem;
    margin-left: 0.75rem;
}

.prose li::before {
    font-family: "Font Awesome 5 Free";
    content: "\f058";
    /* Font Awesome check-circle icon */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.125rem;
    /* Adjust vertical alignment */
    color: #3B82F6;
    /* Green color for the checkmark */
}

/* Different color for the second list */
.prose .industries-list li::before {
    color: #3B82F6;
    /* Blue color for the checkmark */
}

.impact-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.stats-counter {
    transition: all 1s ease;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.program-card {
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-card-entrepreneurs {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.program-card-entrepreneurs:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.venture-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.venture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.venture-card .image-container {
    background-size: cover;
    background-position: center;
}

/* Carousel styles */
.slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .slide {
        min-width: 50%;
    }
}

/* Logo scroller */
.logo-scroller {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0));
}

.logo-scroller-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logo-scroller-track:hover {
    animation-play-state: paused;
}

.logo-item {
    height: 100px;
    /* width: 200px; */
    filter: grayscale(40%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

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

    100% {
        transform: translateX(calc(-200px * 8));
    }

    /* -200px is item width, 8 is half of items */
}

.team-card .team-photo {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
    filter: brightness(1);
}

.team-card .team-social {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
}

/* Styles for the persona tabs */
.persona-btn {
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    background-color: #f3f4f6;
    color: var(--dark);
}

.persona-btn:hover {
    background-color: #e5e7eb;
}

.persona-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}

.persona-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

/* Google Map Embed - Responsive container */
.map-container {
    overflow: hidden;
    padding-bottom: 36.25%;
    /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
}

.map-container iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}

.persona-content.active {
    display: block;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom multiselect styles */
.multiselect-container {
    position: relative;
}

.multiselect-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.multiselect-pill {
    display: flex;
    align-items: center;
    background-color: #e0e7ff;
    color: #3730a3;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.multiselect-pill button {
    margin-left: 0.5rem;
    color: #4f46e5;
}

.program-card-onboarding {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Custom Select2 Styles */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    padding: 0.25rem;
    min-height: 42px;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    height: 42px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0.75rem;
    padding-right: 2rem;
    color: #111827;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e0e7ff;
    border-color: #c7d2fe;
    color: #4338ca;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #4f46e5;
    margin-right: 0.5rem;
}

.select2-dropdown {
    border-color: #D1D5DB;
    border-radius: 0.375rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: #D1D5DB;
}

/* Custom Tagsinput styles */
.bootstrap-tagsinput {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    line-height: 2.25;
    /* Adjusted for better vertical alignment */
}

.bootstrap-tagsinput:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.bootstrap-tagsinput .tag {
    background-color: #e0e7ff;
    border-color: #c7d2fe;
    color: #4338ca;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

.bootstrap-tagsinput .tag [data-role="remove"] {
    margin-left: 0.5rem;
    color: #4f46e5;
    cursor: pointer;
}

.bootstrap-tagsinput .tag [data-role="remove"]:after {
    content: "x";
}

.program-card-onboarding:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.partner-logo {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.product-card,
.opportunity-card {
    transition: all 0.3s ease;
}

.product-card:hover,
.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: slideIn 0.3s ease-out;
}

/* New class to stop background scroll */
.modal-open {
    overflow: hidden;
}

/* @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    } */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
    z-index: 1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #fff;
    border: 4px solid var(--primary);
    border-radius: 9999px;
    z-index: 2;
}

.mentor-card img {
    transition: transform 0.3s ease;
}

.mentor-card:hover img {
    transform: scale(1.05);
}

.opportunity-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.deal-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}