/* common.css — hard stop page scroll while offcanvas is open (iOS safe) */
html.offcanvas-open, body.offcanvas-open { overflow: hidden !important; }

/* Absolute clamp: nothing can create horizontal scroll */
html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;           /* works everywhere */
}

body {
    padding-top: 70px; /* equal to your header height */
}

@supports (overflow: clip) {
    html, body { overflow-x: clip; } /* prevents scroll but allows positioned elements to render */
}

/* If any global CSS uses 100vw it can overflow on mobile; normalize to 100% */
.use-100vw, [style*="100vw"] { width: 100% !important; }

/* Pseudo-element safety if something in common.css draws wide decorations */
html::before, html::after,
body::before, body::after {
    max-width: 100%;
    overflow-x: hidden;
}

/* Embeds safety */
img, video, iframe { max-width: 100%; height: auto; }

/* Fixed buttons shouldn’t push layout horizontally */
#scrollTopBtn { right: 16px; }

/* Page loading overlay */
#pageSpinner {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(1px);
    z-index: 2000; /* above everything */
}
#pageSpinner.show { display: flex; }

#pageSpinner .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.25);
    border-top-color: #d51c22;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

body.lang-loading { cursor: progress; }

.social-links .btn {
    width: 40px;
    height: 40px;
    border-radius: 40px;
    padding: 7px;
}

.font-family-heading {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.font-size-large {
    font-size: 32px !important;
}

.btn.btn-outline-dark.bg-white.text-dark {
    font-family: "Roboto Condensed", sans-serif;
    font-weight: bold;
    padding: 10px;
    border-radius: 0;
}

.btn.btn-dark:hover,
.btn.btn-outline-dark.bg-white.text-dark:hover {
    background-color: #d51c22 !important;
    border-color: #d51c22;
    color: #ffffff !important;
}

.link-color {
    color: #d51c22 !important;
}

.accordion-item {
    background-color: #edebeb;
    border-bottom: 1px solid #d0d0d0;
}

.accordion-item .accordion-button {
    background-color: #edebeb;
    border: none !important;
}

.accordion-button {
    font-size: 24px;
    font-weight: bold;
}

.header {
    min-height: 60vh !important;
    box-shadow: 0 0 30px rgba(0,0,0);
}

.logo img {
    width: 250px;
}

.footer-logo img {
    height: 70px;
}

.color-secondary {
    color: gray !important;
}

.font-weight-bold {
    font-weight: bold !important;
}

.background-gray {
    background-color: #edebeb;
}

.news-item-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}

.border-secondary {
    border-color: #c0c0c0 !important;
}

.video-main {
    height: 400px;
}

.border-radius-0 {
    border-radius: 0;
}

.border-radius-10 {
    border-radius: 10px;
}

.contact-img {
    width: 200px;
    height: 200px;
    border-radius: 200px;
}

/* Mobile: make each social button fill its column (3 per row). */
.socials .social-btn { width: 100%; }

.active-lang {
    color: #d51c22 !important;
    font-weight: bold;
}

/* Hero with blur-fill background */
.hero-blur {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 0;
}

.hero-blur .slogan {
    width: 50%;
    position: absolute;
    bottom: 10px;
    left: 25px;
    padding: 50px;
    color: #ffffff;
    z-index: 1;
    font-size: 30px;
    line-height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 100px rgba(213, 28, 34, 1);
}

.hero-blur .slogan .slogan-author {
    padding-top: 10px;
    text-align: right;
    font-size: 24px;
    color: #e87979;
    font-family: "Roboto Condensed", sans-serif;
}

.hero-blur::before { background-attachment: fixed; }
.hero-main-img {
    width: 100%;
    box-shadow: 0 0 200px rgba(0, 0, 0, 1);
}

/* blurred, scaled background that fills the viewport nicely */
.hero-blur::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/bg_2.0.jpg") center / cover no-repeat;
    filter: blur(10px);
    transform: scale(1.1);          /* hide blur edges */
    will-change: transform, filter;
    z-index: 0;
}

