:root {
    --bs-body-color: #555;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
}

.top-bar {
    background-color: #3e3734;
    color: white;
}

.top-bar .donate-button {
    border: 1px solid white;
    padding: 5px 10px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: none;
}

.top-bar .contacts a {
    color: white;
    cursor: pointer;
}

.top-bar .contacts {
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.top-bar .contacts a {
    line-height: 1.3;
}

.top-bar .social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar .row {
    align-items: center;
}

/* Mobile top-bar styles */
@media (max-width: 767px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar .row {
        align-items: center;
    }

    .top-bar .col-md-3:first-child {
        flex: 0 0 auto;
        width: auto;
        padding-right: 0;
        display: flex;
        align-items: center;
    }

    .top-bar .col-md-6 {
        display: none !important;
    }

    .top-bar .col-md-3.social-icons {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
        padding-left: 15px;
        display: flex;
        align-items: center;
    }

    .top-bar .contacts a {
        font-size: 0.85rem;
        white-space: nowrap;
        line-height: 1.2;
    }

    .social-icons img {
        width: 28px;
        height: 28px;
    }
}


.header-container {
    background-color: #fff1ea;
    position: relative;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #007bff;
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

/* Mobile navbar styles */
@media (max-width: 767px) {
    .header-container {
        position: relative;
    }

    .header-container .container {
        position: relative;
    }

    .header-container .d-flex {
        flex-direction: row !important;
        align-items: center !important;
    }

    .header-container .site-title {
        flex: 1;
        margin-bottom: 0 !important;
        font-size: 0.9rem;
        padding-right: 10px;
    }

    .header-container .navbar {
        width: auto;
        flex: 0 0 auto;
        position: static;
    }

    .header-container .navbar-toggler {
        margin-left: 0;
        margin-right: 0;
    }

    .header-container .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        background-color: #e9e9e9;
        text-align: left;
        margin: 0 !important;
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .header-container .navbar-nav {
        justify-content: flex-start;
        flex-direction: column;
        width: 100%;
        padding-left: 0;
        margin-left: 0;
    }

    .header-container .nav-item {
        width: 100%;
        text-align: left;
    }

    .header-container .nav-link {
        padding: 0.5rem 1rem;
        text-align: left;
    }
}

/* Care Section */
.care-section {
    background-color: #fff;
    width: 100%;
}

.care-title {
    font-weight: bold;
    font-size: 1.5rem;
}

.care-text {
    margin: 1rem 0;
    font-size: 1.38rem;
}

.care-buttons .btn {
    margin-right: 1rem;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
}

.care-buttons .btn-dark {
    background-color: #3e3734;
    border-color: #3e3734;
}

.care-buttons .btn-dark:hover {
    background-color: rgba(255, 255, 255, 0);;
    border-color: #555;
    color: #555;
}

.care-buttons .btn-outline-dark {
    color: #555;
    border-color: #555;
}

.care-buttons .btn-outline-dark:hover {
    background-color: #555;
    border-color: #555;
    color: #fff;
}

.care-logo {
    max-width: 350px;
    padding: 1rem;
}

/* Info Section */
.info-section {
    background-color: #fbe0d3;
    font-size: 2rem;
}

/* Partners Section */
.partners-section {
    background-color: #fff;
}

.partners-section a {
    color: var(--bs-body-color);
}

.partners-title {
    font-size: 2rem;
}

/* Reports Section */
.reports-section {
    background-color: #fff;
}

.reports-section a {
    color: var(--bs-body-color);
}

.reports-title {
    font-size: 2rem;
}

/* Center Section */
.hospital-section {
    background-color: #fff;
}

.hospital-section a {
    color: var(--bs-body-color);
}

.hospital-title {
    font-size: 2rem;
}

/* Donation Section */
.donation-section {
    background-color: #3e3734;
    color: #fff;
    padding: 3rem 0;
}

.donation-section a {
    color: #fff;
}

.donation-section .title {
    font-weight: 400;
    font-size: 2.1rem;
    text-align: center;
}

.donation-section .footer {
    font-size: 1.5rem;
    text-align: center;
}

.donation-section .footer span {
    display: block;
}

.donation-buttons {
    text-align: center;
}

.donation-buttons .btn {
    margin-right: 1rem;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    font-weight: 400;
}

/* Стилі для блог контенту (preview в адмінці та на сайті) */
.blog-content img {
    max-width: 500px;
    max-height: 500px;
    width: auto;
    height: auto;
}

/* Стилі для посилань в блог контенті */
.blog-content a {
    color: var(--bs-body-color) !important;
    text-decoration: underline;
}

.blog-content a:hover {
    color: var(--bs-body-color) !important;
    opacity: 0.8;
}

/* Стилі для цитат в блог контенті */
.blog-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 1rem 0;
    background-color: #fff1ea;
    font-style: italic;
    color: #495057;
}

.blog-content blockquote p {
    margin-bottom: 0.5rem;
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Стилі для YouTube відео в блог контенті */
.blog-content iframe {
    max-width: 100%;
    width: 560px;
    height: 315px;
}

@media (max-width: 768px) {
    .blog-content iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

.donation-buttons .btn-dark {
    background-color: #555;
    border-color: #555;
}

.donation-buttons .btn-dark:hover {
    background-color: #000;
    border-color: #555;
}

/* Activities Section */
.activities-section {
    background-color: #fff;
    padding: 3rem 0;
}

.activity-title {
    font-size: 2rem;
    text-align: center;
}

.activity-card {
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 1rem;
    color: #434343;
}

.activity-card-text {
    padding: 1rem;
}

/* Mobile styles */
@media (max-width: 767px) {
    .top-bar .row {
        flex-direction: column;
        position: relative;
    }

    .top-bar .col-md-3:first-child {
        order: 1;
        width: 100%;
        margin-bottom: 10px;
    }

    .top-bar .col-md-3:last-child {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        width: auto;
    }

    .header-container,
    .header-container .container {
        position: relative;
    }

    .header-container .d-flex {
        flex-direction: row !important;
        align-items: center !important;
    }

    .header-container .site-title {
        flex: 1;
        margin-bottom: 0 !important;
        font-size: 0.9rem;
        padding-right: 10px;
    }

    .header-container .navbar {
        width: auto;
        flex: 0 0 auto;
        position: static;
    }

    .header-container .navbar-toggler {
        margin-left: 0;
        margin-right: 0;
    }

    .header-container .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translate(-50%) !important;
        width: 100vw !important;
        max-width: 100vw !important;
        background-color: #fff1ea;
        text-align: left;
        margin: 0 !important;
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .header-container .navbar-nav {
        justify-content: flex-start;
        flex-direction: column;
        width: 100%;
        padding-left: 0;
        margin-left: 0;
    }

    .header-container .nav-item {
        width: 100%;
        text-align: left;
    }

    .header-container .nav-link {
        padding: 0.5rem 1rem;
        text-align: left;
    }

    .social-icons {
        justify-content: flex-end;
    }
}

@media (min-width: 768px) {
    .activity-card-text {
        min-height: 128px;
    }
}

.activity-card .activity-image-container {
    background-color: #fbe0d3;
}

.activity-image {
    max-width: 100%;
    height: auto;
}

.activities-section .btn {
    margin-top: 1rem;
}


.contact-section {
    padding: 3rem 0;
    background-color: #fff1ea;
}

.contact-section a {
    color: var(--bs-body-color);
}

.contact-title {
    font-size: 2rem;
    text-align: center;
}

.contact-text {
    margin: 1rem 0;
    font-size: 1.38rem;
}


/* Social Icons */

.social-icons {
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    align-items: center;
}

.social-icons img {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.social-icons img:hover {
    filter: invert(70%);
}

/* Contact Table */

.contact-table div {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-table div.text {
    font-size: 1rem;
}

.contact-table div.title {
    font-size: 1.2rem;
}

a.no-link {
    text-decoration: none;
    color: inherit;
}

.about-section .title {
    font-size: 2rem;
}

.about-section .text {
    font-size: 1.1rem;
}

/* Partners Section */

#partners .title {
    font-size: 2rem;
    text-align: center;
}

#partners .card {
    margin: 20px;
    padding: 20px;
    height: 500px;
}

#partners .details {
    font-size: 1.1rem;
    text-align: center;
}

