
/* Font and Reset */
@font-face {
    font-family: 'Neue Haas Grotesk Display Pro';
    src: local('Neue Haas Grotesk Display Pro');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #333;
    font-family: "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #fff;
}

/* FULL WIDTH WRAPPER (Black Background) */
.prudent-header {
    background-color: #000;
    width: 100%;
    height: 100px;
    border-bottom: 1px solid #222;
}

/* CENTERED CONTAINER (The 1200px Logic) */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    /* Centers the header */
    height: 100%;
    display: flex;
    align-items: stretch;
    padding: 0 15px;
    /* Padding for mobile screens */
}

/* Logo Section */
.logo-container {

    width: 65px;
    height: 100%;
    flex-shrink: 0;
    /* Prevents logo from squishing */
}



.logo-red-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
}

.horse-icon svg {
    width: 35px;
    height: 35px;
}

.p-mark {
    background: #fff;
    color: #d12127;
    width: 22px;
    height: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: 2px;
}

.brand-name {
    font-size: 8px;
    font-weight: bold;
    margin-top: 2px;
}

/* Nav Content Layout */
.header-nav-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0 10px 20px;
}

/* Top Row Styles */
.top-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.top-nav-bar {
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 4px;
    flex-grow: 0.8;
}

.live-tv-btn {
    background-color: #d12127;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.live-tv-btn:hover {
    background-color: #ff2b32;
}

/* Pulse Animation */
.live-dot {
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 50%;
    animation: professional-pulse 1.8s infinite ease-out;
}

@keyframes professional-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.sub-nav {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}

.sub-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Actions (Search/Socials) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    border: 1px solid #333;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.search-box svg {
    width: 18px;
    fill: #fff;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 28px;
    height: 28px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
}

.social-icon svg {
    width: 14px;
    fill: #000;
}

/* Bottom Row Styles */
.bottom-nav {
    display: flex;
    align-items: center;
    gap: 17px;
    padding-bottom: 5px;
}

.bottom-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.bottom-nav a.active {
    color: #E9615C;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

/* Standard link color */
.bottom-nav a,
.sub-nav a {
    color: #fff;
    transition: color 0.3s ease;
}

/* Hover effect: Only apply if it DOES NOT have the .active class */
.bottom-nav a:hover:not(.active),
.sub-nav a:hover:not(.active) {
    color: #ccc;
}

/* The Active State (remains red) */
.bottom-nav a.active,
.sub-nav a.active,
.m-nav-list a.active {
    color: #E9615C !important;
    /* Use your specific red hex code */
    font-weight: 700;
}

.bottom-nav .sep {
    color: #444;
}

/* Search Overlay Logic */
#main-wrapper {
    transition: filter 0.4s ease;
}

body.search-active #main-wrapper {
    filter: blur(10px);
    pointer-events: none;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.search-overlay.active {
    visibility: visible;
    opacity: 1;
}

.search-modal {
    width: 90%;
    max-width: 800px;
    margin-top: -100px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-overlay.active .search-modal {
    transform: translateY(180px);
}

/* --- UPDATED ALIGNMENT SECTION --- */

.search-bar-container {
    background-color: #1e1e1e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    /* Vertically centers everything */
    padding: 8px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    /* Forces input area to take available space */
}

/* Fixed giant icon size */
.inner-search-icon {
    width: 20px !important;
    height: 20px !important;
    fill: #888;
    margin-right: 15px;
    flex-shrink: 0;
}

#search-input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 16px;
    padding: 12px 0;
    /* Adjusted for better vertical centering */
}

.search-submit-btn {
    background-color: #d12127;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    flex-shrink: 0;
    /* Prevents button from squishing */
}

/* Ensure the red button's icon is also correctly sized */
.search-submit-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* NEWS UPDATES BAR STYLES */
.news-updates-bar {
    background-color: #DD221B;
    /* Bright News Red background */
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-inner-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
}

