/**
* Contains:
Index for multimedia elements
Timeline for about us page
Center responsive images
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/


a.index-item {
    width: 100%;
    font-size: 20px;
    border: solid 2px;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

a.index-item:hover {
    font-weight: bolder;
}

/*--------------------------------------------------------------
# Responsive font in hero section
--------------------------------------------------------------*/

#hero h1 {
    margin: 0 0 10px 0;
    font-size: 24px; /* Mobile first - smaller size */
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
}

#hero h2 {
    color: #eee;
    margin-bottom: 50px;
    font-size: 18px; /* Smaller on mobile */
}

/* Tablet and up */
@media (min-width: 768px) {
    #hero h1 {
        font-size: 35px;
        line-height: 1.3;
    }

    #hero h2 {
        font-size: 20px;
    }
}

/* Desktop and up */
@media (min-width: 992px) {
    #hero h1 {
        font-size: 43px;
        line-height: 53px;
    }

    #hero h2 {
        font-size: 22px;
    }
}

/*--------------------------------------------------------------
# Change buttons hero
--------------------------------------------------------------*/

#hero .btn-get-started {
    font-size: 18px;
    margin: 25px;
}

/*--------------------------------------------------------------
# button in dark turquoise for video
--------------------------------------------------------------*/

.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:visited {
    background-color: #028A8C !important;
    border-color: #53D3C5 !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary {
    color: #fff;
    background-color: #84EFD8 !important;
    border-color: #53D3C5 !important;
}


a.index-item2 {
    width: 100%;
    font-size: 15px;
    border: solid 1px;
    display: block;
    padding: 3px;
    padding-left: 11px;
    border-radius: 5px;
}

a.index-item2:hover {
    font-weight: bolder;
}

/*--------------------------------------------------------------
# sidebar for FAQ and multimedia elements
--------------------------------------------------------------*/

/* The Dewi template sets section { overflow: hidden } which breaks position: sticky.
   Pages with a fixed sidebar must add this class to their <section> to restore it. */
.has-sticky-sidebar {
    overflow: visible;
}

.fixed-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: #f4fafa;
    border: 1px solid #6ec7ba;
    border-radius: 8px;
    padding: 1rem 1.2rem;
}

.fixed-sidebar h3 {
    color: #028a8c;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8em;
}

.fixed-sidebar p {
    margin-bottom: 0.15em;
}

