/* Mobile Search Bar Styles */
.mobile-fixed-header .navbar-form {
    margin: 5px 0;
    padding: 0;
    width: 100%;
}

.mobile-fixed-header .form-group {
    position: relative;
    margin: 0;
}

.mobile-fixed-header .form-control {
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 40px 6px 15px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-fixed-header .form-control:focus {
    border-color: #da0000;
    box-shadow: 0 0 0 2px rgba(218, 0, 0, 0.1);
}

.mobile-fixed-header .search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-fixed-header .search-button:hover {
    color: #da0000;
}

.mobile-fixed-header .search-button i {
    font-size: 16px;
}

/* Post Title Overlay Enhancement */

/* Stronger gradient for better visibility */
.post--item.post--layout-1 .post--img .thumb:before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%) !important;
    opacity: 1 !important;
    -webkit-transition: opacity .25s ease-in-out, background .25s ease-in-out !important;
    transition: opacity .25s ease-in-out, background .25s ease-in-out !important;
}

/* Hover effect for images */
.post--item.post--layout-1 .post--img:hover .thumb:before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%) !important;
    opacity: 1 !important;
}

/* Enhance text visibility with shadow and better contrast */
.post--item.post--layout-1 .post--info .title .h4 {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    font-weight: 600 !important;
    line-height: 1.3 !important;
    transition: color .25s ease-in-out;
}

/* Change text color on hover for better visibility */
.post--item.post--layout-1:hover .post--info .title .h4 a {
    color: #ffffff !important;
}

/* Increase font size for better readability */
.post--item.post--title-large .post--info .title .h4 {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.post--item.post--title-larger .post--info .title .h4 {
    font-size: 20px !important;
    line-height: 1.3 !important;
}

/* Add padding to the bottom of the text container for better spacing */
.post--item.post--layout-1 .post--info {
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
    z-index: 2 !important; /* Ensure text stays above the gradient */
}

/* Make date more visible */
.post--item.post--layout-1 .post--info .meta > li > a {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    color: #fff !important;
}

.floating-social-menu {
    position: fixed;
    bottom: 70px;
    right: 20px;
    z-index: 9999;
}

.social-toggle {
    background: #ffffff;
    color: #000000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    outline: none;
    position: relative;
}

.social-toggle:hover {
    background: #f8f8f8;
    transform: scale(1.05);
}

.social-items {
    position: absolute;
    bottom: 60px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 10px;
}

.social-items {
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.social-items.show {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.social-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 10px 0;
    background: #ffffff !important;
    color: #000000 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-item:hover {
    background: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.2s ease;
}

.social-item:hover svg {
    transform: none;
    color: #ffffff !important;
}


.social-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
}


/* Animation for social items */
.social-items {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header--topbar-info li i,
.header--topbar-action li a i {
    margin-right: 5px;
}    