/* Dark Red Rounded Label */
.updates-label {
    background-color: #B11A14;
    /* Darker red from your image */
    color: #ffffff;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scrolling Area Wrapper */
.ticker-window {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* The Animated Track */
.ticker-scroll-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-animation 80s linear infinite;
    /* Speed control */
}

.ticker-text {
    color: #ffffff;
    font-family: 'Neue Haas Grotesk Display Pro', sans-serif;
    font-weight: 700;
    /* Semi-bold as per image */
    font-size: 14px;
    padding-right: 20px;
}

/* Pause on hover so people can read */
.ticker-scroll-track:hover {
    animation-play-state: paused;
    cursor: pointer;
}

/* Animation Logic */
@keyframes ticker-animation {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Moves half the duplicated content */
    }
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .news-updates-bar {
        height: 40px;
    }

    .updates-label {
        font-size: 11px;
        padding: 4px 10px;
        margin-right: 10px;
    }

    .ticker-text {
        font-size: 13px;
    }

    .ticker-inner-container {
        padding: 0 10px;
    }
}

/* --- MOBILE TOP BAR (header + ticker as one unit) --- */

.prudent-mobile-header,
.m-menu-overlay {
    display: none;
}

.prudent-top-bar-spacer {
    display: none;
}

@media (max-width: 991px) {
    .prudent-top-bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }

    .prudent-top-bar-spacer {
        display: block;
        height: 60px;
    }

    .prudent-top-bar.has-ticker + .prudent-top-bar-spacer {
        height: 100px;
    }

    /* Hide desktop header on mobile */
    .prudent-header {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }

    /* Mobile header bar */
    .prudent-mobile-header {
        display: block;
        background: #000;
        height: 60px;
        width: 100%;
    }

    .mobile-header-inner {
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
    }

    .m-logo img {
        height: 40px;
        width: auto;
    }

    .m-right-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .m-live-btn {
        background: #d12127 !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        animation: live-glow-pulse 1.5s infinite ease-in-out;
    }

    .m-live-dot {
        width: 6px;
        height: 6px;
        background-color: #fff;
        border-radius: 50%;
        animation: dot-blink 1s infinite;
    }

    .m-action-icon {
        width: 34px;
        height: 34px;
        border: 1px solid #333;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .m-action-icon svg {
        width: 18px;
        fill: #fff;
    }

    /* Ticker sits flush below mobile header */
    .prudent-top-bar .news-updates-bar {
        margin: 0;
        border: 0;
        flex-shrink: 0;
    }

    .prudent-mobile-header {
        flex-shrink: 0;
    }

    /* Sidebar menu */
    .m-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 10001;
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s ease;
    }

    .m-menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }

    .m-menu-content {
        position: absolute;
        right: -300px;
        top: 0;
        width: 300px;
        height: 100%;
        background: #000;
        padding: 80px 25px 40px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .m-menu-overlay.active .m-menu-content {
        right: 0;
    }

    .m-menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        cursor: pointer;
    }

    .m-menu-close svg {
        width: 30px;
        fill: #fff;
    }

    .m-nav-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        align-items: flex-end;
        text-align: right;
        padding-right: 10px;
    }

    .m-nav-list a {
        color: #fff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: color 0.3s;
    }

    .m-nav-list a.active,
    .m-nav-list a:hover {
        color: #E9615C;
    }

    .m-menu-footer {
        margin-top: auto;
        padding-top: 30px;
        border-top: 1px solid #222;
    }

    .m-social-links {
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    .m-social-links a {
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        font-size: 18px;
        text-decoration: none;
    }

    @keyframes live-glow-pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(209, 33, 39, 0.7);
            transform: scale(1);
        }

        70% {
            box-shadow: 0 0 0 8px rgba(209, 33, 39, 0);
            transform: scale(1.03);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(209, 33, 39, 0);
            transform: scale(1);
        }
    }

    @keyframes dot-blink {
        0% { opacity: 1; }
        50% { opacity: 0.3; }
        100% { opacity: 1; }
    }
}