/* Footer Styling */
/* This targets Google's One Tap dialog more generically */
div[style*="z-index"][role="dialog"] {
    z-index: 99999 !important;
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
    display: flex;
    height: 50px;
    justify-content: center;
    align-items: center;
    z-index: 99;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}
.footer button:hover {
    color: white !important;  /* Ensures text stays white */
    opacity: 1 !important;  /* Prevents fading effect */
}
.category-selector:hover {
    background-color:gray !important;
    border-color: gray !important;
}

.btn-read {
    flex: 1;
    background-color: black;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
}

.btn-watch {
    flex: 1;
    background-color: #FFD500;
    color: black;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 400px;
}

/* Footer Buttons */
.footer-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

/* Button Hover Effect */
.footer-btn:hover {
    /*transform: scale(1.2);*/
    color: #e0e0e0;
}

.trending-news-section {
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
}

.trending-title {
    font-weight: bold;
    color: black;
}

.trending-border {
    border: 2px solid black;
}

/* Prevent horizontal scrolling */
.audio-indicator {
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
}
.latest-news-heading {
    font-size: 24px;
    font-weight: bold;
    color: black;
    text-align: left;
    margin-top: 20px;
}
.audio-duration {
    color: #333;
    font-weight: bold;
}

.card-title {
    margin-right: 10px;
}

.news-card .card-body {
    padding-right: 15px;
}

.audio-badge {
    display: inline-flex;
    align-items: center;
    background-color: #ffd015;
    color: #000;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    width: fit-content;
}

.audio-badge i {
    margin-right: 5px;
}

.audio-time {
    letter-spacing: 0.5px;
}

.card-text {
    margin-bottom: 8px;
}

.audio-badge {
    display: inline-flex;
    align-items: center;
    background-color: #ffd015;
    color: #000;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    width: fit-content;
}

.audio-badge svg {
    width: 16px;
    height: 16px;
}

.audio-time {
    letter-spacing: 0.5px;
}

.card-text {
    margin-bottom: 8px;
}

body, html {
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* Sticky Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10000;
}

/* Navbar Container */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    height: 40px;
    width: 83px;
}

/* Sidebar */
.news-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    height: 100%;
    width: 280px;
    background-color: #343a40;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    color: white;
    font-size: 18px;
    z-index: 9999;
    overflow-y: auto; /* Enables scrolling when content exceeds height */
    max-height: calc(100vh - 60px); /* Ensures sidebar does not exceed screen height */
}
.col-md-12{
    margin-bottom: 50px !important;
}
.news-sidebar::-webkit-scrollbar {
    width: 6px;
}

.news-sidebar::-webkit-scrollbar-thumb {
    background-color: #343a40; /* Yellow scrollbar */
    border-radius: 3px;
}

.news-sidebar::-webkit-scrollbar-track {
    background-color: #343a40;
}

.news-sidebar.active {
    transform: translateX(0);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 9998;
}

/* Sidebar Close Button */
#sidebar-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hamburger Icon */
#sidebar-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    margin-right: 10px;
}

/* Hide sidebar toggle when sidebar is open */
.news-sidebar.active ~ #sidebar-toggle {
    display: none;
}

/* News Cards */
.news-card {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* Ensure images take full width */
.news-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

/* Hover effect for clickable news cards */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-sidebar ul li a:hover {
    background: #ffd015 !important; /* Background color */
    color: black !important; /* Text color */
}

.news-sidebar ul li a {
    text-decoration: none !important; /* Remove underline */
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.news-card-link:hover .news-card {
    background-color: #f8f9fa;
    transition: background 0.3s ease;
}

/* Loader Styling */
#load-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#load-more {
    width: 200px;
    display: block;
    margin: 20px auto;
    color: black !important;
    background: #ffd015 !important;
    border: none !important;
}

/* Footer */
/*.footer {*/
/*    background-color: #343a40;*/
/*    color: white;*/
/*    padding: 20px;*/
/*    text-align: center;*/
/*    margin-top: 30px;*/
/*}*/

/* Shimmer Effect for Image Placeholder */
.shimmer {
    width: 100%;
    height: 150px;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer-loading 1.5s infinite;
}

@keyframes shimmer-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Remove space on right for mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }
}

