:root {
    --bs-primary-rgb: 36, 122, 177;
    /* --bs-btn-color: #247ab1;
    --bs-btn-border-color: #247ab1;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #247ab1;
    --bs-btn-hover-border-color: #247ab1;
    --bs-btn-focus-shadow-rgb: 36, 122, 177;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #247ab1;
    --bs-btn-active-border-color: #247ab1;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #247ab1;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #247ab1;
    --bs-gradient: none; */
}

body {
    background-color: #eaf4fb;
    color: #212529; /* Default text color */
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}
a {
    color: rgb(36, 122, 177);
}
.navbar {
    background-color: #fff !important; /* Ensure navbar is white */
    border-bottom: 1px solid #dee2e6; /* Subtle border */
}
main {
    margin-top: 77px;
    min-height: calc(100vh - 150px);
}
.main {
    min-height: calc(100vh - 150px);
}
@media only screen and (max-width:991px) {
    .hero {
        margin-top: 50px;
    }
}
.hero-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.hero-headline {
    font-size: 3.5rem; /* Large headline */
    font-weight: 700;
    color: #247ab1; /* Primary blue */
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #495057; /* Slightly muted text */
}
.btn-primary {
    background-color: #247ab1; /* Primary blue */
    border-color: #247ab1;
}
.btn-primary:hover {
    background-color: #1f6794; /* Primary blue */
}
.btn-primary:active {
    background-color: #1f6794; /* Primary blue */
}
.btn-outline-primary {
    border-color: #247ab1;
    color: #247ab1;;
}
.btn-outline-primary:hover {
    border-color: #1f6794;
    background-color: #1f6794; /* Primary blue */
}
.btn-outline-primary:active {
    border-color: #1f6794;
    background-color: #1f6794; /* Primary blue */
}
.feature-icon {
    font-size: 2.5rem;
    color: #247ab1; /* Primary blue */
    margin-bottom: 1rem;
}
.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}
.feature-description {
    color: #6c757d; /* Gray text */
}

.fit-card {
    height: fit-content;
}
.fit-card label {
    font-weight: 500;
}
.fit-card input[type=text],
.fit-card input[type=password],
.fit-card input[type=email] {
    min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-radius: var(--bs-border-radius-lg);
}

.fit-card input[type=text]::placeholder {
  opacity: 0.5;
}

.fit-card .form-check-input:checked {
    border-color: #247ab1;
    background-color: #247ab1;
}

.card .monthly-price > small,
.card .yearly-price > small {
    font-size: 0.5em;
}

.card .subscribe-btn {
    width: 235px;
    max-width: 100%;
}

.max-md {
    max-width: 960px;
}

.bi-bluesky {
    color: #007bff;
}

.bi-linkedin {
    color: #0077B5;
}

.footer {
    background-color: #f8f9fa; /* Light gray background for footer */
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid #dee2e6;
}
.footer a {
    color: #6c757d;
    text-decoration: none;
}
.footer a:hover {
    color: #247ab1; /* Blue on hover */
}
.footer .col-md-4 {
    min-width: 0;
}
.footer .col-md-4 span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fixed footer for pages with sidebar */
.main:has(.has-sidebar) ~ .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 0;
}

/* Adjust main content padding when footer is fixed */
.main:has(.has-sidebar) {
    padding-bottom: 73px; /* Space for fixed footer */
}

@media (max-width: 767.98px) {
    /* On mobile, footer flows naturally with content */
    .main:has(.has-sidebar) ~ .footer {
        position: static;
    }
    
    .main:has(.has-sidebar) {
        padding-bottom: 0; /* No extra padding needed on mobile */
    }
}
.placeholder-animation {
    /* background-color: #e9ecef; */
    height: 300px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
    border-radius: 0.375rem; /* Match Bootstrap's border-radius */
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-headline {
        font-size: 2.8rem;
    }
    .hero-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
        text-align: center;
    }
    .placeholder-animation {
        margin-top: 2rem;
        height: 250px;
    }
    .email-form {
       justify-content: center;
    }
}
 @media (max-width: 767.98px) {
    .hero-headline {
        font-size: 2.2rem;
    }
     .hero-subtitle {
        font-size: 1.1rem;
    }
     .footer .d-flex {
        flex-direction: column;
        align-items: center;
    }
    .footer .nav {
        margin-top: 1rem;
        margin-bottom: 1rem;
         justify-content: center !important;
    }
     .footer .text-end {
         text-align: center !important;
     }
}

.nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.45rem 0.75rem;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    margin-bottom: 0.1rem;
}

