body {
  /* For macOS Safari and Chrome */
  -webkit-font-smoothing: antialiased;
  /* For macOS Firefox */
  -moz-osx-font-smoothing: grayscale;
}

/* Active style for navigation links */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link.show {
    color: #EFD13C !important;
    font-weight: 600;
    position: relative;
}

.white-tab {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 370px;
    text-align: center;
    padding: 23px 38px 9px;
    border-radius: 36px 36px 0 0;
    font-size: 20px;
}

.grey-tab {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e5ecef;
    padding: 10px 40px;
    border-radius: 20px 20px 0 0;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.main-footer {
    background-color: #434B4E;
    border-radius: 40px 40px 0 0;
    margin-top: -40px; /* Pulls footer up slightly over the banner if needed */
    position: relative;
    z-index: 2; /* Ensures it sits above the image section */
    overflow: hidden; /* <--- CRITICAL: Prevents children from clipping outside corners */
}

.blue-tab {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #115985;
    padding: 10px 40px;
    border-radius: 20px 20px 0 0;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.icon-hover-animate:hover {transform: scale(1.08);}
.swiper-button-lock {display: flex !important;opacity: 0.35;cursor: not-allowed;}
.d-icon {height:80px;width:80px;}
.footer-text-link {text-decoration: underline;text-underline-offset: 2px;}
.wideImageSection img {width:100%;}
.w-90 {width: 90% !important;}
.topcontentblock {margin-top:-2rem!important;padding:0;padding-bottom: 3rem;}
.subpagebuttons {padding-top:2rem;}
i.text-dark {color:#000!important;}
.img-content {border-radius:20px;}
.fs-large {font-size:1.2rem;}
.bg-warning {--bs-bg-opacity: 1;background-color: var(--staatsolie-yellow) !important;}
.rte {/*font-size:18px;*/}
/*.small {font-size:16px;}*/
.bg-white .rte, bg-grey .rte, .bg-offwhite .rte {color:var(--color-offblack) !important;}
.textBottom {font-style:italic;/*font-size:18px;*/}
.subheading {font-size:16px;}
.dropdown-menu[data-bs-popper]{left: -80px;}
.download-name {font-weight: 600 !important;color: var(--staatsolie-blue) !important;font-size: 1.4rem;}
.download-link {color: var(--staatsolie-blue) !important;}

.navbar-toggler-icon {background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");}
.site-header {padding: 10px 0 30px;}
.dropdown-item {font-weight: 600;color: var(--staatsolie-blue);}
.dropdown-menu {padding-top:20px;padding-bottom:20px;}

/* Custom Mega Dropdown Styles */
.custom-mega-dropdown {
    width: 480px;
    padding: 1.5rem;
    border-radius: 18px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    margin-top: 12px !important;
}

/* Caret Arrow at top of menu */
.custom-mega-dropdown .dropdown-arrow {
    position: absolute;
    top: -5px;
    left: 110px; /* Adjust alignment according to nav text position */
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    transform: rotate(45deg);
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
}

/* Typography */
.dropdown-title {color: #1b5b88;font-weight: 600;font-size: 1.1rem;margin-bottom: 0.25rem;}
.dropdown-title .mega-dropdown-link {font-size: 1.1rem;}
.dropdown-subtitle {color: #555555;font-size: 0.85rem;margin-bottom: 1rem;line-height: 1.3;}
/* Yellow Vertical Separator */
.border-end-yellow {border-right: 2px solid #efd13f !important;}
/* Right Navigation Links */
.mega-dropdown-link {color: #1b5b88;font-weight: 600;font-size: 0.9rem;text-decoration: none;transition: color 0.2s ease-in-out;}
.mega-dropdown-link:hover {color: #0d3b5b;}
/* Image Card & Overlay Icon */
.card-image-wrapper {position: relative;overflow: hidden;border-radius: 12px;}
.card-image-wrapper img {object-fit: cover;display: block;}
.play-overlay-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 100%;
    background-color: #236c53; /* Dark green corner accent */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
}
.legal-link:not(:last-child)::after {content: " / ";margin: 0 4px;color: inherit; /* Adjust color if needed */}
.dropdown-toggle::after {margin-left: .1em;}
.nav-blue .dropdown-toggle::after, .nav-green .dropdown-toggle::after, .nav-lightblue .dropdown-toggle::after, .nav-black .dropdown-toggle::after {color: var(--white) !important;}
.icon-link {text-decoration:none;}
.bg-blue .icon-link {color:#fff;}
.custom-table {background-color: #ffffff;border-collapse: separate;border-spacing: 0;width: 100%;}
/* Yellow Header Row */
.custom-table thead tr {background-color: #ffe600;}

.custom-table th {
  color: #000000;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 20px;
  border: none !important;
  text-align: left;
}

/* Table Body Rows */
.custom-table tbody tr {border-bottom: 1px solid #cccccc;}
/* Remove bottom border on last row if preferred, otherwise keep for clean frame */
.custom-table tbody tr:last-child {border-bottom: 1px solid #cccccc; }
.custom-table td {color: #1a1a1a;font-size: 0.95rem;padding: 16px 20px;border: none;background-color: #ffffff;}

/* Stacked Images Layout */
.stacked-images-container {position: relative;padding-bottom: 25%;padding-left: 20%;}
.main-image-wrapper {position: relative;width: 100%;z-index: 1;}
.main-image-wrapper img {width: 100%;height: auto;object-fit: cover;}
.overlap-image-wrapper {position: absolute;bottom: 20px;left: 25px;width: 40%;z-index: 2;}
.overlap-image-wrapper img {width: 100%;height: auto;object-fit: cover;border-radius: 10px !important;border-width: 5px !important;}

.main-footer .footer-nav-links a:hover {
    color: var(--color-yellow);
}

.product-carousel-item {width: 100%;}


/* Mobile responsive tuning */
@media (min-width: 992px) {

    .custom-topleft-radius {border-top-left-radius: 90px;}
    .img-bottom-right-rounded{border-bottom-right-radius:300px;}
    .img-bottom-left-rounded {border-bottom-left-radius: 300px;}
    .stacked-images-container {padding-bottom: 30%;padding-left: 15%;margin-top: 2rem;}
    .tab-indicator {min-width: 370px;}
    .imageHeading h2 {font-weight:400!important;font-size: 2.5rem;}
    .product-carousel-item {width: calc((100% - 1rem) / 3); /* Accounts for the gap-3 spacing between 3 items */}

}


@media (min-width: 768px) {

    .display-6 {font-size: 2.2rem;}
    .w-md-80 {width: 80% !important;}
    .rounded-md-pill {border-radius: 100px !important;}

}

/* Target mobile devices */
@media (max-width: 768px) {

    .site-header {padding-top:6px;padding-bottom:6px;}
    .brand-logo {padding:6px;}
    /* 1. Remove padding from the outer container on mobile */
    .hero-wrap .container {padding-left: 0 !important;padding-right: 0 !important;}
    /* 2. Ensure the card fills the available space */
    .hero-card {width: 100%;margin: 0;border-radius:0;}
    /* 3. Force the image to span edge-to-edge */
    .hero-card img {width: 100%;max-width: 100%;display: block;object-fit: cover; /* Keeps aspect ratio clean */}
    .hero-wrap {padding: 0 0 20px;}

    .section {
        margin-top: -4rem; /* Optional: smaller negative offset on mobile so it doesn't overlap too much */
        padding-bottom: 8rem; /* Reduced from 12rem */
    }
    .section .container {
        padding-top: 2rem!important;
    }

    /* Hero Image Curve on Mobile */
    .hero-curved-image {
        width: 100%;
        height: 240px;
        object-fit: cover;
        border-top-left-radius: 40px;
        border-top-right-radius: 0;
    }

    /* Horizontal Pill Scroll */
    .nav-pills-scroll {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .nav-pills-scroll::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .intro-label {
        font-size: 24px;
    }

    .navbar-nav .nav-link {
      font-size: 18px;
    }

}

@media (max-width: 991.98px) {
    /* Reset dropdown container styling on mobile */
    .custom-mega-dropdown {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        width: 100% !important;
        position: static !important; /* Forces static flow within mobile nav */
        padding-left: 1rem;          /* Indent sub-items slightly */
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Style the sub-links to match mobile text color */
    .custom-mega-dropdown .dropdown-item {
        background-color: transparent !important;
        color: #000;
        font-weight: 600;
        padding: 0.5rem 0;
    }

    .custom-mega-dropdown .dropdown-item:hover,
    .custom-mega-dropdown .dropdown-item:focus {
        background-color: transparent !important;
        text-decoration: underline;
    }

    .nav-green .custom-mega-dropdown .dropdown-item, .nav-blue .custom-mega-dropdown .dropdown-item {color: #fff;}

}


