/* 1. Apply brand color to all sidebar text and headings */
.pkp_structure_sidebar, 
.pkp_structure_sidebar .block .title, 
.pkp_structure_sidebar .block .content,
.pkp_structure_sidebar a {
    color: #2a2a2a !important;
}

/* 2. Force underlines on all links within the sidebar and main content */
/* This excludes the navigation menu as requested previously */
.pkp_structure_sidebar a,
.pkp_structure_main a {
	color: #2a2a2a !important;
    text-decoration: underline !important;
}

/* 3. Optional: Subtle hover effect for those links */
.pkp_structure_sidebar a:hover,
.pkp_structure_main a:hover {
    text-decoration: none !important; /* Removes underline on hover for a modern feel */
    opacity: 0.8;
}

/* Optional: If you want the footer text to also be the brand color */
.pkp_structure_footer {
    color: #2a2a2a;
}

/* Container for the site title */
.pkp_site_name .is_text {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: #fcfcfc; /* Change this to match your journal's brand color */
}

/* Injecting the logo before the text */
.pkp_site_name .is_text::before {
    content: "";
    display: inline-block;
    
    /* REPLACE THE URL BELOW WITH YOUR ACTUAL LOGO LINK */
    background-image: url("https://jdsm.khpi.edu.ua/public/site/images/a-vodka/dsm-logo-transp.png");
    
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    /* Adjust these dimensions to fit your logo's aspect ratio */
    width: 60px; 
    height: 60px;
    
    margin-right: 15px; /* Space between logo and text */
}
/* --- MOBILE OVERFLOW FIX --- */
.pkp_site_name {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 991px) {
    .pkp_site_name .is_text::before {
        width: 0px;
        height: 0px;
        margin-right: 10px;
        /* ADD: prevent the logo from shrinking away */
        flex-shrink: 0;
    }
    .pkp_site_name .is_text {
        font-size: 1.6vw;
        /* ADD these three lines: */
        white-space: normal;
        overflow-wrap: break-word;
        min-width: 0;          /* critical for flex children to shrink */
        padding: 0;
    }
}


/* Стилізація футера */
.custom-footer {
    text-align: center;
    color: #2a2a2a !important;
    line-height: 1.6;
}

.footer-license {
    margin: 20px 0;
}

/* Прибираємо підкреслення з іконки ліцензії, але залишаємо для тексту */
.footer-license a {
    text-decoration: none !important;
}

.footer-license a[rel="license"] + p a {
    text-decoration: underline !important;
    font-weight: 500;
}

.footer-license img {
    display: inline-block;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.footer-license img:hover {
    opacity: 0.8;
}

.footer-platform {
    font-size: 0.85em;
    opacity: 0.7;
}

/* Гарантуємо, що всі посилання у футері мають ваш колір */
.custom-footer a {
    color: #2a2a2a !important;
}