.fixed-sidebar a.index-item2 {
    display: block;
    padding: 0.35em 0.6em;
    border-radius: 5px;
    color: #028a8c;
    font-size: 0.97rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.fixed-sidebar a.index-item2:hover {
    background: #028a8c;
    color: #fff;
}

.fixed-sidebar-target {
    padding-top: 200px;
    margin-top: -200px;
}


/*--------------------------------------------------------------
# timeline for about us page
--------------------------------------------------------------*/
.timeline {
    list-style: none;
    position: relative;
}

.timeline:before {
    top: 30px;
    bottom: 25px;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #ccc;
    left: 25px;
    margin-right: -1.5px
}

.timeline > li, .timeline > li > .timeline-panel {
    margin-bottom: 5px;
    position: relative
}

.timeline > li:after, .timeline > li:before {
    content: " ";
    display: table
}

.timeline > li:after {
    clear: both
}

.timeline > li > .timeline-panel {
    margin-left: 55px;
    top: 19px;
    padding: 4px 10px 8px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.timeline > li > .timeline-badge {
    color: #fff;
    width: 36px;
    height: 36px;
    line-height: 36px;
    font-size: 1.2em;
    text-align: center;
    position: absolute;
    top: 26px;
    left: 9px;
    margin-right: -25px;
    background-color: #fff;
    z-index: 100;
    border-radius: 50%;
    border: 1px solid #d4d4d4
}

.timeline > li.timeline-inverted > .timeline-panel {
    float: left
}

.timeline > li.timeline-inverted > .timeline-panel:before {
    border-right-width: 0;
    border-left-width: 15px;
    right: -15px;
    left: auto
}

.timeline > li.timeline-inverted > .timeline-panel:after {
    border-right-width: 0;
    border-left-width: 14px;
    right: -14px;
    left: auto
}

.timeline-badge.primary {
    background-color: #2e6da4 !important
}

.timeline-badge.success {
    background-color: #3f903f !important
}

.timeline-badge.warning {
    background-color: #f0ad4e !important
}

.timeline-badge.danger {
    background-color: #d9534f !important
}

.timeline-badge.info {
    background-color: #5bc0de !important
}

.timeline-title {
    margin-top: 0;
    color: inherit
}

.timeline-body > p, .timeline-body > ul {
    margin-bottom: 0;
    margin-top: 0
}

.timeline-body > p + p {
    margin-top: 5px
}

.timeline-badge > .glyphicon {
    margin-right: 0px;
    color: #fff
}

.timeline-body > h4 {
    margin-bottom: 0 !important
}

/*--------------------------------------------------------------
# center responsive images
--------------------------------------------------------------*/
.img-responsive {
    margin-left: auto !important;
    margin-right: auto !important;
}

/*--------------------------------------------------------------
# to change link-colour on the tabbed table
--------------------------------------------------------------*/
.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #028a8c;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/

.team .member .member-info {
    bottom: -58px;
}

/*--------------------------------------------------------------
# Use Nubart colors for the collpased items (FAQ)
--------------------------------------------------------------*/

.accordion-button {
    font-weight: bold;
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    background-color: #53D3C5;
    box-shadow: inset 0 -1px 0 rgb(0 0 0 / 13%);
}

.accordion-button:focus {
    z-index: 3;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(132 240 216 / 25%);
}

/*--------------------------------------------------------------
# Use Nubart's dark turquoise as primary
--------------------------------------------------------------*/

a {
    color: #028A8C;
    text-decoration: none;
}

:root {
    --bs-primary: #028a8c;
}

/* Optional: Adjust hover and active colors for buttons and links */
.btn-primary {
    background-color: #028a8c;
    border-color: #028a8c;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #026e6d;
    border-color: #026e6d;
}

a {
    color: #028a8c;
}

a:hover,
a:focus {
    color: #026e6d;
}


/*--------------------------------------------------------------
# Adapts former "testimonial images" for a customer-slider
--------------------------------------------------------------*/

.testimonials .testimonial-item .testimonial-img {
    width: 50px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.15);
    margin: 0 auto;
}

/*--------------------------------------------------------------
# change dark transparent overlay in hero section to make it lighter
--------------------------------------------------------------*/
#hero:before {
    content: "";
    background: rgba(13, 20, 26, 0.5);
}


/*--------------------------------------------------------------
# Change background color logo-line of clients - Nubart Sync
--------------------------------------------------------------*/

.clients {
    background: #85DDD3;
    padding: 40px 0;
    overflow: hidden;
}

/*--------------------------------------------------------------
# Timeliner - In demo audio-video
--------------------------------------------------------------*/
/* The actual timeline (the vertical ruler) */
.main-timeline-4 {
    position: relative;
}

/* The actual timeline (the vertical ruler) */
.main-timeline-4::after {
    content: "";
    position: absolute;
    width: 3px;
    background-color: #bbb;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.timeline-4 {
    position: relative;
    background-color: inherit;
    width: 50%;
}

/* The circles on the timeline */
.timeline-4::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -11px;
    background-color: #bbb;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left-4 {
    padding: 0px 40px 20px 0px;
    left: 0;
}

/* Place the container to the right */
.right-4 {
    padding: 0px 0px 20px 40px;
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left-4::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    right: 30px;
    border: medium solid rgba(3, 138, 141, 1);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent rgba(3, 138, 141, 1);
}

/* Add arrows to the right container (pointing left) */
.right-4::before {
    content: " ";
    position: absolute;
    top: 18px;
    z-index: 1;
    left: 30px;
    border: medium solid rgba(3, 138, 141, 1);
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(3, 138, 141, 1) transparent transparent;
}