.nav-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.nav-link:hover {
    color: #247ab1;
    background-color: rgba(36, 122, 177, 0.08);
    transform: translateX(2px);
}
#navbarNav .nav-link.active, .left-nav .nav-link.active {
    color: #ffffff;
    background-color: #247ab1;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(36, 122, 177, 0.2);
}
#navbarNav .nav-link.active:hover, .left-nav .nav-link.active:hover {
    color: #ffffff;
    background-color: #1f6794;
    transform: translateX(2px);
}
.nav-link .nav-icon {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}
.nav-link.active .nav-icon {
    color: #ffffff;
}

#navbarNav .nav-item, .left-nav .nav-item {
    padding-top: 0px;
}

#navbarNav .nav-item .nav-link, .left-nav .nav-item .nav-link {
    font-size: 0.85rem;
}
#navbarNav .nav-item .nav-link.active, .left-nav .nav-item .nav-link.active {
    font-weight: 600;
}

/* Section Headers */
.nav-section-header {
    color: #6c757d;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.75rem 0.35rem 0.75rem;
    margin-top: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* First section header - no top margin */
.nav-item:nth-child(2) .nav-section-header {
    margin-top: 0.15rem;
}

/* Spacer to push items to bottom */
.nav-spacer {
    flex: 1;
    min-height: 20px;
}

/* Dropup menu styling */
.left-nav .settings-dropup .dropdown-menu {
    margin-bottom: 0.5rem;
    border-radius: 0.4rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: calc(100% - 20px);
    left: 10px;
    right: auto;
}

.left-nav .settings-dropup .dropdown-item {
    padding: 0.45rem 0.75rem;
    color: #495057;
    font-size: 0.85rem;
    transition: all 0.2s ease-in-out;
    border-radius: 0.3rem;
    margin: 0.1rem 0.4rem;
    width: calc(100% - 10px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.left-nav .settings-dropup .dropdown-item:hover {
    color: #247ab1;
    background-color: rgba(36, 122, 177, 0.08);
    transform: translateX(2px);
}

.left-nav .settings-dropup .dropdown-item.active {
    color: #ffffff;
    background-color: #247ab1;
    font-weight: 600;
}

.left-nav .settings-dropup .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
}

/* User account dropdown styling (navbar) */
.navbar .dropdown-menu {
    border-radius: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
    right: -15px;
}

.navbar .dropdown-item,
.navbar .dropdown-item button {
    padding: 0.45rem 0.75rem;
    color: #495057;
    font-size: 0.85rem;
    transition: all 0.2s ease-in-out;
    border-radius: 0.3rem;
    margin: 0.1rem 0.4rem;
    border: none;
    background: none;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item button:hover {
    color: #247ab1;
    background-color: rgba(36, 122, 177, 0.08);
    transform: translateX(2px);
}

.navbar .dropdown-item:active,
.navbar .dropdown-item.active,
.navbar .dropdown-item button:active {
    color: #ffffff;
    background-color: #247ab1;
    font-weight: 600;
}

.navbar .dropdown-item:focus,
.navbar .dropdown-item button:focus {
    outline: none;
    color: #247ab1;
    background-color: rgba(36, 122, 177, 0.08);
}

.navbar .dropdown-divider {
    margin: 0.5rem 0.4rem;
}

.left-nav {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 0.85rem;
    min-height: calc(100vh - 151px);
    max-height: calc(100vh - 151px);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid #e0e3e5;
    position: sticky;
    top: 77px;
}

.left-nav::-webkit-scrollbar {
    width: 6px;
}

.left-nav::-webkit-scrollbar-track {
    background: transparent;
}

.left-nav::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.left-nav::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Make nav flex column with proper spacing */
.left-nav .nav {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Mobile specific styles */
@media (max-width: 767.98px) {
    #navbarNav .nav-link {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.15rem;
        font-size: 0.85rem;
    }
    
    #navbarNav .nav-section-header {
        padding: 0.85rem 0.75rem 0.35rem 0.75rem;
        font-size: 0.7rem;
    }
    
    #navbarNav .nav-spacer {
        display: none;
    }
    
    /* Enable scrolling for mobile navbar */
    #navbarNav {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Custom scrollbar for mobile */
    #navbarNav::-webkit-scrollbar {
        width: 4px;
    }
    
    #navbarNav::-webkit-scrollbar-track {
        background: transparent;
    }
    
    #navbarNav::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 10px;
    }
    
    #navbarNav::-webkit-scrollbar-thumb:hover {
        background: #a0aec0;
    }
    
    /* Adjust navbar collapse padding */
    .navbar-collapse {
        padding-bottom: 1rem;
    }
}