/* Sidebar Styling */
.ghanaroll-sidebar {
    width: 300px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    padding: 0;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
}

.widget {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.widget-title {
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(90deg, #EF3340 0%, #009739 100%);
    padding: 8px 15px;
    border-radius: 5px 5px 0 0;
    margin: -10px -10px 10px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 5px;
}

.widget ul li a {
    color: #009739;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget ul li a:hover {
    color: #EF3340;
}

/* Ad Banner and Calendar */
.widget img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    width: 300px; /* Enforce exact 300px width for 300x250 ads */
    height: 250px; /* Enforce exact 250px height */
    object-fit: contain; /* Maintain aspect ratio */
}

@media (max-width: 991px) {
    .ghanaroll-sidebar {
        width: 100%;
        position: relative;
        top: auto;
        max-height: none;
    }
    .widget {
        margin-bottom: 10px;
    }
    .widget-title {
        font-size: 1.1rem;
    }
    .widget img {
        width: 100%; /* Full width on mobile */
        height: auto; /* Maintain aspect ratio */
    }
}