/* Fix the circle for containers on the right side */
.right-4::after {
    left: -14px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {
    /* Place the timelime to the left */
    .main-timeline-4::after {
        left: 31px;
    }

    /* Full-width containers */
    .timeline-4 {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .timeline-4::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .left-4::after,
    .right-4::after {
        left: 18px;
    }

    .left-4::before {
        right: auto;
    }

    /* Make all right containers behave like the left ones */
    .right-4 {
        left: 0%;
    }
}

.gradient-custom {
    /* fallback for old browsers */
    background: #6a11cb;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(
            to right,
            rgba(82, 210, 197, 1),
            rgba(2, 138, 140, 45)
    );

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(
            to right,
            rgba(82, 210, 197, 1),
            rgba(2, 138, 140, 45)
    );
}

.gradient-custom-4 {
    /* fallback for old browsers */
    background: #f093fb;

    /* Chrome 10-25, Safari 5.1-6 */
    background: -webkit-linear-gradient(
            to left,
            rgba(82, 210, 197, 1),
            rgba(2, 138, 140, 45)
    );

    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background: linear-gradient(
            to left,
            rgba(82, 210, 197, 1),
            rgba(2, 138, 140, 45)
    );
}

/*--------------------------------------------------------------
# Make some images zoom out
--------------------------------------------------------------*/

.hover {
    transition: all 0.3s;
}

.hover:hover {
    transform: scale(1.15);
}

/*--------------------------------------------------------------
# Change buttons hero
--------------------------------------------------------------*/

#hero .btn-get-started {
    font-size: 18px;
    margin: 25px;
}


/*--------------------------------------------------------------
# Pricing bootstrap https://ordinarycoders.com/blog/article/bootstrap-pricing-table-example
--------------------------------------------------------------*/

.card {
    border: none;
    padding: 10px 25px;
}

.card::after {
    position: absolute;
    z-index: -1;
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    transform: scale(1.02, 1.02);
    -webkit-transform: scale(1.02, 1.02);
    backface-visibility: hidden;
    will-change: transform;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .75) !important;
}

.card-static:hover {
    transform: none !important;
    -webkit-transform: none !important;
    box-shadow: none !important;
}

.card:hover::after {
    opacity: 1;
}

.card:hover .btn-outline-primary {
    color: white;
    background: #007bff;
}

/*--------------------------------------------------------------
# Padding in section (Gabriele's wish)
--------------------------------------------------------------*/
section {
    padding: 80px 0;
    overflow: hidden;
}

/*--------------------------------------------------------------
# Letters in circle (for a, b and c options)
--------------------------------------------------------------*/
.i-circle {
    display: inline-block;
    background-color: #ff0000;
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    line-height: 30px; /* set to same size as width, height */
    width: 30px;
    height: 30px;
    text-align: center;
}

/*--------------------------------------------------------------
# change color header
--------------------------------------------------------------*/

#header.header-scrolled, #header.header-inner-pages {
    background: #028A8C;
    padding: 10px 0;

}

/*-------------------------------------------------------------
# special font size and line for BLOG
--------------------------------------------------------------*/

.nubart-blog {
    line-height: 1.6em;
    font-size: 18px;
}

.nubart-blog-author {
    line-height: 1.6em;
    font-size: 16px;
    color: #028a8c;
}

/* H2 section headings — turquoise left border */
.nubart-blog h2 {
    border-left: 4px solid #6ec7ba;
    padding-left: 0.6em;
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

/* H3 sub-headings — subtle turquoise tint */
.nubart-blog h3 {
    color: #028a8c;
    margin-top: 1.4em;
}

/* Table of Contents — contained nav box (all language variants) */
.nubart-blog nav[aria-label="Table of contents"],
.nubart-blog nav[aria-label="Inhaltsverzeichnis"],
.nubart-blog nav[aria-label="Índice de contenidos"],
.nubart-blog nav[aria-label="目次"] {
    background: #f4fafa;
    border: 1px solid #6ec7ba;
    border-radius: 6px;
    padding: 1em 1.4em;
    display: inline-block;
    min-width: 280px;
}

.nubart-blog nav[aria-label="Table of contents"] h2,
.nubart-blog nav[aria-label="Inhaltsverzeichnis"] h2,
.nubart-blog nav[aria-label="Índice de contenidos"] h2,
.nubart-blog nav[aria-label="目次"] h2 {
    border-left: none;
    padding-left: 0;
    margin-top: 0;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #028a8c;
}

/* Summary block — highlighted closing box */
.nubart-blog .summary-block {
    background: #f4fafa;
    border-left: 4px solid #028a8c;
    border-radius: 0 6px 6px 0;
    padding: 1.2em 1.5em;
    margin-top: 2em;
}

/* Figure captions — smaller and lighter */
.nubart-blog figcaption {
    font-size: 0.85em;
    color: #6c757d;
    font-style: italic;
    margin-top: 0.3em;
}

/* Table header — automatic turquoise, no class needed */
.nubart-blog table thead th {
    background-color: #6dc7b9 !important;
    color: #fff !important;
}

/* Inline links — Nubart turquoise */
.nubart-blog a {
    color: #028a8c;
}

.nubart-blog a:hover {
    color: #026e6d;
}

/*--------------------------------------------------------------
# Make secondary navigation bar in the upper menu sticky with primary navigation bar
--------------------------------------------------------------*/
/* Main header and its dropdowns */


/* Main header */
#header {
    transition: all 0.5s ease-in-out;
    background: transparent;
    z-index: 1030; /* Keep header z-index high */
}

#header.scrolled {
    background: rgba(0, 0, 0, 0.9);
}

/* Dropdown menus in primary navigation */
#header .navbar .dropdown-menu {
    position: absolute; /* Ensure positioning relative to dropdown */
    z-index: 1050; /* Set this above secondary navigation */
}

/* Secondary navigation bar */
#secondary-nav {
    transition: all 0.3s ease-in-out;
    z-index: 1010; /* Base z-index when not sticky */
}

#secondary-nav.sticky {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1025; /* Set slightly below the primary dropdown menu */
}

/* Prevent content jump when nav becomes fixed */
#secondary-nav.sticky + * {
    margin-top: 56px;
}

/* Keep the secondary navbar at a consistent height whether or not it
   contains a .getstarted CTA button (padding+border on .getstarted adds
   ~20px vertical). Matches the button height for visual consistency. */
#secondary-menu-items {
    min-height: 41px;
}

/* Change color Bootstrap table header color class  */
.nubart-header th {
   background-color: #6dc7b9 !important;
    color: #fff !important;
 }

/* Remove thick black line below table headers  */
 .table > :not(:first-child) {
   border-top: 0 !important;
 }

/*--------------------------------------------------------------
# Products Mega Menu - Custom Additions
--------------------------------------------------------------*/

/* Desktop Mega Menu Styles */
.navbar .dropdown ul {
    min-width: 320px;
    max-width: 400px;
}

/* Desktop product item layout */
.navbar .dropdown ul li a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    white-space: normal;
    justify-content: flex-start;
    text-align: left;
}

.navbar .dropdown ul li a:hover,
.navbar .dropdown ul li a:focus {
    background-color: #f8f9fa;
    color: #15222b;
}

/* Desktop icon styling */
.navbar .dropdown ul li a i.product-icon {
    font-size: 1.3em;
    color: #028a8c;
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 0;
}

/* Desktop product text layout */
.navbar .dropdown ul li a .product-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.navbar .dropdown ul li a .product-name {
    font-weight: 600;
    color: #15222b;
    margin-bottom: 4px;
    font-size: 0.95rem;
    line-height: 1.3;
    display: block;
}

.navbar .dropdown ul li a .product-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    display: block;
}

/* Mobile-specific: Simplified structure that works with your existing mobile nav */
@media (max-width: 991px) {
    /* Override your mobile nav styles for the products dropdown */
    .navbar-mobile .dropdown ul li a {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        white-space: normal;
        min-height: 60px;
    }

    /* Icon styling for mobile */
    .navbar-mobile .dropdown ul li a i.product-icon {
        font-size: 1.4em;
        color: #53D3C5;
        margin-right: 12px;
        margin-left: 0;
        flex-shrink: 0;
    }

    /* Product name and description layout for mobile */
    .navbar-mobile .dropdown ul li a .product-text {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .navbar-mobile .dropdown ul li a .product-name {
        font-weight: 600;
        color: #15222b;
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .navbar-mobile .dropdown ul li a .product-description {
        color: #6c757d;
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
    }

    /* Enhanced hover effect for mobile */
    .navbar-mobile .dropdown ul li a:hover,
    .navbar-mobile .dropdown ul li a:focus {
        background-color: #f8f9fa;
        border-left: 3px solid #53D3C5;
        padding-left: 17px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .navbar-mobile .dropdown ul li a {
        padding: 12px 18px;
        min-height: 56px;
    }

    .navbar-mobile .dropdown ul li a i.product-icon {
        font-size: 1.2em;
        margin-right: 10px;
    }

    .navbar-mobile .dropdown ul li a .product-name {
        font-size: 0.85rem;
    }

    .navbar-mobile .dropdown ul li a .product-description {
        font-size: 0.75rem;
    }
}

/*--------------------------------------------------------------
# Team Section - 5 Columns Layout
--------------------------------------------------------------*/
/* Desktop: 5 cards per row */
@media (min-width: 992px) {
    .team .row .col-lg-3 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Tablet: 3 cards per row */
@media (min-width: 768px) and (max-width: 991px) {
    .team .row .col-md-6 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Mobile: 2 cards per row for better spacing */
@media (max-width: 767px) {
    .team .row .col-lg-3,
    .team .row .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/*--------------------------------------------------------------
# Clients Carousel - Bootstrap 5 Carousel
--------------------------------------------------------------*/

/* Full-width container for clients section */
#clients .container {
    max-width: 100%;
    padding: 0;
}

/* Carousel styling */
#clientsCarousel {
    padding: 20px 0;
}

/* Carousel items - add min-height */
#clientsCarousel .carousel-item {
    min-height: 200px;
    padding: 20px 0;
}

/* Client logo container */
.client-logo {
    flex: 0 0 auto;
    text-align: center;
}

/* Client logo images */
.client-logo img {
    height: 160px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

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

/* Bootstrap carousel indicators positioning */
#clientsCarousel .carousel-indicators {
    position: relative;
    margin-top: 30px;
    margin-bottom: 0;
}

/* Indicator button styling */
#clientsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    border: none;
    opacity: 1;
}

#clientsCarousel .carousel-indicators button.active {
    background-color: #007bff;
}

#clientsCarousel .carousel-indicators button:hover {
    background-color: #0056b3;
}

/* ---- content-production: service levels tables ---- */
.component-section {
    margin-bottom: 2.5rem;
}
.component-header {
    background-color: #028a8c;
    color: white;
    padding: 10px 20px;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
    font-size: 17px;
}
.tier-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}
.tier-table th {
    background-color: #e8f8f7;
    color: #028a8c;
    font-size: 14px;
    padding: 10px 14px;
    border: 1px solid #b2e8e3;
    text-align: left;
    font-weight: 700;
    width: 22%;
}
.tier-table th:first-child {
    width: 12%;
}
.tier-table td {
    font-size: 13px;
    padding: 10px 14px;
    border: 1px solid #d4eeec;
    vertical-align: top;
}
.tier-table tr:nth-child(even) {
    background-color: #f7fdfc;
}
.tier-name {
    font-weight: 700;
    color: #028a8c;
    font-size: 14px;
}
.tier-internal {
    color: #999;
    font-size: 11px;
    font-style: italic;
}

