/* === Custom Team Section for Charitize Template === */
.team-section-charitize {
    padding-top: 40px;
    padding-bottom: 40px;
    background: #fff;
}
.team-section-charitize .section-title {
    color: #ffc107;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
    background: none;
    border: none;
}
.team-section-charitize .team-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0,0,0,.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: box-shadow .3s;
}
.team-section-charitize .team-item:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.team-section-charitize .team-item .d-flex {
    gap: 0;
}
.team-section-charitize .team-item img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0;
}
.team-section-charitize .team-social {
    background: #fffbe6;
    min-width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}
.team-section-charitize .btn-square.btn-warning {
    background: #ffc107 !important;
    color: #222 !important;
    border: none;
    box-shadow: none;
    margin: 8px 0;
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background .2s;
}
.team-section-charitize .btn-square.btn-warning:hover {
    background: #ffb300 !important;
}
.team-section-charitize .team-item h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.team-section-charitize .team-item h3 a {
    color: #222;
    text-decoration: none;
    transition: color .2s;
}
.team-section-charitize .team-item h3 a:hover {
    color: #ffc107;
}
.team-section-charitize .team-item .mb-2 {
    color: #888;
    font-size: 1rem;
}
.team-section-charitize .team-item .small {
    color: #444;
}
/* Reusable section header (Charitize style) */
.section-title-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}
.section-title-bar .bar {
    flex-grow: 1;
    height: 2px;
    background: #ffc107;
    max-width: 60px;
}
.section-title-bar .section-title {
    margin: 0 16px;
    color: #ffc107;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
    padding: 10px 0; /* add vertical breathing room so lines aren't too close */
}

/* Within section-title-bar, push decorative lines to the edges of the padded area */
.section-title-bar .section-title::before { top: 0; }
.section-title-bar .section-title::after { bottom: 0; }
/********** Template CSS **********/
:root {
    --bs-tertiary: #797E88;
    /* Ensure any pink/magenta accents default to green family */
    --bs-pink: #1A685B; /* brand secondary green as replacement for pink */
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

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

.fw-medium {
    font-weight: 600 !important;
}

.fw-normal {
    font-weight: 400 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
/* Keep no special positioning for logo; default flow fits 64px height */
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Top Bar ***/
.top-bar {
    height: 90px;
    padding: 0 90px;
}

.top-bar h6 {
    letter-spacing: 1px;
}


/*** Nav Bar ***/

.nav-bar {
    padding: 0 90px;
    transition: .5s;
}

/* On large screens (no custom vertical shift to preserve original spacing) */
@media (min-width: 992px) {
}


.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-white);
}

/* --- Navigation tweaks for long Slovak labels --- */
@media (min-width: 992px) {
    html[lang="sk"] .nav-bar { padding: 0 40px; }
    html[lang="sk"] .navbar .navbar-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    html[lang="sk"] .navbar .navbar-nav .nav-item { white-space: nowrap; }
    html[lang="sk"] .navbar .navbar-nav .nav-link { margin-right: 16px; padding: 16px 0; font-size: 16px; }
    html[lang="sk"] .navbar .nav-item .dropdown-menu { left: auto; right: 0; }
}

/* Make nav labels start with uppercase and style active icons */
.navbar .navbar-nav .nav-link .text-capitalize { text-transform: capitalize; }
.navbar .navbar-nav .nav-link i { transition: color .2s ease, opacity .2s ease; }
.navbar .navbar-nav .nav-link.active i { color: #ffc107 !important; opacity: 1 !important; }

/* Ensure inline code elements don’t render magenta from Bootstrap defaults */
code { color: #1A685B; }

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        border-top: 1px solid var(--bs-white);
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header Carousel ***/
.header-carousel {
    position: relative;
    background: url(../img/2.png) center center no-repeat;
    background-size: cover;
}

.header-carousel .carousel-img {
    position: relative;
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bs-dark);
    background: var(--bs-primary);
}

.page-header {
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-tertiary);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-primary);
}

.page-header .breadcrumb-item.active {
    color: var(--bs-dark);
}


