/* 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: red;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

body.lang-loading { cursor: progress; }

.header {
    min-height: 60vh !important;
    background-color: rgba(0,0,0,0.6);
}

/* Avoid margin-stacking since we use gap */
.header .navbar-nav .nav-link { margin: 0; }

/* Keep nav centered and prevent overflow on wide screens */
.header .navbar-nav { flex-wrap: wrap; }           /* safety on narrow widths */
@media (min-width: 768px) {
    .header .navbar-nav { flex-wrap: nowrap; }
}

/* Optional: normalize link spacing now that we use gap */
.header .navbar-nav .nav-link { margin: 0; }


.logo img {
    width: 250px;
}

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

.color-red {
    color: red !important;
}

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

.color-primary {
    color: #CC3333 !important;
}

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

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

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

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

.video-main {
    height: 400px;
}

.additional-video {
	height: 170px;
}

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

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

.support-img {
	display: block;
    height: 90px;
    max-height: 90px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;  
}

.btn-outline-danger.bg-white {
    border-radius: 20px !important;
}

.btn-outline-danger.bg-white:hover {
    background-color: #CC3333 !important;
}

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

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

    .news-item-img {
        width: 100%;
        height: inherit;
    }
    .video-main {
        height: 300px;
    }
    .additional-video {
        width: 100%;
        height: 300px;
    }
    .contact-img {
        width: 70px;
        height: 70px;
        border-radius: 70px;
    }
}

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

/* Join section — map */
.join-map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    margin-top: 1.5rem;
    z-index: 1;
    border: 1px solid #c0c0c0;
}

/* Desaturated map tiles so red markers pop */
.join-map-tiles {
    filter: saturate(0.15) brightness(0.95);
}

/* Custom red map marker */
.join-marker {
    width: 24px;
    height: 24px;
    background: #CC3333;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s;
}
.join-marker:hover {
    transform: scale(1.3);
}

/* Map popup styling */
.join-map .leaflet-popup-content-wrapper {
    border-radius: 8px;
}

/* Representatives modal — contact cards */
.join-modal .contact-card {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}
.join-modal .contact-card:last-child {
    border-bottom: none;
}
.join-modal .contact-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .join-map {
        height: 250px;
    }
    .join-modal .contact-card img {
        width: 60px;
        height: 60px;
    }
}