
.with-overlay {
    position: relative;
    isolation: isolate;
}

.with-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.5);
}

.section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.footer-py {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.blog-photo {
    aspect-ratio: auto 900 / 500;
    height: auto;
}

:root {
    --primary-color: #00aeef;
    --primary-color-dark: #0d8ebf;
    --primary-color-accent: #ccff66;
    --deep-black: #1f2021;
    --light-gray: #f5f5f5;
    --text-color: rgb(108, 117, 125);
    --darker-body-color: #6c757d;
    --headline-color: rgb(33, 37, 41);;

    --shadow-modern: 0 1px 3px 0 rgb(0 0 0 / 0.1),0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);

    --brand-light-gray-alt: #fcfcfc;
    --dark-gray-bg-color: rgb(49, 53, 63);
    --light-gray-bg-color: #f7f7f6;
}

::selection {
    background: var(--primary-color-dark);
    color: var(--light-gray);
    text-shadow: none;
}

.main-menu .nav-link.active {
    color: var(--primary-color-dark) !important;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.5px;
    color: var(--headline-color);
}

h1, .h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h2, .h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3, .h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* BUTTONS */

.btn {
    text-transform: uppercase;
}

.btn:hover {
    box-shadow: 0 1px 1.5px 0 rgba(0, 0, 0, 0.12), 0 1px 1px 0 rgba(0, 0, 0, 0.24);
}

.btn.btn-lg {
    padding: 15px 25px;
    font-weight: 400;
}

.btn-accent {
    background-color: var(--primary-color-accent)!important;
    color: var(--deep-black)!important;
}

.bg-light {
    background-color: rgb(247, 247, 246);
    color: var(--darker-body-color)!important;
}

.bg-light-gray {
    background-color: var(--light-gray-bg-color);
}

.btn .fas, .btn .fa, .btn .fa-solid {
    transition: all 0.5s;
    margin-left: 0.5rem;
}

.btn-dark {
    background-color: var(--deep-black);
    border-color: var(--deep-black);
}

.btn-secondary:hover {
    color: #fff
}
.btn-primary:hover {
    color: #fff
}

/* BUTTONS END */


/* CARDS */

.card {
    background-color: var(--brand-light-gray-alt);
    --bs-card-border-width: 3px;
    --bs-card-border-color: #fff;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
    transition: box-shadow 0.3s ease;
}

.shadow-lg:hover {
    box-shadow: var(--shadow-modern) !important;
}

.card h1, .card h2, .card .h3, .card .h4, .card .h5, .card .h6 {
    color: var(--headline-color);
}

/* CARDS END */

.g-filtered img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.g-filtered:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}


/* carousel START*/

.main-slider .carousel-item {
    height: 100vh;
}

.carousel-control-next, .carousel-control-prev {
    position: absolute;
    width: 40px;
    bottom: calc(50% - 61px);
    top: unset;
    padding: 20px;
    color: #fff;
    text-align: center;
    background: 0 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 1;
    border-radius: 25px;
}

.carousel-control-next {
    right: 30px!important;
    height: 56px!important;
    z-index: 99;
}

.carousel-control-prev {
    left: 30px!important;
    height: 56px!important;
    z-index: 99;
}

/* carousel END */

.h-60px {
    height: 60px!important;
}

.w-60px {
    width: 60px!important;
}

.fs-20px {
    font-size: 20px!important;
}

.img-desaturated {
    filter: grayscale(100%) opacity(20%);
    transition: filter 0.7s ease;
}

.card:hover .img-desaturated {
    filter: grayscale(0%) opacity(100%);
}

.offer-cards .card {
    border-bottom: 3px solid var(--bs-card-border-color);
}

.offer-cards .card:hover {
    border-bottom: 3px solid var(--primary-color);
}

.list-group-item.active a {
    color: var(--bs-list-group-active-color);
}

.main-video {
    position: absolute;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.main-video-overlay {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.4;
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
}

.list-group-item.active {
    z-index: 2;
    color: var(--bs-list-group-active-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.section-title-left {
    margin-bottom: 3rem;
    position: relative;
}

.bg-light-pattern {
    background-color: var(--light-gray);
    background-image: url('./../images/app/bg.jpg');
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
}

.hero-section {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 500px;
}

.hero-section video, .hero-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0,0,0,0.5);
    color: white;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-primary-red {
    color: var(--primary-color);
}


.article-card {
    border: none;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.article-meta {
    font-size: 0.9rem;
    color: #777;
}

.accordion-button:not(.collapsed) {
    background-color: #ececec;
    color: black;
}


footer {
    background-color: var(--deep-black);
    color: white;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.carousel-control-prev {
    left: -30px;
}

.carousel-control-next {
    right: -30px;
}

@media (max-width: 767.98px) {

    .hero-section {
        height: 100vh;
    }
}

.mega-dropdown {
    position: static !important;
}

.mega-dropdown .dropdown-menu {
    width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    background: rgba(255,255,255,0.9);
}

.mega-dropdown .dropdown-item {
    padding: 0.75rem 0;
    border: none;
    white-space: normal;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.mega-dropdown .dropdown-item:hover {
    background-color: transparent;
}

#baltic-map {
    width: 100%;
    aspect-ratio: 3 / 2;
}

@media (max-width: 768px) {
    #baltic-map {
        aspect-ratio: 4 / 5;  /* taller on mobile for easier interaction */
    }
}

@media (max-width: 991px) {

    .mega-dropdown .dropdown-menu {
        padding: 1rem;
    }

    .nav-item {
        text-align: right;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-right: 0.5rem;
    }
}