/* Clickable Paragraph */
.clickable-paragraph {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
}

.clickable-paragraph:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

/* Style for Custom Recent Posts Widget */
.widget_custom_recent_posts {
    background-color: #eeeeee50;
    padding: 15px;
    border-radius: 5px;
    margin: 10px; /* Add small outer margin */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Add subtle shadow */
}

.widget_custom_recent_posts h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

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

.widget_custom_recent_posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px; /* Adjust this value based on your design */
}

.widget_custom_recent_posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget_custom_recent_posts li a,
.widget_recent_entries li a {
    color: #000000 !important; /* Force black color for all links */
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-bottom: 0;
}

.widget_custom_recent_posts .post-date,
.widget_recent_entries .post-date {
    color: #6c757d; /* Grey color for dates */
    font-size: 0.85em;
    margin-top: 3px;
}

.widget_custom_recent_posts a:hover,
.widget_recent_entries li a:hover,
.widget.widget_recent_entries ul li a:hover {
    color: #007bff !important; /* Blue color for hover state */
}

.widget_custom_recent_posts .post-date {
    display: block;
    font-size: 0.85em;
    color: #6c757d; /* Grey color for dates */
    margin-top: 3px; /* Add some space between title and date */
}

/* New styles for Featured Announcements Widget */
.widget_featured_announcements {
    background-color: #eeeeee50;
    padding: 15px;
    border-radius: 5px;
    margin: 10px;
}

.widget_featured_announcements h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.widget_featured_announcements ul.featured-announcements {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.widget_featured_announcements li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.widget_featured_announcements li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget_featured_announcements li a {
    color: #000000;
    text-decoration: none;
    display: block;
}

.widget_featured_announcements li img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.widget_featured_announcements li h4 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    color: #000000;
}

.widget_featured_announcements h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}

.widget_featured_announcements .announcement-title {
    color: #000000; /* Ensure the color is black */
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget_featured_announcements .announcement-title:hover {
    color: #007bff; /* Keep the hover color as is, or change to #000000 if you want it to stay black on hover */
}

.widget_social_media_links {
    background-color: #eeeeee50;
    padding: 15px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget_social_media_links .block-title h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.widget_social_media_links .social-media-links {
    margin-top: 15px;
}

/* Override any theme defaults that might be adding lines */
.widget_social_media_links .social-media-links a,
.widget_social_media_links .social-media-links li,
.widget_social_media_links .widget-content,
.widget_social_media_links .widget {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
}

/* Additional override for list items */
.widget_social_media_links ul li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Override the widget title border */
.widget_social_media_links .widget-title {
    border: none !important;
    border-bottom: none !important;
    margin-bottom: 15px;
}

.widget_social_media_links .block-header-wrap,
.widget_social_media_links .block-header-inner,
.widget_social_media_links .block-title {
    border: none !important;
    border-bottom: none !important;
}

/* Remove styling for footer widget */
.sidebar-footer .widget_social_media_links,
.sidebar-footer aside.widget_social_media_links {
    background-color: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Footer widget layout fixes */
.top-footer-wrap .grid-x {
    display: flex;
    flex-wrap: wrap;
}

.top-footer-wrap .sidebar-footer {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

@media screen and (max-width: 639px) {
    .top-footer-wrap .sidebar-footer {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Optional: Add some spacing between widgets */
.top-footer-wrap .widget {
    padding: 1rem;
}

/* Footer grid layout fixes */
.grid-x.grid-margin-x.align-top {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

.sidebar-footer.cell {
    flex: 1;
    width: calc(33.333% - 1rem);
    margin: 0 0.5rem;
}

/* Responsive adjustments */
@media screen and (max-width: 639px) {
    .grid-x.grid-margin-x.align-top {
        flex-wrap: wrap;
    }
    
    .sidebar-footer.cell {
        width: 100%;
        flex: 0 0 100%;
        margin: 0.5rem 0;
    }

    /* Foundation grid system full width */
    .cell.small-12 {
        width: 100%;
        flex-basis: 100%;
    }
}

/* Remove any potential double widget wrappers */
.sidebar-footer.cell aside.widget {
    width: 100%;
}

/* Optional: Align widget contents */
.widget_social_media_links .social-media-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.widget_block h5 {
    text-align: center;
}

/* Add left margin to social media widget */
#social_media_links-3.widget.widget_social_media_links.sidebar-footer {
    margin-left: 2rem;  /* Adjust this value as needed */
}

/* Ensure the social media icons are centered within their container */
#social_media_links-3 .social-media-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Remove margin on mobile */
@media screen and (max-width: 639px) {
    #social_media_links-3.widget.widget_social_media_links.sidebar-footer {
        margin-left: 0;
    }
}