/*** Video ***/
.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-dark);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-dark);
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bs-dark);
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--bs-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: var(--bs-white);
    background: #000000;
    opacity: 1;
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 0px;
    top: 5px;
    left: -40px;
    border-top: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 0px;
    bottom: 6px;
    left: -60px;
    border-bottom: 2px solid var(--bs-primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** About ***/
.about-img {
    position: relative;
}

.about-img::before,
.about-img::after {
    position: absolute;
    content: "";
    width: 33%;
    height: 90px;
    background: var(--bs-white);
}

.about-img::before {
    top: 0px;
    left: 0px;
}

.about-img::after {
    right: 0px;
    bottom: 0px;
}


/*** Service ***/
.service-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.service-item {
    overflow: hidden;
}

.service-item .btn-square {
    width: 65px;
    height: 65px;
}

.service-item a {
    position: relative;
    padding: 0;
    font-size: 14px;
    line-height: 14px;
    text-transform: uppercase;
    transition: .5s;
}

.service-item a::after {
    position: absolute;
    content: "";
    width: 500%;
    height: 0;
    left: 100%;
    bottom: 3px;
    margin-left: 10px;
    border-bottom: 2px solid var(--bs-primary);
}


/*** Donation ***/
.donation-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.donation-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.donation-item .donation-progress {
    width: 80px;
}

.donation-item .progress .progress-bar {
    height: 20px;
    overflow: visible;
    transition: 3s;
}


/*** Banner ***/
.banner .banner-inner {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.banner .banner-inner::before,
.banner .banner-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.banner .banner-inner::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.banner .banner-inner::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}


/*** Event ***/
.event-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.event-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}


/*** Donate ***/
.donate .donate-text {
    position: relative;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.donate .donate-text::before,
.donate .donate-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
}

.donate .donate-text::before {
    top: 0;
    left: 0;
    border-top: 150px solid var(--bs-primary);
    border-right: 150px solid transparent;
}

.donate .donate-text::after {
    right: 0;
    bottom: 0;
    border-bottom: 150px solid var(--bs-secondary);
    border-left: 150px solid transparent;
}

.donate .donate-form .form-control {
    border: none;
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group {
    display: flex;
}

.donate .donate-form .btn-group .btn {
    margin: 0;
    padding: 0;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: var(--bs-tertiary);
    background: rgba(255, 255, 255, .5);
}

.donate .donate-form .btn-group .btn-check:checked+.btn {
    border: none;
    background: var(--bs-white);
}



/*** Team ***/
.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .05);
    transition: .5s;
}

.team-item:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.team-item .team-detail span {
    letter-spacing: 2px;
}



/*** Testimonial ***/
.testimonial-title {
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.testimonial-carousel .owl-prev,
.testimonial-carousel .owl-next {
    width: 45px;
    height: 45px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bs-white);
    background: var(--bs-secondary);
    transition: .5s;
}

.testimonial-carousel .owl-prev:hover,
.testimonial-carousel .owl-next:hover {
    color: var(--bs-secondary);
    background: var(--bs-white);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-nav {
        top: 6.3rem;
    }
}



/*** Footer ***/
.footer {
    color: var(--bs-tertiary);
    background: linear-gradient(rgba(5, 19, 17, .95), rgba(5, 19, 17, .95)), url(../img/bg-footer.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-tertiary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/* Contact hero with map + overlay form */
.contact-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
}
.contact-map-iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.contact-form-overlay {
    position: relative;
    max-width: 720px;
    margin: 40px auto; /* center horizontally with top/bottom spacing */
    background: #fff;
    border-radius: .5rem;
    padding: 1.5rem;
}
@media (min-width: 992px) {
    .contact-form-overlay {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
    }
}

/* Full-bleed contact map hero, flush under navbar */
.contact-map-hero {
    position: relative;
    width: 100%;
    height: 40vh; /* halved */
    margin: 0;
    padding: 0;
}
.contact-map-hero .contact-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(15%) contrast(110%);
}
@media (max-width: 991.98px) {
    .contact-map-hero { height: 30vh; }
}

/* Contact form section spacing */
.contact-form-section {
    /* keep visuals handled by the page card; add vertical rhythm */
    padding-top: .25rem;
}

/* Focus Areas table header styling */
.focus-areas-table thead th {
    background-color: #1A685B !important;
    color: #ffffff !important;
}

