/* --- Custom Block: Publisher --- */
#customblock-publisher {
    /* Inherits general pkp_block styling */
    text-align: center; /* Center content within the publisher block */
}

/* --- Block Title --- */
#customblock-publisher h2.title {
    /* Inherits general pkp_block h2 styling. Can override here. */
    text-align: center; /* Center the "Publisher" title */
    color: #0056b3; /* Prominent color */
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff; /* Strong underline */
    position: relative;
}

/* --- Publisher Info Wrapper --- */
#customblock-publisher .publisher-info-block {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically by default */
    align-items: center; /* Center items horizontally */
}

/* --- Publisher Logo --- */
#customblock-publisher .publisher-logo {
    margin-bottom: 20px; /* Space between logo and text */
}

#customblock-publisher .publisher-logo img {
    max-width: 120px; /* Max width for the logo, adjust as needed */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Ensures centering with margin auto */
    margin: 0 auto; /* Center the image */
    border-radius: 8px; /* Slightly rounded corners for the logo */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for the logo */
    transition: transform 0.3s ease;
}

#customblock-publisher .publisher-logo img:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}

/* --- Publisher Contact Details --- */
#customblock-publisher .publisher-contact-details {
    font-style: normal; /* Override default italic for address tag */
    color: #495057; /* Standard text color */
    line-height: 1.7; /* Good readability */
    margin-bottom: 0; /* Remove default address margin */
}

#customblock-publisher .publisher-contact-details strong {
    display: block; /* Make the publisher name take its own line */
    font-size: 1.1em;
    color: #333; /* Slightly darker for emphasis */
    margin-bottom: 8px;
}

#customblock-publisher .publisher-contact-details a {
    color: #007bff; /* Primary blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

#customblock-publisher .publisher-contact-details a:hover {
    text-decoration: underline; /* Underline links on hover */
    color: #0056b3;
}

/* --- Responsive Adjustments --- */
@media (max-width: 575px) { /* Extra small devices (phones) */
    #customblock-publisher h2.title {
        font-size: 1.3em;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    #customblock-publisher h2.title::after {
        width: 40px;
    }

    #customblock-publisher .publisher-logo img {
        max-width: 100px; /* Slightly smaller logo on phones */
    }

    #customblock-publisher .publisher-contact-details {
        font-size: 0.9em; /* Slightly smaller text */
    }
}