:root {
    --primary-color: #255a8c; /* Updated Primary Blue */
    --secondary-color: #1a4064; /* Darker Blue for gradient */
    --bs-primary-rgb: 37, 90, 140;
    --bs-link-color-rgb: 37, 90, 140;
    --bs-link-hover-color-rgb: 26, 64, 100;
    --max-width: 1000px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden; /* Prevent horizontal scroll from skew */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.btn-outline-light:hover {
    color: var(--primary-color);
}

.btn-primary:active,
.btn-primary.active,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* Sticky Header */
.navbar {
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 1.5rem 0;
}

.navbar-brand:focus, .navbar-brand:hover {
    color: white;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(75px);
}

body.has-subnav .navbar.scrolled {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-link {
    color: #555 !important;
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color) !important;
}

.navbar.scrolled .btn-nav-highlight {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.navbar.scrolled .btn-nav-highlight:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    letter-spacing: -0.5px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.nav-link:focus {
    color: rgba(255, 255, 255, 0.95);
}

.nav-link:hover {
    color: white;
}

/* Highlighted Nav Item */
.btn-nav-highlight {
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 0.5rem 1.2rem !important;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-highlight:hover {
    background-color: white;
    color: var(--primary-color) !important;
    border-color: white;
}

/* Jumbotron / Hero / Topbar */
.hero-section, .topbar {
    position: relative;
    padding: 80px 0 150px 0;
    color: white;
    z-index: 1;
}

@media (max-width: 991px) {
    .hero-section {
        padding-top: 40px;
    }
}

.topbar {
    position: absolute;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    padding-top: 49px;
    padding-bottom: 49px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-background {
    position: absolute;
    top: -50%; /* Start way above to cover any bounce/scroll */
    left: 0;
    width: 100%;
    height: 150%; /* Extend way down */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: skewY(-3deg);
    transform-origin: top left;
    z-index: -1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem 0.5rem 1rem;
    position: relative;
    z-index: 2;
}

.product-card {
    border: none;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    background: white;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 2.5rem;
}

/* Integration Visuals */
.integration-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.integration-logo {
    height: 64px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-card:hover .integration-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #1a4064;
    border-color: #1a4064;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 90, 140, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Logo placeholder style */
.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-icon {
    background: var(--primary-color);
    color: white;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    padding: 10px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    position: relative;
    background-color: #2b3035; /* Dark-ish grey */
    color: #f8f9fa;
    margin-top: 8rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
    z-index: 1;
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 2rem;
    }
}

@media (max-width: 1200px) {
    .site-footer {
        margin-top: 4rem;
    }
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15vw;
    background-color: #2b3035;
    transform: skewY(-3deg);
    transform-origin: top left;
    z-index: -1;
}

.site-footer h5, .site-footer h6 {
    color: #ffffff;
}

.site-footer .footer-brand {
    color: #ffffff !important;
}

.site-footer p, .site-footer li {
    color: #adb5bd !important;
}

.site-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Support Section */
.support-section {
    background-color: #fff;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-left: 5px solid var(--primary-color);
}

/* Reviews Section */
.reviews-section {
    margin-top: 4rem;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.review-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Sub-menu styles */
.sub-nav {
    position: sticky;
    top: 0; /* Height of main navbar */
    z-index: 999;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.sub-nav.is-stuck {
    background-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #eee;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(75px);
}

.sub-nav .nav-pills .nav-link {
    color: #555;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    background: transparent !important;
}

.sub-nav .nav-pills .nav-link:hover,
.sub-nav .nav-pills .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

/* Scroll margin for sections to offset sticky headers */
#highlights, #features, #pricing, #reviews, #support {
    scroll-margin-top: 140px;
}

/* Essential Info Card */
.essential-info-card {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #eee;
}

/* Feature Card */
.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-img,
.feature-img-placeholder{
    width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: #f0f0f1;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.feature-img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    margin-bottom: 1.5rem;
}

/* Pricing Card */
.pricing-card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem 0;
}

.pricing-price span {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 400;
}

.imgblock {
    display: inline-block;
    background-color: white;
    max-width: 100%;
}

.imgblock img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.news-page main h1 {
    text-align: center;
}

.news-list li {
    margin-bottom: 1.5rem;
}

main h1, h2, h3 {
    font-weight: bold;
}

main h1 {
    margin: 2rem 0;
}

main h2 {
    margin: 1.5rem 0;
}

main h3 {
    margin: 1.2rem 0;
}

/* Custom alert style matching site color scheme */
.alert-info-custom {
    background-color: #e3f2fd;
    color: #255a8c;
    border: 1px solid #255a8c;
}

.alert-info-custom a {
    color: #255a8c;
    text-decoration: underline;
    font-weight: bold;
}

.alert-info-custom a:hover {
    color: #1a4569;
}

/* Start collapsed image block */
.collapsed-img-wrapper {
    transition: max-height 0.5s ease-in-out, box-shadow 0.3s ease-in-out;
    max-height: 650px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 -4px 20px -4px rgba(0, 0, 0, 0.1), -4px 0 20px -4px rgba(0, 0, 0, 0.1), 4px 0 20px -4px rgba(0, 0, 0, 0.1);
}

.collapsed-img-wrapper.collapsed {
    box-shadow: 0 -4px 20px -4px rgba(0, 0, 0, 0.1),
    -4px 0 20px -4px rgba(0, 0, 0, 0.1),
    4px 0 20px -4px rgba(0, 0, 0, 0.1);
}

.collapsed-img-wrapper.expanded {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.collapsed-img-fade {
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0) 0%, rgba(248, 249, 250, 0.7) 40%, rgba(248, 249, 250, 0.95) 70%, rgba(248, 249, 250, 1) 100%);
    pointer-events: none;
}

.collapsed-img-wrapper img {
    transition: transform 0.3s ease;
}

.collapsed-img-wrapper .toggle-btn-wrapper {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

/* End collapsed image block */