/* Normalize GDPR content heading styles across languages */
.gdpr-content h1,
.gdpr-content h2,
.gdpr-content h3,
.gdpr-content h4,
.gdpr-content h5,
.gdpr-content h6 {
    text-transform: none !important;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: .5rem;
}
.gdpr-content h1 { font-size: 1.75rem; }
.gdpr-content h2 { font-size: 1.5rem; }
.gdpr-content h3 { font-size: 1.35rem; }
.gdpr-content h4 { font-size: 1.2rem; }
.gdpr-content h5 { font-size: 1.1rem; }
.gdpr-content h6 { font-size: 1rem; }

/* share buttons use default outline button styles */

/* Team list: make social icons and vertical strip green instead of yellow */
.team-item .btn-square.btn-warning {
    background: #1A685B !important;
    color: #fff !important;
    border: none;
}
.team-item .btn-square.btn-warning:hover {
    background: #155247 !important;
}
/* Force icon glyphs to white even if text-dark is present */
.team-item .btn-square.btn-warning i,
.team-section-charitize .btn-square.btn-warning i {
    color: #ffffff !important;
}
/* Keep compatibility if team section uses the charitize wrapper */
.team-section-charitize .btn-square.btn-warning {
    background: #1A685B !important;
    color: #fff !important;
}
/* Vertical social strip uses bg-warning + bg-opacity-25; override color to green */
.team-item .bg-warning {
    background-color: rgba(26, 104, 91, var(--bs-bg-opacity, 1)) !important;
}

/* About Us middle row cards */
.about-mid-card{background:#ffffff;border-radius:.5rem;padding:1rem;box-shadow:0 0.125rem 0.25rem rgba(0,0,0,.075);border:1px solid rgba(0,0,0,.06)}
.about-mid-card-left{background:#1A685B; color:#ffffff; border-color:rgba(255,255,255,.15)}
.about-mid-card-right{background:#FFAC00; color:#ffffff; border-color:rgba(0,0,0,.08)}
.about-mid-icon{font-size:1.25rem; color:#ffffff; margin-bottom:.5rem}
.about-mid-card-left .about-mid-icon, .about-mid-card-right .about-mid-icon{ color:#ffffff }
.about-mid-card-left .about-mid-body, .about-mid-card-right .about-mid-body{ color:#ffffff }
.about-mid-card-left .about-mid-body p, .about-mid-card-right .about-mid-body p{ color:#ffffff }
.about-mid-card-left a, .about-mid-card-right a{ color:#ffffff; text-decoration: underline; }
.about-mid-body p{margin-bottom:.5rem}
@media (max-width: 767.98px){
    .about-mid-card{padding:0.875rem}
}

/* About page row spacing and subtle separators */
.about-row{position:relative}
.about-row + .about-row{padding-top: .75rem; margin-top:.75rem;}
.about-row + .about-row::before{
    content:""; position:absolute; top:0; left:0; right:0; height:1px; background:rgba(0,0,0,.06);
}

/* Equal-height image fill next to text */
.about-img-fill{position:relative; width:100%; height:100%; min-height:100%; overflow:hidden; box-sizing:border-box;}
.about-img-fill img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}

/* ====== Site-toned cards ====== */
/* Stats section wrapper and cards */
.stats-section { --card-bg: #ffffff; --card-border: rgba(0,0,0,.06); --card-accent: #1A685B; --card-muted: #6c757d; }
.stats-section .stats-card { background: var(--card-bg); border: 1px solid var(--card-border); }
.stats-section .stats-card h2 { color: var(--card-accent) !important; }
.stats-section .stats-card .text-muted { color: var(--card-muted) !important; }
.stats-section .stats-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-1px); transition: box-shadow .2s ease, transform .2s ease; }

/* About mid cards align with site tones (preserve green/orange on Home),
   but on About page use white cards and default text colors */
.about-mid-card .about-mid-icon { color: #ffffff; }
.about-page .about-mid-card-left,
.about-page .about-mid-card-right {
    background: #ffffff !important;
    color: inherit !important;
    border-color: rgba(0,0,0,.06) !important;
}
.about-page .about-mid-card-left .about-mid-icon,
.about-page .about-mid-card-right .about-mid-icon,
.about-page .about-mid-card-left .about-mid-body,
.about-page .about-mid-card-right .about-mid-body,
.about-page .about-mid-card-left .about-mid-body p,
.about-page .about-mid-card-right .about-mid-body p,
.about-page .about-mid-card-left a,
.about-page .about-mid-card-right a {
    color: inherit !important;
}

/* Team cards utilize the same hover elevation */
.team-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }