/* Custom Style Overwrites for Bootstrap */

:root {
    --header-height: 90px;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

.mt-6 {
    margin-top: 6rem !important;
}

.big-title {
    font-size: 4.5em;
    text-transform: uppercase;
    font-weight: bold;
}

.text-big {
    font-size: 2rem;
    margin:1rem 0 6rem 0;
    line-height: 2.5rem;
    font-weight:bold;
}

/* Sticky Header Logic */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    background-color: transparent;
}

header.sticky {
    background-color: #0B1F3A ;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header.logged-in {
    background-color: #0B1F3A !important;
}

body.overflow-hidden header.sticky {
    background-color: transparent;
    box-shadow: none;
}

header.sticky .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='%23EC6501' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

header .navbar {
    width: 100%;
    height: 100%;
    padding: 0;
}

header .navbar-brand img {
    max-height: 80px; /* Adjust based on logo size */
}

/* Hamburger Icon (Closed) */
.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='%23EC6501' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 30px;
    height: 30px;
}

/* Close icon (X) when menu is open */
.navbar-toggler.active .navbar-toggler-icon {
    background-image: none;
    position: relative;
    filter: none; /* Remove filter */
}

.navbar-toggler.active .navbar-toggler-icon::before,
.navbar-toggler.active .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: white;
    top: 50%;
    left: 0;
}

.navbar-toggler.active .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-toggler.active .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