/* the real image stays crisp, centered, and never upscales past its natural size */
.hero-main-img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    width: auto;
    box-shadow: 0 0 200px rgba(0, 0, 0, 1);
}

/* One global, fixed blur background */
.fixed-blur-bg {
    position: fixed;
    inset: 0;                           /* full viewport */
    z-index: -1;                        /* behind all content */
    pointer-events: none;               /* never catches clicks */
    background: #000 url("../img/bg_2.0.jpg") center / cover no-repeat;
    filter: blur(24px);
    transform: scale(1.08);             /* hide blur edges */
    will-change: transform, filter;
}

.project-logo {
    width: 100px;
    height: 100px;
    border-radius: 100px;
}

.accordion-button:not(.collapsed) {
    color: #d51c22;
    border: none !important;
}

/* Hide Bootstrap's default chevron */
.accordion-button::after { display: none !important; }

/* Icon sizing/transition */
.accordion-icon { font-size: 1.1rem; line-height: 1; transition: transform .2s ease; }

/* Default: show plus, hide minus */
.accordion-icon.minus { display: none; }

/* Expanded state: hide plus, show minus */
.accordion-button:not(.collapsed) .accordion-icon.plus { display: none; }
.accordion-button:not(.collapsed) .accordion-icon.minus { display: inline-block; }

.accordion-button:not(.collapsed) .accordion-icon.minus { transform: rotate(180deg); }

.color-primary {
    color: #d51c22;
}

.text-decoration-dashed {
    text-decoration:  dashed underline !important;
}

.additional-news-list li:last-child {
    border: none !important;
}

/* --- Slogan animations --- */
.slogan .slogan-content,
.slogan .slogan-author {
    opacity: 0;
    transform: translateY(10px);
    will-change: opacity, transform, text-shadow;
}

/* Quote rises in first */
.slogan .slogan-content {
    animation: slogan-rise-in 1400ms ease-out forwards;
}

/* Author follows with a soft glow pulse */
.slogan .slogan-author {
    animation:
            slogan-rise-in 1000ms ease-out 400ms forwards,
            slogan-glow 5600ms ease-in-out 2000ms infinite alternate;
}

/* Keyframes */
@keyframes slogan-rise-in {
    0%   { opacity: 0; transform: translateY(12px); }
    60%  { opacity: 1; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slogan-glow {
    0%   { text-shadow: 0 0 0 rgba(213,28,34,0.0); }
    100% { text-shadow: 0 0 16px rgba(213,28,34,0.35); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .slogan .slogan-content,
    .slogan .slogan-author {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        text-shadow: none !important;
    }
}

@media (max-width: 768px) {
    .socials .social-btn { width: auto; }

    .news-item-img {
        width: 100%;
        height: inherit;
    }
    .video-main {
        height: 250px;
    }
    .additional-video {
        width: 100%;
        height: 300px;
    }
    .contact-img {
        width: 70px;
        height: 70px;
        border-radius: 70px;
    }
    .hero-blur {
        min-height: 0;
    }
    .accordion-button {
        font-size: 18px;
        font-weight: bold;
    }
    .font-size-large {
        font-size: 24px !important;
    }
    .w-sm-100 {
        width: 100%;
    }
    .hero-blur .slogan {
        width: auto;
        padding: 10px;
        font-size: 18px;
        line-height: 18px;
    }
    .hero-blur .slogan .slogan-author {
        text-align: right;
        font-size: 14px;
    }
    .main-post {
        border-bottom: 1px solid #d0d0d0 !important;
        margin-bottom: 15px;
    }
    .mobile-offcanvas {
        --bs-offcanvas-width: 100vw;
        background-color: rgba(0, 0, 0, 0.5);
        color: #ffffff;
        font-weight: bold;
        backdrop-filter: blur(3px);
    }
    .offcanvas-header {
        height: 70px;
        line-height: 70px;
    }
    .offcanvas-header .btn-close {
        color: #ffffff !important;
    }
}

/* respect reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    .hero-blur::before { filter: blur(16px); transform: none; }
}