/* Consent Guard Ad Styles */
.consent-guard-ad {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.consent-guard-ad p {
    margin-bottom: .75em;
}

.consent-guard-ad .mb-0 {
    margin-bottom: 0;
}

.consent-guard-ad ul li {
    margin-bottom: .125em;
}

/* Summary (header) styles */
.consent-guard-header {
    cursor: pointer;
    margin: 0;
    padding: 0;
    list-style: none;
    user-select: none;
    position: relative;
}

.consent-guard-header::-webkit-details-marker {
    display: none;
}

.consent-guard-header::marker {
    display: none;
}

.consent-guard-header::after {
    content: "\f078"; /* fa-chevron-down */
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

details[open] .consent-guard-header::after {
    transform: rotate(180deg);
}

/* Details content styles with smooth animation */
.consent-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

details[open] .consent-details {
    max-height: 500px;
}

.consent-details-inner {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.consent-details ul {
    margin-bottom: 15px;
}

.consent-details p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #6c757d;
}

/* Redmine notice styling */
.redmine-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-top: 15px !important;
    border-radius: 4px;
    font-style: normal !important;
    color: #856404 !important;
}

.redmine-notice strong {
    color: #856404;
}

.login-news-title
{
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
}

.login-news-cards
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.login-news-card-wide
{
    grid-column: 1 / -1;
}

.login-news-card
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.login-news-image
{
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

.login-news-card figcaption
{
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: #495057;
}

.login-news-card figcaption strong
{
    font-size: 13px;
    color: #212529;
}

@media (max-width: 480px)
{
    .login-news-cards
    {
        grid-template-columns: 1fr;
    }
}

.login-news-zoom
{
    display: block;
    cursor: zoom-in;
}

.login-news-zoom:hover .login-news-image
{
    border-color: #4f1ab0;
}