/* Side Overlay Menu (Right 1/3) */
.fullscreen-nav {
    position: fixed;
    top: 0;
    right: -33.333%; /* Start off-screen */
    width: 33.333%;
    height: 100%;
    background-color: #EC6501; /* Menu background */
    z-index: 2500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align entries left */
    padding-left: 2.5%; /* Align with the logo/content */
    padding-right: 30px;
    opacity: 0;
    visibility: hidden;
    transition: right 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-nav.show {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.lead {
    font-size: 1.5rem;
}

/* Content Darkening Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

body.overflow-hidden::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fullscreen-nav .navbar-nav {
    flex-direction: column; /* Menu entries under each other */
}

.fullscreen-nav .navbar-nav .nav-link {
    color: #FFF;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase; /* Kapital letters */
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.2;
    display: inline-block; /* Ensure underline only spans text width */
}

/* Submenu Styles */
.submenu-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.dropdown-submenu.active .submenu-list {
    max-height: 1000px; /* Large enough to fit content */
    margin-bottom: 0.5rem;
}

.submenu-link {
    font-size: 0.9rem !important;
    text-transform: none !important;
    font-weight: normal !important;
    margin: 0 !important;
}

.submenu-link::after {
    height: 1px !important;
    bottom: -1px !important;
}

.dropdown-toggle-custom {
    cursor: pointer;
    position: relative;
    padding-right: 25px !important;
}

.dropdown-toggle-custom::before {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dropdown-submenu.active .dropdown-toggle-custom::before {
    content: '-';
}



.fullscreen-nav .menu-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem !important;
}

.navbar-toggler {
    padding: 0.5rem;
    z-index: 3001;
    position: fixed;
    top: calc((var(--header-height, 90px) - 48px) / 2);
    right: max(2.5%, calc((100vw - 1320px) / 2 + 2.5%));
    border: 2px solid #EC6501 !important;
    background-color: transparent;
    cursor: pointer;
    transition: top 0.4s ease, right 0.4s ease, transform 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

@media (max-width: 1399.98px) {
    .navbar-toggler {
        right: max(2.5%, calc((100vw - 1140px) / 2 + 2.5%));
    }
}

@media (max-width: 1199.98px) {
    .navbar-toggler {
        right: max(2.5%, calc((100vw - 960px) / 2 + 2.5%));
    }
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        right: 5%;
    }
}

.navbar-toggler.active {
    top: 30px !important;
    right: 30px !important;
    border: 2px solid #FFF !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Home Page Background Logic */
.hero-section {
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scroll-down-container {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-down-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.scroll-down {
    text-decoration: none;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.scroll-down:hover {
    opacity: 0.8;
}

.scroll-down svg {
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(20px);
    }
    60% {
        transform: translateY(10px);
    }
}



/* Force hamburger visibility */
.navbar-expand-lg .navbar-toggler {
    display: block !important;
}

@media (max-width: 992px) {
    .fullscreen-nav {
        width: 70%;
        right: -70%;
    }
    .fullscreen-nav .navbar-nav .nav-link {
        font-size: 1.5rem;
        line-height: 1.2;
        margin: 0;
        display: inline-block;
        position: relative;
    }
}

@media (max-width: 576px) {
    .fullscreen-nav {
        width: 100%;
        right: -100%;
        padding-top: 80px; /* Space for the logo/header */
        justify-content: flex-start; /* Start from top on mobile */
    }
    .fullscreen-nav .navbar-nav .nav-link {
        font-size: 1.2rem;
        line-height: 1.1;
        margin: 0;
        display: inline-block;
        position: relative;
    }
    .fullscreen-nav .menu-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem !important;
    }
}

/* Container Alignment */
#next-section {
    scroll-margin-top: 75px;
}

.container {
    padding-left: 2.5% !important;
    padding-right: 2.5% !important;
}

@media (max-width: 992px) {
    .container {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}

/* General link hover settings */
a {
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    color: #EC6501;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    display: block;
    bottom: -1px;
    left: 0;
    background: currentColor;
    transition: width 0.3s ease;
}


a:hover::after {
    width: 100%;
}

.fullscreen-nav .navbar-nav .nav-link::after {
    height: 2px;
    bottom: -2px;
}

/* Specific overrides to prevent global red hover on brand-like links */
.navbar-brand:hover {
    color: inherit !important;
}

.navbar-brand:hover::after,
.scroll-down:hover::after {
    display: none;
}


.bg-red {
    background-color: #EC6501;
}

.bg-blue {
    background-color: #0B1F3A;
}

/* Services Slider */
.slider-container {
    cursor: grab;
    user-select: none;
    padding: 20px 0;
}

.slider-track {
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.slider-item {
    flex: 0 0 calc((100% - 60px) / 4);
    margin-right: 20px;
}

@media (max-width: 992px) {
    .slider-item {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 576px) {
    .slider-item {
        flex: 0 0 100%;
    }
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 2/3;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(236, 101, 1, 0.7); /* Using #EC6501 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper .overlay span {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    text-align: center;
    padding: 0 10px;
}

.slider-item:hover .image-wrapper img {
    transform: scale(1.1);
}

.slider-item:hover .image-wrapper .overlay {
    opacity: 1;
}

.slider-controls button {
    width: 45px;
    height: 45px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #031A29;
    color: #031A29;
}

.slider-controls button:hover {
    background-color: #031A29;
    border-color: #031A29;
    color: #fff;
}

.slider-controls button:active {
    background-color: #031A29 !important;
    border-color: #031A29 !important;
}

.footer-logo {
    max-height: 80px;
}



.footer-menu {
    font-size: 0.95rem;
}

.footer-menu a {
    color: #FFF !important;
}

/* Gallery Styles */
.gallery-img {
    width: 100%;
    display: block;
}


.masonry-gallery {
    column-count: 3;
    column-gap: 1.5rem;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .masonry-gallery {
        column-count: 1;
    }
}

#cookies-policy .cookiesBtn__link,
#cookies-policy .cookiesBtn {
    background: #EC6501 !important;
    border-color: #EC6501 !important;
}


@media (max-width: 767.98px) {
    .footer-logo {
        display: none !important;
    }
    .footer-content-left, .footer-content-right {
        text-align: left;
    }
    .footer-content-right {
        margin-top: 2rem !important;
    }

    .fullscreen-nav {
        padding-left:5%;
    }

    .fullscreen-nav .menu-title {
        margin-top:3rem;
    }

    .text-big {
    font-size:calc(1.375rem + 1.5vw);
        line-height: 2.5rem;
    }

    .big-title {
        font-size: 2em;
        text-transform: uppercase;
        font-weight: bold;
    }

    .text-big {
        font-size: 1rem;
        margin:1rem 0 3rem 0;
        line-height: 1.5rem;
        font-weight:bold;
    }
}

.outline-accent-badge {
    background-color: transparent;
    border: 1px solid #EC6501;
    color: #EC6501;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.text-accent {
    color: #EC6501 !important;
}

.bg-accent {
    background-color: #EC6501 !important;
}

.bg-accent-subtle {
    background-color: rgba(236, 101, 1, 0.12) !important;
}

.border-accent {
    border-color: #EC6501 !important;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.btn-accent {
    background-color: #EC6501;
    border-color: #EC6501;
    color: #ffffff;
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-accent:hover {
    background-color: #d25a01;
    border-color: #d25a01;
    color: #ffffff;
}

/* Contact Slide Block */
.contact-slide-block {
    position: fixed;
    top: 110px;
    right: 0;
    z-index: 99999;
    background-color: #EC6501;
    color: #ffffff;
    height: 35px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 24px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.5s ease, opacity 0.5s ease;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-slide-block.slide-in {
    max-width: 450px;
    opacity: 1;
}

.contact-slide-block a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.contact-slide-block a::after {
    display: none !important;
}

/* Animated Waves Section */
.wave-section {
    background-color: #EC6501;
    position: relative;
}

.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.waves {
    position: relative;
    width: 100%;
    height: 60px;
}

.parallax-waves > use {
    animation: move-wave 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax-waves > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax-waves > use:nth-child(2) {
    animation-delay: -4s;
    animation-duration: 10s;
}

.parallax-waves > use:nth-child(3) {
    animation-delay: -6s;
    animation-duration: 13s;
}

.parallax-waves > use:nth-child(4) {
    animation-delay: -9s;
    animation-duration: 20s;
}

@keyframes move-wave {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #ffffff !important;
    border-radius: .375rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.2) !important;
}

/* News Cards & Gradient Overlay */
.news-card {
    transition: box-shadow 0.3s ease;
    border-radius: .375rem;
}

#news-section a:not(.all-news-link)::after,
.news-card-link::after,
a:has(.news-card)::after {
    display: none !important;
}

.news-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.news-card img {
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-gradient-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    pointer-events: none;
    padding-top: 3rem;
}

/* Sponsor Cards */
#sponsoring-section a::after {
    display: none !important;
}

.sponsor-card {
    height: 120px;
    width: 100%;
    background-color: #fff;
    border-radius: .375rem;
    border: 1px solid #EC6501 !important;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card {
    border: 2px solid #EC6501 !important;
}


.sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}

.sponsor-card img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

/* Login Page with Unsharpen / Glassmorphism Mask */
.login-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url('../img/shutterstock_574251076_web.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
}

.login-mask {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(3px) saturate(100%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid #EC6501 !important;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.login-mask .login-logo {
    max-height: 65px;
    object-fit: contain;
}

.login-mask .form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-mask .form-control:focus {
    border-color: #EC6501;
    box-shadow: 0 0 0 0.25rem rgba(236, 101, 1, 0.25);
}

.btn-login-orange {
    background-color: #EC6501;
    border-color: #EC6501;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn-login-orange:hover,
.btn-login-orange:focus,
.btn-login-orange:active {
    background-color: #d25a01 !important;
    border-color: #d25a01 !important;
    color: #ffffff !important;
}

.btn-login-orange:active {
    transform: scale(0.98);
}

.btn-back-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #EC6501;
    color: #EC6501;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.btn-back-circle:hover {
    background-color: #EC6501;
    color: #ffffff;
    transform: scale(1.08);
}

.btn-back-circle:active {
    transform: scale(0.95);
}

.login-body a::after {
    display: none !important;
}

/* Team Member Cards */
.team-card {
    border-radius: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.team-card-img-container {
    height: 320px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.team-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rich Text Content & Image Resizing Options */
.news-content img,
.article-body img,
.article-content img,
.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    transition: outline 0.15s ease;
}

.ql-editor img {
    cursor: pointer;
}

.ql-editor img:hover {
    outline: 2px dashed #0d6efd;
}

.img-size-25, img.img-size-25 {
    width: 25% !important;
    max-width: 25% !important;
}

.img-size-50, img.img-size-50 {
    width: 50% !important;
    max-width: 50% !important;
}

.img-size-75, img.img-size-75 {
    width: 75% !important;
    max-width: 75% !important;
}

.img-size-100, img.img-size-100 {
    width: 100% !important;
    max-width: 100% !important;
}

.align-center, img.align-center {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.align-left, img.align-left {
    float: left !important;
    margin-right: 1.5rem !important;
    margin-bottom: 1rem !important;
    display: inline-block !important;
}

.align-right, img.align-right {
    float: right !important;
    margin-left: 1.5rem !important;
    margin-bottom: 1rem !important;
    display: inline-block !important;
}

/* News Detail Main Image */
.news-main-image-portrait {
    max-width: 50% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.news-main-image-portrait img,
img.news-main-img-portrait {
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin-left: 0 !important;
}

@media (max-width: 768px) {
    .news-main-image-portrait {
        max-width: 100% !important;
    }
}

/* Pagination Arrow Buttons */
.pagination-arrow-btn {
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    color: #333333;
    transition: all 0.2s ease-in-out;
    text-decoration: none !important;
}

.pagination-arrow-btn:hover:not(.disabled) {
    background-color: #EC6501 !important;
    border-color: #EC6501 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(236, 101, 1, 0.25) !important;
}

.pagination-arrow-btn::after {
    display: none !important;
}

/* Quick Info Section */
.quick-info-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 2px solid #EC6501 !important;
}

.quick-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1.5rem rgba(236, 101, 1, 0.15) !important;
}

.quick-info-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(236, 101, 1, 0.1);
    color: #EC6501;
}

.badge-orange {
    background-color: rgba(236, 101, 1, 0.12) !important;
    color: #EC6501 !important;
    border: 1px solid rgba(236, 101, 1, 0.25) !important;
}

.link-orange {
    color: #EC6501 !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.link-orange:hover {
    color: #d25a01 !important;
}

.link-orange:hover i {
    transform: translateX(3px);
}

.link-hover-arrow i {
    transition: transform 0.2s ease;
}