@media (max-width: 420px) {
    #hamburgerDropdown{
        font-size: 20px !important;
    }
    .navbar .container {
        flex-wrap: wrap; /* Allow wrapping */
        padding: 5px 10px; /* Reduce padding */
    }

    .navbar .btn {
        font-size: 10px; /* Reduce button text size */
        padding: 3px 6px; /* Reduce button padding */
    }

    .navbar #googleLogin{
        padding: 7px 6px !important;
    }

    .navbar #languageDropdown {
        padding: 7px; /* Reduce button padding */
    }

    .navbar #languageDropdown.details {
        padding: 3px 7px; /* Reduce button padding */
    }

    .navbar-brand {
        font-size: 14px; /* Reduce text size */
        white-space: nowrap; /* Prevent breaking */
    }

    #sidebar-toggle {
        font-size: 20px; /* Adjust icon size */
        margin-right: 2px; /* Reduce spacing */
    }

    .logo {
        height: 23px;
        width: auto; /* Reduce logo size */
    }

    .navbar {
        min-height: 50px; /* Reduce navbar height */
        padding: 5px 0; /* Reduce navbar padding */
    }

    .news-container {
        margin-top: 70px !important; /* Ensure it doesn't get overlapped */
    }
}

/* Language Dropdown Styling */
.dropdown-menu {
    border: none;
    background-color: #343a40;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 15px;
    overflow: hidden;
    min-width: 220px;
    max-width: 220px;
    width: 150px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: white !important;
    text-decoration: none !important;
}

.language-btn {
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 6px;
}

.dropdown-menu {
    min-width: 120px;
}

.dropdown-item {
    font-size: 12px;
    padding: 8px;
}

.flag-icon {
    width: 18px;
    margin-right: 6px;
}

.dropdown-item:hover {
    background-color: #ffd015;
    color: black !important;
}

/* Add spacing for flags */
.dropdown-item img {
    width: 20px;
    height: auto;
    margin-right: 10px;
}

.category-holder{
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.category-holder::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}


.category-holder button{
    min-width: 100px;
}

.trending{
    background-color: #FF5722 !important;
    border-color: #FF5722 !important;
}

.bookmarks{
    background-color: #3f51b5 !important;
    border-color: #3f51b5 !important;
}
.bookmark-btn {
    position: relative;
    z-index: 11 !important;
}
.trending-news-section {
    padding: 15px;
    border-radius: 10px;
    background-color: #fff;
    border: 2px solid #ff4500; /* Highlight border */
}

.trending-title {
    font-weight: bold;
    color: #ff4500;
    text-align: center;
}

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-card .card-body-vertical {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 250px; /* Adjust as needed */
    overflow: hidden;
    padding: 15px;
}
.news-card .card-body-vertical .card-text {
    flex-grow: 1;
    max-height: 130px; /* Ensures text is not exceeding */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limits text to 4 lines */
    -webkit-box-orient: vertical;

}
.news-card .card-body-vertical .card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.text-justify {
    text-align: justify;
}

/* Truncates long headlines */
.news-card .card-body-vertical .card-title {
    overflow: hidden;
}
@media (max-width: 768px) {
    .news-card .card-body-vertical {
        height: auto;
    }
    .category-holder button .fa{
        display: block;
        margin-bottom: 5px;
    }
}

#trending-container {
    margin-top: 25px !important;;
}
.jqjo-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end; /* Desktop default */
    margin: -38px 0 0 auto;
    padding: 0;
    max-width: 50%;
    position: relative;
    z-index: 10;
}

.jqjo-social-icons a {
    width: 34px;
    height: 34px;
    background-color: #000;
    color: #fff !important;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.jqjo-social-icons a:hover {
    background-color: #FFD500;
    color: #000 !important;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .jqjo-social-icons {
        justify-content: center;
        margin: 10px auto 0 auto;
        margin-top: -90px;
        max-width: 100%;
    }
    .category-holder{
        margin-top:130px
    }
    .home-title{
        margin-top: 50px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .jqjo-social-icons {
        justify-content: center;
        gap: 8px;
        margin: 10px auto;
        margin-top: -120px;
        max-width: 100%;
    }
    .home-title{
        margin-top: 95px;
    }
    .category-holder{
        margin-top:130px
    }
    .jqjo-social-icons a {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}
#hamburgerDropdown{
    font-size: 23px;
}
.shimmer {
    background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
    background-size: 1000px 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 4px;
}
.shimmer-img {
    width: 100%;
    height: 200px;
}
.shimmer-title {
    width: 60%;
    height: 20px;
}
.shimmer-text {
    width: 90%;
    height: 14px;
}
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
