/* =========================================================================
   BettorCenter front-end header + dropdowns (Divi override)
   Dark navy header, white menu text, dark dropdown panels.
   ========================================================================= */

:root {
    --bc-header:     #0c1733;  /* navy header background           */
    --bc-dropdown:   #1b2848;  /* dropdown panel background        */
    --bc-hover:      #26345c;  /* dropdown item hover background   */
    --bc-link:       #ffffff;  /* menu link text                   */
    --bc-accent:     #4f86ff;  /* hover / active link color        */
    --bc-sub-text:   #e6ebf7;  /* dropdown item text               */
}

/* ---- Header bar (normal + fixed-on-scroll states) -------------------- */
#main-header,
#main-header.et-fixed-header,
.et-fixed-header #main-header {
    background-color: var(--bc-header) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) !important;
}

/* ---- Top-level menu links -------------------------------------------- */
#top-menu li a,
#et-top-navigation #top-menu > li > a {
    color: var(--bc-link) !important;
    font-weight: 500;
}

/* Hover / current page */
#top-menu li a:hover,
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a,
#top-menu li.current-menu-ancestor > a {
    color: var(--bc-accent) !important;
    opacity: 1;
}

/* Dropdown caret on parent items */
#top-menu li.menu-item-has-children > a:first-child:after {
    color: var(--bc-link) !important;
}

/* ---- Dropdown panel -------------------------------------------------- */
#top-menu li ul.sub-menu {
    background-color: var(--bc-dropdown) !important;
    border-top: none !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .38) !important;
    padding: 6px 0 !important;
    min-width: 230px;
}

/* Dropdown items */
#top-menu li ul.sub-menu li a {
    color: var(--bc-sub-text) !important;
    font-weight: 400 !important;
    padding: 11px 18px !important;
    width: auto !important;
    white-space: normal !important;   /* let long report titles wrap */
    line-height: 1.4;
}
#top-menu li ul.sub-menu li a:hover {
    background-color: var(--bc-hover) !important;
    color: #ffffff !important;
}

/* ---- Header icons (search / cart / login) ---------------------------- */
#et_top_search #et_search_icon:before,
#et-top-navigation span.et-cart-info,
#top-menu-nav .et-cart-info {
    color: var(--bc-link) !important;
}

/* ---- Mobile menu ----------------------------------------------------- */
.et_mobile_menu,
#et_mobile_nav_menu .et_mobile_menu {
    background-color: var(--bc-dropdown) !important;
    border-top-color: var(--bc-accent) !important;
}
.et_mobile_menu li a {
    color: var(--bc-sub-text) !important;
}
.et_mobile_menu li a:hover {
    color: #ffffff !important;
    background-color: var(--bc-hover) !important;
}
#et_mobile_nav_menu .mobile_menu_bar:before {
    color: var(--bc-link) !important;
}

/* =========================================================================
   Header width / layout — make the bar full-width so the menu fits on
   one line (Divi's default container is too narrow for this many items).
   ========================================================================= */

/* Widen the header container edge-to-edge with a little side padding */
#main-header .container,
#main-header .et_menu_container {
    max-width: none !important;
    width: 100% !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* Give the nav room and keep it on a single row */
#et-top-navigation {
    padding-top: 26px;
}
#top-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

/* Tighten spacing + size so all items fit comfortably */
#top-menu li {
    padding-right: 20px !important;
}
#top-menu > li:last-child {
    padding-right: 0 !important;
}
#top-menu li a {
    font-size: 15px !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
}

/* Dropdown children should still wrap normally inside the panel */
#top-menu li ul.sub-menu li a {
    white-space: normal !important;
}

/* Logo sits left, doesn't get overlapped */
#main-header #logo {
    max-height: 54px;
}

/* =========================================================================
   Free Picks page — cards (IMAGE ON TOP, vertical layout)
   ========================================================================= */

.bc-fp-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;            /* keeps the image a neat banner */
    overflow: hidden;
    background: #f1f3f7;
}
.bc-fp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bc-fp-body {
    padding: 20px 22px;
}
.bc-fp-title {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: #0c1733;
    line-height: 1.3;
}
.bc-fp-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}
.bc-fp-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
    word-break: break-word;
}
.bc-fp-desc p { margin: 0 0 10px; }
.bc-fp-empty {
    color: #6b7280;
    font-size: 16px;
    padding: 16px 18px;
    background: rgba(0, 0, 0, .04);
    border-radius: 10px;
    display: inline-block;
}
@media (max-width: 640px) {
    .bc-fp-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Dropdown scrollbar — cap height and scroll when a sport has many reports
   ========================================================================= */
#top-menu li ul.sub-menu {
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Slim dark scrollbar to match the panel */
#top-menu li ul.sub-menu::-webkit-scrollbar {
    width: 8px;
}
#top-menu li ul.sub-menu::-webkit-scrollbar-track {
    background: transparent;
}
#top-menu li ul.sub-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .25);
    border-radius: 8px;
}
#top-menu li ul.sub-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .4);
}
#top-menu li ul.sub-menu {
    scrollbar-width: thin;                          /* Firefox */
    scrollbar-color: rgba(255,255,255,.3) transparent;
}

/* =========================================================================
   Free Picks page → sidebar hidden + left-aligned card (matches production)
   ========================================================================= */
.srm-fp-page #sidebar { display: none !important; }
.srm-fp-page #left-area { width: 100% !important; padding-right: 0 !important; }

.bc-fp-grid {
    max-width: 540px;
    margin: 30px 0 40px 0;       
    display: block;
}
.bc-fp-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    margin-bottom: 24px;
}
.bc-fp-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;       
    overflow: hidden;
    background: #f1f3f7;
}
.bc-fp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;            
    display: block;
}