/* Global */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f8;
    color: #333;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Merriweather', serif;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Header */
.top-bar {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    background: #1a1a1a !important;
    position: relative;
    z-index: 1030;
    /* Higher than sticky navbar (1020) */
}

.logo {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #333;
}

/* Premium Navigation */
.navbar-custom {
    background-color: #cc0000;
    /* Deep Red */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.8rem 0.8rem !important;
    /* Reduced padding slightly */
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    /* Prevent wrapping */
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    border-bottom: 2px solid #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Search Bar */
.search-input {
    border-radius: 20px 0 0 20px;
    border: none;
    padding-left: 15px;
    font-size: 0.9rem;
}

.search-btn {
    border-radius: 0 20px 20px 0;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 0 15px;
}

.search-btn:hover {
    background: #fff;
    color: #cc0000;
}

/* News Ticker */
.ticker-wrap {
    background: #fff;
    border-bottom: 3px solid #eee;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: #cc0000;
    color: #fff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 2;
    position: relative;
    white-space: nowrap;
    /* Prevent "BREAKING NEWS" from wrapping */
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    border-top: 40px solid #cc0000;
    border-right: 10px solid transparent;
    /* Slant effect */
}

.marquee-container {
    white-space: nowrap;
    overflow: hidden;
    flex-grow: 1;
    position: relative;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-weight: 500;
    color: #333;
}

.marquee-content span {
    margin-right: 50px;
    position: relative;
}

.marquee-content span::before {
    content: '•';
    color: #cc0000;
    margin-right: 10px;
    font-weight: bold;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Custom Dropdown Styling */
.dropdown-menu-dark {
    background-color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-menu-dark .dropdown-item {
    border-radius: 6px;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.dropdown-menu-dark .dropdown-item:hover {
    background-color: #cc0000 !important;
    color: #fff !important;
    transform: translateX(5px);
}

/* Cards */
.news-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.news-title a {
    color: #222;
    font-weight: 700;
    line-height: 1.4;
}

.news-title a:hover {
    color: #cc0000;
}

/* Sidebar */
.sidebar-title {
    border-left: 4px solid #cc0000;
    padding-left: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #111 !important;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Google Translate Customization */
#google_translate_element {
    display: inline-block;
    vertical-align: middle;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 13px !important;
    line-height: 20px !important;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goog-te-gadget-simple:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #fff !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: #fff !important;
    border: none !important;
    padding-left: 0 !important;
}

.goog-te-gadget-simple .goog-te-menu-value img,
.goog-te-gadget-icon {
    display: none !important;
}

/* Add custom icon */
.goog-te-gadget-simple::before {
    content: '\f0ac';
    /* FontAwesome Globe Icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #cc0000;
    /* Site accent red */
    margin-right: 5px;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Fix for top bar alignment */
.top-bar small {
    margin-right: 15px;
}

/* Mobile Sticky Ad */
.mobile-sticky-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    text-align: center;
    padding: 5px 0;
    display: none;
    /* Hidden by default, shown via media query or JS check */
}

@media (max-width: 768px) {

    /* Base App Layout */
    body {
        padding-bottom: 90px !important;
        /* Space for bottom nav and ad */
        background-color: #fcfcfc;
        -webkit-tap-highlight-color: transparent;
        /* Remove tap flash */
    }

    /* Fixed Top App Header */
    .app-header-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1040;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        padding: 8px 15px !important;
    }

    /* Push content down to account for fixed header */
    body {
        padding-top: 60px !important;
    }

    .navbar-brand img,
    .app-header-mobile img {
        max-height: 40px !important;
        /* App-sized logo */
    }

    /* Container & Layout adjustments for full bleed */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Ticker adjustments for app */
    .ticker-wrap {
        border-radius: 0;
        border-right: none;
        border-left: none;
        margin-top: 10px;
        box-shadow: none;
        border-bottom: 1px solid #eaeaea;
    }

    /* Clean up cards for app view (no border radius, full width) */
    .news-card {
        border-radius: 0;
        border-bottom: 1px solid #efefef;
        box-shadow: none !important;
        margin-bottom: 10px;
    }

    /* Hide standard horizontal scrollbars for an app feel */
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }

    /* Ad setup */
    .mobile-sticky-ad {
        display: block;
        bottom: 80px;
        /* Sit right above the floating bottom nav */
    }
}

.ad-close-btn {
    position: absolute;
    top: -25px;
    right: 5px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    line-height: 24px;
    text-align: center;
}

/* Mobile App-like Bottom Navigation */
.app-bottom-nav {
    position: fixed;
    bottom: 15px;
    left: 15px;
    width: calc(100% - 30px);
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 6px 0;
    z-index: 1050;
    border-radius: 30px;
    border: 1px solid #eaeaea;
}

.app-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
}

.app-bottom-nav .nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.app-bottom-nav .nav-item.active,
.app-bottom-nav .nav-item:hover {
    color: #cc0000;
}

.app-bottom-nav .nav-item.active i {
    transform: translateY(-2px);
}